/* claude-admin-20261118: Settings, System, Operations, Page access, the Team member editor (staff types and
   permissions) and the Work API keys dialog. Presentation only. Tokens only (Paper, Card, Ink, Stone,
   Hairline, Well, Field Border, Miami). Page-title (h1) type belongs to the shell leaf (#799). Codex type roles: title 24/30/600, section heading 16/22/600,
   body 16/24, label 13/18/500, caption 12/17; nothing under 12px. No motion. Selectors carry a tripled
   id so they outrank the unified-experience layer without !important. Settings rules skip the Security
   section (any pane holding #bacSecurity), which belongs to the passkeys leaf. */

/* ── Settings: the section list (navigation chrome, every section) ─────────────────────────────── */
@media (min-width:721px){
 html :is(#content#content#content,#drawer#drawer#drawer) .bac[data-mode] .bac-nav{gap:2px}
 html :is(#content#content#content,#drawer#drawer#drawer) .bac[data-mode] .bac-me{padding:8px 12px 16px;margin-bottom:8px}
 html :is(#content#content#content,#drawer#drawer#drawer) .bac[data-mode] .bac-navitem{min-height:44px;padding:10px 12px;border-radius:8px;gap:12px;font:500 14px/20px var(--sans,'Geist',system-ui,sans-serif)}
 html :is(#content#content#content,#drawer#drawer#drawer) .bac[data-mode] .bac-navitem[aria-current=page]{background:var(--well);color:var(--ink);box-shadow:none;border-color:transparent}
 html :is(#content#content#content,#drawer#drawer#drawer) .bac[data-mode] .bac-navitem[aria-current=page] svg:first-child{color:var(--miami,var(--bleu))}
}

/* ── Settings: a section's content. The group and row box (padding, one hairline, no double bottom border)
   applies to every section, Security included, and to every row in a group, the Home Screen row (#788)
   included; so do the flat page pane (#/account) and the section header (title type, no focus box); nothing styles anything inside a row of #788 or #807's #accountPasskeys card, and every other
   rule here skips Security (#807). ─────────────────────────────────────────────── */
html #content#content#content .bac[data-mode=page] .bac-pane{background:transparent;border:0;box-shadow:none;border-radius:0;padding:4px 0 32px}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:focus,html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane>h2:focus{outline:0;box-shadow:none}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane>h2{margin:0 0 4px;font:600 24px/30px var(--sans,'Geist',system-ui,sans-serif);letter-spacing:-.5px;color:var(--ink)}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane .bac-back{color:var(--ink)} /* shared navigation chrome: every section, Security included */
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-lead{margin:0 0 16px;color:var(--stone);font-size:16px;line-height:24px}
/* #/account: the 1200px Settings column is anchored left like every other page (the account-navigation layer
   centres it on wide screens). Where the title sits vertically is the shell's (#799), not this leaf's. */
@media (min-width:721px){html #content#content#content .bac[data-mode=page]{margin-left:0;margin-right:auto}}
/* Region & time: the module says which dates follow the choice; the generic lead overclaimed it. */
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:has(>#bacRegional)>.bac-lead{display:none}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-h3{margin:24px 0 8px;font:600 16px/22px var(--sans,'Geist',system-ui,sans-serif);color:var(--ink)}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane .bac-rows{margin:0 0 16px;padding:0;background:var(--card);border:1px solid var(--hairline);border-radius:12px;overflow:hidden}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane .bac-rows>.bac-row{min-height:60px;margin:0;padding:12px 16px;gap:16px;border:0;border-bottom:1px solid var(--hairline)}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane .bac-rows>.bac-row:last-child{border-bottom:0}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-rowtext b{font-size:13px;line-height:18px;font-weight:500;color:var(--ink)}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-rowtext>span{font-size:12px;line-height:17px;color:var(--stone)}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-rowctl{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-identity{display:flex;align-items:center;gap:16px;margin:16px 0 20px;padding:0 0 20px;border-bottom:1px solid var(--hairline)}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-quiet{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:12px 16px;border:1px solid var(--hairline);border-radius:12px;background:var(--card);color:var(--stone);font-size:13px;line-height:18px}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-module{margin:0 0 16px}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-module>[data-regional-preferences]>h3{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-module>[data-regional-preferences]{max-width:560px}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-module>[data-regional-preferences]>p{margin:0 0 12px;color:var(--stone);font-size:13px;line-height:18px}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-module>[data-regional-preferences] fieldset{display:grid;gap:4px;margin:0;padding:16px;border:1px solid var(--hairline);border-radius:12px;background:var(--card)}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-module>[data-regional-preferences] label{display:grid;gap:6px;margin-top:12px;font-size:13px;line-height:18px;font-weight:500;color:var(--ink)}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-module>[data-regional-preferences] label:first-child{margin-top:0}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-module>[data-regional-preferences] fieldset>p{margin:2px 0 0;color:var(--stone);font-size:12px;line-height:17px}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-module>[data-regional-preferences] :is(input,select){width:100%;max-width:none;min-height:44px;box-sizing:border-box;font-size:16px}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-module>[data-regional-preferences] [data-region-preview]{margin:12px 0 4px;padding:10px 12px;border-radius:8px;background:var(--well);color:var(--ink);font-size:13px;line-height:18px}
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-module>[data-regional-preferences] fieldset>button{min-height:44px;margin-top:8px}
/* Switches keep their drawn track, knob and border; only the hit area grows to 44 x 44 (a transparent
   pseudo-element the switch owns, so a tap on it is a tap on the switch). */
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) input.bac-switch::before,
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) input.feel-switch::after{content:'';position:absolute;left:50%;top:50%;width:max(44px,100%);height:44px;transform:translate(-50%,-50%);background:transparent;border-radius:0;pointer-events:auto}
/* Phones, inside a section: "‹ Settings" and the section title are the only navigation. The page title and
   the "Back to onbleu" exit belong to the section list, one tap back, where they stay. */
@media (max-width:720px){
 html #content#content#content .bac[data-mode=page][data-view=section] .bac-top{display:none!important} /* the account-navigation layer sets display:flex!important on .bac-host .bac-top */
 html #content#content#content .bac[data-mode=page][data-view=section] .bac-pane .bac-back{margin:0 0 4px -8px;padding:0 8px}
}
/* The off switch's edge must read at 3:1 in dark too (the feel switch's own border was 1.2:1 on dark Card). */
html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) input.feel-switch:not(:checked){border-color:var(--stone)}
@media (max-width:720px){
 html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-rowctl{flex:0 0 auto;margin-left:auto}
}
@media (max-width:1194px),(pointer:coarse){
 html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-rowctl :is(button,a),html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane .bac-back,html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-quiet :is(a,button),html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-navitem{min-height:44px}
 html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-quiet :is(a,button){display:inline-flex;align-items:center}
}

/* ── System (#/health) ──────────────────────────────────────────────────────────────────────────── */
html #content#content#content .bleu-health{max-width:1200px;margin:0;padding:0}
html #content#content#content .bleu-health>.bh-heading{align-items:flex-start;flex-wrap:nowrap;margin:0 0 20px}
html #content#content#content .bleu-health>.bh-heading p{margin:4px 0 0;font-size:16px;line-height:24px}
html #content#content#content .bleu-health>.bh-heading>button{flex:none;min-height:44px}
html #content#content#content .bleu-health .bh-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px 24px;margin:0 0 16px;padding:14px 20px;border:1px solid var(--hairline);border-radius:12px;background:var(--card);box-shadow:none}
html #content#content#content .bleu-health .bh-summary strong{display:inline-flex;align-items:center;gap:8px;color:var(--ink);font-size:16px;line-height:24px}
html #content#content#content .bleu-health .bh-summary strong>span{display:inline-flex}
html #content#content#content .bleu-health .bh-summary>span{color:var(--stone);font-size:13px;line-height:18px}
html #content#content#content .bleu-health .bh-card{margin:0 0 16px;padding:20px 24px;border:1px solid var(--hairline);border-radius:12px;background:var(--card);box-shadow:none}
html #content#content#content .bleu-health .bh-card h2{font:600 16px/22px var(--font-ui,'Geist',system-ui,sans-serif);margin:0 0 4px}
html #content#content#content .bleu-health .bh-card .bh-heading{align-items:flex-start;margin:0 0 12px}
html #content#content#content .bleu-health .bh-actions{justify-content:flex-start;gap:8px;margin:16px 0 4px;padding-top:16px;border-top:1px solid var(--hairline)}
html #content#content#content .bleu-health .bh-actions button{min-height:44px}
html #content#content#content .bleu-health .bh-toggle{display:flex;align-items:center;gap:10px;min-height:44px}
html #content#content#content .bleu-health .bh-toggle span{color:var(--stone);font-size:13px}
html #content#content#content .bleu-health .bh-row{padding:12px 0;border-bottom:1px solid var(--hairline)}
html #content#content#content .bleu-health .bh-row:last-child{border-bottom:0}
html #content#content#content .bleu-health :is(input,select,button,summary,a):focus-visible{outline:2px solid var(--miami,#0075E1);outline-offset:2px}
html #content#content#content .bleu-health table{font-variant-numeric:tabular-nums}
html #content#content#content .bleu-health details.bh-card>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600}
@media (max-width:1194px),(pointer:coarse){
 html #content#content#content .bleu-health :is(button,summary,.bh-toggle,select,input:not([type=checkbox])){min-height:44px}
}
@media (max-width:720px){
 html #content#content#content .bleu-health .bh-summary{padding:12px 16px}
 html #content#content#content .bleu-health .bh-card{padding:16px}
 html #content#content#content .bleu-health .bh-card .bh-heading{flex-wrap:wrap}
 html #content#content#content .bleu-health .bh-actions button{flex:1 1 calc(50% - 4px)}
}

/* ── Operations (#/ops) ─────────────────────────────────────────────────────────────────────────── */
html #content#content#content .viewhost:has(>.opx-tabs>[data-opx-mode]){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:start}
html #content#content#content .viewhost:has(>.opx-tabs>[data-opx-mode])>*{grid-column:1/-1;min-width:0}
html #content#content#content .viewhost:has(>.opx-tabs>[data-opx-mode])>h1.view{grid-column:1;grid-row:1;margin:0}
html #content#content#content .viewhost:has(>.opx-tabs>[data-opx-mode])>.opx-refresh{grid-column:2;grid-row:1;justify-self:end;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0}
html #content#content#content .viewhost:has(>.opx-tabs>[data-opx-mode])>.opx-tabs{margin-top:12px}
/* Refresh sits beside the title, centred on the title's first line box (the shell's rule, #799: 34px lines from
   600px up, 30px below), without moving the title: half the difference between its 44px height and the line. */
html #content#content#content .viewhost:has(>.opx-tabs>[data-opx-mode])>.opx-refresh{margin-top:-5px}
@media (max-width:599px){html #content#content#content .viewhost:has(>.opx-tabs>[data-opx-mode])>.opx-refresh{margin-top:-7px}}
html #content#content#content .viewhost>[data-opx-context]{margin:12px 0 4px;padding:0;border:0;background:none;box-shadow:none;color:var(--stone);font-size:13px;line-height:18px;max-width:none}
@media (max-width:720px){
 /* One scrolling row of tabs with an edge fade instead of a clipped third tab. */
 html #content#content#content .viewhost>.opx-tabs[data-opx-tabs]{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding-inline:16px;scroll-padding-inline:16px;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent)}
 html #content#content#content .viewhost>.opx-tabs[data-opx-tabs]::-webkit-scrollbar{display:none}
 html #content#content#content .viewhost>.opx-tabs[data-opx-tabs]>[data-opx-mode]{flex:none;white-space:nowrap;min-height:44px}
 html #content#content#content .viewhost>.opx-tabs[data-opx-tabs]>[data-opx-mode]:last-child{margin-right:24px}
 /* One count per row: no orphaned third tile. */
 html #content#content#content .viewhost [data-opx-panel] .kpis[data-bv-kpis]{display:grid;grid-template-columns:minmax(0,1fr)}
 html #content#content#content .viewhost [data-opx-panel] .kpis[data-bv-kpis]>.kpi{border-right:0;border-bottom:1px solid var(--hairline)}
 html #content#content#content .viewhost [data-opx-panel] .kpis[data-bv-kpis]>.kpi:last-child{border-bottom:0}
}

/* ── Page access drawer ─────────────────────────────────────────────────────────────────────────── */
html #drawer#drawer#drawer .op-page-access>header.dh{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:16px 16px 16px 24px;border-bottom:1px solid var(--hairline)}
html #drawer#drawer#drawer .op-page-access>header.dh h2{margin:0;font:600 24px/30px var(--sans,'Geist',system-ui,sans-serif);letter-spacing:-.5px}
html #drawer#drawer#drawer .op-page-access>header.dh button{min-height:44px}
html #drawer#drawer#drawer .op-page-access .op-page-access-body{margin:0;max-width:none;padding:16px 24px 32px}
html #drawer#drawer#drawer .op-page-access .op-page-access-body>h3{margin:20px 0 4px;font:600 16px/22px var(--sans,'Geist',system-ui,sans-serif)}
html #drawer#drawer#drawer .op-page-access .op-page-access-body>p{margin:4px 0;color:var(--stone);font-size:13px;line-height:18px}
html #drawer#drawer#drawer .op-page-access .op-page-access-body>p.op-page-muted:first-child{margin:0;font-size:12px;line-height:17px}
html #drawer#drawer#drawer .op-page-access input[type=search]{width:100%;min-height:44px;margin:12px 0 4px;box-sizing:border-box;font-size:16px}
html #drawer#drawer#drawer .op-page-access .op-page-members{border:1px solid var(--hairline);border-radius:12px;overflow:hidden;background:var(--card)}
html #drawer#drawer#drawer .op-page-access .op-page-member{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:8px 16px;border-bottom:1px solid var(--hairline)}
html #drawer#drawer#drawer .op-page-access .op-page-member:last-child{border-bottom:0}
html #drawer#drawer#drawer .op-page-access .op-page-member strong{display:block;font-size:13px;line-height:18px;font-weight:500;color:var(--ink)}
html #drawer#drawer#drawer .op-page-access .op-page-member small{display:block;color:var(--stone);font-size:12px;line-height:17px}
html #drawer#drawer#drawer .op-page-access .op-page-member button{flex:none;min-height:44px}
html #drawer#drawer#drawer .op-page-access .op-page-members>p{margin:0;padding:16px;color:var(--stone)}

/* ── Team member editor › Permissions: staff types and access by area ───────────────────────────── */
html #drawer#drawer#drawer .ps-panel{--ps-border:var(--hairline);--ps-card:var(--card);--ps-ink:var(--ink);--ps-muted:var(--stone);max-width:none;padding:16px 0}
html #drawer#drawer#drawer .ps-panel .ps-heading h3{margin:0 0 4px;font:600 16px/22px var(--sans,'Geist',system-ui,sans-serif);letter-spacing:0;color:var(--ink)}
html #drawer#drawer#drawer .ps-panel .ps-heading p{margin:0 0 16px;font-size:13px;line-height:18px}
html #drawer#drawer#drawer .ps-panel .ps-type{border-radius:12px;padding:16px;gap:8px 16px}
html #drawer#drawer#drawer .ps-panel .ps-type label{font-size:13px;line-height:18px;font-weight:500;gap:6px}
html #drawer#drawer#drawer .ps-panel .ps-type p{font-size:12px;line-height:17px}
html #drawer#drawer#drawer .ps-panel select{font-size:16px}
/* The summary is one list: each area on its own row, value at the right (it was a ragged two-column grid). */
html #drawer#drawer#drawer .ps-panel .ps-overview{grid-template-columns:minmax(0,1fr);gap:0;margin:16px 0;padding:0;border:1px solid var(--hairline);border-radius:12px;background:var(--card);overflow:hidden}
html #drawer#drawer#drawer .ps-panel .ps-access-item{align-items:center;min-height:44px;padding:10px 16px;border-bottom:1px solid var(--hairline);font-size:13px;line-height:18px}
html #drawer#drawer#drawer .ps-panel .ps-access-item:last-child{border-bottom:0}
html #drawer#drawer#drawer .ps-panel .ps-access-item>span{font-weight:500;color:var(--ink)}
html #drawer#drawer#drawer .ps-panel .ps-access-item strong{font-weight:400;color:var(--stone)}
html #drawer#drawer#drawer :is(.ps-panel,.ps-account-details) summary{min-height:44px;display:flex;align-items:center;gap:10px;list-style:none;font:600 16px/22px var(--sans,'Geist',system-ui,sans-serif)}
html #drawer#drawer#drawer :is(.ps-panel,.ps-account-details) summary::-webkit-details-marker{display:none}
html #drawer#drawer#drawer :is(.ps-panel,.ps-account-details) summary::before{content:'';flex:none;width:7px;height:7px;margin:0 3px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
html #drawer#drawer#drawer :is(.ps-panel,.ps-account-details) details[open]>summary::before,html #drawer#drawer#drawer details.ps-account-details[open]>summary::before{transform:rotate(45deg)}
html #drawer#drawer#drawer .ps-panel .ps-customize>p{font-size:13px;line-height:18px}
/* Access and Records labels once, as column headings; every select keeps its own accessible name. */
html #drawer#drawer#drawer .ps-panel .ps-row{grid-template-columns:minmax(96px,1fr) minmax(136px,168px) minmax(160px,184px);padding:8px 0}
html #drawer#drawer#drawer .ps-panel .ps-row strong{font-size:13px;line-height:18px;font-weight:500;color:var(--ink)}
html #drawer#drawer#drawer .ps-panel .ps-row label{font-size:12px;line-height:17px;color:var(--stone)}
html #drawer#drawer#drawer .ps-panel .ps-grid>.ps-row:not(:first-child) label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html #drawer#drawer#drawer .ps-panel .ps-row select{font-size:14px;padding-right:30px;text-overflow:ellipsis}
html #drawer#drawer#drawer .ps-panel .ps-customize>button{font-size:13px;color:var(--ink)}
html #drawer#drawer#drawer .ps-panel .ps-sensitive{border-radius:12px;font-size:12px;line-height:17px;color:var(--stone)}
html #drawer#drawer#drawer .ps-account-details{border-color:var(--hairline);max-width:none}
html #drawer#drawer#drawer .ps-account-details>label{font-size:13px;line-height:18px;min-height:44px}
@media (max-width:720px){
 html #drawer#drawer#drawer .ps-panel .ps-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:12px 0}
 html #drawer#drawer#drawer .ps-panel .ps-grid>.ps-row:not(:first-child) label>span{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}
}

/* "Use this type" while unavailable: Codex's disabled treatment (neutral fill, muted text, .45). */
html #drawer#drawer#drawer .ps-panel .ps-type button:disabled{background:var(--well);border:1px solid var(--hairline);color:var(--stone);opacity:.45;box-shadow:none}
/* The member header's meta never ends a line on a separator: separators ride at the start of the next item. */
html #drawer#drawer#drawer:has(.ac-drawer-head) .brs-meta{display:flex;flex-wrap:wrap;align-items:center;column-gap:6px;row-gap:2px}
html #drawer#drawer#drawer:has(.ac-drawer-head) .brs-meta>.brs-sep{display:none}
html #drawer#drawer#drawer:has(.ac-drawer-head) .brs-meta>.brs-sep+*::before{content:'·' / '';margin-right:6px;color:var(--stone);text-decoration:none;display:inline-block}
@media (max-width:720px){
 html #drawer#drawer#drawer:has(.ac-drawer-head) .brs-meta>button:last-child{flex-basis:100%;justify-content:flex-start;text-align:left}
 html #drawer#drawer#drawer:has(.ac-drawer-head) .brs-meta>.brs-sep+button:last-child::before{content:none}
}

/* ── Work API keys dialog ───────────────────────────────────────────────────────────────────────── */
html body dialog.work-api-dialog{border:1px solid var(--hairline);border-radius:12px;background:var(--card);color:var(--ink);padding:24px;font:400 16px/24px var(--sans,'Geist',system-ui,sans-serif)}
html body dialog.work-api-dialog>h2{margin:0 0 4px;font:600 24px/30px var(--sans,'Geist',system-ui,sans-serif);letter-spacing:-.5px}
html body dialog.work-api-dialog>p{margin:0 0 12px;color:var(--stone);font-size:13px;line-height:18px}
html body dialog.work-api-dialog>p[role=status]:empty{display:none}
html body dialog.work-api-dialog h3{margin:20px 0 8px;font:600 16px/22px var(--sans,'Geist',system-ui,sans-serif)}
html body dialog.work-api-dialog .work-api-form{gap:12px;padding:16px;border:1px solid var(--hairline);border-radius:12px;background:var(--paper)}
html body dialog.work-api-dialog .work-api-form>label>span,html body dialog.work-api-dialog legend{font-size:13px;line-height:18px;font-weight:500}
html body dialog.work-api-dialog .work-api-form p,html body dialog.work-api-dialog fieldset>p{margin:0;color:var(--stone);font-size:12px;line-height:17px}
html body dialog.work-api-dialog fieldset{margin:0;padding:12px 16px;border:1px solid var(--hairline);border-radius:8px}
html body dialog.work-api-dialog fieldset label{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:44px;font-size:14px;line-height:20px;text-align:left}
html body dialog.work-api-dialog fieldset label>input[type=checkbox]{flex:none;width:20px;height:20px;min-height:0;margin:0}
html body dialog.work-api-dialog :is(select,input,textarea){font-size:16px}
html body dialog.work-api-dialog :is(select,input:not([type=checkbox])){min-height:44px;box-sizing:border-box}
html body dialog.work-api-dialog .work-api-list{margin:0;padding:0;list-style:none;border:1px solid var(--hairline);border-radius:12px;overflow:hidden}
html body dialog.work-api-dialog .work-api-list>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--hairline)}
html body dialog.work-api-dialog .work-api-list>li:last-child{border-bottom:0}
html body dialog.work-api-dialog .work-api-list>li>strong{grid-column:1;font-size:13px;line-height:18px;font-weight:500}
html body dialog.work-api-dialog .work-api-list>li>p{grid-column:1;margin:0;color:var(--stone);font-size:12px;line-height:17px}
html body dialog.work-api-dialog .work-api-list>li>button{grid-column:2;grid-row:1/span 3}
html body dialog.work-api-dialog>div>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--hairline)}
html body dialog.work-api-dialog>div>div>p{margin:0;color:var(--stone);font-size:12px;line-height:17px}
html body dialog.work-api-dialog>div>div>button{grid-column:2;grid-row:1/span 2}
html body dialog.work-api-dialog pre{padding:12px;border-radius:8px;background:var(--well);font-size:13px;line-height:18px}
html body dialog.work-api-dialog>.btn.sec:last-child{margin-top:16px}
html body dialog.work-api-dialog :is(button,select,input,textarea,summary):focus-visible{outline:2px solid var(--miami,#0075E1);outline-offset:2px}

/* ── Contrast and forced colours ────────────────────────────────────────────────────────────────── */
@media (prefers-contrast:more){
 html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane :is(.bac-rows,.bac-rows>.bac-row),html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane:not(:has(#bacSecurity)) .bac-quiet,html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-module>[data-regional-preferences] fieldset,html #content#content#content .bleu-health :is(.bh-summary,.bh-card),html #drawer#drawer#drawer .op-page-access :is(.op-page-members,.op-page-member),html #drawer#drawer#drawer .ps-panel :is(.ps-overview,.ps-access-item,.ps-row,.ps-type),html body dialog.work-api-dialog :is(.work-api-list,.work-api-list>li,.work-api-form){border-color:var(--ink)}
 html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane .bac-rows>.bac-row:last-child,html #drawer#drawer#drawer .op-page-access .op-page-member:last-child,html #drawer#drawer#drawer .ps-panel .ps-access-item:last-child,html body dialog.work-api-dialog .work-api-list>li:last-child{border-bottom:0}
}
@media (forced-colors:active){
 html :is(#content#content#content,#drawer#drawer#drawer) .bac .bac-pane .bac-rows,html #content#content#content .bleu-health :is(.bh-card,.bh-summary),html #drawer#drawer#drawer .op-page-access .op-page-members,html #drawer#drawer#drawer .ps-panel .ps-overview{border-color:CanvasText}
 /* Switches: an outlined track and a visible knob in every state. */
 html :is(#content#content#content,#drawer#drawer#drawer) .bac input:is(.bac-switch,.feel-switch){forced-color-adjust:none;background:Canvas;border:1px solid ButtonText}
 html :is(#content#content#content,#drawer#drawer#drawer) .bac input.bac-switch::after,html :is(#content#content#content,#drawer#drawer#drawer) .bac input.feel-switch::before{forced-color-adjust:none;background:ButtonText;box-shadow:none}
 html :is(#content#content#content,#drawer#drawer#drawer) .bac input:is(.bac-switch,.feel-switch):checked{background:Highlight;border-color:Highlight}
 html :is(#content#content#content,#drawer#drawer#drawer) .bac input.bac-switch:checked::after,html :is(#content#content#content,#drawer#drawer#drawer) .bac input.feel-switch:checked::before{background:HighlightText}
 html :is(#content#content#content,#drawer#drawer#drawer) .bac input:is(.bac-switch,.feel-switch):disabled{border-color:GrayText}
}
