/* Workspace redesign (founder, 26 Oct 2026: "nothing anybody can have; it doesn't feel 2026"), from the prototype in
   ~/Developer/Carreh/business-workspace-redesign/. One layer over every workspace screen (company, employee, agency,
   client portal, application form): the same screens and the same information, a new look. Warm paper, serif page
   titles, one button family, journeys drawn as a line with labelled stops, statuses as coloured words. No pills, dots or
   departure-board type. Loaded last, after dark.css. Also the design audit's layout fixes (AUDIT.md, 26 Oct 2026). */
:root{
  /* Colours and type sizes come from ui/tokens.css, light and dark (one colour set, 10 Nov 2026). Kept here: the
     workspace's radii, control height, shadows and serif titles. */
  --radius-sm:9px;--radius-md:12px;--radius-lg:14px;--radius-xl:16px;--control-height:40px;
  --shadow-sm:0 1px 0 rgba(21,32,43,.04),0 8px 24px -16px rgba(21,32,43,.18);--shadow-hover:0 1px 0 rgba(21,32,43,.05),0 12px 28px -16px rgba(21,32,43,.22);
  --serif:var(--font-serif);
}
/* Status is a coloured word, never a tinted chip; the accent and focus rings are the navy primary (baby blue is gone). */
:root,:root:not([data-theme="light"]),[data-theme="dark"]{--accent:var(--primary);--focus:var(--primary);--success-bg:transparent;--warning-bg:transparent;--danger-bg:transparent;--info-bg:transparent}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--shadow-sm:0 1px 0 rgba(0,0,0,.3),0 10px 28px -18px rgba(0,0,0,.7)}}

/* ---------- Page and rail ---------- */
html body.cfb-app{background:var(--canvas);color:var(--text)}
body.cfb-app .acct-team:has(>.ws-rail){background:var(--canvas)!important}
body.cfb-app .ws-rail{background:var(--canvas)!important;border-inline-end:1px solid var(--border)!important}
body.cfb-app .ws-link{border-radius:8px!important;color:var(--text-secondary)!important}
body.cfb-app .ws-link:hover{background:var(--surface-hover)!important;color:var(--text)!important}
body.cfb-app .ws-link.active{background:var(--surface)!important;color:var(--text)!important;box-shadow:inset 2px 0 0 var(--primary)!important;font-weight:600}
html[dir=rtl] body.cfb-app .ws-link.active{box-shadow:inset -2px 0 0 var(--primary)!important}
body.cfb-app .ws-company{background:var(--surface)!important;border:1px solid var(--border)!important;color:var(--text)!important;border-radius:var(--radius-sm)!important}
body.cfb-app .ws-company .ws-test{text-transform:none!important;letter-spacing:0!important;font-size:var(--text-xs)!important;color:var(--warning)!important}
body.cfb-app .ws-top.acct-top{background:color-mix(in srgb,var(--canvas) 88%,transparent)!important;border-bottom:1px solid var(--border)!important;backdrop-filter:blur(10px)}

/* ---------- Type: one scale ---------- */
body.cfb-app .acct-team h1,body.cfb-app .pt-workspace h1,body.cfb-app .apl h1{font-family:var(--serif)!important;font-weight:600!important;font-size:clamp(28px,3.6vw,38px)!important;line-height:1.12!important;letter-spacing:-.01em!important}
body.cfb-app .acct-team .acct-card h2,body.cfb-app .pt-workspace h2,body.cfb-app .ws-panel-title h2{font:600 18px/1.3 var(--font-sans)!important;letter-spacing:-.005em}
body.cfb-app .trav-sub{font:600 15px/1.35 var(--font-sans)!important}
body.cfb-app .ws-eyebrow,body.cfb-app .ws-section-title{text-transform:none!important;letter-spacing:0!important;font-size:var(--text-sm)!important;font-weight:600!important;color:var(--text-muted)!important}
body.cfb-app .sub,body.cfb-app .footer-note{color:var(--text-muted)}

/* ---------- Surfaces ---------- */
body.cfb-app .acct-card,body.cfb-app .ws-panel,body.cfb-app .ws-stat,body.cfb-app .ws-tool{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-sm)!important}
body.cfb-app .ws-stat:hover,body.cfb-app .ws-tool:hover{box-shadow:var(--shadow-hover)!important;border-color:var(--border-strong)!important}
body.cfb-app .ws-stat strong,body.cfb-app .ws-stats strong{font-variant-numeric:tabular-nums}
body.cfb-app .ag-briefing{background:var(--surface)!important;border:1px solid var(--border)!important;border-inline-start:3px solid var(--primary)!important}
body.cfb-app .acct-alert{border-radius:var(--radius-sm)}
body.cfb-app .acct-confirm{border-radius:var(--radius-sm)}

/* ---------- Buttons: one family, one height (audit 10) ---------- */
body.cfb-app .button,body.cfb-app .site-cta{min-height:40px!important;border-radius:10px!important;font-weight:600!important;padding:8px 16px!important}
body.cfb-app .button.trav-small{min-height:36px!important;padding:6px 12px!important}
body.cfb-app .button.acct-primary{background:var(--primary)!important;border-color:var(--primary)!important;color:var(--on-primary)!important}
body.cfb-app .button.secondary{background:var(--surface)!important;border:1px solid var(--border-strong)!important;color:var(--text)!important}
body.cfb-app .button.secondary:hover{background:var(--surface-hover)!important}
body.cfb-app button.acct-link{min-height:36px;padding:0 4px;font-weight:600;text-decoration:none!important;color:var(--primary)}
body.cfb-app button.acct-link:hover{text-decoration:underline!important;text-underline-offset:3px}

/* ---------- Statuses: coloured words (the no-pills rule) ---------- */
body.cfb-app .trav-status,body.cfb-app .badge,body.cfb-app .sa-badge{font-size:13.5px!important;font-weight:600!important}
body.cfb-app .trav-approved,body.cfb-app .badge.approved,body.cfb-app .badge.paid,body.cfb-app .badge.active{color:var(--success)!important}
body.cfb-app .trav-submitted,body.cfb-app .badge.pending,body.cfb-app .badge.submitted{color:var(--warning)!important}

