:root {
  --ink: #291d1a;
  --ink-soft: #3a2924;
  --navy: #211816;
  --blue: #d40511;
  --blue-bright: #ed1c24;
  --emerald: #ffcc00;
  --emerald-deep: #d40511;
  --mist: #fff6d7;
  --paper: #fffdf7;
  --slate: #63544d;
  --muted: #96847a;
  --line: #eadfce;
  --warm: #ffcc00;
  --danger: #d40511;
  --display: "Manrope", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(15, 43, 75, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(59, 130, 246, .48); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 10px; transition: top .2s ease; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,253,255,.9); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(220,230,240,.72); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; font-family: var(--display); font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.brand-light { margin-left: 3px; color: var(--blue); font-weight: 500; }
.brand-mark { display: block; flex: 0 0 auto; width: 34px; height: 34px; filter: drop-shadow(0 4px 7px rgba(73, 28, 4, .16)); }
.public-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.nav-link { position: relative; padding: 6px 0; color: #5a6e88; font-size: 14px; font-weight: 600; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--emerald); transition: width .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }
.dashboard-trigger, .primary-button { color: #fff; border: 1px solid transparent; background: var(--ink); border-radius: 11px; padding: 12px 17px; font-weight: 700; font-size: 14px; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.dashboard-trigger:hover, .primary-button:hover { transform: translateY(-2px); background: #0d2746; box-shadow: 0 10px 24px rgba(7,26,46,.15); }

.gateway-hero { position: relative; isolation: isolate; min-height: 600px; display: grid; overflow: hidden; color: #fff9ef; background: #1c1411; }
.gateway-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(31, 18, 13, .92) 0%, rgba(31, 18, 13, .76) 35%, rgba(31, 18, 13, .24) 66%, rgba(31, 18, 13, .1) 100%), linear-gradient(0deg, rgba(31, 18, 13, .57) 0%, transparent 38%); }
.gateway-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.gateway-shell { display: flex; align-items: center; padding: 84px 0 88px; }
.gateway-copy { max-width: 660px; }
.gateway-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 19px; padding: 8px 11px; color: #392600; background: var(--emerald); border-radius: 3px; font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.gateway-kicker span { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; }
.gateway-copy h1 { margin: 0; color: #fffaf0; font-family: var(--display); font-size: clamp(3.25rem, 7.1vw, 6.25rem); font-weight: 800; letter-spacing: -.072em; line-height: .95; text-wrap: balance; }
.gateway-copy h1 em { color: var(--emerald); }
.gateway-copy > p:not(.gateway-kicker) { max-width: 560px; margin: 26px 0 31px; color: #fae3ca; font-size: 1.05rem; line-height: 1.75; }
.gateway-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gateway-primary, .gateway-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border-radius: 9px; font-size: 13px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease; }
.gateway-primary { color: #fffaf0; background: var(--blue); border: 1px solid var(--blue); }.gateway-primary:hover { transform: translateY(-2px); background: #a6000b; }.gateway-secondary { color: #fff9ee; border: 1px solid rgba(255, 249, 238, .58); background: rgba(54, 33, 23, .16); }.gateway-secondary:hover { transform: translateY(-2px); background: rgba(255, 249, 238, .14); }
.gateway-proof { display: flex; flex-wrap: wrap; gap: 0; margin-top: 44px; }.gateway-proof span { padding: 0 20px; color: #efd3bb; border-left: 1px solid rgba(255, 238, 215, .35); font-size: 12px; }.gateway-proof span:first-child { padding-left: 0; border-left: 0; }.gateway-proof strong { display: block; color: var(--emerald); font-family: var(--display); font-size: 1.18rem; letter-spacing: -.04em; }
.gateway-scroll-cue { position: absolute; left: max(24px, calc((100vw - 1180px) / 2)); bottom: 26px; display: flex; align-items: center; gap: 9px; color: #f6d8bd; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }.gateway-scroll-cue span { width: 32px; height: 1px; background: var(--emerald); }
.hero-section { overflow: hidden; padding: 91px 0 100px; background: radial-gradient(circle at 85% 8%, rgba(32,211,161,.12), transparent 26%), linear-gradient(180deg, #fbfdff 0%, #f6faff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: 64px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: #52708f; font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-line { width: 27px; height: 2px; background: var(--emerald); }
.hero-copy h1, .section-intro h2, .dashboard-header h1 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.055em; color: var(--ink); }
.hero-copy h1 { max-width: 620px; font-size: clamp(3rem, 5.6vw, 5.25rem); line-height: .99; }
em { color: var(--blue); font-style: normal; }
.hero-lede { max-width: 570px; margin: 28px 0 34px; color: #506684; font-size: 1.06rem; line-height: 1.75; }
.track-form { max-width: 580px; }
.track-form > label { display: block; margin-bottom: 9px; color: #304e70; font-size: 13px; font-weight: 700; }
.track-input-row { display: flex; gap: 10px; padding: 7px; border: 1px solid #c9d8e7; border-radius: 14px; background: #fff; box-shadow: 0 10px 25px rgba(18,66,108,.08); }
.track-input-row input { min-width: 0; flex: 1; padding: 10px 12px; color: var(--ink); border: 0; outline: 0; background: transparent; font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.track-input-row input::placeholder { color: #9baec2; text-transform: none; }
.track-input-row .primary-button { white-space: nowrap; background: var(--emerald-deep); }
.track-input-row .primary-button:hover { background: #047857; }
.form-underlay { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 2px 0; }
.form-underlay p { margin: 0; color: #7690a9; font-size: 12px; }
.copy-button, .text-button, .details-button, .footer-dashboard, .back-button { border: 0; background: transparent; font-weight: 700; }
.form-feedback { min-height: 19px; margin: 8px 0 0; color: var(--emerald-deep); font-size: 12px; font-weight: 600; }
.form-feedback.error { color: var(--danger); }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 31px; color: #60758e; font-size: 13px; }
.check-mark { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; color: #086c53; background: rgba(32,211,161,.18); border-radius: 50%; font-size: 11px; font-weight: 800; }

.journey-card { position: relative; isolation: isolate; padding: 31px; color: #edf5ff; background: linear-gradient(145deg, #102947 0%, #061a30 60%, #082641 100%); border: 1px solid rgba(133,190,246,.19); border-radius: 24px; box-shadow: 0 30px 70px rgba(12,41,72,.2); }
.journey-card::after { content: ""; position: absolute; right: -80px; bottom: -120px; z-index: -1; width: 310px; height: 310px; background: radial-gradient(circle, rgba(59,130,246,.25), transparent 65%); }
.journey-topline, .panel-heading, .section-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-label { margin: 0 0 5px; color: #83a0bd; font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.journey-topline h2, .panel-heading h2 { margin: 0; font-family: var(--display); font-size: 1.35rem; letter-spacing: -.035em; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #b5f6e1; background: rgba(32,211,161,.11); border: 1px solid rgba(32,211,161,.22); border-radius: 999px; font-size: 11px; }
.status-badge > span, .status-dot { width: 7px; height: 7px; background: var(--emerald); border-radius: 50%; box-shadow: 0 0 0 4px rgba(32,211,161,.12); }
.status-badge.delivered { color: #b5f6e1; }.status-badge.processing { color: #bad4ff; background: rgba(59,130,246,.13); border-color: rgba(105,163,255,.28); }.status-badge.processing > span { background: var(--blue-bright); box-shadow: 0 0 0 4px rgba(105,163,255,.12); }.status-badge.exception { color: #ffd8dd; background: rgba(229,90,104,.12); border-color: rgba(229,90,104,.29); }.status-badge.exception > span { background: var(--danger); box-shadow: 0 0 0 4px rgba(229,90,104,.14); }
.tracking-number-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 12px 0; color: #a9bfd6; border-top: 1px solid rgba(187,220,250,.14); border-bottom: 1px solid rgba(187,220,250,.14); font-family: var(--mono); font-size: 12px; }
.copy-button { color: #d2e1f0; font-family: var(--body); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.route-visual { margin: 27px -12px 0; }
.route-visual svg { display: block; width: 100%; overflow: visible; }
.route-muted, .route-active { fill: none; stroke-linecap: round; stroke-width: 2; }
.route-muted { stroke: rgba(144,185,223,.25); stroke-dasharray: 4 9; }.route-active { stroke: var(--emerald); filter: drop-shadow(0 0 6px rgba(32,211,161,.55)); stroke-dasharray: 500; stroke-dashoffset: 0; animation: route-grow 1.4s ease-out; }
.route-node { stroke: #0b2945; stroke-width: 4; }.route-node.origin, .route-node.destination { fill: #6d8fac; }.route-node.current { fill: var(--emerald); filter: drop-shadow(0 0 5px rgba(32,211,161,.8)); }.plane-token { fill: var(--blue-bright); filter: drop-shadow(0 4px 8px rgba(105,163,255,.58)); animation: gentle-float 2.8s ease-in-out infinite; }
@keyframes route-grow { from { stroke-dashoffset: 500; } to { stroke-dashoffset: 0; } } @keyframes gentle-float { 50% { transform: translate(313px, 27px); } }
.route-stops { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 10px; margin-top: 2px; }
.route-stop { display: flex; flex-direction: column; gap: 1px; min-width: 0; }.route-stop.current-stop { padding: 0 10px; border-left: 1px solid rgba(187,220,250,.18); border-right: 1px solid rgba(187,220,250,.18); }.route-stop.destination-stop { text-align: right; }
.route-time { color: #7899b8; font-size: 10px; white-space: nowrap; }.route-stop strong { color: #f2f8ff; font-size: 12px; }.route-stop small { overflow: hidden; color: #8ea9c3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.shipment-facts { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 14px; margin-top: 29px; padding-top: 20px; border-top: 1px solid rgba(187,220,250,.14); }.shipment-facts div { min-width: 0; }.shipment-facts span, .focus-meta span { display: block; margin-bottom: 3px; color: #83a0bd; font-size: 10px; }.shipment-facts strong { display: block; overflow: hidden; color: #eaf4fd; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.details-button { width: 100%; margin-top: 23px; padding: 12px; color: #002719; background: var(--emerald); border-radius: 10px; font-size: 12px; transition: transform .2s ease, background .2s ease; }.details-button:hover { transform: translateY(-2px); background: #5ce3bd; }

.parcel-details-section { padding: 85px 0 94px; background: #fff7e4; border-top: 1px solid #f1dfbc; border-bottom: 1px solid #f1dfbc; }.parcel-details-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }.parcel-details-heading h2 { margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(1.85rem, 3.6vw, 3rem); letter-spacing: -.055em; line-height: 1.08; }.parcel-details-heading h2 span { color: var(--blue); font-family: var(--mono); font-size: .56em; letter-spacing: -.02em; }.parcel-detail-status, .map-parcel-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #715100; background: #fff1bf; border: 1px solid #efd67a; border-radius: 999px; font-size: 11px; white-space: nowrap; }.parcel-detail-status > span, .map-parcel-status > span { width: 7px; height: 7px; background: #ffcc00; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 204, 0, .14); }.parcel-detail-status.processing, .map-parcel-status.processing { color: #a0000a; background: #ffe3e5; border-color: #f0a1a7; }.parcel-detail-status.processing > span, .map-parcel-status.processing > span { background: #d40511; box-shadow: 0 0 0 4px rgba(212, 5, 17, .11); }.parcel-detail-status.exception, .map-parcel-status.exception { color: #a0000a; background: #ffe2e4; border-color: #ec9ca4; }.parcel-detail-status.exception > span, .map-parcel-status.exception > span { background: #d40511; box-shadow: 0 0 0 4px rgba(212, 5, 17, .11); }.parcel-details-intro { max-width: 630px; margin: 13px 0 31px; color: #735f52; font-size: 14px; line-height: 1.65; }.parcel-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.parcel-detail-card, .parcel-history-card { padding: 26px; border: 1px solid #ecdfce; border-radius: 17px; background: #fffdf9; box-shadow: 0 10px 31px rgba(94, 52, 13, .045); }.parcel-detail-card h3, .parcel-history-card h3 { margin: 0; color: #2f211d; font-family: var(--display); font-size: 1.22rem; letter-spacing: -.04em; }.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 23px 0 0; }.detail-list div { min-width: 0; padding: 12px 0; border-top: 1px solid #f0e5d9; }.detail-list dt { margin-bottom: 4px; color: #997f6d; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }.detail-list dd { margin: 0; overflow: hidden; color: #432f28; font-size: 12px; font-weight: 700; line-height: 1.45; text-overflow: ellipsis; }.parcel-history-card { grid-column: span 2; }.history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }.history-map-button, .map-details-button { padding: 9px 11px; color: #9d0009; border: 1px solid #ecd4c1; border-radius: 8px; background: #fff7ec; font-size: 11px; font-weight: 800; }.history-map-button:hover, .map-details-button:hover { color: #fff7ec; background: #d40511; border-color: #d40511; }.parcel-history { display: grid; gap: 0; margin: 25px 0 0; padding: 0; list-style: none; }.parcel-history li { position: relative; display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 18px; padding: 0 0 22px; }.parcel-history li:last-child { padding-bottom: 0; }.parcel-history li::before { content: ""; position: absolute; left: 148px; top: 13px; bottom: -1px; width: 1px; background: #ead8c4; }.parcel-history li:last-child::before { display: none; }.parcel-history time { position: relative; color: #937968; font-family: var(--mono); font-size: 10px; }.parcel-history time::after { content: ""; position: absolute; right: -22px; top: 2px; width: 10px; height: 10px; background: #ffcc00; border: 3px solid #fffdf9; border-radius: 50%; box-shadow: 0 0 0 1px #dfc796; }.parcel-history li:last-child time::after { background: #d40511; box-shadow: 0 0 0 1px #d40511; }.parcel-history strong { display: block; color: #3f2d27; font-size: 12px; }.parcel-history span { display: block; margin-top: 3px; color: #826b5e; font-size: 11px; }

.service-section { padding: 96px 0 104px; }.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }.section-intro h2 { font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1.05; }.section-intro > p { max-width: 380px; margin: 0; color: #6b8199; font-size: 15px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }.service-card { min-height: 235px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 17px; background: #fff; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }.service-card:hover { transform: translateY(-5px); border-color: rgba(59,130,246,.38); box-shadow: var(--shadow); }.service-card.featured { color: #eaf4ff; background: var(--ink); border-color: var(--ink); }.service-index { color: var(--blue); font-family: var(--mono); font-size: 12px; }.featured .service-index { color: var(--emerald); }.service-card h3 { margin: auto 0 10px; font-family: var(--display); font-size: 1.25rem; letter-spacing: -.035em; }.service-card p { margin: 0; color: #6d829a; font-size: 13px; line-height: 1.68; }.featured p { color: #a9bed1; }
.site-footer { padding: 64px 0 23px; color: #aac1d6; background: var(--ink); }.footer-top { display: grid; grid-template-columns: minmax(230px, 1.15fr) minmax(400px, 1.85fr); gap: 60px; padding-bottom: 48px; }.footer-brand { color: #f4f9ff; }.footer-intro > p { max-width: 265px; margin: 18px 0 15px; color: #b8a699; font-size: 13px; line-height: 1.65; }.footer-dashboard { padding: 0; color: var(--emerald); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }.footer-links section { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }.footer-links h2 { margin: 0 0 6px; color: #ffedcf; font-family: var(--display); font-size: 12px; letter-spacing: -.01em; }.footer-links a, .footer-links button, .footer-links span { padding: 0; color: #c4b1a2; border: 0; background: transparent; font-family: var(--body); font-size: 12px; line-height: 1.5; text-align: left; }.footer-links a:hover, .footer-links button:hover { color: var(--emerald); }.footer-links button { cursor: pointer; }.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 21px; border-top: 1px solid rgba(229, 204, 178, .16); }.footer-bottom p, .footer-bottom span { margin: 0; color: #8f7e70; font-size: 10px; }.footer-bottom div { display: flex; flex-wrap: wrap; gap: 17px; }

.dashboard-view { min-height: 100vh; color: var(--ink); background: #f5f8fc; }.dashboard-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; flex-direction: column; width: 242px; padding: 28px 18px 20px; color: #d8e6f3; background: var(--ink); }.dashboard-brand { color: #fff; margin-left: 7px; }.sidebar-caption { margin: 52px 12px 12px; color: #66819f; font-family: var(--display); font-size: 10px; font-weight: 800; letter-spacing: .12em; }.dashboard-nav { display: grid; gap: 5px; }.dashboard-nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; color: #9ab1c7; border: 0; border-radius: 10px; background: transparent; text-align: left; font-size: 13px; font-weight: 700; transition: background .2s ease, color .2s ease; }.dashboard-nav-item span { display: grid; place-items: center; width: 18px; color: #6e91b4; font-family: var(--mono); font-size: 18px; }.dashboard-nav-item:hover, .dashboard-nav-item.active { color: #f5faff; background: rgba(105,163,255,.12); }.dashboard-nav-item.active span { color: var(--emerald); }.sidebar-user { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 14px 9px 4px; border-top: 1px solid rgba(154,177,199,.15); }.user-avatar { display: grid; place-items: center; width: 31px; height: 31px; color: #003e2a; background: var(--emerald); border-radius: 10px; font-size: 10px; font-weight: 800; }.sidebar-user strong { display: block; color: #e8f2fb; font-size: 11px; }.sidebar-user small { display: block; color: #7893ad; font-size: 10px; }
.dashboard-main { min-height: 100vh; margin-left: 242px; padding: 48px clamp(26px, 5vw, 76px) 76px; }.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 35px; }.dashboard-header .eyebrow { margin-bottom: 11px; }.dashboard-header h1 { font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.1; }.dashboard-header > div > p:last-child { margin: 8px 0 0; color: #748aa1; font-size: 14px; }.dashboard-header-actions { display: flex; align-items: center; gap: 12px; }.date-chip, .period-chip { padding: 7px 10px; color: #69829b; border: 1px solid #d8e4ef; border-radius: 999px; background: #fff; font-family: var(--mono); font-size: 10px; white-space: nowrap; }.back-button { padding: 10px 13px; color: #31587d; border: 1px solid #d8e4ef; border-radius: 9px; background: #fff; font-size: 12px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }.metric-card { min-height: 137px; padding: 20px; border: 1px solid #deE8f1; border-radius: 15px; background: #fff; }.metric-card > span { display: block; color: #7890a7; font-size: 12px; font-weight: 600; }.metric-card > strong { display: block; margin: 8px 0; font-family: var(--display); font-size: 1.65rem; letter-spacing: -.05em; }.metric-card small { color: #8aa0b5; font-size: 10px; }.metric-card small b { color: #059669; }.metric-card small b.quiet { color: #64829f; }.metric-card.accent { color: #effbff; background: linear-gradient(135deg, #0d3150, #0b2340); border-color: #0b2340; }.metric-card.accent > span { color: #a9c8e5; }.metric-card.accent small { color: #b1c9df; }.metric-card .status-dot { display: inline-block; margin-right: 4px; vertical-align: -1px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; margin-top: 16px; }.focus-card, .trend-card, .table-card { border: 1px solid #dfe9f2; border-radius: 17px; background: #fff; box-shadow: 0 8px 35px rgba(29,64,99,.035); }.focus-card, .trend-card { padding: 25px; }.panel-heading h2 { font-size: 1.25rem; }.text-button { padding: 4px 0; color: var(--blue); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }.focus-route { display: grid; grid-template-columns: auto minmax(100px,1fr) auto; align-items: center; gap: 15px; margin: 47px 0 35px; }.focus-city span { display: grid; place-items: center; width: 41px; height: 41px; color: #0b5f4b; background: rgba(32,211,161,.18); border-radius: 12px; font-family: var(--mono); font-size: 10px; }.focus-city.right span { margin-left: auto; color: #1f5fae; background: rgba(59,130,246,.13); }.focus-city strong { display: block; margin-top: 7px; font-size: 12px; }.focus-city.right { text-align: right; }.focus-line { position: relative; height: 2px; background: #c8d9e9; }.focus-line::before { content: ""; position: absolute; left: 0; top: -2px; width: 59%; height: 6px; background: var(--emerald); border-radius: 5px; }.focus-line span { position: absolute; left: 59%; top: 50%; width: 10px; height: 10px; background: var(--emerald); border: 3px solid #e4fff7; border-radius: 50%; transform: translate(-50%,-50%); }.focus-line b { position: absolute; top: 13px; left: 50%; color: #72889d; font-family: var(--mono); font-size: 8px; font-weight: 500; white-space: nowrap; transform: translateX(-50%); }.focus-meta { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 13px; padding-top: 18px; border-top: 1px solid #e7eef5; }.focus-meta strong { display: block; overflow: hidden; color: #33516f; font-family: var(--mono); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.trend-card { overflow: hidden; }.chart-wrap { height: 178px; margin-top: 17px; }.chart-wrap svg { display: block; width: 100%; height: 100%; overflow: visible; }.chart-wrap line { stroke: #e6edf5; stroke-dasharray: 4 4; }.chart-fill { fill: url(#volumeFill); }.chart-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }.chart-wrap circle { fill: var(--emerald); stroke: #fff; stroke-width: 4; }.chart-labels { display: flex; justify-content: space-between; margin-top: 1px; color: #8ca0b4; font-family: var(--mono); font-size: 9px; }.trend-total { display: flex; align-items: baseline; gap: 9px; margin-top: 22px; }.trend-total strong { font-family: var(--display); font-size: 1.45rem; letter-spacing: -.05em; }.trend-total span { color: #72889d; font-size: 11px; }
.section-toolbar { margin-bottom: 20px; }.section-toolbar h2 { margin: 0; font-family: var(--display); font-size: 1.75rem; letter-spacing: -.045em; }.search-control input { width: min(280px, 42vw); padding: 11px 13px; color: var(--ink); border: 1px solid #d8e4ef; border-radius: 9px; background: #fff; font-size: 12px; }.table-scroll { overflow-x: auto; }.table-card table { width: 100%; border-collapse: collapse; text-align: left; min-width: 760px; }.table-card th { padding: 14px 21px; color: #718aa3; border-bottom: 1px solid #e5edf4; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }.table-card td { padding: 17px 21px; color: #36536f; border-bottom: 1px solid #edf2f7; font-size: 12px; }.table-card tr:last-child td { border-bottom: 0; }.tracking-cell { color: #183a5c !important; font-family: var(--mono); font-size: 10px !important; font-weight: 700; }.table-route { color: #8095aa; font-size: 11px; }.table-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: #e9fcf5; color: #087355; font-size: 10px; font-weight: 700; }.table-status .status-dot { width: 5px; height: 5px; box-shadow: none; }.table-status.processing { color: #1d62ac; background: #eaf2ff; }.table-status.processing .status-dot { background: var(--blue); }.table-status.exception { color: #b43443; background: #ffebee; }.table-status.exception .status-dot { background: var(--danger); }.table-action { padding: 7px 9px; color: var(--blue); border: 1px solid #d9e5f1; border-radius: 7px; background: #fff; font-size: 10px; font-weight: 700; }
.analytics-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }.delivery-card, .lane-card { min-height: 214px; padding: 25px; border: 1px solid #dfe9f2; border-radius: 17px; background: #fff; }.delivery-card { display: flex; align-items: center; gap: 24px; }.delivery-ring { display: grid; place-items: center; flex: 0 0 auto; width: 118px; height: 118px; border-radius: 50%; background: radial-gradient(#fff 59%, transparent 60%), conic-gradient(var(--emerald) 0 94.8%, #e9f0f6 94.8% 100%); }.delivery-ring span { font-family: var(--display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.06em; }.delivery-ring small { font-size: .8rem; }.delivery-card h3, .lane-card h3 { margin: 0; font-family: var(--display); letter-spacing: -.035em; }.delivery-card p { margin: 8px 0 0; color: #72889f; font-size: 12px; line-height: 1.55; }.lane-card { display: flex; flex-direction: column; }.lane-card h3 { margin-top: 5px; font-size: 1.1rem; }.lane-card > strong { margin-top: auto; font-family: var(--display); font-size: 2rem; letter-spacing: -.06em; }.lane-card > span { color: #758da4; font-size: 11px; }.lane-meter { height: 5px; margin-top: 16px; border-radius: 999px; background: #e5eef5; overflow: hidden; }.lane-meter span { display: block; width: 78%; height: 100%; border-radius: inherit; background: var(--emerald); }.lane-meter.blue span { width: 63%; background: var(--blue); }

.route-map-modal { width: min(1100px, calc(100% - 32px)); height: min(760px, calc(100% - 32px)); padding: 0; color: var(--ink); border: 0; border-radius: 19px; overflow: hidden; box-shadow: 0 30px 85px rgba(56, 20, 11, .38); }.route-map-modal[open] { display: flex; flex-direction: column; }.route-map-modal::backdrop { background: rgba(45, 25, 15, .72); backdrop-filter: blur(4px); }.route-map-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 26px 18px; background: #fffaf2; }.route-map-header h2 { margin: 0; color: #291d1a; font-family: var(--display); font-size: 1.55rem; letter-spacing: -.045em; }.route-map-header > div > p:last-child { margin: 5px 0 0; color: #80685a; font-size: 12px; }.route-map-stage { position: relative; flex: 1; min-height: 0; background: #e9dfd3; }.route-map-stage #tracking-map { width: 100%; height: 100%; min-height: 440px; }.route-map-stage .leaflet-tile-pane { filter: grayscale(.72) sepia(.14) saturate(.62) contrast(1.04); }.map-loading-state { position: absolute; inset: 0; z-index: 500; display: grid; place-items: center; color: #7e5d43; background: linear-gradient(135deg, #ffefd1, #fff9ef); font-size: 13px; font-weight: 700; }.map-loading-state[hidden] { display: none; }.map-flight-card { position: absolute; left: 20px; bottom: 21px; z-index: 600; width: min(300px, calc(100% - 40px)); padding: 14px 15px; color: #fff8ec; border: 1px solid rgba(255, 223, 179, .32); border-radius: 11px; background: rgba(44, 28, 21, .9); box-shadow: 0 13px 30px rgba(36, 22, 15, .18); }.map-flight-label { display: block; color: #ffcc00; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }.map-flight-card strong { display: block; margin: 4px 0 3px; font-size: 13px; }.map-flight-card p { margin: 0; color: #efd8c0; font-size: 11px; line-height: 1.45; }.route-map-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; padding: 14px 26px; color: #6d584b; background: #fffaf2; border-top: 1px solid #eadccc; font-size: 11px; }.route-map-footer > span { display: inline-flex; align-items: center; gap: 6px; }.route-map-footer i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }.origin-key { background: #ffcc00; border: 2px solid #d5a900; }.current-key { background: #d40511; border: 2px solid #a5000a; }.leaflet-container { font-family: var(--body); }.leaflet-control-zoom a { color: #40281e !important; border-color: #e3d2bf !important; background: #fffaf0 !important; }.leaflet-control-attribution { color: #6b5849 !important; background: rgba(255, 250, 240, .82) !important; font-size: 9px !important; }.leaflet-control-attribution a { color: #a9000b !important; }.leaflet-div-icon { border: 0 !important; background: transparent !important; }.map-plane { display: grid; place-items: center; width: 38px; height: 38px; color: #fff7df; background: #d40511; border: 3px solid #ffcc00; border-radius: 50%; box-shadow: 0 8px 17px rgba(112, 0, 8, .35); font-size: 19px; line-height: 1; transition: transform .06s linear; }.map-location-marker { display: grid; place-items: center; width: 25px; height: 25px; color: #fff8eb; background: #d40511; border: 3px solid #fff3ce; border-radius: 50% 50% 50% 4px; box-shadow: 0 6px 15px rgba(112, 0, 8, .32); font-size: 10px; transform: rotate(-45deg); }.map-location-marker span { transform: rotate(45deg); }.map-origin-marker { width: 15px; height: 15px; background: #ffcc00; border: 3px solid #7f6200; border-radius: 50%; box-shadow: 0 4px 12px rgba(126, 95, 0, .24); }
.route-map-content { display: grid; grid-template-columns: minmax(0, 1fr) 285px; flex: 1; min-height: 0; }.route-map-content .route-map-stage { height: 100%; }.map-parcel-summary { display: flex; flex-direction: column; padding: 23px 20px; background: #fffaf2; border-left: 1px solid #ebdccb; }.map-parcel-summary h3 { margin: 0; color: #3b2720; font-family: var(--mono); font-size: 12px; letter-spacing: -.02em; }.map-parcel-status { align-self: flex-start; margin-top: 13px; }.map-detail-list { display: grid; gap: 0; margin: 18px 0 23px; }.map-detail-list div { padding: 10px 0; border-top: 1px solid #eee0d0; }.map-detail-list dt { margin-bottom: 3px; color: #9b8170; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }.map-detail-list dd { margin: 0; color: #4d372e; font-size: 12px; font-weight: 700; line-height: 1.4; }.map-details-button { width: 100%; margin-top: auto; }
.shipment-editor { width: min(465px, calc(100% - 32px)); padding: 0; color: var(--ink); border: 0; border-radius: 18px; box-shadow: 0 30px 75px rgba(5,24,45,.28); }.shipment-editor::backdrop { background: rgba(7,26,46,.52); backdrop-filter: blur(3px); }.shipment-editor form { padding: 27px; }.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }.dialog-header h2 { margin: 0; font-family: var(--display); font-size: 1.45rem; letter-spacing: -.04em; }.dialog-close { width: 31px; height: 31px; color: #4d6984; border: 0; border-radius: 8px; background: #eef4fa; font-size: 22px; line-height: 1; }.editor-id { margin: 22px 0 20px; padding: 10px 11px; color: #29506f; border: 1px solid #dbe7f2; border-radius: 8px; background: #f8fbfd; font-family: var(--mono); font-size: 11px; }.shipment-editor label { display: block; margin: 15px 0 6px; color: #4e6c88; font-size: 12px; font-weight: 700; }.shipment-editor input, .shipment-editor select, .shipment-editor textarea { width: 100%; padding: 10px 11px; color: var(--ink); border: 1px solid #d6e3ef; border-radius: 8px; background: #fff; font-size: 13px; }.shipment-editor textarea { resize: vertical; }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }.secondary-button { padding: 11px 14px; color: #45647f; border: 1px solid #d6e3ef; border-radius: 9px; background: #fff; font-size: 13px; font-weight: 700; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: min(370px, calc(100% - 48px)); padding: 13px 15px; color: #f0fff9; background: #0b624e; border-radius: 10px; box-shadow: 0 18px 40px rgba(6,49,40,.25); font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .2s ease, transform .2s ease; }.toast.show { opacity: 1; transform: translateY(0); }

/* DHL-inspired yellow and red presentation palette. The identity remains Vanguard Logistics. */
.site-header { background: rgba(255, 204, 0, .94); border-bottom-color: rgba(212, 5, 17, .22); }
.nav-link { color: #553b2e; }.nav-link:hover, .nav-link.active { color: #231816; }.nav-link::after { background: var(--blue); }
.dashboard-trigger, .primary-button { background: var(--blue); }.dashboard-trigger:hover, .primary-button:hover { background: #ae000b; box-shadow: 0 10px 24px rgba(212, 5, 17, .19); }
.hero-section { background: radial-gradient(circle at 85% 8%, rgba(255, 204, 0, .35), transparent 27%), linear-gradient(180deg, #fffdf7 0%, #fff7dd 100%); }
.eyebrow { color: #765849; }.hero-lede { color: #625148; }.track-form > label { color: #3c2e28; }.track-input-row { border-color: #e5d4b7; box-shadow: 0 10px 25px rgba(104, 67, 10, .09); }.track-input-row input::placeholder { color: #ad9685; }.track-input-row .primary-button:hover { background: #ae000b; }.form-underlay p, .trust-row { color: #7b675c; }.check-mark { color: #573e00; background: rgba(255, 204, 0, .42); }
.journey-card { color: #fff7e9; background: radial-gradient(circle at 90% 11%, rgba(212, 5, 17, .43), transparent 28%), linear-gradient(145deg, #35231f 0%, #201613 65%, #2d1715 100%); border-color: rgba(255, 204, 0, .35); box-shadow: 0 30px 70px rgba(75, 37, 7, .23); }.journey-card::after { background: radial-gradient(circle, rgba(255, 204, 0, .2), transparent 65%); }.journey-card .panel-label { color: #e6c29b; }.status-badge { color: #ffdf7d; background: rgba(255, 204, 0, .12); border-color: rgba(255, 204, 0, .28); }.status-badge > span { background: var(--emerald); box-shadow: 0 0 0 4px rgba(255, 204, 0, .12); }.status-badge.processing { color: #ffd4d7; background: rgba(212, 5, 17, .15); border-color: rgba(237, 28, 36, .3); }.status-badge.processing > span { background: var(--blue-bright); box-shadow: 0 0 0 4px rgba(237, 28, 36, .13); }.tracking-number-row { color: #dac5b0; border-color: rgba(255, 232, 202, .16); }.copy-button { color: #ffecbf; }.route-muted { stroke: rgba(255, 224, 171, .26); }.route-active { stroke: var(--emerald); filter: drop-shadow(0 0 6px rgba(255, 204, 0, .55)); }.route-node { stroke: #2b1d18; }.route-node.origin, .route-node.destination { fill: #b79a7c; }.route-node.current { fill: var(--emerald); filter: drop-shadow(0 0 5px rgba(255, 204, 0, .82)); }.plane-token { fill: var(--blue-bright); filter: drop-shadow(0 4px 8px rgba(237, 28, 36, .56)); }.route-time { color: #c4a88f; }.route-stop strong { color: #fff7e9; }.route-stop small { color: #ceb6a0; }.shipment-facts { border-top-color: rgba(255, 232, 202, .16); }.shipment-facts span { color: #d5b99c; }.shipment-facts strong { color: #fff7e9; }.details-button { color: #2d2100; background: var(--emerald); }.details-button:hover { background: #ffda43; }
.service-section { background: #fffdf7; }.section-intro > p { color: #776259; }.service-card:hover { border-color: rgba(212, 5, 17, .45); }.service-card.featured { color: #fff7ea; background: #2b1d1a; border-color: #2b1d1a; }.featured p { color: #e0c7b2; }.site-footer { color: #dec9b7; background: #2b1d1a; }.footer-brand { color: #fff8eb; }
.dashboard-view { background: #fffaf0; }.dashboard-sidebar { color: #ffe7b0; background: #d40511; }.sidebar-caption { color: #ffc3a1; }.dashboard-nav-item { color: #ffe0d7; }.dashboard-nav-item span { color: #ffc8a3; }.dashboard-nav-item:hover, .dashboard-nav-item.active { color: #2d1d16; background: #ffcc00; }.dashboard-nav-item.active span { color: #9e0008; }.sidebar-user { border-top-color: rgba(255, 239, 214, .25); }.user-avatar { color: #4a3000; background: #ffcc00; }.sidebar-user strong { color: #fff9ed; }.sidebar-user small { color: #ffd1bd; }
.dashboard-header > div > p:last-child, .date-chip, .period-chip { color: #7b6255; }.back-button { color: #9e0008; border-color: #eadbc7; }.metric-card { border-color: #ecdfcf; }.metric-card > span, .metric-card small { color: #867167; }.metric-card small b { color: #b0000b; }.metric-card.small b.quiet { color: #746259; }.metric-card.accent { color: #fff7e9; background: linear-gradient(135deg, #d40511, #9f000a); border-color: #c5000d; }.metric-card.accent > span { color: #ffd7b9; }.metric-card.accent small { color: #ffe6d5; }.metric-card .status-dot { background: #ffcc00; box-shadow: 0 0 0 4px rgba(255, 204, 0, .14); }
.focus-card, .trend-card, .table-card, .delivery-card, .lane-card { border-color: #eddfcf; }.text-button, .table-action { color: #d40511; }.focus-city span { color: #6b4d00; background: rgba(255, 204, 0, .3); }.focus-city.right span { color: #a0000a; background: rgba(212, 5, 17, .1); }.focus-line { background: #e5d3bd; }.focus-line::before, .focus-line span { background: #ffcc00; }.focus-line span { border-color: #fff9e9; }.focus-line b, .focus-meta strong { color: #755f51; }.focus-meta { border-top-color: #eee4d6; }.focus-meta span { color: #9a8375; }.chart-wrap line { stroke: #f0e2cf; }.chart-line { stroke: #d40511; }.chart-wrap circle { fill: #ffcc00; }.chart-labels, .trend-total span { color: #967e70; }.search-control input, .shipment-editor input, .shipment-editor select, .shipment-editor textarea { border-color: #e3d4c3; }.table-card th { color: #8a7466; border-bottom-color: #eee3d6; }.table-card td { color: #57453c; border-bottom-color: #f4ece2; }.tracking-cell { color: #5a201b !important; }.table-route { color: #947d6e; }.table-status { color: #6a4d00; background: #fff3c7; }.table-status .status-dot { background: #ffcc00; }.table-status.processing { color: #a0000a; background: #ffe2e4; }.table-status.processing .status-dot { background: #d40511; }.table-action { border-color: #ead8ca; }.delivery-ring { background: radial-gradient(#fff 59%, transparent 60%), conic-gradient(#ffcc00 0 94.8%, #efe4d6 94.8% 100%); }.delivery-card p, .lane-card > span { color: #806b5e; }.lane-meter { background: #efe3d5; }.lane-meter span { background: #ffcc00; }.lane-meter.blue span { background: #d40511; }
.shipment-editor { box-shadow: 0 30px 75px rgba(80, 25, 10, .28); }.shipment-editor::backdrop { background: rgba(57, 25, 16, .54); }.dialog-close { color: #8b6356; background: #fff0dc; }.editor-id { color: #762a23; border-color: #eed9c2; background: #fffaf0; }.shipment-editor label { color: #765c4f; }.secondary-button { color: #775f51; border-color: #e6d6c5; }.toast { color: #fff8eb; background: #d40511; box-shadow: 0 18px 40px rgba(117, 0, 9, .25); }

@media (max-width: 1020px) { .gateway-hero { min-height: 560px; }.hero-grid { gap: 36px; }.public-nav { gap: 21px; }.dashboard-main { padding: 40px 35px 60px; }.metrics-grid { grid-template-columns: repeat(2, 1fr); }.overview-grid, .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .site-header { position: static; }.header-inner { min-height: 68px; }.public-nav { display: none; }.dashboard-trigger { margin-left: auto; }.gateway-hero { min-height: 550px; }.gateway-shell { padding: 70px 0 84px; }.gateway-hero-image { object-position: 62% center; }.hero-section { padding: 55px 0 65px; }.hero-grid { grid-template-columns: 1fr; }.hero-copy { max-width: 650px; }.journey-card { max-width: 680px; }.service-section { padding: 70px 0; }.dashboard-sidebar { position: static; width: auto; min-height: 0; padding: 15px 18px; flex-direction: row; align-items: center; gap: 17px; }.sidebar-caption, .sidebar-user { display: none; }.dashboard-nav { display: flex; margin-left: auto; }.dashboard-nav-item { width: auto; padding: 9px; font-size: 11px; }.dashboard-main { margin-left: 0; }.dashboard-header { margin-top: 0; } }
@media (max-width: 620px) { .container { width: min(100% - 32px, 1180px); }.brand { font-size: 11px; }.brand-mark { width: 30px; height: 30px; }.dashboard-trigger { padding: 10px 11px; font-size: 11px; }.gateway-hero { min-height: 600px; }.gateway-shell { align-items: flex-start; padding: 62px 0 88px; }.gateway-hero::before { background: linear-gradient(90deg, rgba(31, 18, 13, .91) 0%, rgba(31, 18, 13, .72) 80%), linear-gradient(0deg, rgba(31, 18, 13, .6) 0%, transparent 45%); }.gateway-hero-image { object-position: 65% center; }.gateway-copy h1 { font-size: clamp(3.15rem, 15vw, 4.4rem); }.gateway-copy > p:not(.gateway-kicker) { margin: 21px 0 25px; font-size: .96rem; }.gateway-kicker { font-size: 9px; letter-spacing: .075em; }.gateway-proof { gap: 13px 0; margin-top: 33px; }.gateway-proof span { width: 50%; padding: 0 12px; font-size: 10px; }.gateway-proof span:first-child { width: 50%; }.gateway-proof span:nth-child(3) { width: 100%; padding-left: 0; border-left: 0; }.gateway-proof strong { font-size: 1.05rem; }.gateway-scroll-cue { left: 16px; bottom: 20px; }.hero-copy h1 { font-size: clamp(2.75rem, 14vw, 4rem); }.hero-lede { font-size: .96rem; }.track-input-row { flex-direction: column; }.track-input-row .primary-button { width: 100%; }.journey-card { padding: 22px 19px; }.route-stops { gap: 6px; }.route-stop.current-stop { padding: 0 6px; }.route-stop small { font-size: 9px; }.shipment-facts { grid-template-columns: 1fr 1fr; }.shipment-facts div:last-child { grid-column: span 2; }.section-intro, .footer-inner { flex-direction: column; align-items: flex-start; }.section-intro { gap: 18px; }.service-grid { grid-template-columns: 1fr; }.service-card { min-height: 180px; }.site-footer { padding: 25px 0; }.footer-inner { gap: 13px; }.dashboard-sidebar { flex-wrap: wrap; }.dashboard-nav { order: 3; width: 100%; justify-content: space-between; }.dashboard-nav-item { justify-content: center; flex: 1; }.dashboard-nav-item span { display: none; }.dashboard-main { padding: 31px 16px 50px; }.dashboard-header { flex-direction: column; gap: 17px; margin-bottom: 25px; }.dashboard-header-actions { width: 100%; justify-content: space-between; }.dashboard-header h1 { font-size: 2.2rem; }.metrics-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.metric-card { min-height: 122px; padding: 15px; }.metric-card > strong { font-size: 1.35rem; }.focus-card, .trend-card { padding: 19px; }.focus-route { gap: 9px; margin: 36px 0 31px; }.focus-city span { width: 35px; height: 35px; }.focus-meta { grid-template-columns: 1fr 1fr; }.focus-meta div:last-child { grid-column: span 2; }.section-toolbar { align-items: flex-start; flex-direction: column; gap: 14px; }.search-control, .search-control input { width: 100%; }.analytics-grid { gap: 10px; }.delivery-card { padding: 20px; gap: 16px; }.delivery-ring { width: 98px; height: 98px; }.form-underlay { align-items: flex-start; flex-direction: column; gap: 5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 38px; }.footer-links { grid-template-columns: repeat(2, 1fr); gap: 15px; }.route-map-modal { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; }.route-map-header { padding: 19px 18px 15px; }.route-map-stage #tracking-map { min-height: 0; }.route-map-footer { padding: 12px 18px; gap: 10px 15px; }
}
@media (max-width: 520px) {
  .site-footer { padding: 47px 0 19px; }.footer-links { grid-template-columns: 1fr 1fr; row-gap: 26px; }.footer-links section:last-child { grid-column: span 2; }.footer-bottom { align-items: flex-start; flex-direction: column; }.route-map-header h2 { font-size: 1.28rem; }.route-map-header > div > p:last-child { max-width: 260px; }.map-flight-card { left: 12px; bottom: 12px; width: calc(100% - 24px); }.route-map-footer { font-size: 10px; }.route-map-footer > span:last-child { width: 100%; }.leaflet-control-zoom { margin-top: 10px !important; }
}

@media (max-width: 860px) {
  .parcel-details-heading { align-items: flex-start; flex-direction: column; }.parcel-details-grid { grid-template-columns: 1fr; }.parcel-history-card { grid-column: span 1; }.route-map-content { grid-template-columns: minmax(0, 1fr) 245px; }
}
@media (max-width: 680px) {
  .parcel-details-section { padding: 62px 0; }.parcel-detail-card, .parcel-history-card { padding: 20px; }.detail-list { gap: 0 14px; }.history-heading { align-items: flex-start; flex-direction: column; }.parcel-history li { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }.parcel-history li::before { left: 115px; }.parcel-history time::after { right: -18px; }.route-map-content { display: block; overflow-y: auto; }.route-map-content .route-map-stage { height: 360px; }.map-parcel-summary { min-height: 250px; border-top: 1px solid #ebdccb; border-left: 0; }.map-detail-list { grid-template-columns: 1fr 1fr; column-gap: 16px; }.map-details-button { margin-top: 2px; }
}
@media (max-width: 430px) {
  .parcel-details-heading h2 { font-size: 1.72rem; }.detail-list { grid-template-columns: 1fr; }.parcel-history li { grid-template-columns: 91px minmax(0, 1fr); gap: 12px; }.parcel-history li::before { left: 94px; }.parcel-history time::after { right: -16px; }.map-detail-list { grid-template-columns: 1fr; }
}

/* Keep the full parcel summary usable when the map dialog is shorter than its content. */
.route-map-modal {
  height: min(760px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
}

.route-map-header,
.route-map-footer {
  flex: 0 0 auto;
}

.route-map-content {
  overflow: hidden;
}

.map-parcel-summary {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #d40511 #fff0df;
  scrollbar-width: thin;
}

.map-parcel-summary::-webkit-scrollbar {
  width: 9px;
}

.map-parcel-summary::-webkit-scrollbar-track {
  background: #fff0df;
}

.map-parcel-summary::-webkit-scrollbar-thumb {
  background: #d40511;
  border: 2px solid #fff0df;
  border-radius: 999px;
}

.map-parcel-summary:focus-visible {
  outline: 3px solid rgba(212, 5, 17, .35);
  outline-offset: -3px;
}

@media (max-width: 760px) {
  .route-map-modal {
    height: 100dvh;
    max-height: 100dvh;
  }
}

@media (max-width: 680px) {
  .route-map-content {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .map-parcel-summary {
    min-height: 250px;
    overflow: visible;
  }
}

a.back-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Global location controls. */
.preferred-location-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 8px 10px;
  color: #4a3327;
  border: 1px solid rgba(91, 59, 37, .26);
  border-radius: 8px;
  background: rgba(255, 250, 239, .58);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.preferred-location-trigger:hover {
  color: #8e0009;
  border-color: rgba(212, 5, 17, .45);
  background: #fffaf0;
}

.preferred-location-trigger > span:first-child {
  color: #d40511;
  font-size: 15px;
}

.preferred-location-dialog {
  width: min(460px, calc(100% - 28px));
  padding: 0;
  color: #3e2b23;
  border: 0;
  border-radius: 18px;
  background: #fffaf2;
  box-shadow: 0 30px 80px rgba(58, 24, 12, .34);
}

.preferred-location-dialog::backdrop {
  background: rgba(41, 23, 15, .58);
  backdrop-filter: blur(4px);
}

.preferred-location-dialog form {
  padding: 32px;
}

.preferred-location-mark {
  display: grid;
  width: 51px;
  height: 51px;
  margin-bottom: 20px;
  padding: 9px;
  place-items: center;
  border: 1px solid rgba(212, 5, 17, .22);
  border-radius: 15px;
  background: linear-gradient(145deg, #ffdc4b, #ffca00);
  box-shadow: 0 10px 23px rgba(179, 115, 0, .17);
}

.preferred-location-mark img {
  width: 100%;
  height: 100%;
}

.preferred-location-dialog .panel-label {
  margin: 0 0 8px;
}

.preferred-location-dialog h2 {
  margin: 0;
  color: #38231c;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.25rem);
  letter-spacing: -.06em;
  line-height: 1.04;
}

.preferred-location-dialog h2 + p {
  margin: 12px 0 24px;
  color: #796257;
  font-size: 14px;
  line-height: 1.65;
}

.preferred-location-dialog label {
  display: block;
  margin-bottom: 7px;
  color: #694d3e;
  font-size: 12px;
  font-weight: 800;
}

.preferred-location-dialog input {
  width: 100%;
  padding: 13px 14px;
  color: #3d2b23;
  border: 1px solid #e4d1ba;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.preferred-location-dialog input:focus {
  outline: 3px solid rgba(212, 5, 17, .16);
  border-color: #d40511;
}

.preferred-location-dialog .primary-button {
  width: 100%;
  margin-top: 18px;
}

.preferred-location-error {
  margin: 9px 0 0;
  color: #b0000c;
  font-size: 12px;
  font-weight: 700;
}

.quote-location-help {
  margin: -3px 0 3px;
  color: #8b7062;
  font-size: 12px;
}

.quote-location-help span {
  color: #6a4c3c;
  font-weight: 800;
}

.city-directory-card {
  margin-top: 16px;
  padding: 23px;
  border: 1px solid #eddfcf;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 13px 32px rgba(82, 44, 22, .05);
}

.city-directory-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.city-directory-toolbar .panel-label {
  margin: 0 0 6px;
}

.city-directory-toolbar h3 {
  margin: 0;
  color: #3d2920;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -.045em;
}

.city-directory-toolbar > div > p:last-child {
  max-width: 500px;
  margin: 7px 0 0;
  color: #856e60;
  font-size: 12px;
  line-height: 1.5;
}

.city-directory-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.city-search-control input {
  width: min(250px, 100%);
  min-height: 38px;
  padding: 9px 11px;
  color: #4c352b;
  border: 1px solid #e3d4c3;
  border-radius: 9px;
  background: #fff;
  font-size: 12px;
}

.city-directory-actions > span {
  color: #886f60;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

.city-directory-table {
  margin: 0;
}

.city-coordinate {
  color: #755e51;
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .city-directory-card {
    padding: 19px;
  }

  .city-directory-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .city-directory-actions {
    justify-content: flex-start;
  }

  .city-search-control,
  .city-search-control input {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .preferred-location-trigger {
    width: 36px;
    padding: 8px;
    justify-content: center;
  }

  .preferred-location-trigger > span:last-child {
    display: none;
  }

  .preferred-location-dialog form {
    padding: 26px 21px;
  }
}

/* Tracking results stay intentionally empty until a shipment is searched. */
.tracking-empty-state {
  display: flex;
  min-height: 410px;
  padding: 34px;
  color: #fff7e9;
  border: 1px solid rgba(255, 204, 0, .34);
  border-radius: 24px;
  background: radial-gradient(circle at 83% 15%, rgba(212, 5, 17, .38), transparent 26%), linear-gradient(145deg, #35231f 0%, #201613 68%, #2c1816 100%);
  box-shadow: 0 30px 70px rgba(75, 37, 7, .18);
  flex-direction: column;
  justify-content: center;
}

.tracking-empty-state .panel-label {
  margin: 0 0 14px;
  color: #e6c29b;
}

.tracking-empty-state h2 {
  max-width: 410px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  letter-spacing: -.055em;
  line-height: 1.05;
}

.tracking-empty-state > p:not(.panel-label) {
  max-width: 450px;
  margin: 15px 0 0;
  color: #d9c2ad;
  font-size: .92rem;
}

.tracking-empty-orbit {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 25px;
  color: #2d1d00;
  border: 1px solid rgba(255, 204, 0, .74);
  border-radius: 50%;
  background: #ffcc00;
  box-shadow: 0 0 0 8px rgba(255, 204, 0, .08);
  font-size: 1.2rem;
}

.empty-state-steps {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: #ead5bf;
  font-size: .78rem;
}

.empty-state-steps span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.empty-state-steps b {
  color: #ffcc00;
  font-family: var(--mono);
  font-size: .68rem;
}

.status-badge.exception,
.parcel-detail-status.exception,
.map-parcel-status.exception {
  color: #ffd2d6;
  border-color: rgba(237, 28, 36, .35);
  background: rgba(212, 5, 17, .18);
}

.status-badge.exception > span,
.parcel-detail-status.exception > span,
.map-parcel-status.exception > span {
  background: #ed1c24;
}

.status-badge.delivered,
.parcel-detail-status.delivered,
.map-parcel-status.delivered {
  color: #d8f7df;
  border-color: rgba(78, 167, 94, .32);
  background: rgba(78, 167, 94, .14);
}

.status-badge.delivered > span,
.parcel-detail-status.delivered > span,
.map-parcel-status.delivered > span {
  background: #4ea75e;
}

.section-toolbar-actions,
.table-actions,
.created-shipment-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.compact-button {
  padding: 10px 13px;
  white-space: nowrap;
}

.table-actions .table-action {
  white-space: nowrap;
}

.table-empty-state {
  padding: 34px 24px 38px;
  color: #765e50;
  border-top: 1px solid #f0e4d7;
  text-align: center;
}

.table-empty-state > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  color: #9c000a;
  border-radius: 50%;
  background: #fff0cd;
  font-size: 1.1rem;
}

.table-empty-state h3 {
  margin: 0;
  color: #412d25;
  font-family: var(--display);
  font-size: 1.15rem;
}

.table-empty-state p {
  max-width: 410px;
  margin: 8px auto 17px;
  font-size: .84rem;
}

.dialog-helper {
  margin: 7px 0 0;
  color: #8c7567;
  font-size: .74rem;
  line-height: 1.45;
}

.dialog-helper.error-text {
  color: #b4000d;
  font-weight: 700;
}

.shipment-creator {
  width: min(690px, calc(100% - 32px));
  max-height: min(830px, calc(100dvh - 32px));
  overflow-y: auto;
}

.shipment-creator form {
  padding: 28px;
}

.creator-intro {
  margin-top: 18px;
}

.creator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.created-shipment-result {
  padding: 19px 0 2px;
  text-align: center;
}

.created-shipment-result .panel-label {
  margin: 0 0 7px;
}

.created-shipment-result h3 {
  margin: 0;
  color: #402b22;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -.04em;
}

.created-shipment-result > p:not(.panel-label) {
  max-width: 430px;
  margin: 14px auto 0;
  color: #80685a;
  font-size: .82rem;
}

.created-tracking-code {
  display: block;
  margin: 18px 0 0;
  padding: 15px;
  color: #71241e;
  border: 1px solid #edcfb3;
  border-radius: 10px;
  background: #fff7e6;
  font-family: var(--mono);
  font-size: clamp(.92rem, 3vw, 1.14rem);
  font-weight: 700;
}

.created-shipment-actions {
  justify-content: center;
  margin-top: 20px;
}

.created-shipment-actions .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.created-shipment-result > .text-button {
  margin-top: 17px;
}

@media (max-width: 760px) {
  .dashboard-header-actions,
  .section-toolbar-actions {
    flex-wrap: wrap;
  }

  .section-toolbar-actions {
    width: 100%;
  }

  .section-toolbar-actions .search-control,
  .section-toolbar-actions .search-control input {
    flex: 1 1 210px;
    width: auto;
  }
}

@media (max-width: 620px) {
  .tracking-empty-state {
    min-height: 330px;
    padding: 24px 20px;
  }

  .creator-grid {
    grid-template-columns: 1fr;
  }

  .shipment-creator form {
    padding: 22px 19px;
  }

  .created-shipment-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .created-shipment-actions .primary-button,
  .created-shipment-actions .secondary-button {
    width: 100%;
  }
}

/* Customer landing page and support flow. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-track-button,
.nav-login-link,
.nav-signup-button {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-track-button {
  color: #fff9ee;
  background: #d40511;
  box-shadow: 0 5px 14px rgba(146, 0, 9, .18);
}

.nav-track-button:hover {
  background: #ab000b;
}

.nav-login-link {
  color: #3f2e26;
  border: 0;
  background: transparent;
}

.nav-login-link:hover {
  color: #9d0009;
}

.nav-signup-button {
  color: #3f2e26;
  border: 1px solid rgba(65, 43, 31, .32);
  background: rgba(255, 250, 239, .67);
}

.nav-signup-button:hover {
  background: #fffaf0;
}

.hero-track-form {
  max-width: 600px;
  margin-top: 27px;
  padding: 13px;
  border: 1px solid rgba(255, 221, 177, .45);
  border-radius: 15px;
  background: rgba(255, 252, 245, .96);
  box-shadow: 0 18px 36px rgba(30, 14, 7, .2);
}

.hero-track-form > label {
  display: block;
  margin: 0 0 8px;
  color: #3b2921;
  font-size: .79rem;
  font-weight: 800;
}

.hero-track-row {
  display: flex;
  gap: 8px;
}

.hero-track-row input {
  min-width: 0;
  flex: 1;
  padding: 12px 13px;
  color: #3d2a23;
  border: 1px solid #e1cfb9;
  border-radius: 9px;
  outline: 0;
  background: #fffefa;
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-track-row input::placeholder {
  color: #a18877;
  font-family: var(--body);
  font-weight: 500;
  text-transform: none;
}

.hero-track-row input:focus {
  border-color: #d40511;
  box-shadow: 0 0 0 3px rgba(212, 5, 17, .14);
}

.hero-track-button {
  min-height: 44px;
  padding: 11px 15px;
  color: #fff8eb;
  border: 1px solid #d40511;
  border-radius: 9px;
  background: #d40511;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
}

.hero-track-button:hover {
  background: #ab000b;
  transform: translateY(-1px);
}

.hero-track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.hero-track-meta p {
  margin: 0;
  color: #806a5c;
  font-size: .67rem;
  line-height: 1.4;
}

.hero-sample-link {
  flex: 0 0 auto;
  padding: 0;
  color: #aa000b;
  border: 0;
  background: transparent;
  font-size: .7rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-track-feedback {
  min-height: 18px;
  margin: 7px 0 0;
  color: #765f50;
  font-size: .7rem;
  font-weight: 700;
}

.hero-track-feedback.error {
  color: #a3000b;
}

.gateway-support-button {
  font-family: var(--body);
}

.tracking-guide {
  max-width: 520px;
}

.tracking-guide h2 {
  margin: 0;
  color: #30221e;
  font-family: var(--display);
  font-size: clamp(2.45rem, 4.6vw, 4.45rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}

.tracking-guide > p:not(.eyebrow) {
  max-width: 485px;
  margin: 22px 0 0;
  color: #705b50;
  font-size: .98rem;
  line-height: 1.72;
}

.tracking-guide-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 25px;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 14px;
  color: #fff9ed;
  border-radius: 8px;
  background: #d40511;
  font-size: .76rem;
  font-weight: 800;
}

.guide-button:hover {
  background: #ac000b;
}

.guide-link {
  color: #783c28;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tracking-guide .trust-row {
  margin-top: 28px;
}

.how-section,
.faq-section {
  padding: 94px 0;
  background: #fff7e3;
}

.how-section-intro {
  margin-bottom: 35px;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.how-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  min-height: 188px;
  padding: 24px;
  border: 1px solid #eadbc5;
  border-radius: 16px;
  background: #fffdf8;
}

.how-number,
.feature-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #5a3b00;
  border-radius: 50%;
  background: #ffcc00;
  font-family: var(--mono);
  font-size: .69rem;
  font-weight: 700;
}

.how-steps h3,
.feature-card h3 {
  margin: 2px 0 8px;
  color: #3a2922;
  font-family: var(--display);
  font-size: 1.13rem;
  letter-spacing: -.035em;
}

.how-steps p,
.feature-card p {
  margin: 0;
  color: #776459;
  font-size: .81rem;
  line-height: 1.65;
}

.feature-section {
  padding: 98px 0 102px;
  color: #fff8ec;
  background: radial-gradient(circle at 84% 10%, rgba(212, 5, 17, .37), transparent 30%), #2b1d1a;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 72px;
  align-items: end;
}

.feature-heading .eyebrow {
  color: #efcfaa;
}

.feature-heading .eyebrow-line {
  background: #ffcc00;
}

.feature-heading h2 {
  max-width: 490px;
  margin: 0;
  color: #fff8ec;
  font-family: var(--display);
  font-size: clamp(2.25rem, 4vw, 3.9rem);
  letter-spacing: -.065em;
  line-height: 1.03;
}

.feature-heading h2 em {
  color: #ffcc00;
}

.feature-heading > p:not(.eyebrow) {
  max-width: 450px;
  margin: 20px 0 0;
  color: #dec7b2;
  font-size: .92rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-height: 225px;
  display: flex;
  flex-direction: column;
  padding: 21px;
  border: 1px solid rgba(255, 232, 202, .18);
  border-radius: 14px;
  background: rgba(255, 250, 239, .055);
}

.feature-card h3 {
  margin-top: auto;
  color: #fff8ec;
}

.feature-card p {
  color: #dfc6b1;
}

.feature-card-accent {
  border-color: rgba(255, 204, 0, .5);
  background: #ffcc00;
}

.feature-card-accent .feature-icon {
  color: #fff4db;
  background: #d40511;
}

.feature-card-accent h3,
.feature-card-accent p {
  color: #342419;
}

.faq-section {
  background: #fffdf8;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: start;
}

.faq-heading h2 {
  margin: 0;
  color: #33231d;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.55rem);
  letter-spacing: -.06em;
  line-height: 1.04;
}

.faq-heading > p:not(.eyebrow) {
  max-width: 370px;
  margin: 19px 0 0;
  color: #746155;
  font-size: .9rem;
  line-height: 1.7;
}

.faq-support-button {
  margin-top: 25px;
}

.faq-list {
  border-top: 1px solid #eadcca;
}

.faq-item {
  border-bottom: 1px solid #eadcca;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  color: #3c2b24;
  cursor: pointer;
  font-family: var(--display);
  font-size: .98rem;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #b4000c;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 650px;
  margin: -2px 0 20px;
  color: #786559;
  font-size: .84rem;
  line-height: 1.7;
}

.support-section {
  padding: 61px 0;
  color: #fff8eb;
  background: #d40511;
}

.support-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.support-section .panel-label {
  color: #ffdba4;
}

.support-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -.055em;
}

.support-section p:not(.panel-label) {
  max-width: 610px;
  margin: 10px 0 0;
  color: #ffe3ce;
  font-size: .86rem;
  line-height: 1.65;
}

.support-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.support-primary,
.support-secondary {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 800;
}

.support-primary {
  color: #382600;
  border: 1px solid #ffcc00;
  background: #ffcc00;
}

.support-primary:hover {
  background: #ffda42;
}

.support-secondary {
  color: #fff9ee;
  border: 1px solid rgba(255, 243, 225, .58);
  background: transparent;
}

.support-secondary:hover {
  background: rgba(255, 248, 235, .12);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-socials button {
  padding: 5px 7px;
  color: #f4d5af;
  border: 1px solid rgba(250, 219, 177, .22);
  border-radius: 6px;
  background: transparent;
  font-size: .67rem;
  font-weight: 700;
}

.footer-socials button:hover {
  color: #392600;
  border-color: #ffcc00;
  background: #ffcc00;
}

.footer-links {
  grid-template-columns: repeat(3, 1fr);
}

.footer-bottom button {
  padding: 0;
  color: #b89e89;
  border: 0;
  background: transparent;
  font-family: var(--body);
  font-size: 10px;
}

.footer-bottom button:hover {
  color: #ffcc00;
}

.support-dialog {
  width: min(510px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: #32231d;
  border: 0;
  border-radius: 18px;
  background: #fffaf2;
  box-shadow: 0 30px 75px rgba(75, 26, 10, .38);
}

.support-dialog::backdrop {
  background: rgba(52, 25, 15, .65);
  backdrop-filter: blur(4px);
}

.support-dialog form {
  padding: 26px;
}

.support-dialog .dialog-header .panel-label {
  color: #a66f46;
}

.support-dialog .dialog-helper {
  max-width: 385px;
}

.support-dialog label {
  display: block;
  margin: 16px 0 6px;
  color: #6c5447;
  font-size: .75rem;
  font-weight: 800;
}

.support-dialog label span {
  color: #9a8374;
  font-weight: 600;
}

.support-dialog input,
.support-dialog textarea {
  width: 100%;
  padding: 10px 11px;
  color: #3e2d25;
  border: 1px solid #e3d4c3;
  border-radius: 8px;
  outline: 0;
  background: #fffefa;
  font-size: .82rem;
}

.support-dialog textarea {
  min-height: 105px;
  resize: vertical;
}

.support-dialog input:focus,
.support-dialog textarea:focus {
  border-color: #d40511;
  box-shadow: 0 0 0 3px rgba(212, 5, 17, .12);
}

.support-form-success {
  padding: 19px 0 2px;
  text-align: center;
}

.support-form-success > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  color: #463200;
  border-radius: 50%;
  background: #ffcc00;
  font-weight: 800;
}

.support-form-success h3 {
  margin: 0;
  color: #3c2b23;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -.045em;
}

.support-form-success p {
  max-width: 360px;
  margin: 10px auto 0;
  color: #786458;
  font-size: .82rem;
  line-height: 1.6;
}

.support-form-success .dialog-actions {
  justify-content: center;
}

.floating-support {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 19;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  color: #fff9ed;
  border: 1px solid rgba(255, 215, 156, .35);
  border-radius: 999px;
  background: #2b1d1a;
  box-shadow: 0 14px 30px rgba(50, 25, 12, .25);
  font-size: .74rem;
  font-weight: 800;
}

.floating-support:hover {
  color: #382600;
  border-color: #ffcc00;
  background: #ffcc00;
}

.floating-support span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #3c2800;
  border-radius: 50%;
  background: #ffcc00;
  font-family: var(--display);
  font-size: .76rem;
}

.floating-support:hover span {
  color: #fff9ed;
  background: #d40511;
}

body.has-floating-support .toast {
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 56px);
}

@media (max-width: 920px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 11px 18px;
    padding: 11px 0;
  }

  .public-nav {
    order: 3;
    display: flex;
    width: 100%;
    margin-left: 0;
    padding: 2px 0 3px;
    overflow-x: auto;
    gap: 20px;
  }

  .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .feature-layout,
  .faq-layout {
    gap: 42px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-card h3 {
    margin-top: 28px;
  }
}

@media (max-width: 760px) {
  .hero-track-row,
  .support-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-track-button {
    width: 100%;
  }

  .how-steps,
  .feature-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .how-section,
  .faq-section,
  .feature-section {
    padding: 70px 0;
  }

  .support-actions {
    width: 100%;
  }

  .support-primary,
  .support-secondary {
    flex: 1 1 190px;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .header-actions {
    gap: 5px;
  }

  .nav-track-button,
  .nav-login-link,
  .nav-signup-button {
    padding: 7px 8px;
    font-size: 11px;
  }

  .hero-track-form {
    padding: 11px;
  }

  .hero-track-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .how-steps li {
    min-height: 0;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links section:last-child {
    grid-column: span 2;
  }

  .support-dialog form {
    padding: 21px 18px;
  }

  .floating-support {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  body.has-floating-support .toast {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 54px);
  }
}

/* Phase two: public information, support, quote, legal, and fallback pages. */
.content-page {
  min-height: 100vh;
  background: #fffdf8;
}

.content-page .site-header {
  position: sticky;
}

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 106px 0 100px;
  color: #fff9ed;
  background: radial-gradient(circle at 83% 22%, rgba(212, 5, 17, .5), transparent 24%), linear-gradient(123deg, #2b1d1a 0%, #33211d 57%, #17100e 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -170px;
  bottom: -210px;
  z-index: -1;
  width: 510px;
  height: 510px;
  border: 78px solid rgba(255, 204, 0, .11);
  border-radius: 50%;
}

.page-hero-compact {
  padding: 82px 0 78px;
}

.page-hero-legal {
  padding: 76px 0 70px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(240px, .58fr);
  gap: 68px;
  align-items: end;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: #ffdca6;
  font-family: var(--mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
}

.page-kicker span {
  width: 24px;
  height: 2px;
  background: #ffcc00;
}

.page-hero h1 {
  max-width: 770px;
  margin: 0;
  color: #fff9ed;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.25vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: .98;
}

.page-hero h1 em {
  color: #ffcc00;
}

.page-hero > .container > p,
.page-hero-grid > div > p:not(.page-kicker) {
  max-width: 655px;
  margin: 24px 0 0;
  color: #f1d7bf;
  font-size: 1rem;
  line-height: 1.75;
}

.page-hero-note {
  padding: 23px;
  border: 1px solid rgba(255, 223, 177, .25);
  border-radius: 14px;
  background: rgba(255, 251, 242, .06);
  box-shadow: 0 20px 48px rgba(16, 7, 3, .15);
}

.page-hero-note span,
.card-label {
  display: block;
  color: #ffcc00;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.page-hero-note strong {
  display: block;
  margin-top: 10px;
  color: #fff9ed;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.page-hero-note p {
  margin: 11px 0 0;
  color: #e7cbb5;
  font-size: .76rem;
  line-height: 1.6;
}

.page-section,
.legal-section {
  padding: 100px 0;
}

.page-section-warm {
  background: #fff4d9;
  border-top: 1px solid #f0dfbd;
  border-bottom: 1px solid #f0dfbd;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 78px;
  align-items: start;
}

.split-grid-wide {
  align-items: center;
}

.section-copy h2,
.help-heading h2 {
  max-width: 620px;
  margin: 0;
  color: #34241e;
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.1vw, 3.95rem);
  font-weight: 800;
  letter-spacing: -.064em;
  line-height: 1.02;
}

.section-copy > p:not(.eyebrow) {
  max-width: 585px;
  margin: 20px 0 0;
  color: #766156;
  font-size: .93rem;
  line-height: 1.75;
}

.section-copy > p:not(.eyebrow) + p {
  margin-top: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-grid article {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 21px;
  border: 1px solid #ecdcca;
  border-radius: 14px;
  background: #fffdfa;
}

.stat-grid article:nth-child(2),
.stat-grid article:nth-child(3) {
  background: #2b1d1a;
  border-color: #2b1d1a;
}

.stat-grid strong {
  color: #a9000b;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  letter-spacing: -.06em;
}

.stat-grid article:nth-child(2) strong,
.stat-grid article:nth-child(3) strong {
  color: #ffcc00;
}

.stat-grid span {
  display: block;
  margin-top: 5px;
  color: #7c675b;
  font-size: .72rem;
  line-height: 1.45;
}

.stat-grid article:nth-child(2) span,
.stat-grid article:nth-child(3) span {
  color: #e5cbb7;
}

.principle-grid,
.contact-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.principle-grid article {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid #ead9c1;
  border-radius: 16px;
  background: #fffdf8;
}

.principle-grid span,
.contact-channel-grid article > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #513600;
  border-radius: 50%;
  background: #ffcc00;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
}

.principle-grid h3,
.contact-channel-grid h2 {
  margin: auto 0 8px;
  color: #392923;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -.04em;
}

.principle-grid p,
.contact-channel-grid p {
  margin: 0;
  color: #756156;
  font-size: .8rem;
  line-height: 1.65;
}

.page-cta {
  padding: 64px 0;
  color: #fff9ed;
  background: #2b1d1a;
}

.page-cta-shell,
.support-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.page-cta h2,
.support-prompt h2 {
  max-width: 685px;
  margin: 0;
  color: #fff9ed;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  letter-spacing: -.055em;
  line-height: 1.07;
}

.page-cta-shell > div:last-child {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.support-primary,
.support-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.service-page-grid {
  display: grid;
  gap: 15px;
}

.service-page-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 21px;
  align-items: end;
  padding: 30px;
  border: 1px solid #eadaca;
  border-radius: 17px;
  background: #fffdf9;
}

.service-page-card .service-index {
  color: #ad000b;
  font-size: .73rem;
}

.service-page-card h2 {
  margin: 7px 0 10px;
  color: #382820;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  letter-spacing: -.05em;
}

.service-page-card div > p:not(.card-label) {
  max-width: 590px;
  margin: 0;
  color: #776357;
  font-size: .84rem;
  line-height: 1.68;
}

.service-page-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 17px 0 0;
  padding: 0;
  color: #70584c;
  list-style: none;
  font-size: .72rem;
}

.service-page-card li::before {
  content: "✓";
  margin-right: 6px;
  color: #a9000b;
  font-weight: 800;
}

.service-page-card > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 41px;
  padding: 10px 12px;
  color: #9f000a;
  border: 1px solid #ecd5c2;
  border-radius: 8px;
  background: #fff7ec;
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}

.service-page-card > a:hover {
  color: #fff9ed;
  border-color: #d40511;
  background: #d40511;
}

.service-page-card-featured {
  color: #fff9ed;
  border-color: #2b1d1a;
  background: radial-gradient(circle at 85% 20%, rgba(212, 5, 17, .35), transparent 27%), #2b1d1a;
}

.service-page-card-featured h2 { color: #fff9ed; }
.service-page-card-featured .card-label,
.service-page-card-featured .service-index { color: #ffcc00; }
.service-page-card-featured div > p:not(.card-label),
.service-page-card-featured ul { color: #e7cbb5; }
.service-page-card-featured li::before { color: #ffcc00; }
.service-page-card-featured > a { color: #382600; border-color: #ffcc00; background: #ffcc00; }
.service-page-card-featured > a:hover { color: #fff9ed; border-color: #d40511; background: #d40511; }

.service-flow {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-flow li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding: 18px 0;
  border-top: 1px solid #e8d7bf;
}

.service-flow li:last-child { border-bottom: 1px solid #e8d7bf; }
.service-flow b { color: #aa000b; font-family: var(--mono); font-size: .72rem; }
.service-flow strong { display: block; color: #413027; font-size: .85rem; }
.service-flow span { display: block; margin-top: 4px; color: #786459; font-size: .76rem; line-height: 1.55; }

.quote-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .66fr) minmax(0, 1.34fr);
  gap: 72px;
  align-items: start;
}

.quote-aside {
  position: sticky;
  top: 105px;
}

.quote-aside h2 {
  margin: 0;
  color: #35251e;
  font-family: var(--display);
  font-size: clamp(2rem, 3.7vw, 3.45rem);
  letter-spacing: -.06em;
  line-height: 1.03;
}

.quote-aside > p:not(.eyebrow) {
  margin: 19px 0 0;
  color: #766156;
  font-size: .86rem;
  line-height: 1.72;
}

.quote-aside ol {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.quote-aside li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #655044;
  font-size: .78rem;
  font-weight: 700;
}

.quote-aside li b {
  color: #a9000b;
  font-family: var(--mono);
  font-size: .68rem;
}

.quote-form-card,
.contact-form-card {
  padding: 28px;
  border: 1px solid #e5d5c3;
  border-radius: 17px;
  background: #fffdf8;
  box-shadow: 0 18px 45px rgba(95, 51, 13, .07);
}

.form-card-heading h2 {
  margin: 0;
  color: #3d2b23;
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -.045em;
}

.form-card-heading > p:not(.panel-label) {
  margin: 6px 0 0;
  color: #7f6a5d;
  font-size: .77rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 13px;
  margin-top: 18px;
}

.quote-form-card label,
.contact-form-card label {
  display: block;
  margin-top: 14px;
  color: #6b5347;
  font-size: .73rem;
  font-weight: 800;
}

.quote-form-card label span,
.contact-form-card label span {
  color: #a08a7a;
  font-weight: 600;
}

.quote-form-card input,
.quote-form-card select,
.quote-form-card textarea,
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  color: #3f2e26;
  border: 1px solid #e2d1be;
  border-radius: 8px;
  outline: 0;
  background: #fffefa;
  font-size: .8rem;
}

.quote-form-card textarea,
.contact-form-card textarea {
  resize: vertical;
}

.quote-form-card input:focus,
.quote-form-card select:focus,
.quote-form-card textarea:focus,
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  border-color: #d40511;
  box-shadow: 0 0 0 3px rgba(212, 5, 17, .12);
}

.form-field-wide {
  grid-column: span 2;
}

.form-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.form-card-actions p {
  margin: 0;
  color: #8b7668;
  font-size: .68rem;
}

.form-request-success {
  padding: 38px 20px 16px;
  text-align: center;
}

.form-request-success > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  color: #483300;
  border-radius: 50%;
  background: #ffcc00;
  font-size: 1.05rem;
  font-weight: 800;
}

.form-request-success h2 {
  margin: 0;
  color: #3e2c23;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -.05em;
}

.form-request-success > p:not(.panel-label) {
  max-width: 390px;
  margin: 10px auto 19px;
  color: #776257;
  font-size: .8rem;
  line-height: 1.65;
}

.contact-channel-grid article {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid #eadaca;
  border-radius: 16px;
  background: #fffdf8;
}

.contact-channel-grid article:nth-child(2) { background: #fff4d9; }
.contact-channel-grid article:nth-child(3) { color: #fff9ed; border-color: #2b1d1a; background: #2b1d1a; }
.contact-channel-grid article:nth-child(3) h2 { color: #fff9ed; }
.contact-channel-grid article:nth-child(3) p { color: #e4c9b5; }
.contact-channel-grid article:nth-child(3) > span { color: #fff9ed; background: #d40511; }

.contact-channel-grid a,
.contact-channel-grid button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  color: #a7000b;
  border: 0;
  background: transparent;
  font-size: .76rem;
  font-weight: 800;
}

.contact-channel-grid article:nth-child(3) button { color: #ffcc00; }
.contact-channel-grid b { font-size: 1rem; }
.contact-layout .secondary-button { margin-top: 26px; }

.help-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 70px;
  align-items: start;
}

.help-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 0;
  padding: 18px;
  border: 1px solid #e7d7c4;
  border-radius: 13px;
  background: #fff8eb;
}

.help-sidebar .eyebrow { margin: 4px 4px 10px; }
.help-sidebar a,
.help-sidebar button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px;
  color: #60493d;
  border: 0;
  border-top: 1px solid #ead9c2;
  background: transparent;
  font-size: .76rem;
  font-weight: 800;
  text-align: left;
}

.help-sidebar a:hover,
.help-sidebar button:hover { color: #a9000b; }
.help-sidebar b { color: #a9000b; }
.help-heading { margin-bottom: 28px; }
.help-heading .eyebrow { margin-bottom: 14px; }
.help-faq-list { max-width: 780px; }

.support-prompt {
  color: #fff9ed;
  padding: 34px;
  border-radius: 17px;
  background: #d40511;
}

.support-prompt .panel-label { color: #ffdda6; }
.support-prompt h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); }
.support-prompt p:not(.panel-label) { max-width: 600px; margin: 9px 0 0; color: #ffe4cf; font-size: .82rem; line-height: 1.65; }

.legal-section { background: #fffdf8; }
.legal-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 80px; align-items: start; }
.legal-layout aside { position: sticky; top: 104px; display: grid; gap: 8px; }
.legal-layout aside p { margin: 0; color: #9a806d; font-family: var(--mono); font-size: .63rem; letter-spacing: .07em; }
.legal-layout aside strong { color: #3e2c24; font-family: var(--display); font-size: .88rem; }
.legal-layout aside a { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; color: #8f000a; border-top: 1px solid #ead9c7; font-size: .76rem; font-weight: 800; }
.legal-copy { max-width: 770px; }
.legal-copy h2 { margin: 0; color: #392920; font-family: var(--display); font-size: clamp(1.32rem, 2.2vw, 1.78rem); letter-spacing: -.045em; }
.legal-copy p { margin: 10px 0 28px; color: #756156; font-size: .87rem; line-height: 1.78; }
.legal-copy h2:not(:first-child) { margin-top: 34px; }

.not-found-page { display: grid; min-height: min(660px, calc(100dvh - 76px)); place-items: center; padding: 70px 24px; background: radial-gradient(circle at 85% 14%, rgba(255, 204, 0, .27), transparent 25%), #fff7e3; }
.not-found { max-width: 680px; text-align: center; }
.not-found > p:first-child { margin: 0; color: #d40511; font-family: var(--mono); font-size: clamp(4.2rem, 11vw, 8.5rem); font-weight: 700; letter-spacing: -.1em; line-height: .85; }
.not-found h1 { margin: 22px 0 0; color: #34241e; font-family: var(--display); font-size: clamp(2.25rem, 5vw, 4.3rem); letter-spacing: -.07em; line-height: .99; }
.not-found > span { display: block; width: 56px; height: 3px; margin: 25px auto; background: #ffcc00; }
.not-found > p:not(:first-child) { max-width: 510px; margin: 0 auto; color: #746055; font-size: .93rem; line-height: 1.7; }
.not-found > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.not-found .support-secondary { color: #5a3f33; border-color: #cdb9a8; }
.not-found .support-secondary:hover { color: #fff9ed; border-color: #d40511; background: #d40511; }

.footer-bottom a {
  padding: 0;
  color: #b89e89;
  font-family: var(--body);
  font-size: 10px;
}

.footer-bottom a:hover { color: #ffcc00; }

@media (max-width: 980px) {
  .page-hero-grid,
  .split-grid,
  .quote-layout,
  .contact-layout { gap: 42px; }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) 245px; }
  .service-page-card { grid-template-columns: 54px minmax(0, 1fr); }
  .service-page-card > a { grid-column: 2; justify-self: start; }
  .help-layout,
  .legal-layout { gap: 42px; }
}

@media (max-width: 760px) {
  .page-hero,
  .page-hero-compact,
  .page-hero-legal { padding: 70px 0; }
  .page-hero-grid,
  .split-grid,
  .quote-layout,
  .contact-layout,
  .help-layout,
  .legal-layout { grid-template-columns: 1fr; }
  .page-hero-grid { gap: 28px; }
  .page-hero-note { max-width: 350px; }
  .page-section,
  .legal-section { padding: 68px 0; }
  .principle-grid,
  .contact-channel-grid { grid-template-columns: 1fr; }
  .principle-grid article,
  .contact-channel-grid article { min-height: 0; }
  .principle-grid h3,
  .contact-channel-grid h2 { margin-top: 30px; }
  .page-cta-shell,
  .support-prompt { align-items: flex-start; flex-direction: column; }
  .service-page-card { padding: 23px; }
  .quote-aside,
  .help-sidebar,
  .legal-layout aside { position: static; }
  .help-sidebar { grid-template-columns: 1fr 1fr; }
  .help-sidebar .eyebrow { grid-column: span 2; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
}

@media (max-width: 520px) {
  .page-hero h1 { font-size: clamp(2.5rem, 12.7vw, 4rem); }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid article { min-height: 120px; }
  .quote-form-card,
  .contact-form-card { padding: 21px 17px; }
  .service-page-card { grid-template-columns: 1fr; gap: 15px; }
  .service-page-card > a { grid-column: auto; }
  .help-sidebar { grid-template-columns: 1fr; }
  .help-sidebar .eyebrow { grid-column: auto; }
  .support-prompt { padding: 25px 20px; }
}

/* Admin core operations: shipment management, labels, and reports. */
.recent-activity-card,
.report-status-card {
  margin-top: 16px;
  padding: 24px 25px;
  border: 1px solid #eddfcf;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 35px rgba(86, 48, 25, .035);
}

.recent-activity-list {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.recent-activity-list li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #f1e6d9;
}

.recent-activity-list li:first-child { border-top: 0; }
.recent-activity-list strong,
.recent-activity-list span,
.recent-activity-list time { display: block; }
.recent-activity-list strong { color: #483229; font-size: .78rem; }
.recent-activity-list div > span,
.recent-activity-list time,
.activity-empty { color: #8b7466; font-size: .7rem; }
.recent-activity-list time { font-family: var(--mono); font-size: .62rem; white-space: nowrap; }
.activity-empty { display: block !important; padding: 12px 0; }

.activity-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffcc00;
  box-shadow: 0 0 0 4px rgba(255, 204, 0, .18);
}

.activity-dot.processing { background: #d40511; box-shadow: 0 0 0 4px rgba(212, 5, 17, .12); }
.activity-dot.exception { background: #bb2935; box-shadow: 0 0 0 4px rgba(187, 41, 53, .13); }
.activity-dot.delivered { background: #398455; box-shadow: 0 0 0 4px rgba(57, 132, 85, .13); }

.table-filter {
  min-height: 39px;
  padding: 0 29px 0 10px;
  color: #654b3f;
  border: 1px solid #e3d4c3;
  border-radius: 9px;
  background: #fffefa;
  font-size: .69rem;
  font-weight: 700;
}

.table-filter:focus,
.table-action:focus-visible,
.bulk-actions button:focus-visible {
  outline: 3px solid rgba(212, 5, 17, .2);
  outline-offset: 2px;
}

.bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 11px 13px;
  color: #684f42;
  border: 1px solid #ecd8c4;
  border-radius: 11px;
  background: #fff4df;
  font-size: .76rem;
}

.bulk-actions > div,
.shipment-pagination > div,
.table-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.table-actions { flex-wrap: wrap; min-width: 290px; }
.table-card table { min-width: 1140px; }
.table-card th:first-child,
.table-card td:first-child { width: 28px; padding-right: 3px; }
.table-card input[type="checkbox"] { width: 15px; height: 15px; accent-color: #d40511; cursor: pointer; }
.table-card td strong { color: #54231e; font-family: var(--mono); font-size: .67rem; }
.table-card tr.is-archived { opacity: .68; }
.table-updated { color: #8d7667 !important; font-family: var(--mono); font-size: .66rem !important; white-space: nowrap; }

.archived-chip {
  display: inline-flex;
  margin: 5px 0 0 6px;
  padding: 3px 5px;
  color: #725d50;
  border-radius: 999px;
  background: #eee3d5;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.table-status.transit { color: #725700; background: #fff2bf; }
.table-status.delivered { color: #236d45; background: #e3f5e8; }
.table-action { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.table-action:hover { color: #fff8eb; border-color: #d40511; background: #d40511; }
.table-action.danger { color: #ad000b; border-color: #efc6c9; }
.table-action.danger:hover { color: #fff; border-color: #a9000b; background: #a9000b; }
.danger-button { color: #fff; border: 1px solid #a9000b; border-radius: 9px; background: #a9000b; font-size: 13px; font-weight: 700; }
.danger-button:hover { background: #780009; }
.compact-button.danger-button { padding: 10px 13px; }

.shipment-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 20px;
  color: #816c5f;
  border-top: 1px solid #f0e4d8;
  font-size: .69rem;
}

.shipment-pagination > div { flex-wrap: wrap; }
.shipment-pagination span { white-space: nowrap; }
.shipment-pagination button:disabled,
.focus-card button:disabled { cursor: not-allowed; opacity: .45; }

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

#shipment-editor {
  width: min(730px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

#tracking-event-dialog { width: min(520px, calc(100% - 32px)); }

.delivery-ring {
  background: radial-gradient(#fff 59%, transparent 60%), conic-gradient(#ffcc00 0 var(--delivery-rate, 0%), #efe4d6 var(--delivery-rate, 0%) 100%);
}

.report-status-card { margin-top: 16px; }
.report-status-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.report-status-list article { padding: 13px; border: 1px solid #efe2d2; border-radius: 11px; background: #fffaf1; }
.report-status-list article > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.report-status-list article strong { color: #4f372d; font-family: var(--display); font-size: 1.15rem; }
.report-status-list small { display: block; margin-top: 8px; color: #8d7769; font-size: .61rem; line-height: 1.3; }
.report-bar { display: block; height: 5px; margin-top: 13px; overflow: hidden; border-radius: 999px; background: #eadfce; }
.report-bar i { display: block; height: 100%; border-radius: inherit; background: #ffcc00; }
.report-bar i.processing { background: #d40511; }
.report-bar i.exception { background: #b52c37; }
.report-bar i.delivered { background: #398455; }

.shipment-label,
.confirmation-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 27px;
  color: #3f2d24;
  border: 0;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 30px 75px rgba(80, 25, 10, .28);
}

.shipment-label::backdrop,
.confirmation-dialog::backdrop { background: rgba(57, 25, 16, .54); backdrop-filter: blur(3px); }
.shipment-label .dialog-header,
.confirmation-dialog .dialog-header { margin-bottom: 20px; }
.confirmation-dialog > p { margin: 0; color: #765f52; font-size: .85rem; line-height: 1.55; }

.shipping-label {
  overflow: hidden;
  border: 1px solid #3f2b21;
  border-radius: 10px;
  background: #fff;
}

.shipping-label-brand {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  color: #fff9ed;
  background: #3f2b21;
}

.shipping-label-brand > img {
  display: block;
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .2));
}

.shipping-label-brand strong { font-size: .72rem; line-height: 1.12; letter-spacing: .06em; }
.shipping-label-brand b { padding: 4px 6px; color: #3f2b21; border-radius: 4px; background: #ffcc00; font-family: var(--mono); font-size: .54rem; }
.shipping-label-route { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; padding: 16px; border-bottom: 1px solid #e5d8c7; }
.shipping-label-route div:last-child { text-align: right; }
.shipping-label-route span,
.shipping-label-recipient > span { display: block; color: #947b68; font-family: var(--mono); font-size: .57rem; font-weight: 700; letter-spacing: .08em; }
.shipping-label-route strong { display: block; margin-top: 5px; color: #3e2b21; font-family: var(--display); font-size: 1.05rem; letter-spacing: -.04em; }
.shipping-label-route > i { color: #d40511; font-size: 1.15rem; font-style: normal; text-align: center; }
.shipping-label-recipient { padding: 16px; border-bottom: 1px solid #e5d8c7; }
.shipping-label-recipient strong { display: block; margin-top: 5px; color: #37261e; font-family: var(--display); font-size: 1rem; }
.shipping-label-recipient small { display: block; margin-top: 4px; color: #7d6557; font-size: .68rem; }
.label-barcode { padding: 16px; text-align: center; }
.label-barcode > div { display: flex; align-items: stretch; justify-content: center; gap: 2px; height: 51px; }
.label-barcode i { display: block; height: 51px; background: #33231c; }
.label-barcode strong { display: block; margin-top: 8px; color: #3c2920; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; }
.shipping-label-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; color: #654c3f; border-top: 1px solid #e5d8c7; background: #fff6e4; font-family: var(--mono); font-size: .63rem; }
.label-helper { margin-top: 14px; }

@media (max-width: 900px) {
  .report-status-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .recent-activity-card,
  .report-status-card { padding: 20px; }
  .bulk-actions,
  .shipment-pagination { align-items: flex-start; flex-direction: column; }
  .bulk-actions > div { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .editor-grid,
  .report-status-list { grid-template-columns: 1fr; }
  #shipment-editor,
  #tracking-event-dialog,
  .shipment-label,
  .confirmation-dialog { width: min(100% - 20px, 520px); }
  .shipment-editor form,
  .shipment-label,
  .confirmation-dialog { padding: 21px 18px; }
  .recent-activity-list li { grid-template-columns: 10px minmax(0, 1fr); }
  .recent-activity-list time { grid-column: 2; }
  .shipping-label-route { grid-template-columns: 1fr 23px 1fr; padding: 14px 11px; }
  .shipping-label-route strong { font-size: .88rem; }
  .shipping-label-brand { grid-template-columns: 34px 1fr; }
  .shipping-label-brand b { display: none; }
}

@media print {
  body.printing-label > *:not(#shipment-label) { display: none !important; }
  body.printing-label #shipment-label { position: static; display: block; width: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  body.printing-label #shipment-label > .dialog-header,
  body.printing-label #shipment-label > .dialog-helper,
  body.printing-label #shipment-label > .dialog-actions { display: none !important; }
  body.printing-label .shipping-label { border: 1px solid #222; border-radius: 0; }
}

/* Customer account experience. */
.nav-account-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px;
  color: #7a572d;
  border: 1px solid #e8cfaa;
  border-radius: 8px;
  background: #fff4d9;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.account-auth-page {
  padding: 78px 0 88px;
  background: radial-gradient(circle at 82% 22%, rgba(255, 204, 0, .23), transparent 28%), linear-gradient(135deg, #fff8e9, #fffdf8 56%, #fff4dc);
}

.account-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(390px, .8fr);
  gap: clamp(38px, 8vw, 112px);
  align-items: center;
  min-height: 530px;
}

.account-auth-aside { max-width: 570px; }
.account-auth-aside .eyebrow { margin-bottom: 18px; }
.account-auth-aside h1 { margin: 0; color: #37261f; font-family: var(--display); font-size: clamp(2.65rem, 5.3vw, 4.45rem); letter-spacing: -.075em; line-height: .98; }
.account-auth-aside h1 em { color: #d40511; font-style: normal; }
.account-auth-aside > p:not(.eyebrow) { max-width: 495px; margin: 19px 0 0; color: #745f52; font-size: .95rem; line-height: 1.75; }

.account-auth-points { display: grid; gap: 12px; margin: 31px 0 0; padding: 0; list-style: none; }
.account-auth-points li { display: flex; align-items: center; gap: 11px; color: #4d372d; font-size: .79rem; font-weight: 700; }
.account-auth-points span { display: grid; place-items: center; width: 28px; height: 28px; color: #6a4a00; border-radius: 8px; background: #ffcc00; font-family: var(--mono); font-size: .61rem; }
.account-access-note { display: grid; gap: 5px; max-width: 410px; margin-top: 30px; padding: 17px 18px; color: #715644; border: 1px solid #eed8bb; border-radius: 12px; background: #fff7e8; font-size: .76rem; line-height: 1.55; }
.account-access-note b { color: #a4000c; font-family: var(--mono); font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; }

.account-auth-card {
  padding: clamp(25px, 4vw, 39px);
  border: 1px solid #ecd9c5;
  border-radius: 20px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 24px 70px rgba(87, 48, 25, .11);
}

.account-auth-card .panel-label { margin: 0; }
.account-auth-card h2 { margin: 9px 0 0; color: #3c2b23; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.055em; }
.account-auth-notice { margin: 12px 0 0; padding: 11px 12px; color: #765d4d; border-left: 3px solid #ffcc00; background: #fff5dc; font-size: .73rem; line-height: 1.55; }
.account-auth-card label { display: block; margin: 19px 0 6px; color: #6d5548; font-size: .75rem; font-weight: 800; }
.account-auth-card input { width: 100%; padding: 11px 12px; color: #3e2d25; border: 1px solid #e2d1be; border-radius: 9px; outline: 0; background: #fffefa; font-size: .83rem; }
.account-auth-card input:focus { border-color: #d40511; box-shadow: 0 0 0 3px rgba(212, 5, 17, .11); }
.auth-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.auth-field-grid label { margin-top: 19px; }
.auth-form-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.auth-form-links a,
.auth-footnote a { color: #a0000a; font-size: .72rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.auth-submit { display: inline-flex; align-items: center; justify-content: center; width: 100%; margin-top: 23px; text-decoration: none; }
.auth-check { display: flex !important; align-items: flex-start; gap: 9px; margin-top: 18px !important; color: #715a4d !important; font-size: .71rem !important; font-weight: 600 !important; line-height: 1.45; }
.auth-check input { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; accent-color: #d40511; }
.auth-request-success { padding: 24px 0 2px; text-align: center; }
.auth-request-success > span { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 13px; color: #4b3300; border-radius: 50%; background: #ffcc00; font-weight: 900; }
.auth-request-success h3 { margin: 0; color: #3d2b22; font-family: var(--display); font-size: 1.38rem; letter-spacing: -.045em; }
.auth-request-success p { max-width: 360px; margin: 9px auto 0; color: #7b665a; font-size: .79rem; line-height: 1.55; }
.auth-request-success .text-button { display: block; margin: 17px auto 0; }
.auth-footnote { margin: 22px 0 0; color: #7b6558; font-size: .73rem; text-align: center; }
.auth-remember-control { margin-top: 15px !important; }
.auth-password-helper { margin: 7px 0 0; color: #957e70; font-size: .66rem; line-height: 1.45; }
.customer-auth-feedback { margin: 16px 0 0; padding: 10px 12px; color: #71594c; border: 1px solid #ead8c7; border-radius: 9px; background: #fff7e8; font-size: .72rem; font-weight: 700; line-height: 1.45; }
.customer-auth-feedback.error { color: #a2000c; border-color: #efc8cb; background: #ffebec; }
.customer-auth-feedback.success { color: #26623d; border-color: #cde8d7; background: #eef9f1; }
.customer-auth-feedback.notice { color: #71594c; border-color: #ead8c7; background: #fff7e8; }
.customer-reset-account { margin: 20px 0 0; padding: 10px 12px; color: #745d50; border-radius: 9px; background: #fff5dd; font-size: .72rem; line-height: 1.45; }
.customer-reset-account strong { color: #50362a; overflow-wrap: anywhere; }

.account-hero-band { padding: 60px 0 56px; color: #fff8eb; background: radial-gradient(circle at 76% 17%, rgba(255, 204, 0, .32), transparent 24%), #33231d; }
.account-hero-content { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.account-hero-content .eyebrow { color: #ffd995; }
.account-hero-content .eyebrow-line { background: #ffcc00; }
.account-hero-content h1 { max-width: 670px; margin: 0; color: #fff8ed; font-family: var(--display); font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.07em; line-height: .99; }
.account-hero-content h1 em { color: #ffcc00; font-style: normal; }
.account-hero-content > p { max-width: 310px; margin: 0 0 3px; color: #e4c4ac; font-size: .83rem; line-height: 1.65; }

.customer-account-page { padding-bottom: 85px; background: #fffaf1; }
.customer-account-shell { display: grid; grid-template-columns: 243px minmax(0, 1fr); gap: 25px; margin-top: 23px; align-items: start; }
.customer-account-sidebar { position: sticky; top: 95px; padding: 18px; border: 1px solid #ebdbc9; border-radius: 16px; background: #fffdf8; box-shadow: 0 10px 32px rgba(91, 51, 25, .04); }
.customer-avatar { display: flex; align-items: center; gap: 10px; padding: 4px 4px 16px; border-bottom: 1px solid #eee2d4; }
.customer-avatar > span { display: grid; place-items: center; width: 37px; height: 37px; color: #4c3600; border-radius: 11px; background: #ffcc00; font-family: var(--display); font-size: .82rem; font-weight: 900; }
.customer-avatar strong { display: block; color: #452f25; font-size: .75rem; }
.customer-avatar small { display: block; margin-top: 3px; color: #967f71; font-size: .64rem; }
.customer-account-nav { display: grid; gap: 3px; margin-top: 14px; }
.customer-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; color: #765e50; border: 0; border-radius: 8px; background: transparent; font-size: .74rem; font-weight: 800; text-align: left; }
.customer-nav-item span { display: grid; place-items: center; width: 18px; color: #aa000b; font-family: var(--mono); font-size: .84rem; }
.customer-nav-item:hover,
.customer-nav-item.active { color: #4a3000; background: #fff0bc; }
.customer-request-link { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 19px; padding: 10px; color: #fff9ec; border-radius: 9px; background: #d40511; font-size: .71rem; font-weight: 800; text-decoration: none; }
.customer-request-link:hover { background: #aa000b; }
.customer-request-link span { font-size: 1rem; line-height: .7; }
.customer-account-sidebar > p { margin: 11px 3px 0; color: #988171; font-size: .62rem; line-height: 1.45; }
.customer-signout-link { display: inline-flex; margin: 15px 4px 0; color: #8d000a; font-size: .7rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.customer-signout-link:hover { color: #5f0007; }
.customer-account-content { min-width: 0; padding: clamp(3px, 1vw, 10px) 0; }
.account-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.account-section-heading .panel-label { margin: 0; }
.account-section-heading h2 { margin: 8px 0 0; color: #3d2b22; font-family: var(--display); font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.06em; }
.account-section-heading > div > p:last-child { max-width: 640px; margin: 8px 0 0; color: #80695b; font-size: .79rem; line-height: 1.65; }
.account-section-heading > .primary-button,
.account-section-heading > .secondary-button { flex: 0 0 auto; text-decoration: none; }

.customer-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.customer-stat-grid article { min-height: 130px; padding: 18px; border: 1px solid #ecdece; border-radius: 14px; background: #fffdf8; }
.customer-stat-grid article:nth-child(2) { background: #fff5dd; }
.customer-stat-grid article:nth-child(3) { color: #fff6e6; border-color: #3d2a20; background: #3d2a20; }
.customer-stat-grid span { display: block; color: #8a7162; font-size: .7rem; font-weight: 700; }
.customer-stat-grid strong { display: block; margin-top: 19px; color: #452f25; font-family: var(--display); font-size: 2rem; letter-spacing: -.07em; }
.customer-stat-grid small { display: block; margin-top: 3px; color: #987f70; font-size: .62rem; }
.customer-stat-grid article:nth-child(3) span,
.customer-stat-grid article:nth-child(3) small,
.customer-stat-grid article:nth-child(3) strong { color: #fff5e4; }

.customer-overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(210px, .75fr); gap: 14px; margin-top: 14px; }
.customer-feature-shipment,
.customer-tip-card,
.customer-activity-card,
.customer-shipment-card,
.customer-address-card,
.customer-preference-list,
.customer-profile-form,
.shipment-detail-progress,
.customer-detail-card,
.customer-detail-history { border: 1px solid #ecddcc; border-radius: 15px; background: #fffdf8; box-shadow: 0 8px 28px rgba(91, 51, 25, .035); }
.customer-feature-shipment,
.customer-tip-card { padding: 21px; }
.customer-feature-shipment .panel-heading,
.customer-activity-card .panel-heading,
.customer-detail-history .panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.customer-feature-shipment h3,
.customer-tip-card h3,
.customer-activity-card h3,
.customer-detail-card h2,
.customer-detail-history h2 { margin: 5px 0 0; color: #423027; font-family: var(--display); font-size: 1.2rem; letter-spacing: -.04em; }
.customer-feature-route { display: grid; gap: 7px; margin-top: 26px; }
.customer-feature-route > strong { color: #3e2c24; font-family: var(--display); font-size: 1.4rem; letter-spacing: -.05em; }
.customer-feature-route small { color: #845b44; font-family: var(--mono); font-size: .66rem; }
.customer-feature-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #eee3d6; }
.customer-feature-meta span { color: #6e5749; font-size: .72rem; }
.customer-feature-meta b { display: block; margin-bottom: 4px; color: #9a8172; font-size: .59rem; letter-spacing: .04em; text-transform: uppercase; }
.customer-feature-shipment > div:last-child > p { margin: 17px 0 0; color: #846d5e; font-size: .72rem; line-height: 1.5; }
.customer-tip-card { display: flex; flex-direction: column; color: #fff7e8; border-color: #ce000e; background: linear-gradient(135deg, #d40511, #98000b); }
.customer-tip-card .panel-label { color: #ffd19f; }
.customer-tip-card h3 { color: #fff8ed; margin-top: 11px; font-size: 1.42rem; }
.customer-tip-card p:not(.panel-label) { margin: 10px 0 0; color: #ffe0cb; font-size: .73rem; line-height: 1.6; }
.customer-tip-card .text-button { align-self: flex-start; margin-top: auto; padding-top: 20px; color: #ffdc5f; }
.customer-activity-card { margin-top: 14px; padding: 21px; }
.customer-updates-list,
.customer-history-list ol,
.customer-detail-history ol { margin: 17px 0 0; padding: 0; list-style: none; }
.customer-updates-list li,
.customer-history-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: start; gap: 11px; padding: 13px 0; border-top: 1px solid #f0e4d7; }
.customer-updates-list li:first-child,
.customer-history-list li:first-child { border-top: 0; }
.customer-timeline-dot { display: block; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #ffcc00; box-shadow: 0 0 0 4px rgba(255, 204, 0, .16); }
.customer-timeline-dot.processing { background: #d40511; box-shadow: 0 0 0 4px rgba(212, 5, 17, .12); }
.customer-timeline-dot.exception { background: #b52c37; box-shadow: 0 0 0 4px rgba(181, 44, 55, .12); }
.customer-timeline-dot.delivered { background: #398455; box-shadow: 0 0 0 4px rgba(57, 132, 85, .12); }
.customer-updates-list strong,
.customer-history-list strong { display: block; color: #4b352b; font-size: .76rem; }
.customer-updates-list p,
.customer-history-list p { margin: 4px 0; color: #81695b; font-size: .69rem; line-height: 1.45; }
.customer-updates-list div > span,
.customer-history-list div > span { color: #9a8273; font-family: var(--mono); font-size: .59rem; }
.customer-updates-list li > a,
.customer-history-list li > a { color: #a7000b; font-size: .65rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.customer-empty-state { margin: 0; padding: 24px 5px; color: #856d5e; font-size: .78rem; line-height: 1.6; }

.customer-shipment-list { display: grid; gap: 13px; }
.customer-shipment-card { padding: 22px; }
.customer-shipment-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.customer-tracking-code { display: block; color: #8d5844; font-family: var(--mono); font-size: .68rem; font-weight: 700; }
.customer-shipment-card h3 { margin: 8px 0 0; color: #3d2c23; font-family: var(--display); font-size: 1.38rem; letter-spacing: -.05em; }
.customer-shipment-card-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee3d6; }
.customer-shipment-card-details span { color: #70584b; font-size: .72rem; }
.customer-shipment-card-details b { display: block; margin-bottom: 5px; color: #9a8172; font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; }
.customer-shipment-card > p { margin: 17px 0 0; color: #80695b; font-size: .74rem; line-height: 1.55; }
.customer-shipment-card-actions { display: flex; align-items: center; gap: 15px; margin-top: 19px; }
.customer-shipment-card-actions .secondary-button { text-decoration: none; }
.customer-history-list { padding: 21px; border: 1px solid #ecddcc; border-radius: 15px; background: #fffdf8; }

.customer-address-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.customer-address-card { padding: 20px; }
.customer-address-card.is-primary { border-color: #e7bb65; background: #fff8e9; }
.customer-address-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.customer-address-card-top span { color: #9a7b3c; font-family: var(--mono); font-size: .61rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.customer-address-card h3 { margin: 5px 0 0; color: #412e25; font-family: var(--display); font-size: 1.1rem; letter-spacing: -.035em; }
.customer-address-card-top b { padding: 4px 6px; color: #593e00; border-radius: 999px; background: #ffcc00; font-size: .58rem; }
.customer-address-card > p { margin: 18px 0 0; color: #735c4e; font-size: .74rem; line-height: 1.62; }
.customer-address-card-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 19px; }
.customer-address-card-actions .text-button { font-size: .68rem; }
.address-delete-button { color: #ab000b; }
.customer-empty-address { grid-column: span 2; border: 1px dashed #e4cdb2; border-radius: 14px; background: #fffaf0; text-align: center; }
.customer-empty-address h3 { margin: 0; color: #4d362b; font-family: var(--display); font-size: 1.15rem; }
.customer-empty-address p { margin: 8px auto 15px; }

.customer-preference-list { overflow: hidden; }
.customer-preference-list label { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-top: 1px solid #f0e5d8; cursor: pointer; }
.customer-preference-list label:first-child { border-top: 0; }
.customer-preference-list strong { display: block; color: #4a342a; font-size: .79rem; }
.customer-preference-list span { display: block; margin-top: 5px; color: #887164; font-size: .69rem; }
.customer-preference-list input { position: relative; width: 40px; height: 23px; flex: 0 0 auto; appearance: none; border: 0; border-radius: 999px; outline: 0; background: #ddcabb; cursor: pointer; transition: background .2s ease; }
.customer-preference-list input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(46, 26, 16, .2); transition: transform .2s ease; }
.customer-preference-list input:checked { background: #d40511; }
.customer-preference-list input:checked::after { transform: translateX(17px); }
.customer-preference-list input:focus-visible { box-shadow: 0 0 0 3px rgba(212, 5, 17, .2); }

.customer-profile-form { padding: 22px; }
.customer-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.customer-field-wide { grid-column: span 2; }
.customer-profile-form label,
.customer-address-dialog label { display: block; margin: 16px 0 6px; color: #6c5548; font-size: .72rem; font-weight: 800; }
.customer-profile-form label span { color: #9b8273; font-weight: 600; }
.customer-profile-form input,
.customer-address-dialog input { width: 100%; padding: 10px 11px; color: #3f2e26; border: 1px solid #e2d1be; border-radius: 8px; outline: 0; background: #fffefa; font-size: .79rem; }
.customer-profile-form input:focus,
.customer-address-dialog input:focus { border-color: #d40511; box-shadow: 0 0 0 3px rgba(212, 5, 17, .11); }
.customer-profile-form input[readonly] { color: #8e7566; border-style: dashed; background: #fbf5eb; cursor: not-allowed; }
.customer-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #eee3d7; }
.customer-form-actions p { max-width: 380px; margin: 0; color: #876e60; font-size: .67rem; line-height: 1.45; }

.customer-address-dialog { width: min(590px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 26px; color: #3d2c23; border: 0; border-radius: 18px; background: #fffdf8; box-shadow: 0 30px 75px rgba(80, 25, 10, .28); }
.customer-address-dialog::backdrop { background: rgba(57, 25, 16, .54); backdrop-filter: blur(3px); }
.customer-address-dialog .dialog-helper { margin-top: 13px; }
.address-primary-check { display: flex !important; align-items: center; gap: 9px; margin-top: 19px !important; color: #735d50 !important; font-size: .7rem !important; font-weight: 600 !important; }
.address-primary-check input { width: 15px; height: 15px; flex: 0 0 auto; accent-color: #d40511; }

.customer-shipment-detail-page { padding: 64px 0 84px; background: #fffaf1; }
.shipment-detail-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; }
.back-to-account { display: inline-block; margin-bottom: 23px; color: #a2000b; font-size: .73rem; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.shipment-detail-header .eyebrow { margin-bottom: 14px; }
.shipment-detail-header h1 { margin: 0; color: #3b2a21; font-family: var(--display); font-size: clamp(2rem, 4.5vw, 3.7rem); letter-spacing: -.07em; }
.shipment-detail-header h1 span { color: #a4000b; font-family: var(--mono); font-size: clamp(1rem, 2.4vw, 1.55rem); letter-spacing: -.055em; }
.shipment-detail-header > div > p:last-child { max-width: 720px; margin: 12px 0 0; color: #80695b; font-size: .82rem; line-height: 1.65; }
.shipment-detail-actions { display: flex; gap: 9px; flex: 0 0 auto; }
.shipment-detail-actions a { text-decoration: none; }
.shipment-detail-layout { margin-top: 34px; }
.shipment-detail-progress { padding: 23px; }
.shipment-detail-status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.shipment-detail-status-row > span:last-child { color: #7c6557; font-family: var(--mono); font-size: .68rem; }
.customer-route-line { display: grid; grid-template-columns: 1fr 30px 1fr 30px 1fr; align-items: center; gap: 8px; margin: 31px 0 18px; }
.customer-route-line div:nth-of-type(2) { text-align: center; }
.customer-route-line div:last-child { text-align: right; }
.customer-route-line span { display: block; color: #a18777; font-family: var(--mono); font-size: .57rem; font-weight: 700; letter-spacing: .08em; }
.customer-route-line strong { display: block; margin-top: 6px; color: #453128; font-family: var(--display); font-size: clamp(.88rem, 2vw, 1.18rem); letter-spacing: -.035em; }
.customer-route-line i { color: #d40511; font-size: 1.1rem; font-style: normal; text-align: center; }
.shipment-detail-progress > p { margin: 0; padding-top: 16px; color: #81695b; border-top: 1px solid #eee4d8; font-size: .76rem; line-height: 1.55; }
.shipment-detail-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.customer-detail-card { padding: 22px; }
.customer-detail-card h2 { font-size: 1.25rem; }
.customer-detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; margin: 20px 0 0; }
.customer-detail-list div { padding: 12px 0; border-top: 1px solid #f0e5d8; }
.customer-detail-list dt { color: #9b8273; font-size: .61rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.customer-detail-list dd { margin: 6px 0 0; color: #5d4538; font-size: .73rem; line-height: 1.45; }
.customer-detail-history { margin-top: 14px; padding: 22px; }
.customer-detail-history ol { display: grid; gap: 0; }
.customer-detail-history li { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; align-items: start; gap: 15px; padding: 15px 0; border-top: 1px solid #f0e4d7; }
.customer-detail-history li:first-child { border-top: 0; }
.customer-detail-history time { color: #957c6d; font-family: var(--mono); font-size: .62rem; }
.customer-detail-history strong,
.customer-detail-history span,
.customer-detail-history p { display: block; }
.customer-detail-history strong { color: #4c372c; font-size: .77rem; }
.customer-detail-history div > span { margin-top: 4px; color: #91796b; font-size: .67rem; }
.customer-detail-history p { margin: 5px 0 0; color: #7e6759; font-size: .7rem; line-height: 1.5; }

@media (max-width: 980px) {
  .account-auth-layout { grid-template-columns: 1fr; gap: 38px; }
  .account-auth-aside { max-width: 650px; }
  .customer-account-shell { grid-template-columns: 1fr; }
  .customer-account-sidebar { position: static; }
  .customer-account-nav { grid-template-columns: repeat(3, 1fr); }
  .customer-request-link { max-width: 260px; }
  .customer-account-sidebar > p { max-width: 420px; }
}

@media (max-width: 760px) {
  .account-auth-page { padding: 58px 0 65px; }
  .account-hero-band { padding: 46px 0; }
  .account-hero-content,
  .account-section-heading,
  .shipment-detail-header { align-items: flex-start; flex-direction: column; }
  .account-hero-content > p { max-width: 510px; }
  .customer-stat-grid,
  .customer-overview-grid,
  .shipment-detail-columns { grid-template-columns: 1fr; }
  .customer-account-nav { grid-template-columns: 1fr 1fr; }
  .customer-address-list { grid-template-columns: 1fr; }
  .customer-empty-address { grid-column: auto; }
  .shipment-detail-actions { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .account-auth-layout { min-height: 0; }
  .account-auth-card { padding: 22px 18px; }
  .auth-field-grid,
  .customer-form-grid,
  .customer-detail-list { grid-template-columns: 1fr; }
  .customer-field-wide { grid-column: auto; }
  .auth-form-links,
  .customer-form-actions { align-items: flex-start; flex-direction: column; }
  .customer-account-page { padding-bottom: 58px; }
  .customer-account-sidebar { padding: 15px; }
  .customer-account-nav { grid-template-columns: 1fr; }
  .customer-stat-grid { gap: 10px; }
  .customer-stat-grid article { min-height: 0; }
  .customer-feature-meta,
  .customer-shipment-card-details { grid-template-columns: 1fr 1fr; }
  .customer-shipment-card-details span:last-child { grid-column: span 2; }
  .customer-shipment-card-top,
  .shipment-detail-status-row { align-items: flex-start; flex-direction: column; }
  .customer-updates-list li,
  .customer-history-list li { grid-template-columns: 10px minmax(0, 1fr); }
  .customer-updates-list li > a,
  .customer-history-list li > a { grid-column: 2; }
  .customer-route-line { grid-template-columns: 1fr; gap: 11px; margin: 25px 0 20px; }
  .customer-route-line div:nth-of-type(2),
  .customer-route-line div:last-child { text-align: left; }
  .customer-route-line i { display: none; }
  .customer-detail-history li { grid-template-columns: 1fr; gap: 6px; }
  .customer-detail-history li > .table-status { justify-self: start; }
  .customer-address-dialog { width: min(100% - 20px, 590px); padding: 22px 18px; }
}

/* Admin workspace modules. */
.dashboard-sidebar { overflow-y: auto; scrollbar-width: thin; }
.dashboard-sidebar .dashboard-nav { padding-bottom: 14px; }

.advanced-table-card,
.advanced-form-card,
.network-settings-card,
.role-matrix-card,
.notification-summary-card,
.audit-toolbar {
  border: 1px solid #eddfcf;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 8px 32px rgba(86, 48, 25, .035);
}

.advanced-table-card { overflow: hidden; }
.advanced-table-scroll { overflow-x: auto; }
.advanced-table-card table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.advanced-table-card th { padding: 13px 18px; color: #8a7466; border-bottom: 1px solid #eee3d6; font-size: .61rem; letter-spacing: .05em; text-transform: uppercase; }
.advanced-table-card td { padding: 14px 18px; color: #5d473b; border-bottom: 1px solid #f3ebe2; font-size: .73rem; vertical-align: middle; }
.advanced-table-card tr:last-child td { border-bottom: 0; }
.advanced-table-card td strong { display: block; color: #4d3026; font-size: .73rem; }
.advanced-table-card td span { display: block; margin-top: 3px; color: #967d6e; font-size: .62rem; }
.advanced-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 21px 0; }
.advanced-card-heading .panel-label { margin: 0; }
.advanced-card-heading h3 { margin: 5px 0 0; color: #443027; font-family: var(--display); font-size: 1.2rem; letter-spacing: -.04em; }
.advanced-card-heading > span { color: #8e7567; font-family: var(--mono); font-size: .61rem; }

.advanced-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 7px;
  color: #735b00;
  border-radius: 999px;
  background: #fff1bd;
  font-size: .6rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.advanced-status.success { color: #21663f; background: #e2f4e7; }
.advanced-status.warning { color: #795400; background: #fff0be; }
.advanced-status.danger { color: #a5000c; background: #ffe2e4; }
.advanced-status.neutral { color: #715e52; background: #eee4d8; }
.advanced-empty-state { padding: 34px 24px; color: #80695b; border: 1px dashed #e4cdb4; border-radius: 15px; background: #fffaf0; text-align: center; }
.advanced-empty-state h3 { margin: 0; color: #473128; font-family: var(--display); font-size: 1.2rem; }
.advanced-empty-state p { margin: 8px 0 0; font-size: .76rem; }

.advanced-module-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(245px, .72fr); gap: 15px; }
.role-matrix-card,
.notification-summary-card,
.network-settings-card,
.advanced-form-card { padding: 22px; }
.role-matrix-card .panel-label,
.notification-summary-card .panel-label,
.network-settings-card .panel-label,
.advanced-form-card .panel-label { margin: 0; }
.role-matrix-card h3,
.notification-summary-card h3,
.network-settings-card h3,
.advanced-form-card h3 { margin: 7px 0 0; color: #423026; font-family: var(--display); font-size: 1.3rem; letter-spacing: -.045em; }
.role-matrix-card > p,
.notification-summary-card > p,
.network-settings-card > p,
.advanced-form-card > p { margin: 10px 0 0; color: #80695b; font-size: .72rem; line-height: 1.55; }
.role-matrix-card ul { display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; }
.role-matrix-card li { padding: 12px 0; border-top: 1px solid #f0e4d6; }
.role-matrix-card strong,
.role-matrix-card span { display: block; }
.role-matrix-card strong { color: #4e392d; font-size: .71rem; }
.role-matrix-card span { margin-top: 4px; color: #8a7263; font-size: .65rem; line-height: 1.45; }

.advanced-tab-bar { display: flex; align-items: center; gap: 5px; margin-bottom: 15px; padding: 5px; width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid #ead9c8; border-radius: 11px; background: #fff8ec; }
.advanced-tab-bar button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: #7a6255; border: 0; border-radius: 7px; background: transparent; font-size: .69rem; font-weight: 800; white-space: nowrap; }
.advanced-tab-bar button:hover,
.advanced-tab-bar button.active { color: #3d2b21; background: #ffcc00; }
.advanced-tab-bar button span { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; color: inherit; border-radius: 999px; background: rgba(64, 42, 0, .12); font-family: var(--mono); font-size: .56rem; }

.notification-grid { grid-template-columns: minmax(220px, .5fr) minmax(0, 1.45fr); }
.notification-summary-card { display: flex; flex-direction: column; color: #fff8eb; border-color: #c7000e; background: linear-gradient(135deg, #d40511, #98000b); }
.notification-summary-card .panel-label { color: #ffd3aa; }
.notification-summary-card h3 { color: #fff8ec; }
.notification-summary-card > div { margin-top: auto; padding-top: 30px; }
.notification-summary-card > div strong { display: block; color: #ffcc00; font-family: var(--display); font-size: 2.45rem; letter-spacing: -.07em; }
.notification-summary-card > div span { color: #ffe0c8; font-size: .68rem; }
.notification-summary-card > p { color: #ffe0c8; }

.content-draft-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.content-draft-grid article { display: flex; flex-direction: column; min-height: 210px; padding: 20px; border: 1px solid #ecdcc9; border-radius: 15px; background: #fffdf8; }
.content-draft-grid article > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 11px; }
.content-draft-grid .text-button { font-size: .67rem; }
.content-draft-grid h3 { margin: 23px 0 0; color: #453127; font-family: var(--display); font-size: 1.24rem; letter-spacing: -.04em; }
.content-draft-grid p { margin: 10px 0 0; color: #80695b; font-size: .72rem; line-height: 1.6; }

.settings-grid { grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr); }
.advanced-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.advanced-field-wide { grid-column: span 2; }
.advanced-form-card label,
.admin-tool-dialog label,
.status-type-form label { display: block; margin: 15px 0 6px; color: #6e574a; font-size: .7rem; font-weight: 800; }
.advanced-form-card input,
.advanced-form-card select,
.admin-tool-dialog input,
.admin-tool-dialog select,
.admin-tool-dialog textarea,
.status-type-form input { width: 100%; padding: 10px 11px; color: #3e2d25; border: 1px solid #e2d1be; border-radius: 8px; outline: 0; background: #fffefa; font-size: .77rem; }
.advanced-form-card input:focus,
.advanced-form-card select:focus,
.admin-tool-dialog input:focus,
.admin-tool-dialog select:focus,
.admin-tool-dialog textarea:focus,
.status-type-form input:focus { border-color: #d40511; box-shadow: 0 0 0 3px rgba(212, 5, 17, .11); }
.advanced-form-card textarea,
.admin-tool-dialog textarea { resize: vertical; }
.advanced-form-card > .primary-button { margin-top: 20px; }
.courier-list { display: grid; gap: 0; margin-top: 19px; }
.courier-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #f0e4d7; }
.courier-list article:first-child { border-top: 0; }
.courier-list strong,
.courier-list span { display: block; }
.courier-list strong { color: #513a2e; font-size: .71rem; }
.courier-list span { margin-top: 4px; color: #8b7365; font-size: .64rem; }
.advanced-toggle { min-width: 63px; padding: 7px 8px; color: #786254; border: 1px solid #e5d3bf; border-radius: 7px; background: #fff9ed; font-size: .62rem; font-weight: 800; }
.advanced-toggle.active { color: #fff8e9; border-color: #a9000b; background: #d40511; }
.status-chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.status-chip-list span { padding: 5px 7px; color: #6d5548; border-radius: 999px; background: #f2e6d6; font-size: .61rem; font-weight: 700; }
.status-type-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0e4d7; }
.status-type-form label { margin-top: 0; }
.status-type-form > div { display: flex; gap: 8px; }
.status-type-form .secondary-button { flex: 0 0 auto; padding: 9px 11px; }

.audit-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 11px 13px; }
.audit-toolbar label { color: #775f51; font-size: .69rem; font-weight: 800; }
.audit-toolbar select { padding: 8px 28px 8px 9px; color: #664d41; border: 1px solid #e2d2c1; border-radius: 8px; background: #fffefa; font-size: .69rem; }
.audit-toolbar span { margin-left: auto; color: #8d7667; font-family: var(--mono); font-size: .61rem; }

.admin-tool-dialog { width: min(610px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 26px; color: #3d2c23; border: 0; border-radius: 18px; background: #fffdf8; box-shadow: 0 30px 75px rgba(80, 25, 10, .28); }
.admin-tool-dialog::backdrop { background: rgba(57, 25, 16, .54); backdrop-filter: blur(3px); }
.admin-tool-dialog .dialog-helper { margin-top: 12px; }
.admin-tool-dialog .dialog-actions { margin-top: 23px; }
.tool-profile-summary { margin-top: 19px; padding: 16px; border: 1px solid #ecdaca; border-radius: 11px; background: #fff7e8; }
.tool-profile-summary > span { display: inline-flex; }
.tool-profile-summary h3 { margin: 11px 0 0; color: #422f26; font-family: var(--display); font-size: 1.3rem; letter-spacing: -.04em; }
.tool-profile-summary p { margin: 6px 0 0; color: #80685a; font-size: .72rem; }
.tool-profile-summary dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 17px 0 0; padding-top: 13px; border-top: 1px solid #ead9c6; }
.tool-profile-summary dt { color: #9a8173; font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tool-profile-summary dd { margin: 5px 0 0; color: #5a4337; font-size: .68rem; line-height: 1.4; }

@media (max-width: 1060px) {
  .dashboard-sidebar { width: 250px; }
  .dashboard-main { margin-left: 250px; }
  .advanced-module-grid,
  .notification-grid,
  .settings-grid { grid-template-columns: 1fr; }
  .role-matrix-card { max-width: none; }
  .content-draft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .dashboard-sidebar { overflow: visible; }
  .dashboard-sidebar .dashboard-nav { padding-bottom: 0; }
  .dashboard-main { margin-left: 0; }
  .dashboard-nav { overflow-x: auto; }
  .dashboard-nav-item { flex: 0 0 auto; }
}

@media (max-width: 620px) {
  .advanced-card-heading,
  .audit-toolbar { align-items: flex-start; flex-direction: column; }
  .audit-toolbar span { margin-left: 0; }
  .content-draft-grid,
  .advanced-form-grid { grid-template-columns: 1fr; }
  .advanced-field-wide { grid-column: auto; }
  .advanced-form-card,
  .network-settings-card,
  .role-matrix-card,
  .notification-summary-card { padding: 19px; }
  .status-type-form > div { align-items: stretch; flex-direction: column; }
  .status-type-form .secondary-button { width: 100%; }
  .tool-profile-summary dl { grid-template-columns: 1fr; }
  .admin-tool-dialog { width: min(100% - 20px, 610px); padding: 22px 18px; }
}

/* Shared navigation and loading states. */
.mobile-nav-toggle,
.mobile-public-nav {
  display: none;
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 10px 12px;
    padding: 10px 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    order: 1;
    min-height: 36px;
    margin-left: auto;
    padding: 8px 10px;
    color: #3f2e26;
    border: 1px solid rgba(65, 43, 31, .35);
    border-radius: 8px;
    background: rgba(255, 250, 239, .72);
    font-size: .72rem;
    font-weight: 800;
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle[aria-expanded="true"] {
    color: #fff9ed;
    border-color: #d40511;
    background: #d40511;
  }

  .mobile-nav-toggle span,
  .mobile-nav-toggle span::before,
  .mobile-nav-toggle span::after {
    display: block;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-nav-toggle span {
    position: relative;
  }

  .mobile-nav-toggle span::before,
  .mobile-nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .mobile-nav-toggle span::before { top: -5px; }
  .mobile-nav-toggle span::after { top: 5px; }

  .header-actions {
    order: 2;
    width: 100%;
    justify-content: space-between;
  }

  .mobile-public-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 3;
    width: 100%;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(115, 71, 26, .22);
    border-radius: 12px;
    background: rgba(255, 249, 237, .96);
    box-shadow: 0 12px 24px rgba(93, 48, 11, .1);
  }

  .mobile-public-nav[hidden] {
    display: none;
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    min-height: 39px;
    padding: 9px 10px;
    color: #5a4031;
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 800;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link.active {
    color: #3d2800;
    background: #ffdf73;
  }
}

@media (max-width: 520px) {
  .mobile-public-nav {
    grid-template-columns: 1fr;
  }

  .header-actions {
    gap: 5px;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    box-shadow: 0 5px 18px rgba(79, 41, 15, .12);
  }

  #home,
  #tracking,
  #how-it-works,
  #support { scroll-margin-top: 142px; }
}

@media (max-width: 820px) {
  .dashboard-sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    box-shadow: 0 5px 18px rgba(79, 24, 10, .16);
  }
}

html.page-is-loading,
html.page-is-loading body { overflow: hidden; }

html.page-is-loading body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  background:
    linear-gradient(#2d1d16 0 0) 8% 28px / 190px 34px no-repeat,
    linear-gradient(#eadfce 0 0) 8% 124px / 48% 54px no-repeat,
    linear-gradient(#f1e6d8 0 0) 8% 198px / 38% 17px no-repeat,
    linear-gradient(#f1e6d8 0 0) 8% 228px / 44% 17px no-repeat,
    linear-gradient(#eadfce 0 0) 8% 300px / 84% 172px no-repeat,
    linear-gradient(#eadfce 0 0) 8% 500px / 26% 138px no-repeat,
    linear-gradient(#eadfce 0 0) 38% 500px / 26% 138px no-repeat,
    linear-gradient(#eadfce 0 0) 68% 500px / 24% 138px no-repeat,
    #fffaf2;
}

html.page-is-loading body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .78) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: vanguard-skeleton-sheen 1.05s ease-in-out infinite;
}

@keyframes vanguard-skeleton-sheen {
  to { transform: translateX(120%); }
}

.page-transition-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(255, 250, 242, .97);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

.page-transition-loader.is-active {
  opacity: 1;
  pointer-events: auto;
}

.page-transition-loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
}

.page-transition-loader-mark img {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 8px 16px rgba(89, 33, 5, .2));
}

.page-transition-loader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(212, 5, 17, .16);
  border-top-color: #d40511;
  border-right-color: #ffcc00;
  border-radius: 50%;
  animation: vanguard-page-spin .78s linear infinite;
}

@keyframes vanguard-page-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html.page-is-loading body::after,
  .page-transition-loader-ring { animation: none; }

  .page-transition-loader { transition: none; }
}

/* Controlled admin access and profile flow. */
.admin-access-page {
  min-height: 100vh;
  color: #3f2d24;
  background: radial-gradient(circle at 12% 12%, rgba(255, 204, 0, .44), transparent 26%), radial-gradient(circle at 85% 83%, rgba(212, 5, 17, .16), transparent 31%), #fff8ed;
}

.admin-access-shell {
  display: grid;
  min-height: 100dvh;
  padding: 32px 18px;
  place-items: center;
}

.admin-access-card {
  width: min(100%, 490px);
  padding: clamp(28px, 6vw, 46px);
  border: 1px solid rgba(193, 139, 74, .27);
  border-radius: 24px;
  background: rgba(255, 253, 248, .95);
  box-shadow: 0 28px 75px rgba(84, 39, 8, .15);
}

.admin-access-brand {
  color: #39261d;
}

.admin-access-copy {
  margin-top: 42px;
}

.admin-access-copy .panel-label {
  margin: 0 0 10px;
}

.admin-access-copy h1 {
  max-width: 385px;
  margin: 0;
  color: #35231c;
  font-family: var(--display);
  font-size: clamp(2rem, 5.7vw, 3.1rem);
  letter-spacing: -.065em;
  line-height: 1.02;
}

.admin-access-copy > p:last-child {
  margin: 15px 0 0;
  color: #786154;
  font-size: 14px;
  line-height: 1.65;
}

.admin-login-form {
  margin-top: 28px;
}

.admin-login-form label:not(.admin-remember-control) {
  display: block;
  margin: 17px 0 7px;
  color: #6d5142;
  font-size: 12px;
  font-weight: 800;
}

.admin-login-form input[type="email"],
.admin-login-form input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: #3f2c23;
  border: 1px solid #e1cdb8;
  border-radius: 10px;
  outline: 0;
  background: #fffefa;
  font-size: 14px;
}

.admin-login-form input[type="email"]:focus,
.admin-login-form input[type="password"]:focus {
  border-color: #d40511;
  box-shadow: 0 0 0 3px rgba(212, 5, 17, .12);
}

.admin-remember-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 17px;
  color: #735d4f;
  font-size: 12px;
  font-weight: 700;
}

.admin-remember-control input {
  width: 16px;
  height: 16px;
  accent-color: #d40511;
}

.admin-login-feedback {
  margin: 15px 0 0;
  padding: 10px 12px;
  color: #71594c;
  border: 1px solid #ead8c7;
  border-radius: 9px;
  background: #fff7e8;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.admin-login-feedback.error {
  color: #a2000c;
  border-color: #efc8cb;
  background: #ffebec;
}

.admin-login-feedback.success {
  color: #26623d;
  border-color: #cde8d7;
  background: #eef9f1;
}

.admin-login-form .primary-button {
  width: 100%;
  margin-top: 20px;
}

.admin-access-back {
  display: inline-flex;
  margin-top: 23px;
  color: #8e0009;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sidebar-user {
  width: 100%;
  color: inherit;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-top-style: solid;
  border-top-width: 1px;
  background: transparent;
  text-align: left;
}

.sidebar-user:hover {
  background: rgba(255, 255, 255, .08);
}

.sidebar-user:focus-visible {
  outline: 3px solid rgba(255, 204, 0, .72);
  outline-offset: 2px;
}

.sidebar-user > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.sidebar-profile-edit {
  color: #ffda65;
  font-size: 10px;
  font-weight: 800;
}

.admin-mobile-profile {
  display: none;
}

.admin-profile-dialog {
  width: min(590px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 27px;
  color: #3e2c23;
  border: 0;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 30px 75px rgba(80, 25, 10, .28);
}

.admin-profile-dialog::backdrop {
  background: rgba(57, 25, 16, .54);
  backdrop-filter: blur(3px);
}

.admin-profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 4px;
  padding: 15px;
  border: 1px solid #ebdaca;
  border-radius: 12px;
  background: #fff7e8;
}

.admin-profile-summary .user-avatar {
  width: 42px;
  height: 42px;
  font-size: 12px;
}

.admin-profile-summary strong,
.admin-profile-summary span:not(.user-avatar) {
  display: block;
}

.admin-profile-summary strong {
  color: #453127;
  font-size: 14px;
}

.admin-profile-summary span:not(.user-avatar) {
  margin-top: 3px;
  color: #806859;
  font-size: 12px;
}

.admin-profile-dialog label {
  display: block;
  margin: 15px 0 6px;
  color: #6e574a;
  font-size: 12px;
  font-weight: 800;
}

.admin-profile-dialog input,
.admin-profile-dialog select {
  width: 100%;
  min-height: 41px;
  padding: 10px 11px;
  color: #3e2d25;
  border: 1px solid #e2d1be;
  border-radius: 8px;
  outline: 0;
  background: #fffefa;
  font-size: 13px;
}

.admin-profile-dialog input:focus,
.admin-profile-dialog select:focus {
  border-color: #d40511;
  box-shadow: 0 0 0 3px rgba(212, 5, 17, .11);
}

.admin-profile-dialog input[readonly] {
  color: #80695c;
  background: #f7efe4;
}

.admin-session-summary {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding: 13px 0 0;
  color: #8a7161;
  border-top: 1px solid #eee1d3;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.45;
}

.admin-profile-dialog .dialog-actions {
  margin-top: 23px;
}

.admin-profile-danger-action {
  margin-right: auto;
}

@media (max-width: 820px) {
  .admin-mobile-profile {
    display: inline-flex;
  }
}

@media (max-width: 620px) {
  .admin-access-shell {
    padding: 18px 13px;
  }

  .admin-access-card {
    padding: 27px 21px;
    border-radius: 18px;
  }

  .admin-profile-dialog {
    width: min(100% - 18px, 590px);
    padding: 23px 18px;
  }

  .admin-profile-danger-action {
    width: 100%;
    margin-right: 0;
  }

  .admin-profile-dialog .dialog-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }
}
