/* Layout: an app shell. Desktop has a full-height navy sidebar with icon navigation and the content
   on a cool grey ground. Phones get a navy top bar, the content, and a fixed bottom tab bar.
   The dashboard groups daily work, attention items, and device health into separate sections. */
/* Palette: CC3 navy with an orange accent; cream for the things that need attention. */
.support-sheet{max-width:920px!important}
.support-heading{padding:12px 0}.support-heading .eyebrow{color:var(--brand-text)}
.support-steps{display:flex;list-style:none;padding:0;gap:12px;font-size:12px;color:var(--muted)}
.support-steps li{flex:1;border-bottom:2px solid var(--line);padding:10px 0}
.support-steps [aria-current]{border-color:var(--brand);color:var(--ink);font-weight:600}
.support-systems{border:0;padding:18px 0;margin:0}.support-systems legend{font-weight:600}
.support-systems>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.support-systems label{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--line);border-radius:8px;font-size:12px}
.support-systems input{width:16px;flex-shrink:0}.support-systems label:has(:checked){background:var(--brand-soft);border-color:var(--brand-rule)}
#support-review dt,.request-extra dt{font-size:12px;color:var(--muted);margin-top:14px}
#support-review dd,.request-extra dd{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.request-extra summary{cursor:pointer;font-weight:600}.request-mail{padding:12px;background:var(--sunk);border-radius:8px;font-size:12px;overflow-wrap:anywhere}
.request-mail p{margin:5px 0}.support-sheet #support-file-list{overflow-wrap:anywhere}
@media(max-width:620px){.support-systems>div{grid-template-columns:1fr}.support-steps{font-size:10px;gap:8px}.support-sheet .fields{grid-template-columns:1fr}}
:root{
  --bg:#f6f8fb; --surface:#ffffff; --sunk:#edf0f5; --ink:#1b2a44; --muted:#55657c; --line:#dfe4ec;
  --accent:#192744; --accent-ink:#ffffff; --accent-soft:#e4e9f2;
  --brand:#ee8a44; --brand-ink:#192744; --brand-soft:#fcf6ec; --brand-text:#7f4111; --brand-rule:#b38037;
  --hero:#192744; --hero-2:#243861; --side-2:#131d35; --hero-ink:#ffffff; --hero-sub:#c8d1e2; --hero-eyebrow:#f2a45c; --hero-line:#6c7b9c; --logo-bg:#f6f8fb;
  --ring-good:#4fd08a; --ring-warn:#f5bd55; --ring-crit:#f27d72; --ring-unk:#8794ab; --ring-track:#33446a;
  --good:#1a7a47; --good-soft:#dcf2e5; --warn:#8d5a08; --warn-soft:#fbedcf; --crit:#b3302a; --crit-soft:#fbe2df;
  --shade:rgba(15,25,40,.5); --shadow:0 1px 2px rgba(25,39,68,.05),0 4px 14px rgba(25,39,68,.05); --lift:0 18px 44px rgba(10,18,36,.18);
  --font-display:"Lexend",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Lexend",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
  --r:12px;
}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){
  --bg:#0c1322; --surface:#141d31; --sunk:#1b2640; --ink:#e8ecf4; --muted:#9aa8bf; --line:#283450;
  --accent:#f2a469; --accent-ink:#192744; --accent-soft:#33291f;
  --brand:#ee8a44; --brand-ink:#192744; --brand-soft:#2a2118; --brand-text:#f2b179; --brand-rule:#b38037;
  --hero:#1b2a4a; --hero-2:#26395f; --side-2:#101829; --hero-ink:#ffffff; --hero-sub:#c8d1e2; --hero-eyebrow:#f2a45c; --hero-line:#6c7b9c; --logo-bg:#f6f8fb;
  --ring-good:#4fd08a; --ring-warn:#f5bd55; --ring-crit:#f27d72; --ring-unk:#8794ab; --ring-track:#33446a;
  --good:#63d193; --good-soft:#123223; --warn:#e7b65a; --warn-soft:#3a2c0e; --crit:#f18d84; --crit-soft:#431a1b;
  --shade:rgba(0,0,0,.65); --shadow:none; --lift:0 18px 44px rgba(0,0,0,.5); color-scheme:dark } }
:root[data-theme="dark"]{
  --bg:#0c1322; --surface:#141d31; --sunk:#1b2640; --ink:#e8ecf4; --muted:#9aa8bf; --line:#283450;
  --accent:#f2a469; --accent-ink:#192744; --accent-soft:#33291f;
  --brand:#ee8a44; --brand-ink:#192744; --brand-soft:#2a2118; --brand-text:#f2b179; --brand-rule:#b38037;
  --hero:#1b2a4a; --hero-2:#26395f; --side-2:#101829; --hero-ink:#ffffff; --hero-sub:#c8d1e2; --hero-eyebrow:#f2a45c; --hero-line:#6c7b9c; --logo-bg:#f6f8fb;
  --ring-good:#4fd08a; --ring-warn:#f5bd55; --ring-crit:#f27d72; --ring-unk:#8794ab; --ring-track:#33446a;
  --good:#63d193; --good-soft:#123223; --warn:#e7b65a; --warn-soft:#3a2c0e; --crit:#f18d84; --crit-soft:#431a1b;
  --shade:rgba(0,0,0,.65); --shadow:none; --lift:0 18px 44px rgba(0,0,0,.5); color-scheme:dark }

*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:15px;font-weight:400;line-height:1.5;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top, 0px);z-index:16;background:var(--logo-bg)}
h1,h2,h3{font-family:var(--font-display);font-weight:700;letter-spacing:-.01em;margin:0;text-wrap:balance;line-height:1.2}
b,strong{font-weight:600}
p{margin:0}
a{color:var(--accent)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.mono{font-family:var(--font-mono);font-size:.87em;font-weight:400}
.muted{color:var(--muted)}
.grow{flex:1}
.ic{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.logo{display:block;width:auto;max-width:100%;background:var(--logo-bg);border-radius:6px}
.eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--hero-eyebrow);margin-bottom:8px}

/* ---------- shell ----------
   The navigation matches the CC3 Recruiting Hub: the logo on a light plate, the product name in a
   navy block with its last word in orange, then grouped sections with line icons on navy. */
.gate{min-height:70vh;display:flex;align-items:center;justify-content:center;padding:24px 16px}
.gate .sheet{max-width:440px}
.gate .logo{height:44px;align-self:flex-start}
.side{display:none}
.topbar{position:sticky;top:env(safe-area-inset-top, 0px);z-index:15;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--logo-bg);color:var(--brand-ink);border-bottom:3px solid var(--brand);
  padding-block:8px;padding-left:max(16px, env(safe-area-inset-left, 0px));padding-right:max(16px, env(safe-area-inset-right, 0px))}
.topbar .logo{height:40px;border-radius:0}
.topbar b{font-family:var(--font-display);font-size:18px;font-weight:700}
.menu-btn{font:inherit;font-weight:600;display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:8px;background:var(--hero);color:var(--hero-ink);border:1px solid var(--hero);cursor:pointer}
.topbar :focus-visible,.side-logo :focus-visible{outline-color:var(--brand-ink)}
.side :focus-visible,.hero :focus-visible,.tabs :focus-visible,.nav-sheet :focus-visible{outline-color:var(--hero-eyebrow)}
.main{min-width:0;display:flex;flex-direction:column}
.mainbar,.strip,.page{padding-left:max(16px, env(safe-area-inset-left, 0px));padding-right:max(16px, env(safe-area-inset-right, 0px))}
.mainbar{padding-block:14px}
.strip{background:var(--brand-soft);color:var(--brand-text);border-top:2px solid var(--brand-rule);padding-block:9px;font-size:13px;font-weight:500}
.strip b{letter-spacing:.04em}
.microsoft-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.microsoft-notice[hidden]{display:none}
.microsoft-notice p{margin:3px 0 0}
.page{display:flex;flex-direction:column;gap:18px;padding-block:22px 108px}

.side-title{position:relative;font-family:var(--font-display);font-size:28px;font-weight:700;letter-spacing:-.02em;line-height:1.1;color:var(--hero-ink);padding:24px 26px 22px}
.side-title em{font-style:normal;color:var(--hero-eyebrow)}
.side-title::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,var(--brand),var(--hero))}
.navlist{display:flex;flex-direction:column;gap:2px}
.nav-group{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--ring-unk);padding:20px 14px 8px}
.nav-group:first-child{padding-top:10px}
.navlist a{display:flex;align-items:center;gap:14px;padding:11px 14px;border-radius:8px;color:var(--hero-ink);text-decoration:none;font-size:15.5px;font-weight:500}
.navlist .nic{display:grid;place-items:center;color:var(--hero-sub)}
.navlist .ic{width:22px;height:22px;stroke-width:1.6}
.navlist a:hover{background:var(--hero-2)}
.navlist a.on{background:var(--hero-2);font-weight:700;box-shadow:inset 3px 0 0 var(--brand)}
.navlist a.on .nic{color:var(--brand)}
.navlist .count{margin-left:auto;font-size:12px;padding:1px 9px;line-height:20px}

.tabs{position:fixed;left:0;right:0;bottom:0;z-index:15;display:flex;background:var(--hero);border-top:1px solid var(--ring-track);box-shadow:0 -8px 28px rgba(10,18,36,.22);
  padding:6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px))}
.tabs a,.tabs button{flex:1;min-width:0;position:relative;font:inherit;font-size:11px;font-weight:500;background:none;border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 2px 4px;color:var(--hero-sub);text-decoration:none}
.tabs .nic{display:grid;place-items:center}
.tabs .ic{width:23px;height:23px;stroke-width:1.6}
.tabs .on{color:var(--hero-ink);font-weight:700}
.tabs .on .nic{color:var(--brand)}
.tabs .on::before{content:"";position:absolute;top:-6px;width:36px;height:3px;border-radius:0 0 3px 3px;background:var(--brand)}
.tabs .count{position:absolute;top:2px;left:calc(50% + 6px);box-shadow:0 0 0 2px var(--hero)}
.count{font-size:11px;font-weight:700;font-variant-numeric:tabular-nums;background:var(--brand);color:var(--brand-ink);border-radius:99px;padding:0 7px;line-height:18px}
.count:empty{display:none}
.who{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:8px;font-size:13px;background:var(--hero-2);color:var(--hero-sub)}
.who b{color:var(--hero-ink)}
.who .link{align-self:flex-start;margin-top:4px;color:var(--hero-eyebrow)}
.sheet.nav-sheet{background:var(--hero);color:var(--hero-ink);border-color:var(--ring-track);padding:0 0 16px;gap:0;max-width:420px;overflow:hidden}
.nav-sheet .navlist{padding:6px 12px 14px}
.nav-sheet .who{margin:0 14px 14px}
.nav-sheet .sheet-foot{padding:0 14px}
.nav-sheet .btn{background:var(--hero-2);color:var(--hero-ink);border-color:var(--ring-track)}

@media (min-width:960px){
  .app{display:grid;grid-template-columns:288px minmax(0,1fr);align-items:start}
  .topbar,.tabs{display:none}
  .side{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;background:var(--hero);color:var(--hero-ink);box-shadow:4px 0 24px rgba(10,18,36,.16)}
  .side-logo{display:flex;align-items:center;min-height:84px;padding:16px 26px;background:var(--logo-bg);color:var(--brand-ink)}
  .side-logo .logo{height:48px;border-radius:0}
  .side-logo b{font-family:var(--font-display);font-size:20px;font-weight:700}
  .side .navlist{flex:1;min-height:0;overflow-y:auto;padding:6px 14px 16px}
  .side .who{margin:0 14px 16px}
  .mainbar,.strip,.page{padding-left:max(36px, env(safe-area-inset-left, 0px));padding-right:max(36px, env(safe-area-inset-right, 0px))}
  .page{gap:20px;max-width:1280px;width:100%;padding-block:26px 64px}
}

