:root {
  --ink: #172c3a;
  --muted: #667987;
  --accent: #087e70;
  --bg: #f3f6f8;
  --line: #e3eaf0;
  --white: #fff;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #34b8a3; outline-offset: 3px; }
.layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  padding: 32px 20px;
  background: linear-gradient(160deg, #142c39, #10232e 80%);
  color: #edf6fa;
  display: flex;
  flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 44px; font-size: 20px; font-weight: 650; letter-spacing: -.6px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #46d7b6; color: #102d32; font-size: 28px; box-shadow: 0 4px 24px #46d7b61c; }
.brand small { display: block; color: #8aa9b7; font-size: 9px; letter-spacing: 1.7px; margin-top: 6px; }
.sidebar nav { display: grid; gap: 7px; }
.nav-button { border: 0; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 11px; color: #a9bfcb; background: transparent; text-align: left; font-size: 14px; font-weight: 550; min-height: 48px; }
.nav-button > span:first-child { display: grid; place-items: center; width: 22px; }
.nav-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-button:hover { background: #ffffff09; color: white; }
.nav-button.selected { background: #46d7b619; color: #69e7cd; box-shadow: inset 3px 0 0 #46d7b6; }
.nav-count { margin-left: auto; font-size: 11px; padding: 3px 7px; border-radius: 6px; background: #ffffff0c; color: inherit; }
.nav-count:empty { display: none; }
.sidebar-bottom { margin-top: auto; padding: 20px 16px; border: 1px solid #ffffff15; border-radius: 12px; background: #ffffff04; font-size: 13px; font-weight: 600; }
.sidebar-bottom p { color: #8fa9b7; font-size: 12px; font-weight: 400; line-height: 1.7; margin-bottom: 0; }
.live-dot { display: inline-block; width: 7px; height: 7px; background: #46d7b6; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 4px #46d7b611; }
main { min-width: 0; }
header { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 40px; background: #ffffffd9; border-bottom: 1px solid var(--line); }
.breadcrumb { color: var(--muted); font-size: 13px; }
.breadcrumb span { margin-left: 12px; }
.breadcrumb span:last-child { color: var(--ink); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 16px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e8f2f2; font-size: 11px; font-weight: 700; color: var(--accent); }
.environment { font-size: 10px; letter-spacing: 1.1px; font-weight: 700; padding: 7px 11px; border: 1px solid #eadac0; color: #9b702e; background: #fff8eb; border-radius: 20px; white-space: nowrap; }
.page { max-width: 1480px; margin: 0 auto; padding: 38px 40px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 1.8px; font-weight: 750; margin: 0 0 10px; }
h1 { font-size: clamp(28px, 2.5vw, 38px); letter-spacing: -1.3px; line-height: 1.15; font-weight: 650; margin: 0 0 12px; }
h2 { font-size: 17px; margin: 0; font-weight: 650; letter-spacing: -.3px; }
h3 { font-weight: 650; }
.title-row p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.secondary, .primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; border-radius: 9px; padding: 11px 16px; min-height: 44px; white-space: nowrap; }
.secondary { background: white; color: var(--ink); border: 1px solid #d9e3ea; box-shadow: 0 2px 3px #10263703; }
.primary { background: var(--accent); color: white; border: 1px solid var(--accent); box-shadow: 0 4px 12px #087e7022; }
.secondary:hover { background: #f6f9fb; border-color: #bbd0dc; }
.primary:hover { background: #07685d; }
button:disabled { cursor: wait; opacity: .6; }
.demo-banner { margin: 26px 0; padding: 14px 18px; border-radius: 11px; border: 1px solid #cfe9e3; background: #eaf6f2; color: #3d7067; display: flex; align-items: center; gap: 14px; font-size: 12px; line-height: 1.65; }
.demo-banner strong { color: #205c50; margin-right: 6px; }
.banner-icon { border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; width: 19px; height: 19px; flex-shrink: 0; font-weight: 600; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.metric { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 4px 15px #162c3b03; overflow: hidden; }
.metric::after { position: absolute; content: ''; width: 70px; height: 70px; border-radius: 50%; right: -32px; bottom: -32px; border: 14px solid #f2f6fa; pointer-events: none; }
.metric > * { position: relative; z-index: 1; }
.metric small { color: var(--muted); font-size: 12px; font-weight: 550; }
.metric-value { font-size: 38px; letter-spacing: -1.5px; font-weight: 650; line-height: 1; margin: 15px 0 12px; }
.metric-note { color: var(--muted); font-size: 11px; }
.metric:nth-child(2) .metric-value { color: var(--accent); }
.metric:nth-child(3) .metric-value { color: #4073ba; }
.metric:last-child .metric-value { color: #b8842b; }
.panel { background: white; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: 0 5px 22px #152b3a04; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; }
.panel-heading p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 7px 0 0; }
.search input { width: 260px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafb; font-size: 12px; min-height: 42px; color: var(--ink); }
.search input::placeholder { color: #7a8c98; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; }
th { padding: 14px 22px; color: #7c8d98; background: #f8fafc; font-size: 10px; font-weight: 650; letter-spacing: .9px; text-transform: uppercase; border-block: 1px solid var(--line); }
td { padding: 22px; border-bottom: 1px solid #edf1f5; font-size: 13px; vertical-align: middle; }
tbody tr:hover { background: #fbfdfd; }
td strong { font-size: 13px; font-weight: 600; display: block; margin-bottom: 5px; }
td small { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
td:first-child strong { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 6px 9px; background: #eaf6ef; color: #367b58; border-radius: 6px; }
.status::before { content: ''; width: 5px; height: 5px; background: currentColor; border-radius: 50%; flex-shrink: 0; }
.status.warning { color: #a77422; background: #fff4e1; }
.status.blue { color: #436fa9; background: #ebf2fd; }
.status.neutral { color: #788594; background: #f0f3f6; }
.row-action { padding: 10px 13px; border: 1px solid #d4e5e1; border-radius: 8px; background: #f5fbf9; color: var(--accent); font-size: 12px; font-weight: 650; min-height: 40px; min-width: 125px; }
.row-action:hover { background: #e6f4ef; border-color: #97cbbf; }
.panel-footer { padding: 16px 24px; font-size: 11px; color: var(--muted); background: #fcfdfe; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty > span { font-size: 32px; color: var(--accent); }
.empty h3 { color: var(--ink); margin-bottom: 7px; }
.empty p { font-size: 13px; }
footer { margin-top: 25px; display: flex; justify-content: space-between; gap: 14px; color: #82939e; font-size: 11px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
dialog { width: min(600px, calc(100vw - 28px)); max-height: 90vh; overflow: auto; border: 1px solid #ffffff80; padding: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 24px 100px #0c23384d; }
dialog::backdrop { background: #10293870; backdrop-filter: blur(5px); }
.dialog-heading { padding: 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { font-size: 23px; letter-spacing: -.7px; }
.icon-button { border: 1px solid var(--line); border-radius: 9px; background: #f8fafb; color: var(--muted); width: 36px; height: 36px; font-size: 23px; }
.dialog-body { padding: 25px; }
.review-summary { font-size: 13px; line-height: 1.8; padding: 17px; margin-bottom: 22px; background: #f4f8fa; border: 1px solid var(--line); border-radius: 10px; }
.review-summary small { display: block; font-size: 12px; color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; font-size: 12px; font-weight: 650; }
.field input { width: 100%; border: 1px solid #d8e3e9; border-radius: 9px; padding: 12px; background: white; color: var(--ink); min-height: 43px; }
.field input[readonly] { background: #f8fafb; }
.field input[type=checkbox] { min-height: auto; accent-color: var(--accent); }
.field small { font-size: 11px; line-height: 1.6; font-weight: 400; color: var(--muted); }
.wide { grid-column: 1/-1; }
.review-tip { color: var(--muted); font-size: 12px; line-height: 1.75; margin-top: 22px; }
.dialog-footer { display: flex; justify-content: space-between; gap: 10px; padding: 20px 25px; border-top: 1px solid var(--line); background: #fafcfd; }
.form-error { color: #aa4731; background: #fff0e9; margin: 0 25px 20px; padding: 13px; border: 1px solid #f7d2c5; border-radius: 9px; font-size: 13px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: 90vw; padding: 15px 22px; border-radius: 12px; background: #17323d; color: #fff; box-shadow: 0 10px 35px #10293835; font-size: 13px; }
.timeline { list-style: none; padding: 0; }
.timeline li { position: relative; padding: 0 0 24px 26px; margin-left: 5px; border-left: 2px solid #dcece6; font-size: 13px; font-weight: 600; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border: 2px solid white; background: var(--accent); border-radius: 50%; }
.timeline small { display: block; color: var(--muted); margin-top: 5px; font-size: 11px; font-weight: 400; }
.tracking-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.connection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.connection { border: 1px solid var(--line); border-radius: 14px; background: white; padding: 25px; box-shadow: 0 4px 16px #152b3a03; }
.connection h2 { margin: 17px 0 9px; }
.connection p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.connection small { font-size: 12px; color: #85939d; line-height: 1.6; }
@media (max-width: 1200px) {
 .layout { grid-template-columns: 220px minmax(0, 1fr); }
 .page { padding: 30px 24px; } header { padding-inline: 24px; }
 .panel-heading { align-items: stretch; flex-direction: column; } .search input { width: 100%; }
 .metric { padding: 18px; } .metric small { font-size: 11px; }
}
@media (max-width: 760px) {
 .layout { display: block; }
 .sidebar { position: static; height: auto; padding: 20px 16px 15px; }
 .brand { padding: 0 4px 23px; }
 .sidebar nav { grid-template-columns: 1fr 1fr; gap: 5px; }
 .nav-button { padding: 10px 13px; min-height: 43px; font-size: 12px; }
 .sidebar-bottom { display: none; }
 header { height: 62px; padding-inline: 18px; }
 .header-right { gap: 9px; } .avatar { width: 28px; height: 28px; font-size: 9px; }
 .breadcrumb { font-size: 11px; } .breadcrumb span { margin-left: 7px; }
 .environment { padding: 6px 8px; font-size: 9px; }
 .page { padding: 28px 16px; }
 .title-row { align-items: flex-start; gap: 12px; }
 h1 { font-size: 28px; } .title-row p:not(.eyebrow) { font-size: 13px; }
 .title-row .secondary { padding: 9px 11px; font-size: 11px; min-height: 38px; flex-shrink: 0; }
 .demo-banner { padding: 14px; align-items: flex-start; }
 .banner-icon { margin-top: 2px; }
 .metrics { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
 .metric { padding: 18px; } .metric-value { font-size: 32px; }
 .panel-heading { padding: 20px; }
 .table-wrap { overflow: visible; padding: 0 14px; }
 table, tbody { display: block; white-space: normal; }
 thead { display: none; }
 tbody tr { display: flex; flex-wrap: wrap; padding: 6px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
 td { display: block; width: 50%; border: 0; padding: 12px; }
 td:first-child, td:nth-child(4), td:last-child { width: 100%; }
 td:first-child { border-bottom: 1px solid var(--line); }
 td:nth-child(2)::before,td:nth-child(3)::before { display: block; font-size: 9px; color: #8295a1; letter-spacing: .9px; margin-bottom: 8px; }
 td:nth-child(2)::before { content: 'DESTINATION'; } td:nth-child(3)::before { content: 'PARCEL'; }
 .row-action { width: 100%; min-height: 44px; }
 .panel-footer { padding: 16px; line-height: 1.7; }
 footer { flex-direction: column; }
 .connection-grid { grid-template-columns: 1fr; }
 .fields { grid-template-columns: 1fr; } .wide { grid-column: auto; }
 .dialog-footer { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: no-preference) {
 button { transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease; }
 .metric { transition: transform .2s ease, box-shadow .2s ease; }
 .metric:hover { transform: translateY(-2px); box-shadow: 0 7px 22px #152b3a08; }
 dialog[open] { animation: dialog-in .2s ease-out; }
 @keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
}
