/* Freight daily operations: scoped additions to the existing WorkHub layout. */
#freight-toolbar{padding:12px 14px;border-bottom:1px solid var(--line);background:var(--panel)}
.freight-work-views{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:10px}
.freight-work-views button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:9px 10px!important;text-align:left}
.freight-work-views button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.freight-work-views button b{font-size:14px;color:var(--txt)}
.freight-work-views button.on{border-color:color-mix(in srgb,var(--acc) 58%,var(--line));background:color-mix(in srgb,var(--acc) 12%,var(--surface0));color:var(--acc2)}
.freight-toolbar-search{display:grid;grid-template-columns:auto minmax(180px,1fr);align-items:center;gap:10px}
.freight-toolbar-search>label{font-size:11px;font-weight:750;white-space:nowrap}
.freight-location-picker{display:grid;grid-template-columns:110px minmax(220px,360px) 1fr;gap:10px;align-items:center;margin:12px 0}
.freight-location-picker>label{font-size:11px;font-weight:750;white-space:nowrap}
.freight-location-picker>small{font-size:10px;color:var(--dim);line-height:1.5}
@media(max-width:680px){.freight-location-picker{grid-template-columns:1fr;gap:6px}.freight-location-picker>small{margin-top:-2px}}
#freight-toolbar input,#freight-toolbar select,.freight-followup-form input,.freight-followup-form select,.freight-followup-form textarea{box-sizing:border-box;min-width:0;width:100%;border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:var(--surface0);color:var(--txt);font:inherit;font-size:12px;line-height:1.35}
#freight-toolbar input:focus,#freight-toolbar select:focus,.freight-followup-form input:focus,.freight-followup-form select:focus,.freight-followup-form textarea:focus{outline:2px solid color-mix(in srgb,var(--acc) 45%,transparent);outline-offset:1px}
.freight-filter-details{margin-top:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface0)}
.freight-filter-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;cursor:pointer;list-style:none;color:var(--txt);font-size:10px;font-weight:750}
.freight-filter-details>summary::-webkit-details-marker{display:none}.freight-filter-details>summary:after{content:'+';display:grid;place-items:center;width:20px;height:20px;margin-left:auto;border-radius:7px;background:var(--surface1);color:var(--dim);font-size:13px}.freight-filter-details[open]>summary:after{content:'−';color:var(--acc2)}
.freight-filter-details>summary small{color:var(--dim);font-size:9px;font-weight:600}.freight-filter-details[open]>summary{border-bottom:1px solid var(--line)}
.freight-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(105px,1fr));gap:9px;align-items:end;padding:10px}
.freight-filter-grid>label,.freight-followup-form>label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--dim);font-weight:600}
.freight-filter-grid>button{align-self:end;min-height:33px}
.freight-filter-note{font-size:9px;color:var(--dim);line-height:1.55;margin:8px 0 0}
#freight-results{padding:8px 16px;font-size:11px;color:var(--dim);border-bottom:1px solid var(--line)}
#freight-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--line);font-size:11px;color:var(--dim)}
#freight-pagination>div{display:flex;align-items:center;gap:8px}
#freight-pagination select{border:1px solid var(--line);border-radius:6px;padding:5px;background:var(--surface0);color:var(--txt)}
#freight-toolbar button,#freight-pagination button,.freight-followup-section button,.freight-mail-section button{border:1px solid var(--line);border-radius:8px;padding:7px 10px;background:var(--surface0);color:var(--txt);font:inherit;font-size:11px;cursor:pointer}
#freight-toolbar button:hover,#freight-pagination button:hover,.freight-followup-section button:hover,.freight-mail-section button:hover{border-color:var(--acc)}
#freight-pagination button:disabled,.freight-followup-section button:disabled,.freight-mail-section button:disabled{opacity:.5;cursor:not-allowed}
.freight-row .freight-date small,.freight-row .freight-owner small{display:block;font-size:10px;line-height:1.6}
.freight-row .freight-status{display:grid;gap:5px;border:0;padding:0;background:transparent}
.freight-row .freight-status>span{display:flex;align-items:center;gap:5px;min-width:0}
.freight-row .freight-status em{font-style:normal;font-weight:500;font-size:9px;color:var(--dim);flex:0 0 auto}
.freight-row .freight-status small{font-size:9px;line-height:1.45;color:var(--dim)}
.freight-status-pill{display:inline-flex!important;align-items:center;max-width:100%;min-height:21px;padding:3px 7px;border:1px solid var(--line);border-radius:999px;background:var(--surface0);color:var(--dim);font-size:9px!important;font-weight:750;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.freight-status-pill.success{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 38%,var(--line));background:color-mix(in srgb,var(--ok) 10%,var(--surface0))}
.freight-status-pill.info{color:var(--acc2);border-color:color-mix(in srgb,var(--acc) 42%,var(--line));background:color-mix(in srgb,var(--acc) 10%,var(--surface0))}
.freight-status-pill.warning{color:var(--warn);border-color:color-mix(in srgb,var(--warn) 42%,var(--line));background:color-mix(in srgb,var(--warn) 10%,var(--surface0))}
.freight-status-pill.danger{color:var(--hot);border-color:color-mix(in srgb,var(--hot) 42%,var(--line));background:color-mix(in srgb,var(--hot) 10%,var(--surface0))}
.freight-selection-summary{padding-bottom:12px;border-bottom:1px solid var(--line)}
.freight-selection-summary p{color:var(--dim);font-size:12px;margin:7px 0}
.freight-selection-summary>span{display:inline-flex;align-items:center;gap:5px;font-size:11px;margin:4px 12px 0 0;color:var(--dim)}
.freight-workspace>.freight-panel:last-child{position:sticky;top:82px;display:flex;flex-direction:column;max-height:calc(100vh - 96px)}
.freight-workspace:not(.has-selection){grid-template-columns:1fr}.freight-workspace:not(.has-selection)>.freight-panel:last-child{display:none}
.freight-workspace>.freight-panel:last-child>.freight-panel-head{flex:0 0 auto}
.freight-workspace>.freight-panel:last-child>.freight-detail{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.freight-detail-lead{position:sticky;top:-14px;z-index:3;display:grid;grid-template-columns:minmax(0,1fr) auto;margin:-14px -14px 0;padding:14px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--panel) 94%,transparent);backdrop-filter:blur(10px)}
.freight-detail-lead .freight-detail-state{grid-column:1/-1}.freight-detail-close{display:grid;place-items:center;width:30px;height:30px;padding:0!important;border-radius:9px!important;font-size:18px!important;line-height:1}
.freight-work-guide{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface1);font-size:11px}
.freight-work-guide span{color:var(--dim)}.freight-work-guide em{color:var(--acc2);font-style:normal;font-weight:700;white-space:nowrap}
.freight-detail-lead>div:first-child{min-width:0}.freight-detail-lead h3{overflow-wrap:anywhere}
.freight-detail-state{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.freight-detail-state>span{display:inline-flex;align-items:center;gap:5px;color:var(--dim);font-size:9px}
.freight-detail-fold,.freight-followup-section,.freight-mail-section{border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--surface0) 72%,transparent);overflow:hidden}
.freight-detail-fold>summary,.freight-followup-section>summary,.freight-mail-section>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;cursor:pointer;list-style:none;user-select:none}
.freight-detail-fold>summary::-webkit-details-marker,.freight-followup-section>summary::-webkit-details-marker,.freight-mail-section>summary::-webkit-details-marker{display:none}
.freight-detail-fold>summary:after,.freight-followup-section>summary:after,.freight-mail-section>summary:after{content:'+';grid-column:2;grid-row:1/3;display:grid;place-items:center;width:21px;height:21px;border-radius:7px;background:var(--surface1);color:var(--dim);font-weight:800}
.freight-detail-fold[open]>summary:after,.freight-followup-section[open]>summary:after,.freight-mail-section[open]>summary:after{content:'−';color:var(--acc2)}
.freight-detail-fold>summary>span,.freight-followup-section>summary>span,.freight-mail-section>summary>span{font-size:10px;font-weight:800;color:var(--txt)}
.freight-detail-fold>summary>small,.freight-followup-section>summary>small,.freight-mail-section>summary>small{grid-column:1;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--dim);font-size:8px}
.freight-detail-fold>.freight-detail-grid,.freight-detail-fold>.freight-timeline,.freight-detail-fold>p,.freight-detail-fold>h4,.freight-detail-fold>ul,.freight-detail-fold>.freight-detail-actions,.freight-detail-fold>small{margin-left:10px;margin-right:10px}
.freight-detail-fold>.freight-detail-grid{margin-top:0;margin-bottom:10px}
.freight-detail-fold>.freight-timeline{margin-bottom:10px}.freight-detail-fold>h4{margin-top:12px}
.freight-followup-section{margin-top:10px}.freight-followup-body{padding:0 10px 10px;border-top:1px solid var(--line)}
.freight-followup-body>header{display:flex;justify-content:space-between;align-items:center;gap:10px}
.freight-followup-section header p,.freight-followup-body>small{font-size:10px;color:var(--dim);line-height:1.5}
.freight-detail-refresh{margin-top:10px!important}.freight-detail-refresh button{font-size:9px;padding:7px 9px}
.freight-followup-list{list-style:none;margin:12px 0;padding:0;display:grid;gap:7px}
.freight-followup-list button{display:block;width:100%;text-align:left;padding:10px!important}
.freight-followup-list b,.freight-followup-list span{display:block}
.freight-followup-list b{font-size:12px;line-height:1.4}
.freight-followup-list span{font-size:10px;color:var(--dim);line-height:1.5;margin-top:4px}
.freight-followup-empty{font-size:11px;color:var(--dim);padding:12px;border:1px dashed var(--line);border-radius:8px}
.freight-followup-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.freight-form-wide{grid-column:1/-1}
.freight-followup-submit{display:flex;align-items:center;gap:10px}
.freight-followup-submit button{background:var(--acc)!important;color:#fff!important;border-color:var(--acc)!important;font-weight:700}
.freight-followup-submit span{font-size:11px;color:var(--dim);line-height:1.5}
.freight-workflow-preview ul{padding-left:18px;margin:10px 0;font-size:11px}
.freight-workflow-preview li span{display:block;font-size:10px;color:var(--dim);margin:3px 0 7px}
.freight-mail-section{margin-top:10px;border-color:color-mix(in srgb,var(--acc) 28%,var(--line))}
.freight-mail-body{display:grid;gap:12px;padding:10px;border-top:1px solid var(--line)}
.freight-mail-body section>h4,.freight-mail-drafts>h4{margin:0 0 7px;font-size:10px}
.freight-mail-card{padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface0)}
.freight-mail-card+ .freight-mail-card{margin-top:7px}.freight-mail-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}
.freight-mail-card header>div{min-width:0}.freight-mail-card b,.freight-mail-card small{display:block}.freight-mail-card b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.freight-mail-card small{margin-top:3px;color:var(--dim);font-size:8px}
.freight-mail-card>p{margin:8px 0;color:var(--dim);font-size:9px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.freight-mail-score{flex:0 0 auto;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:800;background:color-mix(in srgb,var(--warn) 12%,var(--surface1));color:var(--warn)}
.freight-mail-score.high,.freight-mail-score.linked{background:color-mix(in srgb,var(--ok) 12%,var(--surface1));color:var(--ok)}
.freight-mail-tags{display:flex;gap:5px;flex-wrap:wrap}.freight-mail-tag{padding:3px 6px;border-radius:6px;background:var(--surface1);color:var(--dim);font-size:7px}.freight-mail-tag.identifier{color:var(--acc2)}.freight-mail-tag.party{color:var(--ok)}.freight-mail-tag.route{color:var(--warn)}
.freight-mail-card>footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px}.freight-mail-card>footer>span{color:var(--dim);font-size:8px}
.freight-mail-actions{justify-content:flex-start!important;flex-wrap:wrap}.freight-mail-actions button:last-child{border-color:color-mix(in srgb,var(--acc) 45%,var(--line));color:var(--acc2)}
.freight-mail-files{display:block!important;-webkit-line-clamp:unset!important;overflow-wrap:anywhere}
.freight-mail-empty,.freight-mail-notice,.freight-mail-policy{margin:0;padding:10px;border:1px dashed var(--line);border-radius:8px;color:var(--dim);font-size:9px;line-height:1.55}.freight-mail-notice{border-style:solid}.freight-mail-policy{padding:0;border:0;font-size:8px}
.freight-mail-drafts{display:grid;gap:7px}.freight-mail-drafts article{padding:10px;border:1px solid color-mix(in srgb,var(--acc) 25%,var(--line));border-radius:9px;background:color-mix(in srgb,var(--acc) 5%,var(--surface0))}.freight-mail-drafts header{display:flex;justify-content:space-between;gap:8px}.freight-mail-drafts header span{color:var(--warn);font-size:8px}.freight-mail-drafts small{display:block;margin:4px 0;color:var(--dim);font-size:8px}.freight-mail-drafts pre{margin:8px 0 0;white-space:pre-wrap;color:var(--txt);font:inherit;font-size:9px;line-height:1.55}
@media(max-width:1250px){.freight-filter-grid{grid-template-columns:repeat(3,minmax(100px,1fr))}}
@media(max-width:980px){.freight-workspace>.freight-panel:last-child{position:static;max-height:none}.freight-workspace>.freight-panel:last-child>.freight-detail{overflow:visible}.freight-detail-lead{position:static}}
@media(max-width:680px){.freight-work-views{grid-template-columns:repeat(2,minmax(0,1fr))}.freight-work-guide{grid-template-columns:1fr}.freight-work-guide em{white-space:normal}.freight-filter-grid{grid-template-columns:repeat(2,minmax(100px,1fr))}.freight-toolbar-search{grid-template-columns:1fr}.freight-toolbar-search label{display:block}#freight-pagination{align-items:flex-start;flex-direction:column}.freight-followup-form{grid-template-columns:1fr}.freight-followup-body>header{align-items:flex-start}}

/* Freight commercial desk: WorkHub mail/task/case aggregation, not provider data. */
.freight-module-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--surface1)}
.freight-module-tabs button{min-width:0;padding:9px 10px;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--dim);font:inherit;font-size:10px;font-weight:750;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.freight-module-tabs button:hover{background:var(--surface0);color:var(--txt)}
.freight-module-tabs button.on{background:color-mix(in srgb,var(--acc) 13%,var(--surface0));color:var(--acc2);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--acc) 34%,var(--line))}
.freight-module-tabs small{margin-left:4px;color:var(--dim);font-size:7px;font-weight:600}
.freight-module-pane[hidden]{display:none!important}
.freight-commercial-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:17px 18px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--acc) 8%,var(--panel)),var(--panel))}
.freight-commercial-hero h3{margin:4px 0 5px;font-size:20px}.freight-commercial-hero p{max-width:780px;margin:0;color:var(--dim);font-size:11px;line-height:1.65}
.freight-commercial-hero button{min-width:max-content}
.freight-provider-boundary{margin:9px 0;border:1px solid color-mix(in srgb,var(--warn) 30%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--warn) 5%,var(--surface0));font-size:10px;line-height:1.55}
.freight-provider-boundary:not(details){display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;padding:10px 12px}.freight-provider-boundary b{color:var(--warn)}.freight-provider-boundary span{color:var(--dim)}
details.freight-provider-boundary>summary{display:flex;align-items:center;gap:9px;padding:9px 11px;cursor:pointer;list-style:none}details.freight-provider-boundary>summary::-webkit-details-marker{display:none}details.freight-provider-boundary>summary:after{content:'查看';margin-left:auto;color:var(--acc2);font-size:9px;font-weight:750}details.freight-provider-boundary[open]>summary:after{content:'收起'}details.freight-provider-boundary>p{margin:0;padding:0 11px 10px;color:var(--dim);font-size:10px;line-height:1.6}
.freight-role-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.freight-role-flow article{position:relative;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface1)}
.freight-role-flow article:not(:last-child):after{content:'›';position:absolute;right:-8px;top:50%;z-index:2;display:grid;place-items:center;width:15px;height:20px;margin-top:-10px;border-radius:7px;background:var(--panel);color:var(--dim);font-size:15px}
.freight-role-flow article.active{border-color:color-mix(in srgb,var(--acc) 38%,var(--line));background:color-mix(in srgb,var(--acc) 7%,var(--surface1))}
.freight-role-flow span,.freight-role-flow b{display:block}.freight-role-flow span{color:var(--acc2);font-size:9px;font-weight:800;letter-spacing:.7px}.freight-role-flow b{margin-top:4px;font-size:10px;line-height:1.45}
.freight-commercial-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.freight-commercial-kpis article{padding:12px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface1)}
.freight-commercial-kpis span,.freight-commercial-kpis small,.freight-commercial-kpis b{display:block}.freight-commercial-kpis span{color:var(--dim);font-size:9px}.freight-commercial-kpis b{margin:3px 0;font-size:21px}.freight-commercial-kpis small{color:var(--dim);font-size:9px;line-height:1.4}
.freight-commercial-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:12px 0;padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--surface1)}
.freight-commercial-filters{display:flex;gap:5px;flex-wrap:wrap}.freight-commercial-filters button{display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid transparent;border-radius:999px;background:var(--surface0);box-shadow:none;color:var(--dim);font-size:9px}.freight-commercial-filters button b{color:var(--txt)}
.freight-commercial-filters button.on{border-color:color-mix(in srgb,var(--acc) 38%,var(--line));background:color-mix(in srgb,var(--acc) 9%,var(--surface0));color:var(--acc2)}
.freight-commercial-toolbar>label{display:flex;flex-direction:column;gap:5px;width:min(360px,42%);color:var(--dim);font-size:9px;font-weight:700}
.freight-commercial-toolbar input{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface0);color:var(--txt);font:inherit;font-size:10px}
.freight-commercial-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
.freight-commercial-panel{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
.freight-commercial-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:13px 14px;border-bottom:1px solid var(--line);background:var(--surface1)}
.freight-commercial-panel>header>div{display:flex;align-items:center;gap:8px}.freight-commercial-panel h4{margin:0;font-size:13px}.freight-commercial-panel>header small{color:var(--dim);font-size:9px}
.freight-role-dot{width:8px;height:8px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 4px color-mix(in srgb,var(--acc) 12%,transparent)}.freight-role-dot.pricing{background:var(--warn);box-shadow:0 0 0 4px color-mix(in srgb,var(--warn) 12%,transparent)}
.freight-commercial-list{display:grid;gap:6px;padding:8px}
.freight-commercial-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;padding:10px 11px;border:1px solid transparent;border-radius:10px;background:var(--surface0);box-shadow:none;color:var(--txt);text-align:left;cursor:pointer}
.freight-commercial-row:hover{border-color:color-mix(in srgb,var(--acc) 48%,var(--line));transform:translateY(-1px)}
.freight-commercial-row-main{min-width:0}.freight-commercial-row-main b,.freight-commercial-row-main small,.freight-commercial-row-main em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.freight-commercial-row-main b{font-size:11px}.freight-commercial-row-main small{margin-top:3px;color:var(--dim);font-size:9px}.freight-commercial-row-main em{margin-top:4px;color:var(--dim);font-size:9px;font-style:normal}
.freight-commercial-row.compact{padding-top:9px;padding-bottom:9px}.freight-commercial-subhead{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 2px}.freight-commercial-subhead b{font-size:10px}.freight-commercial-subhead span{color:var(--dim);font-size:8px}
.freight-commercial-panel>footer{display:flex;justify-content:flex-end;padding:9px 11px;border-top:1px solid var(--line);background:var(--surface1)}.freight-commercial-panel>footer button{padding:6px 9px;border:0;background:transparent;box-shadow:none;color:var(--acc2);font-size:9px}
.freight-commercial-empty{padding:18px 14px;border:1px dashed var(--line);border-radius:9px;text-align:center}.freight-commercial-empty b,.freight-commercial-empty span{display:block}.freight-commercial-empty b{font-size:11px}.freight-commercial-empty span{margin-top:5px;color:var(--dim);font-size:9px;line-height:1.5}

