/* Workspace consistency layer — loaded last on purpose.
   Earlier stylesheets redefine the same header and tab components several times; this file is the single
   source of truth for them, so one rule set decides how they look on every page and width. */

.capacity-match{padding-block:var(--nt-space-3);overflow-wrap:break-word}
.capacity-match .button{min-height:44px}
.request-draft{min-width:0;margin-bottom:var(--nt-space-4)}
.request-draft summary{cursor:pointer;overflow-wrap:break-word}
.request-draft-body{display:grid;gap:var(--nt-space-3);padding-top:var(--nt-space-3);overflow-wrap:break-word;word-break:break-word}
.request-draft-body>*{min-width:0;max-width:100%}
.request-draft-body textarea{width:100%;box-sizing:border-box;resize:vertical}
.request-draft-body input[type=file]{display:block;max-width:100%;font:inherit}
.request-draft-body .search-actions{flex-wrap:wrap}
.request-draft-body .button{white-space:normal;overflow-wrap:break-word;max-width:100%}
.request-draft-hint{font-size:var(--nt-text-xs);font-weight:normal;overflow-wrap:break-word}
.request-draft-small{display:none}
@media(max-width:600px){.request-draft-wide{display:none}.request-draft-small{display:inline}}

/* Keep Messages in the sidebar lane on desktop. Studio otherwise moves it over the content. */
body.live-body:has(.workspace-shell)>.nubi-chat-dock{left:24px!important;right:auto!important}
html:not([data-editing-viewport]) body.live-body:has(.workspace-shell)>.nubi-chat-dock{bottom:24px!important}
@media(min-width:761px){body.live-body:has(.workspace-shell)>.nubi-chat-dock .chat-panel{left:0;right:auto}}
@media(max-width:760px){
 /* The fifth navigation slot is reserved for Messages, including safe-area padding.
    It cannot float above a Telegram badge or a card action while scrolling. */
 .live-main .mobile-dock{padding-right:72px!important;gap:4px!important;min-height:80px!important;align-items:stretch!important}
 .live-main .mobile-dock button{min-height:64px!important;line-height:1.3!important;overflow-wrap:normal!important;word-break:normal!important}
 body.live-body:has(.workspace-shell)>.nubi-chat-dock{left:auto!important;right:16px!important}
 html:not([data-editing-viewport]) body.live-body:has(.workspace-shell)>.nubi-chat-dock{bottom:calc(18px + env(safe-area-inset-bottom,0px))!important}
 .live-body:has(.workspace-shell){padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important}
 html:has(.workspace-shell){scroll-padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
}

/* A progress label is a whole word. Narrow desks use two columns rather than five slivers. */
.live-main .desk-progress{gap:12px!important;flex-wrap:wrap!important}
.live-main .desk-progress li{overflow-wrap:normal!important;word-break:normal!important;hyphens:manual!important;flex:1 1 100px!important}
.live-main .support-intro{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:24px!important}
.live-main .support-intro>.button{margin:0!important;min-width:140px!important;white-space:normal!important}
.live-main .notification-section-heading{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important}
.live-main .notification-section-heading>div{min-width:0!important;flex:1 1 140px!important}
.live-main .notification-status{flex:0 0 auto!important;max-width:100%!important;white-space:normal!important;line-height:1.4!important}
@media(max-width:900px){.live-main .support-intro{grid-template-columns:minmax(0,1fr)!important}.live-main .support-intro>.button{width:100%!important}}

/* Header controls: one size, one shape, one border, one baseline.
   !important is deliberate here: theme.css re-declares these controls per theme with selectors up to (0,5,0),
   and this layer must win on every theme. */
.live-header-right{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-width:0}
.live-header-right>*{margin:0;align-self:center}
.live-header-right :is(.island-toggle,.region-trigger,.account-profile-shortcut,.account-menu>summary,[data-theme-slot] summary){
 box-sizing:border-box!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-width:44px!important;height:44px!important;min-height:44px!important;padding:0 14px!important;margin:0!important;
 border:1px solid var(--nt-line)!important;border-radius:12px!important;background:var(--nt-surface)!important;color:var(--nt-ink);
 box-shadow:none!important;transform:none;vertical-align:middle}
.live-header-right :is(.island-toggle,.region-trigger,.account-profile-shortcut,.account-menu>summary,[data-theme-slot] summary) svg{width:20px;height:20px;margin:0;flex:0 0 auto}
/* Icon-only controls are squares at every width. */
.live-header-right :is(.island-toggle,[data-theme-slot] summary){width:44px!important;padding:0!important}
.live-header-right [data-theme-slot],.live-header-right [data-workspace-notifications],.live-header-right .account-menu,.live-header-right label{display:inline-flex;align-items:center;margin:0}
/* The region button shows its label only on wide screens; on phones it is an icon like the others. */
@media (max-width:899px){
 .live-header-right :is(.region-trigger,.account-profile-shortcut,.account-menu>summary){width:44px!important;padding:0!important}
 .live-header-right .region-trigger>:not(svg){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .live-header-right .account-menu>summary>:not(svg){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
/* Phones: smaller logo and gaps. Below 380px the profile shortcut (a duplicate of "Account details"
   in the account menu) is dropped so the remaining controls stay equal and on one line. */
@media (max-width:480px){
 .live-header{gap:8px}
 .live-header .live-brand img{width:112px;height:auto}
 .live-header-right{gap:6px}
}
@media (max-width:379px){
 .live-header .live-header-right .account-profile-shortcut{display:none!important}
 .live-header .live-brand img{width:96px}
}

/* UI text never breaks inside a word. Long identifiers (file names, emails) keep their own rules. */
.live-main :is(button,.button,summary,th,label,legend,h1,h2,h3,h4,.pill,.badge,[role=tab],nav a){overflow-wrap:normal;word-break:normal;hyphens:manual}

/* Record tabs (Overview / Offers / Messages / Activity): one segmented control.
   !important is deliberate: workspace-studio.css scopes its tab rules under
   ":root:root[data-theme][data-theme-files] .live-body:has(.workspace-shell)" (specificity 0,7,0). */
.live-main .record-navigation{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;overflow-x:auto!important;scrollbar-width:none;margin:16px 0 0!important;padding:4px!important;border:1px solid var(--nt-line)!important;border-radius:12px!important;background:var(--nt-paper)!important;grid-template-columns:none!important}
.live-main .record-navigation::-webkit-scrollbar{display:none}
.live-main .record-navigation button{flex:1 0 auto!important;min-width:max-content!important;min-height:40px!important;margin:0!important;padding:8px 12px!important;
 white-space:nowrap!important;overflow-wrap:normal!important;font:inherit;font-size:.875rem!important;font-weight:600!important;line-height:1.2!important;
 border:0!important;border-radius:8px!important;background:transparent!important;color:var(--nt-ink-muted)!important;
 text-align:center!important;justify-content:center!important;display:inline-flex!important;align-items:center!important}
.live-main .record-navigation [aria-current]{background:var(--nt-surface)!important;color:var(--nt-ink)!important;box-shadow:inset 0 0 0 1px var(--nt-line)!important}
/* Phones: four labels do not fit one row in every language (RU "Предложения", "Активность"),
   so they form an even 2×2 grid instead of being cut off or broken. */
@media (max-width:519px){
 .live-main .record-navigation{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important}
 .live-main .record-navigation button{min-width:0!important;padding:8px 6px!important;text-overflow:ellipsis;overflow:hidden}
}

/* The "Account" chevron is a text glyph that sits low; centre it with the label. */
.live-header-right .account-menu>summary .account-chevron{display:inline-flex;align-items:center;line-height:1;transform:translateY(-2px)}

/* Sections that are mounted for optional content must not show as empty boxes. */
.live-main .panel:empty,.live-main [data-priority-state]:empty{display:none}

/* Data tables on phones scroll sideways instead of crushing their headers. */
@media (max-width:640px){
 .live-main table{display:block;max-width:100%;overflow-x:auto}
 .live-main th{white-space:nowrap}
 /* Partner contact rows stack: name, then phone numbers. */
 .live-main .profile-project{flex-wrap:wrap}
 .live-main .profile-project>*{min-width:0}
 .live-main .profile-project>strong{flex:1 0 100%}
}

/* ---- Design pass 2026-11-22: findings from the signed-in workspace audit ---- */

/* Offer comparison on phones: each offer is a card with labelled rows instead of a crushed table. */
@media (max-width:1100px){
 .live-main table.desk-comparison{display:block!important;overflow:visible!important;border:0}
 .live-main .desk-comparison caption{display:block;width:auto;text-align:start;white-space:normal;font-weight:600;margin:0 0 8px}
 .live-main .desk-comparison thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .live-main .desk-comparison tbody,.live-main .desk-comparison tr{display:block!important;width:100%!important}
 .live-main .desk-comparison tr{border:1px solid var(--nt-line);border-radius:12px;padding:4px 14px;margin:0 0 12px;background:var(--nt-paper)}
 .live-main .desk-comparison td{display:grid!important;grid-template-columns:minmax(96px,38%) minmax(0,1fr)!important;width:auto!important;max-width:none!important;min-width:0!important;gap:12px;align-items:start;padding:10px 0;border:0;border-bottom:1px solid var(--nt-line);text-align:start;white-space:normal}
 .live-main .desk-comparison td::before{content:attr(data-label);color:var(--nt-ink-muted);font-size:.8125rem;font-weight:500}
 .live-main .desk-comparison td:first-child,.live-main .desk-comparison td:last-child{display:block!important}
 .live-main .desk-comparison td:first-child::before,.live-main .desk-comparison td:last-child::before{display:none}
 .live-main .desk-comparison td:last-child{border-bottom:0;padding-bottom:14px}
 .live-main .desk-comparison td:last-child :is(.button,button){width:100%!important;justify-content:center}
 .live-main .desk-comparison .desk-pill{display:inline-flex!important;width:auto!important;margin-left:6px}
}

/* Declared roles ("Carrier · Declared by company") are compact chips, not large boxes. */
.live-main .declared-roles{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.live-main details.declared-role{display:inline-block;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;max-width:100%;min-height:0!important}
.live-main details.declared-role>summary{display:inline-flex!important;align-items:center;gap:6px;min-height:32px!important;padding:4px 12px!important;margin:0!important;border:1px solid var(--nt-line)!important;border-radius:999px!important;background:var(--nt-surface)!important;color:var(--nt-ink);font-size:.8125rem!important;font-weight:600;line-height:1.3;cursor:pointer;white-space:normal}
.live-main details.declared-role[open]{display:block;width:100%}
.live-main details.declared-role[open]>:not(summary){margin:8px 0 0;font-size:.8125rem;color:var(--nt-ink-muted)}

/* Every other disclosure is a comfortable touch target. */
.live-main details:not(.declared-role)>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer}

/* Checkboxes and radios: visible size, and the whole label row is the tap target. */
.live-main input:is([type=checkbox],[type=radio]){width:20px;height:20px;flex:0 0 auto;margin:0;accent-color:var(--nt-ink)}
.live-main label:has(>input:is([type=checkbox],[type=radio])){min-height:44px;display:flex;align-items:center;gap:10px;cursor:pointer}

/* Company identity: avatar sits next to the name, not floating in the middle of a tall block. */
.live-main .company-identity{align-items:flex-start}
.live-main .company-identity>.company-avatar,.live-main .company-identity>img{flex:0 0 auto;align-self:flex-start}

/* Activity numbers read as numbers. */
.live-main .activity-totals .daily-metrics>.panel{padding:16px!important;min-height:0!important;height:auto!important;gap:0!important}
.live-main .activity-totals .daily-metrics strong{display:block;font-size:clamp(1.75rem,4vw,2.25rem);line-height:1.1;font-variant-numeric:tabular-nums;color:var(--nt-ink)}
.live-main .activity-totals .daily-metrics p{margin:6px 0 0;color:var(--nt-ink-muted);font-size:.875rem}

/* Empty helper notes take no space. */
.live-main .draft-note:empty{display:none}

/* Short navigation names also have a single-line safety net, including the More sheet. */
.sidebar-link span{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important;flex:1 1 auto!important}
.sidebar-link small{flex:0 0 auto!important}

/* KPI hierarchy: number, label, then a quiet inline link. Defeat studio panel padding/margins. */
.live-main .dash-kpi{display:flex!important;flex-direction:column!important;align-items:flex-start!important;box-sizing:border-box!important;min-width:0!important;min-height:108px!important;height:auto!important;padding:12px 16px!important;gap:4px!important}
.live-main .dash-kpi>strong{order:-1!important;margin:0!important;font-size:2rem!important;line-height:1!important}
.live-main .dash-kpi>span{min-height:0!important;margin:0!important;font-size:.8125rem!important;line-height:1.2!important}
.live-main .dash-kpi>small{display:inline-flex!important;align-items:center!important;gap:4px!important;margin:0!important;font-size:.6875rem!important;line-height:1.2!important}

/* The empty inbox occupies one full panel and never enters the capped scrolling list. */
.live-main .shared-inbox.inbox-is-empty{grid-template-columns:minmax(0,1fr)!important}
.live-main .shared-inbox .inbox-empty{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:24px!important;margin:0!important}
.live-main .inbox-empty>.button{min-height:44px!important}

/* A route summary only occupies space when there are route facts to show. */
.live-main [data-search-sentence]:empty{display:none!important}
.live-main [data-search-sentence]:not(:empty){display:inline-block!important;max-width:100%!important;box-sizing:border-box!important;margin:12px 0 0!important;padding:8px 12px!important;border:1px solid var(--nt-line)!important;border-radius:12px!important;color:var(--nt-ink-muted)!important;background:var(--nt-paper)!important;font-size:.8125rem!important;line-height:1.5!important;overflow-wrap:break-word}

/* Labels, including the text, activate the small checkbox/switch; studio must not shrink the row. */
.live-main label:has(>input:is([name=essential_email_enabled],[name=matching_email_enabled],[name=services],[name=modes],[name=confirm_tax_identity],[name=remove_logo])){display:flex!important;align-items:center!important;min-height:44px!important;box-sizing:border-box!important;gap:10px!important;cursor:pointer}
.live-main label:has(>input:is([name=services],[name=modes],[name=confirm_tax_identity],[name=remove_logo])){padding-block:8px!important}
.live-main label:has(>input:is([name=essential_email_enabled],[name=matching_email_enabled])){padding:12px!important;justify-content:space-between!important}

@media (max-width:600px){
 .live-main .dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 .live-main .dash-kpi{min-height:96px!important;padding:8px 10px!important;gap:3px!important}
 .live-main .dash-kpi>strong{font-size:1.75rem!important}
 .live-main .dash-kpi>span{font-size:.75rem!important;line-height:1.15!important}
 .live-main .dash-kpi>small{font-size:.625rem!important;line-height:1.2!important;white-space:nowrap!important}
 .live-main .customer-search>[data-crm-export]{flex:1 0 100%!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;white-space:nowrap!important;justify-content:center!important}
 .live-main .inbox-empty{padding:20px!important}
 .live-main .inbox-empty>.button{width:100%!important;justify-content:center!important}
}

/* Search and filter toolbars stack on phones so fields keep a usable width. */
@media (max-width:600px){
 .live-main .search-toolbar{grid-template-columns:minmax(0,1fr)!important}
 .live-main .search-toolbar>label{min-width:0}
 .live-main .search-toolbar :is(input,select){width:100%}
}

/* First-run recovery keeps the shareable address intact without widening the panel. */
.live-main .first-run-panel h2{margin-top:24px;font-size:1.125rem}
.live-main .first-run-email{display:block;margin-top:4px;overflow-wrap:break-word}
.live-main .first-run-panel .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box}

/* The desk heading is a panel at every width, including phones. */
.live-main .desk-heading{border:1px solid var(--nt-line)!important;border-radius:16px!important;background:var(--nt-surface)!important;padding:20px!important;box-sizing:border-box}
.live-main .desk-checklist{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:12px}
.live-main .desk-checklist li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;line-height:1.5}
.live-main .desk-checklist-marker{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid var(--nt-line);border-radius:50%;font-size:.8125rem}
.live-main .desk-checklist-marker svg{width:18px;height:18px}
.live-main .desk-checklist small{color:var(--nt-ink-muted);font-size:.75rem}
.live-main .desk-checklist .is-done .desk-checklist-marker{background:var(--nt-success-bg);color:var(--nt-success)}

/* Override the studio's (0,7,0) panel geometry. A closed disclosure is only its summary. */
.live-main details:is(.desk-activity,.workday-document-note){display:block!important;height:auto!important;min-height:0!important;padding:0!important;gap:0!important;box-sizing:border-box}
.live-main details:is(.desk-activity,.workday-document-note)>summary{display:flex!important;align-items:center!important;min-height:56px!important;padding:12px 20px!important;margin:0!important;box-sizing:border-box;list-style:none;line-height:1.4;cursor:pointer}
.live-main details:is(.desk-activity,.workday-document-note)>summary::-webkit-details-marker{display:none}
.live-main details:is(.desk-activity,.workday-document-note)>summary::after{content:'';margin-left:auto;flex:0 0 auto;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.live-main details:is(.desk-activity,.workday-document-note)[open]>summary::after{transform:rotate(225deg)}
.live-main details:is(.desk-activity,.workday-document-note)[open]>:not(summary){margin:0 20px 20px!important}

@media (max-width:600px){
 /* Quotes also use inline-filter, whose flex rules otherwise override search-toolbar. */
 .live-main .quotes-toolbar .inline-filter{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .live-main .quotes-toolbar .inline-filter>label{width:100%!important;min-width:0!important;max-width:none!important}
 .live-main .quotes-toolbar .inline-filter :is(input,select,button){width:100%!important;min-width:0!important;min-height:44px!important;box-sizing:border-box}
 .live-main .desk-heading{padding:16px!important}
 .live-main .desk-getting-started>.button{width:100%;white-space:normal}
}

/* The country picker sits inside its label, so plain label>select rules miss it; match the other fields. */
.onboarding-panel form label .route-picker{margin-top:8px}
.onboarding-panel form label .route-picker :is(input,select){width:100%;height:46px;min-height:46px;padding:11px 12px;border:1px solid var(--nt-line)!important;border-radius:var(--nt-radius-sm);background:var(--nt-surface);color:var(--nt-ink);box-sizing:border-box;margin:0;font:inherit;font-size:16px}

/* CRM step 1 (2026-11-24): stacked stages and forms must beat studio geometry. */
.live-main .crm-workspace,.live-main .crm-workspace :is(section,article,aside,form,label,details){min-width:0!important;max-width:100%!important;box-sizing:border-box}
.live-main .crm-stage-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
.live-main .crm-stage{padding:16px!important;border:1px solid var(--nt-line);border-radius:var(--nt-radius-sm)}
.live-main .crm-stage-empty{padding:10px 16px!important}
.live-main .crm-stage-empty>h3{margin:0!important}
.live-main .crm-stage-chips{display:flex!important;flex-wrap:wrap!important;gap:8px!important;list-style:none;padding:0!important;margin:12px 0!important}
.live-main .crm-stage-chips>li{padding:6px 10px!important;border:1px solid var(--nt-line);border-radius:var(--nt-radius-sm);margin:0!important;font-size:.8125rem!important}
.live-main .crm-is-empty>.live-columns{grid-template-columns:minmax(0,1fr)!important}
.live-main .crm-pipeline>.empty,.live-main .crm-empty-customers>.empty{display:block!important;min-height:0!important;padding:0!important;margin:12px 0!important;text-align:left!important;background:transparent!important;border:0!important}
.live-main .crm-workspace :is(h3,p,li,strong,span){min-width:0!important;max-width:100%!important;overflow-wrap:break-word!important;word-break:normal!important;white-space:normal!important}
.live-main .crm-workspace :is(input,select,textarea,button,summary){min-height:44px!important;min-width:44px!important;max-width:100%!important;box-sizing:border-box}
.live-main .crm-workspace summary{display:flex!important;align-items:center!important;cursor:pointer}
.live-main .crm-pipeline-filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto!important;gap:12px!important;align-items:end!important}
.live-main .crm-deal-list{list-style:none;padding:0;margin:0}
.live-main .crm-deal-list li{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;gap:12px!important;padding:8px 0!important}
.live-main .crm-stage-totals{padding-left:20px}
@media(max-width:760px){
 .live-main .crm-workspace .live-columns,.live-main .crm-workspace .crm-pipeline-filters,.live-main .crm-workspace form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;gap:12px!important}
 .live-main .crm-workspace :is(input,select,textarea,button){width:100%!important}
 .live-main .crm-workspace .office-task{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
}

/* Positive company trust signal; the existing link token supplies accessible blue in both themes. */
.company-verified-badge{display:inline-block!important;width:18px!important;height:18px!important;min-width:18px;flex:0 0 18px;vertical-align:-3px;margin-inline-start:6px;color:var(--nt-link,#265dd7)}

/* Shared spacing rhythm. Geometry is !important to beat studio's scoped (0,7,0)
   rules. Keep colour, type, and the existing multi-column component layouts. */
:root{--workspace-space-8:8px;--workspace-space-12:12px;--workspace-space-16:16px;--workspace-space-24:24px;--workspace-space-32:32px;--workspace-form-width:808px}
.live-main form{row-gap:var(--workspace-space-16)!important;column-gap:var(--workspace-space-12)!important;min-width:0!important;box-sizing:border-box}
.live-main form:not(.inline-filter,.search-toolbar,.customer-search,.crm-pipeline-filters,.lead-add-form){display:grid!important}
.live-main form>label{margin-block:0!important;min-width:0!important}
.live-main form :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.live-main :is(.panel,form,fieldset)>:where(h1,h2,h3,h4,p,ul,ol,dl,form,fieldset,section,article,aside,details,div):where(:not(:first-child):not([hidden]):not(:empty)){margin-block-start:var(--workspace-space-16)!important}
.live-main :is(.panel,form,fieldset)>:is(h2,h3,h4):not(:first-child){margin-block-start:var(--workspace-space-24)!important}
/* A form's last action needs breathing room before the next section, including
   standalone submit buttons on older forms without an action-row wrapper. */
.live-main form>:is(button,.button,.search-actions,.checkout-navigation,.wizard-actions,.guided-actions,.form-actions){margin-block:var(--workspace-space-24)!important}
.live-main form>fieldset>:is(button,.button,.search-actions,.form-actions){margin-block:var(--workspace-space-24)!important}
.live-main :is(form,button,.button):not([hidden])+:is(h1,h2,h3,h4){margin-block-start:var(--workspace-space-24)!important}
.live-main .panel>:is(button,.button){margin-block-end:var(--workspace-space-16)!important}
.live-main :is(.panel,form)>:is(button,.button)+:is(p,ul,ol,dl,section,article,aside,details,div):not(:empty){margin-block-start:var(--workspace-space-16)!important}
.live-main :is(.search-actions,.checkout-navigation,.wizard-actions,.guided-actions,.form-actions,.workspace-actions,.desk-actions,.board-actions,.shipment-card-actions,.compare-actions,.inbox-header-actions,.freight-mode-filters,.desk-segment){display:flex!important;flex-wrap:wrap!important;gap:var(--workspace-space-12)!important;align-items:center}
.live-main :is(.search-actions,.checkout-navigation,.wizard-actions,.guided-actions,.form-actions,.workspace-actions,.desk-actions,.board-actions,.shipment-card-actions,.compare-actions,.inbox-header-actions,.freight-mode-filters,.desk-segment)>:is(button,.button){margin:0!important;max-width:100%!important}
/* Standalone controls in legacy panels also wrap with space between them. */
.live-main :is(.panel,fieldset)>:is(button,.button)+:is(button,.button){margin-inline-start:var(--workspace-space-12)!important}
.live-main .record-navigation{gap:var(--workspace-space-12)!important}
.live-main .sidebar-group>.sidebar-link+.sidebar-link{margin-block-start:var(--workspace-space-12)!important}
.live-main .mobile-dock{gap:var(--workspace-space-8)!important}
.live-main .company-identity :is(.company-name,.company-verified-badge)+p{margin-block-start:var(--workspace-space-12)!important}
.live-main .board-heading{row-gap:var(--workspace-space-16)!important}
.live-main .provider-network>.button{margin-block-end:var(--workspace-space-16)!important}
/* Flow stacks share one rule whether they render records, optional guidance,
   analytics feedback or a disclosure after a toolbar. */
.live-main :is(.desk-row,.board-heading,.tax-identity-form)+:is(article,section,p,div,aside,details){margin-block-start:var(--workspace-space-16)!important}
.live-main :is(table,label)+:is(button,.button,p,div){margin-block-start:var(--workspace-space-16)!important}
.live-main :is(button,.button)+small{display:block;margin-block-start:var(--workspace-space-12)!important}
.live-main .profile-edit-columns{row-gap:var(--workspace-space-24)!important}
.live-main .capability-checks{row-gap:var(--workspace-space-16)!important;column-gap:var(--workspace-space-12)!important}
.live-main .workspace-shell+p{margin-block-start:var(--workspace-space-16)!important}
.live-main [data-crm-analytics]>label+div{margin-block-start:var(--workspace-space-16)!important}
@media(max-width:760px){
 .live-main .profile-edit-columns{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
}

/* One-column editing surfaces should occupy their panel. In a genuine grid,
   the surrounding guide/preview remains beside the form. The width includes
   24px panel padding on both sides, leaving 760px of usable form content. */
.live-main :is(.panel,.onboarding-panel):has(>form:not(.search-toolbar,.inline-filter,[data-workspace-filter])):not(:where(.notification-settings *,.live-columns *,.daily-grid *,.profile-edit-columns *,.tool-grid *)),
.live-main [data-bank-transfer]:not(:where(.notification-settings *,.live-columns *,.daily-grid *,.profile-edit-columns *,.tool-grid *)){width:100%!important;max-width:var(--workspace-form-width)!important;min-width:0!important;box-sizing:border-box;justify-self:start;align-self:start}
.live-main :is(.panel,.onboarding-panel)>form:not(.search-toolbar,.inline-filter,[data-workspace-filter]){width:100%!important;max-width:none!important;min-width:0!important}
.live-main [data-bank-transfer]>.billing-form{width:100%!important;max-width:none!important}
.live-main [data-bank-transfer] [data-billing-status]:empty,
.live-main [data-bank-transfer] :is(.billing-invoices,[data-invoice-detail]):empty{display:none!important}
.live-main [data-bank-transfer]>.billing-form+h3{margin-block-start:var(--workspace-space-32)!important}
.live-main [data-bank-transfer]>[data-refresh]{margin-block:var(--workspace-space-16)!important}
.live-main [data-bank-transfer]>.billing-invoices{margin-block-start:var(--workspace-space-16)!important}
@media(max-width:600px){
 .live-main :is(.search-actions,.checkout-navigation,.wizard-actions,.guided-actions,.form-actions)>:is(button,.button){flex:1 1 auto;min-width:0!important}
}

/* The FX note can follow the workspace shell directly; keep it off the panel edge. */
.live-main>.fx-rate-note{margin-top:16px!important}

/* Channel cards fill their grid column; single-form width limits do not belong here. */
.live-main .notification-settings{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:24px!important;align-items:start}
.live-main .notification-settings :is(.notification-controls-stack,.notification-explainer){display:grid;gap:24px!important;min-width:0;align-content:start}
.live-main .notification-settings .panel{width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box;margin:0!important;padding:24px!important;border-radius:16px!important}
.live-main .notification-settings .notification-section-heading{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:0 0 24px!important}
.live-main .notification-settings .notification-section-heading>div{flex:1;min-width:0}
.live-main .notification-settings .notification-section-heading h2{margin:0!important}
.live-main .notification-status{display:inline-flex;align-items:center;flex:0 0 auto;max-width:100%;padding:4px 10px;border:1px solid var(--nt-line);border-radius:999px;background:var(--nt-paper);color:var(--nt-ink-muted);font-size:.8125rem;font-weight:600;line-height:1.5}
.live-main .notification-status[data-channel-status=connected]{color:var(--nt-ink);border-color:var(--nt-ink-muted)}
/* !important overrides the studio's nested, high-specificity blanket warning treatment.
   Theme tokens supply readable light and dark palettes for each tone. */
.live-main .telegram-settings .telegram-feedback{background:var(--nt-paper)!important;color:var(--nt-ink)!important;border-color:var(--nt-line)!important}
.live-main .telegram-settings .telegram-feedback[data-tone=info]{background:var(--nt-paper)!important;color:var(--nt-ink)!important}
.live-main .telegram-settings .telegram-feedback[data-tone=success]{background:var(--nt-success-bg)!important;color:var(--nt-success)!important;border-color:var(--nt-success)!important}
.live-main .telegram-settings .telegram-feedback[data-tone=error]{background:var(--nt-warning-bg)!important;color:var(--nt-warning)!important;border-color:var(--nt-warning)!important}
.live-main .telegram-settings .telegram-feedback:empty{display:none}
.live-main .notification-settings :is(.notification-language,.notification-save,.telegram-actions){margin-block-start:24px!important}
.live-main .notification-settings :is(.notification-save,.telegram-actions){display:flex;flex-wrap:wrap;gap:12px}
.live-main .notification-settings :is(.notification-save,.telegram-actions)>.button{margin:0!important}
.live-main .notification-settings .notification-events{gap:16px;margin:16px 0 0!important;padding:0;line-height:1.5}
.live-main .notification-settings .notification-privacy{display:flex;gap:12px}
.live-main .notification-settings .notification-privacy>div{margin:0!important;min-width:0}
.live-main .notification-settings .notification-privacy h2{margin:0 0 8px!important}
.live-main .notification-settings .notification-privacy p{margin:0!important}
@media(min-width:1100px){.live-main .notification-settings{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* Shared switches: off tracks have >=3:1 panel contrast; on tracks use brand yellow and a dark thumb. */
:root{--workspace-switch-off:#718596;--workspace-switch-border:#4d6475;--workspace-switch-thumb:#fff;--workspace-control-focus:#265dd7}
:root[data-theme=dark]{--workspace-switch-off:#728a9a;--workspace-switch-border:#a5bdcc;--workspace-control-focus:#f4c430;--workspace-secondary-border:#829eaf;--workspace-secondary-bg:#244656;--workspace-secondary-hover:#335b6d;--workspace-secondary-hover-border:#b7cbd5}
input[type=checkbox][role=switch]{appearance:none!important;display:inline-block!important;position:relative!important;box-sizing:border-box!important;flex:0 0 48px!important;width:48px!important;height:28px!important;min-height:28px!important;padding:0!important;margin:0!important;border:1px solid var(--workspace-switch-border)!important;border-radius:999px!important;background:var(--workspace-switch-off)!important;background-image:none!important;box-shadow:none!important;cursor:pointer}
input[type=checkbox][role=switch]::before{content:""!important;position:absolute!important;top:3px!important;left:3px!important;width:20px!important;height:20px!important;border-radius:50%!important;background:var(--workspace-switch-thumb)!important;box-shadow:none!important;transform:none!important}
input[type=checkbox][role=switch]:checked{background:#f4c430!important;border-color:#8c7015!important}
input[type=checkbox][role=switch]:checked::before{left:23px!important;background:#102936!important}
input[type=checkbox][role=switch]:focus-visible{outline:3px solid var(--workspace-control-focus)!important;outline-offset:4px!important}
/* Secondary actions remain distinct from dark panels, including dialog actions outside live-main. */
:root[data-theme=dark] .button:not(.primary){border:1px solid var(--workspace-secondary-border)!important;background:var(--workspace-secondary-bg)!important;color:#f1f6f8!important;background-image:none!important;box-shadow:none!important}
:root[data-theme=dark] .button:not(.primary):hover:not(:disabled){background:var(--workspace-secondary-hover)!important;border-color:var(--workspace-secondary-hover-border)!important}
:root[data-theme=dark] .button:not(.primary):focus-visible{outline:3px solid var(--workspace-control-focus)!important;outline-offset:3px!important}

/* CRM marketplace links: the same disclosure and action rhythm on phone and desktop. */
.workspace-content .crm-marketplace-actions { margin-block: 16px !important; }
.workspace-content .crm-marketplace-context { margin-block: 16px !important; padding: 16px !important; }
.workspace-content [data-crm-marketplace] { display: flex !important; flex-wrap: wrap !important; gap: 12px !important; align-items: center !important; min-width: 0 !important; padding-top: 12px !important; }
.workspace-content [data-crm-marketplace] p { flex-basis: 100% !important; margin: 0 !important; overflow-wrap: anywhere !important; }
.workspace-content .crm-marketplace-actions .button,
.workspace-content [data-crm-marketplace] .button { min-height: 44px !important; white-space: normal !important; }
.workspace-content .crm-quote-suggestion { padding: 8px 12px !important; }
@media (max-width: 600px) {
 .workspace-content [data-crm-marketplace] .button { width: 100% !important; }
}

/* Long translated tabs and offer facts must stay readable inside nested phone cards. */
.live-main .record-navigation button{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;min-height:44px!important}
.live-main .mobile-offer-highlights{grid-template-columns:minmax(0,1fr)!important;gap:16px!important;padding:16px!important}
.live-main .mobile-offer-highlights>div{display:grid!important;grid-template-columns:minmax(96px,42%) minmax(0,1fr)!important;gap:12px!important;min-width:0!important}
.live-main .mobile-offer-card :is(dt,dd){margin:0!important;min-width:0!important;overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;line-height:1.5!important}
.live-main .profile-save-bar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;min-width:0!important}
.live-main .profile-save-bar>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow-wrap:normal!important;word-break:normal!important}
.live-main .profile-save-bar>.button{justify-self:start!important;white-space:normal!important}
.live-main .activity-totals .daily-metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important;gap:16px!important}
.live-main .activity-totals .daily-metrics p{overflow-wrap:normal!important;word-break:normal!important}
@media(max-width:760px){.live-main details.declared-role>summary{min-height:44px!important}}
/* esbuild nests studio rules under a compound selector; match its specificity here. */
.live-body .live-main .workspace-shell .workspace-content .shared-inbox .panel.inbox-conversation>.inbox-offer-details{margin-block-start:16px!important}
.live-main .thread-item span{color:var(--nt-ink)!important}
.live-main .intent-card small{color:var(--nt-ink)!important}
.live-main form output:empty{display:none!important}
/* The accountant register is a toolbar, including on staff phones. */
.live-main .billing-register-filters{display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:end!important}
.live-main .billing-register-filters :is(input,select,button){min-height:44px!important;margin:0!important}

.live-main .billing-register-filters :is(input,select){flex:1 1 180px!important;min-width:0!important;max-width:100%!important}
.live-main .billing-register-filters button{padding:8px 12px!important;border:1px solid var(--nt-line)!important;border-radius:8px!important;background:var(--nt-surface)!important;color:var(--nt-ink)!important;font:inherit!important;white-space:nowrap!important}
.live-main .billing-register-table{max-width:100%;overflow-x:auto}
.live-main .table-scroll{min-width:0!important;max-width:100%!important;overflow-x:auto!important}

/* Card controls are content, including inside semantic footers. */
.live-main :is(.live-shipment,.quote-card,.mobile-offer-card) .button>span{display:inline-flex}
/* Match desk-activity disclosures, including nested offer and action details. */
.live-main :is(.live-shipment,.quote-card,.mobile-offer-card,.compose-rail) details>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer}
.live-main :is(.live-shipment,.quote-card,.mobile-offer-card,.compose-rail) details>summary::-webkit-details-marker{display:none}
.live-main :is(.live-shipment,.quote-card,.mobile-offer-card,.compose-rail) details:not(.record-actions)>summary::after{content:'';margin-left:auto;flex:0 0 auto;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.live-main :is(.live-shipment,.quote-card,.mobile-offer-card,.compose-rail) details[open]>summary::after{transform:rotate(225deg)}
/* Keep the menu anchored to the card edge when primary actions wrap. */
.live-main .shipment-card-actions>.record-actions{margin-left:auto!important;align-self:center!important}
.live-main .record-actions-menu .button{max-width:100%!important;white-space:normal!important}
.live-main .record-actions-menu .button>span{min-width:0}

.request-draft-choices,.quick-offer-tools{display:flex;flex-wrap:wrap;gap:var(--nt-space-3);margin-bottom:var(--nt-space-4)}
.request-draft-choices .button{white-space:normal;min-height:44px;flex:1 1 220px}
.quick-offer-tools>*{min-width:0;max-width:100%}
.quick-offer-tools>label{flex:1 1 200px}
.shipment-compose-panel>.compose-body:only-child{grid-column:1/-1;width:100%;min-width:0}
.quick-offer-tools summary,.quick-offer-tools .button{min-height:44px}
.draft-filled{outline:2px solid var(--nt-line);outline-offset:3px;background:var(--nt-surface)}
@media(max-width:600px){[data-live-form=shipment-wizard] button,[data-live-form=shipment-wizard] summary,[data-live-form=quote] button,[data-live-form=quote] summary{min-height:44px}}
@media(max-width:600px){[data-live-form=shipment-wizard] .target-budget-fields{grid-template-columns:minmax(0,1fr)}}

/* Request and offer work surfaces use the same controls and workspace tokens. */
.live-main .volume-helper{grid-column:1/-1;border:1px solid var(--nt-line);border-radius:var(--nt-radius-md,12px);padding:var(--nt-space-3);margin-block:var(--nt-space-3);min-width:0}
.live-main .volume-helper>summary{padding-block:var(--nt-space-3);font-weight:600}
.live-main .volume-helper-body{display:grid;gap:var(--nt-space-3);padding-top:var(--nt-space-3)}
.live-main .volume-helper output{font-size:1.125rem;font-weight:600;color:var(--nt-ink)}
.live-main .volume-helper .button{justify-self:start}
.live-main .repeat-request{margin-bottom:var(--nt-space-4)}
.live-main .repeat-request>label{display:flex;align-items:center;gap:var(--nt-space-3);margin:0}
.live-main .repeat-request select{flex:1;min-width:0;height:44px}
.live-main .offer-live-summary{border-block:1px solid var(--nt-line);padding-block:var(--nt-space-4);margin-block:var(--nt-space-4);color:var(--nt-ink)}
.live-main .offer-live-summary>strong{font-size:1.25rem}
.live-main .offer-live-summary dl{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);gap:var(--nt-space-3);margin:0}
.live-main .offer-live-summary :is(dt,dd){margin:0;overflow-wrap:break-word}
.live-main [data-forms10] :is(input,select,textarea){scroll-margin-block:120px}
.live-main [data-forms10] [hidden]{display:none!important}
.live-main [data-forms10] select{padding-top:0!important;padding-bottom:0!important;height:44px!important;line-height:normal!important}
.live-main .forms10-secondary{display:flex;flex-wrap:wrap;gap:var(--nt-space-3);margin-block:var(--nt-space-3)}
.live-main [data-forms10]>p{margin-block:var(--nt-space-3)!important}
.live-main [data-forms10] .field-error{color:var(--nt-ink);font-weight:500}
.live-main [data-forms10] [aria-invalid=true]{border-color:var(--nt-ink-muted);box-shadow:none}
.live-main [data-forms10] .form-error-summary{background:var(--nt-surface);color:var(--nt-ink);border:1px solid var(--nt-line);padding:var(--nt-space-3)}
.live-main [data-forms10] [data-smart]:empty{display:none}
.live-main [data-forms10] .quick-offer-tools{align-items:end}
.live-main [data-forms10] .quick-offer-tools>p:empty{display:none}
.live-main [data-live-form=quote] details[open]>:not(summary)+*{margin-top:var(--nt-space-3)!important}
.live-main [data-live-form=quote] .quick-offer-tools details .button{margin-right:var(--nt-space-2)}
.request-draft-body>label.button{display:block;width:100%;box-sizing:border-box}
.request-draft-body input[type=file]{width:100%;min-height:44px}
.request-draft-body textarea{font-size:16px}
.live-main [data-forms10] [data-hs-suggestions] button{margin-block:var(--nt-space-3)}
@media(max-width:600px){
 .live-main [data-forms10] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,button,summary){min-height:44px;font-size:16px}

 .live-main .forms10-actions{position:static;padding:0;border:0;border-radius:0;margin-block:var(--nt-space-4)!important;display:flex!important;gap:var(--nt-space-3)!important}
 .live-main .forms10-actions.forms10-dock{position:fixed;left:0;right:0;bottom:var(--forms10-nav);z-index:69;background:var(--nt-surface);border-top:1px solid var(--nt-line);padding:var(--nt-space-2) var(--nt-space-4)}
 .forms10-dock .button{width:100%;min-height:44px}
 body:has(.forms10-dock){padding-bottom:calc(180px + env(safe-area-inset-bottom))}
 .live-main .forms10-actions>.primary{flex:1 1 100%!important;width:100%!important;white-space:normal!important}
 .live-main [data-forms10]{padding-bottom:var(--nt-space-4)}
 .live-main [data-forms10] .offer-live-summary dl{grid-template-columns:minmax(0,1fr)}
 .live-main [data-forms10] .offer-live-summary dd{margin-bottom:var(--nt-space-2)}
 html[data-editing-viewport] .live-main .forms10-actions{bottom:calc(var(--editing-inset,0px) + 8px)}
 html:has([data-forms10]){scroll-padding-bottom:250px}
 .live-main [data-forms10] :is(input,select,textarea){scroll-margin-bottom:250px}
}

/* Compact request rhythm, with a single field gap and native-size touch controls. */
.live-main .request-draft-choices{display:grid;gap:var(--nt-space-2);padding:var(--nt-space-3);border:1px solid var(--nt-line);border-radius:var(--nt-radius-md);margin-bottom:var(--nt-space-4)}
.live-main .request-draft-choices[hidden]{display:none}
.live-main .request-draft-choices p{margin:0!important;font-size:.875rem}
.live-main .request-draft-choices .button{justify-self:start;min-height:44px}
.live-main [data-forms10] .route-endpoint{border:0;padding:0;margin:0;min-width:0;display:grid;gap:var(--nt-space-2)}
.live-main [data-forms10] :is(.compose-route-grid,.shipment-essential-grid){gap:var(--nt-space-4)!important;margin-block:var(--nt-space-4)!important}
.live-main [data-forms10] label{gap:var(--nt-space-2)}
.live-main [data-forms10] input:not([type=checkbox]):not([type=radio]):not([type=file]){height:44px;min-height:44px;padding-block:var(--nt-space-2)}
.live-main .volume-helper-body>p{margin:0!important}
.live-main .volume-helper-body>[role=status]:empty{display:none}
.live-main .volume-result{display:flex;align-items:center;justify-content:space-between;gap:var(--nt-space-3)}
.live-main .volume-result output{min-width:0;font-size:1rem}
.live-main .volume-result button{flex-shrink:0}
.live-main .volume-helper .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--nt-space-3)!important;margin:0!important}
@media(min-width:480px){.live-main .volume-helper .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
 .live-main .volume-helper [data-volume-field=kind],.live-main .volume-helper [data-volume-field=size]{grid-column:1/-1}
 .live-main .volume-helper [data-volume-field]{display:flex;flex-direction:column;min-width:0;font-size:.8125rem}
 .live-main .volume-helper input{width:100%;min-width:0}
@media(min-width:601px){.forms10-dock{display:none}}

.live-main .request-draft-choices .button{margin:0!important}
.live-main [data-forms10] label{margin:0!important}
.live-main [data-forms10] :is(.compose-route-grid,.shipment-essential-grid){margin:0!important}
.live-main [data-forms10] input:not([type=checkbox]):not([type=radio]):not([type=file]){height:44px!important;min-height:44px!important;padding-block:var(--nt-space-2)!important}
.live-main [data-forms10] .volume-helper>summary{margin:0!important;padding-block:var(--nt-space-2)}

.live-main [data-forms10] .route-endpoint{gap:var(--nt-space-3)}
@media(max-width:600px){.live-main .repeat-request>label{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--nt-space-2)}}

.live-main .forms10-actions.forms10-dock{margin:0!important;border-radius:0;border:0;border-top:1px solid var(--nt-line);padding:var(--nt-space-2) var(--nt-space-4)}

.live-main [data-live-form=quote] details:not([open]){padding-block:var(--nt-space-2);margin-block:var(--nt-space-3)}
.live-main [data-live-form=quote] details:not([open])>summary{margin:0;min-height:44px;align-content:center}
.live-main [data-live-form=quote] .offer-live-summary{padding-block:var(--nt-space-3);margin-block:var(--nt-space-3)}

/* All form disclosures share the card chevron; action menus keep their dots. */
.live-main form details:not(.record-actions)>summary{display:flex!important;align-items:center;gap:8px;min-height:44px!important;box-sizing:border-box;list-style:none!important;cursor:pointer;caret-color:transparent;user-select:none}
.live-main form details:not(.record-actions)>summary::-webkit-details-marker{display:none}
.live-main form details:not(.record-actions)>summary::marker{content:''}
.live-main form details:not(.record-actions)>summary::after{content:'';margin-left:auto;flex:0 0 auto;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.live-main form details[open]:not(.record-actions)>summary::after{transform:rotate(225deg)}
.live-main form details:not(.record-actions)>summary:focus-visible{outline:2px solid var(--nt-accent);outline-offset:2px}
.live-main form input[type=number]{appearance:textfield;-moz-appearance:textfield}
.live-main form input[type=number]::-webkit-inner-spin-button,.live-main form input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* Setup screens also use the header notification slot, without workspace-studio's shell scope. */
.live-header [data-workspace-notifications]{display:block;position:relative;flex:none}
.live-header [data-workspace-notifications] .island-slot{min-height:0;height:44px}
.live-header [data-workspace-notifications] .nubi-island{position:relative;inset:auto;transform:none;inline-size:44px;max-inline-size:none;border:0;background:transparent;box-shadow:none;transition:none}
.live-header [data-workspace-notifications] :is(.island-title,.island-count,.island-chevron){display:none}
.live-header [data-workspace-notifications] .island-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(384px,calc(100vw - 24px));margin:0;padding:16px;background:var(--nt-night);border-radius:var(--nt-radius-md)}
/* One viewport coordinate system for every header popup, including the region dialog.
   Override legacy absolute positioning and the theme control's entrance transform. */
body.live-body :is(.live-header .island-panel,.live-header .theme-options,.live-header .account-menu-panel,.regional-settings){--popover-width:min(245px,calc(100vw - 32px));--popover-top:calc(max(env(safe-area-inset-top,0px),var(--anchor-bottom,80px)) + 8px);--popover-height:max(0px,calc(var(--popover-bottom,100dvh) - var(--popover-top) - 8px));position:fixed!important;inset:var(--popover-top) auto auto clamp(16px,calc(var(--anchor-right,100vw) - var(--popover-width)),calc(100vw - var(--popover-width) - 16px))!important;width:var(--popover-width)!important;min-width:0!important;max-width:none!important;max-height:var(--popover-height)!important;max-block-size:var(--popover-height)!important;margin:0!important;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;transform:none!important;animation:none!important;z-index:1401}
body.live-body .live-header .island-panel{--popover-width:min(384px,calc(100vw - 32px))}
body.live-body .regional-settings{--popover-width:min(560px,calc(100vw - 32px))}
@media(max-width:767px){
 .live-body .live-header{padding-top:calc(12px + env(safe-area-inset-top,0px))!important}
 body.live-body :is(.live-header .island-panel,.live-header .theme-options,.live-header .account-menu-panel,.regional-settings){--popover-top:calc(max(env(safe-area-inset-top,0px),var(--header-bottom,80px)) + 8px);--popover-width:calc(100vw - 32px);padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}
}
/* Truck posting: compact compound controls, with the shared workspace rhythm. */
.live-main .capacity-compose form{gap:var(--nt-space-4)!important}
.live-main .capacity-compose form>*{margin:0!important}
.live-main .capacity-compose .capacity-heading{display:flex;flex-direction:column;align-items:flex-start;gap:var(--nt-space-2)}
.live-main .capacity-heading h2{margin:0!important}
.live-main .capacity-compose .route-endpoint{border:0;padding:0;margin:0;display:grid;gap:var(--nt-space-2);background:none}
.live-main .capacity-compose :is(label,.capacity-group,.capacity-destinations,.capacity-details-body){min-width:0;display:grid;gap:var(--nt-space-2);margin:0}
.live-main .capacity-compose .capacity-details-body{gap:var(--nt-space-4);padding-top:var(--nt-space-4)}
.live-main .capacity-compose :is(.capacity-main-grid,.capacity-pair,.capacity-dimensions){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--nt-space-3);align-items:start;margin:0!important}
.live-main .capacity-compose .capacity-dimensions{grid-template-columns:repeat(3,minmax(0,1fr))}
.live-main .capacity-compose :is(input:not([type=checkbox]),select,textarea){width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px;font-size:16px;box-sizing:border-box}
.live-main .capacity-compose input[type=date]{appearance:none;min-width:0;padding:10px 6px}
.live-main .capacity-compose :is(small,.capacity-footer p){color:var(--nt-ink-muted);font-size:var(--nt-text-xs);line-height:1.5;margin:0}
.live-main .capacity-compose .capacity-label{font-weight:600}
.live-main .capacity-compose .capacity-chips{display:flex;flex-wrap:wrap;align-items:start;gap:var(--nt-space-2);margin:0!important}
.live-main .capacity-compose .capacity-country{display:flex;flex-direction:column;align-items:flex-start;gap:var(--nt-space-2)}
.live-main .capacity-compose .capacity-country-actions{display:flex;align-items:center;gap:var(--nt-space-2)}
.live-main .capacity-compose :is(.capacity-chip,.capacity-subchip,.capacity-loading){display:inline-flex;align-items:center;justify-content:center;gap:var(--nt-space-2);width:auto;min-height:44px;max-width:100%;margin:0!important;padding:8px 12px;border:1px solid var(--nt-line);border-radius:var(--nt-radius-sm);background:var(--nt-surface);color:var(--nt-ink);font:inherit;font-size:.875rem;line-height:1.4;cursor:pointer;box-sizing:border-box}
.live-main .capacity-compose :is(.capacity-chip[aria-pressed=true],.capacity-loading:has(:checked)){border-color:var(--nt-link);background:var(--nt-paper);color:var(--nt-link);box-shadow:inset 0 0 0 1px var(--nt-link)}
.live-main .capacity-compose .capacity-subchip{font-size:.8125rem;background:var(--nt-paper)}
.live-main .capacity-compose :is(.capacity-text,.capacity-back){display:inline-flex;align-items:center;justify-self:start;min-height:44px;max-width:100%;width:auto;margin:0!important;padding:0 4px;border:0;background:none;box-shadow:none;color:var(--nt-link);font:inherit;font-size:.875rem;text-align:start;cursor:pointer}
.live-main .capacity-compose .capacity-back{padding:0}
.live-main .capacity-compose .capacity-loading input{width:16px;height:16px;min-height:0;margin:0;accent-color:var(--nt-link)}
.live-main .capacity-compose .check{display:flex;align-items:center;gap:var(--nt-space-2);min-height:44px}
.live-main .capacity-compose .capacity-city-editor{display:flex;align-items:end;gap:var(--nt-space-3)}
.live-main .capacity-city-editor label{flex:1}
.live-main .capacity-compose .capacity-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--nt-space-3)}
.live-main .capacity-compose .capacity-footer .button{min-height:44px;margin:0!important}
.live-main .capacity-compose [hidden]{display:none!important}
@media(max-width:600px){
 .live-main .capacity-compose .capacity-main-grid{grid-template-columns:minmax(0,1fr)}
 .live-main .capacity-compose .capacity-footer{align-items:stretch;flex-direction:column}
 .live-main .capacity-compose .capacity-pair label{font-size:.8125rem}
}
.live-main .capacity-compose :is(.capacity-heading,.capacity-footer){padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
.live-main .capacity-compose .capacity-heading{scroll-margin-top:92px}
.live-main .capacity-compose .capacity-heading h2{padding:0!important}
.live-main .capacity-compose .capacity-main-grid{align-items:end}
.live-main .capacity-compose :is(input:not([type=checkbox]),select){margin:0!important;height:44px!important;min-height:44px!important}
.live-main .capacity-compose :is(.route-endpoint,.capacity-destinations,.capacity-group){gap:var(--nt-space-3)}
.live-main .capacity-compose .capacity-chips{row-gap:var(--nt-space-3)}
.live-main .capacity-compose .capacity-heading{gap:var(--nt-space-3)}
.live-main .capacity-compose .capacity-group{margin:0!important}
.live-main .capacity-compose .capacity-chip{padding:8px;font-size:.8125rem}
