:root {
  --bg: #f1f2f4;
  --sidebar: #ebecef;
  --card: #ffffff;
  --ink: #303030;
  --heading: #1a1a1a;
  --muted: #616161;
  --line: #e3e3e3;
  --input-line: #8a8a8a;
  --primary: #1a1a1a;
  --green: #047857;
  --soft: #cdfee1;
  --soft-ink: #0c5132;
  --red: #8e1f0b;
  --red-bg: #fee9e8;
  --amber: #5e4200;
  --amber-bg: #fff1e3;
  font-size: 14px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: #005bd3; }
.sidebar a, header a, .actions a { color: inherit; }
button, .button {
  min-height: 36px;
  border-radius: 8px;
  padding: 7px 14px;
  border: 1px solid #d4d4d8;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card);
  transition: background .12s, border-color .12s;
}
button:hover, .button:hover { background: #f7f7f8; border-color: #a1a1aa; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #005bd3;
  outline-offset: 2px;
}
.primary { background: var(--primary); border-color: var(--primary); color: #ffffff; }
.primary:hover { background: #303030; border-color: #303030; }
.secondary { background: var(--card); }
.quiet { background: var(--card); padding: 6px 12px; }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.3px; font-size: 16px; color: var(--heading); }
.brand small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .08em; margin-top: 2px; color: var(--muted); }
.brand-mark { width: 36px; height: 38px; background: var(--primary); color: #ffffff; display: grid; place-items: center; font-size: 15px; border-radius: 9px; position: relative; }
.brand-mark span { position: absolute; right: -3px; bottom: -2px; background: var(--soft); color: var(--soft-ink); font-size: 10px; border-radius: 50%; width: 16px; height: 16px; display: grid; place-items: center; }
.eyebrow, .section-label { font-size: 11px; letter-spacing: .06em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.sidebar .eyebrow { margin: 8px 0 -8px; }
nav { display: grid; gap: 4px; }
.nav-link { padding: 8px 10px; display: flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 8px; font-size: 14px; color: var(--ink); font-weight: 500; }
.nav-link:hover { background: #e3e5e9; }
.nav-link.active { background: #ffffff; color: var(--heading); font-weight: 650; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.nav-link b { margin-left: auto; background: #e3e5e9; color: var(--ink); border-radius: 999px; padding: 1px 7px; font-size: 11px; }
.sidebar-note { margin-top: auto; border-top: 1px solid #d4d6db; padding-top: 16px; font-size: 12px; line-height: 1.5; }
.sidebar-note strong { display: block; color: var(--heading); }
.sidebar-note p { color: var(--muted); margin: 4px 0 0; }
.dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; display: inline-block; margin-right: 7px; }
.text-link { font-size: 12px; color: var(--muted); text-decoration: none; }
.text-link:hover { color: var(--heading); text-decoration: underline; }
.content { min-width: 0; }
.topbar { padding: 12px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; background: var(--card); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
select { background: var(--card); border: 1px solid var(--input-line); border-radius: 8px; padding: 6px 10px; min-height: 34px; font-size: 13px; max-width: 100%; }
main { max-width: 1200px; margin: auto; padding: 24px; }
.panel { display: none; }
.panel.active { display: block; }
.section-label { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.line { width: 20px; height: 2px; background: var(--green); }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .85fr); gap: 28px; align-items: center; padding: 8px 0 24px; }
.badge { font-size: 12px; background: var(--soft); color: var(--soft-ink); padding: 3px 10px; display: inline-block; border-radius: 999px; font-weight: 600; }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.4px; line-height: 1.25; margin: 10px 0 12px; color: var(--heading); }
h2 { font-size: 17px; font-weight: 650; line-height: 1.35; margin: 0 0 8px; color: var(--heading); }
h3 { font-size: 15px; font-weight: 650; color: var(--heading); }
.lead { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 680px; margin-bottom: 16px; }
p { line-height: 1.55; margin: 6px 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.address-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.label-top, .label-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.seal { padding: 2px 8px; border: 1px solid var(--green); color: var(--green); border-radius: 6px; font-weight: 700; }
.label-heading { font-size: 11px; letter-spacing: .04em; color: var(--muted); padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.address-lines { display: grid; gap: 4px; font-size: 15px; padding: 10px 0 14px; color: var(--heading); }
.address-lines span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--muted); }
.label-check { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 8px; padding: 8px 12px; color: var(--soft-ink); font-size: 13px; }
.label-check > span { font-size: 18px; font-weight: 700; }
.label-check small { display: block; font-size: 12px; margin-top: 2px; }
.barcode { height: 22px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 14px, transparent 14px 17px); margin: 14px 0 8px; opacity: .55; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin: 12px 0 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.metrics article { padding: 18px 20px; }
.metrics article + article { border-left: 1px solid var(--line); }
.metrics strong { display: block; font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.4px; color: var(--heading); }
.metrics strong span { font-size: 14px; margin-left: 4px; }
.metrics p { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.metrics article > span { font-size: 12px; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.card p { color: var(--muted); }
.card-icon { background: var(--soft); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-size: 17px; color: var(--soft-ink); margin-bottom: 10px; }
.tag { font-size: 12px; border-radius: 6px; background: #f3f4f6; color: var(--ink); padding: 3px 8px; display: inline-block; line-height: 1.4; font-weight: 500; }
.guide { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.guide ol { padding-left: 20px; margin-bottom: 0; line-height: 1.7; }
.guide .muted { width: 100%; margin: 0; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
footer { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.sandbox-layout { display: grid; grid-template-columns: minmax(220px, .68fr) minmax(0, 1.32fr); gap: 16px; }
.case-list { display: grid; gap: 8px; align-content: start; }
.case-button { background: var(--card); justify-content: start; text-align: left; border-radius: 8px; font-size: 13px; padding: 10px 12px; }
.case-button span:first-child { font-family: ui-monospace, monospace; opacity: .6; min-width: 24px; }
.case-button.selected { background: var(--soft); border-color: #6ee7b7; color: var(--soft-ink); }
.preview-heading, .card-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.preview-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.checkout-preview label { display: block; color: var(--muted); margin: 8px 0 4px; font-size: 12px; }
pre { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; background: #f8fafc; border: 1px solid var(--line); padding: 12px; border-radius: 8px; text-wrap: wrap; }
.checkout-error { padding: 12px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5; background: var(--red-bg); color: var(--red); border-left: 3px solid var(--red); }
.checkout-error.pass { background: var(--soft); color: var(--soft-ink); border-color: var(--green); }
.checkout-error.warning { background: var(--amber-bg); color: var(--amber); border-color: #d97706; }
.analysis { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.analysis code { font-size: 12px; overflow-wrap: anywhere; line-height: 1.5; background: #f3f4f6; padding: 2px 6px; border-radius: 4px; }
.presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.preset { display: grid; text-align: left; justify-content: start; gap: 4px; padding: 14px; }
.preset span { font-size: 12px; font-weight: 400; line-height: 1.45; color: var(--muted); }
.preset.selected { border: 2px solid var(--primary); background: #f8fafc; }
.field-stack { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; line-height: 1.45; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); flex-shrink: 0; }
input:not([type=checkbox]), textarea { display: block; width: 100%; border: 1px solid var(--input-line); background: #ffffff; border-radius: 8px; padding: 8px 10px; margin: 6px 0 0; min-width: 0; }
textarea { resize: vertical; line-height: 1.5; }
label { display: block; font-size: 13px; font-weight: 500; line-height: 1.45; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.save-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.pricing h2 { font-size: 30px; margin: 6px 0; }
.pricing h2 small { font-size: 14px; font-weight: 400; color: var(--muted); }
ul { padding-left: 20px; line-height: 1.65; }
.pricing button { width: 100%; margin-top: 12px; }
.featured { border: 2px solid var(--primary); position: relative; }
.calculator { margin-top: 16px; }
.calculator input { max-width: 180px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td, th { padding: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
th { color: var(--muted); font-weight: 600; background: #f8fafc; }
td:last-child { font-weight: 700; color: var(--green); }
.negative { color: var(--red) !important; }
#notice { padding: 12px 16px; border: 1px solid #f4d6a8; background: var(--amber-bg); color: var(--amber); border-radius: 8px; margin-bottom: 16px; line-height: 1.5; font-size: 13px; }
.ticket { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.ticket code { font-size: 12px; }
details { margin-top: 12px; }
summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 6px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; top: -100px; z-index: 10; background: var(--card); padding: 10px; }
.skip:focus { top: 0; }
[hidden] { display: none !important; }
@media (max-width: 1120px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  main { padding: 18px; }
  .hero { gap: 18px; grid-template-columns: 1fr; }
  .sandbox-layout { grid-template-columns: 1fr; }
  .case-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presets, .two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); gap: 10px; }
  .sidebar .eyebrow, .sidebar-note, .sidebar > .text-link { display: none; }
  nav { display: flex; overflow-x: auto; gap: 6px; }
  .nav-link { flex-shrink: 0; padding: 8px 10px; }
  .nav-link > span:first-child, .nav-link > b { display: none; }
  .topbar { padding: 12px 16px; }
  main { padding: 16px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics article + article { border-left: 0; border-top: 1px solid var(--line); }
  .case-list { grid-template-columns: 1fr; }
  .card-header, .save-bar { align-items: start; flex-direction: column; }
  .actions .button, .save-bar button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
