/* Modern Workplace Baseline Toolkit v1.5.25 - design system after the Microsoft Intune admin center (Fluent 2):
   dark header bar, light navigation pane, blade title with breadcrumb, underline tabs, data grids, message bars,
   4 px corners, no gradients. Accent is Bechtle green; for Fluent blue set --accent* to #0f6cbd / #115ea3 / #0f548c.
   Theme: system by default, data-theme="light|dark" on <html> overrides (theme.js). */

/* ---------------------------------------------------------------- tokens */
:root {
  --brand: #075033;
  --brand-2: #0a6a44;
  --brand-3: #23a96a;
  --mint: #2ffb95;
  --lime: #aade0c;
  --cyan: #27c9d1;
  --blue: #346cef;
  --chrome: light-dark(#1b1a19, #0f0f0f);
  --chrome-2: light-dark(#323130, #292827);
  --chrome-ink: #ffffff;
  --chrome-muted: light-dark(#c8c6c4, #a19f9d);
  --bg: light-dark(#faf9f8, #1b1a19);
  --bg-2: light-dark(#f3f2f1, #201f1e);
  --surface: light-dark(#ffffff, #252423);
  --surface-2: light-dark(#faf9f8, #292827);
  --surface-3: light-dark(#f3f2f1, #323130);
  --nav-bg: light-dark(#f3f2f1, #201f1e);
  --hover: light-dark(#f3f2f1, #323130);
  --pressed: light-dark(#edebe9, #3b3a39);
  --selected: light-dark(#edebe9, #3b3a39);
  --ink: light-dark(#201f1e, #f3f2f1);
  --ink-2: light-dark(#323130, #d2d0ce);
  --muted: light-dark(#605e5c, #a19f9d);
  --line: light-dark(#edebe9, #3b3a39);
  --line-2: light-dark(#c8c6c4, #605e5c);
  --line-3: #8a8886;
  --accent: light-dark(#0a7a4c, #3fb67e);
  --accent-hover: light-dark(#08663f, #55c48f);
  --accent-press: light-dark(#075033, #2f9e69);
  --accent-ink: light-dark(#ffffff, #06150d);
  --accent-bg: light-dark(#e7f3ed, #1c3a2b);
  --link: light-dark(#0a6a44, #6fd4a3);
  --ok: light-dark(#107c10, #6ccb5f);
  --ok-bg: light-dark(#dff6dd, #1f3a1d);
  --warn: light-dark(#835b00, #f2c661);
  --warn-bg: light-dark(#fff4ce, #3d3216);
  --bad: light-dark(#a4262c, #f1707b);
  --bad-bg: light-dark(#fde7e9, #442726);
  --info: light-dark(#0f6cbd, #62abf5);
  --info-bg: light-dark(#ebf3fc, #1b2d44);
  --neutral: light-dark(#605e5c, #c8c6c4);
  --neutral-bg: light-dark(#f3f2f1, #323130);
  --c-gleich: #13a10e;
  --c-abweichend: #c19c00;
  --c-fehlt: #d13438;
  --c-kundeneigen: #0f6cbd;
  --c-Standard: #a19f9d;
  --t-gleich: var(--ok-bg);
  --t-abweichend: var(--warn-bg);
  --t-fehlt: var(--bad-bg);
  --t-kundeneigen: var(--info-bg);
  --t-Standard: var(--neutral-bg);
  --focus: light-dark(#201f1e, #ffffff);
  --shadow-1: none;
  --shadow-2: 0 3.2px 7.2px light-dark(rgba(0, 0, 0, .132), rgba(0, 0, 0, .4)), 0 .6px 1.8px light-dark(rgba(0, 0, 0, .108), rgba(0, 0, 0, .3));
  --shadow-3: 0 25.6px 57.6px light-dark(rgba(0, 0, 0, .22), rgba(0, 0, 0, .55)), 0 4.8px 14.4px light-dark(rgba(0, 0, 0, .18), rgba(0, 0, 0, .45));
  --r-s: 2px;
  --r-m: 4px;
  --r-l: 4px;
  --r-xl: 8px;
  --nav-w: 228px;
  --top-h: 48px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI Semibold", "Segoe UI", -apple-system, system-ui, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(.1, .9, .2, 1);
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); scroll-padding-bottom: 24px; }
html:has(.savebar) { scroll-padding-bottom: 80px; }
body { margin: 0; font: 14px/20px var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.tile b, .kpi-n, .stat b, table.tbl, .cust-phase, .cust-last, .pcount, .essentials dd { font-variant-numeric: tabular-nums; }
kbd { font: 12px var(--mono); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
h1 { font-size: 24px; line-height: 32px; margin: 0 0 4px; font-weight: 600; letter-spacing: 0; }
h2 { font-size: 16px; line-height: 22px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
h3, h2.h3 { font-size: 14px; line-height: 20px; margin: 0 0 2px; font-weight: 600; display: block; }
h2 > .ico { width: 18px; height: 18px; color: var(--muted); }
p { margin: 4px 0 10px; }
small { color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); } .center { text-align: center; } .bad { color: var(--bad); }
.ico { width: 16px; height: 16px; flex: none; } .ico.big { width: 32px; height: 32px; color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: var(--r-m); }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; border-radius: var(--r-m); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- shell: header bar, navigation pane */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: var(--top-h); padding: 0 8px 0 16px;
  color: var(--chrome-ink); background: var(--chrome); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--chrome-ink); text-decoration: none; min-width: 0; min-height: 40px; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, .28); }
.brand-name { display: flex; align-items: baseline; gap: 8px; line-height: 20px; white-space: nowrap; font-size: 15px; font-weight: 600; }
.brand-name small { color: var(--chrome-muted); font-weight: 400; font-size: 12px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; height: 100%; }
.top-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: var(--r-m); border: 0;
  background: transparent; color: var(--chrome-ink); font: inherit; font-size: 13px; cursor: pointer; }
.top-btn:hover { background: rgba(255, 255, 255, .1); }
.top-btn:active { background: rgba(255, 255, 255, .16); }
.top-btn .ico { width: 16px; height: 16px; }
.top-btn kbd { font-size: 11px; padding: 0 5px; border-radius: var(--r-s); border: 1px solid rgba(255, 255, 255, .25); color: var(--chrome-muted); }
.top-btn.icon { width: 40px; height: 40px; padding: 0; justify-content: center; }
.top-actions > .top-btn:first-child { min-width: 220px; height: 30px; margin-right: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--chrome-muted); }
.top-actions > .top-btn:first-child:hover { background: rgba(255, 255, 255, .12); }
.top-actions > .top-btn:first-child kbd { margin-left: auto; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: var(--r-m); font-size: 13px;
  color: var(--chrome-ink); text-decoration: none; }
.status:hover { background: rgba(255, 255, 255, .1); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f7c948; }
.status.ok::before { background: #6ccb5f; }
.layout { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
#nav { position: sticky; top: var(--top-h); align-self: start; height: calc(100vh - var(--top-h)); overflow-y: auto; padding: 8px 6px;
  background: var(--nav-bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.layout::before { content: ""; grid-column: 1; grid-row: 1; background: var(--nav-bg); border-right: 1px solid var(--line); }
#nav { grid-column: 1; grid-row: 1; }
main { grid-column: 2; grid-row: 1; }
#nav .nav-h { font-size: 12px; font-weight: 600; color: var(--muted); padding: 14px 10px 4px; }
#nav a, #tabbar a { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-radius: var(--r-m); text-decoration: none; color: var(--ink);
  font-size: 14px; min-height: 36px; }
#nav a .ico { width: 18px; height: 18px; color: var(--accent); }
#nav a:hover { background: var(--hover); }
#nav a.on { background: var(--surface); font-weight: 600; }
#nav a.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--accent); }
#nav a.sub { font-size: 13px; }
#nav a .av { width: 20px; height: 20px; border-radius: var(--r-s); display: grid; place-items: center; font-size: 10px; font-weight: 600; background: var(--surface-3); color: var(--ink-2);
  border: 1px solid var(--line-2); flex: none; font-family: var(--mono); }
#nav .nav-foot { margin-top: auto; padding: 12px 10px 6px; font-size: 12px; line-height: 16px; color: var(--muted); }
#nav .nav-foot kbd { font-size: 11px; }
main { padding: 16px clamp(16px, 2.4vw, 32px) 96px; max-width: 1480px; width: 100%; }
main > section { margin-bottom: 20px; }
#tabbar { display: none; }

/* ---------------------------------------------------------------- building blocks */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 20px; }
.card.warn { border-left: 3px solid var(--c-abweichend); }
.card.danger-zone { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.card.danger-zone h2 { color: var(--bad); }
.card-head, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2, .section-head h2 { margin: 0; }
.section-head.page { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); align-items: flex-end; }
.section-head.page p { margin: 2px 0 0; max-width: 820px; color: var(--muted); }
.grid { display: grid; gap: 12px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.actions { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid.actions > * { min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.sep { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }

/* buttons (Fluent 2: 32 px, 4 px corners, no shadow) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 5px 12px; border-radius: var(--r-m);
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; line-height: 20px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--hover); border-color: var(--line-3); }
.btn:active { background: var(--pressed); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.primary:active { background: var(--accent-press); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); font-weight: 400; }
.btn.ghost .ico { color: var(--accent); }
.btn.ghost:hover { background: var(--hover); }
.btn.small { min-height: 28px; padding: 3px 10px; font-size: 13px; }
.btn.big { min-height: 40px; padding: 8px 20px; font-size: 15px; }
.btn.danger { background: var(--bad); border-color: transparent; color: #fff; }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 88%, #000); }
.btn[disabled], .btn.primary[disabled], .btn.danger[disabled], .btn.ghost[disabled] { cursor: not-allowed; background: var(--surface-3); color: var(--line-3);
  border-color: var(--line); filter: none; }
.btn .ico { width: 16px; height: 16px; }
.btn kbd { font-size: 11px; color: var(--muted); padding: 0 4px; border: 1px solid var(--line-2); border-radius: var(--r-s); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-m); border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--link); text-decoration: none; min-height: 28px; }
.link:hover { text-decoration: underline; }
.link .ico { width: 14px; height: 14px; }
.btn.link { background: none; border: 0; padding: 2px 4px; min-height: 0; color: var(--link); font-weight: 400; }
.btn.link:hover { text-decoration: underline; background: none; }
.btn.link .ico { width: 14px; height: 14px; }

/* badges, tags, status pills: small, rectangular */
.badge, .pill, .tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 600; padding: 2px 6px; border-radius: var(--r-m);
  background: var(--neutral-bg); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.chip { font-size: 12px; line-height: 18px; padding: 1px 8px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); }
.chip.lic { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, var(--line)); }
.pill.k-same { background: var(--ok-bg); color: var(--ok); }
.pill.k-different { background: var(--warn-bg); color: var(--warn); }
.pill.k-missing { background: var(--bad-bg); color: var(--bad); }
.pill.k-own { background: var(--info-bg); color: var(--info); }
.pill.k-default { background: var(--neutral-bg); color: var(--neutral); }
.tag { font-size: 11px; background: var(--warn-bg); color: var(--warn); }
.tag.miss { background: var(--bad-bg); color: var(--bad); }
.tag.add { background: var(--info-bg); color: var(--info); }
.tag.chg { background: var(--warn-bg); color: var(--warn); }

/* breadcrumb (blade path) */
.crumb { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.crumb a { display: inline-flex; align-items: center; min-height: 24px; padding: 0 4px; margin: 0 -4px; border-radius: var(--r-s); color: var(--link); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb .ico { width: 12px; height: 12px; margin: 0 4px; }
.crumb [aria-current] { color: var(--ink-2); }

/* empty state */
.empty { text-align: center; padding: 40px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.empty h3, .empty h2.h3 { margin-top: 10px; font-size: 16px; }
.empty p { color: var(--muted); max-width: 480px; margin: 4px auto 16px; }

/* search box (Fluent SearchBox) */
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-bottom-color: var(--line-3); border-radius: var(--r-m);
  padding: 0 10px; margin-bottom: 12px; color: var(--muted); max-width: 420px; }
.search:focus-within { border-bottom: 2px solid var(--accent); padding-bottom: 0; }
.search input { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 5px 0; outline: none; min-width: 0; min-height: 30px; box-shadow: none !important; }

/* ---------------------------------------------------------------- home (overview blade) */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.home-head p { margin: 2px 0 0; color: var(--muted); max-width: 760px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 2px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.tile span { font-size: 13px; color: var(--muted); }
.tile b { font-size: 28px; line-height: 36px; font-weight: 600; font-family: var(--font-display); }
.tile b.word { font-size: 18px; line-height: 36px; }
.tile.todo b { color: var(--warn); } .tile.ok b { color: var(--ok); }

/* ---------------------------------------------------------------- customers: data grid */
.grid.cards.custlist { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.cust-hd, .custlist .cust { display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(220px, 1.2fr) minmax(200px, 1fr); gap: 4px 20px; align-items: center; padding: 0 16px; }
.cust-hd { min-height: 36px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface); }
.custlist .cust { min-height: 56px; padding-block: 8px; border: 0; border-radius: 0; background: transparent; color: var(--ink); }
.custlist .cust + .cust { border-top: 1px solid var(--line); }
.custlist .cust:hover { background: var(--hover); transform: none; box-shadow: none; }
.custlist .cust:hover .cust-main strong { text-decoration: underline; color: var(--link); }
.custlist .cust-top > .ico { display: none; }
.custlist .cust-foot { border: 0; padding: 0; justify-content: flex-start; }
/* card form (legacy and unknown containers) */
.cust { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.cust-top { display: flex; gap: 10px; align-items: center; min-width: 0; } .cust-top > .ico { color: var(--muted); }
.cust .chips { margin-top: 0; }
.cust-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.cust-last { white-space: nowrap; }
.cust-badges { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.cust:hover { border-color: var(--line-2); }
.avatar { width: 32px; height: 32px; flex: none; border-radius: var(--r-m); display: grid; place-items: center; font-weight: 600; font-size: 12px; font-family: var(--mono);
  color: var(--ink-2); background: var(--surface-3); border: 1px solid var(--line-2); }
.avatar.big { width: 48px; height: 48px; font-size: 16px; }
.cust-main { flex: 1; min-width: 0; } .cust-main strong, .cust-main > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-main strong { font-weight: 600; }
.cust-phase { display: grid; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }
.cust-phase-h { display: flex; justify-content: space-between; gap: 8px; }
.cust-phase b { color: var(--ink); font-weight: 600; }
.cust-next { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-plat { font-size: 13px; color: var(--muted); }
.nav .sub.more, a.sub.more { color: var(--muted); font-size: 13px; }

/* customer header: blade title with essentials */
.cust-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 12px; }
.cust-head > div:first-of-type { flex: 1; min-width: 240px; }
.cust-head h1 { margin-bottom: 0; }
.cust-ids { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; margin: 0 0 4px; font-size: 13px; }
progress { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border: 0; border-radius: 2px; background: var(--line); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 2px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 2px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 2px; }

/* quick actions (icon left, text right) */
.action { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-content: start; }
.action > * { grid-column: 2; }
.action > .action-ico { grid-column: 1; grid-row: 1; }
.action p { color: var(--muted); }
.action > .btn, .action > label.btn, .action > a.btn { justify-self: start; }
.action > .row:last-child, .action > .btn:last-child { align-self: end; }
.action-ico { width: 24px; height: 24px; display: grid; place-items: center; color: var(--accent); margin-top: -1px; }
.action-ico .ico { width: 20px; height: 20px; }
.card.action.wide { margin-bottom: 16px; }
.card.action.wide p { max-width: 80ch; }

/* run history (activity list) */
.timeline { list-style: none; margin: 0; padding: 0; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 8px 16px; min-height: 48px; background: transparent; border: 0; }
.timeline li + li { border-top: 1px solid var(--line); }
.timeline li:hover { background: var(--hover); }
.tl-ico { width: 24px; height: 24px; display: grid; place-items: center; color: var(--muted); flex: none; }
.tl-ico.accent { color: var(--accent); }
.tl-main { flex: 1; min-width: 0; } .tl-main strong, .tl-main small { display: block; } .tl-main strong { font-weight: 600; }
.tl-more { margin-top: 8px; }
.tl-more > summary { cursor: pointer; color: var(--link); padding: 4px 2px; }
.tl-more > .timeline { margin-top: 8px; }

/* ---------------------------------------------------------------- project path: tabs, next step, phases */
.phasebar { display: flex; gap: 0; margin: 0 0 4px; padding: 0; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.phasebar a { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 10px 12px; text-decoration: none; white-space: nowrap;
  color: var(--ink-2); font-size: 14px; }
.phasebar a:hover { color: var(--ink); background: var(--hover); }
.phasebar a.on { color: var(--ink); font-weight: 600; }
.phasebar a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 2px 2px 0 0; background: var(--accent); }
.phasebar .pdot { line-height: 1; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; border: 1px solid var(--line-3); color: var(--muted); flex: none; }
.phasebar .pdot .ico { width: 11px; height: 11px; }
.phasebar a.done .pdot { background: var(--ok); border-color: var(--ok); color: #fff; }
.phasebar a.current .pdot { border-color: var(--accent); color: var(--accent); }
.subtabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 16px; }
.subtabs a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 28px; border-radius: var(--r-m); text-decoration: none; color: var(--ink-2); font-size: 13px; border: 1px solid transparent; }
.subtabs a:hover { background: var(--hover); }
.subtabs a.on { background: var(--selected); color: var(--ink); font-weight: 600; }
.subtabs a .sdot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.subtabs a.done .sdot { background: var(--ok); }
.subtabs a.current .sdot { background: var(--accent); }
.subtabs .ico { width: 16px; height: 16px; }

/* next step: Fluent message bar with action */
.next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-m);
  background: var(--accent-bg); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.next .next-ico { width: 20px; height: 20px; display: grid; place-items: center; color: var(--accent); align-self: start; margin-top: 2px; }
.next .next-ico .ico { width: 20px; height: 20px; }
.next .eyebrow { display: block; font-size: 12px; color: var(--muted); }
.next h2 { margin: 0; font-size: 15px; }
.next p { margin: 2px 0 0; color: var(--ink-2); }
.next .row { justify-content: flex-end; }
.next.done-all { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.phases { display: grid; gap: 8px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.phase > header, .phase > summary { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); }
.phase > header { border-bottom: 1px solid var(--line); }
.phase > summary { cursor: pointer; list-style: none; }
.phase > summary:hover { background: var(--hover); }
.phase > summary::-webkit-details-marker { display: none; }
.phase[open] > summary { border-bottom: 1px solid var(--line); }
.phase > header h2, .phase > summary h2 { margin: 0; font-size: 15px; }
.phase > header p, .phase > summary p { margin: 0; font-size: 13px; color: var(--muted); }
.phase > header .pnum, .phase > summary .pnum { line-height: 1; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 12px;
  border: 1px solid var(--line-3); color: var(--muted); flex: none; }
.phase.done > header .pnum, .phase.done > summary .pnum { background: var(--ok); color: #fff; border-color: var(--ok); }
.phase.current > header .pnum, .phase.current > summary .pnum { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.phase > header .pcount, .phase > summary .pcount { margin-left: auto; background: transparent; color: var(--muted); font-weight: 400; }
.phase > summary .pchev { display: grid; color: var(--muted); transition: transform .12s var(--ease); }
.phase > summary .pchev .ico { width: 14px; height: 14px; }
.phase[open] > summary .pchev { transform: rotate(90deg); }
.phase:not([open]) > summary p { display: none; }
.phase > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.jsteps { list-style: none; margin: 0; padding: 0; }
.jstep { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 16px 8px 52px; min-height: 52px; }
.jstep + .jstep { border-top: 1px solid var(--line); }
.jstep:hover { background: var(--surface-2); }
.jstep .jdot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-3); color: var(--muted); }
.jstep .jdot .ico { width: 12px; height: 12px; }
.jstep.done .jdot { background: var(--ok); border-color: var(--ok); color: #fff; }
.jstep.current { background: var(--accent-bg); }
.jstep.current .jdot { border: 2px solid var(--accent); color: var(--accent); }
.jstep.blocked .jdot { border-style: dashed; }
.jstep strong { display: block; font-weight: 600; }
.jstep .jtext { color: var(--muted); font-size: 13px; }
.jstep .jmeta { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.jstep .jmeta .ico { width: 12px; height: 12px; }
.jstep .jmeta .bad, .jstep .jwhy { color: var(--warn); }
.jstep .row { justify-content: flex-end; }
.jstep .optional { font-size: 11px; font-weight: 400; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 0 4px; margin-left: 6px; vertical-align: 1px; }
.guide { display: grid; gap: 8px; }
.guide li { margin-bottom: 4px; }

/* message bars */
.need { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 0; padding: 8px 12px; border-radius: var(--r-m); font-size: 13px; color: var(--ink);
  background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.need > .ico { color: var(--warn); margin-top: 2px; flex: none; }
.need a { color: var(--link); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.need a .ico { color: inherit; width: 14px; height: 14px; margin: 0; }

/* ---------------------------------------------------------------- comparison */
.bar { display: block; width: 100%; height: 8px; border-radius: 2px; overflow: hidden; margin: 4px 0 12px; background: var(--line); }
.f-same { fill: var(--c-gleich); } .f-different { fill: var(--c-abweichend); } .f-missing { fill: var(--c-fehlt); }
.f-own { fill: var(--c-kundeneigen); } .f-default { fill: var(--c-Standard); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.kpi { position: relative; display: flex; flex-direction: column; padding: 10px 14px 10px 16px; border-radius: var(--r-m); text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c-Standard); }
.kpi.k-same::before { background: var(--c-gleich); } .kpi.k-different::before { background: var(--c-abweichend); }
.kpi.k-missing::before { background: var(--c-fehlt); } .kpi.k-own::before { background: var(--c-kundeneigen); }
.kpi:hover { background: var(--hover); } .kpi.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.kpi-n { font-size: 24px; font-weight: 600; line-height: 32px; font-family: var(--font-display); } .kpi-l { font-weight: 600; font-size: 13px; }
.kpi-h { font-size: 12px; color: var(--muted); }
.kpi-s { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.kpi.zero .kpi-n { color: var(--muted); font-weight: 400; }
.kpi.zero::before { background: var(--line) !important; }
.objs { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.obj { background: transparent; border: 0; border-radius: 0; padding: 10px 16px; }
.obj + .obj { border-top: 1px solid var(--line); }
.obj:hover { background: var(--surface-2); }
.obj-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.obj-name { font-weight: 600; overflow-wrap: anywhere; }
.obj-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.obj-note { display: flex; gap: 6px; align-items: center; font-size: 13px; margin-top: 4px; color: var(--warn); }
.obj-note .ico { width: 14px; height: 14px; }
.obj.low { opacity: .85; }
.obj-top .badge { margin-left: auto; }
details summary { cursor: pointer; color: var(--link); margin-top: 6px; list-style-position: inside; border-radius: var(--r-s); }
details > summary { min-height: 24px; display: list-item; padding: 2px 0; }
.diff, .conflict { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.diff-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.diff-h strong { font-size: 13px; }
.tech { font-size: 12px; color: var(--muted); background: none; padding: 0; overflow-wrap: anywhere; }
.diff-v { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.diff-v > span { background: var(--surface-2); border-radius: var(--r-m); padding: 8px 10px; overflow-wrap: anywhere; font-size: 13px; border: 1px solid var(--line); }
.diff-v small { display: block; font-weight: 600; margin-bottom: 2px; font-size: 12px; }
.diff-v .vl { display: block; }
.diff-v .vl + .vl { margin-top: 2px; }
.diff-v .vt { display: block; white-space: pre-wrap; line-height: 1.5; }
.diff-v del { background: var(--bad-bg); color: var(--ink); text-decoration: line-through; border-radius: 2px; }
.diff-v ins { background: var(--ok-bg); color: var(--ink); text-decoration: none; border-radius: 2px; }
h4.sub { font-size: 12px; margin: 14px 0 4px; color: var(--muted); font-weight: 600; }
.assign { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: 13px; }
.assign-t td, .assign-t th { font-size: 13px; }
.plain { padding-left: 18px; }
.errs li { margin-bottom: 6px; }
.tech-d summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.tech-d code { display: block; font-size: 12px; overflow-wrap: anywhere; margin-top: 4px; }
.filterbar { display: grid; gap: 8px; margin-bottom: 12px; }
.filterbar .search { margin-bottom: 0; }
button.chip { cursor: pointer; font: inherit; font-size: 13px; padding: 3px 10px; min-height: 28px; }
button.chip:hover { background: var(--hover); }
button.chip small { margin-left: 4px; color: inherit; opacity: .75; }
button.chip.on { background: var(--selected); border-color: var(--ink-2); color: var(--ink); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-m); overflow: hidden; }
.seg a { padding: 4px 12px; text-decoration: none; font-size: 13px; color: var(--ink-2); }
.seg a + a { border-left: 1px solid var(--line-2); }
.seg a:hover { background: var(--hover); }
.seg a.on { background: var(--selected); color: var(--ink); font-weight: 600; }

/* 1.5.2: object groups */
.objgroup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); margin-top: 8px; }
.objgroup > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 8px 16px; min-height: 40px; cursor: pointer; list-style: none; color: var(--ink); margin: 0; }
.objgroup > summary:hover { background: var(--hover); }
.objgroup > summary::-webkit-details-marker { display: none; }
.objgroup > summary .obj-name { font-weight: 600; }
.objgroup > summary .muted { font-size: 13px; color: var(--muted); font-weight: 400; }
.objgroup > summary .pchev { margin-left: auto; display: grid; color: var(--muted); transition: transform .12s var(--ease); }
.objgroup > summary .pchev .ico { width: 14px; height: 14px; }
.objgroup[open] > summary { border-bottom: 1px solid var(--line); }
.objgroup[open] > summary .pchev { transform: rotate(90deg); }
.objgroup > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.objgroup > .objs { border: 0; border-radius: 0; }

/* ---------------------------------------------------------------- ring model (the one signature element) */
/* DEV, UAT, PRD as stations on a line: filled = reached, ring = next, grey = later. */
.rings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(88px, 1fr)); min-width: 300px; }
.ring { position: relative; padding: 22px 12px 0 0; display: grid; gap: 0; }
.ring::before { content: ""; position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid var(--line-2); background: var(--surface); z-index: 1; }
.ring:not(:last-child)::after { content: ""; position: absolute; left: 14px; right: 0; top: 6px; height: 2px; background: var(--line-2); }
.ring b { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.ring small { font-size: 12px; line-height: 16px; }
.ring.is-done::before { background: var(--accent); border-color: var(--accent); }
.ring.is-done:not(:last-child)::after { background: var(--accent); }
.ring.is-done b { color: var(--ink); }
.ring.is-next::before { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.ring.is-next b { color: var(--ink); }
.cust-rings { display: grid; gap: 8px; justify-items: start; }
.cust-rings > small { color: var(--muted); }
.rings.mini { display: inline-flex; gap: 0; min-width: 0; grid-template-columns: none; }
.rings.mini .ring { padding: 0 0 0 14px; margin-right: 10px; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--muted); }
.rings.mini .ring::before { top: 2px; width: 10px; height: 10px; border-width: 1.5px; }
.rings.mini .ring::after { display: none; }
.rings.mini .ring.is-done, .rings.mini .ring.is-next { color: var(--ink); }
.rings.mini .ring.is-next::before { box-shadow: none; }

/* essentials (key facts under a blade title) */
.essentials { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 6px 0 0; font-size: 13px; }
.essentials div { display: grid; gap: 0; }
.essentials dt { color: var(--muted); font-size: 12px; }
.essentials dd { margin: 0; color: var(--ink); }

/* object rows: comparison (summary row, details below) */
.obj-hd, .obj-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) minmax(140px, 22%) 16px; gap: 4px 16px; align-items: center; }
.obj-hd { padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line-2); }
details.obj, article.obj { padding: 0; }
.obj-row { padding: 8px 16px; min-height: 48px; margin: 0; color: var(--ink); list-style: none; }
summary.obj-row { cursor: pointer; }
summary.obj-row::-webkit-details-marker { display: none; }
summary.obj-row:hover { background: var(--hover); }
summary.obj-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 0; }
.obj-row > .pill, .obj-row > .badge { justify-self: start; }
.obj-main { display: grid; gap: 0; min-width: 0; }
.obj-main .obj-meta { margin: 0; }
.obj-main .obj-note { margin-top: 2px; }
.obj-what { font-size: 13px; color: var(--ink-2); display: grid; }
.obj-what small { font-size: 12px; }
.obj-row .pchev { display: grid; color: var(--muted); transition: transform .12s var(--ease); }
.obj-row .pchev .ico { width: 14px; height: 14px; }
details.obj[open] > .obj-row .pchev { transform: rotate(90deg); }
details.obj[open] > .obj-row { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.obj-detail { padding: 4px 16px 12px 136px; }
.obj-detail .diff:first-child { border-top: 0; }
.obj.low .obj-name { font-weight: 400; }
.objgroup .obj-row { padding-left: 32px; }

/* object rows: plan decisions (name left, decision right) */
article.obj:has(> .obj-top) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 44%); column-gap: 20px; align-items: center; padding: 8px 16px; }
article.obj:has(> .obj-top) > * { grid-column: 1; }
article.obj:has(> .obj-top) > .dec { grid-column: 2; grid-row: 1 / span 4; margin: 0; grid-template-columns: minmax(150px, .8fr) minmax(150px, 1.2fr); }
.obj-top .obj-name { font-weight: 600; }

/* ---------------------------------------------------------------- settings and setup checklist */
.uri { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; margin: 6px 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-m); }
.uri span { flex: 1; min-width: 0; } .uri small { display: block; }
.wizard { list-style: none; margin: 0 -20px -16px; padding: 0; display: block; border-top: 1px solid var(--line); }
.wstep { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 12px 20px; }
.wstep + .wstep { border-top: 1px solid var(--line); }
.wstep .wnum { width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 12px; border: 1px solid var(--line-3); color: var(--muted); }
.wstep .wnum .ico { width: 12px; height: 12px; }
.wstep.done .wnum { background: var(--ok); color: #fff; border-color: var(--ok); }
.wstep.current { background: var(--accent-bg); }
.wstep.current .wnum { border: 2px solid var(--accent); color: var(--accent); }
.wstep.done h3 { font-weight: 400; color: var(--muted); }
.wstep h3 { margin: 1px 0 0; }
.wstep p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.wstep p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- dialog and form */
dialog { border: 0; border-radius: var(--r-xl); padding: 0; width: min(560px, calc(100vw - 24px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-3); }
dialog::backdrop { background: rgba(0, 0, 0, .4); }
dialog[open] { animation: pop .2s var(--ease); }
.form { display: grid; gap: 14px; padding: 20px 24px; }
.form.card { padding: 20px 24px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.form label small { font-weight: 400; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-bottom-color: var(--line-3); border-radius: var(--r-m);
  padding: 5px 10px; min-height: 32px; }
textarea { width: 100%; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
input::placeholder, textarea::placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
input:user-invalid { border-bottom-color: var(--bad); }
.form label input, .form label select, .form label textarea { font-weight: 400; }
.form input:not([type=checkbox]):not([type=radio]), .form select, .form textarea { width: 100%; max-width: 100%; min-width: 0; }
.form > *, .form .grid > * { min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; } legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { position: relative; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px 3px 8px; border-radius: var(--r-m); border: 1px solid var(--line-2); cursor: pointer; font-size: 13px; font-weight: 400; }
.toggle span::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--line-3); border-radius: var(--r-s); flex: none; background: var(--surface); }
.toggle span:hover { background: var(--hover); }
.toggle input:checked + span { border-color: var(--accent); background: var(--accent-bg); }
.toggle input:checked + span::before { content: "✓"; display: grid; place-items: center; font-size: 11px; font-weight: 700; line-height: 1; color: var(--accent-ink); background: var(--accent); border-color: var(--accent); margin-right: 0; }
.toggle input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.dlg-head, .dlg-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dlg-head h2 { font-size: 20px; line-height: 28px; margin: 0; }
.dlg-foot { justify-content: flex-end; padding-top: 4px; }
.check { display: inline-flex; gap: 8px; align-items: center; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 24px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.confirm { display: grid; gap: 10px; max-width: 560px; }
.confirm input[type=text] { font-family: var(--mono); }
.suffix-field { display: flex; align-items: center; gap: 6px; }
.suffix-field input { flex: 1; min-width: 0; }
.suffix-field span { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-height: 0; margin: 2px; accent-color: var(--accent); }

/* checklist toggle (project path) */
button.check { min-height: 28px; padding: 3px 10px 3px 8px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: 13px; cursor: pointer; }
.check .box { width: 14px; height: 14px; border: 1px solid var(--line-3); border-radius: var(--r-s); display: grid; place-items: center; flex: none; }
.check .box .ico { width: 11px; height: 11px; }
.check.on { color: var(--ok); }
.check.on .box { background: var(--ok); border-color: var(--ok); color: #fff; }
button.check:hover { background: var(--hover); }
label.check { align-items: flex-start; font-weight: 400 !important; }
label.check input { margin-top: 2px; }
.check.risk { border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); background: var(--warn-bg); border-radius: var(--r-m); padding: 10px 12px; align-items: flex-start; }

/* ---------------------------------------------------------------- command palette */
#palette { width: min(640px, calc(100vw - 24px)); margin-top: 10vh; }
#palette .pal-in { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
#palette .pal-in input { flex: 1; border: 0; min-height: 0; padding: 4px 0; font-size: 16px; background: transparent; box-shadow: none; }
#palette .pal-in input:focus { border: 0; padding-bottom: 4px; }
#palette ul { list-style: none; margin: 0; padding: 4px; max-height: 50vh; overflow-y: auto; }
#palette li a { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px; min-height: 36px; border-radius: var(--r-m); text-decoration: none; color: var(--ink); }
#palette li a .ico { color: var(--muted); }
#palette li a small { margin-left: auto; }
#palette li a:hover { background: var(--hover); }
#palette li a.on { background: var(--selected); }
#palette li a.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--accent); }
#palette .pal-foot { display: flex; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
#palette kbd { font-size: 11px; padding: 0 5px; border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--surface-2); }

/* ---------------------------------------------------------------- feedback: toasts, busy */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 8px; width: min(400px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); animation: rise .2s var(--ease); font-size: 14px; }
.toast.err { background: var(--surface); } .toast span { flex: 1; } .toast > .ico { color: var(--ok); width: 18px; height: 18px; } .toast.err > .ico { color: var(--bad); }
.toast .icon-btn { width: 28px; height: 28px; }
.toast.linked .toast-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.toast.linked .toast-link small { display: inline-flex; align-items: center; gap: 4px; color: var(--link); }
.toast.linked .toast-link:hover small, .toast.linked .toast-link:focus-visible small { text-decoration: underline; }
#toasts.dodge { visibility: hidden; }
#busy { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, .3); }
#busy[hidden], .busy-stop[hidden] { display: none; }
.busy-stop { justify-self: start; }
.busy-box { display: grid; gap: 10px; width: min(440px, calc(100vw - 32px)); padding: 20px 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-3); }
.busy-top { display: flex; align-items: center; gap: 12px; }
.busy-text { font-weight: 600; }
.busy-detail { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.busy-box progress { height: 2px; }
.busy-box progress:not([value]) { background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%); background-size: 50% 100%; background-repeat: no-repeat; animation: slide 1.6s linear infinite; }
.busy-box progress:not([value])::-webkit-progress-bar { background: transparent; }
.busy-box progress:not([value])::-moz-progress-bar { background: transparent; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
@keyframes slide { from { background-position: -50% 0; } to { background-position: 150% 0; } }
[hidden] { display: none !important; }
body.loading::before { content: ""; position: fixed; inset: var(--top-h) 0 auto 0; height: 2px; z-index: 100;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: loadbar 1s linear infinite; }
body.loading #main { opacity: .6; transition: opacity .15s ease .1s; }
@keyframes loadbar { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* ---------------------------------------------------------------- data grids, stats, decisions */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 8px 12px; }
.stat b { display: block; font-size: 20px; line-height: 28px; font-weight: 600; font-family: var(--font-display); }
.stat span { color: var(--muted); font-size: 12px; }
.tblwrap { overflow-x: auto; margin: 6px 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
table.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
table.tbl th { text-align: left; font-weight: 600; color: var(--ink-2); background: var(--surface); border-bottom: 1px solid var(--line-2); padding: 8px 12px; white-space: nowrap; font-size: 12px; }
table.tbl td { border-bottom: 1px solid var(--line); padding: 8px 12px; vertical-align: top; overflow-wrap: anywhere; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover td, table.tbl tbody tr:hover th { background: var(--hover); }
table.tbl td.num { text-align: right; white-space: nowrap; }
.dec { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1.3fr); gap: 8px; margin-top: 8px; }
.dec select, .dec input { width: 100%; }
.obj .dec select { max-width: 280px; }
.pill.d-create, .pill.d-update, .pill.d-rename { background: var(--info-bg); color: var(--info); }
.pill.d-open { background: var(--bad-bg); color: var(--bad); }
.pill.d-deviation { background: var(--warn-bg); color: var(--warn); }
.pill.d-skip, .pill.d-own, .pill.d-leave { background: var(--neutral-bg); color: var(--neutral); }
.pill.d-same, .pill.s-ok { background: var(--ok-bg); color: var(--ok); }
.pill.d-delete, .pill.s-error { background: var(--bad-bg); color: var(--bad); }
.pill.s-skipped, .pill.s-open, .pill.s-started { background: var(--warn-bg); color: var(--warn); }
.statuslist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.statuslist li { display: flex; gap: 8px; align-items: center; }
.statuslist .ico { width: 14px; height: 14px; }
.statuslist .ok .ico { color: var(--ok); } .statuslist .warn .ico { color: var(--warn); }

/* placeholders */
.phg { border: 1px solid var(--line); border-radius: var(--r-m); padding: 6px 12px; margin-top: 8px; background: var(--surface); }
.phg > summary { cursor: pointer; padding: 4px 0; color: var(--ink); margin: 0; }
.phg > summary small { margin-left: 6px; }
.phg summary .tag { margin-left: 8px; }
.ph-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px 20px; margin: 8px 0 6px; }
.ph, .ph-l { display: grid; gap: 4px; }
.ph-name { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ph-obj summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.ph-obj code { font-size: 11px; }
.ph-obj ul { font-size: 12px; margin: 4px 0 0; }

/* sticky save bar (Fluent: commands at the bottom of a form) */
.savebar { position: sticky; bottom: 0; z-index: 12; display: flex; align-items: center; gap: 8px; justify-content: flex-start; margin: 0 -24px -20px; padding: 12px 24px;
  background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-l) var(--r-l); }
.savebar .dirty-note { order: 9; margin-left: auto; color: var(--warn); font-size: 13px; visibility: hidden; }
form.is-dirty .savebar .dirty-note { visibility: visible; }

/* ---------------------------------------------------------------- sign-in, account, errors */
.account { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.account:empty { display: none; }
.acct { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; color: var(--chrome-ink); font-size: 13px; min-width: 0; }
.acct .ico { width: 16px; height: 16px; flex: none; }
.acct .lbl { max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.gated #nav, body.gated #tabbar, body.gated .top-actions > :not(#themebtn) { display: none; }
body.gated .layout { grid-template-columns: minmax(0, 1fr); }
body.gated .layout::before { display: none; }
body.gated main { grid-column: 1; }
.gate { display: grid; place-items: center; min-height: calc(100vh - var(--top-h) - 48px); padding: 24px 16px; }
.gate-card { width: min(440px, 100%); background: var(--surface); border-radius: var(--r-xl); padding: 40px 44px; box-shadow: var(--shadow-2); }
.gate-card h1 { margin: 16px 0 8px; }
.gate-card p { margin: 0 0 16px; }
.gate-card .btn { width: 100%; }
.gate-logo { display: block; border-radius: var(--r-m); width: 40px; height: 40px; }
.small { font-size: 13px; }
.errgroup .tech-d { margin-top: 6px; }
.errgroup .kv.small dt { font-size: .85em; }
.errgroup code.wrap { white-space: pre-wrap; word-break: break-all; }
.muted-card { opacity: .7; }
.errgroup + .card, .errgroup + section { margin-top: 12px; } .errgroup { margin-bottom: 12px; }
.tenant-acct { display: flex; align-items: center; gap: 6px; margin: -4px 0 8px; font-size: 13px; }
.tenant-acct .ico { width: 14px; height: 14px; flex: none; }
.tenant-acct strong { font-weight: 600; overflow-wrap: anywhere; }
.connected-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.connected-line > .ico { width: 16px; height: 16px; color: var(--ok); }
.connected-line > span { color: var(--ink); }
.grid.actions.two { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
#main h1[tabindex="-1"]:focus, #main:focus { outline: none; }
.card p, .card li, .obj-note { overflow-wrap: anywhere; }

/* 1.5.4: numbered steps (write permissions), admin consent table */
.tbl.perm th[scope="row"] { white-space: nowrap; font-weight: 600; }
.tbl.perm td { vertical-align: middle; }
.tbl.perm tbody th { background: transparent; color: var(--ink); font-size: 13px; vertical-align: middle; border-bottom: 1px solid var(--line); }
.tbl.perm tbody tr:last-child th { border-bottom: 0; }
.perm-state { display: flex; align-items: center; gap: 8px; min-width: 190px; overflow-wrap: anywhere; }
.perm-state > .ico { width: 16px; height: 16px; flex: none; color: var(--warn); }
.tbl.perm tr.ok .perm-state > .ico { color: var(--ok); }
.perm-state span { display: grid; }
.perm-state small { color: var(--muted); font-size: 12px; }
.tbl.perm tr.ok .perm-state strong { color: var(--ok); }
.perm-act { white-space: nowrap; text-align: right; }
.perm-act .icon-btn { vertical-align: middle; margin-left: 4px; }
.signline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.signline .muted { flex: 1 1 320px; font-size: 13px; }

/* file pickers: the input stays focusable, the button shows its focus (WCAG 2.1.1, 2.4.7) */
.btn:has(> input.file) { position: relative; }
input.file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; min-height: 0; padding: 0; border: 0; }
input.file::-webkit-file-upload-button { cursor: pointer; }
.btn:has(> input.file:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .top-actions > .top-btn:first-child { min-width: 0; }
  .cust-hd, .custlist .cust { grid-template-columns: minmax(200px, 1.2fr) minmax(200px, 1fr); }
  .cust-hd > :nth-child(3) { display: none; }
  .custlist .cust-foot { grid-column: 2; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout::before { display: none; }
  main { grid-column: 1; }
  #nav { display: none; }
  #tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface);
    border-top: 1px solid var(--line); padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); justify-content: space-around; }
  #tabbar a { flex-direction: column; gap: 2px; padding: 4px 10px; font-size: 12px; min-width: 76px; min-height: 48px; justify-content: center; }
  #tabbar a .ico { width: 20px; height: 20px; color: var(--muted); }
  #tabbar a.on { color: var(--accent); font-weight: 600; }
  #tabbar a.on .ico { color: var(--accent); }
  #tabbar .nav-h, #tabbar .sub, #tabbar .nav-foot { display: none; }
  #toasts { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .top-btn .lbl, .top-btn kbd { display: none; }
  .top-btn, .top-actions > .top-btn:first-child { width: 40px; height: 40px; padding: 0; justify-content: center; min-width: 0; margin: 0; background: transparent; border: 0; }
  .next { grid-template-columns: auto minmax(0, 1fr); } .next .row { grid-column: 2; justify-content: flex-start; }
  .jstep { padding-left: 16px; }
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  html:has(.savebar) { scroll-padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) {
  .obj-hd { display: none; }
  .obj-row { grid-template-columns: minmax(0, 1fr) 16px; }
  .obj-row > .pill { grid-column: 1; }
  .obj-row > .obj-main, .obj-row > .obj-what { grid-column: 1; }
  .obj-row > .pchev { grid-column: 2; grid-row: 1 / span 3; }
  .obj-detail { padding-left: 16px; }
  article.obj:has(> .obj-top) { grid-template-columns: minmax(0, 1fr); }
  article.obj:has(> .obj-top) > .dec { grid-column: 1; grid-row: auto; margin-top: 8px; grid-template-columns: 1fr; }
  .rings { min-width: 0; width: 100%; }
  .acct .lbl { display: none; }
  .cust-hd { display: none; }
  .custlist .cust { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 12px; }
  .custlist .cust-foot { grid-column: 1; }
}
@media (max-width: 560px) {
  main { padding: 12px 14px 104px; }
  .topbar { gap: 8px; padding-left: 12px; }
  .brand-name, .brand-sep { display: none; }
  .status { font-size: 0; padding: 0 12px; gap: 0; }
  .brand-logo { height: 22px; }
  .card { padding: 14px; }
  .wizard { margin: 0 -14px -14px; } .wstep { padding: 12px 14px; }
  .grid.cards { grid-template-columns: 1fr; }
  .cust-head { align-items: flex-start; gap: 12px; }
  .avatar.big { width: 40px; height: 40px; font-size: 14px; }
  .kpi-h { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .diff-v { grid-template-columns: 1fr; }
  .timeline li { flex-wrap: wrap; }
  .timeline li .btn { width: 100%; }
  .section-head.page .btn, .home-head .btn { flex: 1 1 auto; }
  .jstep { grid-template-columns: 22px minmax(0, 1fr); } .jstep .row { grid-column: 2; justify-content: flex-start; }
  .dec { grid-template-columns: 1fr; }
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92vh; }
  #palette { margin-top: auto; }
  .phasebar { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .subtabs { flex-wrap: nowrap; overflow-x: auto; }
  .subtabs a { flex: none; }
  .savebar { margin: 0 -14px -14px; padding: 10px 14px; bottom: 64px; }
  .gate-card { padding: 28px 24px; }
}
@media (pointer: coarse) { .btn, .top-btn, .toggle span, #nav a, button.check { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body.loading::before { background: var(--accent); opacity: .6; }
}
@media (forced-colors: active) {
  .badge, .pill, .tag, .btn, .toggle span, .phasebar a, .subtabs a, .card, .kpi, .next { border: 1px solid CanvasText; }
  .phasebar a.on, .subtabs a.on, #nav a.on, .toggle input:checked + span { outline: 2px solid Highlight; }
  .ico { forced-color-adjust: auto; }
}
@media print {
  .topbar, #nav, #tabbar, #toasts, .phasebar, .subtabs, .btn, .layout::before { display: none !important; }
  .layout { display: block; } main { padding: 0; max-width: none; }
}
.form label { align-content: start; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; }
.form label.check > span { display: block; font-size: 13px; }

/* ring model with policy counts (UAT und PRD) */
.rings.big { max-width: 720px; margin-bottom: 8px; }
.rings.big .ring { padding-top: 26px; }
.rings.big .ring::before { width: 18px; height: 18px; }
.rings.big .ring:not(:last-child)::after { left: 18px; top: 8px; }
.ring-n { font-family: var(--font-display); font-size: 32px; line-height: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ring:not(.is-done):not(.is-next) .ring-n { color: var(--muted); }

/* ---------------------------------------------------------------- v1.5.27 plan assistant
   Built after the create wizard of the Intune admin center: steps on top, one step visible,
   questions as cards with the safe choice preselected, "Zurück" and "Weiter" bottom left. */
.wiz { counter-reset: wdone; padding-bottom: 8px; }
.wiz .lead { margin: 4px 0 0; color: var(--ink-2); max-width: 72ch; }
.wsteps { display: flex; gap: 0 24px; margin: 4px 0 20px; padding: 0; list-style: none; border-bottom: 1px solid var(--line); overflow-x: auto; }
.wsteps a { display: flex; align-items: center; gap: 8px; padding: 10px 0; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.wsteps a:hover { color: var(--ink); }
.wsteps .n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 12px; }
.wsteps .n .ico { width: 12px; height: 12px; }
.wsteps a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.wsteps a.on .n { border-color: var(--accent); color: var(--accent); }
.wsteps a.done .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wiz-panel { display: grid; gap: 12px; }
.wiz-intro { margin: 0; color: var(--ink-2); max-width: 75ch; }
.wiz-panel .card { margin: 0; }
.wiz-panel .card h2 { font-size: 15px; margin: 0; }
.wiz-panel .card p { margin: 6px 0 0; max-width: 80ch; }
.wiz .tag { background: var(--info-bg); color: var(--info); font-weight: 600; padding: 0 6px; border-radius: var(--r-m); margin-left: 6px; vertical-align: 1px; }

/* question card */
.wq { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.wq-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--warn-bg); color: var(--warn); }
.wq-ic .ico { width: 13px; height: 13px; }
.wq.ok .wq-ic { background: var(--accent-bg); color: var(--accent); }
.wq.info .wq-ic { background: var(--info-bg); color: var(--info); }
.wq-b { min-width: 0; display: grid; gap: 6px; }
.wq-b p { margin: 0; }
.more-list > summary { cursor: pointer; color: var(--link); font-size: 13px; width: fit-content; }
.more-list[open] > summary { margin-bottom: 6px; }

/* choice: radio cards with plain words */
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.wiz .choice label { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: var(--r-m);
  cursor: pointer; background: var(--surface); font-weight: 400; min-width: 0; }
.wiz .choice label:hover { background: var(--hover); }
.wiz .choice input { margin: 3px 0 0; accent-color: var(--accent); }
.wiz .choice label:has(input:checked) { border-color: var(--accent); background: var(--accent-bg); }
.wiz .choice label:has(input[value=deviation]:checked), .wiz .choice label:has(input[value="0"]:checked),
.wiz .choice label:has(input[value=skip]:checked) { border-color: var(--warn); background: var(--warn-bg); }
.wiz .choice b { display: block; font-weight: 600; }
.wiz .choice small { display: block; color: var(--muted); font-size: 12px; }

/* placeholders and consent */
.wph { display: grid; gap: 8px; margin-top: 4px; }
.wiz .wph-row { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 4px 16px; align-items: start; font-weight: 400; }
.wph-l { display: grid; gap: 2px; font-size: 13px; font-weight: 600; }
.wph-l small { font-weight: 400; color: var(--muted); font-size: 12px; }
.wconsent { display: grid; gap: 10px; }
.wc-row { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.wc-row small { color: var(--muted); }
.wiz .wc-reason { display: none; gap: 4px; font-size: 13px; font-weight: 400; }
.wc-row:has(input[value=create]:checked) .wc-reason { display: grid; }

/* deviations */
.wgroup { display: grid; gap: 8px; }
.wg-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
fieldset.wd { display: grid; gap: 8px; min-width: 0; padding: 12px 0 2px; border: 0; border-top: 1px solid var(--line); margin: 0; }
.wd:has(input[type=radio]:checked) { counter-increment: wdone; }
/* preselected text bundle: one tick per object (an inline counter-increment is blocked by style-src 'self') */
.wtick { counter-increment: wdone; position: absolute; width: 0; height: 0; overflow: hidden; }
.wd-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.wd-h b { font-weight: 600; overflow-wrap: anywhere; }
.wd-h small { color: var(--muted); font-size: 12px; }
.wd-note { display: flex; gap: 6px; align-items: center; color: var(--warn); font-size: 13px; margin: 0; }
.wd-note .ico { width: 14px; height: 14px; }
.wd-t { table-layout: fixed; width: 100%; font-size: 13px; }
.wd-t th:first-child { width: 34%; }
.wd-t td { vertical-align: top; overflow-wrap: anywhere; }
.wd-t .vl { display: block; }
.wd-t .none, .wiz .none { color: var(--muted); font-style: italic; }
.wd-dec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; }
.wmore { position: relative; }
.wmore > summary { list-style: none; cursor: pointer; padding: 7px 10px; color: var(--link); font-size: 13px; border-radius: var(--r-m); }
.wmore > summary::-webkit-details-marker { display: none; }
.wmore > summary:hover { background: var(--hover); }
.wmore > summary > span { display: none; }
.wmore > summary > .wm-def { display: inline; }
.wmore:has(input[value=own]:checked) > summary, .wmore:has(input[value=skip]:checked) > summary {
  border: 1px solid var(--warn); background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.wmore:has(input[value=own]:checked) > summary > .wm-def, .wmore:has(input[value=skip]:checked) > summary > .wm-def { display: none; }
.wmore:has(input[value=own]:checked) > summary > .wm-own, .wmore:has(input[value=skip]:checked) > summary > .wm-skip { display: inline; }
.wmenu { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; min-width: 260px; display: grid; padding: 4px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: var(--shadow-2); }
.wiz .wmenu label { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-m); cursor: pointer; font-weight: 400; }
.wmenu label:hover { background: var(--hover); }
.wmenu input { margin: 3px 0 0; accent-color: var(--warn); }
.wmenu b { display: block; font-weight: 600; } .wmenu small { display: block; color: var(--muted); font-size: 12px; }
.wiz .wd-reason { display: none; gap: 6px; padding: 10px 12px; background: var(--warn-bg); border-radius: var(--r-m); font-size: 13px; font-weight: 600; }
.wd:has(input[value=deviation]:checked, input[value=own]:checked) .wd-reason { display: grid; }
.wd-reason input { font-weight: 400; }
.wd-reason input:placeholder-shown { border-color: var(--warn); }
.wd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-chips .chip { border-radius: 999px; font-weight: 400; }

/* summary */
.wsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.wsum > div { border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--r-m); padding: 8px 12px; background: var(--surface-2); }
.wsum b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wsum span { font-size: 13px; color: var(--ink-2); }
.wsum .w { border-left-color: var(--accent); } .wsum .k { border-left-color: var(--warn); } .wsum .d { border-left-color: var(--bad); }
.wiz .kv { margin: 8px 0 0; font-size: 13px; }
.wtech > summary { cursor: pointer; }
.wtech[open] > summary { margin-bottom: 8px; }
.wack h2 { margin: 0 0 8px; }
.wack-plain:empty { display: none; }
.wack-plain .check, .wack .check { font-size: 14px; }
.wiz:has(#approve input[required]:not(:checked)) .wiz-start { opacity: .45; pointer-events: none; }

/* footer like Intune: actions bottom left, sticky while scrolling */
.wiz-foot { position: sticky; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 20px -4px 0; padding: 12px 4px;
  background: var(--bg); border-top: 1px solid var(--line); }
.wiz-foot span.btn[aria-disabled] { opacity: .45; cursor: default; }
.wiz-hint { font-size: 13px; color: var(--muted); }
.wprog-n::before { content: counter(wdone); font-weight: 600; color: var(--ink); }

@media (max-width: 720px) {
  .wiz .wph-row { grid-template-columns: 1fr; }
  .wiz .choice label { flex: 1 1 100%; }
  .wd-t th:first-child { width: auto; }
  .wmore { flex-basis: 100%; }
  .wmenu { position: static; min-width: 0; box-shadow: none; margin-top: 4px; }
}
.wiz .btn.danger { color: light-dark(#ffffff, #2b0b0e); }
button.chip:disabled { opacity: .45; cursor: default; }
.wph-l .badge { justify-self: start; }
.wexpert > summary { cursor: pointer; }
.wexpert[open] > summary { margin-bottom: 12px; }
.wiz .card > .row { margin-top: 10px; }
@media (max-width: 900px) {
  /* the assistant footer sits on top of the tab bar */
  .wiz-foot { bottom: calc(57px + env(safe-area-inset-bottom)); margin-inline: 0; padding-inline: 0; }
  .wiz-foot .btn { flex: 1 1 auto; }
  .wiz-hint { flex-basis: 100%; }
}
