
:root{--ink:#1c302a;--muted:#6e7972;--paper:#f4f5f0;--line:#dfe5dc;--green:#234d3c;--lime:#d5ecab;--orange:#a96421;--red:#ac3939;--white:#fff;--shadow:0 4px 22px #20372d08;font-family:Inter,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #78b97c;outline-offset:3px}input:focus,select:focus{outline:2px solid #7eaa6b;outline-offset:1px}button:disabled{opacity:.5;cursor:not-allowed}.shell{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:#182d28;color:#d3dfd7;padding:30px 18px;display:flex;flex-direction:column;gap:30px}.logo{font-size:32px;font-weight:800;letter-spacing:-1.5px;color:#d4edaa;text-decoration:none;padding:0 12px}.logo small{display:block;font-weight:400;font-size:10px;letter-spacing:2px;margin-top:5px;color:#b7c7bd;text-transform:uppercase}.nav{display:flex;flex-direction:column;gap:6px}.nav a{padding:12px 14px;text-decoration:none;font-size:13px;border-radius:8px;display:flex;align-items:center;gap:12px}.nav a:hover{background:#ffffff09}.nav a.active{color:#fff;background:#314b40}.nav .symbol{font-size:18px;width:20px;color:#afc58f}.sidefoot{margin-top:auto;padding:12px;font-size:11px;line-height:1.7;color:#96aaa0}.sidefoot b{display:block;color:#d5e0d9;font-size:12px}.workspace{min-width:0}.topbar{height:66px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;background:#fafbf7;font-size:12px;color:var(--muted)}.pill{display:inline-flex;gap:6px;align-items:center;padding:5px 9px;background:#e9eee3;color:#49623b;border-radius:20px;font-size:11px;font-weight:600}.dot{width:6px;height:6px;background:#729044;border-radius:50%}.main{padding:30px 34px 60px;max-width:1600px;margin:auto}.pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:10px;color:var(--muted);margin:0 0 8px}h1{font-size:29px;letter-spacing:-.9px;font-weight:650;line-height:1.15;margin:0 0 10px}h2{font-size:17px;font-weight:650;margin:0 0 14px}h3{font-size:14px;margin:0 0 10px}.subtitle{font-size:13px;color:var(--muted);line-height:1.6;margin:0}.actions{display:flex;flex-wrap:wrap;gap:8px}.btn{border:1px solid #ccd5c8;background:#fff;color:var(--ink);border-radius:7px;padding:10px 14px;font-size:12px;font-weight:600;line-height:1.25;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn:hover{background:#eef3e8}.btn.primary{background:var(--green);color:#fff;border-color:var(--green)}.btn.primary:hover{background:#163d2b}.btn.small{padding:6px 9px;font-size:11px}.btn.ghost{background:none;border-color:transparent}.btn.danger{color:var(--red)}.calc-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;align-items:start;gap:22px}.formcol{display:flex;flex-direction:column;gap:14px;min-width:0}.card{background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow);padding:22px}.sectiontitle{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.sectiontitle h2{margin:0;font-size:15px}.num{font-size:10px;color:#81917b;border:1px solid var(--line);border-radius:5px;width:25px;height:25px;display:inline-flex;align-items:center;justify-content:center;margin-right:9px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.full{grid-column:1/-1}.field>span{font-size:11px;font-weight:600;color:#58665c;line-height:1.45}.field small{font-size:10px;color:var(--muted);line-height:1.5}.field input,.field select,.field textarea{width:100%;min-width:0;border:1px solid #d9dfd5;background:#fcfdf9;border-radius:6px;color:var(--ink);padding:10px 11px;font-size:13px;height:40px}.field textarea{height:70px;resize:vertical}.field input[aria-invalid=true],.field select[aria-invalid=true]{border-color:#d78d8d;background:#fffafa}.field input::placeholder{color:#a0aaa0}.hint{font-size:11px;line-height:1.6;color:var(--muted);margin:12px 0 0}.hint b{color:var(--ink)}.subhead{font-size:11px;color:#7a8876;letter-spacing:.5px;margin:18px 0 12px;text-transform:uppercase}.sep{border:0;border-top:1px solid var(--line);margin:18px 0}.notice{padding:12px 14px;background:#edf3e6;border:1px solid #dce7ce;border-radius:7px;font-size:12px;line-height:1.6;color:#426038;margin:0 0 14px}.notice.warn{background:#fff6e9;color:#865923;border-color:#f0dfc7}.notice.error{background:#fff1ef;color:#973d37;border-color:#f0d4d0}.sticky{position:sticky;top:18px;display:flex;flex-direction:column;gap:14px}.quote{background:#203b30;color:#eff5ea;padding:24px;border-radius:12px;box-shadow:0 8px 25px #203b3017}.quote .eyebrow{color:#bad09d}.quote strong.big{display:block;font-size:32px;line-height:1.2;letter-spacing:-1px;margin:13px 0 8px;font-weight:600}.quote .caption{font-size:11px;color:#b9cbbb;margin:0 0 22px}.metricrow{display:flex;justify-content:space-between;gap:12px;font-size:12px;padding:10px 0;border-top:1px solid #ffffff1c}.metricrow span{color:#bacdbf}.metricrow strong{font-weight:500;white-space:nowrap}.quote .accent{color:#d5edaa}.lightmetric{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:7px 0}.lightmetric span{color:var(--muted)}.lightmetric b{font-weight:600;white-space:nowrap}.money{font-variant-numeric:tabular-nums}.empty{padding:30px 20px;text-align:center;color:var(--muted);font-size:13px;line-height:1.7}.empty .emptyicon{font-size:30px;color:#95a68c;margin-bottom:12px}.errors{margin:0;padding-left:18px;font-size:11px;line-height:1.8}.errors li+li{margin-top:3px}.breakdown{margin-top:20px}.breakdown summary{font-size:13px;font-weight:650;cursor:pointer;list-style:none;padding:3px 0}.breakdown summary:after{content:'＋';float:right}.breakdown[open] summary:after{content:'−'}.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:9px;background:#fff;margin:16px 0}.table{width:100%;border-collapse:collapse;font-size:12px;text-align:left;white-space:normal}.table th{background:#f6f8f1;font-size:10px;font-weight:600;letter-spacing:.3px;color:#6a7869;padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap}.table td{padding:13px 14px;border-bottom:1px solid #edf0e8;vertical-align:top;line-height:1.5}.table tr:last-child td{border-bottom:0}.table tr:hover td{background:#fafcf6}.table .right{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.table .nowrap{white-space:nowrap}.table td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.tag{display:inline-block;background:#edf2e7;color:#517243;border-radius:4px;padding:2px 6px;font-size:10px;white-space:nowrap}.tag.orange{background:#fff1df;color:#96642a}.tag.red{background:#fbe8e5;color:#a34238}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:20px 0}.filters input,.filters select{padding:9px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;min-width:180px;font-size:12px}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:20px;flex-wrap:wrap}.tabs button{border:0;background:transparent;color:var(--muted);padding:8px 13px;border-radius:6px;font-size:12px}.tabs button.active{background:#e5eddc;color:#314b2b;font-weight:600}.statgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:20px 0}.statbox{background:#fff;border:1px solid var(--line);padding:18px;border-radius:9px}.statbox small{display:block;color:var(--muted);font-size:11px}.statbox strong{display:block;font-size:25px;margin:7px 0;font-weight:600}.statbox span{font-size:11px;color:#65804f}.good{color:#416d32}.bad{color:#a03933}dialog{border:1px solid var(--line);border-radius:12px;padding:0;width:min(850px,calc(100vw - 30px));max-height:90vh;color:var(--ink);box-shadow:0 20px 100px #10271d40}dialog::backdrop{background:#0b201a80;backdrop-filter:blur(2px)}.dialoghead{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.dialoghead h2{margin:0}.dialogbody{padding:22px}.dialogfoot{display:flex;gap:10px;justify-content:flex-end;padding:18px 22px;background:#f8faf4;border-top:1px solid var(--line);position:sticky;bottom:0}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#203b30;color:#fff;padding:13px 20px;border-radius:8px;box-shadow:0 5px 25px #0002;font-size:13px;z-index:100;display:none;max-width:90vw}#toast.show{display:block}.loading{padding:50px;color:var(--muted)}.plan{max-width:900px}.plan p,.plan li{font-size:13px;line-height:1.8;color:#56675a}.plan .card{margin:15px 0}.version-banner{display:flex;justify-content:space-between;align-items:center;gap:10px}.total-mass{background:#f4f7ee;padding:10px 12px;margin-top:15px;border-radius:6px;font-size:12px}.row-actions{display:flex;gap:5px;flex-wrap:wrap}.formfooter{display:flex;justify-content:space-between;gap:12px;align-items:center}.formfooter small{font-size:10px;color:var(--muted)}
@media(min-width:1550px){.calc-layout{grid-template-columns:minmax(0,1fr) 390px}.quote strong.big{font-size:36px}}@media(max-width:1150px){.shell{grid-template-columns:175px minmax(0,1fr)}.sidebar{padding:24px 10px}.main{padding:24px 20px}.topbar{padding:0 20px}.calc-layout{grid-template-columns:minmax(0,1fr) 300px;gap:14px}.card{padding:18px}.quote{padding:20px}.quote strong.big{font-size:27px}.grid.three{gap:10px}}@media(max-width:900px){.shell{display:block}.sidebar{height:auto;position:static;padding:12px 18px;display:flex;flex-direction:row;align-items:center;gap:16px}.logo{font-size:24px;padding:0}.logo small,.sidefoot{display:none}.nav{flex-direction:row;overflow:auto;gap:2px;flex:1}.nav a{padding:10px;font-size:11px;white-space:nowrap}.nav .symbol{display:none}.topbar{height:45px}.calc-layout{grid-template-columns:minmax(0,1fr) 300px}.sticky{top:12px}}@media(max-width:720px){.main{padding:22px 14px 50px}.topbar{padding:0 15px;font-size:10px}.pagehead{flex-direction:column}.pagehead .actions{width:100%}.pagehead .actions .btn{flex:1}.calc-layout{display:flex;flex-direction:column}.formcol,.sticky{width:100%}.sticky{position:static}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field input,.field select{font-size:16px}.statgrid{grid-template-columns:1fr 1fr}.statbox:last-child{grid-column:1/-1}.sidebar{flex-direction:column;align-items:flex-start;gap:8px}.logo small{display:inline;margin-left:12px;font-size:9px}.nav{width:100%}.nav a{flex:1;justify-content:center;padding:9px 6px;font-size:10px}.card{padding:16px}h1{font-size:26px}.quote strong.big{font-size:34px}.table td,.table th{padding:10px}.tablewrap{max-width:100%}.dialogbody{padding:16px}.filters input{min-width:0;flex:1}.filters select{min-width:140px}.version-banner{align-items:flex-start;flex-direction:column}}


/* Compact trip workspace. Administrative forms retain their roomy layout. */
.calculator-shell{grid-template-columns:180px minmax(0,1fr)}
.calculator-shell .sidebar{padding:24px 12px;gap:22px}
.calculator-shell .nav a{padding:11px 10px;gap:9px;font-size:12px}
.calculator-shell .topbar{height:38px;padding:0 22px}
.calculator-shell .main{padding:18px 22px 36px;max-width:1600px}
.calculator-shell .pagehead{margin-bottom:14px;align-items:center;gap:12px}
.calculator-shell .pagehead .eyebrow{display:none}
.calculator-shell h1{font-size:25px;margin-bottom:4px}
.calculator-shell .pagehead .subtitle{font-size:12px}
.calculator-shell .btn{padding:9px 12px}
.calculator-shell .calc-layout{grid-template-columns:minmax(0,1fr) 300px;gap:16px}
.calculator-shell .formcol{gap:10px}
.calculator-shell .card{padding:14px 16px;border-radius:9px}
.calculator-shell .sectiontitle{margin-bottom:10px}
.calculator-shell .sectiontitle h2{font-size:14px}
.calculator-shell .num{width:21px;height:21px;margin-right:7px;font-size:10px}
.calculator-shell .grid{gap:9px 12px}
.calculator-shell .field{gap:4px}
.calculator-shell .field input,.calculator-shell .field select,.dim-input input{height:34px;padding:6px 9px;font-size:13px}
.calculator-shell .field>span{font-size:11px;line-height:1.35}
.route-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px 12px;align-items:end}
.route-grid .field:first-child{grid-column:span 2}
.cargo-grid{display:grid;grid-template-columns:2fr 1fr;gap:12px}
.return-choice{margin:0;padding:0;border:0;min-width:0}
.return-choice legend{font-size:11px;font-weight:600;color:#58665c;padding:0;margin-bottom:4px;line-height:1.35}
.segmented{display:flex;height:34px;border:1px solid #d9dfd5;border-radius:6px;overflow:hidden;background:#fcfdf9}
.segmented label{position:relative;display:flex;flex:1;align-items:center;justify-content:center;cursor:pointer;font-size:12px;gap:6px}
.segmented label+label{border-left:1px solid #d9dfd5}
.segmented input{accent-color:var(--green);width:13px;height:13px;margin:0}
.segmented label:has(input:checked){background:#e7f0dc;color:#284a2d;font-weight:650}
.segmented label:focus-within{outline:2px solid #7eaa6b;outline-offset:-2px}
.return-choice[aria-invalid=true] .segmented{border-color:#d78d8d}
.compact-note{margin:7px 0 0;font-size:10px;line-height:1.45;color:var(--muted)}
.dimensions{display:grid;grid-template-columns:90px repeat(3,minmax(0,1fr));gap:6px 10px;align-items:center;margin-top:10px}
.dim-heading{font-size:10px;color:var(--muted)}
.dim-row-label{font-size:12px;color:#58665c}
.dim-input{min-width:0}
.dim-input input{width:100%;min-width:0;border:1px solid #d9dfd5;background:#fcfdf9;border-radius:6px;color:var(--ink);font:inherit;font-size:13px}
.dim-input input[aria-invalid=true]{border-color:#d78d8d;background:#fffafa}
.width-tools{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-height:17px;margin-top:5px;font-size:10px;color:var(--muted)}
.auto-width{border:0;background:#e7f0dc;color:#31522e;font-size:10px;padding:2px 7px;border-radius:4px;cursor:pointer}
.auto-width[hidden]{display:none}
.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}
.equipment-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;align-items:end}
.calculator-shell .total-mass{padding:8px 10px;margin:0;font-size:11px;line-height:1.35;min-height:34px;display:flex;align-items:center}
.calculator-shell .grid.four{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}
.price-grid{display:grid;grid-template-columns:1.2fr .7fr 1.2fr;gap:12px;align-items:end}
.calculator-shell .private-fields{margin-top:10px}
.calculator-shell .private-fields summary{font-size:11px;color:var(--muted)}
.calculator-shell .private-fields .grid{margin-top:10px}
.calculator-shell .formfooter .btn{padding:7px 11px}
.calculator-shell .sticky{top:12px;gap:10px}
.calculator-shell .quote{padding:17px 18px;border-radius:9px}
.calculator-shell .quote strong.big{font-size:29px;margin:10px 0 6px}
.calculator-shell .quote .caption{margin-bottom:13px;line-height:1.4}
.calculator-shell .metricrow{padding:7px 0;font-size:11px}
.calculator-shell .lightmetric{padding:5px 0;font-size:11px}
.calculator-shell .breakdown{margin-top:12px}
.calculator-shell .breakdown summary{font-size:12px}
.calculator-shell .version-banner{padding:8px 12px;margin-bottom:10px}
.mobile-result-link{display:none}
@media(min-width:1550px){.calculator-shell .calc-layout{grid-template-columns:minmax(0,1fr) 340px}}
@media(max-width:1100px) and (min-width:721px){
 .calculator-shell{display:block}
 .calculator-shell .sidebar{height:48px;position:static;padding:6px 20px;flex-direction:row;align-items:center;gap:22px}
 .calculator-shell .logo{font-size:24px;padding:0}
 .calculator-shell .logo small,.calculator-shell .sidefoot{display:none}
 .calculator-shell .nav{flex-direction:row;gap:4px;overflow:auto;scrollbar-width:none}
 .calculator-shell .nav a{padding:9px 8px;white-space:nowrap;font-size:11px}
 .calculator-shell .nav .symbol{display:none}
 .calculator-shell .topbar{display:none}
 .calculator-shell .calc-layout{grid-template-columns:minmax(0,1fr) 280px;gap:12px}
 .calculator-shell .main{padding:14px 18px 32px}
}
@media(max-width:720px){
 .calculator-shell{display:block}
 .calculator-shell .sidebar{height:auto;position:static;padding:10px 14px;gap:6px}
 .calculator-shell .logo{font-size:22px}
 .calculator-shell .logo small{display:inline;font-size:8px}
 .calculator-shell .nav{scrollbar-width:none;gap:2px}
 .calculator-shell .nav a{padding:8px 6px;font-size:10px}
 .calculator-shell .topbar{display:none}
 .calculator-shell .main{padding:14px 12px 28px}
 .calculator-shell .pagehead{align-items:stretch;gap:10px;margin-bottom:12px}
 .calculator-shell h1{font-size:23px}
 .calculator-shell .pagehead .subtitle{display:none}
 .calculator-shell .calc-layout{display:flex;gap:14px}
 .calculator-shell .card{padding:12px}
 .calculator-shell .field input,.calculator-shell .field select,.dim-input input{font-size:16px;height:37px;padding:6px 7px}
 .route-grid{grid-template-columns:1fr 1fr;gap:9px 10px}
 .route-grid .field:first-child{grid-column:1/-1}
 .route-grid .return-choice{grid-column:2;grid-row:2}
 .segmented{height:37px}
 .dimensions{grid-template-columns:76px repeat(3,minmax(0,1fr));gap:6px}
 .dim-row-label{font-size:11px}
 .cargo-grid{grid-template-columns:1.5fr 1fr;gap:10px}
 .equipment-grid{grid-template-columns:1fr}
 .equipment-grid .total-mass{min-height:0;padding:6px 9px}
 .calculator-shell .grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}
 .price-grid{grid-template-columns:1.5fr 1fr;gap:9px 10px}
 .price-grid .field:last-child{grid-column:1/-1}
 .calculator-shell .private-fields .grid{grid-template-columns:1fr}
 .calculator-shell .sticky{position:static}
 .mobile-result-link{display:block;font-size:12px;color:var(--green);text-align:center;padding:8px;border:1px solid var(--line);border-radius:6px;background:#fff;text-decoration:none}
}

/* Client-first form, equipment before convoy dimensions, optional costs folded. */
.calculator-shell .pagehead>div:first-child{min-width:0;flex:1}
.calculator-shell .pagehead h1{font-size:22px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.calculator-shell .pagehead .actions{flex-shrink:0}
.calculator-shell .pagehead .subtitle{font-size:11px}
.client-route-grid{display:grid;grid-template-columns:1.05fr 1.45fr .85fr;gap:10px;align-items:end}
.route-metrics{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;align-items:end;margin-top:8px}
.calculator-shell .single-dimension-row{margin-top:8px;row-gap:4px}
.convoy-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;font-size:10px;color:var(--muted);line-height:1.4}
.convoy-meta .width-tools{margin:0;min-height:0;flex-shrink:0}
.optional-panels{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
.calculator-shell .optional-panel{padding:0;min-width:0;overflow:hidden}
.optional-panel>summary{display:flex;align-items:center;gap:7px;min-height:46px;padding:10px 12px;cursor:pointer;list-style:none}
.optional-panel>summary::-webkit-details-marker{display:none}
.optional-panel>summary:hover{background:#f7faf2}
.optional-panel>summary:focus-visible{outline:2px solid #7eaa6b;outline-offset:-2px;border-radius:8px}
.panel-title{font-size:12px;font-weight:650;flex:1;min-width:0;line-height:1.35}
.optional-panel .num{width:18px;height:18px;margin-right:5px;font-size:9px}
.panel-status{font-size:10px;color:#65775b;background:#eef3e8;padding:3px 5px;border-radius:4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.panel-chevron{font-size:15px;color:#758569;line-height:1}
.optional-panel[open] .panel-chevron{transform:rotate(180deg)}
.optional-panel[open]>summary{border-bottom:1px solid var(--line)}
.optional-panel[data-invalid=true] .panel-status{color:#973d37;background:#fff1ef}
.optional-body{padding:12px}
.calculator-shell .optional-body .grid{gap:10px}
.calculator-shell .formcol{gap:8px}
.calculator-shell .formcol>.card{padding:11px 14px}
.calculator-shell .formcol .sectiontitle{margin-bottom:8px}
.calculator-shell .formfooter{gap:8px}
@media(max-width:1150px) and (min-width:721px){.optional-panel>summary{padding:9px 10px;gap:5px}.panel-title{font-size:11px}}
@media(max-width:720px){
 .client-route-grid{grid-template-columns:1fr 1fr;gap:8px 10px}
 .client-route-grid .field:first-child{grid-column:1/-1}
 .client-route-grid .field:nth-child(2){grid-column:1/-1}
 .client-route-grid .field:last-child{grid-column:1/-1}
 .route-metrics{grid-template-columns:1fr 1fr;gap:8px 10px}
 .route-metrics .return-choice{grid-column:1/-1}
 .route-metrics .segmented{max-width:100%}
 .optional-panels{grid-template-columns:1fr;gap:8px}
 .optional-panel>summary{min-height:43px}
 .convoy-meta{flex-wrap:wrap;gap:3px}
 .convoy-meta .width-tools{margin-left:auto}
 .calculator-shell .pagehead h1{font-size:21px}
 .calculator-shell .formcol>.card{padding:11px 12px}
}

@media(max-width:720px){
 .calculator-shell #trip-form>section:first-child{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}
 .calculator-shell #trip-form>section:first-child>.sectiontitle,.calculator-shell #trip-form>section:first-child>.compact-note{grid-column:1/-1;margin:0}
 .calculator-shell .client-route-grid,.calculator-shell .route-metrics{display:contents}
 .calculator-shell .client-route-grid .field:last-child{grid-column:1;grid-row:4}
 .calculator-shell .route-metrics .return-choice{grid-column:2;grid-row:4}
}

/* Separate workspaces, compact external route tools, temporary cost audit. */
.workspace-link{display:block;color:#d5ecab;text-decoration:none;margin-bottom:16px;font-size:12px}
.account-tools{display:flex;align-items:center;gap:12px;font-size:11px;flex-shrink:0}.account-tools>a{color:var(--green)}
[hidden]{display:none!important}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at top,#e7efdc,#f4f5f0 65%)}
.auth-card{width:min(440px,100%);background:white;border:1px solid var(--line);border-radius:16px;padding:32px;box-shadow:0 16px 60px #20372d12}
.auth-logo{display:block;font-size:40px;font-weight:800;color:var(--green);text-decoration:none;letter-spacing:-2px;margin-bottom:22px}
.auth-card h1{font-size:26px}.auth-tabs{display:flex;gap:6px;background:#f1f5eb;border-radius:8px;padding:4px;margin:22px 0}.auth-tabs a{flex:1;padding:10px 6px;font-size:12px;text-align:center;text-decoration:none;border-radius:6px}.auth-tabs a.active{background:white;box-shadow:0 1px 4px #0001;font-weight:600}
#auth-form{display:flex;flex-direction:column;gap:16px}#auth-form .field input{height:44px;font-size:16px}#auth-form button{margin-top:4px;padding:13px}#auth-form .notice{margin:0}#auth-form [hidden]{display:none}
#trip-form input:disabled,#trip-form select:disabled{color:#56665c;background:#f0f3ed;opacity:1}
@media(max-width:720px){.account-tools{width:100%;justify-content:space-between}.calculator-shell .topbar:has(.account-tools){flex-wrap:wrap}.auth-card{padding:24px}}
.calculator-shell .topbar{height:54px;gap:12px}
.route-shortcuts{display:flex;gap:8px;min-width:0}
.route-shortcut{display:flex;align-items:center;gap:8px;padding:5px 10px;border:1px solid #d9e1d2;border-radius:7px;background:#fff;text-decoration:none;min-width:0}
.route-shortcut:hover{background:#edf3e6;border-color:#9db48c}
.route-shortcut b{display:block;font-size:11px;color:var(--ink);font-weight:650;line-height:1.3}
.route-shortcut small{display:block;font-size:10px;color:var(--muted);line-height:1.3}
.shortcut-symbol{color:var(--green);font-size:17px}
.calculator-shell .pagehead{margin-bottom:10px}
.calculator-shell .main{padding-top:14px}
.calculator-shell .cost-breakdown{padding:12px}
.cost-breakdown h3{margin-bottom:3px}
.cost-breakdown .compact-note{margin-top:0;margin-bottom:9px}
.cost-table{width:100%;border-collapse:collapse;font-size:11px;line-height:1.35}
.cost-table th{font-weight:400;text-align:left;padding:6px 0;color:#58665c}
.cost-table td{text-align:right;padding:6px 0 6px 8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.cost-table thead th{font-size:10px;color:var(--muted);border-bottom:1px solid var(--line)}
.cost-table thead th:last-child{text-align:right}
.cost-table tbody tr+tr>*{border-top:1px solid #eff2eb}
.cost-table .cost-detail>*{font-size:10px;color:var(--muted);padding-top:3px;padding-bottom:3px;border-top:0}
.cost-table .cost-total>*{font-weight:650;color:var(--ink);border-top:1px solid #cad7c1;padding-top:8px;padding-bottom:8px}
/* The long audit table uses the page scroll, keeping its bottom reachable. */
.calculator-shell .sticky{position:static}
.vehicle-date-filter{align-items:end}.vehicle-date-filter .field{max-width:230px;margin:0}.vehicle-missing{background:#fff8e9}.rate-link{border:0;background:transparent;color:var(--green);padding:3px 0;cursor:pointer;font:inherit;font-weight:650;text-decoration:underline;text-underline-offset:3px}.vehicle-amort-section{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.vehicle-amort-section h3{margin-bottom:8px}.import-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.import-toolbar .field{flex:1;min-width:220px}.import-columns{display:flex;gap:6px;flex-wrap:wrap}.import-changes{max-height:380px;overflow:auto}.import-changes .table{font-size:12px}
.legacy-import{background:#fffdf7;border:1px solid #e6ddc8;border-radius:9px;padding:10px 14px;margin-bottom:10px}.legacy-import-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;font-size:12px}.legacy-import-heading .tag{margin-left:6px}.legacy-paste-controls{display:flex;gap:8px;align-items:start}.legacy-paste-controls textarea{min-width:0;flex:1;resize:vertical;min-height:36px;max-height:110px;padding:8px 10px;border:1px solid #d9dfd5;border-radius:6px;background:white;font-size:12px;color:var(--ink)}.legacy-paste-controls textarea:focus{outline:2px solid #7eaa6b}.legacy-paste-controls button{min-height:36px}.legacy-import .compact-note{margin:6px 0 0}.legacy-import .notice{margin:8px 0 0}.legacy-import .errors{margin-top:7px}.card.legacy-comparison{padding:13px}.comparison-title{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:6px}.comparison-title h3{margin:0}.legacy-comparison>.compact-note{margin:5px 0 10px}.comparison-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:11px;line-height:1.4}.comparison-table th{font-weight:400;text-align:left;color:#58665c;width:40%}.comparison-table td,.comparison-table thead th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums;width:30%}.comparison-table th,.comparison-table td{padding:7px 4px;border-bottom:1px solid #edf0e8;overflow-wrap:anywhere}.comparison-table thead th{font-size:10px;font-weight:650;color:var(--ink);vertical-align:bottom}.comparison-table td:last-child{background:#f1f6eb;color:#234d3c}.comparison-table .comparison-main>*{font-weight:700;color:var(--ink)}.comparison-table .comparison-section th{font-size:10px;padding-top:13px;font-weight:650}.comparison-diff{font-size:11px;line-height:1.5;padding:8px;background:#f1f6eb;border-radius:5px;margin:10px 0}.card.comparison-recommendation{padding:13px}.comparison-recommendation summary{font-size:11px;line-height:1.5;cursor:pointer;font-weight:600}.comparison-recommendation[open] summary{margin-bottom:8px}
@media(max-width:1100px){.calculator-shell .topbar{display:flex;padding:6px 18px;height:auto;min-height:54px}.calculator-shell .topbar>.pill{display:none}}
@media(max-width:720px){.calculator-shell .topbar{padding:7px 12px}.route-shortcuts{width:100%;gap:6px}.route-shortcut{flex:1;padding:6px;gap:5px}.route-shortcut b{font-size:10px}.route-shortcut small{font-size:9px}.shortcut-symbol{display:none}.cost-table{font-size:12px}}