/* Sales intake: evidence-backed mail to customer/task/quotation preparation. */
.freight-intake{margin:6px 0 10px;overflow:hidden;border:1px solid color-mix(in srgb,var(--acc) 30%,var(--line));border-radius:13px;background:var(--panel)}
.freight-intake>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:12px 14px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,color-mix(in srgb,var(--acc) 8%,var(--surface1)),var(--surface1))}
.freight-intake>header h4{margin:3px 0 2px;font-size:15px}.freight-intake>header p{max-width:760px;margin:0;overflow:hidden;color:var(--dim);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.freight-completeness{display:grid;min-width:76px;padding:6px 9px;border:1px solid color-mix(in srgb,var(--warn) 32%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--warn) 7%,var(--surface0));color:var(--warn);font-size:10px;text-align:center}.freight-completeness b{font-size:18px}.freight-completeness.ready{border-color:color-mix(in srgb,var(--ok) 35%,var(--line));background:color-mix(in srgb,var(--ok) 7%,var(--surface0));color:var(--ok)}
.freight-intake-steps,.freight-operating-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:10px 12px}
.freight-intake-steps article,.freight-operating-steps article{display:grid;grid-template-columns:25px minmax(0,1fr);gap:7px;align-items:start;min-width:0;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--surface0)}
.freight-intake-steps i,.freight-operating-steps i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--surface2);color:var(--dim);font-size:10px;font-style:normal;font-weight:800}.freight-intake-steps b,.freight-intake-steps small,.freight-operating-steps b,.freight-operating-steps small{display:block}.freight-intake-steps b,.freight-operating-steps b{font-size:11px}.freight-intake-steps small,.freight-operating-steps small{margin-top:2px;color:var(--dim);font-size:9px;line-height:1.35}
.freight-intake-steps article.done{border-color:color-mix(in srgb,var(--ok) 30%,var(--line))}.freight-intake-steps article.done i{background:color-mix(in srgb,var(--ok) 13%,var(--surface0));color:var(--ok)}.freight-intake-steps article.action{border-color:color-mix(in srgb,var(--warn) 32%,var(--line))}.freight-intake-steps article.action i{background:color-mix(in srgb,var(--warn) 12%,var(--surface0));color:var(--warn)}
.freight-intake-body{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:10px;padding:0 12px 12px}.freight-intake-fields{overflow:hidden;border:1px solid var(--line);border-radius:10px}.freight-intake-fields>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-bottom:1px solid var(--line);background:var(--surface1)}.freight-intake-fields>header b{font-size:11px}.freight-intake-fields>header small{color:var(--dim);font-size:9px}.freight-intake-fields>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line)}.freight-intake-fields article{min-width:0;padding:8px 9px;background:var(--surface0)}.freight-intake-fields span,.freight-intake-fields b,.freight-intake-fields small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.freight-intake-fields span{color:var(--dim);font-size:9px}.freight-intake-fields b{margin:3px 0;font-size:11px}.freight-intake-fields small{color:var(--dim);font-size:8px}.freight-intake-fields article.missing b{color:var(--hot)}
.freight-intake-actions{display:grid;align-content:start;gap:6px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface1)}.freight-intake-actions>b{margin-bottom:2px;font-size:11px}.freight-intake-actions button{width:100%;padding:7px 9px;font-size:10px;text-align:left}.freight-intake-actions button:disabled{cursor:not-allowed;opacity:.55}.freight-intake-actions small{color:var(--dim);font-size:9px;line-height:1.45}
.freight-commercial-row.selected{border-color:color-mix(in srgb,var(--acc) 55%,var(--line));background:color-mix(in srgb,var(--acc) 7%,var(--surface0));box-shadow:inset 3px 0 0 var(--acc)}

/* Shared role operating model keeps sales, market and operations on one business chain. */
.freight-role-operating-model{margin:6px 0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.freight-role-operating-model>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid var(--line);background:var(--surface1)}.freight-role-operating-model>header>div{display:flex;align-items:center;gap:9px}.freight-role-operating-model>header b,.freight-role-operating-model>header small{display:block}.freight-role-operating-model>header b{font-size:12px}.freight-role-operating-model>header small{margin-top:2px;color:var(--dim);font-size:10px}.freight-role-operating-model>header em{color:var(--acc2);font-size:10px;font-style:normal;font-weight:750}.freight-role-dot.operations{background:var(--ok);box-shadow:0 0 0 4px color-mix(in srgb,var(--ok) 12%,transparent)}
.freight-role-operating-model>footer{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;border-top:1px solid var(--line);color:var(--dim);font-size:10px;line-height:1.45}.freight-role-operating-model>footer b{color:var(--txt)}

/* Market rate desk: provider-backed validity monitoring with WorkHub follow-up actions. */
.freight-pricing-hero{background:linear-gradient(135deg,color-mix(in srgb,var(--warn) 8%,var(--panel)),var(--panel))}
.freight-rate-schedule{margin:8px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface1);overflow:hidden}
.freight-rate-schedule>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--line)}
.freight-rate-schedule>header>div{display:flex;align-items:center;gap:9px}.freight-rate-schedule b,.freight-rate-schedule small{display:block}.freight-rate-schedule small{margin-top:2px;color:var(--dim);font-size:10px}.freight-rate-schedule em{padding:4px 8px;border-radius:999px;background:color-mix(in srgb,var(--warn) 12%,var(--surface0));color:var(--warn);font-size:10px;font-style:normal;font-weight:750}
.freight-rate-schedule>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:10px 12px}.freight-rate-schedule>div span{padding:8px 9px;border:1px solid var(--line);border-radius:9px;color:var(--dim);font-size:11px}.freight-rate-schedule>div b{color:var(--txt);font-size:11px}.freight-rate-schedule>p{margin:0;padding:0 12px 10px;color:var(--dim);font-size:10px;line-height:1.55}
.freight-rate-board{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.freight-rate-board>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);background:var(--surface1)}.freight-rate-board h4{margin:0;font-size:14px}.freight-rate-board header small{display:block;margin-top:3px;color:var(--dim);font-size:10px}
.freight-rate-columns,.freight-rate-row{display:grid;grid-template-columns:minmax(190px,1.4fr) minmax(180px,1.15fr) minmax(120px,.75fr) 100px 116px;gap:10px;align-items:center}.freight-rate-columns{padding:8px 12px;border-bottom:1px solid var(--line);color:var(--dim);font-size:10px}.freight-rate-list{display:grid}.freight-rate-row{padding:10px 12px;border-bottom:1px solid var(--line)}.freight-rate-row:last-child{border-bottom:0}.freight-rate-row:hover{background:var(--surface1)}
.freight-rate-main,.freight-rate-validity,.freight-rate-counts{min-width:0}.freight-rate-main b,.freight-rate-main span,.freight-rate-validity b,.freight-rate-validity small,.freight-rate-counts b,.freight-rate-counts small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.freight-rate-main b,.freight-rate-validity b,.freight-rate-counts b{font-size:12px}.freight-rate-main span,.freight-rate-validity small,.freight-rate-counts small{margin-top:3px;color:var(--dim);font-size:10px}.freight-rate-row>button{padding:7px 9px;border:1px solid color-mix(in srgb,var(--acc) 35%,var(--line));border-radius:8px;background:var(--surface0);color:var(--acc2);font-size:10px;cursor:pointer}.freight-rate-row>button:hover{border-color:var(--acc)}
.freight-rate-loading{display:grid;place-items:center;gap:8px;min-height:230px;padding:30px;border:1px solid var(--line);border-radius:13px;background:var(--panel);text-align:center}.freight-rate-loading b{font-size:13px}.freight-rate-loading small{color:var(--dim);font-size:11px}
@media(max-width:980px){.freight-role-flow,.freight-commercial-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.freight-role-flow article:nth-child(2):after{display:none}.freight-commercial-grid{grid-template-columns:1fr}}
@media(max-width:980px){.freight-intake-steps,.freight-operating-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.freight-intake-body{grid-template-columns:1fr}.freight-intake-fields>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.freight-rate-columns{display:none}.freight-rate-row{grid-template-columns:minmax(0,1fr) auto}.freight-rate-validity,.freight-rate-counts{grid-column:1}.freight-rate-row>.freight-status-pill{grid-column:2;grid-row:1}.freight-rate-row>button{grid-column:2;grid-row:2/4}.freight-rate-schedule>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.freight-module-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.freight-commercial-hero,.freight-commercial-toolbar{align-items:stretch;flex-direction:column}.freight-commercial-hero button{width:100%}.freight-commercial-toolbar>label{width:100%}.freight-role-flow,.freight-commercial-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.freight-role-flow article:after{display:none}.freight-provider-boundary:not(details){grid-template-columns:1fr}.freight-commercial-row{align-items:start}.freight-commercial-row>.freight-status-pill{grid-column:1/-1;justify-self:start}.freight-rate-row{grid-template-columns:1fr}.freight-rate-validity,.freight-rate-counts,.freight-rate-row>.freight-status-pill,.freight-rate-row>button{grid-column:1;grid-row:auto}.freight-rate-row>.freight-status-pill{justify-self:start}.freight-rate-schedule>div{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.freight-intake>header,.freight-intake-fields>header,.freight-role-operating-model>header,.freight-role-operating-model>footer{align-items:flex-start;flex-direction:column}.freight-intake-steps,.freight-operating-steps,.freight-intake-fields>div{grid-template-columns:1fr}.freight-completeness{width:100%;box-sizing:border-box}}

/* Compact freight layout for the in-app browser and split-screen work. */
@media(max-width:760px){
 #freightview .freight-section-head{display:grid;align-items:start;gap:10px;margin:6px 0 10px;padding:14px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--acc) 7%,var(--panel)),var(--panel))}
 #freightview .freight-section-head h2{font-size:20px;line-height:1.2}#freightview .freight-section-head p{font-size:11px;line-height:1.55}
 .freight-head-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;justify-content:stretch}.freight-head-actions>*{min-width:0;justify-content:center;text-align:center}
 .freight-scope{display:grid;gap:8px;padding:11px 12px}.freight-scope-main{align-items:flex-start}.freight-scope-icon{width:34px;height:34px}.freight-scope small{font-size:10px;line-height:1.45}.freight-scope-meta{justify-content:flex-start}.freight-technical-pill{display:none!important}
 .freight-module-tabs{margin:9px 0}.freight-module-tabs button{padding:9px 6px;font-size:9px}.freight-module-tabs small{display:none}
 .freight-summary{gap:7px}.freight-summary article{grid-template-columns:30px minmax(0,1fr);gap:8px;padding:10px}.freight-summary i{width:29px;height:29px}.freight-summary span,.freight-summary small{font-size:9px}.freight-summary b{font-size:17px}
 .freight-ops-focus{gap:7px}.freight-focus-panel>header{padding:10px;border-bottom:0}.freight-focus-panel>header>span{display:none}.freight-focus-empty{padding:0 10px 10px}.freight-focus-empty span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .freight-workspace{gap:8px}.freight-panel{border-radius:12px}.freight-panel-head{padding:11px 12px}.freight-panel-head h3{font-size:13px}
 .freight-commercial-hero{padding:14px}.freight-commercial-hero h3{font-size:18px}.freight-commercial-hero p{font-size:10px}.freight-commercial-toolbar{gap:9px;padding:10px}.freight-commercial-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}.freight-commercial-filters button{flex:0 0 auto}
 .freight-commercial-panel>header{padding:11px 12px}.freight-commercial-subhead span{max-width:58%;text-align:right}.freight-filter-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
}

