/* Account, company data and team tools share the dashboard canvas.
   Exact page roots keep the login, authenticator and connection wizard intact. */
html body:has(> main:is(.profile-page,.delivery-portal,.cost-import-page)),
html body:has(> main.account-main > #account-content){
  background:var(--canvas-bg,#101211)!important;
  color:var(--canvas-text,#f3f6f0)!important;
  --bg:var(--canvas-bg,#101211);
  --panel:var(--canvas-panel,#1d201f);
  --text:var(--canvas-text,#f3f6f0);
  --muted:var(--canvas-muted,#a4aea6);
  --line:var(--canvas-line,#343b36);
}
html body:has(> main:is(.profile-page,.delivery-portal,.cost-import-page)) > header,
html body:has(> main.account-main > #account-content) > header{
  background:var(--canvas-bg,#101211)!important;
  border-color:var(--canvas-line,#343b36)!important;
  box-shadow:none!important;
  gap:20px;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page){
  width:100%;max-width:1420px;box-sizing:border-box;padding:24px 40px 88px;
  color:var(--canvas-text,#f3f6f0);
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) .account-heading{margin:24px 0 32px}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) .account-heading h1{
  font-size:clamp(32px,3.7vw,48px);font-weight:450;line-height:1.12;letter-spacing:-.055em;margin:12px 0 16px;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) :is(.account-heading p,.account-card > p){
  color:var(--canvas-muted,#a4aea6)!important;font-size:14px;line-height:1.75;max-width:780px;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) .eyebrow{
  font-size:11px;letter-spacing:.16em;color:var(--canvas-muted,#a4aea6);font-weight:600;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) .account-card{
  min-width:0;padding:28px!important;border-radius:24px!important;
  background:var(--canvas-panel,#1d201f)!important;border:1px solid var(--canvas-line,#343b36)!important;
  color:var(--canvas-text,#f3f6f0)!important;box-shadow:none!important;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) .account-card h2{
  font-size:27px!important;font-weight:450;letter-spacing:-.04em;line-height:1.2;margin:0 0 14px;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) :is(h2,h3,h4,strong){color:var(--canvas-text,#f3f6f0)}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) :is(.account-footnote,.profile-email-note,.profile-recovery,.profile-branding-help,.profile-signout p){
  font-size:12px!important;line-height:1.75;color:var(--canvas-muted,#a4aea6)!important;border-color:var(--canvas-line,#343b36);
}
html body :is(main.profile-page,main.account-main:has(> #account-content)) .account-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.cost-import-page) .field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) label{
  color:var(--canvas-muted,#a4aea6)!important;font-size:13px;line-height:1.6;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not(.logo-file-input),select,textarea){
  width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:46px;padding:11px 14px;
  border:1px solid var(--canvas-line,#343b36)!important;border-radius:12px;
  background:var(--canvas-bg,#101211)!important;color:var(--canvas-text,#f3f6f0)!important;font:inherit;font-size:14px;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) input[readonly]{color:var(--canvas-muted,#a4aea6)!important}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) :is(input[type=checkbox],input[type=radio]){
  width:18px;min-width:18px;height:18px;min-height:18px;accent-color:var(--canvas-accent,#cce96d);
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) :is(.button,.profile-secondary,.profile-shortcuts a,.saved-product button){
  min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 18px;border:1px solid var(--canvas-line,#343b36)!important;border-radius:999px;
  background:var(--canvas-soft,#242826)!important;color:var(--canvas-text,#f3f6f0)!important;
  font:inherit;font-size:13px;font-weight:500;line-height:1.4;text-decoration:none;box-shadow:none!important;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) .button.orange{
  background:var(--canvas-accent,#cce96d)!important;color:var(--canvas-accent-ink,#243315)!important;
  border-color:var(--canvas-accent,#cce96d)!important;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) :is(.text-link,.profile-recovery a,.profile-branding-remove){
  color:var(--canvas-teal,#94d9dd)!important;font-size:13px;line-height:1.6;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) :is(button,a,input,select,textarea,summary):focus-visible{
  outline:2px solid var(--canvas-focus,#a6c775)!important;outline-offset:3px;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) .storage-state{
  padding:15px 18px;border-radius:14px;background:var(--canvas-soft,#242826)!important;
  border-color:var(--canvas-line,#343b36)!important;color:var(--canvas-muted,#a4aea6)!important;font-size:13px;line-height:1.7;
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) .form-status{
  font-size:13px;line-height:1.7;color:var(--canvas-muted,#a4aea6);
}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) .form-status.error{color:var(--canvas-bad,#ffabb5)!important}
html body main.profile-page :is(.profile-mfa,.profile-signout){margin-top:28px;padding-top:24px;border-color:var(--canvas-line,#343b36)!important;background:transparent!important}
html body main.profile-page #mfa-setup{background:var(--canvas-bg,#101211);border-color:var(--canvas-line,#343b36);padding:18px;border-radius:16px}
html body main.profile-page #mfa-secret{color:var(--canvas-text,#f3f6f0);font-size:14px;line-height:1.7}
html body main.profile-page .profile-branding-layout{gap:28px;align-items:start}
html body main.profile-page .profile-branding-preview{
  padding:26px;border-radius:20px;border-color:var(--canvas-line,#343b36)!important;
  background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--profile-brand-accent,#cce96d) 14%,transparent),transparent 70%),var(--canvas-bg,#101211)!important;
  color:var(--canvas-text,#f3f6f0)!important;
}
html body main.profile-page .profile-branding-preview :is(strong,b){color:var(--canvas-text,#f3f6f0)!important}
html body main.profile-page .profile-branding-preview :is(span,small){color:var(--canvas-muted,#a4aea6)!important;font-size:12px}
html body main.profile-page .profile-branding-preview > i{background:linear-gradient(90deg,var(--canvas-teal,#94d9dd),var(--profile-brand-accent,#cce96d))}
html body main.profile-page .profile-logo-picker{
  min-height:66px;border-color:var(--canvas-line,#343b36);background:var(--canvas-bg,#101211);border-radius:14px;flex-wrap:wrap;gap:12px;
}
html body main.profile-page .profile-logo-picker > span{background:var(--canvas-soft,#242826);color:var(--canvas-text,#f3f6f0);font-size:13px;border-radius:999px}
html body main.profile-page .profile-logo-picker > small{font-size:12px;min-width:0;max-width:100%;color:var(--canvas-muted,#a4aea6)}
html body main.profile-page .profile-danger{border-color:color-mix(in srgb,var(--canvas-bad,#ffabb5) 48%,var(--canvas-line,#343b36))!important}
html body main.profile-page .profile-delete-button{
  min-height:44px;box-sizing:border-box;font:inherit;font-size:13px;font-weight:500;border-radius:999px;padding:11px 19px;
  background:#a42d43!important;border:1px solid #b74458!important;color:#fff!important;box-shadow:none!important;
}
html body main.profile-page .profile-delete-button:hover:not(:disabled){background:#bb3e53!important}
html body main.profile-page .profile-delete-consent{display:flex;align-items:flex-start;gap:12px}
html body main.profile-page .profile-delete-consent input{flex:none;margin-top:4px}
html body :is(main.profile-page,main.account-main:has(> #account-content)) :is(.saved-product,.platform-summary-head){border-color:var(--canvas-line,#343b36)}
html body :is(main.profile-page,main.account-main:has(> #account-content)) .saved-product{padding:22px 0}
html body :is(main.profile-page,main.account-main:has(> #account-content)) .saved-product small{font-size:12px;color:var(--canvas-muted,#a4aea6)}
html body :is(main.profile-page,main.account-main:has(> #account-content)) .product-money{color:var(--canvas-teal,#94d9dd);font-size:20px}
html body main.account-main:has(> #account-content) :is(.connected-platform,.connected-empty){
  min-width:0;padding:22px;border:1px solid var(--canvas-line,#343b36)!important;border-radius:20px;
  background:var(--canvas-panel,#1d201f)!important;color:var(--canvas-text,#f3f6f0)!important;box-shadow:none;
}
html body main.account-main:has(> #account-content) .connected-platform{gap:14px;flex-wrap:wrap}
html body main.account-main:has(> #account-content) .connected-platform > div{min-width:0;flex:1 1 150px;gap:5px}
html body main.account-main:has(> #account-content) .connected-platform strong{font-size:16px;font-weight:500;color:var(--canvas-text,#f3f6f0)!important;overflow-wrap:anywhere}
html body main.account-main:has(> #account-content) :is(.connected-platform small,.connected-platform div > span,.connected-empty p){
  color:var(--canvas-muted,#a4aea6)!important;font-size:12px;line-height:1.7;overflow-wrap:anywhere;
}
html body main.account-main:has(> #account-content) :is(.connected-platform a,.connected-empty a){
  display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;padding:10px 14px;
  font-size:13px;line-height:1.5;white-space:normal;border:1px solid var(--canvas-line,#343b36);border-radius:999px;
  color:var(--canvas-teal,#94d9dd)!important;background:var(--canvas-soft,#242826);text-decoration:none;
}
html body main.account-main:has(> #account-content) .connected-platform .platform-mark{
  display:grid;place-items:center;flex:none;box-sizing:border-box;width:46px;height:46px;border-radius:14px;
  background:var(--canvas-soft,#242826);border:1px solid var(--canvas-line,#343b36);color:var(--canvas-text,#f3f6f0);font-size:22px;
}
html body main.account-main:has(> #account-content) .connected-platform .platform-mark.shopify{background:#b6dc82;border-color:#b6dc82;color:#1d3416}
html body main.account-main:has(> #account-content) .connected-platform .platform-mark.bol{background:#3153ee;border-color:#3153ee;color:#fff;font-size:19px}
html body main.account-main:has(> #account-content) .connected-platform .platform-mark.amazon{background:#ffbb70;border-color:#ffbb70;color:#39250f}
html body main.account-main:has(> #account-content) .connected-empty{grid-column:1/-1;border-style:dashed!important}

/* Data and settings roots only; product pricing and publication controls are separate. */
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace),
html body .delivery-workspace{
  color:var(--canvas-text,#f3f6f0);max-width:1400px;margin-left:auto;margin-right:auto;min-width:0;
  --bg:var(--canvas-bg,#101211);--text:var(--canvas-text,#f3f6f0);--muted:var(--canvas-muted,#a4aea6);--line:var(--canvas-line,#343b36);
}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) .card,
html body .delivery-workspace .card,
html body main.delivery-portal > :is(.card,.delivery-invite){
  background:var(--canvas-panel,#1d201f)!important;border:1px solid var(--canvas-line,#343b36)!important;
  color:var(--canvas-text,#f3f6f0)!important;border-radius:24px!important;padding:26px!important;box-shadow:none!important;min-width:0;
}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) :is(h2,h3,h4),
html body .delivery-workspace :is(h2,h3,h4){color:var(--canvas-text,#f3f6f0)!important;font-weight:450;letter-spacing:-.04em;line-height:1.2}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) h2,
html body .delivery-workspace h2{font-size:clamp(25px,2.8vw,34px)}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) h3,
html body .delivery-workspace h3{font-size:22px}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) :is(p,.sub,small),
html body .delivery-workspace :is(p,.sub,small){color:var(--canvas-muted,#a4aea6);font-size:13px;line-height:1.75}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) .overline,
html body .delivery-workspace .overline{font-size:11px;letter-spacing:.14em;color:var(--canvas-muted,#a4aea6)}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) :is(.section-head,.ops-heading),
html body .delivery-workspace .delivery-section-head{padding:0;gap:20px;align-items:center}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) label,
html body .delivery-workspace label{font-size:13px!important;line-height:1.6;color:var(--canvas-muted,#a4aea6)!important;min-width:0;gap:8px}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),
html body .delivery-workspace :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
  box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:46px;padding:11px 14px;
  font:inherit;font-size:14px!important;line-height:1.5;border:1px solid var(--canvas-line,#343b36)!important;
  border-radius:12px!important;background:var(--canvas-bg,#101211)!important;color:var(--canvas-text,#f3f6f0)!important;
}
html body .delivery-workspace textarea{min-height:150px;resize:vertical}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) input[type=checkbox],
html body .delivery-workspace input[type=checkbox]{width:18px;min-width:18px;height:18px;min-height:18px;accent-color:var(--canvas-accent,#cce96d);flex:none}
html body.dashboard-canvas #content .company-data .data-form-grid label:has(>input[type=checkbox]),
html body.dashboard-canvas #content .attributes-workspace .attribute-enable,
html body.dashboard-canvas #content .custom-costs .custom-check,
html body .delivery-workspace .delivery-check{display:flex;flex-direction:row;align-items:flex-start;gap:11px;line-height:1.7}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) :is(.button,.section-link,.product-select),
html body .delivery-workspace :is(.button,.section-link){
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:10px 17px;
  border-radius:999px!important;border:1px solid var(--canvas-line,#343b36)!important;
  background:var(--canvas-soft,#242826)!important;color:var(--canvas-text,#f3f6f0)!important;
  font:inherit;font-size:13px!important;line-height:1.5;max-width:100%;white-space:normal;box-shadow:none!important;
}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) .button.orange,
html body .delivery-workspace .button.orange{
  background:var(--canvas-accent,#cce96d)!important;color:var(--canvas-accent-ink,#243315)!important;border-color:var(--canvas-accent,#cce96d)!important;
}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) .section-link,
html body .delivery-workspace .section-link{background:transparent!important;color:var(--canvas-teal,#94d9dd)!important;border-color:transparent!important;padding:9px 11px}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) :is(button,input,select,textarea,summary):focus-visible,
html body .delivery-workspace :is(button,input,select,textarea,summary):focus-visible{
  outline:2px solid var(--canvas-focus,#a6c775)!important;outline-offset:3px;
}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) :is(.data-message,.custom-cost-status,[role=status]),
html body .delivery-workspace .delivery-message{font-size:13px;line-height:1.7;color:var(--canvas-muted,#a4aea6);overflow-wrap:anywhere}
html body.dashboard-canvas #content .company-data .data-tabs{gap:8px;overflow-x:auto;padding-bottom:18px;scrollbar-width:thin}
html body.dashboard-canvas #content .company-data .data-tabs button{
  min-height:44px;padding:11px 19px;border-radius:999px;border:1px solid var(--canvas-line,#343b36)!important;
  background:var(--canvas-soft,#242826)!important;color:var(--canvas-muted,#a4aea6)!important;font-size:13px!important;line-height:1.4;
}
html body.dashboard-canvas #content .company-data .data-tabs [aria-current=page]{
  background:var(--canvas-accent,#cce96d)!important;color:var(--canvas-accent-ink,#243315)!important;border-color:var(--canvas-accent,#cce96d)!important;
}
html body.dashboard-canvas #content .company-data .data-hero{margin:12px 0 26px}
html body.dashboard-canvas #content .company-data .data-entry-grid{gap:14px}
html body.dashboard-canvas #content .company-data .data-entry-grid > button{
  min-height:164px;padding:24px;border-radius:22px!important;background:var(--canvas-panel,#1d201f)!important;
  border:1px solid var(--canvas-line,#343b36)!important;color:var(--canvas-text,#f3f6f0)!important;box-shadow:none!important;
}
html body.dashboard-canvas #content .company-data .data-entry-grid > button:hover{border-color:var(--canvas-teal,#94d9dd)!important;transform:translateY(-2px)}
html body.dashboard-canvas #content .company-data .data-entry-grid > button span{font-size:20px;color:var(--canvas-text,#f3f6f0)!important;letter-spacing:-.025em}
html body.dashboard-canvas #content .company-data .data-entry-grid > button p{font-size:13px;color:var(--canvas-muted,#a4aea6)!important}
html body.dashboard-canvas #content .company-data .data-entry-grid > button b{color:var(--canvas-teal,#94d9dd)!important}
html body.dashboard-canvas #content .company-data .data-upload{
  background:var(--canvas-soft,#242826)!important;border-color:var(--canvas-line,#343b36)!important;border-radius:22px;padding:24px;gap:16px;min-width:0;
}
html body.dashboard-canvas #content .company-data .data-upload label.button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;border-radius:16px!important;min-width:0}
html body.dashboard-canvas #content .company-data .data-upload input[type=file]{font-size:12px!important;min-height:0;padding:0!important;background:transparent!important;border:0!important}
html body.dashboard-canvas #content .company-data .data-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
html body.dashboard-canvas #content .company-data .data-editor{border-color:var(--canvas-line,#343b36);padding:20px 0}
html body.dashboard-canvas #content .company-data .data-editor summary,
html body.dashboard-canvas #content .custom-costs .cost-explanation summary{color:var(--canvas-teal,#94d9dd);font-size:14px;line-height:1.6;min-height:44px;align-content:center}
html body.dashboard-canvas #content .company-data .data-record-list li,
html body.dashboard-canvas #content .custom-costs .custom-cost-list li{border-color:var(--canvas-line,#343b36);font-size:13px;overflow-wrap:anywhere;gap:18px}
html body.dashboard-canvas #content .company-data .data-record-list small,
html body.dashboard-canvas #content .custom-costs .custom-cost-list small{font-size:12px;color:var(--canvas-muted,#a4aea6)}
html body.dashboard-canvas #content .custom-costs .custom-cost-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:22px}
html body.dashboard-canvas #content .custom-costs .custom-cost-example{
  border-color:color-mix(in srgb,var(--canvas-teal,#94d9dd) 35%,var(--canvas-line,#343b36));
  background:color-mix(in srgb,var(--canvas-teal,#94d9dd) 9%,var(--canvas-panel,#1d201f));color:var(--canvas-text,#f3f6f0);border-radius:16px;
}
html body.dashboard-canvas #content .attributes-workspace form{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
html body.dashboard-canvas #content .attributes-workspace .attribute-editor > fieldset > p{grid-column:1/-1}
html body.dashboard-canvas #content .attributes-workspace :is(output,p){overflow-wrap:anywhere}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) .table-wrap,
html body .delivery-workspace .table-wrap{max-width:100%;overflow:auto;border:1px solid var(--canvas-line,#343b36);border-radius:16px;margin-top:18px;scrollbar-width:thin}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) table,
html body .delivery-workspace table{width:100%;border-collapse:collapse;font-size:13px;background:transparent!important;margin:0}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) th,
html body .delivery-workspace th{
  background:var(--canvas-soft,#242826)!important;color:var(--canvas-muted,#a4aea6)!important;font-size:11px;letter-spacing:.06em;font-weight:500;
}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) :is(td,th),
html body .delivery-workspace :is(td,th){text-align:left;padding:15px 16px;border-color:var(--canvas-line,#343b36)!important;line-height:1.6}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) td,
html body .delivery-workspace td{color:var(--canvas-text,#f3f6f0)!important;font-size:13px;background:transparent!important;vertical-align:middle}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) td small{font-size:12px;line-height:1.6}
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) tbody tr:last-child td,
html body .delivery-workspace tbody tr:last-child td{border-bottom:0}
html body .delivery-workspace .delivery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
html body .delivery-workspace .delivery-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html body .delivery-workspace .delivery-records article{border-color:var(--canvas-line,#343b36);padding:19px 0;gap:12px}
html body .delivery-workspace .delivery-records strong{font-size:14px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}
html body .delivery-workspace .delivery-records small{font-size:12px;color:var(--canvas-muted,#a4aea6)}
html body .delivery-workspace .delivery-ticket-link{min-height:44px;color:var(--canvas-text,#f3f6f0);line-height:1.6;padding:4px 0;overflow-wrap:anywhere}
html body .delivery-workspace .delivery-status{
  padding:6px 11px;font-size:12px;line-height:1.5;border-color:var(--canvas-line,#343b36)!important;
  color:var(--canvas-muted,#a4aea6)!important;background:var(--canvas-soft,#242826)!important;
}
html body .delivery-workspace :is(.delivery-ready,.delivery-accepted,.delivery-resolved){
  color:var(--canvas-good,#a8dfb5)!important;background:color-mix(in srgb,var(--canvas-good,#a8dfb5) 10%,var(--canvas-panel,#1d201f))!important;
  border-color:color-mix(in srgb,var(--canvas-good,#a8dfb5) 40%,var(--canvas-line,#343b36))!important;
}
html body .delivery-workspace :is(.delivery-failed,.delivery-revoked){
  color:var(--canvas-bad,#ffabb5)!important;background:color-mix(in srgb,var(--canvas-bad,#ffabb5) 10%,var(--canvas-panel,#1d201f))!important;
  border-color:color-mix(in srgb,var(--canvas-bad,#ffabb5) 40%,var(--canvas-line,#343b36))!important;
}
html body .delivery-workspace .delivery-unknown{color:#e9c58a!important;background:#3b3022!important;border-color:#755c35!important}
html body .delivery-workspace .delivery-conversation article{background:var(--canvas-soft,#242826)!important;border:1px solid var(--canvas-line,#343b36);border-radius:18px;padding:18px}
html body .delivery-workspace .delivery-conversation [data-author=staff]{background:color-mix(in srgb,var(--canvas-teal,#94d9dd) 10%,var(--canvas-panel,#1d201f))!important}
html body .delivery-workspace .delivery-conversation small{font-size:12px;line-height:1.7}
html body .delivery-workspace .delivery-conversation strong{font-size:13px;color:var(--canvas-text,#f3f6f0)}
html body .delivery-workspace .delivery-actions{gap:12px;justify-content:flex-end;margin:18px 0 0;font-size:13px}
html body .delivery-workspace .delivery-loading{background:linear-gradient(100deg,var(--canvas-panel,#1d201f),var(--canvas-soft,#242826),var(--canvas-panel,#1d201f));background-size:200% 100%;border-radius:22px}
html body main.delivery-portal .delivery-tabs{gap:8px;flex-wrap:wrap;margin:24px 0}
html body main.delivery-portal .delivery-tabs a{display:inline-flex;align-items:center;min-height:44px;padding:10px 18px;box-sizing:border-box;border:1px solid var(--canvas-line,#343b36);background:var(--canvas-soft,#242826);color:var(--canvas-text,#f3f6f0);border-radius:999px;font-size:13px}

/* Keep cautions and irreversible actions visibly distinct. */
html body.dashboard-canvas #content .company-data .data-warning,
html body .delivery-workspace .delivery-warning{
  padding:13px 16px;border-left:3px solid #d9aa63!important;border-radius:0 12px 12px 0;
  background:color-mix(in srgb,#c89b52 9%,var(--canvas-panel,#1d201f))!important;color:#e7c797!important;font-size:13px;line-height:1.75;
}
html[data-theme=light] body.dashboard-canvas #content .company-data .data-warning,
html[data-theme=light] body .delivery-workspace .delivery-warning{color:#79501c!important}
html[data-theme=light] body .delivery-workspace .delivery-unknown{color:#79501c!important;background:#fff5e5!important;border-color:#e9d0a4!important}

/* Import remains a clear, sequential review flow. */
html body main.cost-import-page .cost-step{grid-template-columns:44px minmax(0,1fr);gap:22px}
html body main.cost-import-page .cost-step > span{
  width:42px;height:42px;background:var(--canvas-accent,#cce96d);color:var(--canvas-accent-ink,#243315);
  border-color:var(--canvas-accent,#cce96d);font-weight:600;font-size:14px;
}
html body main.cost-import-page .cost-step h2{font-size:27px}
html body main.cost-import-page .cost-map-grid{gap:18px}
html body main.cost-import-page .cost-check{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.7;color:var(--canvas-muted,#a4aea6)}
html body main.cost-import-page .cost-preview-stats{gap:14px}
html body main.cost-import-page .cost-preview-stats > div{padding:20px;background:var(--canvas-soft,#242826)!important;border-color:var(--canvas-line,#343b36);border-radius:18px}
html body main.cost-import-page .cost-preview-stats strong{font-size:32px;letter-spacing:-.04em;font-weight:450;color:var(--canvas-text,#f3f6f0)!important}
html body main.cost-import-page .cost-preview-stats small{font-size:12px;line-height:1.7;color:var(--canvas-muted,#a4aea6)}
html body main.cost-import-page .cost-issues{border-color:var(--canvas-line,#343b36);border-radius:16px}
html body main.cost-import-page .cost-issues div{padding:13px 15px;font-size:13px;line-height:1.7;border-color:var(--canvas-line,#343b36)}
html body main.cost-import-page .cost-issues span:last-child{color:var(--canvas-muted,#a4aea6)}
html body main.cost-import-page .cost-paste summary{font-size:14px;min-height:44px;align-content:center;line-height:1.6;color:var(--canvas-teal,#94d9dd)}
html body main.cost-import-page .cost-paste textarea{font:13px/1.7 ui-monospace,SFMono-Regular,monospace;min-height:150px}

/* Respect all authentication gates and field-level availability. */
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) [hidden],
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) [hidden],
html body .delivery-workspace [hidden]{display:none!important}
html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) :disabled,
html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) :disabled,
html body .delivery-workspace :disabled{opacity:.5;cursor:not-allowed;transform:none!important}

@media(max-width:1100px){
  html body.dashboard-canvas #content .company-data .data-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.dashboard-canvas #content .company-data .data-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.dashboard-canvas #content .company-data .data-upload{flex-wrap:wrap}
  html body.dashboard-canvas #content .company-data .data-upload > div{flex-basis:100%}
}
@media(max-width:900px){
  html body :is(main.profile-page,main.account-main:has(> #account-content)) .account-grid,
  html body .delivery-workspace .delivery-grid,
  html body.dashboard-canvas #content .custom-costs .custom-cost-grid{grid-template-columns:1fr}
  html body .delivery-workspace .delivery-section-head{flex-wrap:wrap}
  html body .delivery-workspace .delivery-section-head > div{flex-basis:100%}
}
@media(max-width:700px){
  html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page){padding:18px 18px 52px}
  html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) .account-card,
  html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) .card,
  html body .delivery-workspace .card{padding:21px!important;border-radius:20px!important}
  html body main.profile-page .profile-branding-layout{grid-template-columns:1fr;gap:22px}
  html body main.profile-page .profile-branding-preview{order:0;padding:22px}
  html body main.profile-page .profile-branding-preview > b{font-size:30px}
  html body main.profile-page .profile-branding-remove,
  html body main.profile-page .profile-recovery a{
    min-height:44px;display:inline-flex;align-items:center;
  }
  html body main.profile-page .profile-delete-consent{min-height:44px}
  html body main.profile-page :is(#profile-email,#mfa-secret){overflow-wrap:anywhere}
  html body.dashboard-canvas #content :is(.company-data,.custom-costs) :is(.ops-heading,.section-head),
  html body.dashboard-canvas #content .attributes-workspace > header{align-items:flex-start;flex-direction:column;gap:16px}
  html body.dashboard-canvas #content .company-data .data-entry-grid > button{padding:20px;min-height:170px}
  html body.dashboard-canvas #content .company-data .data-entry-grid > button span{font-size:18px}
  html body.dashboard-canvas #content .company-data .data-upload{padding:20px;border-radius:20px}
  html body.dashboard-canvas #content .company-data .data-upload label.button{max-width:100%;width:100%}
  html body.dashboard-canvas #content .company-data .data-upload > .button{width:100%}
  html body.dashboard-canvas #content .company-data .data-record-list li,
  html body.dashboard-canvas #content .custom-costs .custom-cost-list li{flex-direction:column;align-items:flex-start}
  html body.dashboard-canvas #content .company-data .data-record-list small{max-width:100%}
  html body.dashboard-canvas #content .custom-costs .custom-cost-list li > div:last-child{flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px}
  html body main.cost-import-page .cost-step{grid-template-columns:1fr;gap:18px}
  html body main.cost-import-page .cost-preview-stats{grid-template-columns:1fr}
}
@media(max-width:560px){
  html body :is(main.profile-page,main.account-main:has(> #account-content),main.cost-import-page) .field-grid,
  html body main.cost-import-page .cost-map-grid,
  html body .delivery-workspace .delivery-fields,
  html body.dashboard-canvas #content .company-data :is(.data-entry-grid,.data-form-grid),
  html body.dashboard-canvas #content .attributes-workspace form{grid-template-columns:1fr}
  html body.dashboard-canvas #content .company-data .data-entry-grid > button{min-height:138px}
  html body :is(main.profile-page,main.account-main:has(> #account-content),main.delivery-portal,main.cost-import-page) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not(.logo-file-input),select,textarea),
  html body.dashboard-canvas #content :is(.company-data,.custom-costs,.attributes-workspace) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),
  html body .delivery-workspace :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important}
  html body main.profile-page .profile-shortcuts{flex-direction:column;gap:10px}
  html body main.profile-page .profile-shortcuts a{width:100%;justify-content:flex-start}
  html body main.profile-page .profile-danger button{width:100%;margin-right:0}
  html body .delivery-workspace .delivery-section-head > .button{width:100%}
  html body .delivery-workspace .delivery-records article{align-items:flex-start}
  html body .delivery-workspace .delivery-records article > div{min-width:0;flex-basis:100%}
  html body .delivery-workspace .delivery-actions{justify-content:space-between}
  html body .delivery-workspace .delivery-actions .button{padding-left:15px;padding-right:15px}
  html body main.cost-import-page .cost-issues div{grid-template-columns:48px minmax(0,1fr);gap:6px 12px}
  html body main.cost-import-page .cost-issues span:last-child{grid-column:2}
}
@media(prefers-reduced-motion:reduce){
  html body.dashboard-canvas #content .company-data .data-entry-grid > button{transition:none}
  html body.dashboard-canvas #content .company-data .data-entry-grid > button:hover{transform:none}
  html body .delivery-workspace .delivery-loading{animation:none}
}