/* ---------- Journeys: a line with labelled stops (cases, applications, the portal) (audit 6) ---------- */
html body.cfb-app .ag-steps{display:flex!important;flex-wrap:nowrap!important;gap:0!important;margin:16px 0 8px!important;padding:0!important;list-style:none;overflow-x:auto;scrollbar-width:none}
html body.cfb-app .ag-steps li{flex:1 1 0!important;min-width:96px!important;position:relative;padding:14px 10px 0 0!important;border:0!important;border-top:3px solid var(--border)!important;border-radius:0!important;background:none!important;font-size:var(--text-sm)!important;color:var(--text-muted)!important;font-weight:500!important}
html body.cfb-app .ag-steps li::before{content:none!important}
html body.cfb-app .ag-steps li::after{content:""!important;position:absolute;left:0;top:-8px;width:3px;height:13px;background:var(--border-strong);margin:0!important}
html body.cfb-app .ag-steps li.done{border-top-color:var(--primary)!important;color:var(--text-secondary)!important}
html body.cfb-app .ag-steps li.done::after{background:var(--primary)}
html body.cfb-app .ag-steps li.now{border-top-color:var(--primary)!important;color:var(--text)!important;font-weight:700!important}
html body.cfb-app .ag-steps li.now::after{background:var(--primary);height:17px;top:-10px;width:4px}
@media(max-width:680px){
  html body.cfb-app .ag-steps{flex-direction:column!important;overflow:visible}
  html body.cfb-app .ag-steps li{min-width:0!important;padding:6px 0 10px 18px!important;border-top:0!important;border-inline-start:3px solid var(--border)!important}
  html body.cfb-app .ag-steps li.done,html body.cfb-app .ag-steps li.now{border-inline-start-color:var(--primary)!important}
  html body.cfb-app .ag-steps li::after{left:-8px;top:10px;width:13px;height:3px}
  html body.cfb-app .ag-steps li.now::after{left:-10px;top:9px;width:17px;height:4px}
}
/* The portal's timeline: a plain line, no dots. */
body.cfb-app .pt-timeline{border-inline-start:2px solid var(--border);padding-inline-start:16px}

/* ---------- Tables scroll on phones, with a hint (audit 7, 13) ---------- */
body.cfb-app .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;background:linear-gradient(to right,var(--surface) 30%,transparent),linear-gradient(to left,var(--surface) 30%,transparent) right,radial-gradient(farthest-side at 100% 50%,rgba(21,32,43,.14),transparent);background-repeat:no-repeat;background-size:40px 100%,40px 100%,14px 100%;background-attachment:local,local,scroll;background-position:left,right,right}
body.cfb-app .acct-card:has(.table-wrap),body.cfb-app .acct-card:has(.acct-table){overflow:visible!important}
@media(max-width:680px){body.cfb-app .acct-card>.acct-table{display:block;overflow-x:auto}}
body.cfb-app .acct-table th{font-size:12.5px;font-weight:600;color:var(--text-muted);text-transform:none;letter-spacing:0}
body.cfb-app .acct-table td,body.cfb-app .acct-table th{border-color:var(--border)!important}