/* ---------- page furniture ---------- */
.gsearch{position:relative;max-width:640px}
.gsearch input{height:46px;padding-left:44px;border-radius:8px;border-color:var(--muted)}
.gs-kbd{display:none;position:absolute;right:12px;top:11px;font-family:var(--font-mono);font-size:12px;color:var(--muted);background:var(--bg);border:1px solid var(--line);border-radius:5px;padding:2px 7px;pointer-events:none}
@media (min-width:960px){ .gs-kbd{display:block} }
.gsearch input:not(:placeholder-shown) ~ .gs-kbd{display:none}
.gs-ic{position:absolute;left:14px;top:13px;display:flex;color:var(--muted);pointer-events:none}
.gs-results{position:absolute;left:0;right:0;top:54px;z-index:12;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--lift);max-height:60vh;overflow-y:auto}
.gs-results a{display:flex;gap:12px;align-items:center;padding:11px 14px;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.gs-results a:first-child{border-top:0}
.gs-results a:hover,.gs-results a:focus-visible{background:var(--sunk)}
.gs-results .what{min-width:0}
.gs-results b{display:block}
.phead{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;justify-content:space-between}
.phead h1{font-size:clamp(24px,3.4vw,30px);letter-spacing:-.015em}
.phead p{color:var(--muted);max-width:62ch;margin-top:4px}
.head-actions{display:flex;gap:8px;flex-wrap:wrap}
.sec{font-size:18px;margin-top:8px}
.panel-title{font-size:16px;font-weight:700;margin-bottom:12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bgc-panel-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:12px}
.bgc-panel-header .panel-title{margin-bottom:0}
.bgc-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-top:18px}
.bgc-filters .field:first-child{flex:2 1 300px}
.bgc-filters .field:nth-child(2){flex:1 1 210px}
.bgc-filter-actions{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:5px}
.bgc-result-count{margin:14px 0 10px;font-size:13px}
.bgc-equipment-id{white-space:nowrap;font-variant-numeric:tabular-nums}
.bgc-record-id{margin-bottom:14px;font-size:14px}
.panel.asset-register{padding:0;overflow:hidden}
.asset-register-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;border-bottom:1px solid var(--line)}
.asset-register-heading .equipment-eyebrow{color:var(--brand-text);font-size:12px;margin:0 0 8px}
.asset-register-heading h2{font-size:26px;margin:0 0 8px}
.asset-register-heading p{color:var(--muted);font-size:14px}
.asset-register-heading .head-actions{flex-shrink:0;flex-wrap:wrap}
.asset-preview-note{padding:10px 28px;background:var(--brand-soft);color:var(--brand-text);font-size:13px}
.asset-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:24px 28px 0}
.asset-overview>div{border:1px solid var(--line);border-radius:10px;padding:16px 20px;background:var(--bg)}
.asset-overview span{display:block;font-size:14px;color:var(--muted)}
.asset-overview strong{display:block;margin-top:8px;font-size:28px;line-height:1.2}
.asset-overview>div:last-child strong{color:var(--brand-text)}
.asset-register-filters{padding:20px 28px;margin-top:0;gap:16px}
.asset-register-filters .field:first-child{flex:2 1 280px}
.asset-register-filters .field:nth-child(2),.asset-register-filters .field:nth-child(3){flex:1 1 170px}
.asset-register-filters label{font-size:14px}
.asset-register #bgc-results{padding:0 28px 28px}
.asset-register .bgc-result-count{font-size:14px;margin:0 0 14px}
.asset-register-table .tbl{width:100%;table-layout:fixed;min-width:0}
.asset-register-table .tbl th{font-size:12px}
.asset-register-table .tbl td{font-size:14px;vertical-align:middle;overflow-wrap:anywhere;padding:18px 14px}
.asset-register-table .tbl th:first-child{width:25%}
.asset-register-table .tbl th:nth-child(2){width:18%}
.asset-register-table .tbl th:nth-child(3){width:21%}
.asset-register-table .tbl th:nth-child(4){width:12%}
.asset-register-table .tbl th:nth-child(5){width:12%}
.asset-register-table .tbl th:last-child{width:12%}
.asset-identity{display:flex;gap:12px;align-items:flex-start}
.asset-identity>div{min-width:0}
.asset-type-icon{display:grid;place-items:center;background:var(--accent-soft);color:var(--ink);width:36px;height:36px;border-radius:9px;flex:none;font-size:24px}
.asset-model{text-align:left!important;font-size:15px;font-weight:700}
.asset-register-table .sub{margin-top:5px;font-size:13px;line-height:1.5}
.asset-register-table .bgc-equipment-id{display:inline-block;font-size:12px;color:var(--muted);margin-top:7px}
.asset-hostname{font-family:ui-monospace,monospace;font-size:12px!important}
.asset-badge{display:inline-block;border-radius:6px;background:var(--sunk);color:var(--muted);padding:4px 8px;font-size:13px;font-weight:600}
.asset-badge.good{background:var(--good-soft);color:var(--good)}
.asset-badge.warn{background:var(--warn-soft);color:var(--warn)}
.asset-register-empty{text-align:center;border:1px dashed var(--line);border-radius:12px;padding:40px 20px;background:var(--bg)}
.asset-register-empty h3{margin-bottom:8px}.asset-register-empty p{color:var(--muted)}
.equipment-header-description{color:var(--hero-sub);font-size:14px;margin-top:10px}
.asset-section-help{color:var(--muted);font-size:14px;line-height:1.6;margin:-6px 0 20px}
@media(max-width:1100px){.asset-register-heading{align-items:flex-start;flex-direction:column}.asset-register-table .asset-type-icon{display:none}.asset-register-table .tbl td{padding:14px 10px}.asset-register-table .btn{padding:8px}}
@media(max-width:720px){
 .asset-register-heading{padding:20px}.asset-register-heading .head-actions{gap:8px}.asset-overview{grid-template-columns:repeat(2,minmax(0,1fr));padding:20px 16px 0;gap:10px}.asset-overview>div{padding:14px}.asset-register-filters{padding:20px 16px}.asset-register #bgc-results{padding:0 16px 16px}.asset-register-table .tbl tr{padding:14px}.asset-register-table .tbl td{padding:8px 0}.asset-register-table .tbl td[data-label="Asset"]{grid-column:1/-1}.asset-register-table .tbl td[data-label="Actions"]{grid-column:1/-1}.asset-register-table .tbl td[data-label="Actions"]::before{display:none}.asset-register-table .btn{width:100%}.asset-register-table .asset-type-icon{display:grid}
}
.inventory-source>span{font-size:13px;font-weight:700;margin-right:6px}
.inventory-results{margin-top:18px;display:grid;gap:14px;min-width:0}
.inventory-panel .bgc-filters .chips{padding-bottom:5px}
.inventory-table .tbl th{background:var(--sunk);font-size:13px;letter-spacing:0;text-transform:none;color:var(--ink);padding:16px 20px;white-space:normal}
.inventory-table .tbl td{font-size:15px;line-height:1.6;padding:20px;overflow-wrap:anywhere}
.inventory-table .tbl tbody tr{background:var(--surface)}
.inventory-table .tbl tbody tr:nth-child(even){background:var(--bg)}
.inventory-table .tbl tbody tr:hover{background:var(--sunk)}
.inventory-table .tbl .inventory-model{display:block;font-size:16px;line-height:1.5;white-space:normal}
.inventory-serial{font-family:var(--font-mono);font-size:14px;line-height:1.6;color:var(--ink)}
.inventory-number{font-variant-numeric:tabular-nums;white-space:nowrap}
.inventory-columns-hint{font-size:13px}
.inventory-table:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.inventory-orders{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.inventory-orders>li+li{border-top:1px solid var(--line);padding-top:14px}
.inventory-order-number{display:block;font-size:15px;font-weight:600;white-space:normal}
.inventory-relation{display:inline-block;background:var(--accent-soft);color:var(--ink);border-radius:5px;padding:2px 8px;font-size:13px;font-weight:500}
.inventory-order-status{font-size:15px;line-height:1.6}
.inventory-created{display:block}
@media(min-width:721px){
  .page:has(.inventory-panel){max-width:none}
  .inventory-table .tbl{table-layout:fixed;width:100%;min-width:1650px}
  .inventory-table .tbl th,.inventory-table .tbl td{padding-left:16px;padding-right:16px}
  .inventory-table .tbl th:nth-child(1){width:11%}
  .inventory-table .tbl th:nth-child(2){width:15%}
  .inventory-table .tbl th:nth-child(3){width:12%}
  .inventory-table .tbl th:nth-child(4){width:10%}
  .inventory-table .tbl th:nth-child(5){width:10%}
  .inventory-table .tbl th:nth-child(6){width:10%}
  .inventory-table .tbl th:nth-child(7){width:12%}
  .inventory-table .tbl th:nth-child(8){width:9%}
  .inventory-table .tbl th:nth-child(9){width:11%}
  .inventory-table .inventory-orders:has(li:nth-child(2))>li{min-height:72px}
  .inventory-table .tbl th:first-child,.inventory-table .tbl td:first-child{position:sticky;left:0;z-index:1;box-shadow:1px 0 var(--line)}
  .inventory-table .tbl td:first-child{background:inherit}
}
@media(max-width:720px){
  .inventory-table .tbl tr{grid-template-columns:1fr;padding:20px;gap:18px}
  .inventory-table .tbl td{padding:0}
  .inventory-table .tbl td[data-label]:not(:first-child)::before,.inventory-table .tbl td[data-label]:first-child::before{content:attr(data-label);display:block;font-size:13px;font-weight:700;color:var(--muted);letter-spacing:0;text-transform:none;margin-bottom:7px}
  .inventory-table .tbl td:first-child{padding-bottom:16px;border-bottom:1px solid var(--line)}
  .inventory-scroll-hint{display:none}
}
.badge{font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;background:var(--brand);color:var(--brand-ink);border-radius:99px;padding:1px 9px}

.btn{font:inherit;font-weight:600;padding:9px 16px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.btn:hover{border-color:var(--muted)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn.primary:hover{filter:brightness(1.08)}
.btn.danger{color:var(--crit);border-color:var(--crit-soft)}
.btn.small{padding:5px 12px;font-size:13px;border-radius:10px}
.btn:disabled{opacity:.55;cursor:default}
.link{font:inherit;font-weight:600;background:none;border:0;padding:0;color:var(--accent);cursor:pointer;text-decoration:underline}

.banner{background:var(--brand-soft);color:var(--brand-text);border:1px solid var(--line);border-top:3px solid var(--brand-rule);border-radius:var(--r);padding:12px 16px;font-weight:500}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:20px;min-width:0;box-shadow:var(--shadow)}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start}
#body,#body2{display:flex;flex-direction:column;gap:16px;min-width:0}
.empty{border:1px dashed var(--line);border-radius:var(--r);padding:28px 18px;text-align:center;color:var(--muted)}
.empty h3{color:var(--ink);font-size:17px;margin-bottom:6px}
.empty p{max-width:56ch;margin:0 auto}
.empty .btn{margin-top:12px}
.empty.slim{padding:14px}

/* ---------- lifecycle request confirmation ---------- */
.case-discard{display:flex;flex-direction:column;gap:18px}
.case-discard p{color:var(--muted);line-height:1.6}
.case-discard .sheet-foot{padding-top:8px}
.case-confirm-person{padding:20px;border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:10px;background:var(--bg)}
.case-confirm-person>span{font-size:12px}
.case-confirm-person h3{font-size:20px;margin:4px 0 20px;overflow-wrap:anywhere}
.case-confirm-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:0}
.case-confirm-facts .wide{grid-column:1/-1}
.case-confirm-facts dt{color:var(--muted);font-size:12px;margin-bottom:5px}
.case-confirm-facts dd{margin:0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
.case-confirm-extra{border:1px solid var(--line);border-radius:10px;padding:16px 20px}
.case-confirm-extra summary{font-size:14px;font-weight:600;cursor:pointer}
.case-confirm-extra[open] summary{margin-bottom:20px}
@media(max-width:540px){.case-confirm-facts{grid-template-columns:minmax(0,1fr)}.case-confirm-person,.case-confirm-extra{padding:16px}#caseconfirmform .sheet-foot{gap:10px}#caseconfirmform .sheet-foot .grow{display:none}#caseconfirmform .sheet-foot button{flex:1}}
/* ---------- dashboard ---------- */
.dashboard{display:flex;flex-direction:column;gap:20px;min-width:0}
.dash-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 28px;border-radius:14px;border-bottom:3px solid var(--brand);background:linear-gradient(115deg,var(--hero),var(--hero-2));color:var(--hero-ink)}
.dash-heading h1{font-size:30px;margin:4px 0 8px}
.dash-heading p:not(.dash-eyebrow){color:var(--hero-sub);font-size:14px}
.dash-eyebrow{color:var(--hero-eyebrow);font-size:11px;font-weight:600;letter-spacing:.13em;text-transform:uppercase}
.dash-heading-side{display:flex;flex-direction:column;align-items:flex-end;gap:12px;flex-shrink:0;font-size:13px;color:var(--hero-sub)}
.dash-heading :focus-visible{outline-color:var(--hero-eyebrow)}
.dashboard .dash-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.dashboard .stat{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:18px;box-shadow:none;position:relative}
.dashboard .stat:last-child{grid-column:auto}
.dashboard .stat-n{background:none!important;color:var(--ink);font-size:30px;height:auto;min-width:0;padding:0;line-height:1.1}
.dashboard .stat.warn .stat-n{color:var(--warn)}
.dashboard .stat-b{display:flex;flex-direction:column;flex:1;gap:14px;font-size:13px;width:100%}
.dashboard .stat-b b{flex:1}
.dashboard .stat .go{font-size:12px;justify-content:space-between;color:var(--muted)}
.dashboard .stat:hover{border-color:var(--brand);background:var(--brand-soft)}
.dash-workspace{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:20px}
.dash-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.dash-panel-head h2{font-size:18px;display:flex;align-items:center;gap:10px}
.dash-panel-head p{font-size:12px;margin-top:6px}
.dash-panel-head .go{font-size:12px}
.dashboard .arow{padding:14px 0;font-size:14px}
.dashboard .arow .what{overflow-wrap:anywhere}
.dashboard .arow .sub{font-size:12px;margin-top:4px}
.dashboard .arow:hover{background:var(--sunk)}
.dash-more{border-top:1px solid var(--line);margin-top:4px}
.dash-more summary{padding:14px 0 0;cursor:pointer;color:var(--accent);font-weight:600;font-size:13px}
.dash-more[open] summary{padding-bottom:14px}
.dash-clear{text-align:center;padding:36px 12px;background:var(--sunk);border-radius:8px}
.dash-clear h3{font-size:17px;margin-bottom:8px}
.dash-health{display:flex;align-items:center;gap:20px;padding:8px 0 20px;min-width:0}
.dash-health .ring{width:132px;height:132px}
.dash-health .rg-num{fill:var(--ink)}
.dash-health .rg-lab{fill:var(--muted)}
.dash-health .rg-track{stroke:var(--line)}
.dashboard .hlegend{min-width:0;max-width:none;grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard .hlegend a{background:var(--sunk);border-color:var(--line);color:var(--ink);padding:12px}
.dashboard .hlegend a:hover{border-color:var(--muted)}
.dashboard .hlegend span{color:var(--muted);font-size:11px}
.dashboard .hlegend b{font-size:23px}
.dash-issues{border-top:1px solid var(--line);padding-top:16px}
.dash-issues h3{font-size:13px;margin-bottom:8px}
.dash-issues .plain{font-size:13px}
.dash-consoles{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
.dash-consoles strong{font-size:14px;display:block}
.dash-consoles .muted{font-size:12px;display:block;margin-top:3px}
.dash-console-links{display:flex;flex-wrap:wrap;gap:8px}
.dash-console-links .ic{width:14px;height:14px}
.dashboard .dash-details{gap:20px}
.dash-period{margin:-4px 0 16px}
@media(max-width:1200px){.dash-workspace{grid-template-columns:minmax(0,1fr)}.dash-health{max-width:560px}.dash-consoles{align-items:flex-start;flex-direction:column}.dashboard .dash-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.dashboard{gap:14px}.dash-heading{padding:20px;align-items:flex-start;flex-direction:column;gap:16px}.dash-heading-side{align-items:flex-start;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;width:100%}.dash-heading h1{font-size:26px}.dashboard .dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard .stat{padding:15px}.dashboard .stat:last-child{grid-column:1/-1;flex-direction:row;align-items:center}.dashboard .stat:last-child .stat-b{gap:5px}.dashboard .panel{padding:16px}.dash-panel-head{align-items:flex-start;flex-wrap:wrap}.dash-health{gap:12px}.dash-health .ring{width:98px;height:98px}.dashboard .hlegend a{padding:9px 7px}.dashboard .hlegend span{font-size:10px;gap:4px}.dashboard .dash-details{grid-template-columns:minmax(0,1fr)}.dash-consoles{padding:16px}.dash-console-links{width:100%;display:grid;grid-template-columns:1fr 1fr}.dash-console-links .btn{justify-content:space-between}}
.hero{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;background:var(--hero);color:var(--hero-ink);border-radius:var(--r);padding:24px;box-shadow:var(--shadow)}
.hero-main{display:flex;gap:16px;align-items:flex-start;min-width:0}
.hero-ic{display:flex;color:var(--brand);margin-top:1px}
.hero-ic .ic{width:30px;height:30px}
.hero h2{font-size:22px;color:var(--hero-ink)}
.hero p{color:var(--hero-sub);margin-top:6px;max-width:52ch}
.hero-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.hbtn{font:inherit;font-size:14.5px;font-weight:500;display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:7px;background:none;color:var(--hero-ink);border:1px solid var(--hero-line);text-decoration:none;cursor:pointer}
.hbtn:hover{border-color:var(--hero-ink)}
.hbtn .ic{width:14px;height:14px}
.hbtn.cta{background:var(--hero-ink);color:var(--brand-ink);border-color:var(--hero-ink);font-weight:600}
.hero-health{display:flex;gap:20px;align-items:center;justify-content:center;flex-wrap:wrap}
.ring{width:150px;height:150px;flex:none}
.rg-track{stroke:var(--ring-track)} .rg-good{stroke:var(--ring-good)} .rg-warn{stroke:var(--ring-warn)} .rg-crit{stroke:var(--ring-crit)} .rg-unk{stroke:var(--ring-unk)}
.rg-num{fill:var(--hero-ink);font-family:var(--font-display);font-weight:700;font-size:32px;letter-spacing:-.02em}
.rg-lab{fill:var(--hero-sub);font-size:10px;font-weight:500;letter-spacing:.1em;text-transform:uppercase}
.hlegend{display:grid;grid-template-columns:repeat(2,minmax(116px,1fr));gap:8px;flex:1;min-width:240px;max-width:340px}
.hlegend a{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:8px;background:var(--hero-2);border:1px solid var(--ring-track);color:var(--hero-ink);text-decoration:none}
.hlegend a:hover{border-color:var(--hero-sub)}
.hlegend b{font-family:var(--font-display);font-size:24px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
.hlegend span{font-size:12px;font-weight:500;color:var(--hero-sub);display:flex;align-items:center;gap:6px}
.d-good{background:var(--ring-good)} .d-warn{background:var(--ring-warn)} .d-crit{background:var(--ring-crit)} .d-unk{background:var(--ring-unk)}
@media (min-width:820px){ .hero{grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:28px 30px} .hero-health{justify-content:flex-end} }

.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stats > :last-child:nth-child(odd){grid-column:1/-1}
@media (min-width:820px){ .stats{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px} .stats > :last-child:nth-child(odd){grid-column:auto} }
.stat{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px 14px;align-items:center;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);text-decoration:none;color:var(--ink)}
.stat:hover{border-color:var(--muted)}
.stat-n{min-width:46px;height:46px;padding:0 10px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-family:var(--font-display);font-size:21px;font-weight:700;font-variant-numeric:tabular-nums}
.stat.warn .stat-n{background:var(--warn-soft);color:var(--warn)}
.stat.crit .stat-n{background:var(--crit-soft);color:var(--crit)}
.stat-b{display:contents}
.stat-b b{font-weight:600;line-height:1.3}
.go{grid-column:1/-1;display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;white-space:nowrap}
.go .ic{width:16px;height:16px}

.arow{display:flex;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.panel-title + .arow{border-top:0;padding-top:0}
.arow .what{flex:1;min-width:0}
.arow b{display:block}
.arow:hover b{text-decoration:underline}
.aic{width:38px;height:38px;border-radius:8px;display:grid;place-items:center;flex:none;background:var(--accent-soft);color:var(--accent)}
.aic.warn{background:var(--warn-soft);color:var(--warn)}
.aic.crit{background:var(--crit-soft);color:var(--crit)}
.chev{width:16px;height:16px;color:var(--muted)}

.dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}
.h-warn{background:var(--warn)} .h-crit{background:var(--crit)}
.plain{display:flex;flex-direction:column}
.plain > *{display:flex;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.plain > *:first-child{border-top:0}
.plain a:hover .what{text-decoration:underline}
.plain .what{flex:1;min-width:0}
.plain b{font-variant-numeric:tabular-nums}
.connection-status > div{display:grid;grid-template-columns:150px minmax(160px,1fr) minmax(0,2fr);align-items:start;gap:12px}
.connection-status .pill{justify-self:start}
.connection-status .muted{overflow-wrap:anywhere}
.connection-status .connection-time{margin-top:6px;font-size:12px}
@media (max-width:720px){.connection-status > div{grid-template-columns:1fr}.connection-status .what{font-weight:600}}
.bars{display:flex;flex-direction:column;gap:12px}
.bar-row{display:grid;grid-template-columns:minmax(80px,120px) minmax(0,1fr) 3ch;gap:10px;align-items:center;font-variant-numeric:tabular-nums}
.bar-row .track{height:12px;border-radius:6px;background:var(--sunk);overflow:hidden}
.bar-row .track i{display:block;height:100%;background:var(--accent);border-radius:6px}
.bar-row b{text-align:right}
.feed{position:relative;display:flex;flex-direction:column;padding-left:20px}
.feed::before{content:"";position:absolute;left:4px;top:10px;bottom:10px;width:2px;border-radius:1px;background:var(--line)}
.feed > div{position:relative;display:flex;flex-direction:column;padding:7px 0}
.feed > div::before{content:"";position:absolute;left:-20px;top:13px;width:10px;height:10px;border-radius:50%;background:var(--surface);border:2px solid var(--brand)}
.feed time{color:var(--muted);font-size:12px;font-weight:600}

/* ---------- lists, tables, forms ---------- */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.tile{display:flex;flex-direction:column;gap:4px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);color:var(--ink);box-shadow:var(--shadow)}
.tile b{font-family:var(--font-display);font-size:34px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums;line-height:1}
.tile span{color:var(--muted);font-size:13px;font-weight:500}
.rows{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}
.rows > *{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:13px 16px;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.rows > *:first-child{border-top:0}
.rows a:hover{background:var(--sunk)}
.rows .what{flex:1;min-width:180px;font-weight:500}

.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.toolbar input[type=search]{flex:1;min-width:160px;max-width:340px}
input,select,textarea{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 12px;width:100%}
input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:var(--accent);padding:0}
textarea{resize:vertical}
#f-scripts-script{font-family:Consolas,monospace;tab-size:4;white-space:pre;overflow-wrap:normal}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chipbtn{font:inherit;font-size:13px;font-weight:500;padding:7px 14px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--muted);cursor:pointer}
.chipbtn.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}

.tbl-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
table.tbl{border-collapse:collapse;width:100%;min-width:640px;font-variant-numeric:tabular-nums}
.tbl th{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:700;text-align:left;padding:12px 16px;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:12px 16px;border-top:1px solid var(--line);vertical-align:top}
.tbl tr:first-child td{border-top:0}
.tbl .num{text-align:right}
.sub{display:block;color:var(--muted);font-size:13px}
.tfoot{padding:12px 16px;color:var(--muted);font-size:13px;border-top:1px solid var(--line)}
.shipments-table .shipment-detail-row[hidden]{display:none}
.shipment-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;white-space:normal;overflow-wrap:anywhere}
.shipment-detail-grid h3{font-size:14px;margin:0 0 8px}
.shipment-detail-grid p{margin:0 0 8px}
.shipment-detail-row{background:var(--sunk)}
.shipment-item+.shipment-item{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
@media (min-width:721px){
  .bgc-table .tbl{min-width:1800px}
  .bgc-table .link{text-align:left}
  .bgc-table .tbl th:first-child,.bgc-table .tbl td:first-child{position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:1px 0 var(--line)}
  .bgc-table td[data-label="Device/Asset Name"],.bgc-table td[data-label="Equipment"]{min-width:180px;max-width:240px;overflow-wrap:anywhere}
  .bgc-table td[data-label="Type"]{white-space:nowrap}
  .bgc-table td[data-label="Status"],.bgc-table td[data-label="Location"]{min-width:160px}
  .bgc-table td[data-label="Assigned to"]{min-width:240px;max-width:280px;overflow-wrap:anywhere}
  .shipments-table .shipment-row td{white-space:nowrap;font-size:13px}
  .shipments-table .tbl th,.shipments-table .shipment-row td{padding:12px}
  .shipments-table .tbl th:first-child,.shipments-table .shipment-row td:first-child{position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:1px 0 var(--line)}
  .shipments-table .tbl th:last-child,.shipments-table .shipment-action{position:sticky;right:0;z-index:1;background:var(--surface);box-shadow:-1px 0 var(--line)}
  .shipments-table .shipment-detail-grid{position:sticky;left:12px;max-width:min(1100px,calc(100vw - 340px))}
}
@media (max-width:720px){
  .shipments-table .shipment-row td:nth-child(2),.shipments-table .shipment-action{grid-column:1/-1}
  .shipments-table .shipment-detail-row{display:block}
  .shipment-detail-grid{grid-template-columns:1fr;gap:16px}
}
.access-roles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-bottom:20px}
.access-roles .panel{margin:0}
.access-roles p{margin:0}
.access-table .tbl{table-layout:fixed;min-width:0}
.access-table .tbl th,.access-table .tbl td{white-space:normal;overflow-wrap:anywhere}
.access-table .tbl td:first-child strong{white-space:normal}
.access-table .tbl th:first-child{width:30%}
#access-picker select{max-width:100%}
@media (min-width:721px){ .tbl td:first-child strong{white-space:nowrap} }
/* On phones a table row becomes a card: the first cell is the title, the rest are labelled facts. */
@media (max-width:720px){
  table.tbl{display:block;min-width:0}
  .tbl thead{display:none}
  .tbl tbody{display:block}
  .tbl tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px;padding:16px;border-top:1px solid var(--line)}
  .tbl tr:first-child{border-top:0}
  .tbl td{display:block;padding:0;border:0;min-width:0;overflow-wrap:anywhere}
  .tbl td:first-child,.tbl td:not([data-label]){grid-column:1/-1}
  .tbl td:first-child{font-size:16px}
  .tbl td:empty{display:none}
  .tbl td[data-label]:not(:first-child)::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:3px}
  .tbl .num{text-align:left}
}

.pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;padding:3px 10px;border-radius:99px;white-space:nowrap;background:var(--sunk);color:var(--muted)}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.pill.good{background:var(--good-soft);color:var(--good)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.crit{background:var(--crit-soft);color:var(--crit)}
.pill.info{background:var(--accent-soft);color:var(--accent)}
.pill.request-status-open{background:#e8f0ff;color:#234ea0}
.pill.request-status-progress{background:#e0f5f5;color:#116466}
.pill.request-status-pending{background:#fff1d6;color:#805300}
.pill.request-status-complete{background:#e5f4e9;color:#246339}
.pill.request-status-backlog{background:#f0e9fb;color:#694299}
.pill.request-status-canceled{background:#fbe8ed;color:#96334f}
/* Device columns must share the available space, even with long user names. */
.devices-table{container-type:inline-size}
.devices-table .tbl{table-layout:fixed;min-width:0}
.devices-table .tbl th,.devices-table .tbl td{padding:14px 12px;white-space:normal;overflow-wrap:anywhere}
.devices-table .tbl td:first-child strong{white-space:normal}
.devices-table .tbl th:nth-child(1){width:17%}
.devices-table .tbl th:nth-child(2){width:20%}
.devices-table .tbl th:nth-child(3){width:11%}
.devices-table .tbl th:nth-child(4){width:14%}
.devices-table .tbl th:nth-child(5){width:12%}
.devices-table .tbl th:nth-child(6){width:11%}
.devices-table .tbl th:nth-child(7){width:15%}
.devices-table .plainlink{display:inline;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.devices-table .sub{margin-top:3px}
.devices-table .pill{white-space:normal;max-width:100%;line-height:1.35;vertical-align:top}
.devices-table .pill::before{flex-shrink:0}
.directory-table{container-type:inline-size}
.directory-table .tbl{table-layout:fixed;min-width:0}
.directory-table .tbl th,.directory-table .tbl td{padding:14px 10px;white-space:normal;overflow-wrap:anywhere}
.directory-table .tbl td:first-child strong{white-space:normal}
.directory-table .tbl th:nth-child(1){width:19%}
.directory-table .tbl th:nth-child(2){width:15%}
.directory-table .tbl th:nth-child(3){width:14%}
.directory-table .tbl th:nth-child(4){width:14%}
.directory-table .tbl th:nth-child(5){width:12%}
.directory-table .tbl th:nth-child(6){width:17%}
.directory-table .tbl th:nth-child(7){width:9%}
.directory-label{display:block;margin:10px 0 3px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.directory-label:first-child{margin-top:0}
.directory-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.directory-actions .btn{white-space:normal;max-width:100%;padding:6px 8px}
.directory-table .pill{white-space:normal;max-width:100%;line-height:1.35}
.directory-table .pill::before{flex-shrink:0}
/* At narrow content widths, labels keep every device fact visible without scrolling sideways. */
@container (max-width:920px){
  .devices-table .tbl,.devices-table .tbl tbody{display:block}
  .devices-table .tbl thead{display:none}
  .devices-table .tbl tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;padding:18px;border-top:1px solid var(--line)}
  .devices-table .tbl tr:first-child{border-top:0}
  .devices-table .tbl td{display:block;padding:0;border:0;min-width:0}
  .devices-table .tbl td:first-child{grid-column:1/-1;font-size:16px}
  .devices-table .tbl td[data-label]:not(:first-child)::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:4px}
  .directory-table .tbl,.directory-table .tbl tbody{display:block}
  .directory-table .tbl thead{display:none}
  .directory-table .tbl tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;padding:18px;border-top:1px solid var(--line)}
  .directory-table .tbl tr:first-child{border-top:0}
  .directory-table .tbl td{display:block;padding:0;border:0;min-width:0}
  .directory-table .tbl td:first-child,.directory-table .tbl td:last-child{grid-column:1/-1}
  .directory-table .tbl td:first-child{font-size:16px}
  .directory-table .tbl td[data-label]:not(:first-child):not(:last-child)::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;color:var(--ink);margin-bottom:6px}
  .directory-actions{flex-direction:row;flex-wrap:wrap}
}
.sys{font-family:var(--font-mono);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:1px 6px;white-space:nowrap}
.meter{height:8px;border-radius:4px;background:var(--sunk);overflow:hidden;margin-top:5px;min-width:80px}
.meter i{display:block;height:100%;background:var(--accent)}
.meter.over i,.meter.crit i{background:var(--crit)}
.meter.warn i{background:var(--warn)}
.licenses-table .pill{white-space:normal;max-width:100%;text-align:left}
.licenses-table .pill::before{flex-shrink:0}

.reqs{display:flex;flex-direction:column;gap:12px}
.req{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:8px;min-width:0;box-shadow:var(--shadow)}
.req.urgent{border-left:5px solid var(--crit)}
.req.fresh{border-left:5px solid var(--brand)}
.req-top{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.req-top h3{font-size:17px;flex:1;min-width:160px}
.req-detail{white-space:pre-wrap;overflow-wrap:anywhere;max-width:70ch}
.reply{background:var(--accent-soft);border-radius:8px;padding:12px 14px;white-space:pre-wrap;overflow-wrap:anywhere}
.reply b{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--accent)}
.req-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.req-actions select{width:auto}
.case-summary{gap:12px;container-type:inline-size}
.case-identity{overflow-wrap:anywhere}
.case-summary-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;margin:0;padding:14px 0;border-block:1px solid var(--line)}
.case-summary-fields > div{min-width:0}
.case-summary-fields dt{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.case-summary-fields dd{margin:0;overflow-wrap:anywhere}
.case-summary-fields .overdue{display:block;font-size:12px}
.case-summary-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.case-progress{flex:1;max-width:320px;min-width:160px;font-size:12px;color:var(--muted)}
.case-source{font-size:12px}
.automation-panel{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--bg);min-width:0}
.automation-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.automation-heading>strong{font-size:13px}
.automation-heading>.btn{margin-left:auto}
.automation-stages{display:flex;flex-wrap:wrap;gap:10px 22px;list-style:none;padding:0;margin:14px 0 10px;font-size:12px;color:var(--muted)}
.automation-stages li{display:flex;align-items:center;gap:7px;min-width:0}
.automation-stages li+li::before{content:'→';margin-right:8px;color:var(--muted)}
.automation-stages .current{font-weight:600;color:var(--ink)}
.automation-dot{width:8px;height:8px;flex:none;border-radius:50%;border:1px solid var(--muted)}
.automation-stages .current .automation-dot{background:var(--accent);border-color:var(--accent)}
.automation-detail,.automation-updated{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.automation-updated{margin-top:5px}
.automation-panel.needs-attention{border-color:var(--crit);background:var(--crit-soft)}
.needs-attention .current,.needs-attention .automation-detail{color:var(--crit)}
.needs-attention .current .automation-dot{background:var(--crit);border-color:var(--crit)}
@media(max-width:600px){.automation-stages{display:grid;grid-template-columns:1fr;gap:9px}.automation-stages li+li::before{display:none}.automation-heading>.btn{margin-left:0}}
@container (max-width:600px){.case-summary-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (max-width:280px){.case-summary-fields{grid-template-columns:1fr}}

.guides{display:flex;flex-direction:column;gap:10px}
details.guide{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
details.guide summary{padding:16px 18px;cursor:pointer;font-weight:600;display:flex;gap:10px;align-items:center;flex-wrap:wrap;list-style:none}
details.guide summary::-webkit-details-marker{display:none}
details.guide summary::before{content:"+";font-family:var(--font-mono);color:var(--muted);width:1ch}
details.guide[open] summary::before{content:"\2212"}
details.guide .gbody{padding:0 18px 18px;white-space:pre-wrap;overflow-wrap:anywhere;max-width:70ch}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.resource-toolbar input[type=search]{max-width:620px}
.resource-hint{margin:10px 0 18px}
.resource-links{margin-top:12px;white-space:normal}
.resource-meta{margin-top:10px;font-size:12px;white-space:normal}
.resource-notes{white-space:pre-wrap}
.resource-contacts{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
@media(max-width:600px){.resource-toolbar input[type=search]{flex-basis:100%;max-width:none}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:6px;min-width:0;overflow-wrap:anywhere}
.card h3{font-size:17px}
.card .foot{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:8px}

.link.plainlink{text-decoration:none;text-align:left;display:inline-flex;align-items:center;gap:6px}
.link.plainlink:hover{text-decoration:underline}
.link .ic{width:16px;height:16px}
.reply.internal{background:var(--brand-soft)}
.reply.internal b{color:var(--brand-text)}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px 18px;padding:14px;border:1px solid var(--line);border-radius:10px}
.fact{min-width:0;overflow-wrap:anywhere}
.fact > span:first-child{display:block;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:2px}
#dev-box{display:flex;flex-direction:column;gap:14px}
#dev-box > h2 + p{margin-top:-10px}
.sub-h{font-size:15px;margin-top:10px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.actbar{display:flex;flex-wrap:wrap;gap:8px}

pre.code.tall{max-height:340px;overflow:auto;white-space:pre;font-size:12.5px}
.rowacts{display:flex;gap:6px;flex-wrap:wrap}
.rowacts .btn{white-space:nowrap}
.howto{margin-bottom:14px}
.howto .gbody{white-space:normal;max-width:80ch}
.howto ol{margin:0 0 10px 20px;display:flex;flex-direction:column;gap:6px}
.note .link,.howto .link{font-size:inherit}

.modal{position:fixed;inset:0;background:var(--shade);display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;z-index:20;
  padding:calc(24px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px))}
.sheet{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:24px;box-shadow:var(--lift);width:100%;max-width:640px;display:flex;flex-direction:column;gap:14px}
.sheet form{display:flex;flex-direction:column;gap:14px}
.modal>.sheet{position:relative}
.modal-close{position:absolute;top:20px;right:20px;z-index:2;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:25px;line-height:1;cursor:pointer}
.modal-close:hover{background:var(--sunk);border-color:var(--muted)}
.sheet:has(>.modal-close) #modal-title{padding-right:46px}
.sheet:has(>.modal-close) :is(.lifecycle-brand,.request-brand-row,.equipment-eyebrow,.device-heading-row){padding-right:46px}
:is(.lifecycle-sheet,.equipment-sheet,.device-sheet,.request-sheet,.nav-sheet)>.modal-close{background:var(--hero);border-color:var(--hero-line);color:var(--hero-ink)}
:is(.lifecycle-sheet,.equipment-sheet,.device-sheet,.request-sheet,.nav-sheet)>.modal-close:hover{background:var(--hero-2)}
:is(.lifecycle-sheet,.equipment-sheet,.device-sheet,.request-sheet,.nav-sheet)>.modal-close:focus-visible{outline-color:var(--hero-eyebrow)}
@media(max-width:600px){.modal-close{top:16px;right:16px}}
.sheet h2{font-size:23px;letter-spacing:-.02em}
.note{background:var(--sunk);border-radius:8px;padding:12px 14px;color:var(--muted);font-size:14px}
.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.field{display:flex;flex-direction:column;gap:4px;min-width:0}
.field.wide{grid-column:1/-1}
.field label{font-size:13px;font-weight:600}
.field label i{font-style:normal;font-weight:400;color:var(--muted)}
.field input[readonly],.field input:disabled,#equipment-draft-form select:disabled{background:var(--sunk);color:var(--muted);opacity:1}
.field input:disabled,#equipment-draft-form select:disabled{cursor:not-allowed}
.field small{font-size:12px;line-height:1.5}
.field select{max-width:100%;text-overflow:ellipsis}
.form-section{grid-column:1/-1;font-size:16px;margin:10px 0 2px;padding-top:12px;border-top:1px solid var(--line)}
.form-section:first-child{margin-top:0;padding-top:0;border-top:0}
/* People forms share the CC3 frame across entry, editing, and confirmation. */
.sheet.lifecycle-sheet{max-width:840px;padding:0;gap:0;border-radius:16px}
.lifecycle-sheet form{gap:0}
.lifecycle-heading{padding:26px 30px;background:linear-gradient(115deg,var(--hero),var(--hero-2));border-bottom:4px solid var(--brand);border-radius:15px 15px 0 0;color:var(--hero-ink)}
.lifecycle-brand{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:11px;font-weight:600;letter-spacing:.11em;margin-bottom:20px}
.lifecycle-brand>span{color:var(--hero-eyebrow)}
.lifecycle-brand .lifecycle-kind{margin-left:auto;border:1px solid var(--hero-line);border-radius:99px;padding:4px 10px;color:var(--hero-sub);letter-spacing:0;font-weight:400}
.lifecycle-sheet .lifecycle-heading h2{font-size:27px;line-height:1.3;color:var(--hero-ink);margin:0}
.lifecycle-heading p{font-size:13px;color:var(--hero-sub);margin-top:10px}
.lifecycle-heading :focus-visible{outline-color:var(--hero-eyebrow)}
.lifecycle-stages{list-style:none;display:flex;gap:28px;padding:16px 30px;margin:0;border-bottom:1px solid var(--line);background:var(--surface)}
.lifecycle-stages li{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.lifecycle-stages li>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--sunk);font-weight:600}
.lifecycle-stages [aria-current]{color:var(--ink);font-weight:600}
.lifecycle-stages [aria-current]>span{background:var(--brand);color:var(--brand-ink)}
.lifecycle-body{display:flex;flex-direction:column;gap:20px;padding:24px 30px;background:var(--bg)}
.lifecycle-body>.note{font-size:13px;line-height:1.6;background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--brand);margin:0}
.lifecycle-section{padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}
.lifecycle-section>h3{display:flex;align-items:center;gap:10px;font-size:16px;margin:0 0 20px}
.lifecycle-section>h3::before{content:"";width:4px;height:18px;border-radius:3px;background:var(--brand);flex:none}
.lifecycle-sheet .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.lifecycle-sheet .field{gap:7px}
.lifecycle-sheet .field input,.lifecycle-sheet .field select,.lifecycle-sheet .field textarea{width:100%;min-width:0;min-height:44px;border-radius:8px;background:var(--surface);font-size:14px}
.lifecycle-sheet .field input:disabled,.lifecycle-sheet .field input[readonly]{background:var(--sunk);color:var(--muted)}
.lifecycle-sheet .field input:focus-visible,.lifecycle-sheet .field select:focus-visible,.lifecycle-sheet .field textarea:focus-visible{outline-color:var(--brand-rule)}
.lifecycle-sheet .case-confirm-person,.lifecycle-sheet .case-confirm-extra{background:var(--surface)}
.lifecycle-submit-note,.lifecycle-footer-hint{font-size:12px;line-height:1.6;color:var(--muted)}
.lifecycle-sheet .sheet-foot{padding:18px 30px;margin:0;border-top:1px solid var(--line);background:var(--surface);border-radius:0 0 15px 15px;gap:10px}
.lifecycle-sheet .sheet-foot .btn{min-height:44px;font-size:14px}
.lifecycle-sheet .sheet-foot .btn.primary{background:var(--brand);color:var(--brand-ink);border-color:var(--brand);font-weight:600}
.lifecycle-sheet .sheet-foot .btn.primary:hover:not(:disabled){filter:brightness(.96)}
@media(max-width:600px){.lifecycle-heading{padding:22px 18px}.lifecycle-brand{gap:8px;margin-bottom:16px;font-size:10px}.lifecycle-sheet .lifecycle-heading h2{font-size:23px}.lifecycle-stages{padding:14px 18px;gap:18px}.lifecycle-stages li{font-size:11px;gap:6px}.lifecycle-body{padding:18px 14px;gap:14px}.lifecycle-section{padding:18px 14px}.lifecycle-sheet .fields{grid-template-columns:minmax(0,1fr);gap:16px}.lifecycle-sheet .sheet-foot{padding:16px 18px}.lifecycle-footer-hint{width:100%}.lifecycle-sheet .sheet-foot .grow{display:none}.lifecycle-sheet .sheet-foot .btn{flex:1}}
/* BGC equipment: CC3 framing and clearly grouped equipment details. */
.sheet.equipment-sheet{max-width:780px;padding:0;gap:0;border-radius:16px}
.equipment-sheet #equipment-draft-form{gap:0}
.equipment-header{padding:24px 28px;background:linear-gradient(115deg,var(--hero),var(--hero-2));color:var(--hero-ink);border-bottom:4px solid var(--brand);border-radius:15px 15px 0 0}
.equipment-eyebrow{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--hero-sub);margin-bottom:12px}
.equipment-eyebrow>span{color:var(--hero-eyebrow)}
.equipment-sheet .equipment-header h2{font-size:26px;line-height:1.3;color:var(--hero-ink)}
.equipment-header .bgc-record-id{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:16px 0 0;font-size:12px;color:var(--hero-sub)}
.equipment-header .bgc-record-id strong{border:1px solid var(--hero-line);background:var(--side-2);border-radius:7px;padding:5px 10px;color:var(--hero-ink);font-size:13px;overflow-wrap:anywhere}
.equipment-body{display:flex;flex-direction:column;gap:18px;padding:24px 28px;background:var(--bg)}
.equipment-body>.note{background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--brand);font-size:13px;line-height:1.65}
.equipment-body>p.muted{font-size:12px;margin-top:-6px}
.equipment-section{padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:12px;min-width:0}
.equipment-section-title{display:flex;align-items:center;gap:10px;font-size:16px;line-height:1.5;margin:0 0 16px}
.equipment-section-title::before{content:"";height:17px;width:4px;background:var(--brand);border-radius:3px;flex:none}
.equipment-section-title .check{margin:0;flex:1;min-height:28px}
.equipment-component:has(>h3 input:checked){border-color:var(--brand-rule);background:var(--brand-soft)}
.equipment-component:has([data-equipment-group-fields][hidden])>.equipment-section-title{margin-bottom:0}
.equipment-sheet .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.equipment-sheet .field{gap:7px}
.equipment-sheet .field label{font-size:13px;line-height:1.5}
.equipment-sheet .field input:not([type=checkbox]),.equipment-sheet .field select{min-width:0;width:100%;min-height:44px;background:var(--surface);font-size:14px;border-radius:8px}
.equipment-sheet .field input:disabled,.equipment-sheet .field select:disabled{background:var(--sunk);color:var(--muted)}
.equipment-sheet input:focus-visible,.equipment-sheet select:focus-visible{outline:2px solid var(--brand-rule);outline-offset:2px}
.equipment-sheet .check{gap:10px;font-weight:500;line-height:1.5}
.equipment-sheet input[type=checkbox]{width:18px;height:18px;accent-color:var(--brand);flex:none}
.equipment-sheet .field .check{padding:10px 12px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.equipment-sheet .field .check:has(:checked){border-color:var(--brand-rule);background:var(--brand-soft)}
.equipment-body>[data-equipment-accessories]{border:0;padding:0;margin:4px 0 0;font-size:16px}
.equipment-body>[data-equipment-accessories] .muted{font-size:13px;font-weight:400}
.equipment-sheet .sheet-foot{margin:0;padding:18px 28px;border-top:1px solid var(--line);border-radius:0 0 15px 15px;background:var(--surface);gap:10px}
.equipment-sheet .sheet-foot .btn{min-height:44px;font-size:14px}
.equipment-sheet .btn.primary{background:var(--hero);color:var(--hero-ink);border-color:var(--hero);box-shadow:inset 0 -3px 0 var(--brand)}
.equipment-sheet .btn.primary:hover{background:var(--hero-2);border-color:var(--hero-2)}
.equipment-sheet .btn.primary:disabled{opacity:.55}
.equipment-sheet .case-facts{padding:8px 18px;background:var(--surface);border:1px solid var(--line);border-radius:10px;font-size:14px}
.equipment-sheet .case-facts>div:last-child{border-bottom:0}
.equipment-sheet #equipment-delete-confirm{background:var(--crit-soft);border-color:var(--crit);box-shadow:none}
.equipment-sheet #equipment-delete-confirm h3{font-size:17px;color:var(--crit);margin-bottom:10px}
.equipment-sheet #equipment-delete-confirm p{font-size:13px;line-height:1.65;margin-bottom:16px}
@media(max-width:600px){
  .equipment-header{padding:22px 20px}
  .equipment-sheet .equipment-header h2{font-size:23px}
  .equipment-body{padding:20px 16px;gap:16px}
  .equipment-section{padding:16px}
  .equipment-sheet .fields{grid-template-columns:minmax(0,1fr);gap:16px}
  .equipment-sheet .sheet-foot{padding:16px;flex-wrap:wrap}
  .equipment-sheet .sheet-foot .grow{display:none}
  .equipment-sheet .sheet-foot .btn.primary{margin-left:auto}
}
#case-box{display:flex;flex-direction:column;gap:14px}
.case-badges{display:flex;flex-wrap:wrap;gap:8px}
.case-facts{margin:0}
.case-facts > div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.case-facts dt{color:var(--muted)}
.case-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.case-audit{font-size:13px;color:var(--muted)}
.case-audit summary{cursor:pointer;font-weight:600}
.case-audit p{margin:8px 0}
.case-tasks{margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:10px}
.case-tasks h3{font-size:15px;margin:0}
.case-tasks>.muted{margin:10px 0;font-size:12px}
.case-tasks .automation-heading{justify-content:space-between}
.task-progress{margin:16px 0;color:var(--muted);--task-progress-fill:var(--brand)}
.task-progress.complete{--task-progress-fill:var(--good)}
.task-progress-label{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:14px}
.task-progress-label strong{color:var(--ink)}
.task-progress progress{display:block;width:100%;height:8px;border:0;border-radius:999px;overflow:hidden;appearance:none;background:var(--line);color:var(--task-progress-fill)}
.task-progress progress::-webkit-progress-bar{background:var(--line);border-radius:999px}
.task-progress progress::-webkit-progress-value{background:var(--task-progress-fill);border-radius:999px}
.task-progress progress::-moz-progress-bar{background:var(--task-progress-fill);border-radius:999px}
.lifecycle-work{display:grid;gap:24px;min-width:0}
.lifecycle-work>.automation-panel{border-top:3px solid var(--accent)}
.lifecycle-work>.case-tasks{margin:0;border-top:3px solid var(--brand);background:var(--surface)}
.lifecycle-work .automation-heading h3{margin:0;font-size:16px}
.completed-actions .current{color:var(--good)}
.completed-actions .current .automation-dot{background:var(--good);border-color:var(--good)}
.case-tasks .automation-task-history{margin-top:16px}
.automation-task-history li{margin:10px 0}
.case-details{margin:16px 0}
.case-details .case-facts{margin-top:16px}
@media(max-width:600px){.case-tasks{padding:12px}.case-tasks .steps label{min-width:0;flex-basis:100%}}
.overdue{color:var(--crit)}
@media (max-width:420px){.case-facts > div{grid-template-columns:1fr;gap:3px}}
.check{display:flex;gap:8px;align-items:center;font-weight:500}
.sheet-foot{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.err{color:var(--crit);font-weight:600}
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.steps li{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.steps li:first-child{border-top:0}
.steps label{display:flex;gap:10px;flex:1;min-width:200px;cursor:pointer}
.steps .done span{color:var(--muted);text-decoration:line-through}
.addstep{display:flex;gap:8px}
pre.code{margin:0;background:var(--sunk);border-radius:8px;padding:14px;overflow-x:auto;font-family:var(--font-mono);font-size:13px;line-height:1.5}
.notify-row{display:grid;grid-template-columns:minmax(90px,140px) minmax(0,1fr) auto auto auto;gap:8px;align-items:center;margin-bottom:8px}
@media (max-width:640px){ .notify-row{grid-template-columns:1fr 1fr} .notify-row input[type=text]{grid-column:1/-1} }

.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(92px + env(safe-area-inset-bottom, 0px));background:var(--ink);color:var(--bg);padding:12px 20px;border-radius:99px;font-weight:600;z-index:30;max-width:calc(100% - 32px);box-shadow:var(--lift)}
@media (min-width:960px){ .toast{bottom:28px} }
.device-freshness{margin:16px 0;overflow-wrap:anywhere}
.wipe-ack{display:flex;align-items:flex-start;gap:10px;margin:18px 0;font-weight:600}
.wipe-ack input{width:18px;height:18px;flex:0 0 18px;margin-top:3px}
#dangerform .mono{overflow-wrap:anywhere}
.device-stale{border-left:4px solid #946200}
.device-history-list{list-style:none;padding:0;margin:12px 0}
.device-history-list li{padding:14px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.device-history-list .sub{margin-top:5px}
@media (prefers-reduced-motion:no-preference){
  .btn,.stat,.navlist a,.chipbtn,.hbtn,.hlegend a{transition:transform .12s ease,border-color .12s ease,background-color .12s ease}
  .stat:hover,.btn:not(:disabled):hover{transform:translateY(-1px)}
}
/* Request lists keep the queue scannable; the detail sheet holds the conversation. */
.request-filters{margin-bottom:18px;flex-wrap:wrap;gap:8px}
#request-sort{width:auto;min-width:180px}
.req>[data-act="requestdetail"]{justify-self:start;width:auto}
.request-timeline{list-style:none;margin:16px 0;padding:0;border-left:2px solid #dce3ee}
.request-timeline>li{margin:0 0 18px 16px;padding:12px 16px;background:#f3f5f9;border-radius:8px;overflow-wrap:anywhere}
.request-timeline p{white-space:pre-wrap;margin:8px 0 0}
.request-timeline time{font-size:12px;color:#526480}
.request-files{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}
.request-files li{padding:10px 12px;border:1px solid #dce3ee;border-radius:8px;overflow-wrap:anywhere}
.request-files button{text-align:left;overflow-wrap:anywhere;max-width:100%}
#requestconversation{margin-top:20px}
#requestconversation .field{margin-bottom:16px}
#requestconversation textarea{width:100%}
@media(max-width:600px){.request-timeline>li{margin-left:8px;padding:10px}.request-files li{padding:8px}.req-top{flex-wrap:wrap}}

/* People work queue: compact on desktop, labeled fields on small screens. */
.people-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:0}
.people-navigation [role=tablist]{display:flex;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.people-navigation [role=tab]{border-color:transparent}
.people-filter-panel{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px}
.people-filter-panel .people-toolbar{margin:0 0 16px}
.people-filter-panel .people-filters{margin:0;padding-top:14px;border-top:1px solid var(--line);gap:6px}
.people-filters .chipbtn{font-size:12px;padding:8px 12px}
.people-filters [data-act=peopleclear]{margin-left:auto;border-color:transparent;color:var(--muted)}
.people-toolbar{margin:16px 0}
.people-filters{margin-bottom:16px}
.people-record-list{display:flex;flex-direction:column;gap:10px}
.people-row{display:grid;grid-template-columns:minmax(210px,1.4fr) minmax(200px,1fr) auto;align-items:center;gap:28px;padding:22px;background:var(--surface);border:1px solid var(--line);border-radius:12px;border-left:3px solid var(--line)}
.people-row[data-case-group=attention]{border-left-color:var(--crit)}
.people-row[data-case-group=closed]{border-left-color:var(--good)}
.people-row:hover{box-shadow:var(--shadow)}
.people-person{display:flex;gap:12px;align-items:flex-start}
.people-person>div{min-width:0}
.people-avatar{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:50%;background:var(--sunk);color:var(--ink);font-size:12px;font-weight:700;border:1px solid var(--line)}
.people-process{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}
.people-task-progress{margin-top:12px;max-width:230px}
.people-task-progress progress{display:block;width:100%;height:5px;border:0;border-radius:6px;overflow:hidden;background:var(--sunk);accent-color:var(--good);margin-top:7px}
.people-task-progress progress::-webkit-progress-bar{background:var(--sunk);border-radius:6px}
.people-task-progress progress::-webkit-progress-value{background:var(--good);border-radius:6px}
.people-task-progress progress::-moz-progress-bar{background:var(--good);border-radius:6px}
.people-due{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;margin-top:12px;font-size:12px}
.people-due .people-label{margin:0;font-size:10px}
.people-row .people-delete{background:transparent;border-color:transparent;color:var(--muted);padding-inline:8px}
.people-row .people-delete:hover{color:var(--crit);background:var(--crit-soft)}
.people-row>div{min-width:0;overflow-wrap:anywhere}
.people-row h3{margin:0;font-size:15px}
.people-label{display:block;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.people-row .head-actions{margin:0}
.people-row .automation-current{font-size:inherit}
.people-row .sub{font-size:12px}
@media(max-width:1100px){.people-row{grid-template-columns:repeat(2,minmax(0,1fr))}.people-actions{grid-column:1/-1;border-top:1px solid var(--line);padding-top:14px}.people-actions .head-actions{justify-content:flex-end}}
@media(max-width:600px){.people-row{grid-template-columns:minmax(0,1fr);padding:16px;gap:18px}.people-progress .pill{white-space:normal}.people-task-progress{max-width:none}.people-actions .head-actions{justify-content:space-between}.people-toolbar input[type=search]{max-width:none;width:100%}.people-toolbar select{max-width:100%}.people-navigation [role=tablist]{flex:1;flex-wrap:wrap}.people-navigation [role=tab]{flex:1;font-size:12px;padding:10px}.people-navigation>[data-act=refreshpeople]{font-size:12px;padding:8px 12px}.people-filter-panel{padding:14px}.people-filters [data-act=peopleclear]{margin-left:0}}

.people-controls{display:grid;grid-template-columns:minmax(200px,1fr) 180px 230px;align-items:end;gap:14px}
.people-controls .field{min-width:0;margin:0}
.people-filter-panel .people-controls input[type=search]{width:100%;max-width:none;min-width:0}
.people-controls select{width:100%}
.page>.access-filters{display:grid;grid-template-columns:minmax(200px,1fr) 180px 200px auto;align-items:end;gap:14px}
.access-filters .field{margin:0;min-width:0}
.access-filters input[type=search],.access-filters select{width:100%;max-width:none;min-width:0}
@media(max-width:900px){.page>.access-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.access-filters .field:first-child{grid-column:1/-1}}
@media(max-width:450px){.access-filters>[data-act=accessclear]{grid-column:1/-1}}
@media(max-width:760px){.people-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.people-controls .field:first-child{grid-column:1/-1}}
@media(max-width:600px){.people-navigation #people-tab-records{flex:1.7}}

.automation-step-details,.automation-step-empty{margin-top:18px;border-top:1px solid var(--line);padding-top:16px;color:var(--ink,#172541)}
.automation-step-details>summary{font-weight:700;cursor:pointer;display:list-item}
.automation-step-details>summary span{font-size:12px;font-weight:400;margin-left:10px}
.automation-step-details>.muted,.automation-step-empty p{font-size:12px;margin:10px 0}
.automation-step-list{list-style:none;margin:14px 0;padding:0;display:flex;flex-direction:column;gap:8px}
.automation-step{display:flex;align-items:flex-start;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:13px;color:var(--ink,#172541)}
.step-symbol{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;background:#e9eef5;color:#526585;font-weight:700}
.completed .step-symbol{background:#dcf3e6;color:#17613b}.failed .step-symbol{background:#fde5e5;color:#a91f1f}
.step-info{flex:1;min-width:0;overflow-wrap:anywhere}.step-info strong{font-size:14px}.step-info time{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.step-explanation{margin-top:5px;font-size:12px}.step-explanation summary{cursor:pointer;color:var(--muted)}.step-explanation p{margin:6px 0}
.step-request-note{margin:6px 0;color:var(--muted);font-size:12px;line-height:1.5}
.automation-step>.pill{flex-shrink:0;font-size:11px}
@media(max-width:480px){.automation-step{gap:8px;padding:10px;flex-wrap:wrap}.automation-step>.pill{margin-left:32px}.step-info{flex-basis:calc(100% - 32px)}.automation-step-details>summary span{display:block;margin:6px 0}}

/* People progress uses the same CC3 frame as the request forms. */
.sheet.case-sheet{max-width:880px;padding:0;gap:0;border-radius:16px}
.case-sheet #case-box{gap:0;min-width:0}
.case-heading h2{font-size:27px;line-height:1.3;color:var(--hero-ink);overflow-wrap:anywhere;text-wrap:initial}
.case-heading .lifecycle-brand{margin-bottom:18px}
.case-heading .case-work-email{overflow-wrap:anywhere;margin-top:8px;font-size:14px}
.case-heading .case-badges{margin-top:18px;align-items:center;gap:10px}
.case-header-due{display:inline-flex;align-items:center;gap:7px;color:var(--hero-sub);font-size:12px}
.case-header-due .ic{width:15px;height:15px}
.case-close{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid var(--hero-line);border-radius:8px;background:transparent;color:var(--hero-ink);font:inherit;font-size:24px;line-height:1;cursor:pointer}
.case-close:hover{background:var(--hero-2)}
.case-progress-body{display:flex;flex-direction:column;gap:20px;padding:26px 28px;background:var(--bg);min-width:0}
.case-sheet .lifecycle-work{gap:22px}
.case-sheet .automation-panel,.case-sheet .case-tasks{padding:22px;border-radius:12px;background:var(--surface);box-shadow:var(--shadow)}
.case-sheet .lifecycle-work>.automation-panel{border-top-color:var(--hero-2)}
.case-sheet .automation-panel.needs-attention{border-color:var(--line);border-top-color:var(--crit)}
.case-sheet .automation-heading{gap:12px}
.case-section-heading{display:flex;align-items:center;gap:10px;min-width:0}
.case-section-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:9px;background:var(--sunk);color:var(--ink)}
.case-sheet .case-tasks .case-section-icon{background:var(--brand-soft);color:var(--brand-text)}
.case-sheet .automation-heading h3{font-size:16px;line-height:1.4}
.case-sheet .automation-heading .btn{min-height:36px}
.case-sheet .case-tasks .automation-heading>.muted{font-size:12px}
.case-sheet .automation-stages{padding:13px 14px;margin:18px 0 12px;background:var(--bg);border:1px solid var(--line);border-radius:8px;gap:10px 16px}
.case-sheet .automation-detail{line-height:1.7}
.case-sheet .needs-attention .automation-detail{padding:10px 12px;background:var(--crit-soft);border-radius:8px}
.case-sheet .automation-updated{margin-top:8px;font-size:11px}
.case-sheet .automation-step-details{margin-top:20px;padding-top:18px}
.case-sheet .automation-step-details>summary{font-size:15px}
.case-sheet .automation-step-details>summary span{color:var(--muted)}
.case-sheet .automation-step-details>.muted{line-height:1.7}
.case-sheet .automation-step-list{gap:10px;margin:16px 0}
.case-sheet .automation-step{background:var(--bg);padding:16px;align-items:start}
.case-sheet .step-symbol{flex-basis:28px;height:28px;background:var(--sunk);color:var(--muted)}
.case-sheet .completed .step-symbol{background:var(--good-soft);color:var(--good)}
.case-sheet .failed .step-symbol{background:var(--crit-soft);color:var(--crit)}
.case-sheet .step-info time{margin-top:8px}
.case-sheet .step-info strong{line-height:1.5}
.case-sheet .task-progress{padding:14px;background:var(--bg);border:1px solid var(--line);border-radius:8px;margin:18px 0 14px}
.case-sheet .task-progress-label{font-size:12px}
.case-sheet .case-tasks>.muted{line-height:1.7;margin-bottom:16px}
.case-sheet .steps li{padding:14px 0;gap:10px;align-items:center}
.case-sheet .steps label{font-size:13px;line-height:1.65;align-items:flex-start}
.case-sheet .steps input[type=checkbox]{width:18px;height:18px;flex:none;margin:2px 0 0;accent-color:var(--brand)}
.case-sheet .steps a{font-size:12px}
.case-sheet .addstep{flex-direction:row;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.case-sheet .addstep input{min-width:0;flex:1}
.case-account-note{display:flex;gap:12px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;font-size:13px;overflow-wrap:anywhere}
.case-account-note>div{min-width:0}
.case-account-note .muted{font-size:12px;margin-top:8px;line-height:1.7}
.case-sheet .case-source{font-size:12px;margin-top:-10px}
.case-sheet .case-audit{margin:0;padding:16px 18px;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.case-sheet .case-audit>summary{color:var(--ink);font-size:14px}
.case-sheet .case-facts{font-size:13px}
.case-sheet .case-tracking-hint{font-size:12px;line-height:1.7}
.case-sheet .sheet-foot{margin:0;padding:18px 28px;background:var(--surface);border-top:1px solid var(--line);border-radius:0 0 15px 15px;gap:10px}
.case-sheet .sheet-foot .btn{min-height:42px;font-size:13px}
.case-sheet .sheet-foot [data-act=casetracking]{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
@media(max-width:600px){
  .case-heading h2{font-size:23px}
  .case-heading .lifecycle-brand{font-size:10px;gap:8px}
  .case-heading .lifecycle-kind{display:none}
  .case-close{margin-left:auto}
  .case-progress-body{padding:18px 14px;gap:16px}
  .case-sheet .automation-panel,.case-sheet .case-tasks{padding:16px}
  .case-sheet .automation-heading{gap:10px}
  .case-sheet .case-section-heading{flex-basis:100%}
  .case-sheet .automation-heading>.btn{margin-left:auto}
  .case-sheet .automation-heading h3{font-size:15px}
  .case-sheet .automation-stages{gap:10px;padding:12px}
  .case-sheet .automation-step{padding:12px;gap:8px;flex-wrap:wrap}
  .case-sheet .step-info{flex-basis:calc(100% - 36px)}
  .case-sheet .automation-step>.pill{margin-left:36px}
  .case-sheet .sheet-foot{padding:16px 14px}
  .case-sheet .sheet-foot .grow{display:none}
  .case-sheet .sheet-foot .btn{flex:1}
}

/* Request preview: readable content hierarchy and quiet operational history. */
.sheet.request-sheet{max-width:820px;padding:28px;gap:24px;font-size:15px;line-height:1.65}
.request-preview-header{border-bottom:1px solid var(--line);padding-bottom:16px}
.request-preview-header p{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--muted);margin:0 0 5px}
.request-sheet .request-preview-header h2{font-size:16px;letter-spacing:.03em;margin:0}
.request-sheet .request-record{border:0;box-shadow:none;padding:0;gap:22px;background:transparent}
.request-sheet .request-record-heading{align-items:flex-start;gap:12px}
.request-sheet .request-record-heading h3{font-size:25px;line-height:1.3;flex:1;min-width:0;overflow-wrap:anywhere}
.request-sheet .sub-h{font-size:16px;margin:0 0 12px;line-height:1.5}
.request-summary{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:0;padding:20px;background:var(--sunk);border-radius:10px}
.request-summary dt{font-size:12px;font-weight:600;color:var(--muted);margin-bottom:3px}
.request-summary dd{margin:0;font-size:15px;overflow-wrap:anywhere}
.request-summary time{font-size:14px}
.request-sheet .req-detail{font-size:15px;line-height:1.75;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.request-sheet .request-extra{border:1px solid var(--line);padding:14px 18px;border-radius:10px}
.request-sheet .request-extra summary{font-size:14px}
.request-sheet .request-extra dl{margin:0}
.request-sheet .request-extra dt{font-weight:600;font-size:13px}
.request-sheet .request-extra dd{font-size:15px}
.request-sheet .request-mail{order:5;background:transparent;border:1px solid var(--line);padding:14px 18px;font-size:13px}
.request-mail summary{cursor:pointer;font-weight:600;font-size:14px}
.request-mail summary span{display:inline-block;margin-left:10px;font-size:12px;font-weight:400}
.request-mail ul{padding:0;list-style:none;margin:12px 0}
.request-mail li{padding:10px 0;border-top:1px solid var(--line)}
.request-mail li>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.request-sheet .request-timeline{border:0;margin:0;padding:0;display:grid;gap:16px}
.request-sheet .request-timeline>li{margin:0;padding:18px 20px;background:var(--sunk);border:1px solid var(--line);border-radius:10px}
.request-entry-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px 16px;flex-wrap:wrap}
.request-entry-head strong{font-size:14px}
.request-entry-head time{font-size:12px;color:var(--muted)}
.request-sheet .request-timeline p{font-size:15px;line-height:1.75;margin:12px 0 0}
.request-sheet .request-timeline>.request-event{background:transparent;border:0;border-left:3px solid var(--line);border-radius:0;padding:4px 16px}
.request-entry-status{font-size:13px;color:var(--muted);margin-top:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.request-sheet .req-actions{order:6;padding-top:18px;border-top:1px solid var(--line);gap:10px}
.request-sheet .request-composer{padding:22px;background:var(--sunk);border:1px solid var(--line);border-radius:12px;gap:18px}
.request-composer label{font-size:14px;font-weight:600}
.request-composer textarea{font-size:15px;line-height:1.7;min-height:120px;background:var(--surface)}
.request-composer .muted{font-size:12px;line-height:1.6}
.request-composer input[type=file]{background:var(--surface);font-size:13px}
@media(max-width:600px){.sheet.request-sheet{padding:18px;gap:20px}.request-sheet .request-record-heading h3{font-size:22px;flex-basis:100%}.request-summary{padding:16px;gap:16px}.request-sheet .request-timeline>li{padding:16px}.request-sheet .request-composer{padding:16px}.request-entry-head{display:grid;gap:2px}.request-mail summary span{display:block;margin:4px 0 0}}

/* CC3 request theme: navy framing, restrained orange accents, theme-aware surfaces. */
.sheet.request-sheet{border-radius:16px}
.request-sheet .request-preview-header{margin:-28px -28px 0;padding:24px 28px;background:linear-gradient(115deg,var(--hero),var(--hero-2));color:var(--hero-ink);border:0;border-bottom:4px solid var(--brand);border-radius:15px 15px 0 0}
.request-brand-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.request-sheet .request-brand-row p{color:var(--hero-ink);font-size:11px;letter-spacing:.12em;margin:0}
.request-brand-row p span{color:var(--hero-eyebrow);padding:0 8px}
.request-header-label{font-size:12px;color:var(--hero-sub)}
.request-sheet .request-preview-header h2{color:var(--hero-ink);font-size:19px;font-family:var(--font-mono);letter-spacing:.04em;overflow-wrap:anywhere}
.request-preview-header :focus-visible{outline-color:var(--hero-eyebrow)}
.request-sheet .request-summary{background:var(--bg);border:1px solid var(--line);border-left:4px solid var(--brand);box-shadow:var(--shadow)}
.request-sheet .request-description>.sub-h,.request-sheet .request-discussion>.sub-h{display:flex;align-items:center;gap:10px}
.request-sheet .request-description>.sub-h:before,.request-sheet .request-discussion>.sub-h:before{content:"";width:4px;height:17px;background:var(--brand);border-radius:4px;flex:none}
.request-discussion>.sub-h>.muted{display:inline-grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:8px;background:var(--accent-soft);color:var(--ink);font-size:12px}
.request-sheet .request-extra,.request-sheet .request-mail{background:var(--bg);transition:border-color .15s}
.request-sheet .request-extra[open],.request-sheet .request-mail[open]{border-color:var(--brand-rule)}
.request-sheet .request-extra summary:hover,.request-sheet .request-mail summary:hover{color:var(--brand-text)}
.request-sheet .request-timeline>.request-message{background:var(--surface);box-shadow:var(--shadow);border-left:3px solid var(--brand-rule)}
.request-message .request-entry-head{padding-bottom:12px;border-bottom:1px solid var(--line)}
.request-sheet .request-timeline>.request-event{margin-left:12px;border-left:2px solid var(--line);position:relative}
.request-sheet .request-timeline>.request-event:before{content:"";position:absolute;left:-5px;top:13px;width:8px;height:8px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 4px var(--surface)}
.request-sheet .request-composer{background:var(--bg);border-top:3px solid var(--brand);box-shadow:var(--shadow)}
.request-composer label[for="request-message"]{font-size:16px}
.request-composer textarea:focus{border-color:var(--brand-rule)}
.request-composer .sheet-foot{border-top:1px solid var(--line);padding-top:16px}
.request-sheet .request-composer .btn.primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink);box-shadow:0 2px 5px rgba(25,39,68,.12)}
.request-sheet .request-composer .btn.primary:hover{filter:brightness(.96)}
@media(max-width:600px){.request-sheet .request-preview-header{margin:-18px -18px 0;padding:20px 18px}.request-brand-row{gap:6px;margin-bottom:14px}.request-sheet .request-preview-header h2{font-size:17px}.request-header-label{font-size:11px}}

/* Employee support: the same CC3 visual language from help to submission. */
.sheet.support-sheet{padding:0;gap:0;border-radius:18px;max-height:calc(100dvh - 48px);overflow-y:auto;scroll-padding:24px}
.support-sheet #supportform{gap:0;min-width:0}
.support-sheet .support-heading{padding:22px 30px 28px;background:linear-gradient(115deg,var(--hero),var(--hero-2));color:var(--hero-ink);border-bottom:4px solid var(--brand);border-radius:17px 17px 0 0}
.support-brand{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.support-heading .eyebrow{color:var(--hero-eyebrow);font-size:11px;letter-spacing:.15em}
.support-sheet .support-heading h2{font-size:28px;color:var(--hero-ink);line-height:1.25}
.support-heading p{color:var(--hero-sub);font-size:14px;margin:10px 0 0}
.support-close{display:grid;place-items:center;width:36px;height:36px;flex:none;border:1px solid var(--hero-line);border-radius:8px;background:transparent;color:var(--hero-ink);font:24px/1 var(--font-body);cursor:pointer}
.support-close:hover{background:var(--hero-2)}
.support-heading :focus-visible{outline-color:var(--hero-eyebrow)}
.support-sheet .support-steps{margin:0;padding:20px 30px;gap:16px;border-bottom:1px solid var(--line);background:var(--bg)}
.support-steps li{display:flex;align-items:center;gap:9px;border:0;padding:0;font-size:12px;font-weight:500;line-height:1.4}
.support-steps li>span{display:grid;place-items:center;width:28px;height:28px;flex:none;border:1px solid var(--line);border-radius:50%;background:var(--surface);font-size:12px}
.support-steps li[aria-current]>span{background:var(--brand);border-color:var(--brand);color:var(--brand-ink);font-weight:700}
.support-steps li.complete>span{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.support-context{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 30px;padding:16px 18px;background:var(--bg);border:1px solid var(--line);border-left:3px solid var(--brand);border-radius:10px;font-size:12px;overflow-wrap:anywhere}
.support-context>div{display:flex;flex-direction:column;gap:4px;min-width:0;color:var(--muted)}
.support-context strong{font-size:14px;color:var(--ink);font-weight:600}
.support-caption{font-size:10px;letter-spacing:.1em;font-weight:600;margin-bottom:3px}
.support-sheet [data-support-step]{padding:0 30px 8px}
.support-sheet .fields{gap:18px}
.support-sheet .field{gap:7px}
.support-sheet .field label{font-size:13px}
.support-sheet input:not([type=checkbox]),.support-sheet select{min-height:46px}
.support-sheet textarea{min-height:88px}
.support-sheet input:focus,.support-sheet textarea:focus,.support-sheet select:focus{border-color:var(--brand-rule);outline:2px solid var(--brand-rule);outline-offset:2px}
.support-sheet .support-systems{padding:12px 0;margin-top:24px}
.support-systems legend{font-size:14px}
.support-systems>p{font-size:12px;color:var(--muted);margin:4px 0 10px}
.support-systems label{cursor:pointer;font-size:12px;min-height:48px;background:var(--surface)}
.support-systems input{accent-color:var(--brand-text)}
.support-systems label:hover{border-color:var(--brand-rule)}
.support-sheet .support-response{margin:12px 30px 24px;background:var(--brand-soft);border:1px solid var(--brand-rule);font-size:12px;line-height:1.7}
.support-response strong{display:block;color:var(--ink);margin-bottom:3px}
.support-sheet #support-error{margin:0 30px 18px}
.support-sheet .sheet-foot{position:sticky;bottom:0;z-index:1;padding:16px 30px;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -5px 16px rgba(25,39,68,.05);border-radius:0 0 17px 17px}
.support-sheet .sheet-foot .btn{min-height:44px;font-size:13px}
.support-sheet .btn.primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink);font-weight:600}
.support-sheet #support-review{padding:0 20px 20px;border:1px solid var(--line);border-radius:12px;background:var(--bg);margin-top:16px}
.support-sheet #support-review dt{font-weight:600}
.employee-view .phead{padding-bottom:20px;border-bottom:1px solid var(--line)}
.employee-view .hero{border-top:4px solid var(--brand);padding:30px;border-radius:16px}
.employee-view .sec{font-size:18px;display:flex;gap:10px;align-items:center}
.employee-view .sec:before{content:"";width:4px;height:18px;border-radius:4px;background:var(--brand);flex:none}
.employee-view .rows{border-radius:12px;overflow:hidden;border:1px solid var(--line);background:var(--surface)}
.employee-view .req{padding:22px 24px;border-radius:14px;gap:10px;border-left:3px solid var(--brand-rule)}
.employee-view .req>[data-act=requestdetail]{align-self:flex-start;margin-top:4px;min-height:38px}
.employee-view .request-filters{padding:4px 0 8px;gap:8px}
.employee-view .request-filters .chipbtn{border-radius:24px;font-size:12px}
.employee-view .resource-toolbar{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;gap:10px}
.employee-view .resource-hint{font-size:12px;margin:0 0 8px}
.employee-view details.guide{border-radius:12px;box-shadow:none}
.employee-view details.guide[open]{border-color:var(--brand-rule);box-shadow:var(--shadow)}
.employee-view details.guide summary{padding:19px 20px;font-size:14px}
.employee-view details.guide summary:before{display:grid;place-items:center;width:24px;height:24px;border-radius:6px;background:var(--accent-soft);color:var(--ink);flex:none}
.employee-view details.guide[open] summary:before{background:var(--brand-soft);color:var(--brand-text)}
.employee-view details.guide .gbody{padding:4px 24px 24px 54px;line-height:1.8;font-size:14px;max-width:85ch}
.employee-view .resource-contact{border-top:3px solid var(--brand-rule);border-radius:12px}
@media(max-width:620px){
  .sheet.support-sheet{max-height:calc(100dvh - 32px);border-radius:14px}
  .support-sheet .support-heading{padding:16px 18px 22px;border-radius:13px 13px 0 0}
  .support-sheet .support-heading h2{font-size:23px}
  .support-sheet .support-steps{padding:16px;gap:8px}
  .support-steps li{flex-direction:column;align-items:flex-start;font-size:10px;gap:6px}
  .support-context{margin:18px 16px;padding:14px;grid-template-columns:1fr;gap:14px}
  .support-sheet [data-support-step]{padding:0 16px 8px}
  .support-sheet .support-response{margin:12px 16px 20px}
  .support-sheet #support-error{margin:0 16px 16px}
  .support-sheet .sheet-foot{padding:12px 16px}
  .employee-view .hero{padding:22px}
  .employee-view .req{padding:18px}
  .employee-view .resource-toolbar{padding:12px}
  .employee-view details.guide summary{padding:16px;font-size:13px}
  .employee-view details.guide summary{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px 10px}
  .employee-view details.guide summary:before{grid-row:1/3}
  .employee-view details.guide summary .sys{grid-column:2;justify-self:start;font-size:9px;white-space:normal}
  .employee-view details.guide .gbody{padding:0 18px 20px;font-size:13px}
}

/* Shared CC3 workspace theme. Applies to every route and respects light/dark tokens. */
.mainbar{background:var(--surface);border-bottom:1px solid var(--line);padding-block:16px}
.gsearch input{background:var(--bg);border-color:var(--line);font-size:13px}
.page{gap:22px}
.phead{padding:24px;border:1px solid var(--hero-line);border-bottom:3px solid var(--brand);border-radius:14px;background:linear-gradient(115deg,var(--hero),var(--hero-2));color:var(--hero-ink);align-items:center}
.phead>div:first-child{min-width:0;flex:1 1 320px}
.phead h1{font-size:clamp(24px,2.4vw,30px);overflow-wrap:anywhere}
.phead p{color:var(--hero-sub);font-size:13px;line-height:1.7;margin-top:8px}
.phead .btn{background:transparent;border-color:var(--hero-line);color:var(--hero-ink);font-size:13px;min-height:42px}
.phead .btn.primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.phead .btn:hover{background:var(--hero-2)}
.phead .btn.primary:hover{background:var(--hero-eyebrow)}
.phead :focus-visible{outline-color:var(--hero-eyebrow)}
.employee-view .phead{border-bottom:3px solid var(--brand);padding-bottom:24px}
.page>.toolbar{padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;gap:10px}
.toolbar input[type=search]{max-width:440px;font-size:13px}
.toolbar>label{font-size:12px;color:var(--muted)}
.toolbar select{font-size:13px}
.chipbtn{min-height:36px;font-size:12px}
.chipbtn:hover{border-color:var(--brand-rule);color:var(--ink)}
.chipbtn.on{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.chipbtn.on:hover{color:var(--accent-ink)}
.btn{justify-content:center;min-height:40px;font-size:13px}
.btn.small{min-height:34px}
.panel,.tbl-wrap,details.guide{border-radius:12px}
.tbl th{background:var(--sunk);padding-block:14px}
.tbl tbody tr:hover{background:var(--bg)}
.panel-title{font-size:15px}
.sec{border-left:3px solid var(--brand);padding-left:10px}
.note{border:1px solid var(--line);border-left:3px solid var(--brand-rule);background:var(--surface);line-height:1.7;font-size:13px}
.empty{padding:36px 24px;background:var(--surface);border:1px dashed var(--line);border-radius:12px}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--brand-rule)}
.request-filters{padding:0 0 14px;margin-bottom:0;border-bottom:1px solid var(--line)}
.queue-results{font-size:12px;color:var(--muted);margin:14px 0;font-variant-numeric:tabular-nums}
.req>[data-act=requestdetail]{align-self:flex-start}
.req.queue-request{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,190px) auto;align-items:center;gap:18px;padding:20px 22px;box-shadow:none}
.queue-request:hover{border-color:var(--brand-rule);box-shadow:var(--shadow)}
.queue-copy{min-width:0}
.queue-reference{font-family:var(--font-mono);font-size:11px;color:var(--muted);letter-spacing:.035em}
.queue-copy h3{font-size:16px;line-height:1.5;margin:4px 0 6px;overflow-wrap:anywhere}
.queue-copy p{font-size:12px;overflow-wrap:anywhere;line-height:1.7}
.queue-status{display:flex;align-items:flex-start;flex-direction:column;gap:8px;min-width:0}
.queue-status>.muted{font-size:12px;overflow-wrap:anywhere}
.queue-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.queue-actions .btn{white-space:nowrap;gap:12px}
.request-files li{border-color:var(--line)}
.side .navlist{scrollbar-width:thin;scrollbar-color:var(--hero-line) transparent}
.nav-group{color:var(--hero-sub);font-size:10px;padding-top:16px}
.navlist a{font-size:13px;padding:9px 12px;gap:12px}
.navlist .ic{width:20px;height:20px}
.side-title{font-size:25px;padding:20px 24px}
.who{font-size:12px}
@media(min-width:960px){
  .app{grid-template-columns:248px minmax(0,1fr)}
  .side-logo{min-height:76px;padding:16px 22px}
  .side-logo .logo{height:auto;max-height:44px}
  .mainbar,.strip,.page{padding-left:32px;padding-right:32px}
  .page{max-width:1600px;padding-top:26px}
}
@media(max-width:720px){
  .phead{padding:20px;gap:18px}
  .phead>div:first-child{flex-basis:100%}
  .head-actions{width:100%}
  .head-actions .btn{flex:1}
  .page>.toolbar{padding:12px}
  .toolbar input[type=search]{max-width:none;flex-basis:100%;min-width:0}
  .req.queue-request{grid-template-columns:minmax(0,1fr) auto;padding:18px;gap:16px}
  .queue-copy{grid-column:1/-1}
  .queue-status{max-width:100%}
  .queue-actions{flex-direction:column;align-items:stretch}
  .queue-actions .btn{min-height:40px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Long dashboard action labels must wrap on narrow screens. */
.go{white-space:normal;max-width:100%;overflow-wrap:anywhere}

.email-template{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:8px;min-width:0}.email-template legend{font-weight:600;padding:0 6px}.email-template-preview{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:12px;padding:16px;border:1px solid var(--line);border-radius:8px}

/* Settings: a stable section menu, focused forms, and a persistent save action. */
.settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:28px;align-items:start}
.settings-nav{position:sticky;top:24px;display:flex;flex-direction:column;gap:6px}
.settings-nav-label{font-size:12px;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);padding:4px 12px 12px;font-weight:600}
.settings-nav button{font:inherit;text-align:left;background:transparent;color:var(--ink);border:1px solid transparent;border-radius:10px;padding:13px 14px;cursor:pointer;min-height:68px}
.settings-nav button>span{display:block;font-size:14px;font-weight:600}
.settings-nav small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.settings-nav button:hover{background:var(--sunk)}
.settings-nav button[aria-pressed=true]{background:var(--surface);border-color:var(--line);box-shadow:inset 3px 0 var(--brand)}
.settings-nav button[aria-pressed=true]>span{color:var(--brand-text)}
.settings-count:not(:empty){display:block;font-size:12px;color:var(--crit);margin-top:4px}
.settings-content{min-width:0}
.settings-panel{padding:28px;box-shadow:none}
.settings-heading{display:flex;flex-direction:column;gap:8px;margin-bottom:24px}
.settings-heading h2{font-size:22px}
.settings-heading p{color:var(--muted);font-size:15px;max-width:65ch}
#settings-connections .settings-heading{flex-direction:row;justify-content:space-between;align-items:start;gap:18px;flex-wrap:wrap}
#settings-connections .settings-heading p{margin-top:8px}
.settings-subtitle{font-size:16px;margin:24px 0 12px}
.settings-divider{border-top:1px solid var(--line);padding-top:24px}
.settings-help{font-size:14px;margin:16px 0;color:var(--muted)}
.settings-help summary{cursor:pointer;color:var(--ink);font-weight:500;padding:8px 0}
.settings-help p{margin-top:10px;overflow-wrap:anywhere}
.settings-help code{display:inline-block;font-size:13px;line-height:2}
.email-placeholders{padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:var(--sunk)}
.placeholder-target{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:16px 0}
.placeholder-target label{font-weight:600;color:var(--ink)}
.placeholder-target select{width:auto;min-width:140px}
.placeholder-chips{display:flex;flex-wrap:wrap;gap:8px}
.placeholder-chip{display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:grab}
.placeholder-chip span{font-weight:600}
.settings-help .placeholder-chip code{font-size:11px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.placeholder-chip:hover{border-color:var(--brand);box-shadow:0 2px 5px #14213d12}
.placeholder-chip:active{cursor:grabbing}
.placeholder-chip:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.email-placeholders .placeholder-note{font-size:12px;margin-bottom:0}
#placeholder-feedback{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.dragging-placeholder .email-template input,.dragging-placeholder .email-template textarea{outline:2px dashed var(--brand);outline-offset:2px}
.settings-intake{border-top:1px solid var(--line);padding-top:16px;margin:20px 0 0}
.settings-recipients{border:1px solid var(--line);border-radius:10px;padding:16px;background:var(--bg)}
.settings-recipients summary{font-size:15px;font-weight:600;cursor:pointer}
.settings-recipients summary span{display:block;font-size:13px;font-weight:400;margin:4px 0 0 19px}
.settings-recipients[open] summary{margin-bottom:18px}
.settings-recipients .notify-row{grid-template-columns:1fr 1fr auto;gap:12px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.settings-recipients .notify-row>input[type=text]{grid-column:1/-1}
.settings-template-switch{display:flex;gap:4px;background:var(--sunk);border:1px solid var(--line);border-radius:9px;padding:4px;margin:20px 0}
.settings-template-switch button{flex:1;font:inherit;font-size:14px;font-weight:600;padding:11px 16px;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:6px;cursor:pointer}
.settings-template-switch button[aria-pressed=true]{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:var(--shadow)}
.settings-panel .email-template{border:0;margin:0;padding:0}
.settings-panel .email-template legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);padding:0}
.settings-panel .email-template .fields{gap:20px;margin-bottom:18px}
.settings-panel .email-template textarea{line-height:1.65;min-height:260px}
.settings-panel .email-template .link{margin-left:12px}
.settings-panel label{font-size:14px}
.settings-panel input,.settings-panel textarea{font-size:15px}
.settings-panel .field{min-width:0}
.settings-panel .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.settings-savebar{position:sticky;bottom:18px;z-index:4;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:16px 20px;margin-top:16px;box-shadow:var(--lift)}
.settings-savebar.is-dirty{border-left:3px solid var(--brand)}
.settings-save-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}
.settings-save-actions strong{display:block;font-size:14px}
.settings-save-actions .muted{display:block;font-size:12px;margin-top:3px}
.settings-save-actions .btn{flex-shrink:0}
.settings-savebar .err{margin-bottom:12px}
.settings-connection-summary{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;padding:14px 16px;border-radius:8px;background:var(--sunk);font-size:14px}
.settings-connection-summary span{color:var(--muted)}
.settings-panel .connection-status>div{grid-template-columns:minmax(0,1fr) auto;gap:6px 16px;padding:18px 0}
.settings-panel .connection-status .what{grid-column:1;grid-row:1;font-size:14px;font-weight:600}
.settings-panel .connection-status .pill{grid-column:2;grid-row:1}
.settings-panel .connection-status .muted{grid-column:1/-1;font-size:14px;max-width:80ch}
.settings-access-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}
.settings-access-grid>div{padding:20px;background:var(--bg);border:1px solid var(--line);border-radius:10px}
.settings-access-grid h3{font-size:16px;margin-bottom:10px}
#settings-access>.muted{margin-top:18px;font-size:14px}
@media(max-width:1100px){
  .settings-layout{grid-template-columns:1fr;gap:18px}
  .settings-nav{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .settings-nav-label{grid-column:1/-1;padding:0 0 2px}
  .settings-nav button{border-color:var(--line);padding:12px;min-height:44px}
  .settings-nav small{display:none}
}
@media(max-width:620px){
  .settings-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings-nav button>span{font-size:13px}
  .settings-panel{padding:20px 16px}
  .settings-panel .fields,.settings-access-grid{grid-template-columns:minmax(0,1fr)}
  .settings-savebar{bottom:76px;padding:12px}
  .settings-save-actions{gap:8px}
  .settings-save-actions .muted{display:none}
  .settings-save-actions .btn{padding:10px 12px;font-size:13px}
  .settings-recipients{padding:12px}
  .settings-recipients .notify-row{grid-template-columns:1fr 1fr;padding:10px}
  .settings-recipients .notify-row .link{justify-self:start}
  .settings-panel .connection-status>div{grid-template-columns:1fr}
  .settings-panel .connection-status .pill{grid-column:1;grid-row:2}
  .settings-panel .email-template .link{margin:12px 0 0;display:block}
}
