:root {
  --navy:#0b182d; --ink:#101e35; --muted:#56667c; --soft:#edf1f8;
  --line:#e1e7f1; --paper:#f4f6fb; --white:#fff; --blue:#315eea; --blue-dark:#244ac3;
  --green:#047058; --gold:#8a5310; --radius:18px;
  font-family:"Aptos","Segoe UI",sans-serif; color:var(--ink); background:var(--paper);
  font-synthesis:none;
}
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; display:grid; grid-template-columns:232px minmax(0,1fr); }
a { color:inherit; }
button,select,input { font:inherit; }
a,button,select,input { outline-offset:4px; }
:focus-visible { outline:2px solid var(--blue); }
button { cursor:pointer; }
h1,h2,h3,p { margin:0; }
.sr-only,.skip:not(:focus) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.skip { z-index:5; background:white; padding:10px; position:fixed; }
.sidebar { position:sticky; top:0; height:100dvh; padding:26px 17px 18px; display:flex; flex-direction:column; background:linear-gradient(150deg,#112441 0%,#0b182d 59%); color:#dbe4f8; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; margin:0 7px 45px; }
.brand img { width:88px; height:32px; object-fit:contain; padding:4px 7px; background:#fff; border-radius:7px; }
.brand span { color:#e2e9fc; font-weight:650; font-size:10px; letter-spacing:.18em; }
nav { display:grid; gap:6px; }
nav a { display:flex; align-items:center; gap:13px; min-width:0; padding:12px 13px; text-decoration:none; font-size:14px; font-weight:600; border-radius:10px; white-space:nowrap; }
nav a:hover { background:#1a3153; }
nav a[aria-current=page] { background:#223b62; color:#fff; box-shadow:inset 3px 0 #efb54d; }
nav a:focus-visible { outline-color:#b7c8ff; }
.icon { display:inline-block; position:relative; flex:0 0 17px; width:17px; height:17px; color:currentColor; }
.icon.grid { background:repeating-linear-gradient(90deg,currentColor 0 6px,transparent 6px 10px); mask:linear-gradient(#000 0 6px,transparent 6px 10px,#000 10px 16px); border-radius:2px; }
.icon.route:before,.icon.route:after { content:""; position:absolute; width:7px; height:7px; border:1.5px solid currentColor; border-radius:50%; background:#162c4f; }
.icon.route:after { right:0; bottom:0; }
.icon.route { background:linear-gradient(42deg,transparent 45%,currentColor 46% 53%,transparent 54%) center/12px 12px no-repeat; }
.icon.file { border:1.5px solid currentColor; border-radius:3px; width:14px; flex-basis:17px; background:repeating-linear-gradient(currentColor 0 1px,transparent 1px 4px) center 6px/7px 6px no-repeat; }
.icon.bars { background:linear-gradient(currentColor,currentColor) left bottom/3px 8px no-repeat,linear-gradient(currentColor,currentColor) center bottom/3px 13px no-repeat,linear-gradient(currentColor,currentColor) right bottom/3px 17px no-repeat; }
.icon.pulse { background:currentColor; clip-path:polygon(0 47%,22% 47%,38% 8%,57% 74%,70% 46%,100% 46%,100% 56%,77% 56%,56% 96%,39% 34%,28% 57%,0 57%); }
.tenant { display:flex; align-items:center; gap:10px; border-top:1px solid #2a3c5a; padding:16px 3px 1px; margin-top:auto; }
.avatar { width:35px; height:35px; display:grid; place-items:center; flex:none; background:#233a63; border-radius:10px; font-weight:700; color:#c8d7ff; }
.tenant strong,.tenant small { display:block; }
.tenant strong { font-size:12px; color:#f4f7ff; }
.tenant small { font-size:11px; color:#a9b8d8; margin-top:3px; }
.shell { min-width:0; }
.top { display:flex; align-items:center; justify-content:space-between; gap:10px; height:61px; padding:0 clamp(20px,3.5vw,54px); border-bottom:1px solid var(--line); background:#fcfdff; color:var(--muted); font-size:13px; }
.top b { padding:0 6px; color:#8491a6; }
.top-home { color:var(--ink); text-underline-offset:3px; }
.premium .top { position:sticky; top:0; z-index:2; }
.premium { scroll-padding-top:70px; }
.top strong { color:var(--ink); font-weight:650; }
.demo { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; font-size:11px; font-weight:650; color:#364d8b; background:#eaf0ff; padding:6px 10px; border-radius:40px; }
.demo i { width:6px; height:6px; border-radius:50%; background:#4268e9; }
main { max-width:1560px; margin:auto; padding:30px clamp(20px,3.5vw,54px) 40px; }
.page-head { display:flex; justify-content:space-between; align-items:end; gap:20px; margin-bottom:23px; }
h1 { font-size:clamp(28px,3.1vw,43px); font-weight:750; letter-spacing:-.055em; line-height:1.03; }
.page-head p,.sub { color:var(--muted); line-height:1.48; font-size:13px; }
.page-head p { margin-top:9px; }
.page-head h1:focus { outline:0; }
.filters,.table-tools { display:flex; gap:9px; flex-wrap:wrap; }
.filters label,.table-tools label { display:grid; gap:5px; font-size:11px; color:#4c5e78; font-weight:680; }
select,input { min-height:37px; padding:7px 10px; border:1px solid #ccd6e8; border-radius:8px; background:var(--white); color:var(--ink); font-weight:600; font-size:12px; max-width:100%; }
.metrics { display:grid; grid-template-columns:1.27fr repeat(3,minmax(0,1fr)); gap:13px; margin-bottom:16px; }
.metric,.panel { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 6px 22px #10264a08; }
.metric { min-width:0; min-height:128px; padding:15px 16px; display:flex; flex-direction:column; justify-content:space-between; gap:9px; }
.metric.feature { background:radial-gradient(ellipse at 96% -14%,#4062c5 0%,transparent 61%),linear-gradient(115deg,#15264d,#24458d); border:1px solid #25478c; color:#fff; position:relative; overflow:hidden; isolation:isolate; }
.feature::after { content:""; position:absolute; inset:0; z-index:-1; opacity:.20; background:repeating-radial-gradient(ellipse at 110% 0%,transparent 0 17px,#aec6ff 18px 19px,transparent 20px 26px); mask-image:linear-gradient(110deg,transparent 43%,black); }
.metric .caption { font-size:12px; font-weight:650; color:var(--muted); }
.metric strong { display:block; font-size:clamp(19px,2.55vw,35px); letter-spacing:-.052em; font-weight:750; line-height:1.06; font-variant-numeric:tabular-nums; }
.metric.feature .caption,.metric.feature small { color:#edf2ff; }
.metric small { font-size:11px; color:var(--muted); line-height:1.35; }
.dash { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:15px; margin-bottom:16px; }
.panel { padding:17px 19px; min-width:0; }
.panel-head { display:flex; justify-content:space-between; align-items:start; gap:12px; margin-bottom:13px; }
h2 { font-size:17px; letter-spacing:-.025em; line-height:1.25; }
.chip { color:#41557b; background:#eff3fa; padding:5px 8px; border-radius:6px; font-size:10px; white-space:nowrap; }
.vis-link { color:var(--blue-dark); font-size:12px; font-weight:700; text-decoration:none; white-space:nowrap; }
.vis-link:hover { text-decoration:underline; }
.plot { display:grid; grid-template-columns:48px 1fr; height:151px; font-size:10px; color:var(--muted); }
.axis { display:flex; flex-direction:column; justify-content:space-between; padding:0 5px 17px 0; white-space:nowrap; }
.plot-body { display:grid; grid-template-columns:repeat(4,1fr); padding:0 6px; background:repeating-linear-gradient(to top,#eaf0fa 0 1px,transparent 1px 33.33%); background-size:100% calc(100% - 20px); background-repeat:no-repeat; border-bottom:1px solid #edf0f7; }
.bar-group { display:grid; grid-template-rows:1fr 20px; align-items:end; justify-items:center; gap:0; }
.bar-space { display:flex; justify-content:center; align-items:end; height:100%; min-width:48%; }
.bar { width:clamp(19px,4vw,56px); min-height:2px; border-radius:5px 5px 0 0; background:linear-gradient(0deg,#2952d4,#7895ff); }
.bar-group span { align-self:center; }
.operations-panel {
  padding:clamp(17px,2.1vw,28px);
  background:radial-gradient(ellipse at 0 42%,#213d67 0%,transparent 68%),#101e35;
  border-color:#273e60;
  color:#f4f7ff;
}
.operations-panel h2,.attention-panel h2 { font-size:clamp(18px,1.65vw,23px); }
.operations-panel .sub,.chart-help { color:#c0cce4; }
.operations-panel :focus-visible { outline-color:#ffe29c; outline-offset:1px; }
.operation {
  display:grid; grid-template-columns:minmax(105px,.94fr) minmax(0,1.2fr);
  gap:clamp(12px,2vw,28px); align-items:center; min-height:190px;
}
.ring {
  position:relative; width:min(100%,204px); aspect-ratio:1; justify-self:center;
  display:grid; place-items:center; border-radius:50%; background:#324665;
}
.ring-track { position:absolute; inset:0; border-radius:50%; }
.ring-inner {
  position:relative; width:77%; height:77%; border-radius:50%; display:grid; align-content:center;
  padding:8%; text-align:center; background:#132743; color:white;
}
.ring-inner strong { font-size:clamp(25px,3.4vw,45px); line-height:1; letter-spacing:-.05em; font-variant-numeric:tabular-nums; }
.ring-inner small { color:#d7e0f3; font-size:clamp(10px,1vw,13px); margin-top:6px; }
.legend { display:grid; gap:3px; padding:0; margin:0; list-style:none; }
.legend-filter {
  display:grid; grid-template-columns:8px minmax(0,1fr) auto minmax(4.5ch,auto); align-items:center;
  gap:8px; min-height:36px; padding:6px 8px; border-radius:8px; font-size:12px;
  color:inherit; text-decoration:none;
}
a.legend-filter:hover,a.legend-filter:focus-visible,a.legend-filter.chart-active { background:#344d73; color:white; }
.legend-filter i { border-radius:50%; width:8px; height:8px; }
.legend-filter strong,.legend-filter small { text-align:right; font-variant-numeric:tabular-nums; }
.legend-filter small { color:#ccd8ef; font-size:11px; }
.legend-filter.chart-zero { color:#b0bed7; }
.legend-filter.chart-zero i { opacity:.45; }
.chart-help { margin:16px 0 0; font-size:12px; line-height:1.4; }
.attention-panel { display:flex; flex-direction:column; padding:clamp(17px,2.1vw,28px); }
.attention-score { display:grid; gap:10px; justify-items:start; margin:auto 0; padding:16px 0; }
.attention-score>strong {
  color:#132b52; font-weight:750; font-size:clamp(30px,4vw,58px); line-height:1;
  letter-spacing:-.06em; font-variant-numeric:tabular-nums;
}
.attention-score p { color:var(--muted); font-size:13px; line-height:1.45; }
.attention-link { align-self:start; padding:10px 13px; border-radius:9px; background:#edf2fd; }
.attention-link:hover { background:#e3ebfc; }
.report-summary {
 display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:14px; align-items:start;
}
.report-summary:not(:has(.punctuality-panel)) { grid-template-columns:minmax(0,1fr); }
.execution-compare,.period-panel,.punctuality-panel { padding:17px 19px; }
.execution-compare h2,.period-panel h2,.punctuality-panel h2 { font-size:clamp(18px,1.55vw,22px); }
.execution-row summary,.execution-row.empty-execution {
 display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:10px;
}
.premium .execution-row { margin:0; padding:0; border-top:1px solid var(--line); }
.execution-row summary,.execution-row.empty-execution {
 align-items:center; padding:7px 9px 8px; list-style:none; border-radius:7px; row-gap:5px; font-size:13px;
}
.execution-row summary::-webkit-details-marker { display:none; }
.execution-row summary:hover,.execution-row[open] summary { background:#edf3ff; }
.execution-row summary>span:first-child::after { content:"  ▾"; color:#526782; }
.execution-row[open] summary>span:first-child::after { content:"  ▴"; }
.execution-row strong { text-align:right; font-variant-numeric:tabular-nums; }
.execution-track { grid-column:1/-1; height:4px; background:#e6edf7; border-radius:4px; overflow:hidden; }
.execution-track i { display:block; width:var(--execution-size,0%); height:100%; background:#4c70d6; border-radius:inherit; }
.execution-row.platform .execution-track i { background:#b27a1e; }
.execution-row.own .execution-track i { background:#318777; }
.execution-row .table-region { max-height:210px; }
.punctuality-basis { margin-bottom:7px; }
.premium .punctuality-details { margin:0; padding:0; border-top:0; }
.punctuality-row {
 display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 10px; align-items:center;
 border-radius:8px; padding:7px 8px; font-size:13px;
}
.punctuality-row strong { font-variant-numeric:tabular-nums; }
.punctuality-row small { grid-column:1/-1; color:var(--muted); }
.punctuality-details summary:hover,.punctuality-details[open] summary { background:#edf3ff; }
.punctuality-details summary>span:first-child::after { content:"  ▾"; color:#526782; }
.punctuality-details[open] summary>span:first-child::after { content:"  ▴"; }
.punctuality-details .table-region { max-height:210px; }
.punctuality-track {
 display:block; grid-column:1/-1; height:7px; background:#bf6571; overflow:hidden; border-radius:6px;
}
.punctuality-track[data-measured="0"] { background:#e5ebf6; }
.punctuality-track i { display:block; width:var(--on-time,0%); height:100%; background:#238772; }
.welcome-panel { margin-bottom:16px; }
.welcome-panel>div {
 display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:10px; margin-top:12px;
}
.welcome-panel a {
 display:grid; gap:6px; padding:13px; background:#edf3ff; border-radius:11px;
 color:#193e8b; text-decoration:none;
}
.welcome-panel a:hover { background:#e2ebfe; }
.welcome-panel a small { color:var(--muted); }
.period-modes {
 display:flex; flex:none; align-items:center; gap:3px; padding:3px;
 background:#eef2f9; border-radius:10px;
}
.period-modes button { background:transparent; border-color:transparent; color:#415377; }
.period-modes [aria-pressed=true] { background:#fff; border-color:#dae4f6; color:#244ac3; }
.period-plot {
 --period-height:clamp(105px,14vw,175px);
 display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:10px;
 padding:11px 10px 7px; border-radius:14px; color:#dae6fa;
 background:radial-gradient(ellipse at 80% 5%,#244875 0%,transparent 60%),#142641;
}
.period-axis {
 display:flex; flex-direction:column; justify-content:space-between; min-width:5ch; height:var(--period-height);
 margin-top:48px; text-align:right; font-size:11px; font-variant-numeric:tabular-nums;
}
.period-grid {
 display:grid; grid-auto-flow:column; grid-auto-columns:minmax(82px,1fr);
 gap:7px; overflow:auto; padding:4px 4px 9px;
}
.period-slot {
 display:grid; grid-template-rows:30px var(--period-height) auto; justify-items:center; gap:5px; min-width:0;
 padding:8px 5px; border:1px solid transparent; border-radius:11px;
 background:#1d3455; color:#deebff; font-size:11px; line-height:1.35; text-align:center;
}
.period-slot:hover,.period-slot[aria-pressed=true] { background:#294770; color:white; border-color:#728fc8; }
.period-slot:disabled { cursor:default; background:#182e4c; color:#c2d2ed; border-color:transparent; }
.period-slot:focus-visible { outline-color:#ffe29c; outline-offset:1px; }
.period-slot strong { align-self:center; font-size:12px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.period-reading { align-self:center; line-height:1.16; }
.period-reading small { display:block; margin-top:2px; color:#c5d7f5; font-size:10px; }
.period-track {
 display:flex; align-items:end; justify-content:center; width:100%; min-height:0; border-bottom:1px solid #6680a7;
 background:repeating-linear-gradient(to top,transparent 0 calc(25% - 1px),#405d87 calc(25% - 1px) 25%);
}
.period-track i {
 width:clamp(20px,54%,80px); height:var(--period-size,0%); border-radius:7px 7px 0 0;
 background:linear-gradient(0deg,#5b81e5,#9bb7ff);
}
.period-slot[aria-pressed=true] i { background:linear-gradient(0deg,#b67b21,#ffcf75); }
.period-slot.unknown .period-track i { visibility:hidden; }
.period-undated { margin-top:9px; }
.period-undated[aria-pressed=true] { background:#e9f0ff; border-color:#bdcef3; }
.period-detail:empty { display:none; }
.period-detail { margin-top:13px; padding-top:12px; border-top:1px solid var(--line); }
.period-detail h3 { font-size:14px; }
.period-detail .sub { margin:4px 0; }
@media(max-width:1140px) {
 .report-summary { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:620px) {
 .period-panel .panel-head,.punctuality-panel .panel-head { flex-wrap:wrap; }
 .period-plot { gap:6px; padding-inline:7px; }
}
@media(prefers-reduced-motion:no-preference) {
 .period-track i { animation:period-rise .5s cubic-bezier(.2,.7,.2,1) both; transition:height .25s ease-out; transform-origin:bottom; }
 .execution-track i { animation:execution-grow .45s ease-out both; transform-origin:left; }
 @keyframes period-rise { from { transform:scaleY(0); } to { transform:scaleY(1); } }
 @keyframes execution-grow { from { transform:scaleX(0); } to { transform:scaleX(1); } }
}
.table-region { overflow:auto; }
table { width:100%; border-collapse:collapse; white-space:nowrap; font-size:12px; }
th { color:var(--muted); font-size:11px; font-weight:670; text-align:left; background:#f6f8fd; }
td,th { padding:10px 10px; border-bottom:1px solid #e8edf5; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#f9fbff; }
td:first-child { font-weight:680; }
td.money,th.money { text-align:right; font-variant-numeric:tabular-nums; }
.badge { display:inline-block; padding:4px 7px; border-radius:5px; color:#2846a2; background:#eaf0ff; font-weight:650; font-size:10px; }
.badge.completed { color:#086350; background:#e5f6f0; }
.badge.late { color:#874e12; background:#fff1de; }
.badge.planned { color:#526177; background:#eef1f6; }
.badge.good { color:#086350; background:#e5f6f0; }
.badge.watch { color:#795012; background:#fff0d9; }
.badge.bad { color:#a01c35; background:#fff0f3; }
.badge.neutral { color:#50627e; background:#eef2f8; }
.metric.bad strong { color:#a01c35; }
.metric.watch strong { color:#795012; }
.metric.good strong { color:#086350; }
.goal-settings { display:grid; grid-template-columns:minmax(140px,auto) repeat(2,minmax(110px,130px)) auto; align-items:end; justify-content:start; gap:10px; margin-bottom:12px; }
.goal-settings label { display:grid; gap:5px; font-size:11px; color:#4c5e78; font-weight:680; }
.goal-settings input { width:100%; }
.goal-settings .goal-apply { min-height:37px; }
#cargo-check { align-items:end; }
#cargo-check .goal-apply { min-height:37px; }
.goal-status { display:inline-flex; align-items:center; gap:6px; }
.goal-dot { width:6px; height:6px; background:currentColor; border-radius:50%; }
.goal-tracking,.diagnostic-grid { display:grid; gap:15px; margin-bottom:16px; }
.diagnostic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.summary-note { color:var(--muted); font-size:12px; line-height:1.5; margin-top:10px; }
.scope-number { min-width:8ch; }
.action,.primary,.premium [data-vehicle-comparison] button { border-radius:8px; border:1px solid #d1dcf0; color:var(--blue-dark); background:white; padding:6px 10px; font-size:11px; font-weight:700; }
.action:hover,.premium [data-vehicle-comparison] button:enabled:hover { background:#edf2ff; }
.primary { border-color:var(--blue); background:var(--blue); color:white; padding:9px 12px; font-size:12px; white-space:nowrap; }
.primary:hover { background:var(--blue-dark); }
.report-actions { display:flex; align-items:center; gap:8px; }
.report-layout { display:grid; gap:15px; }
.report-note { background:#f0f4ff; padding:10px 12px; border-radius:9px; color:#3d5073; margin-top:12px; font-size:11px; line-height:1.55; }
.table-tools { margin-bottom:13px; }
.empty { padding:23px 8px; font-size:13px; color:var(--muted); }
dialog { border:1px solid var(--line); border-radius:20px; color:var(--ink); width:min(540px,calc(100vw - 28px)); max-height:85vh; overflow:auto; padding:20px; box-shadow:0 20px 80px #09183145; }
dialog::backdrop { background:#0c183960; }
.dialog-head { display:flex; align-items:start; justify-content:space-between; gap:12px; margin-bottom:13px; }
.dialog-head h2 { font-size:22px; margin-bottom:5px; }
dialog:has(.freight-detail) { width:min(680px,calc(100vw - 24px)); padding:0; }
dialog:has(.freight-detail) .dialog-head {
 position:sticky; top:0; z-index:1; margin:0; padding:20px 24px 14px;
 background:white; border-bottom:1px solid var(--line);
}
dialog:has(.freight-detail) .dialog-head h2 { overflow-wrap:anywhere; }
dialog:has(.freight-detail) #detail-status:not(:empty) { margin:0 24px 18px; }
.freight-detail { display:grid; gap:16px; padding:16px 24px 20px; }
.freight-detail > div:empty { display:none; }
.freight-detail-mode { margin:0; color:var(--muted); font-size:13px; }
.freight-detail-route,.freight-detail-value,.freight-detail-files {
 margin:0; padding:13px 16px; border:1px solid var(--line); border-radius:12px;
}
.freight-detail h3 { margin:0 0 5px; font-size:15px; }
.freight-detail-route ol { margin:6px 0 0; padding-left:22px; }
.freight-detail-route li+li { margin-top:8px; }
.freight-detail-value dd { margin:4px 0 0; font-weight:700; }
.freight-detail-files summary { cursor:pointer; font-weight:700; }
.freight-detail-files [data-own-files] { padding-top:12px; }
.freight-detail-footer,.freight-proposal {
 display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px;
}
.freight-proposal {
 background:#edf3ff; border:1px solid #cbdaf7; border-radius:14px; padding:16px;
}
.freight-proposal-amount {
 margin:0; color:#10254c; font-size:clamp(22px,4vw,30px); font-weight:750;
 font-variant-numeric:tabular-nums;
}
.freight-proposal-note { margin:6px 0 0; color:#415574; font-size:13px; }
.freight-detail-footer button,.freight-proposal a {
 display:inline-flex; align-items:center; justify-content:center; min-height:44px;
 padding:8px 14px; font-size:13px; text-decoration:none; white-space:normal;
}
.freight-detail-footer button:focus-visible,.freight-detail a:focus-visible,.freight-detail summary:focus-visible {
 outline:2px solid #2455ce; outline-offset:3px;
}
@media(max-width:480px) {
 dialog:has(.freight-detail) .dialog-head { padding:16px; }
 .freight-detail { padding:12px 16px 16px; }
 .freight-proposal a { width:100%; }
}
.close { font-size:21px; width:35px; height:35px; border-radius:8px; background:#eef3fb; border:0; color:var(--ink); }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:12px 0; }
.detail-grid div { padding:10px; background:#f5f8ff; border-radius:8px; }
.detail-grid dt { color:var(--muted); font-size:11px; }
.detail-grid dd { margin:4px 0 0; font-size:14px; font-weight:650; }
@media(max-width:1120px) {
  body { grid-template-columns:194px minmax(0,1fr); }
  .sidebar { padding-inline:13px; }
  .metric { padding-inline:13px; }
}
@media(max-width:860px) {
  body { display:block; }
  .sidebar { position:static; height:auto; padding:10px 15px; gap:9px; }
  .brand { margin:0; }
  .sidebar nav { display:flex; flex-wrap:wrap; }
  nav a { padding:8px 9px; gap:8px; font-size:12px; }
  .tenant { display:none; }
  .top { height:47px; }
  main { padding-top:21px; }
}
@media(max-width:620px) {
  .page-head { flex-direction:column; align-items:stretch; gap:14px; }
  .filters label { flex:1 0 125px; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .metric { min-height:105px; }
  .dash { grid-template-columns:minmax(0,1fr); }
  .diagnostic-grid { grid-template-columns:minmax(0,1fr); }
  .goal-settings { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-actions { flex-wrap:wrap; justify-content:end; }
  .panel { padding:13px; }
  main,.top { padding-inline:13px; }
  th,td { padding-inline:8px; }
}
@media(min-width:861px) and (max-width:1050px) {
  .dash { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:405px) {
  .operation { grid-template-columns:minmax(0,1fr); }
  .ring { width:148px; }
  .premium .top .demo { display:none; }
}
@property --chart-reveal {
  syntax:"<angle>";
  inherits:false;
  initial-value:360deg;
}
@media(prefers-reduced-motion:no-preference) {
  .bar { animation:appear .4s ease-out both; transform-origin:bottom; }
  .ring-track { mask-image:conic-gradient(#000 0deg var(--chart-reveal),transparent 0deg); animation:chart-sweep .72s cubic-bezier(.2,.7,.2,1) both; }
  .ring-inner { animation:chart-center .42s ease-out both; }
  .legend-filter,.attention-link { transition:background-color .16s ease-out; }
  @keyframes appear { from { transform:scaleY(.15); } to { transform:scaleY(1); } }
  @keyframes chart-sweep { from { --chart-reveal:0deg; } to { --chart-reveal:360deg; } }
  @keyframes chart-center { from { opacity:.5; transform:scale(.92); } to { opacity:1; transform:scale(1); } }
}
.premium [hidden] { display:none !important; }
.platform-progress { display:grid;gap:4px;justify-items:start;min-width:8rem }
.platform-progress small { color:var(--muted,#50627e);line-height:1.3 }
.premium .auth { grid-column:1/-1; width:min(440px,calc(100% - 32px)); margin:auto; align-self:center; }
.premium .auth img { object-fit:contain; height:50px; margin-bottom:14px; }
.premium .auth h1 { margin-bottom:19px; }
.premium .fields { display:grid; gap:13px; }
.premium .registration-fields { display:grid; gap:13px; margin:0; padding:0; border:0; min-width:0; }
.premium [data-company-identity] label { display:grid; gap:5px; margin:8px 0; }
.premium [data-company-identity] input:not([type="checkbox"]),.premium [data-company-identity] textarea { width:100%; }
.premium [data-company-identity] textarea { padding:7px 10px; border:1px solid var(--line); border-radius:8px; font:inherit; }
.premium [data-company-identity] details { margin-top:13px; }
.premium .fields label { display:grid; gap:6px; font-size:12px; color:var(--muted); font-weight:600; }
.premium .fields input,.premium .fields select { width:100%; }
.premium .fields .pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.premium .tenant { min-width:0; }
.premium .tenant div { min-width:0; overflow-wrap:anywhere; }
.premium .top-actions { display:flex; gap:12px; align-items:center; }
.premium .top-actions button { white-space:nowrap; }
.premium .account-card { margin:12px 0; padding:12px; border:1px solid var(--line); border-radius:10px; }
.premium .account-card form { margin-top:10px; }
.premium #recover-account { margin-top:12px; }
.premium .filters { align-items:end; }
.premium .filters>button { height:37px; }
.premium .notice { font-size:13px; color:#395681; margin:8px 0 12px; }
.premium .notice:empty { display:none; }
.premium .notice.error { color:#9f2336; }
.premium .vertical { display:grid; gap:16px; }
.premium .data-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.premium .agla-request { display:inline-flex; gap:6px; align-items:center; padding:9px 12px;
 border-color:#c88814; background:#e1a21c; color:#17253c; text-decoration:none; font-size:12px; }
.premium .agla-request:hover { background:#edb43b; border-color:#a5660b; }
.premium .legacy { align-self:center; white-space:nowrap; }
.premium .route-list { padding-left:24px; color:var(--muted); font-size:13px; line-height:1.65; }
.premium .route-list strong { color:var(--ink); }
.premium .compare-form { margin-top:12px; border-top:1px solid var(--line); padding-top:12px; }
.premium [data-vehicle-comparison] details { margin:12px 0; padding:12px; border:1px solid var(--line); border-radius:10px; }
.premium [data-vehicle-comparison] summary { cursor:pointer; font-weight:650; }
.premium [data-vehicle-comparison] label { display:grid; gap:6px; margin:10px 0; }
.premium [data-vehicle-comparison] button:disabled { opacity:.56; cursor:default; }
.vehicle-assessment,.vehicle-screening {
 display:grid; gap:8px; margin:12px 0; padding:13px;
 background:#f4f7fd; border:1px solid #dce5f4; border-radius:12px;
 font-size:13px; line-height:1.45;
}
.vehicle-assessment .panel-head { flex-wrap:wrap; align-items:center; margin:0; gap:6px; }
.vehicle-assessment h3 { font-size:14px; }
.vehicle-assessment ul { margin:0; padding-inline-start:20px; }
.vehicle-screening h3 { font-size:14px; }
.vehicle-screening h4 { margin:3px 0; }
.vehicle-screening ul { margin:0; padding:0; list-style:none; }
.vehicle-screening li { display:flex; justify-content:space-between; flex-wrap:wrap; gap:0 10px; padding:4px 0; overflow-wrap:anywhere; }
.vehicle-screening li small { color:var(--muted); }
.badge.danger { background:#fff0f3; color:#a01c35; }
.premium .section-label { font-size:13px; margin:10px 0 4px; }
.premium .entry-label { color:var(--muted); font-size:11px; }
.premium .carrier-goal-tag { display:inline-block; padding:.24em .54em; border-radius:.5em; font-weight:700; }
.premium .carrier-goal-tag.green { color:#086350; background:#e5f6f0; }
.premium .carrier-goal-tag.yellow { color:#795012; background:#fff0d9; }
.premium .carrier-goal-tag.red { color:#a01c35; background:#fff0f3; }
.premium .carrier-goal-tag.neutral { color:#50627e; background:#eef2f8; }
.metric-link { text-decoration:none; color:inherit; }
.metric-link:hover { border-color:#91a8d1; }
.metric-link .carrier-goal-tag { align-self:start; }
.reference-order { display:block; margin-top:3px; color:var(--muted); }
.operational-shortcuts { margin-block:16px; }
.operational-shortcuts > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:10px; margin-top:12px; }
.operational-shortcuts a { display:flex; align-items:center; gap:10px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; color:inherit; text-decoration:none; }
.operational-shortcuts a:hover { background:#f1f5ff; }
.operational-shortcuts strong { font-size:21px; font-variant-numeric:tabular-nums; }
.operational-shortcuts a span:last-child { margin-inline-start:auto; }
.heading-with-help { display:flex; align-items:center; gap:8px; }
.premium .panel .context-help { position:relative; margin:0; padding:0; border:0; }
.context-help summary { display:grid; place-items:center; width:28px; height:28px; border:1px solid var(--line); border-radius:50%; list-style:none; }
.context-help summary::-webkit-details-marker { display:none; }
.context-help p { position:absolute; z-index:2; inset:100% 0 auto auto; width:min(285px,65vw); padding:10px 12px; margin:0;
 border:1px solid var(--line); border-radius:9px; color:var(--muted); background:white; box-shadow:0 8px 24px #10234425; }
@media(hover:hover) { .context-help:hover::details-content { content-visibility:visible; } }
.carrier-chart-detail { padding:3px 8px 8px; }
.carrier-chart-detail dl,.freight-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr)); gap:10px; margin:10px 0; }
.carrier-chart-detail dt,.freight-facts dt { font-size:11px; color:var(--muted); }
.carrier-chart-detail dd,.freight-facts dd { margin:4px 0 0; font-weight:700; overflow-wrap:anywhere; }
.carrier-chart {
 margin:16px 0; padding:clamp(13px,2vw,23px); background:#f7f9fd;
 border:1px solid #e1e8f4; border-radius:14px;
}
.carrier-chart figcaption { display:flex; flex-wrap:wrap; align-items:center; gap:6px 13px; color:var(--muted); font-size:12px; }
.carrier-chart figcaption strong { margin-inline-end:auto; color:var(--ink); font-size:14px; }
.carrier-chart figcaption i { display:inline-block; width:2px; height:10px; margin-right:3px; background:#344766; vertical-align:-1px; }
.carrier-chart ul { margin:12px 0 0; padding:0; list-style:none; }
.premium .carrier-chart-row {
 margin:0; padding:5px 0; border-color:#e2e9f4;
}
.carrier-chart-row summary {
 display:grid; grid-template-columns:minmax(0,1fr) auto minmax(5ch,auto) 11px;
 align-items:center; gap:5px 12px; padding:8px 6px; border-radius:8px; list-style:none; font-size:13px;
}
.carrier-chart-row summary::-webkit-details-marker { display:none; }
.carrier-chart-row summary:hover,.carrier-chart-row[open] summary { background:#eaf0fb; }
.carrier-chart-row summary:after {
 content:""; grid-column:4; grid-row:1; width:6px; height:6px;
 border:solid #60718c; border-width:0 1.5px 1.5px 0; transform:rotate(45deg);
}
.carrier-chart-row[open] summary:after { transform:rotate(225deg); }
.carrier-chart-row .carrier-goal-tag { justify-self:start; font-size:11px; }
.carrier-chart-name { overflow-wrap:anywhere; }
.carrier-chart-name small { display:block; color:var(--muted); font-weight:500; }
.carrier-chart-value { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.carrier-chart-row p { margin:5px 6px 8px; color:var(--muted); font-size:12px; }
.carrier-chart-track {
 position:relative; grid-row:2; grid-column:1/-2; height:7px;
 overflow:hidden; border-radius:5px; background:#dce5f3; --carrier-fill:#657995;
}
.carrier-chart-track.green { --carrier-fill:#169077; }
.carrier-chart-track.yellow { --carrier-fill:#b47a24; }
.carrier-chart-track.red { --carrier-fill:#bd405b; }
.carrier-chart-track i {
 display:block; width:var(--carrier-size,0%); height:100%; border-radius:inherit; background:var(--carrier-fill);
}
.carrier-chart-track[data-target]::after {
 content:""; position:absolute; top:0; bottom:0; left:clamp(0px,var(--carrier-target,0%),calc(100% - 2px));
 width:2px; background:#344766;
}
@media(prefers-reduced-motion:no-preference) {
 .carrier-chart-track i { animation:carrier-fill .5s cubic-bezier(.2,.7,.2,1) both; transform-origin:left; }
 @keyframes carrier-fill { from { transform:scaleX(0); } to { transform:scaleX(1); } }
}
@media(max-width:460px) {
 .carrier-chart-row summary { grid-template-columns:minmax(0,1fr) auto 11px; }
 .carrier-chart-row summary:after { grid-column:3; }
 .carrier-chart-value { grid-row:1; grid-column:2; }
 .carrier-chart-row .carrier-goal-tag { grid-row:2; grid-column:1/-1; }
 .carrier-chart-track { grid-row:3; }
}
.premium .table-wrap,.premium .table { max-width:100%; overflow:auto; }
.premium #view>details { background:white; padding:14px 18px; border:1px solid var(--line); border-radius:12px; }
.premium .panel details { margin:8px 0; padding:10px 0; border-top:1px solid var(--line); }
.premium .panel summary { cursor:pointer; font-weight:650; }
.premium .table-tools .chip { align-self:center; }
@media(max-width:620px) {
 .premium .auth { margin:40px auto; }
 .premium .fields .pair { grid-template-columns:1fr; }
 .premium .data-actions { justify-content:flex-start; }
}