/* Readability and density pass: keep the desk compact without using sub-10px text. */
#freightview .freight-shell{gap:8px}
#freightview .freight-section-head{align-items:center;margin:6px 2px 2px}
#freightview .freight-section-head h2{font-size:19px;line-height:1.3}
#freightview .freight-section-head p{display:none}
#freightview .freight-head-actions{gap:7px}
#freightview .freight-scope{padding:8px 11px;border-radius:11px;box-shadow:none}
#freightview .freight-scope-icon{width:31px;height:31px;border-radius:9px;font-size:15px}
#freightview .freight-scope small{display:none}
#freightview .freight-scope-meta span{font-size:10px}
.freight-module-tabs{margin:0 0 2px;padding:4px;border-radius:10px}
.freight-module-tabs button{min-height:36px;padding:8px 10px;font-size:12px}
.freight-module-tabs small{font-size:10px}
.freight-module-tabs button:disabled{cursor:not-allowed;opacity:.62;background:transparent;color:var(--dim)}
.freight-handoff{margin:6px 0;border:1px solid var(--line);border-radius:10px;background:var(--surface1);overflow:hidden}
.freight-handoff>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;cursor:pointer;list-style:none}
.freight-handoff>summary::-webkit-details-marker{display:none}
.freight-handoff>summary span,.freight-handoff>summary b,.freight-handoff>summary small{display:block}
.freight-handoff>summary b{font-size:12px}.freight-handoff>summary small{margin-top:2px;color:var(--dim);font-size:11px}
.freight-handoff>summary em{flex:none;color:var(--acc2);font-size:11px;font-style:normal;font-weight:700}
.freight-handoff[open]>summary{border-bottom:1px solid var(--line)}
.freight-handoff .freight-role-flow{margin:0;padding:9px}
.freight-commercial-hero{padding:10px 14px}.freight-commercial-hero h3{font-size:18px}.freight-commercial-hero p{font-size:12px;line-height:1.45}
.freight-provider-boundary{margin:6px 0;font-size:11px}.freight-provider-boundary:not(details){padding:7px 10px}
details.freight-provider-boundary>summary:after,details.freight-provider-boundary>p{font-size:11px}
.freight-role-flow span{font-size:11px}.freight-role-flow b{font-size:12px}
.freight-commercial-kpis{gap:6px;margin:6px 0}.freight-commercial-kpis article{padding:8px 11px}
.freight-commercial-kpis span,.freight-commercial-kpis small{font-size:11px}.freight-commercial-kpis b{font-size:20px}
.freight-commercial-toolbar{margin:6px 0;padding:8px}.freight-commercial-filters button,.freight-commercial-toolbar>label{font-size:11px}.freight-commercial-toolbar input{font-size:12px}
.freight-commercial-panel>header{padding:11px 13px}.freight-commercial-panel h4{font-size:14px}.freight-commercial-panel>header small{font-size:11px}
.freight-commercial-row-main b{font-size:12px}.freight-commercial-row-main small,.freight-commercial-row-main em{font-size:11px}
.freight-commercial-subhead b{font-size:12px}.freight-commercial-subhead span{font-size:10px}
.freight-commercial-panel>footer button{font-size:11px}.freight-commercial-empty b{font-size:12px}.freight-commercial-empty span{font-size:11px}
.freight-summary span,.freight-summary small{font-size:11px}.freight-focus-panel h3{font-size:13px}.freight-focus-panel p,.freight-focus-empty span{font-size:11px}.freight-focus-empty b{font-size:12px}
.freight-connection-details>summary{font-size:11px}.freight-error{padding:0;border:0;background:transparent;color:var(--txt)}
.freight-error-state{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--danger-line);border-radius:12px;background:var(--danger-bg)}
.freight-error-state>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:color-mix(in srgb,var(--hot) 12%,var(--surface0));color:var(--hot);font-size:18px;font-weight:800}
.freight-error-state b{display:block;font-size:13px}.freight-error-state p{margin:2px 0;color:var(--hot);font-size:12px}.freight-error-state small{display:block;color:var(--dim);font-size:11px;line-height:1.45}
.freight-error-state button{padding:8px 11px;white-space:nowrap}
#freight-operations-pane[data-connection-state="failed"]>:not(#freight-error):not(.freight-role-operating-model):not(.freight-workspace){display:none!important}
#freight-operations-pane[data-connection-state="failed"]>.freight-role-operating-model{display:block!important}
.freight-panel-head h3{font-size:14px}.freight-panel-head span,#freight-results,#freight-pagination{font-size:11px}
.freight-columns{font-size:10px}.freight-row b{font-size:12px}.freight-row small,.freight-route,.freight-date,.freight-owner,.freight-next{font-size:11px}
.freight-row .freight-status em,.freight-row .freight-status small,.freight-status-pill{font-size:10px!important}
.freight-detail-sub,.freight-detail-grid span,.freight-detail-note{font-size:11px}.freight-detail-grid b{font-size:12px}
.freight-detail-fold>summary>span,.freight-followup-section>summary>span,.freight-mail-section>summary>span{font-size:12px}
.freight-detail-fold>summary>small,.freight-followup-section>summary>small,.freight-mail-section>summary>small{font-size:10px}
.freight-followup-section header p,.freight-followup-body>small,.freight-workflow-preview li span,.freight-mail-card small,.freight-mail-card>p,.freight-mail-empty,.freight-mail-notice{font-size:11px}
.freight-mail-body section>h4,.freight-mail-drafts>h4,.freight-mail-card b{font-size:12px}.freight-mail-tag,.freight-mail-score,.freight-mail-card>footer>span{font-size:10px}
@media(max-width:680px){.freight-error-state{grid-template-columns:32px minmax(0,1fr)}.freight-error-state button{grid-column:1/-1;width:100%}}

/* Unified TaskChain-backed freight case detail. */
body.freight-case-open{overflow:hidden}
.freight-case-backdrop{position:fixed;inset:0;z-index:620;background:rgba(15,25,38,.36);backdrop-filter:blur(3px)}
.freight-case-backdrop[hidden]{display:none}.freight-case-drawer{position:absolute;inset:0 0 0 auto;width:min(820px,94vw);overflow:hidden;border-left:1px solid var(--line);background:var(--panel);box-shadow:-24px 0 64px rgba(18,32,49,.2)}
.freight-case-content{height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-bottom:20px}
.freight-case-head{position:sticky;top:0;z-index:4;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 16px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--panel) 94%,transparent);backdrop-filter:blur(14px)}
.freight-case-head h2{margin:5px 0 2px;font-size:24px;line-height:1.25}.freight-case-head p{margin:0;color:var(--dim);font-size:11px}.freight-case-head>button,.freight-case-error>button{display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border-radius:11px;background:var(--surface1);color:var(--dim);font-size:22px}
.freight-case-status{display:flex;align-items:center;gap:9px;padding:12px 24px;border-bottom:1px solid var(--line);background:var(--surface0);font-size:11px}.freight-case-status small{margin-left:auto;color:var(--dim)}
.freight-case-pill{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:3px 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface1);color:var(--dim);font-size:10px;font-style:normal;font-weight:750;white-space:nowrap}.freight-case-pill.info{border-color:color-mix(in srgb,var(--acc) 34%,var(--line));color:var(--acc2)}.freight-case-pill.success{border-color:color-mix(in srgb,var(--ok) 38%,var(--line));color:var(--ok)}.freight-case-pill.warning{border-color:color-mix(in srgb,var(--warn) 42%,var(--line));color:var(--warn)}.freight-case-pill.danger{border-color:color-mix(in srgb,var(--hot) 42%,var(--line));color:var(--hot)}
.freight-case-authority{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;margin:14px 24px 0;padding:12px 14px;border:1px solid color-mix(in srgb,var(--acc) 32%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--acc) 7%,var(--surface0))}.freight-case-authority b{color:var(--acc2);font-size:12px}.freight-case-authority span{color:var(--dim);font-size:11px;line-height:1.55}
.freight-case-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 24px}.freight-case-overview article{min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface1)}.freight-case-overview span,.freight-case-overview b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.freight-case-overview span{color:var(--dim);font-size:10px}.freight-case-overview b{margin-top:4px;font-size:12px}
.freight-case-section{margin:12px 24px;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface0)}.freight-case-section>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border-bottom:1px solid var(--line);background:var(--surface1)}.freight-case-section h3{margin:0;font-size:14px}.freight-case-section header p{margin:3px 0 0;color:var(--dim);font-size:10px}.freight-case-section>header>span{color:var(--dim);font-size:11px}.freight-case-section>header button{padding:7px 10px;color:var(--acc2);font-size:10px}
.freight-case-collaborators{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;padding:12px 15px;border-bottom:1px solid var(--line);font-size:11px}.freight-case-collaborators>div{display:flex;flex-wrap:wrap;gap:6px}.freight-case-collaborators span{padding:4px 8px;border-radius:999px;background:var(--surface2);color:var(--dim)}
.freight-case-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px;margin:0;padding:13px 15px;list-style:none}.freight-case-steps li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:8px;align-items:start;padding:9px;border:1px solid var(--line);border-radius:10px;background:var(--surface1)}.freight-case-steps li>i{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:var(--surface2);color:var(--dim);font-size:10px;font-style:normal;font-weight:800}.freight-case-steps b,.freight-case-steps small{display:block}.freight-case-steps b{font-size:11px}.freight-case-steps small{margin-top:3px;color:var(--dim);font-size:9px}.freight-case-steps li.linked{border-color:color-mix(in srgb,var(--ok) 30%,var(--line))}.freight-case-steps li.linked>i{color:var(--ok)}.freight-case-steps li.empty{display:block;color:var(--dim);font-size:11px}
.freight-case-task-list{display:grid;gap:8px;padding:12px}.freight-case-task{overflow:hidden;border:1px solid var(--line);border-radius:11px;background:var(--surface1)}.freight-case-task>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:11px 12px}.freight-case-task>header b,.freight-case-task>header small{display:block}.freight-case-task>header b{font-size:12px}.freight-case-task>header small{margin-top:3px;color:var(--dim);font-size:10px}.freight-case-task>p{margin:0;padding:0 12px 11px;color:var(--dim);font-size:10px;line-height:1.5}.freight-case-unbound{display:block;padding:9px 12px;border-top:1px solid var(--line);color:var(--dim);font-size:10px}
.freight-case-bindings{display:grid;border-top:1px solid var(--line)}.freight-case-bindings>div{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--line)}.freight-case-bindings>div:last-child{border-bottom:0}.freight-case-bindings span b,.freight-case-bindings span small{display:block}.freight-case-bindings span b{font-size:10px}.freight-case-bindings span small{margin-top:2px;color:var(--dim);font-size:9px;line-height:1.4}.freight-case-bindings .provider{padding:7px 9px;border-radius:8px;background:var(--surface0)}.freight-case-bindings>div>i{color:var(--dim);font-style:normal;text-align:center}
.freight-case-records{display:grid;gap:7px;padding:12px}.freight-case-records article{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface1)}.freight-case-record-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;background:color-mix(in srgb,var(--acc) 10%,var(--surface0));color:var(--acc2)}.freight-case-records b,.freight-case-records small,.freight-case-records em{display:block}.freight-case-records b{font-size:11px}.freight-case-records small{margin-top:3px;color:var(--dim);font-size:10px}.freight-case-records em{margin-top:4px;color:var(--dim);font-size:9px;font-style:normal}.freight-case-empty{padding:22px;color:var(--dim);font-size:11px;text-align:center}
.freight-case-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 24px 0;padding:12px 2px;color:var(--dim);font-size:10px}.freight-case-footer b{color:var(--ok)}
.freight-case-loading,.freight-case-error{display:grid;place-items:center;min-height:100%;padding:36px;text-align:center}.freight-case-loading i{width:32px;height:32px;border:3px solid var(--line);border-top-color:var(--acc);border-radius:50%;animation:freight-case-spin .8s linear infinite}.freight-case-loading b{margin-top:16px;font-size:15px}.freight-case-loading span,.freight-case-error p{margin-top:6px;color:var(--dim);font-size:11px}.freight-case-error{position:relative}.freight-case-error>button{position:absolute;right:18px;top:18px}.freight-case-error>i{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--danger-bg);color:var(--hot);font-size:22px;font-style:normal;font-weight:900}.freight-case-error h3{margin:14px 0 0}.freight-case-error>div{display:flex;gap:8px;margin-top:16px}.freight-case-error>div button{padding:8px 12px}
@keyframes freight-case-spin{to{transform:rotate(360deg)}}
@media(max-width:720px){.freight-case-drawer{width:100vw}.freight-case-head{padding:18px 17px 14px}.freight-case-head h2{font-size:20px}.freight-case-status{flex-wrap:wrap;padding:10px 17px}.freight-case-status small{width:100%;margin-left:0}.freight-case-authority,.freight-case-overview,.freight-case-section,.freight-case-footer{margin-left:17px;margin-right:17px}.freight-case-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.freight-case-authority{grid-template-columns:1fr}.freight-case-section>header{align-items:flex-start}.freight-case-bindings>div{grid-template-columns:1fr}.freight-case-bindings>div>i{display:none}.freight-case-pill{justify-self:start}}

