/* Motiw Mosaic design system.
   Tokens first; components use only tokens. Light and dark come from light-dark() and follow the system unless the
   user picks a theme (data-theme on <html>). The look comes from the product film: bricks, sharp edges, no pills or
   circles, and the customer's own data as the loudest thing on the page.
   No inline styles anywhere: the content security policy is style-src 'self'. Fonts are served from wwwroot/fonts for
   the same reason (font-src 'self'); they are under the SIL Open Font License. */

@font-face { font-family: "Rajdhani"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/rajdhani-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Rajdhani"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/rajdhani-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --font-sans: "IBM Plex Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Rajdhani", "Arial Narrow", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Brand. Mint is too light for text or edges on a light surface (1.8:1); use --primary-text there. */
  --pine: #2d4f47;
  --mint: #99c0b6;
  --paper: #f5f5f5;
  --ink: #3a3a3a;
  --peach: #e8a892;
  --blue: #768aa7;
  --primary: light-dark(#2d4f47, #99c0b6);
  --primary-hover: light-dark(#23403a, #b5d3ca);
  --primary-soft: light-dark(#e3ece9, rgb(153 192 182 / 0.16));
  --primary-text: light-dark(#2d4f47, #b5d3ca);
  --on-primary: light-dark(#f5f5f5, #1f3730);
  --on-danger: light-dark(#ffffff, #2a0f0a);
  --on-success: light-dark(#ffffff, #0f2a1c);

  /* The edge of a field or switch must stand out from its background (WCAG 1.4.11: 3:1). */
  --field-border: light-dark(#6f8a82, #7fa096);

  /* Surfaces and text */
  --bg: light-dark(#f5f5f5, #2d4f47);
  --surface: light-dark(#fbfbfa, #264339);
  --surface-2: light-dark(#f0f2f1, #2a4a41);
  --surface-hover: light-dark(#e8ecea, #335a50);
  --border: light-dark(#c9d3cf, #4c6e64);
  --border-strong: light-dark(#a7b7b1, #6a8c82);
  --text: light-dark(#2d4f47, #f5f5f5);
  --text-2: light-dark(#3d5c54, #dce7e3);
  --muted: light-dark(#4a655e, #cbdad5);
  --subtle: light-dark(#6f8a82, #9db8af);

  /* Status */
  --success: light-dark(#2e6b4f, #a6d8bc);
  --success-soft: light-dark(#e6f1eb, rgb(166 216 188 / 0.14));
  --success-border: light-dark(#b4d4c3, rgb(166 216 188 / 0.34));
  --warning: light-dark(#8a5a12, #ebcb94);
  --warning-soft: light-dark(#f7efdf, rgb(235 203 148 / 0.14));
  --warning-border: light-dark(#e1cda4, rgb(235 203 148 / 0.34));
  --danger: light-dark(#a23b2a, #f0a898);
  --danger-soft: light-dark(#f8e8e4, rgb(240 168 152 / 0.14));
  --danger-border: light-dark(#e6bcb2, rgb(240 168 152 / 0.34));
  --info: light-dark(#3f5a80, #b4c4dc);
  --info-soft: light-dark(#e8edf4, rgb(180 196 220 / 0.14));
  --info-border: light-dark(#bfcbdc, rgb(180 196 220 / 0.34));

  /* Table origin in Overblik. Peach is the customer's own, so what is theirs lights up. */
  --origin-own: light-dark(#e8a892, #e8a892);
  --origin-own-text: light-dark(#8a4a33, #f2c6b5);
  --origin-partner: light-dark(#99c0b6, #99c0b6);
  --origin-microsoft: light-dark(#768aa7, #8fa3bf);
  --origin-standard: light-dark(#c9d6d1, #5f8277);
  --origin-custom: light-dark(#b9974a, #d9be7c);
  /* Text on a flat tile of each origin */
  --origin-own-ink: light-dark(#3b1f14, #3b1f14);
  --origin-partner-ink: light-dark(#1f3730, #1f3730);
  --origin-microsoft-ink: light-dark(#0b1626, #0b1626);
  --origin-standard-ink: light-dark(#1f3730, #000000);
  --origin-custom-ink: light-dark(#3b1f14, #1f3730);
  --texture-standard: light-dark(#2d4f47, #bcd3cc);
  --tone-pine: light-dark(#2d4f47, #4a7569);
  --tone-ground: light-dark(#e3e9e6, #38594f);

  /* The top line of the app */
  --topbar: light-dark(#2d4f47, #1c332d);
  --topbar-text: light-dark(#f5f5f5, #f5f5f5);
  --topbar-muted: light-dark(#cbdad5, #cbdad5);
  --topbar-edge: light-dark(#4c6e64, #4c6e64);
  --topbar-current: light-dark(#99c0b6, #99c0b6);

  --r-sm: 0; --r-md: 0; --r-lg: 0; --r-xl: 0; --r-full: 0;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-lg: 0 18px 36px -18px light-dark(rgb(31 55 48 / 0.35), rgb(0 0 0 / 0.6));
  --ring: 0 0 0 3px light-dark(rgb(45 79 71 / 0.24), rgb(153 192 182 / 0.4));
}
: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-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; color: var(--text); }
h1 { font: 700 38px/1.05 var(--font-display); text-wrap: balance; }
h2 { font: 700 22px/1.15 var(--font-display); }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--border); margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
code, pre { font-family: var(--font-mono); font-size: 12px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.topbar :focus-visible, .hero :focus-visible, .cta-band :focus-visible { outline-color: var(--peach); }
.topbar .menu-panel :focus-visible { outline-color: var(--primary); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-lg); }
.skip-link:focus { top: 12px; }

.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon-sm { width: 13px; height: 13px; }
.icon-lg { width: 20px; height: 20px; }
.logo { width: auto; height: 24px; flex: none; }
.logo-sm { width: auto; height: 18px; }
.logo-1 { fill: var(--origin-standard); } .logo-2 { fill: var(--mint); } .logo-3 { fill: var(--origin-microsoft); } .logo-4 { fill: var(--peach); }

/* Utilities (few, on purpose) */
.text-success { color: var(--success); } .text-warning { color: var(--warning); }
.border-top { border-top: 1px solid var(--border); } .pt-4 { padding-top: 16px; }
.muted { color: var(--muted); } .subtle { color: var(--subtle); } .strong { font-weight: 600; color: var(--text); }
.small { font-size: 13px; } .xs { font-size: 12px; }
.mono { font-family: var(--font-mono); font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.row { display: flex; align-items: center; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .start { align-items: flex-start; } .end { align-items: flex-end; }
.grow { flex: 1; min-width: 0; } .ml-auto { margin-left: auto; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list { list-style: none; padding: 4px 0; margin: 0; }
.list > li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 20px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.list > li:first-child { border-top: 0; }
.inline { display: inline; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid transparent; font: inherit; font-weight: 500; font-size: 14px; line-height: 1; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--surface-hover); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn-danger { background: var(--danger); color: var(--on-danger); }
.btn-danger:hover { filter: brightness(.95); }
.btn-danger-outline { background: var(--surface); color: var(--danger); border-color: var(--danger-border); }
.btn-danger-outline:hover { background: var(--danger-soft); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 12px; gap: 4px; border-radius: var(--r-sm); }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; }
.btn-icon { width: 36px; padding: 0; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-text); border-color: transparent; }
/* "Sign in with Microsoft", following Microsoft's branding guidance (dark variant on light, light variant on dark) */
.btn-microsoft { background: light-dark(#2f2f2f, #ffffff); color: light-dark(#ffffff, #5e5e5e); border-color: light-dark(#2f2f2f, #8c8c8c); font-weight: 600; }
.btn-microsoft:hover { background: light-dark(#1b1b1b, #f3f3f3); }
.ms-logo { width: 18px; height: 18px; flex: none; }
form.inline { display: inline-flex; }

/* ---------- Badges, dots, origin ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-primary { background: var(--primary-soft); border-color: transparent; color: var(--primary-text); }
.badge-success { background: var(--success-soft); border-color: var(--success-border); color: var(--success); }
.badge-warning { background: var(--warning-soft); border-color: var(--warning-border); color: var(--warning); }
.badge-danger { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger); }
.badge-info { background: var(--info-soft); border-color: var(--info-border); color: var(--info); }
.dot { width: 8px; height: 8px; background: currentColor; flex: none; }
.env-dot { width: 8px; height: 8px; flex: none; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.env-dot.is-sandbox { background: var(--peach); box-shadow: 0 0 0 3px var(--warning-soft); }
.env-dot.is-warning { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }
.env-dot.is-danger { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.status-dot { width: 7px; height: 7px; flex: none; background: var(--success); }
.status-dot.is-warning { background: var(--warning); }
.origin { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.origin::before { content: ""; width: 8px; height: 8px; background: var(--c); flex: none; }
.origin.is-bare::before { margin: 0; }
.o-own { --c: var(--origin-own); } .o-partner { --c: var(--origin-partner); } .o-microsoft { --c: var(--origin-microsoft); }
.o-standard { --c: var(--origin-standard); } .o-custom { --c: var(--origin-custom); }

/* ---------- Cards, callouts, stats ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.card-body { padding: 20px; }
.card-body.border-top { border-top: 1px solid var(--border); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-header .sub, .card-sub { color: var(--muted); font-size: 13px; }
.card-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card + .card, .section + .section { margin-top: 16px; }
.grid > .card + .card, .split > .card + .card, .row > .card + .card { margin-top: 0; }
.callout { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); color: var(--text-2); }
.callout > .icon { margin-top: 2px; color: var(--muted); }
.callout-info { background: var(--info-soft); border-color: var(--info-border); } .callout-info > .icon { color: var(--info); }
.callout-success { background: var(--success-soft); border-color: var(--success-border); } .callout-success > .icon { color: var(--success); }
.callout-warning { background: var(--warning-soft); border-color: var(--warning-border); } .callout-warning > .icon { color: var(--warning); }
.callout-danger { background: var(--danger-soft); border-color: var(--danger-border); } .callout-danger > .icon { color: var(--danger); }
.callout .title { font-weight: 600; color: var(--text); }
.stat { padding: 16px 18px; }
a.stat { display: block; color: inherit; }
a.stat:hover { border-color: var(--primary); text-decoration: none; }
.stat-label { display: flex; align-items: center; gap: 6px; font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat-value { margin-top: 6px; font: 700 32px/1.05 var(--font-display); font-variant-numeric: tabular-nums; }
.stat-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.stat-value.small-value { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; }
progress.progress { appearance: none; width: 160px; height: 6px; border: 0; border-radius: var(--r-full); overflow: hidden; background: var(--surface-hover); }
progress.progress::-webkit-progress-bar { background: var(--surface-hover); }
progress.progress::-webkit-progress-value { background: var(--primary); border-radius: var(--r-full); }
progress.progress::-moz-progress-bar { background: var(--primary); }
svg.stacked { display: block; width: 100%; height: 10px; border-radius: var(--r-full); overflow: hidden; }
svg.stacked rect { fill: var(--c); }
svg.bar { display: block; width: 88px; height: 4px; overflow: hidden; flex: none; }
svg.bar .bar-track { fill: var(--surface-hover); }
svg.bar .bar-fill { fill: var(--c); }
.avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 500; font-family: var(--font-mono); color: var(--on-primary); background: var(--primary); }
.avatar-sq { background: var(--surface-hover); color: var(--text); }
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px 24px; margin: 0; }
.meta-grid dt { font-size: 12px; color: var(--muted); }
.meta-grid dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }

/* Bricks */
.brick { display: flex; flex-direction: column; gap: 12px; padding: 20px; height: 100%; }
.brick-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.brick.is-muted .brick-mark { filter: grayscale(.6); opacity: .7; }

/* Setup checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist > li { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start; padding: 16px 20px; border-top: 1px solid var(--border); }
.checklist > li:first-child { border-top: 0; }
.check-icon { width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px dashed var(--border-strong); color: var(--subtle); }
.check-icon .icon { width: 14px; height: 14px; stroke-width: 3; }
.checklist .done .check-icon { border: 0; background: var(--success); color: var(--on-success); }
.checklist .done .title { color: var(--muted); }
.checklist .next .check-icon { border: 2px solid var(--primary); }
.checklist .next { background: var(--primary-soft); }
.checklist .title { font-weight: 600; }
.checklist .desc { margin-top: 2px; color: var(--muted); max-width: 62ch; }

/* Stepper */
.stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.stepper li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.stepper li + li::before { content: ""; width: 40px; height: 1px; margin: 0 12px; background: var(--border-strong); }
.step-dot { width: 24px; height: 24px; display: grid; place-items: center; border: 1.5px solid var(--border-strong); font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); }
.step-dot .icon { width: 13px; height: 13px; stroke-width: 3; }
.stepper .done .step-dot { background: var(--success); border-color: var(--success); color: var(--on-success); }
.stepper .current { color: var(--text); }
.stepper .current .step-dot { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }

/* Empty state */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 24px; text-align: center; color: var(--muted); }
.empty .icon-ring { width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface-hover); color: var(--muted); }
.empty h1, .empty h2 { font-size: 24px; color: var(--text); }
.empty p { max-width: 46ch; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 500; color: var(--text-2); }
.help { font-size: 12px; color: var(--muted); }
.input { height: 36px; padding: 0 12px; border: 1px solid var(--field-border); border-radius: var(--r-md); background: var(--surface); color: var(--text); font: inherit; box-shadow: var(--shadow-xs); }
.input:focus { outline: 2px solid transparent; border-color: var(--primary); box-shadow: var(--ring); }
.input::placeholder { color: var(--muted); }
.input.is-invalid, .input[aria-invalid="true"] { border-color: var(--danger); }
.help.error { color: var(--danger); }
.field > .input { max-width: 360px; }
select.input { padding-right: 32px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input-icon { position: relative; display: inline-flex; }
.input-icon > .icon { position: absolute; left: 11px; top: 10px; color: var(--subtle); pointer-events: none; }
.input-icon > .input { padding-left: 34px; width: 260px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-hover); }
.segmented a, .segmented button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; }
.segmented a:hover { color: var(--text); }
.segmented [aria-current="true"], .segmented [aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.segmented .count { color: var(--muted); font-variant-numeric: tabular-nums; }
.segmented [aria-current="true"] .count, .segmented [aria-pressed="true"] .count { color: inherit; }
.switch { position: relative; width: 40px; height: 22px; flex: none; padding: 0; border: 0; border-radius: var(--r-full); background: var(--field-border); cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--paper); box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"]::after { transform: translateX(18px); background: var(--on-primary); }

/* Choosing environments and options */
.options { display: flex; flex-direction: column; gap: 8px; }
.option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; }
.option:hover { border-color: var(--border-strong); }
.option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.option.is-disabled { cursor: not-allowed; background: var(--surface-2); color: var(--muted); }
.option .name { font-weight: 600; color: var(--text); }
.option.is-disabled .name { color: var(--muted); }
.choice { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.choice .icon-box, .icon-box { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.copy-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.copy-field code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text-2); }

/* ---------- Tables ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); }
.table-scroll { position: relative; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 16px; text-align: left; font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-compact th, .table-compact td { padding: 8px 12px; vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-hover); }
.table .num { text-align: right; }
.table .name { font-weight: 500; color: var(--text); }
.table .shrink { width: 1%; white-space: nowrap; }
.count { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-variant-numeric: tabular-nums; }
.table-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 10px 16px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 12px; color: var(--muted); }

/* ---------- Menus (details/summary, work without JavaScript) ---------- */
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.menu.up .menu-panel { top: auto; bottom: calc(100% + 6px); }
.menu.right .menu-panel { left: auto; right: 0; width: 360px; }
.menu.right.narrow .menu-panel { width: 250px; }
.menu-label { padding: 6px 8px; font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: var(--r-md); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--surface-hover); text-decoration: none; }
.menu-item[aria-current="true"] { font-weight: 600; }
.menu-item .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.menu-item.is-static { cursor: default; }
.menu-item.is-static:hover { background: none; }
.confirm-panel { display: grid; gap: 10px; padding: 12px; }
.menu.confirm { width: fit-content; }
.menu.confirm .menu-panel { right: auto; width: 360px; max-width: calc(100vw - 32px); }
.menu.right .confirm-panel { max-width: calc(100vw - 32px); }
.menu hr { margin: 6px 0; }

/* A question mark that explains a word. A details element like the menus, so it needs no JavaScript. */
.help-tip { display: inline-flex; flex: none; font-weight: 400; }
.help-tip > summary { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--r-full); color: var(--muted); }
.help-tip > summary:hover { background: var(--surface-hover); color: var(--text); }
.help-tip > summary .icon { width: 16px; height: 16px; }
.help-tip .menu-panel { right: auto; width: 300px; max-width: calc(100vw - 32px); padding: 12px; font-size: 14px; line-height: 1.5; color: var(--text); text-transform: none; letter-spacing: normal; }
@media (max-width: 640px) {
  .help-tip .menu-panel { position: fixed; top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; }
}
.relation-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.relation-list a { display: inline-block; max-width: 100%; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); color: var(--text-2); overflow-wrap: break-word; }
.relation-list a:hover { border-color: var(--primary); color: var(--primary-text); text-decoration: none; }
.relation-list .via { color: var(--muted); font-size: 12px; }
.relation-more { margin-top: 8px; }
.relation-more > summary { width: fit-content; cursor: pointer; color: var(--primary-text); }
.relation-more > .relation-list { margin-top: 8px; }
.glossary { display: grid; gap: 16px; margin: 0; }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 2px 0 0; color: var(--text-2); }
.glossary > div { scroll-margin-top: 16px; }
.glossary > div:target { outline: 2px solid var(--primary); outline-offset: 6px; border-radius: var(--r-md); }
.menu form { margin: 0; }
.menu-row { display: flex; gap: 4px; padding: 2px 4px 6px; }
.menu-row .btn { flex: 1; }

/* ---------- App shell: a top line with every daily place, and the environments under it. No side panel ---------- */
.stage { display: flex; flex-direction: column; min-height: 100vh; }
.topbar { position: relative; z-index: 46; background: var(--topbar); color: var(--topbar-text); }
.topbar-in, .envbar-in { display: flex; align-items: center; gap: 8px 22px; width: 100%; max-width: 1304px; margin: 0 auto; padding-inline: 32px; }
.topbar-in { min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 21px/1 var(--font-display); color: var(--text); text-decoration: none !important; white-space: nowrap; }
.topbar .brand { color: var(--topbar-text); }
.org-name { font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--topbar-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-nav { display: flex; align-self: stretch; min-width: 0; }
.toptabs { display: flex; align-items: stretch; gap: 2px; }
.toptabs > a, .toptabs-more > summary { display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 3px solid transparent; color: var(--topbar-muted); font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.toptabs > a:hover, .toptabs-more > summary:hover { color: var(--topbar-text); border-bottom-color: var(--topbar-edge); }
.toptabs > a[aria-current="page"], .toptabs-more > summary[aria-current="page"] { color: var(--topbar-text); font-weight: 600; border-bottom-color: var(--topbar-current); }
.toptabs .state { width: 14px; height: 14px; }
.toptabs-more { display: flex; }
.toptabs-more .menu-panel { right: auto; width: 240px; }
.nav-menu { display: none; align-self: center; }
.topbar-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--topbar-edge); color: var(--topbar-text); font: 500 14px/1 var(--font-sans); }
.topbar-btn:hover { border-color: var(--topbar-current); }
.topbar-btn .initials { display: grid; place-items: center; width: 24px; height: 24px; margin-left: -6px; background: var(--topbar-current); color: #1f3730; font: 600 11px/1 var(--font-mono); }
.user-head { padding: 6px 8px; }
.user-head .sub { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

/* The environments as buttons, the IT status and the page's own actions */
.envbar { background: var(--surface); border-bottom: 1px solid var(--border); }
.envbar-in { flex-wrap: wrap; min-height: 52px; padding-block: 8px; }
.envbar-label { font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.env-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.env-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 11px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 500; white-space: nowrap; text-decoration: none !important; cursor: pointer; }
.env-chip:hover { border-color: var(--primary); }
.env-chip .sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.env-chip[aria-current="true"] { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.env-chip[aria-current="true"] .sub { color: inherit; }
.env-chip.is-add { border-style: dashed; color: var(--primary-text); }
.env-more { display: flex; }
.env-more .menu-panel { right: auto; width: 300px; max-width: calc(100vw - 32px); }
.envbar-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; }
.it-status { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 1px solid var(--warning-border); background: var(--warning-soft); color: var(--warning); font-size: 13px; font-weight: 500; white-space: nowrap; }
.it-status.is-full { border-color: var(--success-border); background: var(--success-soft); color: var(--success); }
.it-status .dot { width: 8px; height: 8px; background: currentColor; }

/* A small brick. Colour and texture come from the classes, so themes apply. */
.tile-glyph { width: auto; height: 30px; flex: none; }
.tile-top { fill: var(--c); }
.tile-left { fill: color-mix(in srgb, var(--c) 73%, var(--ink)); }
.tile-right { fill: color-mix(in srgb, var(--c) 51%, var(--ink)); }
.tile-tex { fill: none; stroke: var(--t); }
.tile-stripes { --c: var(--origin-own); --t: var(--pine); }
.tile-dots { --c: var(--origin-partner); --t: var(--pine); }
.tile-bars { --c: var(--origin-microsoft); --t: var(--paper); }
.tile-arcs { --c: var(--origin-standard); --t: var(--texture-standard); }

/* Scenes from the film (MosaicArt). They are decoration: the words next to them carry the meaning. */
.art { display: block; width: min(100%, 260px); height: auto; margin: 0 auto; overflow: visible; }
.tone-mint { --c: var(--mint); --t: var(--pine); }
.tone-paper { --c: var(--paper); --t: var(--pine); }
.tone-soft { --c: #c2d9d2; --t: var(--pine); }
.tone-deep { --c: #7ea79c; --t: var(--pine); }
.tone-pine { --c: var(--tone-pine); --t: var(--mint); }
.tone-peach { --c: var(--peach); --t: var(--pine); }
.art-span { fill: var(--mint); }
.art-dot { fill: var(--pine); }
.art-gap { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 7 6; }
.art-rib { fill: var(--origin-standard); }
.art-check { fill: none; stroke: var(--pine); stroke-width: 8; }
.art-drop { animation: art-drop .9s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes art-drop { from { transform: translateY(-110px); opacity: 0; } }
.brick-mark { display: block; }
.brick-mark .tile-glyph { height: 44px; }
.brick-mark.is-lg .tile-glyph { height: 56px; }

/* Sammenhænge in Overblik. Height is rows; colour and pattern are who built the table. */
.map { display: block; width: 100%; height: auto; overflow: visible; }
.tone-own { --c: var(--origin-own); --t: var(--pine); --k: var(--origin-own-ink); }
.tone-partner { --c: var(--origin-partner); --t: var(--pine); --k: var(--origin-partner-ink); }
.tone-microsoft { --c: var(--origin-microsoft); --t: var(--paper); --k: var(--origin-microsoft-ink); }
.tone-standard { --c: var(--origin-standard); --t: var(--texture-standard); --k: var(--origin-standard-ink); }
.tone-custom { --c: var(--origin-custom); --t: var(--pine); --k: var(--origin-custom-ink); }
.tone-ground { --c: var(--tone-ground); --k: var(--text); }
.brick { cursor: pointer; transition: opacity .2s; }
.brick:hover .tile-top { filter: brightness(1.08); }
.brick:focus-visible { outline: none; }
.brick:focus-visible .tile-top { stroke: var(--text); stroke-width: 2; }
.brick-in { animation: brick-in .5s ease both; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .1s; } .d3 { animation-delay: .15s; } .d4 { animation-delay: .2s; } .d5 { animation-delay: .25s; }
.d6 { animation-delay: .3s; } .d7 { animation-delay: .35s; } .d8 { animation-delay: .4s; } .d9 { animation-delay: .45s; }
@keyframes brick-in { from { opacity: 0; transform: translateY(14px); } }
.links-scene .map { max-width: 760px; margin: 0 auto; }
.flow { fill: none; stroke: var(--pine); stroke-width: 2; stroke-dasharray: 5 6; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -11; } }
.map-tags { pointer-events: none; }
.map-tags path { fill: none; stroke: var(--text); }
.map-tags rect { fill: var(--text); }
.map-tags text { fill: var(--bg); font: 400 12px var(--font-mono); text-anchor: middle; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.map-rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.map-rail > section { padding-top: 11px; border-top: 1px solid var(--border-strong); }
.map-rail h2 { font-size: 19px; }
.map-legend { display: grid; gap: 2px; margin-top: 6px; }
.map-legend a { display: flex; align-items: center; gap: 9px; padding: 4px 7px; color: var(--text); text-decoration: none; }
.map-legend a:hover { background: var(--surface-hover); }
.map-legend a[aria-current="true"] { background: var(--primary); color: var(--on-primary); }
.map-legend .tile-glyph { height: 24px; }

/* Overblik: who the rows belong to, the tables as flat tiles, and the list beside them */
.share { display: grid; gap: 10px; padding: 14px 18px; margin-bottom: 20px; }
.share-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.share-head h2 { font-size: 19px; }
.share svg.stacked { height: 18px; }
.share-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.share-picks a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.share-picks a:hover { border-color: var(--border-strong); background: var(--surface-hover); }
.share-picks a[aria-current="true"] { padding: 6px 9px; border: 2px solid var(--text); }
.share-picks .tile-glyph { height: 22px; }
.share-picks .swatch { width: 22px; height: 16px; flex: none; background: var(--primary); }
.ov-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.ov-mosaic { position: sticky; top: 16px; display: grid; gap: 10px; min-width: 0; }
.ov-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.ov-head h2, .ov-list-head h2 { font-size: 20px; }
.treemap { display: block; width: 100%; height: auto; }
.tm-box { fill: var(--c); }
.tm-tile { cursor: pointer; }
.tm-tile:hover .tm-box { filter: brightness(1.06); }
.tm-tile:focus-visible { outline: none; }
.tm-tile:focus-visible .tm-top, .tm-tile.is-chosen .tm-top, .tm-tile.is-pointed .tm-top { stroke: var(--text); stroke-width: 3; }
.treemap pattern path { fill: none; stroke: var(--t); stroke-opacity: .32; }
.treemap pattern.tone-standard path { stroke-opacity: .16; }
.treemap text { fill: var(--k, var(--text)); pointer-events: none; }
.tm-rank { font: 500 11px var(--font-mono); }
.tm-name { font: 600 13px var(--font-sans); }
.tm-rows { font: 500 12px var(--font-mono); }
.tm-in { animation: tm-in .5s ease both; }
@keyframes tm-in { from { opacity: 0; transform: translateY(-10px); } }
.tm-detail { display: grid; gap: 6px; padding: 14px 16px; background: var(--topbar); color: var(--topbar-text); }
.tm-detail[hidden] { display: none; }
.tm-detail-label { font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--topbar-muted); }
.tm-detail-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.tm-detail-head b { font: 700 22px/1.1 var(--font-display); }
.tm-detail-head span { color: var(--topbar-muted); overflow-wrap: anywhere; }
.tm-detail-head .mono { font-size: 12px; }
.tm-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn-on-dark { background: var(--topbar-current); color: var(--origin-partner-ink); font-weight: 600; }
.btn-on-dark:hover { filter: brightness(1.06); }
.btn-outline-dark { border-color: var(--topbar-edge); color: var(--topbar-text); }
.btn-outline-dark:hover { border-color: var(--topbar-muted); }
.tm-detail :focus-visible { outline-color: var(--peach); }
.ov-list { min-width: 0; }
.ov-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ov-search { display: flex; flex: 0 1 300px; gap: 6px; }
.ov-search .input-icon { flex: 1; }
.ov-search .input { width: 100%; }
.ov-share { width: 170px; }
.ov-share-cell { display: flex; align-items: center; gap: 8px; }
.ov-share-cell progress.progress { flex: 1; width: auto; min-width: 48px; }
.ov-share-cell .mono { flex: none; min-width: 64px; font-size: 12px; text-align: right; white-space: nowrap; }
.js .ov-table tr[data-table] { cursor: pointer; }
.ov-table tr.is-pointed td, .ov-table tr.is-chosen td { background: var(--surface-hover); }
.ov-table tr.is-chosen td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.figs { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.fig b { display: block; font: 700 34px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.fig span { font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fig.is-own b { color: var(--origin-own-text); }
.figs.is-small .fig b { font-size: 23px; }
.prep { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.prep-map { padding: 16px 20px; }
.env-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; color: var(--text); text-decoration: none !important; }
.env-card:hover { border-color: var(--border-strong); }
.env-mini { display: block; min-height: 52px; }
.env-mini .art { width: 100%; max-width: 160px; margin: 0 0 6px; }
.mini { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.mini-strip { width: 118px; height: 22px; flex: none; }
.ms-own { fill: var(--origin-own); } .ms-partner { fill: var(--origin-partner); } .ms-microsoft { fill: var(--origin-microsoft); }
.ms-standard { fill: var(--origin-standard); } .ms-custom { fill: var(--origin-custom); }

/* The front page: what is left to set up, your own access, the apps in each environment */
.home-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.home-top.is-single { grid-template-columns: minmax(0, 1fr); }
.home-top.is-single .access-list { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.home-top.is-single .access-list > div { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; padding: 12px 20px; }
.home-top.is-single .access-list > div:first-child { padding-left: 0; }
.home-top.is-single .access-list dd { text-align: left; }
.home-top.is-single .access-list .sub { margin-left: 0; }
.setup { margin: 0; }
.setup .card-header, .setup .card-header > .row { flex-wrap: wrap; gap: 10px 14px; }
.setup-meter { display: grid; grid-auto-flow: column; grid-auto-columns: 14px; gap: 3px; }
.setup-meter i { height: 14px; border: 2px solid var(--warning); }
.setup-meter i.is-done { border-color: var(--primary); background: var(--primary); }
.setup-count { font: 700 18px/1 var(--font-display); white-space: nowrap; }
.setup-list { list-style: none; padding: 0; }
.setup-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 20px; border-top: 1px solid var(--border); }
.setup-list li.is-open { background: var(--surface); }
.setup-list li.is-done { color: var(--muted); padding-block: 9px; }
.setup-list .grow { flex: 1 1 300px; min-width: 0; }
.setup-list .title { font-weight: 600; color: var(--text); }
.setup-list .desc { color: var(--text-2); }
.setup-list .is-done .desc { color: var(--muted); }
.setup-num { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 2px solid var(--warning); color: var(--warning); font: 600 12px/1 var(--font-mono); }
.is-done .setup-num { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.access { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; background: var(--topbar); color: var(--topbar-text); }
.access h2 { color: var(--topbar-text); }
.access-sub { margin-top: -8px; color: var(--topbar-muted); }
.access :focus-visible { outline-color: var(--peach); }
.access-list { display: grid; gap: 1px; margin: 0; background: var(--topbar-edge); }
.access-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; background: var(--topbar); }
.access-list dt { color: var(--topbar-muted); }
.access-list dd { margin: 0; text-align: right; }
.access-list .sub { display: block; max-width: 34ch; margin-left: auto; font-size: 12px; color: var(--topbar-muted); }
.apps-matrix th[scope="col"] .sub, .apps-matrix th[scope="row"] .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.apps-matrix th[scope="row"] b { font: 700 17px/1.2 var(--font-display); }
.apps-matrix thead th:not(:first-child), .apps-matrix tbody th { font: 600 14px/1.3 var(--font-sans); letter-spacing: normal; text-transform: none; color: var(--text); }
.apps-matrix th[scope="col"] { white-space: nowrap; }
.apps-matrix tbody th .sub { max-width: 46ch; }
.apps-matrix th[scope="col"] .env-dot { margin-right: 6px; }
.apps-matrix td { vertical-align: middle; }

.has-dot { position: relative; }
.has-dot::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; background: var(--danger); }
.content { flex: 1; width: 100%; max-width: 1304px; margin: 0 auto; padding: 22px 32px 28px; }
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-header .sub { margin-top: 4px; color: var(--muted); }
.page-header .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 12px; }
.section-title a { display: inline-flex; align-items: center; gap: 4px; }
.banner { display: flex; align-items: flex-start; gap: 10px; width: 100%; max-width: 1240px; margin: 8px auto 0; padding: 10px 14px; border: 1px solid var(--border); font-size: 13px; }
.banner > .icon { margin-top: 1px; }
.banner-critical { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-border); }
.banner-warning { background: var(--warning-soft); color: var(--warning); border-color: var(--warning-border); }
.banner-info { background: var(--info-soft); color: var(--info); border-color: var(--info-border); }
.local-strip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; font-size: 12px; font-weight: 500; color: var(--info); background: var(--info-soft); border-bottom: 1px solid var(--info-border); }
.notif { display: flex; gap: 10px; padding: 10px 8px; border-radius: var(--r-md); }
.notif + .notif { border-top: 1px solid var(--border); border-radius: 0; }
.notif .icon { margin-top: 2px; }
.notif.is-critical .icon { color: var(--danger); } .notif.is-warning .icon { color: var(--warning); } .notif.is-info .icon { color: var(--info); }
.tabs { display: flex; gap: 4px; margin-bottom: 24px; box-shadow: inset 0 -1px 0 var(--border); overflow-x: auto; overflow-y: hidden; }
.tabs a { padding: 10px 12px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-color: var(--primary); }
.danger-zone { border-color: var(--danger-border); }
.danger-zone .card-header { border-color: var(--danger-border); }
.danger-zone h2 { color: var(--danger); }
.action-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--border); }
.action-row:first-child { border-top: 0; }
.action-row .desc { color: var(--muted); max-width: 60ch; }

/* ---------- Focus layout (onboarding, approval, status) ---------- */
.focus { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.focus-header { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 24px; }
.focus-main { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 20px 64px; flex: 1; }
.focus-main.is-wide { max-width: 1180px; }
.focus-footer { padding: 24px; text-align: center; font-size: 12px; color: var(--muted); }
.focus-title { margin: 12px 0 8px; font-size: 38px; }
.focus-lead { color: var(--muted); font-size: 15px; max-width: 60ch; }
.result { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 32px; text-align: center; }
.result p { color: var(--muted); max-width: 52ch; }
.result-icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--surface-hover); color: var(--muted); }
.result-icon .icon { width: 26px; height: 26px; }
.result-icon.is-success { background: var(--success-soft); color: var(--success); }
.result-icon.is-warning { background: var(--warning-soft); color: var(--warning); }
.result-icon.is-danger { background: var(--danger-soft); color: var(--danger); }
.result-icon.is-info { background: var(--primary-soft); color: var(--primary-text); }

/* ---------- Public site (landing) ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.site { background: var(--surface); }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.site-nav { display: flex; gap: 2px; }
.site-nav a { padding: 6px 10px; border-radius: var(--r-md); color: var(--text-2); font-weight: 500; text-decoration: none; }
.site-nav a:hover { background: var(--surface-hover); color: var(--text); }
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; background: var(--pine); color: var(--paper); }
.hero .display { color: var(--paper); }
.hero .grad { color: var(--peach); }
.hero .lead, .hero .hero-note { color: #dce7e3; }
.hero .btn-ghost { color: var(--paper); }
.hero .btn-ghost:hover { background: #3a6156; color: var(--paper); }
.hero-art .art { width: 100%; max-width: 560px; overflow: visible; }
.art-contour path { fill: none; stroke: var(--mint); stroke-opacity: .2; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mint); }
.eyebrow .tag { padding: 3px 8px; background: var(--mint); color: #1f3730; }
.display { margin: 20px 0 18px; font: 700 62px/1.02 var(--font-display); }
.grad { color: var(--origin-own-text); }
.lead { max-width: 36rem; font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { display: flex; gap: 8px; align-items: flex-start; max-width: 34rem; margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero-note .icon { margin-top: 2px; }
.section-band { padding: 88px 0; border-top: 1px solid var(--border); }
.section-band.alt { background: var(--bg); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { font: 500 12px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-text); }
.band-title { margin: 10px 0 12px; font: 700 40px/1.08 var(--font-display); }
.feature { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.feature h3 { font: 700 22px/1.15 var(--font-display); }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.ticks li { display: flex; gap: 8px; }
.ticks .icon { margin-top: 2px; color: var(--success); }
.step { padding: 24px; }
.step .art { width: 170px; margin: 0 0 14px; }
.step-num { width: 32px; height: 32px; font-family: var(--font-display); display: grid; place-items: center; margin-bottom: 16px; background: var(--primary-soft); color: var(--primary-text); font-weight: 700; }
.trust-item .icon-box { margin-bottom: 14px; }
.trust-item h3 { font: 700 19px/1.15 var(--font-display); margin-bottom: 6px; }
.faq { max-width: 780px; }
.faq details { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 64ch; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px; color: var(--paper); background: var(--pine); }
.cta-band h2 { color: var(--paper); font-size: 34px; }
.cta-band p { color: rgb(255 255 255 / .78); margin-top: 6px; }
.cta-band .btn-microsoft { background: #fff; color: #1b1b1b; border-color: #fff; }
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.site-footer a { color: var(--muted); }

/* ---------- Page loading (site.js): bar after 200 ms, note after 2 s ---------- */
.page-loading { position: fixed; inset: 0 0 auto 0; z-index: 200; height: 3px; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .2s; }
.is-loading .page-loading { opacity: 1; }
.is-loading, .is-loading a, .is-loading button { cursor: progress; }
.page-loading-bar { position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--peach); animation: page-loading 1.2s ease-in-out infinite; }
@keyframes page-loading { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.page-loading-note { position: fixed; top: 16px; left: 50%; z-index: 200; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100vw - 32px)); padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--r-full); background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text-2); font-size: 13px; }
.page-loading-note:empty { display: none; }
.spinner { width: 16px; height: 16px; flex: none; border: 2px solid var(--border-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner.is-inline { display: inline-block; margin-right: 8px; vertical-align: -3px; }

/* ---------- Data on its way: status line and placeholders ---------- */
.status-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.status-strip .icon { color: var(--success); }
.status-strip.is-warning .icon { color: var(--warning); }
.checklist .check-icon .spinner { width: 100%; height: 100%; }
.skeleton { height: 12px; border-radius: var(--r-sm); background: var(--surface-hover); animation: skeleton 1.4s ease-in-out infinite; }
.skeleton.is-tall { height: 26px; }
.skeleton.w-10 { width: 10%; } .skeleton.w-20 { width: 20%; } .skeleton.w-40 { width: 40%; } .skeleton.w-60 { width: 60%; }
.skeleton-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 16px; border-top: 1px solid var(--border); }
.skeleton-row:first-child { border-top: 0; }
@keyframes skeleton { 50% { opacity: .5; } }
.sort-link { display: inline-flex; align-items: center; gap: 4px; color: inherit; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .art-drop, .brick-in, .tm-in, .flow { animation: none; }
  .page-loading-bar { width: 100%; animation: none; opacity: .7; }
  .spinner { animation-duration: 2.4s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar-in, .envbar-in { padding-inline: 24px; }
  .content { padding-inline: 24px; }
}
@media (max-width: 960px) {
  .hero-grid, .cols-3, .cols-2, .split, .map-layout, .prep, .ov-split { grid-template-columns: minmax(0, 1fr); }
  .ov-mosaic { position: static; }
  .display { font-size: 38px; }
  .site-nav { display: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; }
}
@media (max-width: 760px) {
  .org-name, .topbar-btn .name, .topbar-btn .chev { display: none; }
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .home-top.is-single .access-list > div { padding-left: 0; }
  .topbar .menu { position: static; }
  .topbar .menu .menu-panel { left: 16px; right: 16px; width: auto; max-width: none; }
  .topbar-in, .envbar-in { padding-inline: 16px; gap: 8px 12px; }
  .toptabs { display: none; }
  .nav-menu { display: block; }
  .env-chip { white-space: normal; }
  .env-chip .sub { display: none; }
  .envbar-end { margin-left: 0; }
  .banner { margin-inline: 16px; width: auto; }
  .stepper li + li::before { width: 16px; margin: 0 6px; }
  .stepper .label { display: none; }
  .stepper .current .label { display: inline; }
  .menu.right .menu-panel { width: min(360px, 92vw); }
}
@media (max-width: 600px) {
  .cols-4 { grid-template-columns: 1fr; }
  .treemap text { display: none; }
  .content { padding: 16px 16px 20px; }
  .input-icon > .input { width: 100%; }
  .checklist > li { grid-template-columns: 28px 1fr; }
  .checklist > li > :last-child:not(div) { grid-column: 2; }
}
