:root {
  --ink: #101411;
  --ink-soft: #1b211d;
  --paper: #f1f0e9;
  --paper-bright: #faf9f4;
  --orange: #ff6b47;
  --orange-deep: #d94a2c;
  --mint: #a8f3c3;
  --muted: #70746d;
  --line: rgba(16, 20, 17, 0.14);
  --line-dark: rgba(255, 255, 255, 0.15);
  --radius: 2px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { min-height: 100vh; margin: 0; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--orange) 72%, white);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .12em;
}
.brand.dark { color: var(--ink); }
.brand-mark { width: 24px; height: 24px; position: relative; display: inline-grid; place-items: center; }
.brand-mark span { position: absolute; width: 17px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; transform: rotate(32deg); }
.brand-mark span:last-child { transform: rotate(-32deg); }

.flash-stack { position: fixed; z-index: 20; top: 20px; left: 50%; width: min(92vw, 520px); transform: translateX(-50%); }
.flash { padding: 14px 18px; border: 1px solid var(--line); background: var(--paper-bright); box-shadow: 0 18px 50px rgba(16,20,17,.17); font-size: 13px; }
.flash-alert { border-left: 4px solid var(--orange-deep); }
.flash-notice { border-left: 4px solid #3e8b5a; }
.flash-security { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-left: 4px solid var(--orange-deep); }
.flash-security a { flex: 0 0 auto; color: var(--ink); font: 750 9px var(--font-mono); text-transform: uppercase; text-underline-offset: 4px; }

.login-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(420px, .75fr);
}
.login-story {
  position: relative; height: 100%; min-height: 0; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(28px, 4vw, 64px); color: white;
  background: radial-gradient(circle at 74% 68%, rgba(255,107,71,.16), transparent 26%), var(--ink);
}
.story-grid {
  position: absolute; inset: 0; opacity: .34;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}
.story-orbit { position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.story-orbit-one { width: 68vw; height: 68vw; right: -34vw; top: -28vw; }
.story-orbit-two { width: 34vw; height: 34vw; right: -8vw; top: -9vw; border-color: rgba(255,107,71,.36); }
.story-copy { position: relative; z-index: 1; margin: auto 0; padding: 60px 0; }
.eyebrow, .section-label, .micro-label {
  margin: 0 0 24px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.6); }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(168,243,195,.09); }
.story-copy h1 { margin: 0; font-size: clamp(60px, 7.3vw, 124px); font-weight: 520; line-height: .84; letter-spacing: -.075em; }
.story-copy h1 em, .dashboard-intro h1 em, .settings-heading h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.story-copy > p:last-child { max-width: 540px; margin: 40px 0 0; color: rgba(255,255,255,.62); font-size: clamp(16px, 1.4vw, 21px); line-height: 1.55; }
.signal-card { position: relative; z-index: 1; width: min(100%, 500px); margin-left: auto; padding: 20px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.05); backdrop-filter: blur(18px); }
.signal-card > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.55); font: 9px/1.4 var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.signal-card strong { color: var(--paper-bright); }
.signal-bars { height: 44px; align-items: end !important; margin: 22px 0 14px; gap: 5px !important; }
.signal-bars span { flex: 1; background: var(--orange); }
.signal-bars span:nth-child(1) { height: 22%; opacity: .35; }.signal-bars span:nth-child(2) { height: 42%; opacity: .5; }.signal-bars span:nth-child(3) { height: 62%; opacity: .65; }.signal-bars span:nth-child(4) { height: 80%; opacity: .82; }.signal-bars span:nth-child(5) { height: 100%; }
.story-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; margin-top: 28px; color: rgba(255,255,255,.4); font: 9px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.story-footer span:nth-child(2) { width: 48px; height: 1px; background: currentColor; }