.freight-case-provider-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;margin:12px 12px 0;padding:9px 11px;border:1px solid color-mix(in srgb,var(--warn) 42%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--warn) 7%,var(--surface1));font-size:10px}.freight-case-provider-note b{color:var(--warn)}.freight-case-provider-note span{color:var(--dim);line-height:1.5}

/* Sales ↔ market handoff board. Facts come from Core Freight Case / TaskChain only. */
.freight-handoff-board{margin:0 0 9px;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.freight-handoff-board>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,color-mix(in srgb,var(--acc) 7%,var(--surface1)),var(--surface1))}.freight-handoff-board.market>header{background:linear-gradient(135deg,color-mix(in srgb,var(--warn) 8%,var(--surface1)),var(--surface1))}
.freight-handoff-board>header h3{margin:3px 0 2px;font-size:17px}.freight-handoff-board>header p{margin:0;color:var(--dim);font-size:10px;line-height:1.45}.freight-handoff-board>header button{padding:7px 10px;color:var(--acc2);font-size:10px}
.freight-handoff-board>nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:8px;border-bottom:1px solid var(--line);background:var(--surface0)}.freight-handoff-board>nav button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:8px 10px;border:1px solid transparent;border-radius:9px;background:var(--surface1);box-shadow:none;color:var(--dim);font-size:10px;text-align:left}.freight-handoff-board>nav button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.freight-handoff-board>nav button b{display:grid;place-items:center;min-width:22px;height:22px;border-radius:999px;background:var(--surface2);color:var(--txt)}.freight-handoff-board>nav button.on{border-color:color-mix(in srgb,var(--acc) 40%,var(--line));background:color-mix(in srgb,var(--acc) 8%,var(--surface1));color:var(--acc2)}
.freight-handoff-list{display:grid;gap:7px;padding:9px}.freight-handoff-card{padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface1)}.freight-handoff-card>header,.freight-handoff-card>footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.freight-handoff-card>header span{color:var(--dim);font-size:9px}.freight-handoff-card h4{margin:3px 0 0;font-size:13px}
.freight-handoff-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:9px}.freight-handoff-facts>span{min-width:0;padding:7px 8px;border-radius:8px;background:var(--surface0)}.freight-handoff-facts small,.freight-handoff-facts b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.freight-handoff-facts small{color:var(--dim);font-size:8px}.freight-handoff-facts b{margin-top:3px;font-size:10px}
.freight-handoff-card>p{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin:8px 0 0;color:var(--dim);font-size:9px}.freight-handoff-card>p b{color:var(--txt)}.freight-handoff-card>p span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.freight-handoff-provider{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;padding:7px 8px;border-radius:8px;background:color-mix(in srgb,var(--warn) 6%,var(--surface0));color:var(--dim);font-size:9px}.freight-handoff-provider b{color:var(--warn)}
.freight-handoff-card>footer{align-items:center;margin-top:9px;padding-top:9px;border-top:1px solid var(--line)}.freight-handoff-card>footer code{overflow:hidden;color:var(--dim);font:9px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}.freight-handoff-card>footer div{display:flex;gap:6px}.freight-handoff-card>footer button{padding:6px 9px;font-size:9px}.freight-handoff-card>footer button:disabled{opacity:.72;cursor:not-allowed}
.freight-handoff-empty,.freight-handoff-error,.freight-handoff-loading{display:grid;place-items:center;min-height:92px;padding:18px;text-align:center}.freight-handoff-empty b,.freight-handoff-error b{font-size:11px}.freight-handoff-empty span,.freight-handoff-error span,.freight-handoff-loading span{margin-top:4px;color:var(--dim);font-size:9px}.freight-handoff-error button{margin-top:10px}.freight-handoff-loading i{width:22px;height:22px;border:2px solid var(--line);border-top-color:var(--acc);border-radius:50%;animation:freight-case-spin .8s linear infinite}
.freight-handoff-error{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;min-height:0;padding:10px 12px;text-align:left}.freight-handoff-error b{grid-column:1}.freight-handoff-error span{grid-column:2;margin:0}.freight-handoff-error button{grid-column:3;margin:0}
.freight-handoff-unclassified{margin:0 9px 9px;border:1px dashed var(--line);border-radius:9px;background:var(--surface0)}.freight-handoff-unclassified summary{padding:8px 10px;color:var(--dim);cursor:pointer;font-size:9px}.freight-handoff-unclassified p{margin:0;padding:0 10px 10px;color:var(--dim);font-size:9px;line-height:1.55}
.freight-rate-decision{margin:0 12px 12px;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:var(--surface1)}.freight-rate-decision>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border-bottom:1px solid var(--line)}.freight-rate-decision>header b,.freight-rate-decision>header small{display:block}.freight-rate-decision>header b{font-size:12px}.freight-rate-decision>header small{margin-top:2px;color:var(--dim);font-size:9px}.freight-rate-decision>header>span{padding:4px 7px;border-radius:999px;background:var(--warning-bg);color:var(--warn);font-size:9px;font-weight:700}
.freight-rate-criteria{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:8px}.freight-rate-criteria>span{min-width:0;padding:6px 7px;border:1px solid var(--line);border-radius:8px;background:var(--surface0)}.freight-rate-criteria small,.freight-rate-criteria b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.freight-rate-criteria small{color:var(--dim);font-size:8px}.freight-rate-criteria b{margin-top:2px;font-size:9px}.freight-rate-criteria .missing{border-color:color-mix(in srgb,var(--warn) 34%,var(--line))}.freight-rate-criteria .missing b{color:var(--warn)}
.freight-rate-paths{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:0 8px 8px}.freight-rate-paths article{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;padding:9px;border:1px solid color-mix(in srgb,var(--ok) 30%,var(--line));border-radius:9px;background:color-mix(in srgb,var(--ok) 5%,var(--surface0))}.freight-rate-paths article.exception{border-color:color-mix(in srgb,var(--warn) 34%,var(--line));background:color-mix(in srgb,var(--warn) 5%,var(--surface0))}.freight-rate-paths i{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--surface2);font-size:11px;font-style:normal;font-weight:850}.freight-rate-paths b{font-size:11px}.freight-rate-paths p{margin:3px 0 7px;color:var(--dim);font-size:9px;line-height:1.45}.freight-rate-paths button{padding:6px 8px;font-size:9px}.freight-rate-paths button:disabled{opacity:.72;cursor:not-allowed}
.freight-rate-maintenance{margin:7px 0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.freight-rate-maintenance>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:11px 13px;border-bottom:1px solid var(--line);background:var(--surface1)}.freight-rate-maintenance h4{margin:3px 0;font-size:14px}.freight-rate-maintenance header p{margin:0;color:var(--dim);font-size:9px}.freight-rate-maintenance>header>span{padding:5px 8px;border-radius:999px;background:var(--surface2);color:var(--dim);font-size:9px}.freight-rate-maintenance-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:8px;padding:9px}.freight-rate-maintenance-body>div,.freight-rate-maintenance-body>aside{padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface0)}.freight-rate-maintenance-body b{font-size:11px}.freight-rate-maintenance-body p,.freight-rate-maintenance-body small{display:block;margin:7px 0 0;color:var(--dim);font-size:9px;line-height:1.45}.freight-rate-field-grid{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.freight-rate-field-grid span,.freight-rate-maintenance-body aside span{padding:4px 7px;border-radius:999px;background:var(--surface2);color:var(--dim);font-size:8px}.freight-rate-maintenance-body aside>div{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:9px}.freight-rate-maintenance-body aside i{color:var(--dim);font-style:normal}.freight-rate-maintenance>footer{display:flex;gap:6px;padding:0 9px 9px}.freight-rate-maintenance>footer button{padding:6px 8px;font-size:9px}.freight-rate-maintenance>footer button:disabled{opacity:.72;cursor:not-allowed}
@media(max-width:900px){.freight-handoff-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.freight-rate-criteria{grid-template-columns:repeat(3,minmax(0,1fr))}.freight-rate-maintenance-body{grid-template-columns:1fr}}
@media(max-width:680px){.freight-handoff-board>header{align-items:stretch;flex-direction:column}.freight-handoff-board>nav{display:flex;overflow-x:auto}.freight-handoff-board>nav button{flex:0 0 150px}.freight-handoff-card>header,.freight-handoff-card>footer,.freight-handoff-provider{align-items:stretch;flex-direction:column}.freight-handoff-card>footer div{flex-wrap:wrap}.freight-handoff-card>footer code{white-space:normal}.freight-case-provider-note{grid-template-columns:1fr}.freight-handoff-error{grid-template-columns:1fr}.freight-handoff-error b,.freight-handoff-error span,.freight-handoff-error button{grid-column:1}.freight-handoff-error button{justify-self:start}.freight-rate-decision>header,.freight-rate-maintenance>header{align-items:flex-start;flex-direction:column}.freight-rate-criteria,.freight-rate-paths{grid-template-columns:1fr}.freight-rate-maintenance>footer{flex-wrap:wrap}}

/* Action-first freight desk. Keep every module inside the available app width. */
#freightview,.freight-shell,.freight-shell>*{min-width:0;max-width:100%}
#freightview .freight-shell{grid-template-columns:minmax(0,1fr)}
#freightview .freight-section-head,#freightview .freight-scope,#freightview .freight-module-tabs,
#freightview .freight-module-pane,#freight-commercial-root,.freight-commercial-workbench,
.freight-commercial-panel,.freight-commercial-focus,.freight-intake,.freight-intake-fields{min-width:0;max-width:100%;box-sizing:border-box}
.freight-commercial-context,.freight-commercial-backlog,.freight-pricing-guidance{margin:6px 0;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:var(--surface1)}
.freight-commercial-context>summary,.freight-commercial-backlog>summary,.freight-pricing-guidance>summary,.freight-rate-decision>summary,.freight-role-operating-model>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:9px 11px;cursor:pointer;list-style:none}
.freight-commercial-context>summary::-webkit-details-marker,.freight-commercial-backlog>summary::-webkit-details-marker,.freight-pricing-guidance>summary::-webkit-details-marker,.freight-rate-decision>summary::-webkit-details-marker,.freight-role-operating-model>summary::-webkit-details-marker{display:none}
.freight-commercial-context>summary span,.freight-commercial-context>summary b,.freight-commercial-context>summary small,
.freight-commercial-backlog>summary span,.freight-commercial-backlog>summary b,.freight-commercial-backlog>summary small,
.freight-pricing-guidance>summary span,.freight-pricing-guidance>summary b,.freight-pricing-guidance>summary small,
.freight-rate-decision>summary span,.freight-rate-decision>summary b,.freight-rate-decision>summary small,
.freight-role-operating-model>summary span,.freight-role-operating-model>summary b,.freight-role-operating-model>summary small{display:block;min-width:0}
.freight-commercial-context>summary b,.freight-commercial-backlog>summary b,.freight-pricing-guidance>summary b,.freight-rate-decision>summary b,.freight-role-operating-model>summary b{font-size:12px}
.freight-commercial-context>summary small,.freight-commercial-backlog>summary small,.freight-pricing-guidance>summary small,.freight-rate-decision>summary small,.freight-role-operating-model>summary small{margin-top:2px;overflow:hidden;color:var(--dim);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.freight-commercial-context>summary em,.freight-commercial-backlog>summary em,.freight-pricing-guidance>summary em,.freight-rate-decision>summary em,.freight-role-operating-model>summary em{flex:none;color:var(--acc2);font-size:11px;font-style:normal;font-weight:750}
.freight-commercial-context[open]>summary,.freight-commercial-backlog[open]>summary,.freight-pricing-guidance[open]>summary,.freight-rate-decision[open]>summary,.freight-role-operating-model[open]>summary{border-bottom:1px solid var(--line)}
.freight-commercial-context>div{padding:0 9px 4px}.freight-commercial-context .freight-provider-boundary,.freight-commercial-context .freight-handoff{margin:6px 0}
.freight-pricing-guidance>div{padding:4px 9px 9px}
.freight-commercial-workbench{display:grid;grid-template-columns:minmax(280px,.78fr) minmax(0,1.55fr);gap:9px;align-items:start;margin-top:7px}
.freight-commercial-inbox{min-width:0}.freight-commercial-inbox .freight-commercial-list{max-height:610px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.freight-commercial-focus{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
.freight-commercial-focus>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border-bottom:1px solid var(--line);background:var(--surface1)}
.freight-commercial-focus>header>div{display:flex;align-items:center;gap:8px;min-width:0}.freight-commercial-focus h4{margin:0;font-size:14px}.freight-commercial-focus>header small{color:var(--dim);font-size:11px}
.freight-commercial-focus>.freight-intake{margin:0;border:0;border-radius:0}.freight-commercial-focus>.freight-intake>header{padding:11px 12px}
.freight-commercial-backlog>div{padding:8px}.freight-commercial-backlog>.freight-commercial-grid{gap:8px}.freight-commercial-backlog>.freight-commercial-grid .freight-commercial-panel{box-shadow:none}
.freight-commercial-backlog>footer{display:flex;justify-content:flex-end;padding:0 9px 9px}.freight-commercial-backlog>footer button{padding:7px 10px;color:var(--acc2);font-size:11px}
.freight-rate-decision{margin:0 12px 12px}.freight-rate-decision-body>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;border-bottom:1px solid var(--line)}
.freight-rate-decision-body>header b,.freight-rate-decision-body>header small{display:block}.freight-rate-decision-body>header b{font-size:12px}.freight-rate-decision-body>header small{margin-top:2px;color:var(--dim);font-size:10px}.freight-rate-decision-body>header>span{padding:4px 7px;border-radius:999px;background:var(--warning-bg);color:var(--warn);font-size:10px;font-weight:700}
.freight-commercial-row,.freight-commercial-row-main{min-width:0;max-width:100%;box-sizing:border-box}.freight-commercial-row-main b,.freight-commercial-row-main small,.freight-commercial-row-main em{max-width:100%}

@media(max-width:1100px){
 .freight-commercial-workbench{grid-template-columns:minmax(240px,.85fr) minmax(0,1.25fr)}
 .freight-intake-fields>div{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
 #freightview .freight-section-head{display:flex;align-items:center;justify-content:space-between;padding:9px 11px}
 #freightview .freight-section-head .eyebrow{display:none}#freightview .freight-section-head h2{margin:0;font-size:17px}
 #freightview .freight-head-actions{display:flex;width:auto}.freight-head-actions .freight-badge{display:none}
 #freightview .freight-scope{display:flex;align-items:center;gap:8px;padding:7px 9px}.freight-scope-main{min-width:0}.freight-scope-main b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.freight-scope-icon{display:none}.freight-scope-meta{margin-left:auto}.freight-scope-meta .freight-technical-pill{display:none!important}
 .freight-module-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.freight-module-tabs button{min-width:0}
 .freight-commercial-hero{align-items:center;padding:9px 11px}.freight-commercial-hero .eyebrow{display:none}.freight-commercial-hero h3{margin:0 0 3px;font-size:16px}.freight-commercial-hero p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:11px}.freight-commercial-hero button{padding:8px 10px}
 .freight-commercial-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.freight-commercial-kpis article{padding:7px 9px}.freight-commercial-kpis small{display:none}
 .freight-commercial-toolbar{align-items:stretch;flex-direction:column}.freight-commercial-toolbar>label{width:100%}
 .freight-commercial-workbench{grid-template-columns:minmax(0,1fr)}.freight-commercial-inbox .freight-commercial-list{max-height:370px}
 .freight-intake-steps,.freight-operating-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
 .freight-intake-body{grid-template-columns:minmax(0,1fr)}.freight-intake-fields>div{grid-template-columns:repeat(2,minmax(0,1fr))}
 .freight-commercial-grid{grid-template-columns:minmax(0,1fr)}
 .freight-rate-decision-body>header{align-items:flex-start;flex-direction:column}.freight-rate-criteria{grid-template-columns:repeat(2,minmax(0,1fr))}.freight-rate-paths{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:520px){
 .freight-commercial-hero{align-items:stretch;flex-direction:column}.freight-commercial-hero button{width:100%}
 .freight-commercial-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .freight-intake>header{align-items:flex-start;flex-direction:column}.freight-completeness{width:100%;box-sizing:border-box}
 .freight-intake-steps,.freight-intake-fields>div{grid-template-columns:minmax(0,1fr)}
}

/* Freight navigation and desk hierarchy: role menu stays beside the work, not above it. */
#freightview .freight-shell{gap:14px}
#freightview .freight-section-head{align-items:center;margin:8px 0 0}
#freightview .freight-section-head h2{font-size:24px;letter-spacing:-.02em}
#freightview .freight-section-head p{display:block;margin-top:3px;font-size:12px}
.freight-layout{display:grid;grid-template-columns:208px minmax(0,1fr);gap:16px;align-items:start;min-width:0}
.freight-side{position:sticky;top:86px;min-width:0;padding:14px 10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:var(--shadow)}
.freight-side-heading{padding:2px 10px 11px;border-bottom:1px solid var(--line)}
.freight-side-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}
.freight-side-heading>button{display:grid;place-items:center;flex:none;width:27px;height:27px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface1);box-shadow:none;color:var(--acc2);font-size:22px;line-height:1}
.freight-side-heading>button:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.freight-side-heading span,.freight-side-heading small{display:block}
.freight-side-heading span{font-size:13px;font-weight:800;color:var(--txt)}
.freight-side-heading small{margin-top:2px;color:var(--dim);font-size:11px}
.freight-side-note{margin:12px 10px 0;padding-top:11px;border-top:1px solid var(--line);color:var(--dim);font-size:11px;line-height:1.5}
.freight-main{display:grid;gap:11px;min-width:0}
.freight-side .freight-module-tabs{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:10px 0 0;padding:0;border:0;border-radius:0;background:transparent}
.freight-side .freight-module-tabs button{display:grid;grid-template-columns:28px minmax(0,1fr) 10px;align-items:center;gap:8px;min-height:62px;padding:9px 10px;text-align:left;white-space:normal;overflow:visible;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--txt);font-size:12px}
.freight-side .freight-module-tabs button i{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--surface2);color:var(--dim);font-size:10px;font-style:normal;font-weight:800}
.freight-side .freight-module-tabs button span,.freight-side .freight-module-tabs button b,.freight-side .freight-module-tabs button small{display:block;min-width:0}
.freight-side .freight-module-tabs button b{font-size:13px}.freight-side .freight-module-tabs button small{margin:2px 0 0;color:var(--dim);font-size:11px;font-weight:500;line-height:1.3}
.freight-side .freight-module-tabs button em{color:var(--dim);font-size:19px;font-style:normal;line-height:1}
.freight-side .freight-module-tabs button:hover{border-color:var(--line);background:var(--surface1)}
.freight-side .freight-module-tabs button.on{border-color:color-mix(in srgb,var(--acc) 35%,var(--line));background:color-mix(in srgb,var(--acc) 9%,var(--panel));color:var(--acc2);box-shadow:inset 3px 0 0 var(--acc)}
.freight-side .freight-module-tabs button.on i{background:color-mix(in srgb,var(--acc) 15%,var(--surface0));color:var(--acc2)}
.freight-side .freight-module-tabs button.on em{color:var(--acc2)}
.freight-side .freight-module-tabs button:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.freight-side .freight-module-tabs button:disabled{opacity:.58;cursor:not-allowed}
.freight-layout.collapsed{grid-template-columns:62px minmax(0,1fr)}
.freight-layout.collapsed .freight-side{padding:10px 5px}
.freight-layout.collapsed .freight-side-heading{justify-content:center;padding:0 0 9px}
.freight-layout.collapsed .freight-side-heading>div,.freight-layout.collapsed .freight-side-note,.freight-layout.collapsed .freight-module-tabs button span,.freight-layout.collapsed .freight-module-tabs button em{display:none}
.freight-layout.collapsed .freight-module-tabs{justify-items:center;gap:5px}
.freight-layout.collapsed .freight-module-tabs button{display:grid;place-items:center;width:44px;min-height:45px;padding:7px;grid-template-columns:minmax(0,1fr)}
.freight-layout.collapsed .freight-module-tabs button i{width:28px;height:28px;font-size:11px}
#freight-sales-pane{display:grid;gap:12px}
#freight-sales-handoff-root:empty{display:none}
.freight-commercial-hero{align-items:center}
.freight-commercial-hero h3{font-size:19px}
.freight-commercial-hero p{font-size:12px}
.freight-commercial-summary{display:flex;align-items:center;gap:0;min-height:43px;overflow-x:auto;border:1px solid var(--line);border-radius:11px;background:var(--panel)}
.freight-commercial-summary>span{flex:none;padding:7px 13px;border-right:1px solid var(--line);color:var(--dim);font-size:12px;white-space:nowrap}
.freight-commercial-summary>span b{margin-left:5px;color:var(--txt);font-size:14px}
.freight-commercial-summary .freight-commercial-health{color:var(--acc2);font-weight:750}
.freight-commercial-summary .freight-commercial-health.failed{color:var(--hot)}
.freight-commercial-summary>button{flex:none;margin-left:auto;padding:7px 13px;border:0;background:transparent;box-shadow:none;color:var(--acc2);font-size:12px;font-weight:750}
.freight-commercial-start{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:190px;padding:25px 30px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
.freight-commercial-start b{display:block;font-size:19px}.freight-commercial-start p{max-width:600px;margin:8px 0 0;color:var(--dim);font-size:13px;line-height:1.6}
.freight-commercial-start>div:last-child{display:flex;flex-wrap:wrap;gap:8px;flex:none}
.freight-commercial-alert{padding:10px 13px;border:1px solid color-mix(in srgb,var(--hot) 25%,var(--line));border-radius:9px;background:color-mix(in srgb,var(--hot) 5%,var(--panel));color:var(--hot);font-size:12px}
.freight-commercial-context{margin-top:4px}
#freightview .freight-scope{padding:10px 14px;border-radius:12px;box-shadow:none}
#freightview .freight-scope-icon{display:none}
#freightview .freight-scope-main b{font-size:13px}
#freightview .freight-scope-meta span{font-size:11px}
#freightview .freight-scope-meta .freight-technical-pill{display:none!important}
#freight-operations-pane:not([hidden]){display:flex;flex-direction:column;gap:10px}
#freight-operations-pane>.freight-ops-summary{order:0}
#freight-operations-pane>#freight-error{order:1}
#freight-operations-pane>.freight-workspace{order:2}
#freight-operations-pane>.freight-role-operating-model{order:3}
#freight-operations-pane>.freight-work-guide{order:4}
#freight-operations-pane>.freight-connection-details{order:5}
#freightview .freight-ops-summary{gap:0;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
#freightview .freight-ops-summary article{grid-template-columns:minmax(0,1fr);gap:0;padding:12px 15px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
#freightview .freight-ops-summary article:last-child{border-right:0}
#freightview .freight-ops-summary article i{display:none}
#freightview .freight-ops-summary span{font-size:11px}
#freightview .freight-ops-summary b{margin-top:3px;font-size:19px;line-height:1.25}
#freightview .freight-ops-summary small{font-size:10px}
#freightview .freight-panel{border-radius:13px;box-shadow:none}
#freightview .freight-panel-head{padding:14px 16px;background:var(--surface1)}
#freightview .freight-panel-head h3{font-size:16px}
#freightview .freight-panel-head span{font-size:11px}
#freight-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,310px);column-gap:16px;row-gap:10px;padding:14px 16px;background:var(--panel)}
#freight-toolbar .freight-toolbar-search{grid-column:1;grid-row:1;grid-template-columns:auto minmax(0,1fr)}
#freight-toolbar .freight-location-picker{grid-column:2;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr);gap:3px;margin:0}
#freight-toolbar .freight-location-picker>small{display:none}
#freight-toolbar .freight-work-views{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:wrap;gap:7px;margin:0}
#freight-toolbar .freight-work-views button{flex:0 0 auto;min-height:34px;padding:6px 12px!important;border-radius:999px;background:var(--surface1);font-size:12px}
#freight-toolbar .freight-work-views button b{font-size:12px}
#freight-toolbar .freight-filter-details{grid-column:1/-1;grid-row:3;margin:0}
#freight-toolbar .freight-filter-note{grid-column:1/-1;grid-row:4;margin:0;font-size:11px}
#freightview .freight-columns{padding:10px 16px;font-size:11px;letter-spacing:0;text-transform:none}
#freightview .freight-list{gap:0;max-height:none;overflow:visible;padding:0}
#freightview .freight-row{min-height:70px;padding:11px 16px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--panel)}
#freightview .freight-row:last-child{border-bottom:0}
#freightview .freight-row:hover,#freightview .freight-row.on{background:color-mix(in srgb,var(--acc) 6%,var(--panel));box-shadow:inset 3px 0 0 var(--acc)}
#freightview .freight-row b{font-size:13px}
#freightview .freight-row small,#freightview .freight-route,#freightview .freight-date,#freightview .freight-owner{font-size:11px}
#freight-pagination [data-freight-load-more]{border-color:var(--acc);background:color-mix(in srgb,var(--acc) 10%,var(--panel));color:var(--acc2);font-weight:750}
@media(max-width:1150px){.freight-layout{grid-template-columns:180px minmax(0,1fr);gap:12px}.freight-side .freight-module-tabs button{grid-template-columns:24px minmax(0,1fr) 8px;padding:8px}.freight-side .freight-module-tabs button i{width:23px;height:23px}}
@media(max-width:920px){.freight-layout,.freight-layout.collapsed{grid-template-columns:minmax(0,1fr)}.freight-side,.freight-layout.collapsed .freight-side{position:static;padding:8px}.freight-side-heading,.freight-layout.collapsed .freight-side-heading,.freight-side-note{display:none}.freight-side .freight-module-tabs,.freight-layout.collapsed .freight-module-tabs{grid-template-columns:repeat(4,minmax(0,1fr));margin:0}.freight-side .freight-module-tabs button,.freight-layout.collapsed .freight-module-tabs button{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;width:auto;min-height:54px;text-align:center}.freight-layout.collapsed .freight-module-tabs button span{display:block}.freight-side .freight-module-tabs button i,.freight-side .freight-module-tabs button em{display:none}.freight-side .freight-module-tabs button.on{box-shadow:inset 0 -3px 0 var(--acc)}.freight-commercial-start{align-items:flex-start;flex-direction:column;min-height:0}}
@media(max-width:680px){#freightview .freight-section-head p{display:none}.freight-side .freight-module-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.freight-side .freight-module-tabs button{min-height:48px}#freightview .freight-ops-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#freightview .freight-ops-summary article:nth-child(2){border-right:0}#freightview .freight-ops-summary article:nth-child(-n+2){border-bottom:1px solid var(--line)}#freight-toolbar{grid-template-columns:minmax(0,1fr)}#freight-toolbar .freight-toolbar-search{grid-column:1;grid-row:1}#freight-toolbar .freight-location-picker{grid-column:1;grid-row:2}#freight-toolbar .freight-work-views{grid-column:1;grid-row:3}#freight-toolbar .freight-filter-details{grid-column:1;grid-row:4}#freight-toolbar .freight-filter-note{grid-column:1;grid-row:5}}
@media(max-width:680px){.freight-layout.collapsed .freight-module-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Quotation workbench */
.fq-shell{margin-top:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:var(--shadow)}
.fq-title{display:flex;justify-content:space-between;align-items:flex-end;padding:14px 18px;border-bottom:1px solid var(--line)}.fq-title h2{margin:0;font-size:18px}.fq-title p{margin:3px 0 0;color:var(--dim);font-size:12px}
.fq-layout{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:420px}
.fq-list{border-right:1px solid var(--line);padding:12px;display:flex;flex-direction:column;gap:6px;overflow:auto;max-height:1400px}.fq-list>header{display:flex;justify-content:space-between;font-size:12px}.fq-list>header span,.fq-empty{color:var(--dim);font-size:11px}
.fq-new{display:grid;gap:5px;margin-bottom:6px}.fq-row{display:grid;gap:2px;text-align:left;padding:8px 9px;border:1px solid var(--line);border-radius:10px;background:var(--surface0)}.fq-row.on{border-color:var(--acc);box-shadow:inset 3px 0 0 var(--acc)}.fq-row span,.fq-row em{color:var(--dim);font-size:11px;font-style:normal}
.fq-editor{padding:14px 18px;display:grid;gap:14px;min-width:0}.fq-blank{place-items:center;color:var(--dim)}
.fq-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-start}.fq-head small{color:var(--acc2);letter-spacing:.08em;font-size:10px}.fq-head h3{margin:2px 0;font-size:18px}.fq-head span{color:var(--dim);font-size:12px}
.fq-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:flex-end}.fq-actions label{display:grid;font-size:10px;color:var(--dim)}
.fq-editor section{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--surface0)}.fq-editor section>header{display:flex;gap:10px;align-items:baseline;margin-bottom:8px}.fq-editor section>header small{color:var(--dim);font-size:11px}.fq-editor section>header button{margin-left:auto}
.fq-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px}.fq-grid label{display:grid;gap:3px;font-size:11px;color:var(--dim)}.fq-grid input,.fq-grid select{width:100%;box-sizing:border-box}.fq-inline{display:flex!important;align-items:center;gap:6px}
.fq-table{width:100%;border-collapse:collapse;font-size:12px}.fq-table th{text-align:left;font-weight:600;color:var(--dim);font-size:11px;padding:4px;border-bottom:1px solid var(--line)}.fq-table td{padding:3px 4px;border-bottom:1px solid color-mix(in srgb,var(--line) 60%,transparent)}.fq-table input,.fq-table select{width:100%;min-width:60px;box-sizing:border-box;padding:4px 6px}.fq-table .n{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.fq-lines{display:block;overflow-x:auto}.fq-stage td{background:color-mix(in srgb,var(--acc) 8%,var(--surface0));padding:6px}.fq-stage span{margin-left:8px;color:var(--dim)}.fq-stage button{margin-left:10px;padding:2px 8px}.fq-x{padding:2px 7px;color:var(--hot)}
.fq-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}.fq-totals span{display:grid;gap:2px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.fq-totals small{color:var(--dim);font-size:10px}.fq-totals b{font-size:15px;font-variant-numeric:tabular-nums}.fq-totals input{width:60px}.fq-totals .fixed{border-color:color-mix(in srgb,var(--ok) 50%,var(--line));background:color-mix(in srgb,var(--ok) 9%,var(--panel))}.fq-totals .fixed b{font-size:18px}
.fq-warnings{margin:8px 0 0;padding-left:18px;color:var(--warn);font-size:12px}.fq-error{margin:0;color:var(--hot)}
.fq-total td{font-weight:700;background:color-mix(in srgb,var(--ok) 8%,transparent)}
.fq-scope p{margin:0 0 6px;font-size:12px;line-height:1.6}.fq-scope b{margin-right:8px}
.fq-check{display:grid;gap:6px;margin:0;padding:0;list-style:none}.fq-check li{display:grid;gap:2px}.fq-check label{display:flex;gap:7px;align-items:center;font-size:12px}.fq-check small{margin-left:22px;color:var(--dim);font-size:11px}
.fq-intake{border-color:color-mix(in srgb,var(--acc) 35%,var(--line))!important}.fq-found{display:flex;flex-wrap:wrap;gap:6px}.fq-found span{display:grid;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.fq-found small{color:var(--dim);font-size:10px}.fq-missing{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap;align-items:center;font-size:12px;color:var(--warn)}.fq-missing em{font-style:normal;padding:2px 7px;border-radius:999px;background:color-mix(in srgb,var(--warn) 12%,transparent)}.fq-missing.ok{color:var(--ok)}
@media(max-width:980px){.fq-layout{grid-template-columns:1fr}.fq-list{border-right:0;border-bottom:1px solid var(--line);max-height:260px}}
/* Hyfa, the enquiry analyst */
.hy-shell{margin-bottom:16px;border:1px solid color-mix(in srgb,var(--acc) 35%,var(--line));border-radius:16px;background:var(--panel);box-shadow:var(--shadow);padding:14px 18px;display:grid;gap:12px}
.hy-title{display:flex;gap:12px;align-items:center}.hy-title h2{margin:0;font-size:18px}.hy-title p{margin:2px 0 0;color:var(--dim);font-size:12px}
.hy-avatar{display:grid;place-items:center;width:40px;height:40px;flex:none;overflow:hidden;border-radius:50%;background:var(--surface2)}.hy-avatar img{width:40px;height:40px;display:block}
.hy-input{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}.hy-input textarea{width:100%;box-sizing:border-box;resize:vertical}.hy-input>div{display:grid;gap:6px}
.hy-error{margin:0;color:var(--hot)}.hy-summary{margin:0;display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.hy-summary em{font-style:normal;font-size:11px;padding:2px 8px;border-radius:999px;background:color-mix(in srgb,var(--acc) 12%,transparent);color:var(--acc2)}.hy-summary small{color:var(--warn);font-size:11px}
.hy-result{display:grid;gap:12px}.hy-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px}.hy-result section{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:var(--surface0);display:grid;gap:8px;align-content:start}.hy-result section>header{display:flex;gap:8px;align-items:baseline}.hy-result section>header small{color:var(--dim);font-size:11px}
.hy-fields{width:100%;border-collapse:collapse;font-size:12px}.hy-fields th{text-align:left;font-weight:600;color:var(--dim);white-space:nowrap;padding:3px 6px 3px 0;width:110px}.hy-fields td{padding:2px 4px}.hy-fields input{width:100%;box-sizing:border-box;padding:4px 6px}.hy-fields td small{color:var(--dim);font-size:10px}.hy-fields tr.missing th{color:var(--hot)}.hy-fields tr.missing input{border-color:color-mix(in srgb,var(--hot) 50%,var(--line))}
.hy-missing,.hy-suggest{margin:0;padding:0;list-style:none;display:grid;gap:5px}.hy-missing li,.hy-suggest li{display:grid;gap:1px;padding:6px 8px;border-radius:8px;background:var(--panel);font-size:12px}.hy-missing li{border-left:3px solid var(--hot)}.hy-suggest li{border-left:3px solid var(--warn)}.hy-missing small,.hy-suggest small{color:var(--dim)}.hy-ok{margin:0;color:var(--ok)}
.hy-header{display:flex;flex-wrap:wrap;gap:6px}.hy-header span{display:grid;padding:5px 8px;border:1px solid var(--line);border-radius:8px;background:var(--panel);font-size:12px}.hy-header span.lookup{border-style:dashed}.hy-header small{color:var(--dim);font-size:10px}
.hy-reply{width:100%;box-sizing:border-box;font:12px/1.5 inherit}.hy-actions{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:980px){.hy-columns,.hy-input{grid-template-columns:1fr}}
/* Business-flow layout: one top line, five flow tabs, list | detail per tab */
#freightview .freight-topbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 14px;margin-bottom:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:var(--shadow)}
.freight-topbar-title{display:flex;align-items:baseline;gap:10px;min-width:0}.freight-topbar-title h2{margin:0;font-size:18px}.freight-topbar-title span{color:var(--dim);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}
.freight-flow-tabs{display:flex;gap:4px;flex:1;min-width:0;overflow-x:auto;padding:3px;border:1px solid var(--line);border-radius:12px;background:var(--surface0)}
.freight-flow-tabs>button{display:flex;flex:none;align-items:center;gap:7px;padding:7px 14px;border:0;border-radius:9px;background:transparent;color:var(--dim);white-space:nowrap;box-shadow:none}
.freight-flow-tabs>button i{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--surface2);font-style:normal;font-size:11px}
.freight-flow-tabs>button b{font-size:13px}.freight-flow-tabs>button small{font-size:10px;color:var(--dim)}
.freight-flow-tabs>button em{min-width:18px;padding:0 6px;border-radius:999px;background:var(--hot);color:#fff;font-style:normal;font-size:10px;line-height:18px;text-align:center}
.freight-flow-tabs>button.on{background:var(--panel);color:var(--txt);box-shadow:0 1px 6px #0000001a}.freight-flow-tabs>button.on i{background:var(--acc);color:#fff}
.freight-flow-tabs>button:disabled{opacity:.55;cursor:not-allowed}
.freight-head-actions{display:flex;align-items:center;gap:6px;position:relative}
.freight-tech,.freight-help{position:relative}.freight-tech>summary,.freight-help>summary{list-style:none;cursor:pointer}.freight-tech>summary::-webkit-details-marker,.freight-help>summary::-webkit-details-marker{display:none}
.freight-help>summary{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;font-weight:700;color:var(--dim)}
.freight-tech-body,.freight-help-body{position:absolute;right:0;top:calc(100% + 8px);z-index:70;width:min(520px,86vw);display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:var(--shadow);font-size:12px}
.freight-help-body p,.freight-policy-copy{margin:0;color:var(--dim);line-height:1.6}.freight-policy-copy b{margin-right:6px;color:var(--txt)}
.freight-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:10px}
.freight-kpi{display:grid;gap:2px;justify-items:start;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);text-align:left}.freight-kpi b{font-size:22px;font-variant-numeric:tabular-nums}.freight-kpi span{color:var(--dim);font-size:11px}.freight-kpi.on{border-color:var(--acc);box-shadow:inset 0 -3px 0 var(--acc)}
.freight-split{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:12px;align-items:start}
.freight-split-list{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--panel);max-height:calc(100dvh - 220px);overflow:auto;position:sticky;top:12px}
.freight-split-tools{display:flex;gap:6px}.freight-split-tools input{flex:1;min-width:0}
.freight-split-filter{display:flex;flex-wrap:wrap;gap:4px}.freight-split-filter button{padding:3px 9px;border-radius:999px;font-size:11px}.freight-split-filter button.on{border-color:var(--acc);color:var(--acc2)}
.freight-split-rows{display:grid;gap:5px}.freight-row-item{display:grid;gap:3px;justify-items:start;text-align:left;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface0)}.freight-row-item b{font-size:12px;line-height:1.4}.freight-row-item small{color:var(--dim);font-size:11px}.freight-row-item.on{border-color:var(--acc);box-shadow:inset 3px 0 0 var(--acc)}
.freight-stage{font-size:10px;padding:1px 7px;border-radius:999px;background:var(--surface2);color:var(--dim)}.freight-stage.missing{background:color-mix(in srgb,var(--hot) 14%,transparent);color:var(--hot)}.freight-stage.to_quote{background:color-mix(in srgb,var(--warn) 16%,transparent);color:var(--warn)}.freight-stage.quoted{background:color-mix(in srgb,var(--acc) 14%,transparent);color:var(--acc2)}.freight-stage.won{background:color-mix(in srgb,var(--ok) 16%,transparent);color:var(--ok)}
.freight-split-empty{margin:6px 2px;color:var(--dim);font-size:12px;line-height:1.6}.freight-split-hint{justify-self:stretch;text-align:left;font-size:12px;color:var(--warn)}
.freight-split-detail{min-width:0}.freight-split-detail .hy-shell{margin:0}
.hy-mail{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface0)}.hy-mail>div:first-child{display:grid;gap:3px;min-width:0}.hy-mail small{color:var(--dim);font-size:11px}.hy-mail p{margin:4px 0 0;color:var(--dim);font-size:12px;line-height:1.5}.hy-mail>div:last-child{display:flex;gap:6px;flex:none}
.freight-step{margin-top:12px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.freight-step>summary{display:flex;gap:10px;align-items:baseline;padding:11px 14px;cursor:pointer}.freight-step>summary small{color:var(--dim);font-size:11px}.freight-step[open]>summary{border-bottom:1px solid var(--line)}.freight-step>div{padding:10px 12px}
#freight-quotes-pane .fq-shell{margin-top:0}
@media(max-width:980px){.freight-split{grid-template-columns:1fr}.freight-split-list{position:static;max-height:none}.freight-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#freightview .freight-topbar{align-items:stretch}.freight-flow-tabs{order:3;flex-basis:100%}}
/* Inside the flow tabs, headings stay short: no eyebrow captions or hero paragraphs. */
#freight-pricing-pane .freight-commercial-hero .eyebrow,#freight-pricing-pane .freight-commercial-hero p,.freight-step .eyebrow{display:none}
#freight-pricing-pane .freight-commercial-hero{padding:10px 14px;align-items:center}#freight-pricing-pane .freight-commercial-hero h3{margin:0;font-size:15px}
/* Hyfa two-step flow */
.hy-nav{display:flex;gap:6px;flex-wrap:wrap}.hy-nav button{font-size:12px}.hy-nav .hy-note{align-self:center;color:var(--muted,#8a94a6);font-size:12px}
.hy-items{margin:0;padding:0;list-style:none;display:grid;gap:6px}.hy-items li{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.hy-items li.missing{border-left:3px solid var(--hot)}.hy-items li.ready{border-left:3px solid var(--ok)}
.hy-items li>div:first-child{display:grid;gap:2px;min-width:0}.hy-items small{color:var(--dim);font-size:11px}.hy-item-actions{display:flex;gap:6px;align-items:center;flex:none;flex-wrap:wrap;justify-content:flex-end}
.hy-task-done{font-size:11px;color:var(--ok)}
@media(max-width:720px){.hy-items li{flex-direction:column;align-items:stretch}}

/* Shipthis write panel: search a reference by name, then pick */
.sw-ref{display:flex;flex-direction:column;gap:4px}
.sw-ref-options{display:flex;flex-wrap:wrap;gap:4px}
.sw-ref-options button{font:inherit;font-size:12px;padding:3px 8px;border-radius:999px;border:1px solid var(--line,#d6e0ee);background:var(--panel,#fff);color:var(--acc,#245fa9);cursor:pointer}
.sw-ref-chosen{color:var(--ok,#1f8a4c);font-size:12px}.sw-ref-error{color:#c0392b;font-size:12px}
.hy-places{margin-bottom:8px}
/* Shipthis write panel */
.sw-panel,.sw-operation,.sw-filter{border:1px solid var(--line,#d6e0ee);border-radius:12px;background:var(--panel,#fff);color:var(--txt,#20344d);padding:12px 14px;margin:8px 0;display:grid;gap:10px}
.sw-panel>header{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.sw-env{font-size:12px;padding:2px 10px;border-radius:999px;background:var(--active,#eaf1fc);color:var(--acc,#245fa9)}
.sw-env-note{margin:0;padding:8px 10px;border-radius:8px;background:color-mix(in srgb,#e8891a 14%,transparent);font-size:13px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sw-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 14px}
.sw-field{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--dim,#65758d)}
.sw-field input,.sw-field select{font:inherit;font-size:13px;padding:6px 8px;border-radius:8px;border:1px solid var(--line,#d6e0ee);background:var(--panel,#fff);color:var(--txt,#20344d)}
.sw-required{color:#c0392b;font-size:12px;font-weight:600}
.sw-advanced summary{font-size:12px;color:var(--dim,#65758d);cursor:pointer}
.sw-panel footer,.sw-operation footer{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sw-panel footer button,.sw-operation footer button{font:inherit;font-size:13px;padding:6px 12px;border-radius:8px;border:1px solid var(--line,#d6e0ee);background:var(--panel,#fff);color:var(--txt,#20344d);cursor:pointer}
.sw-panel footer button[data-sw-action="preview"],.sw-operation footer button[data-sw-action="submit"]{background:var(--acc,#245fa9);color:#fff;border-color:transparent}
.sw-panel footer button:disabled{opacity:.5;cursor:not-allowed}
.sw-blocked{font-size:12px;color:#b35c00}
.sw-missing{font-size:13px;color:#b35c00}
.sw-diff{width:100%;border-collapse:collapse;font-size:13px}.sw-diff th,.sw-diff td{border-bottom:1px solid var(--line,#d6e0ee);padding:4px 6px;text-align:left}
.sw-review,.sw-error{padding:8px 10px;border-radius:8px;background:color-mix(in srgb,#c0392b 12%,transparent);font-size:13px}
.sw-receipt{padding:8px 10px;border-radius:8px;background:color-mix(in srgb,#1f8a4c 12%,transparent);font-size:13px}
.sw-evidence,.sw-target,.sw-approval{margin:0;font-size:13px;color:var(--dim,#65758d)}
/* Freight: the one Shipthis label, the setup wizard and the push drawer */
.fs-status{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.fs-status button{font:inherit;font-size:12px;padding:3px 10px;border-radius:999px;border:1px solid transparent;background:var(--acc,#245fa9);color:#fff;cursor:pointer}
.fs-status small{font-size:12px;color:var(--dim,#65758d)}
.fs-chip{font-size:12px;padding:3px 10px;border-radius:999px;border:1px solid var(--line,#d6e0ee);background:var(--surface1,#f5f7fa);color:var(--txt,#20344d)}
.fs-chip.ok{background:color-mix(in srgb,#1f8a4c 16%,transparent);border-color:color-mix(in srgb,#1f8a4c 40%,transparent)}
.fs-chip.warn{background:color-mix(in srgb,#e8891a 16%,transparent);border-color:color-mix(in srgb,#e8891a 40%,transparent)}
.fs-chip.off{color:var(--dim,#65758d)}
.fs-drawer,.freight-drawer{position:fixed;top:0;right:0;bottom:0;width:min(520px,100vw);z-index:60;background:var(--panel,#fff);color:var(--txt,#20344d);border-left:1px solid var(--line,#d6e0ee);box-shadow:-12px 0 32px rgba(0,0,0,.18);overflow:auto;padding:16px}
.fs-drawer[hidden],.freight-drawer[hidden]{display:none}
.fs-drawer header,.freight-drawer>header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:10px}
.freight-drawer>header small{display:block;font-size:12px;color:var(--dim,#65758d)}
.fs-drawer header button,.freight-drawer>header button{font-size:20px;line-height:1;background:none;border:0;color:inherit;cursor:pointer}
.fs-note{font-size:13px;color:var(--dim,#65758d)}.fs-error{color:#c0392b;font-size:13px}.fs-ok{color:#1f8a4c;font-size:13px}
.fs-steps{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}
.fs-steps li{display:flex;gap:8px;align-items:flex-start;font-size:13px}.fs-steps li i{font-style:normal;width:1.2em;text-align:center}
.fs-steps li.done i,.fs-steps li.done{color:#1f8a4c}.fs-steps li.failed{color:#c0392b}.fs-steps small{display:block;color:#c0392b}
.fs-confirm{display:flex;gap:6px;align-items:center;font-size:13px;margin:8px 0}
.fs-drawer button.primary{font:inherit;padding:8px 16px;border-radius:8px;border:0;background:var(--acc,#245fa9);color:#fff;cursor:pointer}
.fs-drawer button.primary:disabled{opacity:.5;cursor:not-allowed}
.fs-pick select{margin-left:6px}
.fs-regions{border:1px solid var(--line,#d6e0ee);border-radius:8px;padding:8px 10px;margin:10px 0;display:grid;gap:6px}
.fs-regions legend{font-size:12px;color:var(--dim,#65758d);padding:0 4px}
.fs-link{background:none;border:0;padding:0 4px;color:var(--accent,#2563eb);font:inherit;font-size:12px;cursor:pointer;text-decoration:underline}
.fs-region{display:flex;gap:8px;align-items:baseline;font-size:13px}.fs-region small{color:var(--dim,#65758d)}
.fs-live{display:block;font-size:13px;margin:8px 0;padding:8px 10px;border-radius:8px;border:1px solid color-mix(in srgb,#e8891a 45%,transparent);background:color-mix(in srgb,#e8891a 10%,transparent)}
.fs-live small{display:block;color:#b35c00;margin-top:4px}
.sw-region{display:flex;gap:8px;align-items:center;font-size:13px;margin:0 0 8px}
.sw-region select{font:inherit;padding:4px 8px;border-radius:6px;border:1px solid var(--line,#d6e0ee);background:var(--panel,#fff);color:inherit}
.sw-live{font-size:12px;color:#b35c00;margin:6px 0}
.sw-extra{margin:8px 0}.sw-extra summary{font-size:12px;color:var(--dim,#65758d);cursor:pointer}
.sw-extra textarea{width:100%;box-sizing:border-box;font:inherit;font-size:13px;margin-top:6px;padding:6px;border-radius:6px;border:1px solid var(--line,#d6e0ee);background:var(--panel,#fff);color:inherit}
.sw-extra small{display:block;font-size:12px;color:var(--dim,#65758d)}
.sw-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 0;padding:8px 10px;border:1px dashed var(--line,#d6e0ee);border-radius:8px;font-size:13px}
.sw-tools button{font:inherit;font-size:12px;padding:3px 10px;border-radius:999px;border:1px solid var(--line,#d6e0ee);background:var(--panel,#fff);color:var(--acc,#245fa9);cursor:pointer}
.sw-tools button.primary{background:var(--acc,#245fa9);color:#fff;border-color:transparent}
.sw-tool-options{display:flex;flex-wrap:wrap;gap:4px;width:100%}
.fq-customer{display:flex;flex-direction:column;gap:4px}
.fq-ship-customer{font-size:12px;color:var(--dim,#65758d)}.fq-ship-customer.ok{color:#1f8a4c}
.fq-ship-picks{display:flex;flex-wrap:wrap;gap:4px}
.fq-ship-picks button,.fq-ship-customer button{font:inherit;font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid var(--line,#d6e0ee);background:var(--panel,#fff);color:var(--acc,#245fa9);cursor:pointer}/* 供应商运价表 (freight_rate_sheets.js) */
.frs{display:grid;gap:10px;margin-bottom:14px}
.frs-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px}.frs-head h3{margin:2px 0}.frs-head p{margin:0;color:var(--dim,#65758d);font-size:12px}
.frs-picker{display:grid;gap:4px;font-size:11px;color:var(--dim,#65758d)}.frs-picker select{min-width:320px;max-width:100%}
.frs-upload,.frs-mapping,.frs-extra,.frs-unmatched{border:1px solid var(--line,#d6e0ee);border-radius:11px;background:var(--surface1,#f7f9fc)}
.frs-upload>summary,.frs-extra>summary,.frs-unmatched>summary{display:flex;gap:10px;align-items:baseline;padding:9px 11px;cursor:pointer}.frs-upload>summary small{color:var(--dim,#65758d)}
.frs-upload form,.frs-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;padding:0 11px 11px}
.frs-upload label,.frs-filters label{display:grid;gap:3px;font-size:11px;color:var(--dim,#65758d)}.frs-upload label.grow,.frs-filters label.grow{flex:1 1 200px}
.frs-filters{padding:0}.frs-status-filter{display:flex;flex-wrap:wrap;gap:6px}.frs-check{display:flex!important;grid-auto-flow:column;align-items:center;gap:4px!important;padding:4px 8px;border:1px solid var(--line,#d6e0ee);border-radius:999px;background:var(--panel,#fff)}.frs-check b{font-size:10px;color:var(--dim,#65758d)}
.frs-message{margin:0 11px 11px;font-size:12px}.frs-message.ok{color:#1f8a4c}.frs-message.error{color:#b42318}
.frs-meta{margin:0;font-size:11px;color:var(--dim,#65758d)}
.frs-mapping{padding:9px 11px;display:grid;gap:6px}.frs-mapping header{display:flex;flex-wrap:wrap;gap:10px;align-items:baseline}.frs-mapping header small{color:var(--dim,#65758d)}
.frs-unmatched ul{list-style:none;margin:0;padding:0 11px 9px;display:grid;gap:4px;max-height:320px;overflow:auto}.frs-unmatched li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;padding:4px 0;border-bottom:1px solid var(--line,#d6e0ee)}
.frs-unmatched li small{margin-left:6px;color:var(--dim,#65758d)}.frs-confirm{display:flex;gap:4px;align-items:center}.frs-confirm select{max-width:260px}.frs-confirm input{width:90px}
.frs-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--line,#d6e0ee);border-radius:10px;background:var(--panel,#fff)}
.frs-table{width:100%;border-collapse:collapse;font-size:12px}.frs-table th{position:sticky;top:0;background:var(--surface1,#f7f9fc);text-align:left;font-weight:600;font-size:11px;color:var(--dim,#65758d);padding:6px 8px;white-space:nowrap}
.frs-table td{padding:6px 8px;border-top:1px solid var(--line,#d6e0ee);vertical-align:top}.frs-table td small{display:block;color:var(--dim,#65758d);font-size:10px}.frs-table .num{text-align:right;white-space:nowrap}
.frs-table code{font-size:10px;padding:1px 4px;border-radius:4px;background:var(--surface1,#eef3fa)}.frs-table code.frs-missing{background:#fff4e5;color:#9a5b00}
.frs-link{border:0;background:none;padding:0;font:inherit;font-weight:600;color:var(--acc,#245fa9);cursor:pointer;text-align:left}
.frs-ask{color:#9a5b00;font-size:11px}.frs-hidden{color:var(--dim,#65758d);font-size:11px}.frs-empty{color:var(--dim,#65758d)}.frs-empty-row{text-align:center;color:var(--dim,#65758d);padding:18px}
.frs-change{display:block;font-size:10px}.frs-change.up{color:#b42318}.frs-change.down{color:#1f8a4c}.frs-change.new{color:var(--acc,#245fa9)}
.frs-chips{display:flex;flex-wrap:wrap;gap:3px}.frs-chip{font-size:10px;padding:1px 6px;border-radius:999px;border:1px solid var(--line,#d6e0ee);white-space:nowrap}.frs-chip.incl{background:#eef8f1;border-color:#bfe3cb}.frs-chip.extra{background:#fff4e5;border-color:#f3d19c}
.frs-pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;font-size:12px;color:var(--dim,#65758d)}
.frs-compare{border:1px solid var(--acc,#245fa9);border-radius:11px;padding:9px 11px;background:var(--panel,#fff);display:grid;gap:8px}.frs-compare header{display:flex;justify-content:space-between;gap:10px}.frs-compare header small{display:block;color:var(--dim,#65758d)}
.frs-loading{padding:14px;color:var(--dim,#65758d);font-size:12px}
@media(max-width:720px){.frs-picker select{min-width:0;width:100%}.frs-confirm{flex-wrap:wrap}}
/* 「Hyfa 建议」 in the quote workbench and AI colleague bylines (freight_quote_ui.js) */
.ai-byline{display:inline-flex;align-items:center;gap:6px}.ai-byline img{width:22px;height:22px;border-radius:50%;background:var(--surface2)}.ai-byline small{color:var(--dim)}
.fq-suggest{border:1px solid var(--acc,#245fa9);border-radius:11px;padding:9px 11px;background:var(--panel,#fff)}
.fq-suggest>header{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}.fq-suggest>header small{color:var(--dim)}.fq-suggest>header button{margin-left:auto}
.fq-suggest ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.fq-suggest li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:5px 0;border-top:1px solid var(--line)}
.fq-sg-label{min-width:92px;color:var(--dim);font-size:12px}.fq-sg-actions{display:flex;gap:4px;margin-left:auto}.fq-sg-actions button{padding:3px 9px;font-size:12px}
.fq-sg-memory{font-style:normal;font-size:11px;padding:1px 6px;border-radius:999px;background:var(--surface2);color:var(--acc2)}
.fq-sg-state{font-size:11px;color:var(--dim)}.fq-sg-state.ok{color:#1f8a4c}.fq-suggest li.fq-sg-ignored b{color:var(--dim);text-decoration:line-through}
.fq-required{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 11px;border:1px solid #f3d19c;border-radius:11px;background:#fff8ec}
.fq-required em{font-style:normal;font-size:12px;padding:1px 7px;border-radius:999px;background:#fdebc8}.fq-required button{margin-left:auto}
.fq-required.ok{border-color:#bfe3cb;background:#eef8f1}

/* 货代项目 (freight_projects.js): projects, stage tasks, packing lists and the cost sheet */
.fpj{display:grid;grid-template-columns:minmax(220px,280px) minmax(0,1fr);gap:14px;align-items:start}
.fpj-list{display:grid;gap:6px;position:sticky;top:8px;max-height:calc(100vh - 160px);overflow:auto;padding:9px;border:1px solid var(--line,#d6e0ee);border-radius:11px;background:var(--surface1,#f7f9fc)}
.fpj-list>header{display:flex;justify-content:space-between;align-items:center;gap:8px}
.fpj-row{display:grid;gap:2px;text-align:left;padding:8px 9px;border:1px solid var(--line,#d6e0ee);border-radius:9px;background:var(--panel,#fff);font:inherit;cursor:pointer}
.fpj-row.on{border-color:var(--acc,#245fa9);box-shadow:0 0 0 1px var(--acc,#245fa9) inset}.fpj-row small{color:var(--dim,#65758d);font-size:11px}
.fpj-main{display:grid;gap:12px;min-width:0}
.fpj-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:flex-start}.fpj-head h3{margin:2px 0}.fpj-head p{margin:0 0 2px;color:var(--dim,#65758d);font-size:12px}
.fpj-head-actions,.fpj-list-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.fpj-meta{margin:0;font-size:11px;color:var(--dim,#65758d)}
.fpj-card{border:1px solid var(--line,#d6e0ee);border-radius:11px;background:var(--panel,#fff);padding:10px 12px;display:grid;gap:9px;min-width:0}
.fpj-card-head{display:flex;justify-content:space-between;gap:10px}.fpj-card-head small{display:block;color:var(--dim,#65758d);font-size:11px}
.fpj-form{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}.fpj-form h4{flex:1 0 100%;margin:0}.fpj-form footer{flex:1 0 100%;display:flex;gap:6px;justify-content:flex-end}
.fpj-form label,.fpj-upload label{display:grid;gap:3px;font-size:11px;color:var(--dim,#65758d)}.fpj-form label.grow,.fpj-upload label.grow{flex:1 1 220px}
.fpj-upload,.fpj-add-step{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}.fpj-add-step input{flex:1 1 160px}
.fpj-chip{display:inline-block;font-style:normal;font-size:10px;padding:1px 7px;border-radius:999px;border:1px solid var(--line,#d6e0ee);margin:0 3px;white-space:nowrap}
.fpj-chip.success{background:#eef8f1;border-color:#bfe3cb;color:#1f6b3d}.fpj-chip.warning{background:#fff4e5;border-color:#f3d19c;color:#9a5b00}.fpj-chip.danger{background:#fdecec;border-color:#f3b8b4;color:#b42318}
.fpj-kpis{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.fpj-stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.fpj-stage{border:1px solid var(--line,#d6e0ee);border-radius:10px;padding:8px 9px;background:var(--surface1,#f7f9fc);display:grid;gap:6px;align-content:start}
.fpj-stage>header{display:flex;justify-content:space-between;align-items:baseline}.fpj-stage>header small{color:var(--dim,#65758d);font-size:11px}
.fpj-stage ol{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.fpj-step{display:flex;flex-wrap:wrap;gap:5px;align-items:center;padding:6px;border-radius:8px;background:var(--panel,#fff);border:1px solid var(--line,#d6e0ee);font-size:12px}
.fpj-step>b{flex:1 1 140px}.fpj-step.done>b{color:var(--dim,#65758d);text-decoration:line-through}
.fpj-step-who{display:flex;flex-wrap:wrap;gap:4px;flex:1 1 100%}.fpj-step-who select{flex:1 1 120px;min-width:0}.fpj-step-who input{width:140px}
.fpj-link{border:0;background:none;padding:0 4px;font:inherit;color:var(--dim,#65758d);cursor:pointer}
.fpj-list-cards{display:flex;flex-wrap:wrap;gap:6px}
.fpj-list-card{display:grid;gap:2px;text-align:left;padding:7px 10px;border:1px solid var(--line,#d6e0ee);border-radius:9px;background:var(--surface1,#f7f9fc);font:inherit;cursor:pointer}
.fpj-list-card.on{border-color:var(--acc,#245fa9);background:var(--panel,#fff)}.fpj-list-card small{color:var(--dim,#65758d);font-size:11px}
.fpj-listview{display:grid;gap:8px;min-width:0}.fpj-modes{margin:0;display:flex;flex-wrap:wrap;gap:4px}
.fpj-tabs{display:flex;flex-wrap:wrap;gap:4px}.fpj-tabs button{font:inherit;font-size:12px;padding:4px 10px;border-radius:999px;border:1px solid var(--line,#d6e0ee);background:var(--panel,#fff);cursor:pointer}.fpj-tabs button.on{border-color:var(--acc,#245fa9);color:var(--acc,#245fa9);font-weight:600}
.fpj-skipped{font-size:11px;color:var(--dim,#65758d)}.fpj-skipped ul{margin:4px 0;padding-left:18px}
.fpj-lines input.num,.fpj-costs input.num{width:84px;text-align:right}.fpj-costs input{width:120px}.fpj-costs input.fpj-cur{width:46px;margin-left:3px}
.fpj-lines tr.fpj-excluded td{opacity:.45}.fpj-lines tr.fpj-flagged td:first-child{box-shadow:3px 0 0 #e8a23a inset}
.fpj-flags{color:#9a5b00!important}.fpj-edited{background:#f2f7ff}
.fpj-tick{display:inline-flex;align-items:center;gap:2px;font-size:11px;margin-right:4px;white-space:nowrap}
.fpj-total td{font-weight:600;background:var(--surface1,#f7f9fc)}
.fpj-shipthis{border-color:var(--acc,#245fa9)}.fpj-shipthis-preview{flex:1 0 100%;font-size:12px}.fpj-shipthis-preview ul{margin:4px 0;padding-left:18px;color:#9a5b00}
.fpj-shipthis-preview pre{max-height:220px;overflow:auto;font-size:11px;background:var(--surface1,#f7f9fc);padding:6px;border-radius:6px}
.fpj-writer{border:1px solid var(--line,#d6e0ee);border-radius:11px;padding:8px}
.fpj-empty{color:var(--dim,#65758d);font-size:12px;margin:4px 0}
@media(max-width:900px){.fpj{grid-template-columns:minmax(0,1fr)}.fpj-list{position:static;max-height:none}}.fpj-status{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:4px}.fpj-status label{display:flex;gap:4px;align-items:center;font-size:12px;color:var(--dim,#65758d)}.fpj-status small{color:var(--dim,#65758d);font-size:11px}.fpj-status .fpj-lost{color:#b42318}
.fpj-links{list-style:none;margin:0;padding:0;display:grid;gap:5px}.fpj-links li{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px;padding:5px 7px;border:1px solid var(--line,#d6e0ee);border-radius:8px;background:var(--surface1,#f7f9fc)}.fpj-links li b{flex:1 1 200px;font-weight:600}.fpj-links a{font-size:12px;color:var(--acc,#245fa9)}
.fq-project{display:block;font-size:12px;color:var(--dim,#65758d);margin-top:2px}.fq-link{border:0;background:none;padding:0;font:inherit;color:var(--acc,#245fa9);cursor:pointer}
.fs-chip.live{background:color-mix(in srgb,#c0392b 16%,transparent);border-color:color-mix(in srgb,#c0392b 40%,transparent)}/* 最终客户报价审批, margin and the plain-FCL quick quote (freight_quote_ui.js, freight_quote_desk.js) */
.fq-sell.red b,.fq-sell.red small{color:#b42318}.fq-margin{width:64px}.fq-qty{display:block;font-size:11px;color:var(--dim,#65758d)}
.fq-approval{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:6px 0;padding:7px 10px;border:1px solid #f3d19c;border-radius:10px;background:color-mix(in srgb,#e8891a 10%,transparent);font-size:12px}.fq-approval.ok{border-color:#bfe3cb;background:color-mix(in srgb,#1f8a4c 10%,transparent)}.fq-approval small{color:var(--dim,#65758d)}.fq-approval button{margin-left:auto}
.fqd{display:grid;gap:10px;margin-bottom:12px}.fqd-card{border:1px solid var(--line,#d6e0ee);border-radius:11px;background:var(--panel,#fff);padding:10px 12px;display:grid;gap:8px}.fqd-card>header small{display:block;color:var(--dim,#65758d);font-size:11px}.fqd-card h4{margin:0;font-size:13px}
.fqd-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}.fqd-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:7px 9px;border:1px solid var(--line,#d6e0ee);border-radius:9px;background:var(--surface1,#f7f9fc);font-size:12px}.fqd-row>div:first-child{flex:1 1 180px;display:grid}.fqd-row small{color:var(--dim,#65758d);font-size:11px}
.fqd-figures{display:grid;justify-items:end}.fqd-margin{color:#1f6b3d}.fqd-margin.red{color:#b42318}.fqd-actions{display:flex;gap:6px;align-items:center;flex:1 0 100%}.fqd-actions input{flex:1 1 200px}.fqd-state{color:var(--dim,#65758d)}.fqd-lines{margin:4px 0;padding-left:18px}.fqd-lines span{margin-left:8px;color:var(--dim,#65758d)}.fqd-empty{color:var(--dim,#65758d);font-size:12px}
.fqd-quick,.fqd-settings{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}.fqd-quick label,.fqd-settings label{display:grid;gap:3px;font-size:11px;color:var(--dim,#65758d)}.fqd-quick input{width:130px}.fqd-settings input{width:64px}
.fpj-source{display:block;font-size:11px;color:var(--acc,#245fa9)}.fpj-rate-rows li b{font-variant-numeric:tabular-nums}


/* 供应商询价 on a project (freight_rfqs.js): per stage, Hyfa's draft and checks, replies side by side */
.frq-host{display:contents}.frq{gap:10px}
.frq-stage{display:grid;gap:6px;padding:8px 9px;border:1px solid var(--line,#d6e0ee);border-radius:10px;background:var(--surface1,#f7f9fc)}
.frq-stage>header{display:flex;justify-content:space-between;align-items:center;gap:8px}
.frq-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.frq-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:6px 8px;border:1px solid var(--line,#d6e0ee);border-radius:8px;background:var(--panel,#fff);font-size:12px}
.frq-row>div{flex:1 1 220px;display:grid;gap:2px}.frq-row>div>b{display:inline}.frq-row small{color:var(--dim,#65758d);font-size:11px}.frq-row.open{border-color:var(--acc,#245fa9)}
.frq-detail{display:grid;gap:8px;padding:8px 10px;border:1px solid var(--line,#d6e0ee);border-radius:8px;background:var(--panel,#fff)}
.frq-detail h5{margin:2px 0;font-size:12px}
.frq-byline{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.frq-byline small{color:var(--dim,#65758d);font-size:11px}
.frq-checks{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:4px}
.frq-checks li{display:flex;flex-wrap:wrap;gap:5px;align-items:baseline;font-size:12px;padding:4px 7px;border-radius:7px;background:#eef8f1}
.frq-checks li span{font-weight:700;color:#1f6b3d}.frq-checks li small{flex:1 0 100%;color:var(--dim,#65758d);font-size:11px}
.frq-checks li.missing{background:#fdecec}.frq-checks li.missing span{color:#b42318}.frq-checks li.warn{background:#fff4e5}.frq-checks li.warn span{color:#9a5b00}
.frq-draft label.wide,.frq-proposal .wide{flex:1 0 100%}.frq-draft textarea{width:100%;box-sizing:border-box;font:inherit;font-size:12px;line-height:1.5}
.frq-check{display:flex!important;align-items:center;gap:5px;font-size:12px}
.frq-items{display:flex;flex-wrap:wrap;gap:4px 12px;flex:1 0 100%;margin:0;padding:6px 8px;border:1px solid var(--line,#d6e0ee);border-radius:8px}.frq-items legend{font-size:11px;color:var(--dim,#65758d)}
.frq-send{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.frq-send small{flex:1 1 220px;color:var(--dim,#65758d);font-size:11px}
.frq-proposal input.num{width:84px;text-align:right}.frq-proposal input.fpj-cur{width:46px}.frq-proposal td input,.frq-proposal td select{max-width:160px}
.frq-compare th small{display:block;font-weight:400;color:var(--dim,#65758d);font-size:11px}.frq-compare td small{display:block;color:var(--dim,#65758d);font-size:11px}
.frq-compare td.frq-best{background:#eef8f1}.frq-compare td.frq-best b{color:#1f6b3d}.frq-none{color:var(--dim,#65758d);text-align:center}
.frq-chosen{display:block;font-size:11px;color:var(--acc,#245fa9);font-weight:600}


/* 推送到 Shipthis in one step (freight_shipthis_push.js): one preview, one approval */
.fsp{gap:10px}.fsp-form label{position:relative}
.fsp-chosen{display:flex;align-items:center;gap:4px;min-height:30px;font-size:12px;color:var(--txt,#1d2a3a)}
.fsp-options{list-style:none;margin:2px 0 0;padding:4px;position:absolute;z-index:5;top:100%;left:0;right:0;border:1px solid var(--line,#d6e0ee);border-radius:8px;background:var(--panel,#fff);box-shadow:0 6px 18px rgba(0,0,0,.08)}
.fsp-options button{width:100%;text-align:left;border:0;background:none;padding:5px 7px;font:inherit;font-size:12px;cursor:pointer;border-radius:6px}.fsp-options button:hover{background:var(--surface1,#f7f9fc)}
.fsp-error{color:#b42318;font-size:11px}
.fsp-preview{display:grid;gap:8px}.fsp-preview h5{margin:4px 0 0;font-size:12px}
.fsp-pending{color:#9a5b00;font-size:11px}
.fsp-notes{margin:0;padding-left:18px;font-size:12px;color:var(--dim,#65758d)}
.fsp-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.fsp-actions input[data-fsp-note]{flex:1 1 200px}
