:root {
  --blue-600: oklch(52% 0.22 263);
  --blue-700: oklch(45% 0.2 263);
  --neutral-950: oklch(24% 0.015 255);
  --neutral-700: oklch(45% 0.015 255);
  --neutral-500: oklch(60% 0.015 255);
  --neutral-300: oklch(88% 0.008 255);
  --neutral-100: oklch(96% 0.005 255);
  --neutral-50: oklch(98% 0.003 255);
  --paper: oklch(99% 0.002 255);
  --danger: oklch(48% 0.18 25);
  --bg: var(--neutral-50);
  --text: var(--neutral-950);
  --muted: var(--neutral-700);
  --line: var(--neutral-300);
  --accent: var(--blue-600);
  --accent-hover: var(--blue-700);
  --surface: var(--paper);
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { min-height: 100dvh; background: var(--bg); }
body { margin: 0; min-height: 100dvh; color: var(--text); background: var(--bg); font: 16px/1.6 "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid color-mix(in oklch, var(--accent) 45%, transparent); outline-offset: 3px; }
[hidden] { display: none !important; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; padding: 32px 24px; border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 20px; font-weight: 750; letter-spacing: -0.03em; }
.brand svg { width: 30px; height: 30px; fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.brand-note { margin: 12px 0 32px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.menu { display: grid; gap: 8px; }
.menu-button { min-height: 48px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); text-align: left; transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out; }
.menu-button:hover { background: var(--neutral-100); color: var(--text); }
.menu-button[aria-selected="true"] { border-color: color-mix(in oklch, var(--accent) 22%, var(--line)); background: color-mix(in oklch, var(--accent) 8%, var(--surface)); color: var(--accent-hover); font-weight: 650; }
.menu-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.count { margin-left: auto; min-width: 24px; padding: 0 7px; border-radius: 20px; background: var(--accent); color: var(--paper); font-size: 12px; text-align: center; }
.sidebar-foot { margin: auto 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.content { width: min(100%, 920px); padding: clamp(32px, 6vw, 80px) clamp(20px, 7vw, 88px); }
.view { max-width: 700px; }
.intro { margin-bottom: 32px; }
.overline { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.045em; }
.intro > p:last-child { max-width: 65ch; margin: 0; color: var(--muted); font-size: 17px; }
.track-form { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 24px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 650; }
.field small { color: var(--muted); font-size: 13px; }
.field input { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-family: "Cascadia Code", Consolas, monospace; font-size: 17px; transition: border-color 160ms ease-out, background-color 160ms ease-out; }
.field input:hover { border-color: var(--neutral-500); }
.field input:focus { border-color: var(--accent); background: var(--surface); }
.field input::placeholder { color: var(--neutral-700); opacity: 1; font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 15px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.remember { min-height: 44px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; cursor: pointer; }
.remember input { width: 18px; height: 18px; accent-color: var(--accent); }
.primary, .secondary { min-height: 48px; padding: 11px 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; transition: background-color 160ms ease-out, transform 120ms ease-out; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: var(--paper); }
.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.primary:active, .secondary:active { transform: translateY(1px); }
.primary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.secondary { border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.secondary:hover { background: var(--neutral-100); }
.form-error { margin: 0; padding: 12px 14px; border-radius: 10px; background: color-mix(in oklch, var(--danger) 9%, var(--surface)); color: var(--danger); font-weight: 600; }
.preview-result { padding: 16px; border: 1px solid var(--accent); border-radius: 12px; color: var(--text); background: var(--surface); }
.plain-note { max-width: 70ch; margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.empty { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty h2 { margin: 0 0 4px; font-size: 20px; }
.empty p { margin: 0 0 20px; color: var(--muted); }
.shipment-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.shipment-item { min-height: 76px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.shipment-link { flex: 1; min-width: 0; padding: 16px 0; display: grid; gap: 2px; color: var(--text); text-decoration: none; }
.shipment-link:hover .shipment-track { color: var(--accent); }
.shipment-track { font-family: "Cascadia Code", Consolas, monospace; font-weight: 700; overflow-wrap: anywhere; }
.shipment-date { color: var(--muted); font-size: 13px; }
.icon-button { width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; transition: color 160ms ease-out, background-color 160ms ease-out; }
.icon-button:hover { color: var(--danger); background: var(--neutral-100); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; padding: 16px 0; font-weight: 700; cursor: pointer; }
.faq details p { max-width: 70ch; margin: 0; padding: 0 0 20px; color: var(--muted); }
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: 18px 16px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-note, .sidebar-foot { display: none; }
  .brand { margin-bottom: 16px; }
  .menu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .menu-button { min-height: 46px; padding: 8px 6px; justify-content: center; gap: 6px; font-size: 13px; }
  .menu-button svg { width: 18px; height: 18px; }
  .count { position: absolute; margin: -26px 0 0 52px; }
  .content { padding: 32px 16px 48px; }
  .intro { margin-bottom: 24px; }
  .track-form { padding: 20px 16px; gap: 20px; }
  .form-footer { align-items: stretch; }
  .primary { width: 100%; }
  .remember { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