.login-panel { height: 100%; min-height: 0; overflow: hidden; display: grid; align-items: center; padding: clamp(24px, 4vh, 48px) clamp(28px, 4vw, 64px); background: radial-gradient(circle at 100% 0, rgba(255,107,71,.1), transparent 28%), var(--paper); }
.login-panel-inner { width: min(100%, 510px); margin: auto; }
.access-kicker { display: flex; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font: 9px var(--font-mono); letter-spacing: .15em; text-transform: uppercase; }
.access-copy { padding: clamp(22px, 4.5vh, 48px) 0 clamp(18px, 3vh, 28px); }
.micro-label { color: var(--orange-deep); margin-bottom: 16px; }
.access-copy h2, .auth-card h1 { margin: 0; font: 400 clamp(44px, 4.5vw, 68px)/.95 Georgia, serif; letter-spacing: -.055em; }
.access-copy > p:last-child, .card-lede { max-width: 440px; margin: 24px 0 0; color: #666a63; font-size: 14px; line-height: 1.65; }
.auth-method-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.auth-method-heading span { color: var(--muted); font: 8px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.auth-method-heading strong { font: 750 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.auth-form { display: grid; gap: clamp(10px, 1.6vh, 17px); }
.auth-form label, .compact-field { display: grid; gap: 8px; }
.auth-form label > span, .compact-field > span { color: var(--muted); font: 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.auth-form input, .compact-field input {
  width: 100%; min-height: clamp(44px, 5.4vh, 52px); padding: 0 15px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.54); color: var(--ink); transition: border-color .18s, background .18s;
}
.auth-form input:hover, .auth-form input:focus, .compact-field input:focus { border-color: rgba(16,20,17,.55); background: var(--paper-bright); }
.primary-button {
  min-height: 56px; display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px 20px; border: 1px solid var(--ink);
  border-radius: var(--radius); background: var(--ink); color: white; font-size: 13px; font-weight: 720; text-decoration: none; cursor: pointer; transition: transform .18s, background .18s, color .18s;
}
.primary-button:hover { transform: translateY(-2px); border-color: var(--orange); background: var(--orange); color: var(--ink); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.text-link { display: inline-block; margin-top: 18px; color: var(--muted); font: 10px var(--font-mono); text-underline-offset: 4px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: clamp(16px, 2.7vh, 28px) 0 clamp(12px, 2vh, 20px); color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.passkey-secondary { padding: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.28); }
.passkey-secondary > div:first-child { display: flex; align-items: center; gap: 14px; }
.method-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--orange-deep); font-size: 22px; }
.passkey-secondary h3 { margin: 0 0 5px; font: 400 23px Georgia, serif; }
.passkey-secondary p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.passkey-secondary .passkey-button { width: 100%; min-height: 44px; margin-top: 15px; color: var(--ink); }
.passkey-secondary .form-error { margin-bottom: -5px; }
.form-error { min-height: 18px; margin: 12px 0 0; color: #a4311c; font-size: 11px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: clamp(16px, 3vh, 30px); padding-top: clamp(12px, 2vh, 18px); border-top: 1px solid var(--line); color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.trust-row span::before { content: "•"; margin-right: 7px; color: #3e8b5a; }

.centered-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 70% 20%, rgba(255,107,71,.12), transparent 24%), var(--paper); }
.auth-card { width: min(100%, 520px); padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); background: var(--paper-bright); box-shadow: 0 28px 90px rgba(16,20,17,.08); }
.auth-card.wide { width: min(100%, 660px); }
.auth-card .micro-label { margin-top: 48px; }
.auth-card .card-lede { margin-bottom: 34px; }
.otp-enrollment-card { width: min(100%, 760px) !important; }
.qr-frame { width: min(100%, 390px); margin: 0 auto 28px; padding: 22px; border: 1px solid var(--line); background: white; }
.qr-frame svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; }
.otp-manual-setup { margin: 0 0 28px; padding: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.36); }
.otp-manual-setup .micro-label { margin: 0 0 8px; }
.otp-manual-setup h2 { margin: 0; font: 400 28px Georgia, serif; letter-spacing: -.025em; }
.otp-manual-setup > div:first-child > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.otp-secret-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 16px; }
.otp-secret-row code { min-width: 0; min-height: 48px; display: flex; align-items: center; padding: 10px 13px; border: 1px solid var(--line); background: var(--paper-bright); color: var(--ink); font: 700 13px/1.65 var(--font-mono); letter-spacing: .08em; overflow-wrap: anywhere; user-select: all; }
.copy-button { min-width: 105px; padding: 0 16px; border: 1px solid var(--ink); background: var(--ink); color: white; font: 700 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.copy-button:hover { border-color: var(--orange); background: var(--orange); color: var(--ink); }
.otp-secret-warning { margin: 12px 0 0; color: #8b3a28; font-size: 10px; line-height: 1.5; }

@media (max-width: 560px) {
  .centered-shell { padding: 14px; }
  .otp-secret-row { grid-template-columns: 1fr; }
  .otp-secret-row code { justify-content: center; text-align: center; }
  .copy-button { min-height: 46px; }
}

.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 30px 24px; background: var(--ink); color: white; }
.sidebar .brand { padding-bottom: 30px; border-bottom: 1px solid var(--line-dark); }
.sidebar-nav { display: grid; gap: 7px; margin-top: 38px; }
.sidebar-nav a { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border: 1px solid transparent; color: rgba(255,255,255,.5); font-size: 12px; text-decoration: none; }
.sidebar-nav a:hover { border-color: var(--line-dark); color: white; }
.sidebar-nav a[aria-current="page"] { border-color: var(--line-dark); background: rgba(255,255,255,.07); color: white; }
.sidebar-nav a span:last-child { font: 9px var(--font-mono); }
.nav-count { min-width: 24px; padding: 4px 7px; border-radius: 999px; background: rgba(255,107,71,.2); color: #ff9a80; text-align: center; }
.sidebar-coming-soon { display: grid; gap: 6px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.sidebar-coming-soon > p { margin: 0 10px 5px; color: rgba(255,255,255,.35); font: 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.sidebar-coming-soon > span { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 12px; color: rgba(255,255,255,.34); }
.sidebar-coming-soon strong { font-size: 11px; font-weight: 500; }
.sidebar-coming-soon small { padding: 4px 6px; border: 1px solid var(--line-dark); border-radius: 999px; font: 8px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.sidebar-spacer { flex: 1; }
.security-posture { display: block; padding: 16px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); color: white; text-decoration: none; }
.security-posture small { display: block; margin-bottom: 10px; color: rgba(255,255,255,.48); font: 9px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.security-posture strong { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.security-posture strong span, .enabled-state > span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.security-posture strong.security-attention span { background: var(--orange); }
.dashboard-main { min-width: 0; padding: 0 clamp(24px, 4vw, 68px) 70px; }
.topbar { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.topbar > p { color: var(--muted); font: 10px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.account { display: flex; align-items: center; gap: 13px; }
.account > div { text-align: right; }.account strong,.account small { display: block; }.account strong { font-size: 12px; }.account small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.inquiry-notification { min-height: 42px; display: grid; grid-template-columns: auto auto; align-items: center; gap: 1px 7px; padding: 6px 10px; border: 1px solid rgba(217,74,44,.35); background: #fff6f2; color: var(--ink); text-decoration: none; }
.inquiry-notification > span { width: 7px; height: 7px; overflow: hidden; border-radius: 50%; color: var(--orange-deep); line-height: 7px; }
.inquiry-notification > strong { color: #8f2e19; font: 750 12px var(--font-mono); }
.inquiry-notification > small { grid-column: 1 / -1; margin: 0; color: #6d3b30; font: 7px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--ink); font: 800 10px var(--font-mono); text-decoration: none; }
.sign-out { padding: 0; border: 0; background: transparent; color: var(--muted); font: 9px var(--font-mono); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.dashboard-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; padding: clamp(54px, 8vw, 100px) 0 50px; }
.section-label { color: var(--orange-deep); }
.dashboard-intro h1, .settings-heading h1 { margin: 0; font-size: clamp(52px, 6vw, 92px); font-weight: 520; line-height: .9; letter-spacing: -.07em; }
.intro-note { align-self: end; padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.intro-note strong { color: var(--ink); font: 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric-grid article { min-height: 155px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.28); }
.metric-grid article > p { margin: 0; color: var(--muted); font: 9px var(--font-mono); letter-spacing: .09em; text-transform: uppercase; }
.metric-grid article > div { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 38px; }
.metric-grid strong { font-size: 41px; font-weight: 560; line-height: 1; letter-spacing: -.06em; }
.metric-grid span { color: #3e7951; font: 700 8px var(--font-mono); }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-top: 18px; }
.panel { border: 1px solid var(--line); background: var(--paper-bright); }
.panel > header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); }
.panel h2 { margin: 0; font-size: 13px; }.panel header span { color: var(--muted); font: 8px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.workflow-list { list-style: none; margin: 0; padding: 0; }
.workflow-list li { min-height: 80px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.workflow-list li:last-child { border: 0; }.workflow-list li > span { color: var(--orange-deep); font: 10px var(--font-mono); }
.workflow-list strong,.workflow-list small { display: block; }.workflow-list strong { margin-bottom: 5px; font-size: 13px; }.workflow-list small { color: var(--muted); font-size: 10px; }
.workflow-list mark { padding: 7px 9px; border-radius: 999px; background: #e3eadf; color: #42614a; font: 700 8px var(--font-mono); text-transform: uppercase; }.workflow-list mark.attention { background: #ffdfd5; color: #9f321b; }
.security-panel { display: flex; flex-direction: column; }.security-orbit { position: relative; width: 190px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; margin: auto; border: 1px solid var(--line); border-radius: 50%; text-align: center; }
.security-orbit > span { position: absolute; inset: 17%; border: 1px solid var(--line); border-radius: 50%; }.security-orbit > span:nth-child(2) { inset: 34%; border-color: var(--orange); }
.security-orbit strong,.security-orbit small { position: relative; z-index: 1; display: block; }.security-orbit strong { font-size: 34px; }.security-orbit small { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.panel-link { display: block; margin: 20px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--ink); font-size: 11px; text-decoration: none; }

.customer-main { padding-bottom: 90px; }
.module-heading {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .55fr); align-items: end; gap: clamp(36px, 7vw, 110px);
  padding: clamp(54px, 8vw, 96px) 0 48px;
}
.module-heading h1, .record-heading h1 { margin: 0; font-size: clamp(58px, 7vw, 104px); font-weight: 520; line-height: .86; letter-spacing: -.075em; }
.module-heading h1 em, .record-heading h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.module-heading-actions { padding-left: 24px; border-left: 1px solid var(--line); }
.module-heading-actions p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.compact-button { width: fit-content; min-width: 150px; min-height: 48px; padding-inline: 22px; }

.directory-toolbar {
  display: grid; grid-template-columns: 180px 180px minmax(0, 1fr); align-items: stretch; margin-bottom: 18px; border: 1px solid var(--line);
  background: rgba(255,255,255,.28);
}
.directory-toolbar > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-right: 1px solid var(--line); }
.directory-toolbar small { color: var(--muted); font: 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.directory-toolbar strong { font-size: 27px; font-weight: 560; letter-spacing: -.05em; }
.directory-search { display: flex; align-items: center; gap: 10px; padding: 12px; }
.directory-search input[type="search"] {
  min-width: 0; flex: 1; min-height: 44px; padding: 0 14px; border: 1px solid transparent; background: transparent; color: var(--ink);
}
.directory-search input[type="search"]:focus { border-color: var(--line); background: var(--paper-bright); }
.directory-search .text-link { margin: 0 8px 0 0; }

.vip-section { margin-bottom: 18px; border: 1px solid rgba(255,107,71,.32); background: color-mix(in srgb, var(--orange) 3%, var(--paper-bright)); }
.vip-section > header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 22px; border-bottom: 1px solid rgba(255,107,71,.24); }
.vip-section > header .section-label { margin: 0 0 7px; }
.vip-section > header h2 { margin: 0; font: 400 30px Georgia, serif; letter-spacing: -.035em; }
.vip-section > header > span { color: var(--muted); font: 8px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.vip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vip-card { min-width: 0; padding: 22px; border-right: 1px solid rgba(255,107,71,.24); }
.vip-card:nth-child(3n) { border-right: 0; }
.vip-card-topline, .customer-flags { display: flex; align-items: center; gap: 7px; }
.vip-badge, .type-badge {
  display: inline-flex; align-items: center; width: fit-content; min-height: 24px; padding: 4px 8px; border: 1px solid var(--line);
  color: var(--muted); font: 750 8px var(--font-mono); letter-spacing: .07em; text-transform: uppercase;
}
.vip-badge { border-color: rgba(217,74,44,.38); background: #ffdfd5; color: #9f321b; }
.vip-card h3 { margin: 22px 0 8px; font: 400 28px Georgia, serif; letter-spacing: -.035em; }
.vip-card h3 a { color: var(--ink); text-decoration: none; }
.vip-card h3 a:hover { color: var(--orange-deep); }
.vip-card > p { min-height: 32px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.vip-card dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 22px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.vip-card dl div { padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vip-card dt { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.vip-card dd { margin: 9px 0 0; font-size: 24px; font-weight: 560; }
.vip-card dl .needs-attention { background: #ffebe5; color: #9f321b; }
.vip-card footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vip-card footer span { color: var(--muted); font: 8px var(--font-mono); line-height: 1.5; }
.vip-card footer a { flex: 0 0 auto; color: var(--ink); font-size: 10px; font-weight: 750; text-underline-offset: 4px; }
.vip-empty { display: grid; gap: 7px; padding: 24px 22px; }
.vip-empty strong { font-size: 12px; }
.vip-empty span { color: var(--muted); font-size: 10px; }

.directory-panel, .record-panel { border: 1px solid var(--line); background: var(--paper-bright); }
.directory-panel > header, .record-panel > header {
  min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 22px; border-bottom: 1px solid var(--line);
}
.directory-panel > header div { display: flex; align-items: baseline; gap: 14px; }
.directory-panel h2, .record-panel h2 { margin: 0; font-size: 13px; }
.directory-panel header span, .record-panel header span { color: var(--muted); font: 8px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.customer-table-wrap { overflow-x: auto; }
.customer-table { width: 100%; border-collapse: collapse; }
.customer-table th {
  padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font: 8px var(--font-mono);
  letter-spacing: .09em; text-align: left; text-transform: uppercase;
}
.customer-table td { min-width: 130px; padding: 18px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 11px; vertical-align: middle; }
.customer-table tbody tr:last-child td { border-bottom: 0; }
.customer-table tbody tr:hover { background: color-mix(in srgb, var(--orange) 4%, transparent); }
.customer-table td:first-child { min-width: 190px; }
.customer-table td strong, .customer-table td small { display: block; }
.customer-table td strong { margin-bottom: 6px; font-size: 13px; }
.customer-table td small { margin-top: 6px; color: var(--muted); font: 9px var(--font-mono); }
.customer-table td a:not(.quiet-button) { color: var(--ink); text-underline-offset: 4px; }
.customer-table time { white-space: nowrap; color: var(--muted); font: 9px var(--font-mono); }
.row-actions { min-width: 225px !important; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.row-actions form { margin: 0; }
.row-actions .quiet-button { display: inline-flex; align-items: center; text-decoration: none; }
.directory-empty { min-height: 390px; display: grid; place-items: center; align-content: center; padding: 50px 24px; text-align: center; }
.directory-empty > span { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 50%; color: var(--orange-deep); font-size: 28px; }
.directory-empty h2 { margin: 0; font: 400 35px Georgia, serif; letter-spacing: -.035em; }
.directory-empty p { max-width: 480px; margin: 14px 0 26px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.record-heading { max-width: 920px; padding: clamp(54px, 8vw, 92px) 0 46px; }
.record-heading > p:last-child { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.record-heading > p:last-child strong { color: var(--ink); }
.customer-form { padding: clamp(24px, 4vw, 44px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form-field { min-width: 0; display: grid; gap: 9px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field > span { display: flex; justify-content: space-between; color: var(--muted); font: 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.form-field > span b { color: var(--orange-deep); font-size: 8px; }
.form-field input, .form-field textarea, .form-field select {
  min-width: 0; width: 100%; min-height: 52px; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.54); color: var(--ink); resize: vertical;
}
.form-field input:hover, .form-field input:focus, .form-field textarea:hover, .form-field textarea:focus, .form-field select:hover, .form-field select:focus { border-color: rgba(16,20,17,.55); background: white; }
.priority-field { min-height: 78px; display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid rgba(255,107,71,.32); background: #fff6f2; cursor: pointer; }
.priority-field input { width: 18px; height: 18px; accent-color: var(--orange-deep); }
.priority-field span { display: grid; gap: 5px; }
.priority-field strong { font-size: 11px; }
.priority-field small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 28px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-actions .text-link { margin: 0; }
.form-errors { margin-bottom: 28px; padding: 17px 20px; border-left: 4px solid var(--orange-deep); background: #ffebe5; color: #7f2c1b; font-size: 11px; }
.form-errors strong { display: block; margin-bottom: 8px; }
.form-errors ul { margin: 0; padding-left: 18px; }

.record-breadcrumb { display: flex; align-items: center; gap: 9px; padding: 24px 0 0; color: var(--muted); font: 9px var(--font-mono); text-transform: uppercase; }
.record-breadcrumb a { color: var(--ink); text-underline-offset: 4px; }
.customer-profile-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 36px; padding: clamp(48px, 7vw, 84px) 0 44px; }
.customer-profile-heading h1 { max-width: 900px; margin: 18px 0 0; font-size: clamp(52px, 6vw, 88px); font-weight: 520; line-height: .88; letter-spacing: -.07em; }
.customer-profile-heading h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.customer-profile-heading > div:first-child > p { margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.customer-heading-actions { display: flex; align-items: center; gap: 20px; padding-bottom: 4px; }
.customer-heading-actions .quiet-button { display: inline-flex; align-items: center; text-decoration: none; }
.customer-heading-actions .text-link { margin: 0; }

.customer-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.customer-summary-grid article { min-height: 142px; display: flex; flex-direction: column; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.28); }
.customer-summary-grid small { color: var(--muted); font: 8px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.customer-summary-grid strong { margin: auto 0 7px; font-size: 36px; font-weight: 560; letter-spacing: -.055em; }
.customer-summary-grid code { margin: auto 0 12px; font: 700 18px var(--font-mono); letter-spacing: .04em; }
.customer-summary-grid span { color: var(--muted); font-size: 9px; }
.customer-summary-grid .summary-attention { background: #ffebe5; }
.customer-summary-grid .summary-attention strong, .customer-summary-grid .summary-attention span { color: #9f321b; }

.customer-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; margin-top: 18px; }
.shipment-panel, .customer-contact-panel { border: 1px solid var(--line); background: var(--paper-bright); }
.shipment-panel > header, .customer-contact-panel > header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.shipment-panel > header div { display: flex; align-items: baseline; gap: 14px; }
.shipment-panel h2, .customer-contact-panel h2 { margin: 0; font-size: 13px; }
.shipment-panel header span, .customer-contact-panel header span { color: var(--muted); font: 8px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.shipment-list { list-style: none; margin: 0; padding: 0; }
.shipment-list li { padding: 22px; border-bottom: 1px solid var(--line); }
.shipment-list li:last-child { border-bottom: 0; }
.shipment-list li.shipment-attention { box-shadow: inset 4px 0 var(--orange-deep); background: #fff8f5; }
.shipment-status-line, .shipment-identity { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.shipment-status { display: inline-flex; min-height: 25px; align-items: center; padding: 4px 8px; border-radius: 999px; background: #e6e8e4; color: #4e544e; font: 750 8px var(--font-mono); text-transform: uppercase; }
.status-in-transit, .status-shipped { background: #e2e9f4; color: #35577d; }
.status-delivered { background: #e3eadf; color: #42614a; }
.status-exception { background: #ffdfd5; color: #9f321b; }
.status-cancelled { background: #e8e3e1; color: #6d5550; }
.shipment-status-line time { color: var(--muted); font: 8px var(--font-mono); }
.shipment-identity { margin-top: 18px; }
.shipment-identity h3 { margin: 0 0 7px; font-size: 14px; }
.shipment-identity p { margin: 0; color: var(--muted); font-size: 10px; }
.shipment-identity > div:last-child { text-align: right; }
.shipment-identity small, .shipment-identity strong { display: block; }
.shipment-identity small { margin-bottom: 7px; color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.shipment-identity strong { font-size: 10px; }
.shipment-alert { margin: 16px 0 0; padding-top: 13px; border-top: 1px solid rgba(217,74,44,.24); color: #9f321b; font: 750 9px var(--font-mono); text-transform: uppercase; }
.shipment-empty { min-height: 330px; display: grid; place-items: center; align-content: center; padding: 40px 24px; text-align: center; }
.shipment-empty > span { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 50%; color: var(--orange-deep); font-size: 24px; }
.shipment-empty h3 { margin: 0; font: 400 31px Georgia, serif; }
.shipment-empty p { max-width: 420px; margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.customer-contact-panel dl { margin: 0; padding: 0 22px; }
.customer-contact-panel dl div { padding: 17px 0; border-bottom: 1px solid var(--line); }
.customer-contact-panel dt { margin-bottom: 7px; color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.customer-contact-panel dd { margin: 0; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.customer-contact-panel dd a { color: var(--ink); text-underline-offset: 4px; }
.customer-notes { margin: 22px; padding: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.4); }
.customer-notes > small { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.customer-notes p { margin: 12px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.65; }

.settings-shell { min-height: 100vh; padding: 0 clamp(24px, 6vw, 90px) 80px; }
.settings-topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.settings-topbar .text-link { margin: 0; }
.settings-heading { display: grid; grid-template-columns: 1fr .45fr; align-items: end; gap: 50px; padding: 80px 0 52px; }
.settings-heading .section-label { grid-column: 1/-1; margin-bottom: -24px; }
.settings-heading > p:last-child { margin: 0; padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.65; }
.settings-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.setting-card { display: flex; flex-direction: column; min-height: 520px; padding: 30px; border: 1px solid var(--line); background: var(--paper-bright); }
.setting-number { margin-bottom: 48px; color: var(--orange-deep); font: 10px var(--font-mono); }
.setting-card h2 { margin: 0 0 13px; font: 400 38px Georgia, serif; letter-spacing: -.04em; }.setting-card > div > p:last-child { max-width: 440px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.credential-list { margin: 28px 0 22px; border-top: 1px solid var(--line); }
.passkey-compatibility { margin-top: 23px; padding: 16px; border: 1px solid var(--line); background: #f4f2ea; }
.passkey-compatibility small { display: block; margin-bottom: 11px; color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.passkey-compatibility > div { display: flex; flex-wrap: wrap; gap: 7px; }
.passkey-compatibility > div span { padding: 6px 8px; border: 1px solid var(--line); background: var(--paper-bright); font: 750 8px var(--font-mono); }
.passkey-compatibility p { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.credential-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.credential-list strong,.credential-list small { display: block; }.credential-list strong { font-size: 12px; }.credential-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.empty-state { padding: 18px 0; color: var(--muted); font-size: 11px; }
.compact-field { margin-bottom: 14px; }
.setting-card .primary-button { margin-top: auto; }
.quiet-button { min-height: 34px; padding: 7px 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 9px var(--font-mono); cursor: pointer; }
.quiet-button.danger { color: #a4311c; border-color: rgba(164,49,28,.3); }
.enabled-state { display: flex; align-items: center; gap: 10px; margin: 28px 0; padding: 17px; border: 1px solid var(--line); font-size: 12px; }.enabled-state.muted > span { background: var(--muted); }
.auth-form.compact { margin-top: auto; }

.type-badge.category-slate { background: #e6e8e4; color: #4e544e; }
.type-badge.category-blue { border-color: #bbcce2; background: #e2e9f4; color: #35577d; }
.type-badge.category-green { border-color: #bdd2b8; background: #e3eadf; color: #42614a; }
.type-badge.category-amber { border-color: #e4cc99; background: #f7ebcf; color: #765814; }
.type-badge.category-orange { border-color: rgba(217,74,44,.35); background: #ffdfd5; color: #9f321b; }
.type-badge.category-violet { border-color: #cbbde0; background: #eee7f6; color: #634a82; }

.form-page-heading { max-width: 900px; padding: clamp(52px, 7vw, 86px) 0 42px; }
.form-page-heading h1, .shipment-create-heading h1 { margin: 0; font-size: clamp(50px, 6vw, 84px); font-weight: 520; line-height: .9; letter-spacing: -.07em; }
.form-page-heading h1 em, .shipment-create-heading h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.form-page-heading > p:last-child { max-width: 660px; margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.form-panel { border: 1px solid var(--line); background: var(--paper-bright); }
.verification-field small { color: var(--muted); font-size: 9px; line-height: 1.5; }

.settings-workspace { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 18px; }
.settings-panel { border: 1px solid var(--line); background: var(--paper-bright); }
.settings-panel > header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.settings-panel > header .section-label { margin: 0 0 7px; }
.settings-panel > header h2 { margin: 0; font: 400 31px Georgia, serif; letter-spacing: -.035em; }
.settings-panel > header > span { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.category-list { display: grid; }
.category-row { min-height: 84px; display: grid; grid-template-columns: 14px minmax(150px, 1fr) auto auto; align-items: center; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.category-row:last-child { border-bottom: 0; }
.category-row > div:nth-child(2) strong, .category-row > div:nth-child(2) small { display: block; }
.category-row > div:nth-child(2) strong { margin-bottom: 6px; font-size: 12px; }
.category-row > div:nth-child(2) small { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.category-swatch { width: 12px; height: 42px; background: #9ca39c; }
.category-swatch.category-blue { background: #6e91bd; }.category-swatch.category-green { background: #6d956f; }
.category-swatch.category-amber { background: #c29638; }.category-swatch.category-orange { background: var(--orange); }
.category-swatch.category-violet { background: #8a6cac; }
.category-row .row-actions { min-width: 0 !important; }
.compact-form { padding: 24px; }
.compact-form .form-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
.compact-form .form-actions { margin-top: 24px; }

.team-list { display: grid; }
.team-row { min-height: 86px; display: grid; grid-template-columns: 42px minmax(180px, 1fr) auto auto auto; align-items: center; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.team-row:last-child { border-bottom: 0; }
.team-row > div:nth-child(2) strong, .team-row > div:nth-child(2) small { display: block; }
.team-row > div:nth-child(2) strong { margin-bottom: 5px; font-size: 12px; }
.team-row > div:nth-child(2) small { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.role-badge, .account-state { padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); font: 750 8px var(--font-mono); text-transform: uppercase; }
.account-state { border-color: #bdd2b8; background: #e3eadf; color: #42614a; }
.account-state.inactive { border-color: rgba(164,49,28,.25); background: #ffebe5; color: #9f321b; }
.team-row .row-actions { min-width: 0 !important; }

.shipment-create-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .55fr); align-items: end; gap: clamp(36px, 7vw, 100px); padding: clamp(50px, 7vw, 82px) 0 42px; }
.shipment-create-heading > div:first-child > p:last-child { margin: 22px 0 0; color: var(--muted); font-size: 12px; }
.shipment-create-heading > div:first-child > p:last-child strong { color: var(--ink); }
.shipment-draft-note { padding: 20px 0 2px 24px; border-left: 1px solid var(--line); }
.shipment-draft-note small, .shipment-date-guidance small, .sketch-next small { color: var(--orange-deep); font: 750 8px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.shipment-draft-note p, .shipment-date-guidance p, .sketch-next p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.shipment-create-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 18px; align-items: start; }
.shipment-form { padding-top: 28px; }
.form-section-label { display: flex; align-items: center; gap: 14px; margin: 30px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.form-section-label:first-of-type { margin-top: 0; }
.form-section-label > span { color: var(--orange-deep); font: 10px var(--font-mono); }
.form-section-label strong, .form-section-label small { display: block; }
.form-section-label strong { font-size: 12px; }.form-section-label small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.shipment-date-guidance { min-height: 78px; padding: 15px; border: 1px dashed var(--line); }
.shipment-sketch { position: sticky; top: 18px; border: 1px solid var(--line); background: var(--ink); color: white; }
.shipment-sketch > header { padding: 28px 26px; border-bottom: 1px solid var(--line-dark); }
.shipment-sketch .section-label { margin-bottom: 10px; color: var(--orange); }
.shipment-sketch h2 { margin: 0; font: 400 32px Georgia, serif; }
.shipment-sketch ol { list-style: none; margin: 0; padding: 0; }
.shipment-sketch li { min-height: 84px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 14px; padding: 14px 26px; border-bottom: 1px solid var(--line-dark); color: rgba(255,255,255,.48); }
.shipment-sketch li > span { font: 9px var(--font-mono); }
.shipment-sketch li strong, .shipment-sketch li small { display: block; }
.shipment-sketch li strong { font-size: 12px; }.shipment-sketch li small { margin-top: 5px; font-size: 8px; }
.shipment-sketch li.current { box-shadow: inset 4px 0 var(--orange); background: rgba(255,107,71,.08); color: white; }
.sketch-next { padding: 26px; }.sketch-next p { color: rgba(255,255,255,.5); }

.overview-main { padding-bottom: 90px; }
.overview-intro { padding-bottom: 54px; }
.world-clock-panel, .rate-board { border: 1px solid var(--line); background: var(--paper-bright); }
.world-clock-panel > header, .rate-board > header {
  min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.world-clock-panel > header .section-label, .rate-board > header .section-label { margin: 0 0 7px; }
.world-clock-panel h2, .rate-board h2 { margin: 0; font: 400 31px Georgia, serif; letter-spacing: -.035em; }
.world-clock-panel > header > span { color: var(--muted); font: 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.world-clock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.world-clock-grid article { min-height: 190px; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.world-clock-grid article:nth-child(3n) { border-right: 0; }
.world-clock-grid article:nth-last-child(-n+3) { border-bottom: 0; }
.world-clock-grid article.home-clock { background: var(--ink); color: white; }
.world-clock-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.world-clock-grid article > div span, .world-clock-grid article small { font: 8px var(--font-mono); text-transform: uppercase; }
.world-clock-grid article > div span { color: var(--orange-deep); }.world-clock-grid article small { color: var(--muted); }
.world-clock-grid .home-clock small { color: rgba(255,255,255,.48); }
.world-clock-grid h3 { margin: 30px 0 8px; font-size: 12px; }
.world-clock-grid time { display: block; font: 500 clamp(29px, 3.2vw, 43px)/1 var(--font-mono); letter-spacing: -.065em; }
.world-clock-grid p { margin: 12px 0 0; color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.world-clock-grid .home-clock p { color: rgba(255,255,255,.48); }

.rate-board { margin-top: 18px; }
.rate-source { display: flex; align-items: center; gap: 12px; }
.rate-source span, .rate-source a { font: 8px var(--font-mono); text-transform: uppercase; }
.rate-source span { padding: 7px 9px; background: #e3eadf; color: #42614a; }
.rate-source span.source-warning { background: #f7ebcf; color: #765814; }
.rate-source a { color: var(--muted); text-underline-offset: 4px; }
.rate-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.rate-grid article { min-width: 0; min-height: 160px; display: flex; flex-direction: column; padding: 20px; border-right: 1px solid var(--line); }
.rate-grid article:last-child { border-right: 0; }
.rate-grid article > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rate-grid article strong { font-size: 13px; }.rate-grid article small { color: var(--muted); font-size: 8px; text-align: right; }
.rate-grid data { margin: auto 0 9px; overflow: hidden; font: 550 clamp(20px, 2vw, 29px) var(--font-mono); letter-spacing: -.055em; text-overflow: ellipsis; }
.rate-grid article > span { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.rate-board > footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 22px; border-top: 1px solid var(--line); color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.rate-board > footer p { margin: 0; }
.overview-lower-grid { margin-top: 18px; }
.tools-orbit { width: 190px; aspect-ratio: 1; display: grid; place-items: center; align-content: center; gap: 5px; margin: auto; border: 1px solid var(--line); border-radius: 50%; }
.tools-orbit > span { color: var(--orange-deep); font-size: 20px; }.tools-orbit strong { font-size: 38px; }.tools-orbit small { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }

.manual-rate-panel { margin-top: 18px; }
.manual-rate-layout { display: grid; grid-template-columns: 1fr minmax(340px, .65fr); align-items: end; gap: 50px; padding: 28px 22px; }
.manual-rate-layout > div > strong { font: 400 27px Georgia, serif; }
.manual-rate-layout > div > p { max-width: 660px; margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.manual-rate-form { display: flex; align-items: end; gap: 12px; }
.manual-rate-form .form-field { flex: 1; }.manual-rate-form .primary-button { flex: 0 0 auto; }

.shipment-operation-form { display: grid; gap: 18px; padding-bottom: 72px; }
.shipment-section { padding: 24px; }
.shipment-section .form-section-label { margin-top: 0; }
.shipment-identity-grid, .logistics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shipment-draft-note strong { display: block; margin: 9px 0; font: 600 20px var(--font-mono); color: var(--orange-deep); }
.operation-section-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.operation-section-header .form-section-label { margin-bottom: 0; }
.nested-records { display: grid; gap: 14px; }
.nested-record { padding: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.34); }
.nested-record > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.nested-record > header strong { font: 9px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.danger-link { border: 0; background: transparent; color: #a34232; cursor: pointer; }
.check-field { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid var(--line); cursor: pointer; }
.check-field input { width: 16px; height: 16px; accent-color: var(--orange-deep); }
.check-field span { font: 9px var(--font-mono); text-transform: uppercase; }
.shipment-form-actions { padding: 22px 0 0; }
.shipment-detail-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding: 20px 0 40px; }
.shipment-detail-heading h1 { margin: 10px 0; font: 400 clamp(45px, 5vw, 72px) Georgia, serif; letter-spacing: -.06em; }
.shipment-detail-heading h1 em { color: var(--orange); }
.shipment-detail-heading p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.shipment-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper-bright); }
.shipment-reference-grid article { min-width: 0; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shipment-reference-grid article:nth-child(3n) { border-right: 0; }
.shipment-reference-grid article:nth-last-child(-n+3) { border-bottom: 0; }
.shipment-reference-grid small, .shipment-reference-grid strong { display: block; }
.shipment-reference-grid small { margin-bottom: 10px; color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.shipment-reference-grid strong { overflow-wrap: anywhere; font-size: 12px; }
.logistics-panel { margin-top: 18px; border: 1px solid var(--line); background: var(--paper-bright); }
.logistics-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.logistics-panel > header .section-label { margin: 0 0 7px; }
.logistics-panel h2 { margin: 0; font: 400 28px Georgia, serif; letter-spacing: -.035em; }
.logistics-panel > header > span { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.logistics-table-wrap { overflow-x: auto; }
.logistics-table { width: 100%; min-width: 1120px; border-collapse: collapse; white-space: nowrap; }
.logistics-table th, .logistics-table td { padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; }
.logistics-table th:last-child, .logistics-table td:last-child { border-right: 0; }
.logistics-table tbody tr:last-child td { border-bottom: 0; }
.logistics-table th { background: #f1f0ea; color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.logistics-table td { font: 9px var(--font-mono); }
.logistics-table .empty-cell { padding: 28px; color: var(--muted); text-align: center; }
.shipment-notes-panel > div { padding: 22px; color: var(--muted); font-size: 11px; line-height: 1.7; }

.tools-heading { padding-bottom: 42px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-card, .currency-converter { border: 1px solid var(--line); background: var(--paper-bright); }
.tool-card > header, .currency-converter > header {
  min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 22px; border-bottom: 1px solid var(--line);
}
.tool-card > header .section-label, .currency-converter > header .section-label { margin: 0 0 7px; }
.tool-card h2, .currency-converter h2 { margin: 0; font: 400 29px Georgia, serif; letter-spacing: -.035em; }
.tool-card > header > span, .currency-converter > header > span { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.tool-body { padding: 24px; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.calendar-weekdays span { color: var(--muted); font: 8px var(--font-mono); text-align: center; text-transform: uppercase; }
.calendar-days { padding: 12px; }
.calendar-days time { min-height: 55px; display: grid; place-items: center; border: 1px solid transparent; font: 10px var(--font-mono); }
.calendar-days time.outside { color: rgba(112,116,109,.35); }
.calendar-days time.today { border-color: var(--orange); background: #fff1eb; color: var(--orange-deep); font-weight: 800; }
.date-results { display: grid; margin-top: 22px; border-top: 1px solid var(--line); }
.date-results > div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.date-results small, .date-results strong { display: block; }
.date-results small { margin-bottom: 7px; color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.date-results strong { font-size: 12px; }
.time-converter-tool .tool-body > .form-grid { margin-bottom: 22px; }
.time-conversion-results { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.time-conversion-results > div { padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.time-conversion-results strong, .time-conversion-results time { display: block; }
.time-conversion-results strong { margin-bottom: 7px; font-size: 10px; }
.time-conversion-results time { color: var(--muted); font: 9px var(--font-mono); }
.calculator-tool { background: var(--ink); color: white; }
.calculator-tool > header { border-bottom-color: var(--line-dark); }
.calculator-tool .section-label { color: var(--orange); }
.calculator-tool > header .quiet-button { border-color: var(--line-dark); color: rgba(255,255,255,.55); }
.calculator-display { min-height: 128px; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; padding: 24px; border-bottom: 1px solid var(--line-dark); }
.calculator-display small { color: rgba(255,255,255,.42); font: 9px var(--font-mono); }
.calculator-display output { max-width: 100%; margin-top: 9px; overflow: hidden; font: 500 44px var(--font-mono); letter-spacing: -.06em; text-overflow: ellipsis; }
.calculator-keys { display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px; }
.calculator-keys button { min-height: 58px; border: 1px solid var(--line-dark); background: transparent; color: white; cursor: pointer; }
.calculator-keys button:hover { background: rgba(255,255,255,.07); }
.calculator-keys button.operator-key { color: var(--orange); }.calculator-keys button.equals-key { background: var(--orange); color: var(--ink); font-weight: 800; }
.currency-tool { display: grid; grid-template-columns: minmax(360px, .7fr) minmax(0, 1.3fr); gap: 18px; margin-top: 18px; }
.currency-converter-form { display: grid; grid-template-columns: 1fr 1fr 28px 1fr; align-items: end; gap: 14px; padding: 24px; }
.conversion-arrow { min-height: 52px; display: grid; place-items: center; color: var(--orange-deep); }
.currency-result { grid-column: 1 / -1; margin-top: 10px; padding: 22px; border: 1px solid var(--line); background: rgba(255,255,255,.35); }
.currency-result small, .currency-result output, .currency-result span { display: block; }
.currency-result small { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.currency-result output { margin: 18px 0 8px; font: 500 40px var(--font-mono); letter-spacing: -.055em; overflow-wrap: anywhere; }
.currency-result span { color: var(--muted); font: 9px var(--font-mono); }
.rate-board-compact { margin-top: 0; }
.rate-board-compact .rate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rate-board-compact .rate-grid article { min-height: 132px; border-bottom: 1px solid var(--line); }
.rate-board-compact .rate-grid article:nth-child(3n) { border-right: 0; }
.rate-board-compact .rate-grid article:nth-last-child(-n+3) { border-bottom: 0; }
.rate-board-compact .rate-grid data { font-size: 20px; }

.work-queues { margin: 0 0 18px; scroll-margin-top: 18px; }
.work-queues-heading { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.work-queues-heading .section-label { margin-bottom: 8px; }
.work-queues-heading h2 { margin: 0; font: 400 clamp(34px, 4vw, 52px) Georgia, serif; letter-spacing: -.045em; }
.work-queues-heading > p { max-width: 480px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.work-queue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.work-queue-card { min-width: 0; border: 1px solid var(--line); background: var(--paper-bright); }
.work-queue-card > header, .customer-work-panel > header, .activity-panel > header { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.work-queue-card > header h3, .customer-work-panel > header h2, .activity-panel > header h2 { margin: 0; font-size: 13px; }
.work-queue-card > header span, .customer-work-panel > header > span, .activity-panel > header > span { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.work-queue-items { display: grid; }
.work-item-card { min-width: 0; padding: 18px 19px; border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 transparent; }
.work-item-card:last-child { border-bottom: 0; }
.work-item-card.priority-high { box-shadow: inset 3px 0 #e79248; }
.work-item-card.priority-urgent { box-shadow: inset 3px 0 var(--orange-deep); background: #fff8f5; }
.work-item-card-topline, .work-item-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-priority, .work-status { display: inline-flex; align-items: center; min-height: 22px; padding: 4px 7px; border-radius: 999px; background: #e6e8e4; color: #4e544e; font: 750 7px var(--font-mono); text-transform: uppercase; }
.work-item-card.priority-high .work-priority { background: #fff0df; color: #97551c; }
.work-item-card.priority-urgent .work-priority { background: #ffdfd5; color: #9f321b; }
.work-status.status-in-progress { background: #e2e9f4; color: #35577d; }
.work-status.status-waiting { background: #fff0ce; color: #755a20; }
.work-status.status-completed { background: #e3eadf; color: #42614a; }
.work-item-card h3 { margin: 15px 0 7px; font-size: 13px; line-height: 1.35; }
.work-item-card h3 a, .work-item-card p a { color: inherit; text-underline-offset: 4px; }
.work-item-card p { margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.work-item-card-meta { margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font: 8px var(--font-mono); }
.work-item-card-meta time { text-align: right; }
.work-queue-empty, .activity-empty { min-height: 100px; display: grid; place-items: center; padding: 24px; color: var(--muted); font-size: 10px; text-align: center; }
.customer-work-panel { margin-top: 18px; border: 1px solid var(--line); background: var(--paper-bright); }
.customer-work-panel > header .section-label, .activity-panel > header .section-label { margin: 0 0 7px; }
.customer-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.customer-work-grid .work-item-card { border-right: 1px solid var(--line); }
.customer-work-grid .work-item-card:nth-child(3n) { border-right: 0; }
.work-item-form { padding: 0 0 72px; }
.work-item-form-panel { padding: 24px; }
.work-detail-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; padding: 38px 0 42px; }
.work-detail-heading h1 { max-width: 850px; margin: 12px 0; font-size: clamp(48px, 6vw, 78px); font-weight: 520; line-height: .9; letter-spacing: -.065em; }
.work-detail-heading h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.work-detail-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.work-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .75fr); gap: 18px; }
.work-detail-panel, .activity-panel { border: 1px solid var(--line); background: var(--paper-bright); }
.work-detail-panel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.work-detail-panel dl div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-detail-panel dt, .work-detail-panel section > small { display: block; margin-bottom: 8px; color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.work-detail-panel dd { margin: 0; font-size: 11px; }
.work-detail-panel section { padding: 22px; border-bottom: 1px solid var(--line); }
.work-detail-panel section:last-child { border-bottom: 0; }
.work-detail-panel section p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.work-detail-panel .private-notes { background: #fff8f5; }
.activity-panel { margin-top: 18px; }
.work-detail-grid .activity-panel { margin-top: 0; }
.activity-timeline { list-style: none; margin: 0; padding: 0; }
.activity-timeline li { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.activity-timeline li:last-child { border-bottom: 0; }
.activity-marker { width: 8px; height: 8px; margin-top: 3px; border: 2px solid var(--paper-bright); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.activity-timeline strong { display: block; font-size: 10px; line-height: 1.45; }
.activity-timeline p { margin: 6px 0 0; color: var(--muted); font-size: 8px; }
.activity-timeline p a { color: inherit; }
.activity-timeline time { color: var(--muted); font: 8px var(--font-mono); white-space: nowrap; }

.inquiry-reminder-panel, .customer-inquiry-panel, .inquiry-list-panel { margin: 0 0 18px; border: 1px solid var(--line); background: var(--paper-bright); }
.customer-inquiry-panel { margin-top: 18px; }
.inquiry-reminder-panel > header, .customer-inquiry-panel > header, .inquiry-list-panel > header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.inquiry-reminder-panel > header .section-label, .customer-inquiry-panel > header .section-label, .inquiry-list-panel > header .section-label { margin: 0 0 7px; }
.inquiry-reminder-panel > header h2, .customer-inquiry-panel > header h2, .inquiry-list-panel > header h2 { margin: 0; font-size: 15px; }
.customer-inquiry-panel > header > span, .inquiry-list-panel > header > span { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.inquiry-reminder-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.inquiry-reminder-summary div { min-height: 78px; display: grid; align-content: center; gap: 4px; padding: 14px 20px; border-right: 1px solid var(--line); }
.inquiry-reminder-summary div:last-child { border-right: 0; }
.inquiry-reminder-summary strong { font: 500 28px var(--font-mono); }
.inquiry-reminder-summary span { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.inquiry-reminder-summary .has-alert { background: #fff0ea; color: #8f2e19; }
.inquiry-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inquiry-card { min-width: 0; padding: 18px 19px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 transparent; }
.inquiry-card:nth-child(3n) { border-right: 0; }
.inquiry-card.priority-high { box-shadow: inset 3px 0 #e79248; }
.inquiry-card.priority-urgent, .inquiry-card.reminder-overdue { box-shadow: inset 3px 0 var(--orange-deep); background: #fff8f5; }
.inquiry-card-topline, .inquiry-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.inquiry-priority, .inquiry-reminder { display: inline-flex; min-height: 22px; align-items: center; padding: 4px 7px; border-radius: 999px; background: #e6e8e4; color: #4e544e; font: 750 7px var(--font-mono); text-transform: uppercase; }
.inquiry-card.reminder-overdue .inquiry-reminder { background: #ffdfd5; color: #8f2e19; }
.inquiry-card.reminder-due-today .inquiry-reminder { background: #fff0ce; color: #6e5318; }
.inquiry-card h3 { margin: 15px 0 7px; font-size: 13px; line-height: 1.35; }
.inquiry-card h3 a, .inquiry-card p a { color: inherit; text-underline-offset: 4px; }
.inquiry-card > p { margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.inquiry-card-meta { margin-top: 17px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font: 8px var(--font-mono); }
.inquiry-empty-state { min-height: 120px; display: grid; place-content: center; gap: 7px; padding: 28px; text-align: center; }
.inquiry-empty-state strong { font-size: 12px; }.inquiry-empty-state p { margin: 0; color: var(--muted); font-size: 10px; }
.inquiry-index-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 46px 0 34px; }
.inquiry-index-heading h1 { margin: 9px 0 12px; font-size: clamp(48px, 6vw, 82px); font-weight: 520; line-height: .9; letter-spacing: -.065em; }
.inquiry-index-heading h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.inquiry-index-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.inquiry-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); background: var(--paper-bright); }
.inquiry-filters a { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 13px; border-right: 1px solid var(--line); color: var(--muted); font-size: 9px; text-decoration: none; }
.inquiry-filters a:last-child { border-right: 0; }
.inquiry-filters a[aria-current="page"] { background: var(--ink); color: white; }
.inquiry-filters strong { font: 750 9px var(--font-mono); }
.inquiry-form { padding-bottom: 72px; }.inquiry-form-panel, .inquiry-outcome-panel { padding: 24px; }.inquiry-outcome-panel { margin-top: 18px; }
.inquiry-closure-warning { margin-bottom: 22px; padding: 16px 18px; border-left: 4px solid var(--orange-deep); background: #fff0ea; color: #672c20; }
.inquiry-closure-warning strong { font-size: 11px; }.inquiry-closure-warning p { margin: 6px 0 0; font-size: 10px; line-height: 1.55; }
.inquiry-form .form-field > small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.inquiry-open-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid rgba(217,74,44,.35); border-left: 4px solid var(--orange-deep); background: #fff0ea; }
.inquiry-open-banner strong { font-size: 12px; }.inquiry-open-banner p { margin: 5px 0 0; color: #6d3b30; font-size: 10px; }
.inquiry-open-banner > span { color: #8f2e19; font: 750 8px var(--font-mono); text-transform: uppercase; }
.inquiry-result.result-pending { background: #fff0ea; color: #6d3b30; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; background: var(--ink); color: white; font-size: 12px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; padding: clamp(46px, 6vw, 72px) 0 34px; }
.dashboard-hero .section-label { margin-bottom: 14px; }
.dashboard-hero h1 { max-width: 900px; margin: 0; font-size: clamp(46px, 5.5vw, 76px); font-weight: 520; line-height: .94; letter-spacing: -.065em; text-wrap: balance; }
.dashboard-hero h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.dashboard-hero > div:first-child > p:last-child { max-width: 650px; margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.dashboard-hero-actions { min-width: 190px; display: grid; gap: 9px; }
.dashboard-hero-actions .quiet-button { min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.today-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); background: var(--paper-bright); }
.today-summary a { min-width: 0; min-height: 122px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 8px 16px; padding: 20px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.today-summary a:last-child { border-right: 0; }
.today-summary a:hover { background: color-mix(in srgb, var(--orange) 5%, var(--paper-bright)); }
.today-summary a.has-alert { box-shadow: inset 4px 0 var(--orange-deep); background: #fff8f5; }
.today-summary span { align-self: center; font-size: 12px; font-weight: 720; }
.today-summary strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 520 38px var(--font-mono); letter-spacing: -.06em; }
.today-summary small { color: var(--muted); font-size: 10px; }
.dashboard-focus-panel > header h2 { font: 400 27px Georgia, serif; letter-spacing: -.03em; }
.dashboard-focus-panel .inquiry-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-focus-panel .inquiry-card:nth-child(2n) { border-right: 0; }
.dashboard-clear-state { min-height: 120px; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 28px; text-align: left; }
.dashboard-clear-state > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #e3eadf; color: #42614a; font-weight: 800; }
.dashboard-clear-state strong { display: block; font-size: 12px; }
.dashboard-clear-state p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.focused-work-queue { padding-top: 10px; }
.work-queue-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper-bright); }
.work-queue-tabs a { min-width: 0; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.work-queue-tabs a:last-child { border-right: 0; }
.work-queue-tabs a:hover { background: color-mix(in srgb, var(--orange) 5%, var(--paper-bright)); }
.work-queue-tabs a[aria-current="page"] { background: var(--ink); color: white; }
.work-queue-tabs span, .work-queue-tabs small { min-width: 0; display: block; }
.work-queue-tabs span { font-size: 11px; font-weight: 720; }
.work-queue-tabs small { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 8px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.work-queue-tabs a[aria-current="page"] small { color: rgba(255,255,255,.55); }
.work-queue-tabs strong { font: 700 14px var(--font-mono); }
.selected-work-queue { border: 1px solid var(--line); border-top: 0; background: var(--paper-bright); scroll-margin-top: 18px; }
.selected-work-queue > header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.selected-work-queue h3 { margin: 0; font-size: 14px; }
.selected-work-queue header p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.selected-work-queue header > span { color: var(--muted); font: 9px var(--font-mono); text-transform: uppercase; }
.selected-work-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.selected-work-items .work-item-card { border-right: 1px solid var(--line); }
.selected-work-items .work-item-card:nth-child(2n) { border-right: 0; }
.reference-drawer { margin-top: 34px; border: 1px solid var(--line); background: rgba(255,255,255,.28); }
.reference-drawer > summary { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; cursor: pointer; list-style: none; }
.reference-drawer > summary::-webkit-details-marker { display: none; }
.reference-drawer > summary:hover { background: var(--paper-bright); }
.reference-drawer > summary span:first-child strong, .reference-drawer > summary span:first-child small { display: block; }
.reference-drawer > summary strong { font: 400 24px Georgia, serif; }
.reference-drawer > summary small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.reference-drawer > summary > span:last-child { color: var(--muted); font: 9px var(--font-mono); text-transform: uppercase; }
.reference-drawer[open] > summary { border-bottom: 1px solid var(--line); }
.reference-drawer[open] > summary > span:last-child { font-size: 0; }
.reference-drawer[open] > summary > span:last-child::after { content: "Close"; font-size: 9px; }
.reference-drawer-content { padding: 18px; }
.reference-drawer-content .rate-board { margin-bottom: 0; }

.handbook-heading h1 em, .handbook-detail-heading h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 400; }
.handbook-filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 18px; border: 1px solid var(--line); background: var(--paper-bright); }
.handbook-filters a { min-width: 0; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; text-decoration: none; }
.handbook-filters a:nth-child(5n) { border-right: 0; }
.handbook-filters a:nth-last-child(-n+5) { border-bottom: 0; }
.handbook-filters a:hover { background: color-mix(in srgb, var(--orange) 5%, var(--paper-bright)); color: var(--ink); }
.handbook-filters a[aria-current="page"] { background: var(--ink); color: white; }
.handbook-filters span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.handbook-filters strong { font: 750 10px var(--font-mono); }
.handbook-toolbar { min-height: 76px; display: grid; grid-template-columns: minmax(220px, .45fr) minmax(360px, 1fr); align-items: stretch; margin-bottom: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.28); }
.handbook-toolbar > div { display: grid; align-content: center; gap: 6px; padding: 14px 20px; border-right: 1px solid var(--line); }
.handbook-toolbar > div span { color: var(--muted); font: 8px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.handbook-toolbar > div strong { font-size: 13px; }
.handbook-search { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px; }
.handbook-search input[type="search"] { min-width: 0; flex: 1; min-height: 44px; padding: 0 13px; border: 1px solid transparent; background: transparent; color: var(--ink); }
.handbook-search input[type="search"]:focus { border-color: var(--line); background: var(--paper-bright); }
.handbook-search .text-link { margin: 0 8px 0 0; }
.handbook-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.handbook-card { min-width: 0; padding: 20px; border: 1px solid var(--line); background: var(--paper-bright); }
.handbook-card.is-inactive { opacity: .68; }
.handbook-card > header, .handbook-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.handbook-type, .handbook-state { display: inline-flex; min-height: 23px; align-items: center; padding: 4px 7px; border: 1px solid var(--line); color: var(--muted); font: 750 7px var(--font-mono); text-transform: uppercase; }
.handbook-type { border-color: rgba(217,74,44,.28); background: #fff0ea; color: #8f2e19; }
.handbook-card h2 { margin: 24px 0 7px; font: 400 29px/1.05 Georgia, serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.handbook-card h2 a { color: var(--ink); text-decoration: none; }
.handbook-card h2 a:hover { color: var(--orange-deep); }
.handbook-card > p { margin: 0; color: var(--muted); font-size: 9px; }
.handbook-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.handbook-card dl div { min-width: 0; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.handbook-card dl .handbook-card-wide { grid-column: 1 / -1; }
.handbook-card dt { color: var(--muted); font: 7px var(--font-mono); text-transform: uppercase; }
.handbook-card dd { margin: 8px 0 0; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.handbook-card > footer { padding-top: 15px; border-top: 1px solid var(--line); }
.handbook-card > footer a { color: var(--ink); font-size: 9px; text-underline-offset: 4px; }
.handbook-form-panel { padding: 24px; }
.handbook-form-panel + .handbook-form-panel { margin-top: 18px; }
.handbook-active-field { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 13px 15px; border: 1px solid var(--line); background: rgba(255,255,255,.35); cursor: pointer; }
.handbook-active-field input { width: 19px; height: 19px; accent-color: var(--orange-deep); }
.handbook-active-field strong, .handbook-active-field small { display: block; }
.handbook-active-field strong { font-size: 11px; }
.handbook-active-field small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.handbook-detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding: 38px 0 42px; }
.handbook-detail-heading h1 { max-width: 900px; margin: 10px 0 12px; font-size: clamp(50px, 6vw, 82px); font-weight: 520; line-height: .9; letter-spacing: -.07em; overflow-wrap: anywhere; }
.handbook-detail-heading p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.handbook-detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 18px; }
.handbook-detail-panel, .handbook-note-panel { border: 1px solid var(--line); background: var(--paper-bright); }
.handbook-detail-panel > header { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.handbook-detail-panel h2 { margin: 0; font-size: 13px; }
.handbook-detail-panel header span { color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.handbook-detail-panel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.handbook-detail-panel dl div { min-width: 0; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.handbook-detail-panel dl div:nth-child(2n) { border-right: 0; }
.handbook-detail-panel dt, .handbook-note-panel small { display: block; margin-bottom: 8px; color: var(--muted); font: 8px var(--font-mono); text-transform: uppercase; }
.handbook-detail-panel dd { margin: 0; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.handbook-detail-panel dd a { color: var(--ink); text-underline-offset: 4px; }
.handbook-note-panel section { padding: 20px; border-bottom: 1px solid var(--line); }
.handbook-note-panel section:last-child { border-bottom: 0; }
.handbook-note-panel p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
.handbook-note-panel .private-notes { background: #fff8f5; }

@media (max-width: 1080px) {
  .login-shell { grid-template-columns: 1fr 430px; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-intro,.settings-heading,.module-heading { grid-template-columns: 1fr; }
  .settings-heading .section-label { margin-bottom: 0; }
  .module-heading-actions { max-width: 620px; }
  .vip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vip-card:nth-child(3n) { border-right: 1px solid rgba(255,107,71,.24); }
  .vip-card:nth-child(2n) { border-right: 0; }
  .customer-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .customer-detail-grid { grid-template-columns: 1fr; }
  .settings-workspace, .shipment-create-grid { grid-template-columns: 1fr; }
  .shipment-identity-grid, .logistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shipment-sketch { position: static; }
  .rate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rate-grid article { border-bottom: 1px solid var(--line); }
  .rate-grid article:nth-child(3n) { border-right: 0; }
  .rate-grid article:nth-last-child(-n+3) { border-bottom: 0; }
  .currency-tool { grid-template-columns: 1fr; }
  .work-queue-grid, .customer-work-grid, .inquiry-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inquiry-card:nth-child(3n) { border-right: 1px solid var(--line); }.inquiry-card:nth-child(2n) { border-right: 0; }
  .customer-work-grid .work-item-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .customer-work-grid .work-item-card:nth-child(2n) { border-right: 0; }
  .work-detail-grid { grid-template-columns: 1fr; }
  .today-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-summary a:nth-child(2) { border-right: 0; }
  .today-summary a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .work-queue-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-queue-tabs a:nth-child(3) { border-right: 0; }
  .work-queue-tabs a:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .handbook-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .handbook-filters a, .handbook-filters a:nth-child(5n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .handbook-filters a:nth-child(3n) { border-right: 0; }
  .handbook-filters a:nth-last-child(-n+2) { border-bottom: 0; }
  .handbook-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handbook-detail-grid { grid-template-columns: 1fr; }
}
@media (min-width: 821px) and (max-height: 820px) {
  .login-story { padding: 24px; }
  .story-copy { padding: 20px 0; }
  .story-copy h1 { font-size: clamp(52px, 9.5vh, 76px); }
  .story-copy > p:last-child { margin-top: 16px; font-size: 14px; line-height: 1.4; }
  .signal-card { padding: 12px 14px; }
  .signal-bars { height: 26px; margin: 10px 0; }
  .story-footer { margin-top: 14px; }
  .login-panel { padding-block: 18px; }
  .access-copy { padding-block: 16px 14px; }
  .access-copy h2 { font-size: 42px; }
  .access-copy > p:last-child { margin-top: 12px; font-size: 12px; line-height: 1.45; }
  .auth-method-heading { margin-bottom: 10px; padding-bottom: 8px; }
  .auth-form label { gap: 5px; }
  .auth-form input { min-height: 42px; }
  .primary-button { min-height: 46px; }
  .text-link { margin-top: 10px; }
  .passkey-secondary { padding: 11px 13px; }
  .method-icon { width: 36px; height: 36px; }
  .passkey-secondary h3 { font-size: 20px; }
  .passkey-secondary .passkey-button { min-height: 38px; margin-top: 9px; }
  .passkey-secondary .form-error { min-height: 12px; margin-top: 5px; }
  .trust-row { margin-top: 12px; padding-top: 10px; }
}
@media (min-width: 821px) and (max-height: 680px) {
  .access-copy { padding-block: 14px 12px; }
  .access-copy > p:last-child, .trust-row { display: none; }
}
@media (max-width: 820px) {
  .login-shell { display: block; height: auto; min-height: 100dvh; overflow: visible; }.login-story,.login-panel { height: auto; min-height: auto; overflow: visible; }.login-story { min-height: 680px; }.login-panel { padding-block: 64px; }
  .dashboard-shell { display: block; }.sidebar { position: static; height: auto; padding: 20px; }.security-posture { display: none; }.sidebar .brand { padding: 0 0 18px; border-bottom: 1px solid var(--line-dark); }
  .sidebar-nav { display: flex; gap: 6px; margin-top: 16px; overflow-x: auto; padding-bottom: 3px; }
  .sidebar-nav { scrollbar-width: none; }
  .sidebar-nav::-webkit-scrollbar { display: none; }
  .sidebar-nav a { flex: 0 0 auto; gap: 24px; }
  .sidebar-coming-soon { flex: 0 0 auto; display: flex; gap: 6px; margin: 0; padding: 0; border: 0; }
  .sidebar-coming-soon > p { display: none; }
  .sidebar-coming-soon > span { min-height: 44px; gap: 8px; padding: 0 10px; border: 1px solid var(--line-dark); }
  .sidebar-spacer { display: none; }
  .dashboard-main { padding-inline: 20px; }.dashboard-grid,.settings-grid { grid-template-columns: 1fr; }
  .directory-toolbar { grid-template-columns: 1fr; }
  .directory-toolbar > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .customer-profile-heading { grid-template-columns: 1fr; }
  .customer-heading-actions { padding: 0; }
  .shipment-create-heading { grid-template-columns: 1fr; }
  .shipment-detail-heading { grid-template-columns: 1fr; }
  .shipment-draft-note { max-width: 620px; }
  .manual-rate-layout { grid-template-columns: 1fr; gap: 28px; }
  .work-queues-heading { align-items: flex-start; flex-direction: column; }
  .work-detail-heading { grid-template-columns: 1fr; }
  .inquiry-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inquiry-filters a:nth-child(3n) { border-right: 0; }
  .dashboard-hero { grid-template-columns: 1fr; gap: 24px; }
  .dashboard-hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-hero-actions .compact-button { width: 100%; }
  .work-queue-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-queue-tabs a, .work-queue-tabs a:nth-child(3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .work-queue-tabs a:nth-child(2n) { border-right: 0; }
  .work-queue-tabs a:last-child { border-bottom: 0; }
  .handbook-toolbar { grid-template-columns: 1fr; }
  .handbook-toolbar > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .handbook-detail-heading { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .login-story { min-height: 610px; padding: 24px; }.story-copy h1 { font-size: 56px; }.signal-card { margin-top: 20px; }.login-panel { padding: 54px 24px; }
  .auth-tabs button { font-size: 8px; }.topbar > p { display: none; }.topbar { justify-content: flex-end; }.account small { display: none; }
  .dashboard-intro h1,.settings-heading h1 { font-size: 50px; }.metric-grid { grid-template-columns: 1fr; }.workflow-list li { grid-template-columns: 28px 1fr; }.workflow-list mark { grid-column: 2; justify-self: start; }
  .settings-shell { padding-inline: 20px; }.settings-topbar .brand { display: none; }.setting-card { min-height: auto; }.setting-card .primary-button { margin-top: 30px; }
  .module-heading h1,.record-heading h1 { font-size: 54px; }
  .module-heading-actions { padding-left: 0; border-left: 0; }
  .directory-search { flex-wrap: wrap; }.directory-search input[type="search"] { flex-basis: 100%; border-color: var(--line); }
  .vip-section > header { align-items: flex-start; flex-direction: column; }.vip-grid { grid-template-columns: 1fr; }.vip-card,.vip-card:nth-child(2n),.vip-card:nth-child(3n) { border-right: 0; border-bottom: 1px solid rgba(255,107,71,.24); }
  .customer-summary-grid { grid-template-columns: 1fr; }
  .customer-heading-actions { align-items: stretch; flex-direction: column; }.customer-heading-actions .quiet-button { justify-content: center; }.customer-heading-actions .text-link { text-align: center; }
  .shipment-identity { align-items: flex-start; flex-direction: column; }.shipment-identity > div:last-child { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }.form-field-wide { grid-column: auto; }
  .shipment-identity-grid, .logistics-grid, .shipment-reference-grid { grid-template-columns: 1fr; }
  .shipment-reference-grid article, .shipment-reference-grid article:nth-child(3n), .shipment-reference-grid article:nth-last-child(-n+3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .shipment-reference-grid article:last-child { border-bottom: 0; }
  .operation-section-header { align-items: flex-start; flex-direction: column; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; gap: 16px; }.form-actions .compact-button { width: 100%; }.form-actions .text-link { text-align: center; }
  .category-row { grid-template-columns: 12px 1fr; }.category-row > .type-badge,.category-row > .row-actions { grid-column: 2; justify-self: start; }
  .team-row { grid-template-columns: 42px 1fr; }.team-row > .role-badge,.team-row > .account-state,.team-row > .row-actions { grid-column: 2; justify-self: start; }
  .compact-form .form-grid { grid-template-columns: 1fr; }
  .world-clock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world-clock-grid article:nth-child(3n) { border-right: 1px solid var(--line); }
  .world-clock-grid article:nth-child(2n) { border-right: 0; }
  .world-clock-grid article:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .world-clock-grid article:nth-last-child(-n+2) { border-bottom: 0; }
  .tool-grid { grid-template-columns: 1fr; }
  .work-queue-grid, .customer-work-grid, .inquiry-card-grid { grid-template-columns: 1fr; }
  .inquiry-card, .inquiry-card:nth-child(2n), .inquiry-card:nth-child(3n) { border-right: 0; }
  .customer-work-grid .work-item-card, .customer-work-grid .work-item-card:nth-child(2n), .customer-work-grid .work-item-card:nth-child(3n) { border-right: 0; }
  .work-item-card-meta { align-items: flex-start; flex-direction: column; }
  .work-item-card-meta time { text-align: left; }
  .work-detail-panel dl { grid-template-columns: 1fr; }
  .work-detail-panel dl div { border-right: 0; }
  .activity-timeline li { grid-template-columns: 12px 1fr; }
  .activity-timeline time { grid-column: 2; }
  .inquiry-index-heading, .inquiry-open-banner { align-items: flex-start; flex-direction: column; }
  .inquiry-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inquiry-filters a, .inquiry-filters a:nth-child(3n) { border-right: 1px solid var(--line); }
  .inquiry-filters a:nth-child(2n) { border-right: 0; }
  .inquiry-reminder-summary { grid-template-columns: 1fr; }
  .inquiry-reminder-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .inquiry-reminder-summary div:last-child { border-bottom: 0; }
  .dashboard-hero h1 { font-size: 45px; }
  .dashboard-hero-actions { grid-template-columns: 1fr; }
  .today-summary { grid-template-columns: 1fr; }
  .today-summary a, .today-summary a:nth-child(2) { min-height: 96px; border-right: 0; border-bottom: 1px solid var(--line); }
  .today-summary a:last-child { border-bottom: 0; }
  .dashboard-focus-panel .inquiry-card-grid, .selected-work-items { grid-template-columns: 1fr; }
  .dashboard-focus-panel .inquiry-card, .selected-work-items .work-item-card { border-right: 0; }
  .work-queue-tabs { grid-template-columns: 1fr; }
  .work-queue-tabs a, .work-queue-tabs a:nth-child(2n), .work-queue-tabs a:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--line); }
  .reference-drawer-content { padding: 10px; }
  .handbook-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handbook-filters a, .handbook-filters a:nth-child(3n), .handbook-filters a:nth-child(5n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .handbook-filters a:nth-child(2n) { border-right: 0; }
  .handbook-filters a:last-child { border-bottom: 0; }
  .handbook-search { flex-wrap: wrap; }
  .handbook-search input[type="search"] { flex-basis: 100%; border-color: var(--line); }
  .handbook-grid { grid-template-columns: 1fr; }
  .handbook-detail-panel dl { grid-template-columns: 1fr; }
  .handbook-detail-panel dl div { border-right: 0; }
}
@media (max-width: 430px) {
  .world-clock-grid, .rate-grid, .rate-board-compact .rate-grid { grid-template-columns: 1fr; }
  .world-clock-grid article, .world-clock-grid article:nth-child(2n), .world-clock-grid article:nth-child(3n), .rate-grid article, .rate-grid article:nth-child(3n), .rate-board-compact .rate-grid article:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .world-clock-grid article:last-child, .rate-grid article:last-child, .rate-board-compact .rate-grid article:last-child { border-bottom: 0; }
  .world-clock-panel > header, .rate-board > header, .rate-board > footer { align-items: flex-start; flex-direction: column; }
  .rate-source { flex-wrap: wrap; }
  .manual-rate-form { align-items: stretch; flex-direction: column; }
  .manual-rate-form .primary-button { width: 100%; }
  .currency-converter-form { grid-template-columns: 1fr; }
  .conversion-arrow { min-height: auto; transform: rotate(90deg); }
  .time-conversion-results { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