/* ---------- Tabs that run off the edge scroll, with snap (audit 6) ---------- */
body.cfb-app .ag-tabs,body.cfb-app .trav-tabs{overflow-x:auto;flex-wrap:nowrap!important;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-mask-image:linear-gradient(to right,#000 85%,transparent)}
body.cfb-app .ag-tabs>*,body.cfb-app .trav-tabs>*{flex:0 0 auto;scroll-snap-align:start}

/* ---------- Mobile header: a smaller language select (audit 5) ---------- */
@media(max-width:800px){
  body.cfb-app .ws-top .ws-language select,body.cfb-app .ws-top .cfb-lang select{font-size:var(--text-sm)!important;min-height:32px!important;max-width:118px;padding:4px 8px!important}
}

/* ---------- Agency dashboard period picker: one compact row (audit 4) ---------- */
body.cfb-app .ag-presets{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;gap:6px!important}
body.cfb-app .ag-presets .button,body.cfb-app .ag-presets>*{flex:0 0 auto!important;width:auto!important}

/* ---------- Client portal columns line up (audit 1) ---------- */
body.cfb-app.cfb-portal .pt-workspace>.acct-card.acct-wide{max-width:none!important;margin-inline:0!important}
body.cfb-app .pt-workspace{align-items:start}

/* ---------- Case checklist rows balanced (audit 17) ---------- */
body.cfb-app .ag-check select{font-size:var(--text-base);min-height:36px}
body.cfb-app .ag-check{align-items:center}

/* ---------- Empty states in body size, not headline size (audit 18) ---------- */
body.cfb-app .ws-empty{font-size:14.5px;color:var(--text-muted)}

/* The page head is not a card (it never had a frame): title, subtitle and status sit on the paper. Without this the
   card frame above drew a border tight around them (founder's screenshot, 27 Oct 2026). */
body.cfb-app .acct-team:has(>.ws-rail)>section:first-of-type:has(h1):not(:has(table,form,.acct-table,.ui-table)){background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
/* A first section that also holds a table or a form stays a card, with its padding. */
body.cfb-app .acct-team:has(>.ws-rail)>section:first-of-type:has(h1):has(table,form,.acct-table,.ui-table){padding:24px!important}
@media(max-width:680px){body.cfb-app .acct-team:has(>.ws-rail)>section:first-of-type:has(h1):has(table,form,.acct-table,.ui-table){padding:18px 16px!important}}

/* Found by the layout scan of 31 screens (27 Oct 2026). */
/* The period presets stay one row on phones (a phone rule turned every form row into a column). */
@media(max-width:680px){body.cfb-app .form-row.ag-presets{flex-direction:row!important;align-items:center!important}body.cfb-app .form-row.ag-presets>*{width:auto!important}}
/* Figures: the number under its label, no empty block below it. */
body.cfb-app .trav-figures>*{min-height:0!important}
body.cfb-app .trav-figures strong{font-size:26px;line-height:1.15;font-variant-numeric:tabular-nums}
/* The search button on a phone: a magnifier, not a keyboard shortcut a phone cannot press. */
@media(max-width:800px){
  body.cfb-app .ui-command-trigger kbd{display:none!important}
  body.cfb-app .ui-command-trigger{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center}
  body.cfb-app .ui-command-trigger::before{content:"";width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center/contain no-repeat}
}
/* Touch sizes: the menu button and the sortable table headers. */
body.cfb-app .ws-menu-toggle{min-width:40px;min-height:40px}
body.cfb-app .ui-table-sort{min-height:28px}
/* Every table inside a card scrolls sideways on a phone instead of being cut at the card edge. */
@media(max-width:680px){
  body.cfb-app .acct-card table,body.cfb-app .ws-panel table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  body.cfb-app .acct-card table td,body.cfb-app .acct-card table th{white-space:nowrap}
  body.cfb-app .acct-card table td:first-child{white-space:normal;min-width:140px}
}
/* Long words in a figure ("None yet") wrap inside their card; the page addresses wrap rather than run off. */
body.cfb-app .trav-figures strong{overflow-wrap:anywhere}
body.cfb-app .alp-top .acct-table td{white-space:normal!important;word-break:break-all}
/* Every figure's number the same size, whatever element holds it. */
body.cfb-app .trav-figures :is(strong,b){font-size:24px!important;line-height:1.15!important;font-weight:650!important}
/* Super Admin lists on a phone (founder, 28 Oct 2026: the support list broke word by word in Carreh Admin): below 640px
   each row is a card. The first column is its title; every other value sits under its own label (data-label, set by
   saTable), so nothing is squeezed into a column or scrolled sideways. Filters stack two by two. */
@media (max-width:640px){
  body.cfb-app .sa-table-wrap{overflow:visible;border:0;background:none}
  body.cfb-app .sa-table,body.cfb-app .sa-table tbody,body.cfb-app .sa-card .sa-table{display:block;width:100%;min-width:0!important;max-width:100%}
  body.cfb-app .sa-table thead{display:none}
  body.cfb-app .sa-table tr{display:block;margin:0 0 10px;padding:14px 16px;border:1px solid var(--border,#e2e5e9);border-radius:12px;background:var(--surface,#fff)}
  body.cfb-app .sa-table td{display:grid;grid-template-columns:minmax(76px,34%) minmax(0,1fr);column-gap:14px;align-items:baseline;justify-items:end;padding:4px 0;border:0;text-align:end;white-space:normal;word-break:normal;overflow-wrap:break-word;hyphens:manual;-webkit-hyphens:manual}
  body.cfb-app .sa-table td>*{grid-column:2;max-width:100%}
  body.cfb-app .sa-table td::before{content:attr(data-label);grid-column:1;grid-row:1/span 9;justify-self:start;text-align:start;color:var(--text-muted,#667386);font-size:11.5px}
  body.cfb-app .sa-table td.sa-rownum,body.cfb-app .sa-table td:empty{display:none}
  body.cfb-app .sa-table td:nth-child(2){display:block;padding:0 0 8px;margin:0 0 6px;border-bottom:1px solid var(--border,#e2e5e9);text-align:start;font-size:13px}
  body.cfb-app .sa-table td:nth-child(2)::before,body.cfb-app .sa-table td[data-label=""]::before{content:none}
  body.cfb-app .sa-table td.sa-empty{display:block;text-align:start}
  body.cfb-app .sa-table td .form-row{justify-content:flex-end}
  body.cfb-app .sa-table-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}
  body.cfb-app .sa-table-tools>.sa-table-search,body.cfb-app .sa-table-tools>.sa-export,body.cfb-app .sa-table-tools>.sa-count{grid-column:1/-1}
  body.cfb-app .sa-table-tools .sa-filter{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}
  body.cfb-app .sa-table-tools .sa-filter select,body.cfb-app .sa-table-tools .sa-filter input,body.cfb-app .sa-table-tools>select{width:100%;max-width:none;min-width:0}
  body.cfb-app .sa-export{display:flex;flex-wrap:wrap;gap:6px}
  body.cfb-app .sa-pages{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
}
/* Figure cards everywhere (founder, 29 Oct 2026: "€2,400.00 a year" ran out of its card): a value wraps inside its
   card instead of being cut; long words break only at their edge. */
body.cfb-app :is(.ws-stat,.sa-kpi,.trav-figures>div)>strong,body.cfb-app .trav-figures>div>a>strong{white-space:normal!important;overflow-wrap:break-word!important;word-break:normal;hyphens:manual}
body.cfb-app :is(.ws-stat,.sa-kpi,.trav-figures>div){min-width:0;overflow:visible}
/* Billing (founder, 29 Oct 2026): the plan's figures as their own cards, values on one line with their label above,
   then the payment method as a separate card with the card brand's mark, its name as the heading and the details under it. */
body.cfb-app .bl-figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(176px,1fr));gap:12px;margin:18px 0 0;padding:0}
body.cfb-app .bl-figures>div{display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-width:0;padding:16px 18px;border:1px solid var(--border,#e2e5e9);border-radius:12px;background:var(--surface-subtle,#f7f8fa)}
body.cfb-app .bl-figures dt{margin:0;font-size:var(--text-xs);font-weight:500;line-height:1.4;color:var(--text-muted,#667386)}
body.cfb-app .bl-figures dd{margin:0;font-size:22px;font-weight:650;line-height:1.2;letter-spacing:-.02em;color:var(--text,#172b42);font-variant-numeric:tabular-nums;overflow-wrap:break-word}
body.cfb-app .bl-figures dd small{display:block;margin-top:4px;font-size:var(--text-xs);font-weight:500;letter-spacing:0;color:var(--text-muted,#667386)}
body.cfb-app .bl-method{margin-top:24px;padding:20px;border:1px solid var(--border,#e2e5e9);border-radius:14px;background:var(--surface,#fff)}
body.cfb-app .bl-method h3{margin:0 0 14px;font-size:var(--text-base);font-weight:600;letter-spacing:0;color:var(--text,#172b42)}
body.cfb-app .bl-method-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
body.cfb-app .bl-brand{display:inline-flex;flex:none}
body.cfb-app .bl-method-now{flex:1 1 220px;min-width:0}
body.cfb-app .bl-method-now strong{display:block;font-size:var(--text-lg);font-weight:600;color:var(--text,#172b42)}
body.cfb-app .bl-method-now p{margin:4px 0 0;font-size:var(--text-sm);color:var(--text-muted,#667386)}
body.cfb-app .bl-method-row>.button{margin-left:auto;flex:none}
body.cfb-app .bl-method-note{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--border,#e2e5e9);font-size:12.5px;line-height:1.6;color:var(--text-muted,#667386)}
body.cfb-app .bl-method>.acct-alert{margin:0 0 16px}
@media (max-width:520px){body.cfb-app .bl-method-row>.button{margin-left:0;width:100%}}
body.cfb-app .bl-figures{align-items:stretch}body.cfb-app .bl-figures>div{justify-content:flex-start}
body.cfb-app .bl-figures dt{min-height:2.8em}
body.cfb-app .bl-plans .biz-choice .acct-link{display:inline;width:auto;padding:0;margin:0;text-align:start;font:inherit;font-weight:600}
/* Every workspace table with a header row, below 640px (founder, 29 Oct 2026): rows become cards of labelled values,
   as in Super Admin; the agency's case board stacks its stages; segmented choices wrap; buttons in one row match. */
@media (max-width:640px){
  body.cfb-app table.ui-cardable:not(.sa-table),body.cfb-app table.ui-cardable:not(.sa-table)>tbody{display:block;width:100%;min-width:0!important;max-width:100%}
  body.cfb-app table.ui-cardable:not(.sa-table)>thead{display:none}
  body.cfb-app :is(.table-wrap,.ui-table-wrap):has(>table.ui-cardable){overflow:visible;border:0;background:none}
  body.cfb-app table.ui-cardable:not(.sa-table)>tbody>tr{display:block;margin:0 0 10px;padding:14px 16px;border:1px solid var(--border,#e2e5e9);border-radius:12px;background:var(--surface,#fff)}
  body.cfb-app table.ui-cardable:not(.sa-table)>tbody>tr>td{display:grid;grid-template-columns:minmax(76px,34%) minmax(0,1fr);column-gap:14px;align-items:baseline;justify-items:end;padding:4px 0;border:0;text-align:end;white-space:normal;word-break:normal;overflow-wrap:break-word;hyphens:manual}
  body.cfb-app table.ui-cardable:not(.sa-table)>tbody>tr>td>*{grid-column:2;max-width:100%}
  body.cfb-app table.ui-cardable:not(.sa-table)>tbody>tr>td::before{content:attr(data-label);grid-column:1;grid-row:1/span 9;justify-self:start;text-align:start;color:var(--text-muted,#667386);font-size:11.5px}
  body.cfb-app table.ui-cardable:not(.sa-table)>tbody>tr>td:first-child{display:block;padding:0 0 8px;margin:0 0 6px;border-bottom:1px solid var(--border,#e2e5e9);text-align:start;font-size:13px}
  body.cfb-app table.ui-cardable:not(.sa-table)>tbody>tr>td:first-child::before,body.cfb-app table.ui-cardable:not(.sa-table)>tbody>tr>td[data-label=""]::before{content:none}
  body.cfb-app table.ui-cardable:not(.sa-table)>tbody>tr>td[data-label=""]{display:block;text-align:end}
  body.cfb-app table.ui-cardable:not(.sa-table)>tbody>tr>td:empty{display:none}
  body.cfb-app table.ui-cardable:not(.sa-table) .form-row{justify-content:flex-end;flex-wrap:wrap;gap:8px}
  body.cfb-app .ui-pipeline{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:1fr;overflow:visible}
  body.cfb-app .sa-seg,body.cfb-app .trav-tabs{flex-wrap:wrap}
}
/* Buttons side by side are the same height (Confirm payment beside Change, Reset beside the filters). */
body.cfb-app :is(.form-row,.sa-pages,.sa-table-tools)>:is(.button,button){min-height:38px;height:auto}
body.cfb-app .sa-table-tools :is(input,select),body.cfb-app .sa-table-tools .sa-filter :is(input,select),body.cfb-app .sa-pages select{min-height:38px;height:38px;box-sizing:border-box}
body.cfb-app .sa-table-tools .sa-small,body.cfb-app .sa-pages .sa-small{min-height:38px;padding:0 14px;border-radius:8px}
body.cfb-app .sa-export>button{min-height:38px}
/* Form controls everywhere (founder, 29 Oct 2026: Safari's thin dropdown next to a taller field): one design for every
   dropdown and field, the same height side by side, a drawn chevron instead of the browser's, no number spinners. */
body.cfb-app select:not([multiple]):not([size]){-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a96a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px;padding-right:34px!important;text-overflow:ellipsis}
body.cfb-app :is(.acct-field,.acct-grid>label) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),select:not([multiple])){height:44px;min-height:44px;box-sizing:border-box;padding-top:0;padding-bottom:0;line-height:1.3;border-radius:10px;font-size:15px}
body.cfb-app input[type=number]{-moz-appearance:textfield;appearance:textfield}
body.cfb-app input[type=number]::-webkit-inner-spin-button,body.cfb-app input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
/* Choice cards (plans, business type): the title, then its line under it, wrapping evenly; a card with no radio keeps
   its title in line with the others. */
body.cfb-app .biz-choice{align-items:flex-start;gap:12px}
body.cfb-app .biz-choice>span{display:flex;flex-direction:column;gap:6px;min-width:0}
body.cfb-app .biz-choice .footer-note{margin:0;line-height:1.5;text-wrap:pretty}
body.cfb-app .bl-plans .biz-choice:not(:has(input))>span{padding-inline-start:28px}
/* The plan about to be saved, as a short summary: the plan, who it covers, its price. */
body.cfb-app .bl-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px;margin:0 0 6px;padding:14px 16px;border:1px solid var(--border,#e2e5e9);border-radius:12px;background:var(--surface-subtle,#f7f8fa)}
body.cfb-app .bl-summary strong{font-size:var(--text-lg)}
body.cfb-app .bl-summary span{font-size:var(--text-base);color:var(--text,#172b42)}
body.cfb-app .bl-summary span{padding-inline-start:18px;border-inline-start:1px solid var(--border,#d6dbe1)}
/* The top bar's language choice is the same height as Search beside it. */
body.cfb-app :is(.ws-top,.sa-top,.acct-topbar) :is(.cfb-lang,.ws-language) select{height:32px!important;min-height:32px!important;font-size:13px!important;padding:0 30px 0 10px!important;border-radius:8px;max-width:140px;background-position:right 10px center}
/* Figure cards: numbers stay large; words (a name, "Your Owner and Finance team") are set smaller so they read as text. */
body.cfb-app .trav-figures>div>strong{font-size:22px!important;line-height:1.25!important;letter-spacing:-.02em!important}
/* A table placed straight in a card never runs past the card's edge: the card scrolls it instead. */
body.cfb-app :is(.acct-card,.sa-card):has(>table){overflow-x:auto}
@media (max-width:640px){
  /* Tables without a header row (sessions, tasks, workflows): each row wraps its cells onto more lines. */
  body.cfb-app :is(.acct-card,.sa-card) table:not(.ui-cardable):not(.sa-table),body.cfb-app :is(.acct-card,.sa-card) table:not(.ui-cardable):not(.sa-table)>tbody{display:block;width:100%;min-width:0!important}
  body.cfb-app :is(.acct-card,.sa-card) table:not(.ui-cardable):not(.sa-table) tr{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:10px 0;border-bottom:1px solid var(--border,#e2e5e9)}
  body.cfb-app :is(.acct-card,.sa-card) table:not(.ui-cardable):not(.sa-table) td{display:block;padding:0;border:0;min-width:0;white-space:normal;overflow-wrap:break-word}
  body.cfb-app :is(.acct-card,.sa-card) table:not(.ui-cardable):not(.sa-table) td:first-child{flex:1 1 100%}
}
/* A table in a narrow card (a grid of cards, as on Suppliers) scrolls inside it rather than past its edge. */
@media (min-width:641px){body.cfb-app .acct-grid>.acct-card>table.acct-table{display:block;max-width:100%;overflow-x:auto}}
/* Travellers in the plan, on the plan card: a stepper, the price and when it applies, one button. */
body.cfb-app .bl-seats{margin-top:24px;padding:20px;border:1px solid var(--border,#e2e5e9);border-radius:14px;background:var(--surface,#fff)}
body.cfb-app .bl-seats-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
body.cfb-app .bl-seats-text{flex:1 1 260px;min-width:0}
body.cfb-app .bl-seats h3{margin:0 0 4px;font-size:var(--text-base);font-weight:600;color:var(--text,#172b42)}
body.cfb-app .bl-seats-text p{margin:0;font-size:var(--text-sm);line-height:1.5;color:var(--text-muted,#667386)}
body.cfb-app .bl-stepper{display:inline-flex;align-items:stretch;flex:none;border:1px solid var(--border-control,#cfd6dd);border-radius:10px;overflow:hidden;background:var(--surface,#fff)}
body.cfb-app .bl-stepper .bl-step{width:44px;min-height:44px;border:0;background:var(--surface-subtle,#f7f8fa);color:var(--text,#172b42);font-size:var(--text-xl);line-height:1;cursor:pointer}
body.cfb-app .bl-stepper .bl-step:hover{background:var(--surface-hover,#eef3f8)}
body.cfb-app .bl-stepper input{width:72px;height:44px;min-height:44px;border:0!important;border-inline:1px solid var(--border,#e2e5e9)!important;border-radius:0!important;text-align:center;font-size:17px;font-weight:600;padding:0!important}
body.cfb-app .bl-seats-preview:not(:empty){margin-top:16px;padding:14px 16px;border-radius:12px;background:var(--surface-subtle,#f7f8fa)}
body.cfb-app .bl-seats-preview p{margin:0}body.cfb-app .bl-seats-preview p+p{margin-top:6px}
body.cfb-app .bl-seats .form-row{margin:16px 0 0}
/* A short confirmation (founder, 29 Oct 2026): a card with a mark, readable on any page, never bare text. */
body #notice{display:flex;align-items:flex-start;gap:12px;min-width:min(360px,calc(100vw - 32px));max-width:min(560px,calc(100vw - 32px));padding:14px 18px!important;border-radius:12px!important;font-size:var(--text-base)!important;line-height:1.45;background:var(--surface,#fff)!important;color:var(--text,#172b42)!important;border:1px solid var(--border,#e2e5e9);box-shadow:0 12px 32px rgba(16,32,48,.16)!important;z-index:1000}
body #notice .notice-mark{flex:none;display:inline-flex;margin-top:1px}
body #notice.notice-done .notice-mark{color:#2f8a5b}
body #notice.notice-error{border-color:#e7b7ac}body #notice.notice-error .notice-mark{color:#b4432c}
body #notice .notice-text{min-width:0;overflow-wrap:break-word}
/* The confirmation of a finished action: a centred card with its mark, title, details and next steps. */
dialog.cfb-done{padding:0;border:0;background:transparent;max-width:calc(100vw - 32px);width:520px;color:var(--text,#172b42)}
dialog.cfb-done::backdrop{background:rgba(16,28,40,.42)}
.cfb-done-card{padding:32px 32px 28px;border-radius:18px;background:var(--surface,#fff);border:1px solid var(--border,#e2e5e9);box-shadow:0 24px 64px rgba(16,32,48,.22);text-align:center}
.cfb-done-mark{display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;margin:0 auto 16px;border-radius:20px;background:#e8f5ee;color:#2f8a5b}
.cfb-done-booked .cfb-done-mark{background:var(--accent-soft);color:#24588a}
.cfb-done-card h2{margin:0 0 8px;font-size:22px;font-weight:650;line-height:1.25;letter-spacing:-.01em}
.cfb-done-text{margin:0 auto 4px;max-width:42ch;font-size:15px;line-height:1.55;color:var(--text-muted,#5b6878)}
.cfb-done-facts{margin:20px 0 0;padding:4px 16px;border:1px solid var(--border,#e2e5e9);border-radius:12px;background:var(--surface-subtle,#f7f8fa);text-align:start}
.cfb-done-facts>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--border,#e2e5e9)}
.cfb-done-facts>div:last-child{border-bottom:0}
.cfb-done-facts dt{margin:0;font-size:var(--text-sm);color:var(--text-muted,#667386);flex:none;max-width:45%}
.cfb-done-facts dd{margin:0;font-size:var(--text-base);font-weight:600;text-align:end;overflow-wrap:break-word;min-width:0}
.cfb-done-actions{display:flex;flex-direction:column;gap:10px;margin-top:24px}
/* One column of equal buttons, the main next step on top (founder, 29 Oct 2026: no uneven buttons). */
.cfb-done-actions .button{box-sizing:border-box;width:100%;height:46px;min-height:0;margin:0;padding:0 18px;display:flex;align-items:center;justify-content:center;border-radius:10px;font-size:15px;font-weight:600;line-height:1;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cfb-done-actions .acct-primary:not([data-done=close]){order:-1}
@media (max-width:520px){.cfb-done-card{padding:26px 20px 22px}}
@media (prefers-color-scheme:dark){
  .cfb-done-mark{background:rgba(64,190,120,.16);color:#6fd39c}
  .cfb-done-booked .cfb-done-mark{background:rgba(110,170,230,.16);color:#9cc8f2}
  body #notice.notice-done .notice-mark{color:#6fd39c}
  body #notice.notice-error{border-color:rgba(231,140,120,.5)}body #notice.notice-error .notice-mark{color:#f0a58f}
  dialog.cfb-done::backdrop{background:rgba(0,0,0,.6)}
}

/* Plan history (founder, 29 Oct 2026): a timeline of the plan, newest first. A thin rail, one small square icon per
   change (no dots or pills), the title and date on one line, the details below. */
.ph-list{list-style:none;margin:8px 0 0;padding:0;position:relative}
.ph-item{position:relative;display:grid;grid-template-columns:32px minmax(0,1fr);gap:14px;padding:0 0 18px}
.ph-item:not(:last-child)::before{content:"";position:absolute;left:15.5px;top:34px;bottom:2px;width:1px;background:var(--border,#e2e5e9)}
.ph-mark{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:var(--surface-hover);color:#2b5d8f;border:1px solid var(--border)}
.ph-money .ph-mark{background:#ecf6f0;color:#2f7a52;border-color:#d4eadc}
.ph-alert .ph-mark{background:#fdf1e7;color:#a2541b;border-color:#f3dcc6}
.ph-ended .ph-mark{background:var(--surface-hover);color:#5b6878;border-color:var(--border)}
.ph-body{min-width:0;padding-top:5px}
.ph-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.ph-head strong{font-size:15px;font-weight:600;line-height:1.35;color:var(--text,#172b42);min-width:0;overflow-wrap:anywhere}
.ph-head time{flex:none;font-size:var(--text-sm);color:var(--text-muted,#667386);white-space:nowrap}
.ph-detail{margin:4px 0 0;font-size:var(--text-base);line-height:1.5;color:var(--text-muted,#5b6878)}
.ph-detail span+span::before{content:"·";margin:0 7px;color:var(--border-strong,#b8c0ca)}
.ph-by{margin:3px 0 0;font-size:var(--text-sm);color:var(--text-muted,#7a8594)}
.ph-card .ph-now{margin:8px 0 18px}
.ph-card .acct-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ph-card .acct-row h2{margin:0}
@media (max-width:640px){.ph-head{flex-direction:column;gap:2px}.ph-item{grid-template-columns:28px minmax(0,1fr);gap:12px}.ph-mark{width:28px;height:28px;border-radius:8px}.ph-item:not(:last-child)::before{left:13.5px;top:30px}}
@media (prefers-color-scheme:dark){
  .ph-mark{background:rgba(110,160,220,.14);color:#9cc4ee;border-color:rgba(110,160,220,.22)}
  .ph-money .ph-mark{background:rgba(64,190,120,.14);color:#7fd6a5;border-color:rgba(64,190,120,.22)}
  .ph-alert .ph-mark{background:rgba(230,140,60,.14);color:#f0b27a;border-color:rgba(230,140,60,.24)}
  .ph-ended .ph-mark{background:rgba(255,255,255,.06);color:#aab4c0;border-color:rgba(255,255,255,.1)}
}
/* The plan now on dashboards: facts, not headline numbers, so names and card labels fit on one or two lines. */
body.cfb-app .ph-now{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
body.cfb-app .ph-now>div{gap:6px;padding:12px 14px}
body.cfb-app .ph-now dd{font-size:var(--text-lg);font-weight:600;line-height:1.3;letter-spacing:-.005em}
@media (max-width:640px){body.cfb-app .ph-now{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.cfb-app .ph-now>div{gap:4px;padding:10px 12px}body.cfb-app .ph-now>div:nth-child(odd):last-child{grid-column:1/-1}body.cfb-app .ph-now dd{font-size:15px}}
.ph-detail span{display:inline-block;max-width:100%}

/* Agency invoicing (29 Oct 2026): the totals under an invoice's lines, right-aligned, the total in bold. */
.ai-totals{display:grid;gap:6px;max-width:420px;margin:16px 0 0 auto;padding:14px 16px;border:1px solid var(--border,#e2e5e9);border-radius:12px;background:var(--surface-subtle,#f7f8fa)}
.ai-totals>div{display:flex;justify-content:space-between;gap:16px;font-size:var(--text-base)}
.ai-totals dt{margin:0;color:var(--text-muted,#5b6878)}.ai-totals dd{margin:0;font-variant-numeric:tabular-nums;text-align:end}
.ai-totals .ai-strong{padding-top:8px;margin-top:2px;border-top:1px solid var(--border,#e2e5e9);font-weight:650}.ai-totals .ai-strong dt{color:var(--text,#172b42)}
.ai-line{align-items:end}.ai-claim{padding:10px 0;border-bottom:1px solid var(--border,#e2e5e9)}.ai-claim:last-child{border-bottom:0}
.ai-more{margin-top:18px}.ai-more>summary{cursor:pointer;font-weight:600}
@media (max-width:640px){.ai-totals{max-width:none}}

/* One organised list in Super Admin (29 Oct 2026): Carreh Admin's list, in Business's tokens. Search first, figures in
   balanced rows, a filter bar, numbered rows that wrap and are never cut, 44px targets. No pills or dots. */
.salv{--salv-line:var(--border,#e2e5e9);--salv-card:var(--surface,#fff);--salv-hover:var(--surface-subtle,#f5f7f9);--salv-ink:var(--text,#172b42);--salv-ink2:var(--text-muted,#5b6878);--salv-mute:#8a95a3;--salv-r:12px}
.salv *{box-sizing:border-box}
.salv-search{position:relative;margin:0 0 12px}.salv-search svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);opacity:.55;pointer-events:none}
.salv-q{width:100%;min-height:44px;border:1px solid var(--salv-line);border-radius:var(--salv-r);padding:10px 14px 10px 38px;font:inherit;font-size:15px;background:var(--salv-card);color:var(--salv-ink)}
.salv-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 12px}.salv-stats:empty{display:none}
.salv-stats[data-n="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.salv-stats[data-n="3"],.salv-stats[data-n="6"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.salv-stat{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:3px;min-height:72px;padding:12px 14px;border:1px solid var(--salv-line);border-radius:var(--salv-r);background:var(--salv-card)}
.salv-stat:hover{background:var(--salv-hover)}.salv-stat:focus-visible{outline:2px solid var(--salv-ink);outline-offset:2px}
.salv-stat[aria-pressed="true"]{border-color:var(--salv-ink);box-shadow:inset 0 0 0 1px var(--salv-ink)}
.salv-stat b{font-size:22px;line-height:1.15;font-weight:700;font-variant-numeric:tabular-nums;color:var(--salv-ink);overflow-wrap:anywhere}
.salv-stat span{font-size:var(--text-sm);color:var(--salv-ink2);line-height:1.3}.salv-stat i{font-style:normal;font-size:var(--text-xs);color:var(--salv-mute)}
.salv-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 8px}
.salv-btn,.salv-sel{min-height:44px;border:1px solid var(--salv-line);background:var(--salv-card);border-radius:10px;padding:0 14px;font:inherit;font-size:var(--text-base);font-weight:600;color:var(--salv-ink);cursor:pointer}
.salv-sel{appearance:none;-webkit-appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235b6878' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.salv-btn:hover,.salv-sel:hover{background-color:var(--salv-hover)}.salv-btn[aria-expanded="true"]{border-color:var(--salv-ink)}.salv-btn[disabled]{opacity:.45;cursor:default}
.salv-tests{display:inline-flex;gap:8px;align-items:center;min-height:44px;font-size:var(--text-base);color:var(--salv-ink);cursor:pointer}.salv-tests[hidden]{display:none}.salv-tests input{width:18px;height:18px}
.salv-tools{display:inline-flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.salv-facets{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px 12px;padding:12px;border:1px solid var(--salv-line);border-radius:var(--salv-r);background:var(--salv-card);margin:0 0 8px}.salv-facets[hidden]{display:none}
.salv-facets label{display:flex;flex-direction:column;gap:4px;font-size:var(--text-sm);font-weight:600;color:var(--salv-ink2);min-width:0}
.salv-facets select{width:100%;min-height:44px;border:1px solid var(--salv-line);border-radius:8px;padding:0 10px;font:inherit;font-size:var(--text-base);color:var(--salv-ink);background:var(--salv-card)}
.salv-link{min-height:44px;border:0;background:none;padding:0 2px;font:inherit;font-weight:600;font-size:var(--text-base);color:var(--salv-ink);text-decoration:underline;cursor:pointer;align-self:end;justify-self:start}
.salv-sum{font-size:var(--text-sm);color:var(--salv-ink2);margin:4px 0 8px}
.salv-list{list-style:none;margin:0;padding:0;border:1px solid var(--salv-line);border-radius:var(--salv-r);background:var(--salv-card);overflow:hidden}
.salv-row+.salv-row{border-top:1px solid var(--salv-line)}
.salv-a{display:grid;grid-template-columns:2.4em minmax(0,1fr);gap:0 10px;min-height:44px;padding:12px 16px 12px 10px;color:inherit;text-decoration:none}
a.salv-a:hover{background:var(--salv-hover)}a.salv-a:focus-visible{outline:2px solid var(--salv-ink);outline-offset:-2px}
.salv-n{font-variant-numeric:tabular-nums;color:var(--salv-mute);font-size:var(--text-sm);text-align:right;padding-top:2px}
.salv-body{min-width:0;display:flex;flex-direction:column;gap:2px}
.salv-title{font-weight:700;font-size:15px;color:var(--salv-ink);line-height:1.35;overflow-wrap:anywhere}
.salv-status{font-size:var(--text-base);line-height:1.4;color:var(--salv-ink);overflow-wrap:anywhere}.salv-line{font-size:13.5px;line-height:1.4;color:var(--salv-ink2);overflow-wrap:anywhere}
.salv-meta{font-size:var(--text-xs);line-height:1.4;color:var(--salv-mute);overflow-wrap:anywhere;margin-top:1px}.salv-test{font-size:var(--text-sm);color:#a2541b}
.salv-good{color:#2f7a52}.salv-warn{color:#a2541b}.salv-bad{color:#b4322a}.salv-muted{color:var(--salv-mute)}
.salv-state{padding:28px 18px;text-align:center;display:flex;flex-direction:column;gap:8px;align-items:center;border:1px solid var(--salv-line);border-radius:var(--salv-r);background:var(--salv-card)}
.salv-state b{font-size:15px;color:var(--salv-ink)}.salv-state span{font-size:var(--text-base);color:var(--salv-ink2);max-width:42ch}
.salv-pager{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:10px;font-size:var(--text-base);color:var(--salv-ink2);flex-wrap:wrap}
.salv-skel{display:grid;grid-template-columns:2.4em minmax(0,1fr);gap:0 10px;padding:14px 16px 14px 10px}.salv-skel+.salv-skel{border-top:1px solid var(--salv-line)}
.salv-skel i{display:block;height:11px;border-radius:6px;background:var(--salv-hover);margin:4px 0}.salv-skel i:nth-child(1){width:46%;height:13px}.salv-skel i:nth-child(2){width:64%}.salv-skel i:nth-child(3){width:32%}
@media (max-width:640px){.salv-stats,.salv-stats[data-n="4"],.salv-stats[data-n="8"]{grid-template-columns:repeat(2,minmax(0,1fr))}.salv-stats[data-n="3"],.salv-stats[data-n="6"]{grid-template-columns:repeat(3,minmax(0,1fr))}.salv-stat b{font-size:18px}.salv-tools{margin-left:0}}
@media (prefers-color-scheme:dark){.salv{--salv-mute:#8f9aa7}.salv-good{color:#7fd6a5}.salv-warn,.salv-test{color:#f0b27a}.salv-bad{color:#f19a92}
  .salv-sel{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%23aab4c0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}}

/* One site for an agency's clients (9 Nov 2026, approved previews R-Agency-*): the agency's landing page
   (src/agency/landing.ts, its plain page), its application form (apply.js) and its client portal and terms (portal.js)
   share one frame. Paper ground, white cards with a thin border, a serif page title, one header (the agency's logo or
   mark and name, language, the action) and one footer, and the agency's colour (--agency, set by ptSite; --agency-ink
   is the same colour readable on paper) on the mark, the main buttons, links and progress. Dark follows the device. */
html body.cfb-app:has(.pt-site){background:#FAF9F6}
html body.cfb-app .pt-site{
  --agency:#183A59;--agency-ink:var(--agency);--agency-link:var(--agency-ink);--agency-bar:var(--agency);
  --canvas:#FAF9F6;--surface:#FFFFFF;--surface-subtle:#FAF9F6;--surface-hover:#F2F1ED;--text:#172B42;--text-secondary:#526174;--text-muted:#667386;
  --border:#E2E5E9;--border-strong:#C9D0D9;--border-control:#7E8C9B;--primary:var(--agency);--on-primary:#FFFFFF;--accent:var(--agency-link);--focus:var(--agency-link);
  --shadow-sm:none;--shadow-hover:none;--radius-lg:14px;--pt-gutter:max(32px,calc((100% - 1056px) / 2));
  width:100%;max-width:none;min-height:100vh;margin:0;padding:0!important;display:flex;flex-direction:column;align-items:stretch;background:var(--canvas);color:var(--text)}
@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]) body.cfb-app:has(.pt-site){background:#12171C}
  :root:not([data-theme="light"]) body.cfb-app .pt-site{--agency-link:color-mix(in srgb,var(--agency) 38%,#FFFFFF);--agency-bar:var(--agency-link);
    --canvas:#12171C;--surface:#1A2229;--surface-subtle:#182027;--surface-hover:#202A33;--text:#E7ECF0;--text-secondary:#B4BFC8;--text-muted:#9AA6B1;
    --border:#2A343D;--border-strong:#36424C;--border-control:#55636F}
}
html[data-theme="dark"] body.cfb-app:has(.pt-site){background:#12171C}
[data-theme="dark"] body.cfb-app .pt-site{--agency-link:color-mix(in srgb,var(--agency) 38%,#FFFFFF);--agency-bar:var(--agency-link);
  --canvas:#12171C;--surface:#1A2229;--surface-subtle:#182027;--surface-hover:#202A33;--text:#E7ECF0;--text-secondary:#B4BFC8;--text-muted:#9AA6B1;
  --border:#2A343D;--border-strong:#36424C;--border-control:#55636F}

/* Header: full width with a hairline, the content lined up with the page below. */
html body.cfb-app .pt-site>.pt-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;min-height:72px;margin:0;padding:12px var(--pt-gutter);border-bottom:1px solid var(--border);background:var(--canvas)}
html body.cfb-app .pt-site .pt-brand{display:flex;align-items:center;gap:10px;min-height:44px;color:var(--text);text-decoration:none;min-width:0}
html body.cfb-app .pt-site .pt-brand strong{font-weight:600;font-size:17px;overflow-wrap:anywhere}
html body.cfb-app .pt-site .pt-logo{height:auto;max-height:44px;max-width:200px}
html body.cfb-app .pt-site .pt-mark{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9px;background:var(--agency);color:#FFFFFF;font-weight:600;font-size:14px}
html body.cfb-app .pt-site .pt-head-end{margin-inline-start:auto;display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px}
html body.cfb-app .pt-site .pt-head .cfb-lang select{height:44px!important;min-height:44px!important;max-width:150px;padding:0 32px 0 12px!important;border-radius:10px;font-size:14px!important;background-color:var(--surface);color:var(--text);border:1px solid var(--border-strong)}
html body.cfb-app .pt-site .pt-head .button.secondary{min-height:44px!important;padding:0 4px!important;border:0!important;background:none!important;color:var(--agency-link)!important;box-shadow:none!important}
html body.cfb-app .pt-site .pt-head .button.secondary:hover{text-decoration:underline;text-underline-offset:3px}
html body.cfb-app .pt-site .pt-head-email{font-size:14px;color:var(--text-muted)}

/* The page: one column of white cards on paper, lined up with the header. */
html body.cfb-app .pt-site>.pt-body{width:100%;max-width:1120px;margin:0 auto;padding:48px 32px 72px;box-sizing:border-box}
html body.cfb-app .pt-site .pt-body>.acct-team{width:100%;max-width:none;margin:0;padding:0;display:block;background:none}
html body.cfb-app .pt-site .pt-body .acct-card{width:100%;max-width:none;margin:0 0 20px;padding:24px 28px;box-sizing:border-box}
html body.cfb-app .pt-site h1{font-family:var(--serif)!important;font-weight:600!important;font-size:clamp(28px,3.6vw,38px)!important;line-height:1.12!important;letter-spacing:-.01em!important;color:var(--text);margin:0 0 12px}
html body.cfb-app .pt-site .pt-body a:not(.button){color:var(--agency-link)}
html body.cfb-app .pt-site button.acct-link{min-height:44px;color:var(--agency-link)}
html body.cfb-app .pt-site .button,html body.cfb-app .pt-site .button.trav-small{min-height:44px!important}
html body.cfb-app .pt-site .button.acct-primary{background:var(--agency)!important;border-color:var(--agency)!important;color:#FFFFFF!important}
html body.cfb-app .pt-site .button.acct-primary:hover{filter:brightness(1.08)}
html body.cfb-app .pt-site :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--agency-link);outline-offset:2px}
html body.cfb-app .pt-site details>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}
html body.cfb-app .pt-site>.pt-body>.footer-note,html body.cfb-app .pt-site .apl>.footer-note{margin:4px 0 0}

/* The application form: a reading column, where the client is as plain text and a thin bar. */
html body.cfb-app .pt-site .apl{max-width:760px!important}
html body.cfb-app .pt-site .apl-progress{display:flex;flex-direction:column;gap:10px;margin:0 0 24px;max-width:640px}
html body.cfb-app .pt-site .apl-progress p{margin:0;font-size:15px;color:var(--text-secondary)}
html body.cfb-app .pt-site .apl-progress strong{color:var(--text);font-weight:600}
html body.cfb-app .pt-site .pt-bar{height:4px;border-radius:2px;background:var(--border);overflow:hidden}
html body.cfb-app .pt-site .pt-bar>span{display:block;height:100%;background:var(--agency-bar)}

/* Sign-in and terms: one narrow column. */
html body.cfb-app .pt-site-signin>.pt-body{max-width:544px}
html body.cfb-app .pt-site-signin .acct-card.pt-signin{padding:32px}
html body.cfb-app .pt-site .pt-doc{max-width:800px!important}

/* The portal: the greeting on paper, cards in two columns, a case's stages as short bars. */
html body.cfb-app .pt-site .pt-body>.pt-workspace{display:grid;max-width:none;padding:0;margin:0;background:none;gap:24px}
html body.cfb-app .pt-site .pt-workspace>.acct-card{margin:0;padding:24px}
html body.cfb-app .pt-site .pt-workspace>.pt-welcome{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:0 0 4px!important}
html body.cfb-app .pt-site .pt-welcome h1{margin:0 0 8px}
html body.cfb-app .pt-site .pt-waiting{background:none;padding:0;margin:8px 0 0;border-radius:0;color:var(--warning);font-weight:600}
html body.cfb-app .pt-site .ag-msg{background:var(--canvas);border:1px solid var(--border);border-radius:10px}
html body.cfb-app .pt-site .ag-msg.ag-in{background:var(--surface)}
html body.cfb-app .pt-site .pt-stages{list-style:none;margin:20px 0 0;padding:0;display:flex;gap:6px;position:relative}
html body.cfb-app .pt-site .pt-stages li{flex:1 1 0;min-width:0;display:flex;flex-direction:column}
html body.cfb-app .pt-site .pt-seg{display:block;height:4px;border-radius:2px;background:var(--border)}
html body.cfb-app .pt-site .pt-stages li.done .pt-seg,html body.cfb-app .pt-site .pt-stages li.now .pt-seg{background:var(--agency-bar)}
html body.cfb-app .pt-site .pt-stage-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html body.cfb-app .pt-site .pt-stage-now{margin:10px 0 0;font-size:15px;font-weight:600;color:var(--text)}
/* Links on their own (a file, "Apply for another service") get a finger-sized target without moving the text. */
html body.cfb-app .pt-site .pt-body a:not(.button){padding-block:16px}

/* Footer: the agency, its links, then who hosts the page and who answers for what. */
html body.cfb-app .pt-site>.pt-foot{margin:auto 0 0;padding:24px var(--pt-gutter) 32px;border-top:1px solid var(--border);text-align:start;font-size:13px;line-height:1.8;color:var(--text-muted)}
html body.cfb-app .pt-site>.pt-foot p,html body.cfb-app .pt-site>.pt-foot .footer-note{margin:4px 0;font-size:13px;color:var(--text-muted)}
html body.cfb-app .pt-site>.pt-foot strong{color:var(--text);font-weight:600}
html body.cfb-app .pt-site>.pt-foot a{color:var(--text-muted);padding:12px 0}
html body.cfb-app .pt-site>.pt-foot a:hover{color:var(--text)}

@media (max-width:680px){
  html body.cfb-app .pt-site{--pt-gutter:16px}
  html body.cfb-app .pt-site>.pt-head{min-height:64px;padding-block:8px}
  html body.cfb-app .pt-site .pt-head-email{display:none}
  html body.cfb-app .pt-site>.pt-body{padding:32px 16px 48px}
  html body.cfb-app .pt-site .pt-body .acct-card,html body.cfb-app .pt-site .pt-workspace>.acct-card{padding:20px 16px}
  html body.cfb-app .pt-site .pt-workspace>.pt-welcome{padding:0!important}
  html body.cfb-app .pt-site .pt-stages{gap:4px}
  html body.cfb-app .pt-site .form-row>.pt-ref-link{flex:0 0 auto;width:100%;min-height:44px}
}

/* The agency's brand kit fonts on its form, portal and terms (10 Nov 2026), the same pairings as its page. */
html body.cfb-app .pt-site[data-fonts="inter"] :is(h1,h2,h3){font-family:"Inter Variable",Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;letter-spacing:-.02em}
html body.cfb-app .pt-site[data-fonts="system"],html body.cfb-app .pt-site[data-fonts="system"] :is(h1,h2,h3,button,input,select,textarea){font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",sans-serif}
html body.cfb-app .pt-site[data-fonts="serif"],html body.cfb-app .pt-site[data-fonts="serif"] :is(p,li,label,td,th){font-family:Charter,"Iowan Old Style",Georgia,serif}
/* The landing page editor (10 Nov 2026): every control at least 44px high, on a phone too. */
html body.cfb-app :is(.alp-top,.alp-editor,.alp-preview) :is(.button,.button.trav-small,select,input:not([type=checkbox]):not([type=radio]):not([type=file])){min-height:44px!important}
html body.cfb-app .alp-top .acct-table a{display:inline-flex;align-items:center;min-height:44px}
html body.cfb-app .alp-editor .acct-check{display:flex;align-items:center;gap:8px;min-height:44px}
html body.cfb-app .alp-editor .acct-link{min-height:44px;display:inline-flex;align-items:center}
