@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* 8px grid spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --space-7: 48px;
  --space-8: 64px;

  /* radius scale */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* typography (Azure portal uses the Segoe UI system stack) */
  --font-sans: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-11: 11px;
  --font-size-12: 12px;
  --font-size-13: 13px;
  --font-size-14: 14px;
  --font-size-15: 15px;
  --font-size-16: 16px;
  --font-size-20: 20px;
  --font-size-24: 24px;
  --font-size-32: 32px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* color -- Azure portal (Fluent) light palette */
  --bg: #f3f2f1;
  --surface: #ffffff;
  --surface-2: #faf9f8;
  --ink: #201f1e;
  --text: #323130;
  --muted: #605e5c;
  --disabled: #a19f9d;
  --line: #edebe9;
  --sidebar: #ffffff;
  --sidebar-2: #ffffff;
  --primary: #0078d4;
  --primary-2: #106ebe;
  --accent: #8661c5;
  --good: #107c10;
  --warning: #c19c00;
  --danger: #d13438;

  /* section-header accents (Azure "Eigenschaften" style) */
  --sec-teal: #038387;
  --sec-amber: #c19c00;
  --sec-blue: #0078d4;
  --sec-violet: #8661c5;

  /* status tints -- theme-aware fills for callouts, alerts and step cards.
     Every hardcoded pastel (#fff7ed, #f0fdf4, ...) that used to stay light in
     dark mode should read from these instead. */
  --tint-success-bg: #eef9f1;
  --tint-success-border: #bbe3c9;
  --tint-success-ink: #0f6b34;
  --tint-warning-bg: #fdf6e3;
  --tint-warning-border: #f0d999;
  --tint-warning-ink: #8a6d00;
  --tint-danger-bg: #fdeeee;
  --tint-danger-border: #f3c0c1;
  --tint-danger-ink: #a4262c;
  --tint-info-bg: #eff6fc;
  --tint-info-border: #c7e0f4;
  --tint-info-ink: #0b5cab;

  /* shadow: border-led cards, minimal elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow: var(--shadow-sm);

  --focus-ring: 0 0 0 3px rgba(0, 120, 212, 0.22);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10151d;
  --surface: #171e28;
  --surface-2: #1c2434;
  --ink: #eaeef4;
  --text: #c3ccd8;
  --muted: #838d9c;
  --disabled: #64748b;
  --line: #262f3c;
  --sidebar: #0b1220;
  --sidebar-2: #111c2e;
  --primary: #4c9fe0;
  --primary-2: #6fb2e8;
  --accent: #e0aa4a;
  --good: #34d399;
  --warning: #e0aa4a;
  --danger: #f27664;
  --sec-teal: #2fb3ab;
  --sec-amber: #e0aa4a;
  --sec-blue: #5aa5e6;
  --sec-violet: #a98be0;
  --tint-success-bg: rgba(52, 211, 153, 0.14);
  --tint-success-border: rgba(52, 211, 153, 0.32);
  --tint-success-ink: #7ee2b8;
  --tint-warning-bg: rgba(224, 170, 74, 0.15);
  --tint-warning-border: rgba(224, 170, 74, 0.34);
  --tint-warning-ink: #e7c274;
  --tint-danger-bg: rgba(242, 118, 100, 0.15);
  --tint-danger-border: rgba(242, 118, 100, 0.34);
  --tint-danger-ink: #f6a89e;
  --tint-info-bg: rgba(76, 159, 224, 0.15);
  --tint-info-border: rgba(76, 159, 224, 0.34);
  --tint-info-ink: #9ccbef;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.5);
  --shadow: var(--shadow-sm);
  --focus-ring: 0 0 0 3px rgba(76, 159, 224, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #10151d;
    --surface: #171e28;
    --surface-2: #1c2434;
    --ink: #eaeef4;
    --text: #c3ccd8;
    --muted: #838d9c;
    --disabled: #64748b;
    --line: #262f3c;
    --sidebar: #0b1220;
    --sidebar-2: #111c2e;
    --primary: #4c9fe0;
    --primary-2: #6fb2e8;
    --accent: #e0aa4a;
    --good: #34d399;
    --warning: #e0aa4a;
    --danger: #f27664;
    --sec-teal: #2fb3ab;
    --sec-amber: #e0aa4a;
    --sec-blue: #5aa5e6;
    --sec-violet: #a98be0;
    --tint-success-bg: rgba(52, 211, 153, 0.14);
    --tint-success-border: rgba(52, 211, 153, 0.32);
    --tint-success-ink: #7ee2b8;
    --tint-warning-bg: rgba(224, 170, 74, 0.15);
    --tint-warning-border: rgba(224, 170, 74, 0.34);
    --tint-warning-ink: #e7c274;
    --tint-danger-bg: rgba(242, 118, 100, 0.15);
    --tint-danger-border: rgba(242, 118, 100, 0.34);
    --tint-danger-ink: #f6a89e;
    --tint-info-bg: rgba(76, 159, 224, 0.15);
    --tint-info-border: rgba(76, 159, 224, 0.34);
    --tint-info-ink: #9ccbef;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.32);
    --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.5);
    --shadow: var(--shadow-sm);
    --focus-ring: 0 0 0 3px rgba(76, 159, 224, 0.3);
  }
}

* { box-sizing: border-box; }

html {
  /* Mobile Safari/Chrome auto-boost short bold text (e.g. a lone score
     number) to different sizes than surrounding text on the same narrow
     column, which reads as inconsistent font sizing. Force every element to
     render at its own computed size instead. */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}
html.sidebar-collapsed .app-shell {
  grid-template-columns: 72px minmax(0, 1fr);
}

.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 18px;
  transition: padding 200ms ease-out;
}
html.sidebar-collapsed .sidebar {
  padding: 24px 12px;
}

.sidebar-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}
.sidebar-collapse-toggle {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  margin-top: 14px;
  width: 32px;
}
.sidebar-collapse-toggle:hover { background: var(--line); color: var(--ink); }
.sidebar-collapse-toggle svg {
  height: 16px;
  transition: transform 200ms ease-out;
  width: 16px;
}
html.sidebar-collapsed .sidebar-collapse-toggle svg { transform: rotate(180deg); }
html.sidebar-collapsed .sidebar-collapse-toggle { align-self: center; margin-top: 0; }
.sidebar-close {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: none;
  flex-shrink: 0;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.sidebar-close svg { height: 18px; width: 18px; }
.sidebar-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: none;
  flex-shrink: 0;
  height: 38px;
  justify-content: center;
  margin-right: 12px;
  width: 38px;
}
.sidebar-toggle svg { height: 20px; width: 20px; }
.sidebar-backdrop {
  background: rgba(15, 23, 42, 0.45);
  display: none;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 200ms ease;
  z-index: 45;
}
.sidebar-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.brand {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 12px;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  display: block;
  height: 44px;
  max-width: 220px;
  object-fit: contain;
  width: auto;
}
.sidebar .brand {
  background: transparent;
  border: none;
  border-radius: 8px;
  display: inline-flex;
  padding: 4px 2px;
}
.auth-product .brand {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  display: inline-flex;
  padding: 8px 10px;
}
.sidebar .brand-logo {
  height: 42px;
  max-width: 218px;
}
.auth-product .brand-logo {
  height: 52px;
  max-width: 280px;
}
.brand-mark {
  align-items: center;
  background: #2563eb;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.brand strong { display: block; font-size: 19px; line-height: 1.1; }
.brand small { color: #b8c4d3; display: block; margin-top: 3px; }

.nav {
  display: grid;
  gap: 4px;
  overflow-y: auto;
}
.nav-section {
  display: grid;
  gap: 2px;
}
.nav-section + .nav-section {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 10px;
}
.nav-section-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 12px 6px;
  text-transform: uppercase;
}
.nav a {
  align-items: center;
  border-radius: 4px;
  color: var(--text);
  display: flex;
  font-weight: 600;
  gap: 10px;
  padding: 8px 12px;
}
.nav a svg {
  flex-shrink: 0;
  height: 18px;
  width: 18px;
}
.nav a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.nav a.is-active {
  background: rgba(0, 120, 212, 0.10);
  color: var(--primary);
  position: relative;
}
.nav a.is-active::before {
  background: var(--primary);
  border-radius: 999px;
  content: "";
  height: 18px;
  left: 0;
  position: absolute;
  width: 3px;
}
.nav-group {
  display: block;
  width: 100%;
}
.nav-group summary {
  align-items: center;
  border-radius: 4px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-weight: 600;
  gap: 10px;
  list-style: none;
  padding: 8px 12px;
}
.nav-group summary:hover { background: var(--surface-2); }
.nav-group summary svg {
  flex-shrink: 0;
  height: 18px;
  width: 18px;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after {
  content: "+";
  margin-left: auto;
}
.nav-group[open] summary::after { content: "-"; }
.nav-group a {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-left: 26px;
  padding: 7px 10px;
  width: calc(100% - 26px);
}
.nav-group a:hover { background: var(--surface-2); color: var(--ink); }
.nav-group a.is-active { color: var(--primary); font-weight: 600; }

.command-trigger {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  display: inline-flex;
  font: inherit;
  gap: 8px;
  justify-self: center;
  min-height: 36px;
  padding: 6px 9px;
  width: min(680px, 100%);
}
.command-trigger-label {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.command-trigger:hover { border-color: var(--primary); color: var(--ink); cursor: pointer; }
.command-trigger svg { height: 16px; width: 16px; }
.command-trigger kbd {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
  font-size: 10px;
  padding: 2px 4px;
}
.command-palette { inset: 0; position: fixed; z-index: 80; }
.command-palette-backdrop { background: rgba(15, 23, 42, 0.48); inset: 0; position: absolute; }
.command-palette-dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  left: 50%;
  max-height: min(680px, calc(100vh - 48px));
  overflow: auto;
  padding: 16px;
  position: absolute;
  top: 12vh;
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 32px));
}
.command-palette-head { align-items: center; display: flex; font-weight: 700; justify-content: space-between; margin-bottom: 10px; }
.command-palette-dialog input { font-size: 16px; width: 100%; }
.icon-button { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 24px; line-height: 1; }
.command-palette-status { color: var(--muted); font-size: 12px; margin: 10px 0 4px; }
.command-result-group { margin-top: 14px; }
.command-result-group h3 { color: var(--muted); font-size: 11px; letter-spacing: .04em; margin: 0 0 5px; text-transform: uppercase; }
.command-result {
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
}
.command-result:hover, .command-result:focus { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.command-result small { color: var(--muted); margin-left: 16px; }

.sidebar-language {
  margin-top: auto;
  padding: 14px 0 0;
}
.sidebar-language select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}
.sidebar-language select option { color: var(--ink); }
.eyebrow {
  color: var(--primary);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

html.sidebar-collapsed .sidebar .brand { justify-content: center; padding: 8px; }
html.sidebar-collapsed .brand strong,
html.sidebar-collapsed .brand small,
html.sidebar-collapsed .nav-section-label,
html.sidebar-collapsed .nav a span,
html.sidebar-collapsed .nav-group,
html.sidebar-collapsed .sidebar-language {
  display: none;
}
html.sidebar-collapsed .nav a {
  justify-content: center;
  padding: 9px;
}

.workspace { min-width: 0; }
.mobile-footer-bar { display: none; }

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(160px, 0.8fr) minmax(360px, 1.5fr) minmax(max-content, 1fr);
  min-height: 64px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-workspace { min-width: 0; }
.topbar strong { color: var(--ink); display: block; font-size: 16px; margin-top: 2px; }
.topbar-identity { color: var(--muted); display: block; font-size: 12px; text-transform: capitalize; }
.topbar-actions,
.actions,
.form-actions,
.download-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar-actions { justify-content: flex-end; min-width: 0; }
.topbar-actions .workspace-switcher-button { justify-content: center; padding: 0; width: 42px; }
.topbar-actions .workspace-switcher-name,
.topbar-actions .workspace-switcher-caret { display: none; }
.logout-form { margin: 0; }
.inline-action { margin: 0; }
.inline-button-form { margin: 0; }

.notification-center {
  position: relative;
}
.notification-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  position: relative;
  width: 44px;
}
.notification-flag-icon {
  border-left: 3px solid var(--ink);
  display: block;
  height: 20px;
  position: relative;
  width: 18px;
}
.notification-flag-icon::before {
  background: var(--primary);
  border-radius: 2px;
  content: "";
  height: 11px;
  left: 3px;
  position: absolute;
  top: 1px;
  width: 14px;
}
.notification-flag-icon.is-platform::before {
  background: var(--accent);
}
.notification-count {
  align-items: center;
  background: #b42318;
  border: 2px solid var(--surface);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 5px;
  position: absolute;
  right: -8px;
  top: -8px;
}
.notification-count[hidden] { display: none; }
.notification-popover {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 320px;
  padding: 14px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
}
.notification-popover strong {
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}
.notification-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 10px;
}
.notification-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
  text-decoration: none;
}
.notification-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.notification-item strong {
  color: var(--primary);
  font-size: 22px;
  margin: 0;
}
.notification-item small {
  color: var(--text);
  line-height: 1.4;
}
.workspace-switcher {
  position: relative;
}
.workspace-switcher-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  height: 40px;
  max-width: 220px;
  padding: 0 12px;
}
.workspace-switcher-icon {
  flex-shrink: 0;
  height: 16px;
  width: 16px;
}
.workspace-switcher-name {
  color: var(--ink);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-switcher-caret {
  flex-shrink: 0;
  height: 12px;
  width: 12px;
}
.workspace-switcher-popover {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 260px;
  padding: 14px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 50;
}
.workspace-switcher-popover strong {
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}
.workspace-switcher-list {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  max-height: 260px;
  overflow-y: auto;
}
.workspace-switcher-item-form {
  margin: 0;
}
.workspace-switcher-item {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}
.workspace-switcher-item:hover {
  border-color: rgba(37, 99, 235, 0.35);
}
.workspace-switcher-item.is-active {
  border-color: var(--primary);
  font-weight: 700;
}
.workspace-switcher-item-role {
  color: var(--muted);
  flex-shrink: 0;
  font-size: 11px;
  text-transform: uppercase;
}
.workspace-switcher-create {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 12px;
}
.theme-toggle {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { height: 18px; width: 18px; }
.theme-toggle-icon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle-icon-light { display: none; }
:root[data-theme="dark"] .theme-toggle-icon-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle-icon-light { display: none; }
  :root:not([data-theme="light"]) .theme-toggle-icon-dark { display: block; }
}

.trust-grid,
.pricing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.trust-grid article,
.pricing-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.trust-grid strong,
.pricing-grid h3 {
  color: var(--ink);
  display: block;
  font-size: 18px;
  margin: 0 0 10px;
}
.trust-grid p,
.pricing-grid p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.pricing-grid strong {
  color: var(--primary);
  display: block;
  font-size: 28px;
  margin: 18px 0;
}
.pricing-grid ul {
  color: var(--text);
  display: grid;
  gap: 10px;
  line-height: 1.45;
  margin: 0;
  padding-left: 18px;
}
.app-pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-pricing article {
  display: grid;
  gap: 12px;
}
.checkout-shell {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 0.45fr) minmax(0, 0.75fr);
}
.checkout-summary {
  background: #17202b;
  border-radius: var(--radius-md);
  color: #e5edf5;
  padding: 24px;
}
.checkout-summary h2 {
  color: #fff;
  font-size: 30px;
  margin: 10px 0;
}
.checkout-summary strong {
  color: #60a5fa;
  display: block;
  font-size: 26px;
  margin-bottom: 12px;
}
.checkout-summary p {
  color: #c7d4e4;
  line-height: 1.5;
}
.checkout-summary table th,
.checkout-summary table td {
  border-color: rgba(255, 255, 255, 0.13);
  color: #e5edf5;
}
.payment-method-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.payment-logo-strip,
.payment-brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.pay-logo,
.payment-brand-row i {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  min-height: 28px;
  padding: 5px 9px;
}
.pay-logo.visa { color: #1a1f71; }
.pay-logo.mastercard { color: #d35400; }
.pay-logo.amex { color: #1769aa; }
.pay-logo.paypal { color: #003087; }
.pay-logo.klarna { background: #ffb3c7; border-color: #ff9ab6; color: #111827; }
.pay-logo.sepa { color: var(--primary); }
.pay-logo.wallet { color: #111827; }
.payment-method-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 18px;
  text-align: left;
  width: 100%;
}
.payment-method-button:hover {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.08);
}
.payment-method-button strong {
  color: var(--ink);
  font-size: 18px;
}
.payment-method-button span {
  color: var(--muted);
  line-height: 1.45;
}
.payment-method-button .payment-brand-row {
  margin: 0;
}
.payment-method-button .method-detail {
  display: block;
}
.free-plan-activation {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.contact-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  max-width: none;
}
.contact-section > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}
.contact-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
}
.contact-aside {
  align-self: start;
  background: #17202b;
  border-radius: var(--radius-md);
  color: #e5edf5;
  padding: 24px;
}
.contact-aside strong {
  color: #fff;
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}
.contact-aside p {
  color: #c7d4e4;
  line-height: 1.55;
}
.support-thread-list {
  display: grid;
  gap: 14px;
}
.support-thread {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}
.support-messages {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.support-message.internal {
  background: #fff7ed;
  border-color: #fed7aa;
}
.support-context-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.audit-filter {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  padding: 14px;
}
.checkout-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.checkout-trust span {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  color: var(--primary-2);
  font-weight: 800;
  padding: 9px 10px;
}

.page {
  background: var(--surface);
  margin: 0;
  /* Fill the whole working column (Azure portal uses the full width). The
     column itself already narrows as the browser shrinks and widens when the
     sidebar is collapsed to icons, so content follows the available space
     instead of being pinned to a fixed centred 1280px band. */
  max-width: none;
  min-height: calc(100vh - 64px);
  padding: 28px 34px;
}
/* Contextual help is stacked at the *bottom* of the page as a full-width
   banner rather than a right-hand column, so the working area gets the whole
   width. The template already renders .page-main first and the help panel
   after it, so a plain block flow puts help underneath the content. */
.page.with-context-help {
  display: block;
  max-width: none;
}
.page-location { margin: 0 0 14px; }
.page-main {
  min-width: 0;
}
.context-help-panel {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  min-width: 0;
  padding-top: 20px;
}
.context-help-sticky {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 20px;
  position: static;
}
.context-help-sticky p {
  color: var(--muted);
  flex: 1 1 260px;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
  min-width: 0;
}
.context-help-sticky .button {
  flex-shrink: 0;
  width: auto;
}

.whats-new-modal[hidden] { display: none; }
.whats-new-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 100;
}
.whats-new-modal-backdrop {
  background: rgba(15, 20, 30, 0.55);
  inset: 0;
  position: absolute;
}
.whats-new-modal-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg, 0 20px 60px rgba(0, 0, 0, 0.3));
  max-width: 420px;
  padding: 28px 26px 20px;
  position: relative;
  width: calc(100vw - 40px);
}
.whats-new-modal-close {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 4px;
  position: absolute;
  right: 14px;
  top: 12px;
}
.whats-new-modal-close:hover { color: var(--ink); }
.whats-new-modal-pages { margin-top: 14px; }
.whats-new-modal-page[hidden] { display: none; }
.whats-new-modal-page .whats-new-date {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.whats-new-modal-page h3 {
  color: var(--ink);
  font-size: 19px;
  margin: 8px 0;
}
.whats-new-modal-page p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.whats-new-modal-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}
.whats-new-modal-dots {
  display: flex;
  gap: 6px;
}
.whats-new-modal-dots span {
  background: var(--line);
  border-radius: 50%;
  height: 7px;
  width: 7px;
}
.whats-new-modal-dots span.is-active {
  background: var(--primary);
}
.whats-new-modal-actions {
  display: flex;
  gap: 8px;
}
.whats-new-modal-actions .button[hidden] {
  display: none;
}

.breadcrumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span + span::before {
  content: "/";
  margin-right: 6px;
  opacity: 0.6;
}

.info-tip {
  display: inline-flex;
  position: relative;
  vertical-align: middle;
}
.info-tip-icon {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: help;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 16px;
  justify-content: center;
  width: 16px;
}
.info-tip-bubble {
  background: #17202b;
  border-radius: 6px;
  bottom: calc(100% + 8px);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.28);
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 400;
  left: 50%;
  line-height: 1.5;
  opacity: 0;
  padding: 9px 11px;
  pointer-events: none;
  position: absolute;
  text-transform: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  visibility: hidden;
  width: max-content;
  max-width: 280px;
  z-index: 20;
}
.info-tip:hover .info-tip-bubble,
.info-tip:focus-within .info-tip-bubble {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.page-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 8px 0 24px;
}
.page-head h1 {
  color: var(--ink);
  font-size: 24px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  margin: 6px 0 10px;
  max-width: 880px;
}
.page-head p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 820px;
}

.button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-weight: var(--font-weight-semibold);
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
}
.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.button:hover { background: var(--surface-2); text-decoration: none; }
.button.primary:hover { background: var(--primary-2); }
.button.danger {
  border-color: #fecaca;
  color: #991b1b;
}
.button.danger:hover {
  background: #fef2f2;
}
.button:disabled {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}

.status-pill {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #9a3412;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}
.status-pill.ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.status-pill.warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.admin-tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 18px;
  padding: 8px;
}
.admin-tabs a {
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  padding: 8px 10px;
}
.admin-tabs a:hover,
.admin-tabs a.active {
  background: var(--tint-info-bg);
  color: var(--primary);
  text-decoration: none;
}
.admin-tab-group {
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 10px;
}
.admin-tab-group:first-child {
  border-left: 0;
  justify-content: center;
  padding-left: 0;
}
.admin-tab-group-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.06em;
  padding: 0 10px;
  text-transform: uppercase;
}
.admin-tab-group-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.health-signal {
  border-left: 2px solid var(--line);
  margin-bottom: 8px;
  padding-left: 8px;
}
.health-signal:last-child { margin-bottom: 0; }
.health-signal strong {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}
.health-signal p {
  color: var(--muted);
  font-size: 12px;
  margin: 2px 0 0;
}
.funnel-cell {
  text-align: center;
  width: 28px;
}
.funnel-dot { color: var(--line); }
.funnel-dot.reached { color: var(--primary); }

/* Deliberately loud and always visible: an admin must never mistake a
   customer's workspace for their own. */
.impersonation-bar {
  align-items: center;
  background: #7c2d12;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 16px;
}
.impersonation-bar strong { color: #fff; }
.impersonation-bar form { margin: 0; }
.impersonation-bar .button {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.demo-bar {
  align-items: center;
  background: #0f4a8a;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 16px;
}
.demo-bar strong { color: #fff; }
.demo-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-bar .button {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.demo-bar .button-primary {
  background: #fff;
  border-color: #fff;
  color: #0f4a8a;
}

.hero-grid,
.agent-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  margin-bottom: 18px;
}

/* Flat, line-free grouping (Azure "Eigenschaften" style): sections are set
   apart by whitespace and coloured headers, not borders/shadows. */
.stat-card,
.panel,
.mini-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.command-panel,
.agent-panel,
.download-panel,
.security-panel {
  background: var(--surface-2);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.command-panel,
.agent-panel,
.download-panel,
.security-panel {
  padding: 22px;
}
.command-panel h2,
.agent-panel h2,
.download-panel h2,
.security-panel h2,
.panel h2 {
  color: var(--ink);
  font-size: 20px;
  margin: 0 0 14px;
}
.agent-panel {
  background: var(--surface);
}
.agent-panel p,
.download-panel p,
.security-panel p,
.mini-panel p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.posture {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 180px minmax(0, 1fr);
}
.posture-score {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 160px;
  place-items: center;
  text-align: center;
}
.posture-score strong {
  color: var(--ink);
  display: block;
  font-size: 58px;
  line-height: 1;
}
.posture-score span { color: var(--muted); font-weight: 800; }

.posture-bars { display: grid; gap: 12px; }
.bar-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 88px minmax(0, 1fr) 34px;
}
.bar-row span:first-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.bar-row strong { text-align: right; }
.bar-track {
  background: var(--line);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.bar-track span {
  display: block;
  height: 100%;
  min-width: 5px;
}

.trend-chart { margin-top: 18px; }
.trend-svg {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 90px;
  width: 100%;
}
.trend-line {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}
.trend-line.coverage { stroke: var(--primary); }

.topology-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 220px minmax(0, 1fr);
}
@media (max-width: 720px) {
  .topology-layout { grid-template-columns: 1fr; }
}
.topology-readiness-panel .section-head {
  align-items: flex-start;
}
.topology-readiness-score {
  font-size: 13px;
  min-width: 58px;
  text-align: center;
}
.topology-readiness-ready { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); }
.topology-readiness-partial { background: color-mix(in srgb, var(--warning) 16%, var(--surface)); color: var(--warning); }
.topology-readiness-setup_needed { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.topology-readiness-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.topology-readiness-check {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 126px;
  padding: 12px;
  text-decoration: none;
}
.topology-readiness-check:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.topology-readiness-check.is-ok { border-left-color: var(--good); }
.topology-readiness-check.is-warn { border-left-color: var(--warning); }
.topology-readiness-check.is-todo { border-left-color: var(--danger); }
.topology-readiness-check span {
  color: var(--ink);
  font-weight: 800;
}
.topology-readiness-check strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}
.topology-readiness-check.is-ok strong { color: var(--good); }
.topology-readiness-check.is-warn strong { color: var(--warning); }
.topology-readiness-check.is-todo strong { color: var(--danger); }
.topology-readiness-check small {
  color: var(--muted);
  display: -webkit-box;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
/* Collapsible setup/info panels: keep the map the primary content, with the
   readiness score and secondary notes one click away instead of filling the
   screen above the graph. */
.topology-readiness-check {
  min-height: 0;
  padding: 10px;
}
.topology-readiness-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  list-style: none;
}
.topology-readiness-summary::-webkit-details-marker { display: none; }
.topology-readiness-summary h2 {
  flex: 1;
  margin: 0;
  min-width: 0;
}
.topology-readiness-caret {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  flex-shrink: 0;
  font-size: 11px;
  height: 26px;
  justify-content: center;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  width: 26px;
}
.topology-readiness-summary:hover h2 { color: var(--primary); }
.topology-readiness-summary:hover .topology-readiness-caret {
  border-color: var(--primary);
  color: var(--primary);
}
.topology-readiness-panel[open] .topology-readiness-caret,
.topology-secondary[open] .topology-readiness-caret { transform: rotate(90deg); }
.topology-readiness-lead { margin: 12px 0; }
.topology-readiness-grid { margin-top: 4px; }
.topology-secondary p { margin-top: 12px; }
.topology-secondary-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}
.topology-filter-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  max-height: clamp(560px, 72vh, 900px);
  overflow-y: auto;
  padding: 12px;
}
.topology-filter-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-transform: uppercase;
  color: var(--muted);
}
.topology-filter-panel details { border-top: 1px solid var(--line); padding: 8px 0; }
.topology-filter-panel details:first-of-type { border-top: none; }
.topology-filter-panel summary {
  cursor: pointer;
  font-weight: 600;
  padding: 2px 0;
}
.topology-filter-item {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 7px;
  padding: 3px 0 3px 6px;
}
.topology-filter-clear { margin-top: 10px; width: 100%; }
.topology-graph-host { min-width: 0; }

.topology-summary-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 12px;
}
.topology-summary-strip span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  display: grid;
  font-size: 11px;
  gap: 2px;
  letter-spacing: 0.03em;
  padding: 10px 12px;
  text-transform: uppercase;
}
.topology-summary-strip strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-transform: none;
}

/* --- Horizontal control bar (above the full-width canvas) --------------- */
.topology-controlbar {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding: 7px 10px;
}
.topology-controlbar-spacer { flex: 1 1 12px; }
.topology-menu { position: relative; }
.topology-menu-btn {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  gap: 6px;
  padding: 6px 10px;
}
.topology-menu-btn b { color: var(--primary); font-weight: 600; }
.topology-menu-btn:hover { border-color: var(--primary); }
.topology-menu-pop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow-md);
  display: none;
  left: 0;
  min-width: 176px;
  padding: 6px;
  position: absolute;
  top: calc(100% + 4px);
  z-index: 6;
}
.topology-menu:hover .topology-menu-pop,
.topology-menu:focus-within .topology-menu-pop { display: block; }
.topology-menu-pop button {
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 12px;
  padding: 7px 10px;
  text-align: left;
  width: 100%;
}
.topology-menu-pop button:hover { background: var(--surface-2); }
.topology-menu-pop button.is-on { color: var(--primary); font-weight: 600; }
.topology-menu-legend { min-width: 210px; padding: 10px 12px; }
.topology-legend-gap { margin-top: 6px; }

/* --- Horizontal filter bar (workspace view) ---------------------------- */
.topology-layout--stacked { display: block; }
.topology-filter-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.topology-filter-bar-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-right: 2px;
  text-transform: uppercase;
}
.topology-filter-drop { position: relative; }
.topology-filter-drop > summary {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
  list-style: none;
  padding: 6px 10px;
}
.topology-filter-drop > summary::-webkit-details-marker { display: none; }
.topology-filter-drop[open] > summary { border-color: var(--primary); color: var(--primary); }
.topology-filter-drop-pop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow-md);
  left: 0;
  max-height: 300px;
  min-width: 210px;
  overflow: auto;
  padding: 8px;
  position: absolute;
  top: calc(100% + 4px);
  z-index: 6;
}
.topology-filter-bar .topology-filter-clear { margin: 0 0 0 auto; width: auto; }

.topology-map-shell {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 300px;
}
@media (max-width: 980px) {
  .topology-map-shell,
  .topology-summary-strip {
    grid-template-columns: 1fr;
  }
}

/* --- Canvas: a pan/zoom dot-grid stage ---------------------------------- */
.topology-canvas {
  background-color: var(--surface-2);
  background-image: radial-gradient(color-mix(in srgb, var(--primary) 13%, transparent) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: grab;
  height: clamp(560px, 72vh, 900px);
  overflow: hidden;
  position: relative;
  touch-action: none;
  width: 100%;
}
.topology-canvas.is-panning { cursor: grabbing; }
.topology-viewport {
  left: 0;
  position: absolute;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.topology-edges-svg { left: 0; overflow: visible; position: absolute; top: 0; }

/* --- Edges (curved paths) ---------------------------------------------- */
.topology-edge {
  fill: none;
  stroke: color-mix(in srgb, var(--ink) 22%, var(--surface-2));
  stroke-width: 1.6;
  transition: stroke 0.12s ease, stroke-width 0.12s ease, opacity 0.12s ease;
}
.topology-edge.is-hl { stroke: var(--primary); stroke-width: 2.6; }
.topology-edge.is-faded { opacity: 0.12; }
.topology-edge-tcp_dependency { stroke-dasharray: 5 5; }
.topology-edge-hypervisor_host { stroke: color-mix(in srgb, var(--primary) 55%, var(--muted)); }
.topology-edge-domain_member { stroke: var(--good); stroke-dasharray: 1 5; stroke-linecap: round; }
.topology-edge-network_link { stroke: var(--primary); stroke-width: 2; }
.topology-edge-physical_link { stroke-width: 2.6; }
.topology-edge-access_link { stroke-width: 1.3; }
.topology-edge-hit { fill: none; stroke: transparent; stroke-width: 16; }
.topology-edge-midpoint {
  fill: var(--surface);
  stroke: var(--primary);
  stroke-width: 1.4;
}
.topology-edge-midpoint:hover { fill: var(--primary); }
.topology-edge-label {
  fill: var(--muted);
  font-family: var(--font-mono, ui-monospace, Consolas, monospace);
  font-size: 10.5px;
  paint-order: stroke;
  pointer-events: none;
  stroke: var(--surface-2);
  stroke-linejoin: round;
  stroke-width: 4px;
}

/* --- Site zones (draggable + resizable containers) --------------------- */
.topology-zone {
  fill: color-mix(in srgb, var(--primary) 8%, var(--surface));
  stroke: var(--primary);
  stroke-dasharray: 6 5;
  stroke-width: 1.3;
  opacity: 0.75;
}
.topology-zone.is-cloud {
  fill: color-mix(in srgb, var(--primary) 5%, var(--surface));
  stroke: color-mix(in srgb, var(--primary) 55%, var(--muted));
}
.topology-zone-label {
  fill: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topology-zone-label.is-cloud { fill: color-mix(in srgb, var(--primary) 55%, var(--muted)); }
.topology-zone-grip { fill: var(--primary); opacity: 0.10; }
.topology-zone-grip:hover { opacity: 0.2; }
.topology-zone-handle { fill: var(--primary); opacity: 0.5; }
.topology-zone-handle:hover { opacity: 0.95; }
.topology-zone-handle.is-cloud,
.topology-zone-grip.is-cloud { fill: color-mix(in srgb, var(--primary) 55%, var(--muted)); }
.topology-truncated-note { color: var(--warning); }

/* --- Nodes -------------------------------------------------------------- */
.topology-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tc, var(--line));
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  min-width: 122px;
  max-width: 200px;
  padding: 7px 11px 7px 9px;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: box-shadow 0.14s ease, border-color 0.14s ease, opacity 0.12s ease;
}
.topology-card:hover { box-shadow: var(--shadow-md); }
.topology-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent), var(--shadow-md); }
.topology-card.is-faded { opacity: 0.28; }
/* Semantic zoom: below its detail threshold a card collapses into a small
   status-colored dot (the always-present .topology-dot-proxy). */
.topology-dot-proxy {
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--surface-2);
  display: none;
  height: 15px;
  width: 15px;
}
.topology-dot-proxy.topology-status-ok,
.topology-dot-proxy.topology-status-low { background: var(--good); }
.topology-dot-proxy.topology-status-medium,
.topology-dot-proxy.topology-status-high { background: var(--warning); }
.topology-dot-proxy.topology-status-critical { background: var(--danger); }
.topology-card.is-dot {
  background: transparent;
  border: none;
  box-shadow: none;
  min-width: 0;
  padding: 0;
}
.topology-card.is-dot .topology-card-row { display: none; }
.topology-card.is-dot .topology-dot-proxy { display: block; }
.topology-card.is-selected.is-dot .topology-dot-proxy { box-shadow: 0 0 0 3px var(--surface-2), 0 0 0 5px var(--primary); }
.topology-card-connected { color: var(--primary); font-weight: 600; }
.topology-card-row { align-items: center; display: flex; gap: 9px; }
.topology-card-icon {
  align-items: center;
  background: var(--surface-2);
  border-radius: 8px;
  display: inline-flex;
  flex-shrink: 0;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.topology-card-body { min-width: 0; }
.topology-card-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topology-card-sub {
  color: var(--muted);
  font-size: 10.5px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topology-card-location { font-style: italic; }
.topology-status-dot {
  border-radius: 50%;
  flex-shrink: 0;
  height: 9px;
  margin-left: auto;
  width: 9px;
}
.topology-status-dot.topology-status-ok,
.topology-status-dot.topology-status-low { background: var(--good); }
.topology-status-dot.topology-status-medium,
.topology-status-dot.topology-status-high { background: var(--warning); }
.topology-status-dot.topology-status-critical { background: var(--danger); }

.topology-hypervisor-card { max-width: none; padding: 0; }
.topology-hypervisor-header { padding: 8px 10px; }
.topology-hypervisor-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 13px;
  height: 18px;
  line-height: 1;
  width: 18px;
}
.topology-chip {
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--muted);
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  margin-left: auto;
  padding: 1px 7px;
}
.topology-hypervisor-children {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 340px;
  padding: 8px;
}
.topology-card--mini {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  gap: 6px;
  min-width: 0;
  padding: 5px 7px;
  position: static;
  transform: none;
  width: 150px;
}
.topology-card--mini .topology-card-icon { background: var(--surface); height: 22px; width: 22px; }

/* --- Floating controls -------------------------------------------------- */
.topology-float {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  position: absolute;
  z-index: 4;
}
.topology-toolbar { left: 14px; top: 14px; overflow: hidden; width: 208px; }
.topology-tb-sec { border-bottom: 1px solid var(--line); padding: 10px 12px; }
.topology-tb-sec:last-child { border-bottom: none; }
.topology-tb-sec h4 {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.topology-seg {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 2px;
  padding: 2px;
}
.topology-seg button {
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  flex: 1;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 4px;
}
.topology-seg button.is-on { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--primary); }
.topology-zoomrow { align-items: center; display: flex; gap: 6px; }
.topology-zoomrow button {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  height: 30px;
  justify-content: center;
  width: 30px;
}
.topology-zoomrow button:hover { border-color: var(--primary); color: var(--primary); }
.topology-fit-btn { font-size: 11px !important; font-weight: 600; width: auto !important; padding: 0 10px; }
.topology-zval { color: var(--muted); font-family: var(--font-mono, ui-monospace, Consolas, monospace); font-size: 11px; min-width: 40px; text-align: center; }
.topology-legend-rows { display: grid; gap: 6px; }
.topology-legend-row { align-items: center; color: var(--muted); display: flex; font-size: 11px; gap: 8px; }
.topology-legend-line { border-top: 2px solid color-mix(in srgb, var(--ink) 22%, var(--surface-2)); width: 22px; }
.topology-legend-line.tcp { border-top-style: dashed; }
.topology-legend-line.vm { border-color: color-mix(in srgb, var(--primary) 55%, var(--muted)); }
.topology-legend-line.physical { border-top-width: 3px; }
.topology-legend-line.access { border-top-width: 1.5px; }
.topology-legend-line.net { border-color: var(--primary); }
.topology-legend-line.domain { border-top-style: dotted; border-color: var(--good); }
.topology-legend-toggle { cursor: pointer; }
.topology-legend-toggle input { accent-color: var(--primary); cursor: pointer; flex: none; height: 13px; margin: 0; width: 13px; }
.topology-legend-status { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.topology-legend-dot { border-radius: 50%; height: 9px; width: 9px; }
.topology-legend-dot.topology-status-ok { background: var(--good); }
.topology-legend-dot.topology-status-medium { background: var(--warning); }
.topology-legend-dot.topology-status-critical { background: var(--danger); }
.topology-tb-export { display: flex; gap: 8px; }
.topology-export-button {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
}
.topology-export-button:hover { border-color: var(--primary); color: var(--primary); }

/* --- Minimap + hint ----------------------------------------------------- */
.topology-minimap {
  bottom: 14px;
  height: 132px;
  overflow: hidden;
  padding: 0;
  right: 14px;
  width: 200px;
  z-index: 4;
}
.topology-minimap svg { cursor: pointer; display: block; height: 100%; width: 100%; }
.topology-mm-node.topology-status-ok { fill: var(--good); }
.topology-mm-node.topology-status-medium,
.topology-mm-node.topology-status-high { fill: var(--warning); }
.topology-mm-node.topology-status-critical { fill: var(--danger); }
.topology-mm-node { fill: var(--muted); }
.topology-mm-view { fill: color-mix(in srgb, var(--primary) 12%, transparent); stroke: var(--primary); stroke-width: 1.5; }
.topology-hint {
  align-items: center;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: 20px;
  bottom: 14px;
  box-shadow: var(--shadow-sm);
  color: var(--muted);
  display: flex;
  font-size: 11px;
  gap: 14px;
  left: 14px;
  padding: 6px 13px;
  position: absolute;
  z-index: 4;
}
.topology-hint b { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .topology-minimap, .topology-hint { display: none; } }

/* --- Inspector ---------------------------------------------------------- */
.topology-inspector {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  height: clamp(560px, 72vh, 900px);
  overflow-y: auto;
  padding: 0;
}
.topology-inspector > .table-note { padding: 22px 16px; text-align: center; }
.topology-inspector-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 11px;
  padding: 14px 15px;
}
.topology-inspector-icon {
  align-items: center;
  background: color-mix(in srgb, var(--tc, var(--muted)) 14%, var(--surface));
  border-radius: 10px;
  color: var(--tc, var(--muted));
  display: inline-flex;
  flex-shrink: 0;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.topology-inspector-head strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topology-inspector-head small { color: var(--muted); display: block; font-family: var(--font-mono, ui-monospace, Consolas, monospace); margin-top: 2px; }
.topology-inspector-pill {
  border-radius: 20px;
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  margin-top: 7px;
  padding: 2px 9px;
}
.topology-inspector-pill.topology-status-ok { background: color-mix(in srgb, var(--good) 15%, var(--surface)); color: var(--good); }
.topology-inspector-pill.topology-status-medium,
.topology-inspector-pill.topology-status-high { background: color-mix(in srgb, var(--warning) 18%, var(--surface)); color: var(--warning); }
.topology-inspector-pill.topology-status-critical { background: color-mix(in srgb, var(--danger) 15%, var(--surface)); color: var(--danger); }
.topology-inspector-grid {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.topology-inspector-grid span {
  border-right: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  font-size: 9.5px;
  gap: 3px;
  letter-spacing: 0.04em;
  padding: 11px 6px;
  text-align: center;
  text-transform: uppercase;
}
.topology-inspector-grid span:last-child { border-right: none; }
.topology-inspector-grid strong { color: var(--ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.topology-inspector-meta { padding: 12px 15px 4px; }
.topology-inspector-meta .kv { display: flex; font-size: 11.5px; gap: 10px; justify-content: space-between; padding: 3px 0; }
.topology-inspector-meta .kv span { color: var(--muted); }
.topology-inspector-meta .kv strong { color: var(--ink); font-weight: 500; text-align: right; }
.topology-inspector-impact { color: var(--muted); line-height: 1.45; margin: 4px 15px 0; }
.topology-inspector-links {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 10px 15px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}
.topology-inspector-links li {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  font-size: 11.5px;
  gap: 8px;
  padding: 5px 6px;
}
.topology-inspector-links li:hover { background: var(--surface-2); }
.topology-link-ico {
  align-items: center;
  background: color-mix(in srgb, var(--tc, var(--muted)) 14%, var(--surface));
  border-radius: 6px;
  color: var(--tc, var(--muted));
  display: inline-flex;
  flex-shrink: 0;
  height: 20px;
  justify-content: center;
  width: 20px;
}
.topology-link-name { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topology-link-rel { color: var(--muted); flex-shrink: 0; font-family: var(--font-mono, ui-monospace, Consolas, monospace); font-size: 10px; margin-left: auto; }
.topology-inspector-open { display: block; margin: 12px 15px; text-align: center; width: calc(100% - 30px); }

.topology-edge-popover {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 12px;
  padding: 8px 10px;
  position: absolute;
  z-index: 6;
}
.trend-meta {
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  margin-top: 6px;
}

.agent-steps,
.security-grid {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.agent-steps span,
.security-grid span {
  background: var(--tint-info-bg);
  border: 1px solid var(--tint-info-border);
  border-radius: 8px;
  color: var(--tint-info-ink);
  font-weight: 800;
  padding: 10px 12px;
}
.security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agent-downloads {
  align-items: stretch;
  margin: 18px 0;
}
.workflow-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.workflow-grid.onboarding-flow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.workflow-grid article {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.workflow-grid strong {
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}
.workflow-grid p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.stat-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}
.stat-card {
  min-height: 0;
  padding: 0;
}
.stat-card span,
.mini-panel span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.stat-card strong {
  color: var(--ink);
  display: block;
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.stat-card small,
.mini-panel small {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  margin-top: 8px;
}

.panel {
  margin-bottom: 30px;
  padding: 0;
}
.scroll-indicator {
  background: var(--line);
  border-radius: 999px;
  height: 4px;
  margin-top: 12px;
  overflow: hidden;
  position: sticky;
  left: 0;
}
.scroll-indicator[hidden] { display: none; }
.scroll-indicator-thumb {
  background: var(--primary);
  border-radius: 999px;
  height: 100%;
  width: 40%;
}
.subpanel {
  background: var(--surface-2);
  border: none;
  border-radius: 8px;
  padding: 16px;
}
.settings-stack {
  display: grid;
  gap: 14px;
}
.plan-picker {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 14px;
}
.plan-summary {
  align-items: start;
  background: #17202b;
  border-radius: 8px;
  color: #e5edf5;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.4fr);
  margin-bottom: 16px;
  padding: 18px;
}
.plan-summary strong {
  color: #fff;
  display: block;
  font-size: 24px;
  margin: 6px 0;
}
.plan-summary p {
  color: #c7d4e4;
  line-height: 1.5;
  margin: 0;
}
.plan-summary-metrics {
  display: grid;
  gap: 8px;
}
.plan-summary-metrics span,
.support-meta span {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 8px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
}
.plan-summary .plan-summary-metrics span {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  color: #dbeafe;
}
.plan-delete-form {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}
.billing-webhook-box {
  background: var(--surface-2);
  border: 1px solid #d7dee8;
  border-radius: 8px;
  margin: 14px 0;
  padding: 14px;
}
.billing-webhook-box strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.panel.compact { padding: 0; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1fr 1fr; gap: 44px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 28px; }
.align-start { align-items: start; }
.mini-panel { min-height: 0; padding: 18px; background: var(--surface-2); border-radius: var(--radius-lg); }
.mini-panel strong {
  color: var(--ink);
  display: block;
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  margin-bottom: 8px;
}

.settings-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}
.settings-tabs a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 14px;
}
.settings-tabs a:hover {
  color: var(--ink);
  text-decoration: none;
}
.settings-tabs a.is-active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

.blade-backdrop {
  background: rgba(15, 23, 42, 0.45);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 220ms ease;
  z-index: 60;
}
.blade-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.blade-panel {
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  height: 100vh;
  overflow-y: auto;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform 240ms ease;
  width: min(680px, 92vw);
  z-index: 61;
}
.blade-panel.is-open { transform: translateX(0); }
.blade-panel-close {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  margin-bottom: 12px;
  width: 34px;
}
.blade-panel-close svg { height: 16px; width: 16px; }
.blade-panel-body .page-head { margin-top: 0; }

.summary-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.summary-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.summary-item strong {
  color: var(--ink);
  display: block;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.summary-item small {
  color: var(--muted);
  display: block;
  line-height: 1.4;
  margin-top: 4px;
}

.panel-section-group {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr 1fr;
}
.panel-subsection h3 {
  margin: 0 0 14px;
}

.panel-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.panel-tabs button {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
}
.panel-tabs button:hover { color: var(--ink); }
.panel-tabs button.is-active {
  border-bottom-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 720px) {
  .blade-panel { padding: 18px; width: 100vw; }
  .panel-section-group { grid-template-columns: 1fr; gap: 28px; }
}

.cloud-resource-type-head {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 15px;
  gap: 10px;
  margin: 22px 0 10px;
}
.cloud-resource-type-head:first-of-type { margin-top: 4px; }

.section-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-head h2 { margin: 0; }

/* Coloured section headers (Azure style): a short accent keyline before the
   title. Default accent is the primary blue; opt into another hue with a
   .sec-* class on the heading. */
.panel h2,
.section-head h2,
.panel-subsection h3 {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  gap: 9px;
}
.panel h2::before,
.section-head h2::before,
.panel-subsection h3::before {
  background: var(--sec, var(--primary));
  border-radius: 2px;
  content: "";
  flex-shrink: 0;
  height: 15px;
  width: 3px;
}
.sec-teal { --sec: var(--sec-teal); }
.sec-amber { --sec: var(--sec-amber); }
.sec-blue { --sec: var(--sec-blue); }
.sec-violet { --sec: var(--sec-violet); }
.sec-teal.tint-head { color: var(--sec-teal); }
.sec-amber.tint-head { color: var(--sec-amber); }
.sec-blue.tint-head { color: var(--sec-blue); }
.sec-violet.tint-head { color: var(--sec-violet); }

table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  border-bottom: 1px solid var(--line);
  min-height: 44px;
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
}
tr:last-child td { border-bottom: 0; }

/* Property tables (label -> value, no <thead>): line-free like Azure's
   Eigenschaften; the label is a plain muted term, not an uppercase header. */
.panel table:not(:has(thead)) th,
.panel table:not(:has(thead)) td {
  border-bottom: none;
  min-height: 0;
  padding: 6px 0;
}
.panel table:not(:has(thead)) th {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: var(--font-weight-normal);
  padding-right: 20px;
  text-transform: none;
  white-space: nowrap;
  width: 1%;
}
.panel table:not(:has(thead)) td { color: var(--ink); }
.panel table:not(:has(thead)) tbody tr:hover { background: transparent; }
tbody tr:hover { background: var(--surface-2); }
tbody tr.is-selected { background: rgba(37, 99, 235, 0.08); }

/* Opt-in table shell for pages migrated to the new data-table pattern
   (not yet adopted anywhere - see design-system phase 2). */
.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.empty {
  color: var(--muted);
  padding: 26px 8px;
  text-align: center;
}

.badge {
  border-radius: var(--radius-pill);
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}
.status { background: #566171; }
.st-covered { background: #15803d; }
.st-partial { background: #f97316; }
.st-gap { background: #dc2626; }
.st-not_assessed { background: #64748b; }
.st-info { background: #2563eb; }
.sev-critical { background: #7f1d1d; }
.sev-high { background: #dc2626; }
.sev-medium { background: #f97316; }
.sev-low { background: #2563eb; }
.sev-info { background: #64748b; }
.confidence-high { background: #15803d; }
.confidence-medium { background: #f97316; }
.confidence-low { background: #dc2626; }
.score-breakdown { font-size: 12px; margin-top: 6px; }
.score-breakdown summary { color: var(--primary); cursor: pointer; font-weight: 600; }
.score-breakdown ul { list-style: none; margin: 6px 0 0; padding: 0; }
.score-breakdown li { color: var(--muted); padding: 2px 0; }
.score-breakdown .positive { color: #dc2626; font-weight: 700; }
.score-breakdown .negative { color: #15803d; font-weight: 700; }

.severity-list { display: grid; gap: 10px; }
/* Label + value are laid out as two adjacent columns so the value sits just
   after its label (near the left) instead of being pushed to the far right of
   a wide row, which made long rows tiring to read left-to-right. */
.severity-list div {
  align-items: baseline;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  column-gap: 18px;
  display: grid;
  grid-template-columns: minmax(0, 20em) auto;
  padding: 9px 12px;
}
.severity-list div > strong {
  text-align: left;
}
.chip {
  background: var(--tint-info-bg);
  border: 1px solid var(--tint-info-border);
  border-radius: 5px;
  color: var(--tint-info-ink);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin: 2px 4px 2px 0;
  padding: 5px 7px;
}
.token-preview {
  background: var(--surface-2);
  border: 1px solid #d7dee8;
  border-radius: 5px;
  color: #17202b;
  display: inline-block;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 5px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 7px;
}
.asset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.asset-meta span {
  background: var(--tint-info-bg);
  border: 1px solid var(--tint-info-border);
  border-radius: 6px;
  color: var(--tint-info-ink);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}
.table-note {
  color: var(--muted);
  line-height: 1.5;
  margin: 14px 0 0;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid.one { grid-template-columns: 1fr; }
.form-grid label,
.inline-form label {
  color: var(--ink);
  display: grid;
  font-weight: 800;
  gap: 7px;
}
.form-grid .wide { grid-column: 1 / -1; }

/* New-scan config: field groups that switch on/off with the chosen scan type.
   A disabled <fieldset> dims and locks every control inside (Azure-style
   "not applicable here"), instead of the fields vanishing. */
.scan-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin: 0;
  min-width: 0;
  padding: 12px 16px 16px;
}
.scan-group > .form-grid { margin-top: 6px; }
.scan-group legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  padding: 0 6px;
}
.scan-group:disabled {
  opacity: 0.5;
}
.scan-group-tag {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.scan-mode-hint {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  padding: 10px 12px;
}
.admin-checks {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.admin-checks label { font-weight: 600; }
.checkbox-row {
  align-items: start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 12px;
}
.checkbox-row input {
  min-height: 18px;
  margin-top: 2px;
  width: 18px;
}
.checkbox-row span {
  color: var(--text);
  font-weight: 700;
  line-height: 1.45;
}
input,
select,
textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  min-height: 40px;
  padding: 9px 11px;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
  outline: 0;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
  height: 16px;
  min-height: 0;
  padding: 0;
  width: 16px;
}
textarea { resize: vertical; }
.inline-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.inline-form label { min-width: 180px; }

.check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.check-list li {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.credential-note {
  background: var(--tint-warning-bg);
  border: 1px solid var(--tint-warning-border);
  border-radius: 8px;
  margin-top: 16px;
  padding: 12px;
}
.credential-note strong { color: var(--tint-warning-ink); }
.credential-note p {
  color: var(--tint-warning-ink);
  line-height: 1.45;
  margin: 6px 0 0;
}
.credential-type-group { margin-top: 20px; }
.credential-type-group h3 {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.credential-type {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px 16px;
}
.credential-type summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.credential-type summary::-webkit-details-marker { display: none; }
.credential-type summary::before { color: var(--primary); content: "+ "; }
.credential-type[open] summary::before { content: "\2212 "; }
.credential-type form { margin-top: 14px; }
.log-box {
  background: #111827;
  border-radius: 8px;
  color: #e5e7eb;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  max-height: 280px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.alert,
.notice {
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 12px 14px;
}
.alert {
  background: var(--tint-danger-bg);
  border: 1px solid var(--tint-danger-border);
  color: var(--tint-danger-ink);
}
.notice {
  background: var(--tint-info-bg);
  border: 1px solid var(--tint-info-border);
  color: var(--tint-info-ink);
}

.auth-body {
  background:
    linear-gradient(90deg, rgba(23, 32, 43, 0.98) 0%, rgba(23, 32, 43, 0.98) 44%, transparent 44%),
    radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.12), transparent 30%),
    var(--bg);
  min-height: 100vh;
}
.auth-shell {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 420px;
  margin: 0 auto;
  max-width: 1120px;
  min-height: 100vh;
  padding: 36px;
}
.auth-product {
  background: rgba(23, 32, 43, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  max-width: 590px;
  padding: 28px;
}
.auth-product h1 {
  font-size: 46px;
  line-height: 1.05;
  margin: 36px 0 16px;
}
.auth-product p {
  color: #d7e0ea;
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}
.auth-assurances {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.auth-assurances span {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #e8f5f3;
  font-weight: 800;
  padding: 11px 12px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 26px;
}
.auth-card h2 {
  color: var(--ink);
  font-size: 26px;
  margin: 0 0 18px;
}
.auth-switch {
  color: var(--muted);
  margin: 18px 0 0;
}
.social-login {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-bottom: 14px;
}
.oauth-brand-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid #747775;
  border-radius: 4px;
  box-sizing: border-box;
  color: #1f1f1f;
  cursor: pointer;
  display: flex;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  height: 41px;
  justify-content: center;
  letter-spacing: 0.25px;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: background-color 218ms ease, border-color 218ms ease, box-shadow 218ms ease;
  user-select: none;
  white-space: nowrap;
  width: 215px;
}
.oauth-brand-content {
  align-items: center;
  display: flex;
  flex-flow: row nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}
.oauth-brand-icon {
  height: 20px;
  margin-right: 10px;
  min-width: 20px;
  width: 20px;
}
.oauth-brand-icon svg {
  height: 20px;
  width: 20px;
}
.oauth-brand-label {
  flex-grow: 1;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oauth-brand-button-state {
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity 218ms ease;
}
.oauth-google:hover {
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.oauth-google:hover .oauth-brand-button-state,
.oauth-google:focus .oauth-brand-button-state,
.oauth-google:active .oauth-brand-button-state {
  background-color: #303030;
  opacity: 0.08;
}
.oauth-microsoft-lockup {
  border: 0;
  padding: 0;
}
.oauth-microsoft-lockup img {
  display: block;
  height: 41px;
  width: 215px;
}
.oauth-generic {
  border-color: #d9e0e8;
}
.divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  margin: 12px 0 18px;
  text-transform: uppercase;
}
.divider::before,
.divider::after {
  background: var(--line);
  content: "";
  height: 1px;
}


.public-body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.public-body > main {
  flex: 1;
  min-width: 0;
}
.public-nav {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.public-brand { color: var(--ink); }
.public-brand .brand-mark { color: #fff; }
.public-brand .brand-logo {
  height: 50px;
  max-width: 260px;
}
.public-nav-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}
.public-nav-actions a:not(.button) {
  color: var(--text);
  font-weight: 700;
}

.public-section {
  margin: 0 auto;
  max-width: 1200px;
  padding: 72px 40px;
}
.public-section-head {
  margin-bottom: 26px;
  max-width: 780px;
}
.public-section h2 {
  color: var(--ink);
  font-size: 36px;
  line-height: 1.14;
  margin: 8px 0 0;
}

/* Scope-limit list on the regulatory landing pages (NIS2, BSI IT-Grundschutz). */
.landing-limits {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  max-width: 900px;
  padding: 0;
}
.landing-limits li {
  background: var(--surface-muted, #f8f9fb);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent, #0f6cbd);
  border-radius: 6px;
  color: var(--ink-muted, #4a4a4a);
  font-size: 14px;
  line-height: 1.55;
  padding: 14px 18px;
}

/* Hero v2 */
.hero-v2 {
  background: linear-gradient(160deg, #eef2ff 0%, #f8f9fb 55%, #f8f9fb 100%);
  border-bottom: 1px solid var(--line);
  padding: 64px 40px;
}
.hero-v2-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.05fr);
  margin: 0 auto;
  max-width: 1280px;
}
.hero-v2 .public-copy {
  color: var(--text);
  max-width: 620px;
}
.hero-v2 .public-copy .eyebrow { color: var(--primary); }
.hero-v2 .public-copy h1 {
  color: var(--ink);
  font-size: 52px;
  line-height: 1.05;
  margin: 14px 0 18px;
}
.hero-v2 .public-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}
.hero-v2 .public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-v2 .public-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-v2 .public-proof span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
}

/* Hero product image (real dashboard screenshot on a monitor, responsive srcset) */
.hero-device-image {
  margin: 0 auto;
  max-width: 720px;
}
.hero-device-image img {
  display: block;
  height: auto;
  width: 100%;
}

.help-hero .hero-v2-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
}
.help-hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: grid;
  padding: 10px 22px;
}
.help-hero-panel a {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  display: grid;
  gap: 5px;
  padding: 15px 0;
}
.help-hero-panel a:last-child { border-bottom: 0; }
.help-hero-panel a:hover {
  color: var(--primary);
  text-decoration: none;
}
.help-hero-panel strong {
  color: var(--ink);
  font-size: 16px;
}
.help-hero-panel span {
  color: var(--muted);
  line-height: 1.45;
}

/* Sticky pill sub-nav with scroll-spy */
.public-subnav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin: -28px auto 0;
  max-width: max-content;
  padding: 6px;
  position: sticky;
  top: 88px;
  z-index: 25;
}
.public-subnav a {
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
}
.public-subnav a:hover {
  background: var(--surface-2);
  text-decoration: none;
}
.public-subnav a.is-active {
  background: var(--surface-2);
  color: var(--primary);
}

/* Platform section */
.platform-cards {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.platform-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.platform-cards.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.platform-cards article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
}
.platform-cards span {
  color: var(--primary);
  display: block;
  font-weight: 900;
  margin-bottom: 10px;
}
.platform-cards strong {
  color: var(--ink);
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
.platform-cards p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.operating-views-section {
  border-top: 1px solid var(--line);
}
.page-crumbs { color: var(--muted); display: flex; font-size: 12px; font-weight: 700; gap: 6px; margin-bottom: 6px; }
.page-crumbs span + span::before, .page-crumbs a + span::before { content: "/"; margin-right: 6px; opacity: .6; }
.page-crumbs a { color: var(--muted); }
.page-purpose { max-width: 760px; }
.dashboard-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 4px; margin: -4px 0 20px; }
.dashboard-tabs a { border-bottom: 2px solid transparent; color: var(--muted); font-weight: 700; padding: 9px 12px; }
.dashboard-tabs a:hover { color: var(--ink); text-decoration: none; }
.dashboard-tabs a.is-active { border-color: var(--primary); color: var(--primary); }
.stat-link { color: inherit; display: block; }
.stat-link:hover { background: var(--surface-2); text-decoration: none; }
.operating-story {
  display: grid;
  align-items: stretch;
  gap: 40px;
  grid-template-columns: minmax(250px, 0.74fr) minmax(0, 1.46fr);
}
.operating-story-copy {
  align-self: center;
}
.operating-story-index {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}
.operating-story-copy h3 {
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
}
.operating-story-description {
  color: var(--muted);
  line-height: 1.55;
  margin: 12px 0 24px;
  max-width: 405px;
  min-height: 74px;
}
.operating-story-steps {
  border-top: 1px solid var(--line);
}
.operating-story-steps button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 12px;
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 43px;
  padding: 8px 8px;
  text-align: left;
  transition: background-color 180ms ease, color 180ms ease;
  width: 100%;
}
.operating-story-steps button span {
  color: var(--disabled);
  font-size: 11px;
  font-weight: 800;
}
.operating-story-steps button strong {
  color: inherit;
  font-size: 14px;
  font-weight: 700;
}
.operating-story-steps button:hover,
.operating-story-steps button:focus-visible {
  background: var(--tint-info-bg);
  color: var(--ink);
  outline: none;
}
.operating-story-steps button:focus-visible,
.operating-story-controls button:focus-visible {
  box-shadow: var(--focus-ring);
}
.operating-story-steps button.is-active {
  background: var(--tint-info-bg);
  color: var(--ink);
}
.operating-story-steps button.is-active span {
  color: var(--primary);
}
.operating-story-controls {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 14px;
  justify-content: space-between;
  margin-top: 16px;
}
.operating-story-controls button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 7px 10px;
}
.operating-story-stage {
  min-width: 0;
}
.operating-console {
  background: #121b2a;
  border: 1px solid #2b3a50;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  color: #dbe6f4;
  min-height: 448px;
  overflow: hidden;
}
.operating-console-bar {
  align-items: center;
  border-bottom: 1px solid #2b3a50;
  color: #9fb0c7;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 10px;
  height: 42px;
  padding: 0 16px;
}
.operating-console-window {
  display: flex;
  gap: 5px;
}
.operating-console-window span {
  background: #60718a;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}
.operating-console-window span:first-child { background: #e47468; }
.operating-console-window span:nth-child(2) { background: #e0b55a; }
.operating-console-window span:last-child { background: #62bd94; }
.operating-live-state {
  align-items: center;
  color: #b8dec9;
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.operating-live-state i,
.operating-outcome-owner i,
.operating-profile-rows i,
.operating-activity-feed i {
  background: #5fc493;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 6px;
  width: 6px;
}
.operating-live-state i { animation: operating-pulse 1.8s ease-in-out infinite; }
.operating-console-body {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 406px;
}
.operating-source-rail {
  border-right: 1px solid #2b3a50;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 14px;
  position: relative;
}
.operating-rail-label,
.operating-panel-label {
  color: #7f95b2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.operating-source-node {
  align-items: center;
  background: #1b2a3e;
  border: 1px solid #39516f;
  border-radius: 50%;
  color: #cee0f5;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  position: relative;
  width: 36px;
  z-index: 1;
}
.operating-source-node::after {
  background: #75c8b3;
  border-radius: 50%;
  content: "";
  height: 6px;
  position: absolute;
  right: -3px;
  top: -2px;
  width: 6px;
}
.operating-source-line {
  background: #39516f;
  bottom: 52px;
  left: 32px;
  position: absolute;
  top: 78px;
  width: 1px;
}
.operating-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.operating-workspace-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  padding: 22px 24px 16px;
}
.operating-workspace-header div { min-width: 0; }
.operating-workspace-header div > span {
  color: #79b9ef;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.operating-workspace-header strong {
  color: #f2f6fb;
  display: block;
  font-size: 19px;
}
.operating-state-chip {
  background: #17372e;
  border: 1px solid #326a59;
  border-radius: var(--radius-pill);
  color: #a5e1c6;
  font-size: 11px;
  font-weight: 800;
  margin-left: 12px;
  padding: 5px 8px;
  white-space: nowrap;
}
.operating-visual-grid {
  display: grid;
  flex: 1;
  gap: 16px;
  grid-template-columns: minmax(148px, 1fr) minmax(150px, 1fr) minmax(120px, 0.82fr);
  padding: 0 24px 20px;
}
.operating-asset-profile,
.operating-outcome-panel {
  background: #172338;
  border: 1px solid #30435f;
  border-radius: var(--radius-sm);
  min-width: 0;
}
.operating-asset-profile { padding: 16px; }
.operating-profile-head {
  align-items: center;
  display: flex;
  gap: 10px;
}
.operating-device-mark {
  border: 2px solid #7eb9ea;
  border-radius: 3px;
  display: block;
  height: 22px;
  position: relative;
  width: 29px;
}
.operating-device-mark::after {
  border-top: 2px solid #7eb9ea;
  bottom: -6px;
  content: "";
  left: 7px;
  position: absolute;
  width: 11px;
}
.operating-profile-head strong {
  color: #f2f6fb;
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operating-profile-head span:not(.operating-device-mark) {
  color: #8ea1bc;
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.operating-profile-rows {
  border-top: 1px solid #30435f;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
}
.operating-profile-rows span {
  align-items: center;
  color: #b9c9dc;
  display: flex;
  font-size: 10px;
  gap: 7px;
}
.operating-profile-rows span:nth-child(2) i { background: #7ab7e9; }
.operating-profile-rows span:nth-child(3) i { background: #e5bd63; }
.operating-flow-map {
  min-height: 188px;
  overflow: hidden;
  position: relative;
}
.operating-flow-line {
  background: #2d6ea6;
  height: 1px;
  left: 10%;
  opacity: 0.78;
  position: absolute;
  transform-origin: left center;
  width: 76%;
}
.operating-flow-line::after {
  background: #8dcdf1;
  border-radius: 50%;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: -3px;
  width: 6px;
}
.operating-flow-line.line-one { top: 31%; transform: rotate(26deg); }
.operating-flow-line.line-two { top: 51%; transform: rotate(-20deg); }
.operating-flow-line.line-three { top: 71%; transform: rotate(17deg); }
.operating-flow-dot {
  background: #183955;
  border: 1px solid #6daee0;
  border-radius: 50%;
  height: 14px;
  position: absolute;
  width: 14px;
}
.operating-flow-dot.dot-one { left: 7%; top: 26%; }
.operating-flow-dot.dot-two { left: 8%; top: 66%; }
.operating-flow-dot.dot-three { right: 8%; top: 46%; }
.operating-flow-core {
  align-items: center;
  background: #164366;
  border: 1px solid #8acaf3;
  border-radius: 50%;
  display: flex;
  height: 46px;
  justify-content: center;
  left: calc(50% - 23px);
  position: absolute;
  top: calc(50% - 23px);
  width: 46px;
}
.operating-flow-core b {
  background: #bce8ff;
  border-radius: 50%;
  display: block;
  height: 10px;
  width: 10px;
}
.operating-flow-label {
  color: #9bb5ce;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  position: absolute;
  text-transform: uppercase;
}
.operating-flow-label.label-a { left: 0; top: 8%; }
.operating-flow-label.label-b { right: 0; top: 15%; }
.operating-flow-label.label-c { right: 1%; top: 78%; }
.operating-outcome-panel {
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.operating-outcome-panel strong {
  color: #f2f6fb;
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1;
  margin-top: 12px;
}
.operating-outcome-owner {
  align-items: flex-start;
  border-top: 1px solid #30435f;
  color: #b9c9dc;
  display: flex;
  font-size: 10px;
  gap: 7px;
  line-height: 1.35;
  margin-top: auto;
  padding-top: 14px;
}
.operating-outcome-owner i { background: #79b9ef; margin-top: 3px; }
.operating-activity-feed {
  border-top: 1px solid #2b3a50;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 14px 24px;
}
.operating-activity-feed span {
  align-items: center;
  color: #91a5be;
  display: flex;
  font-size: 10px;
  gap: 6px;
}
.operating-activity-feed span:nth-child(2) i { background: #79b9ef; }
.operating-activity-feed span:nth-child(3) i { background: #e5bd63; }
.operating-story-progress {
  background: var(--line);
  height: 3px;
  margin-top: 13px;
  overflow: hidden;
}
.operating-story-progress span {
  background: var(--primary);
  display: block;
  height: 100%;
  transform: translateX(-100%);
  width: 100%;
}
.operating-story-progress span.is-running {
  animation: operating-progress 4.8s linear forwards;
}
.operating-story[data-playing="true"] .operating-flow-line::after {
  animation: operating-signal 2.4s linear infinite;
}
.operating-story[data-playing="true"] .operating-flow-core {
  animation: operating-core 2.4s ease-in-out infinite;
}
.operating-story[data-operating-scene="1"] .operating-state-chip { background: #472b21; border-color: #966343; color: #f1c6a0; }
.operating-story[data-operating-scene="1"] .operating-outcome-owner i,
.operating-story[data-operating-scene="1"] .operating-flow-core b { background: #ef9a5b; }
.operating-story[data-operating-scene="2"] .operating-state-chip,
.operating-story[data-operating-scene="4"] .operating-state-chip { background: #17372e; border-color: #326a59; color: #a5e1c6; }
.operating-story[data-operating-scene="2"] .operating-flow-core,
.operating-story[data-operating-scene="4"] .operating-flow-core { background: #245443; border-color: #8bd3b6; }
.operating-story[data-operating-scene="3"] .operating-state-chip { background: #4a3c1d; border-color: #937d42; color: #ead48e; }
.operating-story[data-operating-scene="3"] .operating-flow-core { background: #5b4c20; border-color: #dbc36e; }
.operating-story[data-operating-scene="5"] .operating-state-chip { background: #2c3152; border-color: #616aa7; color: #c3cbff; }
.operating-story[data-operating-scene="5"] .operating-flow-core { background: #3c4773; border-color: #b8c6ff; }
@keyframes operating-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}
@keyframes operating-signal {
  0% { transform: translateX(0); }
  65%, 100% { transform: translateX(360%); }
}
@keyframes operating-core {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes operating-progress {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Operating views: a compact, animated capture of the actual console layout. */
.operating-story-status {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}
.operating-story-control-buttons {
  display: flex;
  gap: 8px;
}
.operating-story-controls .operating-story-control-buttons button {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}
.operating-story-control-buttons button span {
  font-size: 11px;
  line-height: 1;
}
.operating-story-control-buttons button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.operating-dashboard-demo {
  background: #faf9f8;
  border: 1px solid #e1dfdd;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  height: 500px;
  overflow: hidden;
  position: relative;
}
.operating-demo-sidebar {
  background: #fff;
  border-right: 1px solid #edebe9;
  color: #605e5c;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 8px;
}
.operating-demo-sidebar > img {
  height: auto;
  margin: 0 4px 8px;
  width: 82px;
}
.operating-demo-sidebar-label {
  color: #a19f9d;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
  margin: 7px 6px 2px;
  text-transform: uppercase;
}
.operating-demo-nav-item {
  align-items: center;
  border-radius: 4px;
  color: #323130;
  display: flex;
  font-size: 9px;
  font-weight: 600;
  gap: 7px;
  min-height: 24px;
  padding: 0 6px;
}
.operating-demo-nav-item i {
  border: 1px solid currentColor;
  border-radius: 2px;
  display: block;
  height: 8px;
  opacity: 0.9;
  width: 8px;
}
.operating-demo-nav-item svg {
  flex: 0 0 12px;
  height: 12px;
  opacity: 0.95;
  width: 12px;
}
.operating-story[data-dashboard-screen="overview"] .operating-demo-nav-dashboard,
.operating-story[data-dashboard-screen="assets"] .operating-demo-nav-assets,
.operating-story[data-dashboard-screen="findings"] .operating-demo-nav-findings,
.operating-story[data-dashboard-screen="compliance"] .operating-demo-nav-compliance,
.operating-story[data-dashboard-screen="reports"] .operating-demo-nav-reports,
.operating-story[data-dashboard-screen="workspace"] .operating-demo-nav-agents {
  background: #f3f9fd;
  box-shadow: inset 2px 0 0 #0078d4;
  color: #0f4a86;
}
.operating-demo-main {
  background: #fff;
  min-width: 0;
  overflow: hidden;
}
.operating-demo-topbar {
  align-items: center;
  border-bottom: 1px solid #dfe6ee;
  color: #637184;
  display: flex;
  font-size: 10px;
  font-weight: 700;
  gap: 12px;
  height: 42px;
  justify-content: space-between;
  padding: 0 18px;
}
.operating-demo-topbar > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operating-demo-topbar > span:last-child {
  align-items: center;
  color: #2f3e51;
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}
.operating-demo-topbar i {
  background: #50a27a;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}
.operating-demo-topsearch {
  align-items: center;
  background: #faf9f8;
  border: 1px solid #e1dfdd;
  border-radius: var(--radius-pill);
  color: #8a8886;
  display: flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 600;
  gap: 5px;
  margin-left: auto;
  padding: 3px 5px 3px 8px;
}
.operating-demo-topsearch svg { height: 9px; width: 9px; }
.operating-demo-topsearch kbd {
  background: #fff;
  border: 1px solid #e1dfdd;
  border-radius: 3px;
  color: #8a8886;
  font-size: 7px;
  padding: 1px 3px;
}
.operating-demo-topuser { margin-left: 2px; }
.operating-dashboard-screen {
  box-sizing: border-box;
  min-height: 406px;
  padding: 21px 22px;
  position: relative;
}
.operating-demo-pagehead > span {
  color: var(--primary);
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.operating-demo-pagehead h4 {
  color: #1b2737;
  font-size: 20px;
  line-height: 1.1;
  margin: 5px 0 0;
}
.operating-demo-pagehead p {
  color: #6a788b;
  font-size: 10px;
  line-height: 1.4;
  margin: 7px 0 15px;
}

/* Overview / dashboard replica: tabs, KPI cards, split panels, posture bars, trend line. */
.operating-demo-tabs {
  border-bottom: 1px solid #edebe9;
  display: flex;
  gap: 4px;
  margin-bottom: 13px;
}
.operating-demo-tabs b {
  border-bottom: 2px solid transparent;
  color: #605e5c;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px 7px;
}
.operating-demo-tabs b.is-active {
  border-color: var(--primary);
  color: var(--primary);
}
.operating-demo-kpis {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 13px;
}
.operating-demo-kpis > div {
  background: #fff;
  border: 1px solid #e6e4e2;
  border-radius: 6px;
  min-width: 0;
  padding: 9px 10px;
}
.operating-demo-kpis span {
  color: #605e5c;
  display: block;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.operating-demo-kpis strong {
  color: #201f1e;
  display: block;
  font-size: 24px;
  line-height: 1.1;
  margin-top: 4px;
}
.operating-demo-kpis small {
  color: #797775;
  display: block;
  font-size: 8px;
  margin-top: 3px;
}
.operating-demo-split {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.operating-demo-card {
  background: #fff;
  border: 1px solid #e6e4e2;
  border-radius: 6px;
  min-width: 0;
  padding: 12px;
}
.operating-demo-card-head {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 11px;
}
.operating-demo-card-head strong {
  color: #201f1e;
  font-size: 11px;
}
.operating-demo-card-head span {
  color: #797775;
  font-size: 8px;
  font-weight: 700;
}
.operating-demo-bars,
.operating-demo-framework-list {
  display: grid;
  gap: 8px;
}
.operating-demo-bars > div,
.operating-demo-framework-list > div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 52px minmax(0, 1fr) 26px;
}
.operating-demo-framework-list > div {
  grid-template-columns: 74px minmax(0, 1fr) 30px;
}
.operating-demo-bars span,
.operating-demo-framework-list span {
  color: #605e5c;
  font-size: 9px;
  font-weight: 700;
}
.operating-demo-bars em,
.operating-demo-framework-list em {
  color: #201f1e;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
}
.operating-demo-bars .bar,
.operating-demo-framework-list .bar {
  background: #edebe9;
  border-radius: 999px;
  display: block;
  height: 7px;
  overflow: hidden;
}
.operating-demo-bars .bar b,
.operating-demo-framework-list .bar b {
  border-radius: 999px;
  display: block;
  height: 100%;
}
.operating-demo-framework-list .bar b { background: var(--primary); }
.operating-demo-bars .sev-critical { background: #d13438; }
.operating-demo-bars .sev-high { background: #d9822b; }
.operating-demo-bars .sev-medium { background: #c19c00; }
.operating-demo-bars .sev-low { background: #0078d4; }
.operating-demo-trend {
  margin-top: 12px;
}
.operating-demo-trend svg {
  background: #faf9f8;
  border: 1px solid #edebe9;
  border-radius: 6px;
  display: block;
  height: 48px;
  width: 100%;
}
.operating-demo-trend polyline {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}
.operating-demo-trend > div {
  color: #797775;
  display: flex;
  font-size: 7px;
  justify-content: space-between;
  margin-top: 5px;
}
.operating-demo-framework-list { margin-top: 14px; }
.findings-table .tag-kev {
  background: #fde9e8;
  border-radius: 3px;
  color: #b23a38;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-right: 3px;
  padding: 1px 3px;
}
.findings-table > div span {
  color: #687689;
  font-size: 8px;
}
.operating-demo-metrics,
.operating-demo-workspace-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}
.operating-demo-metrics span,
.operating-demo-workspace-summary span {
  background: #f7f9fc;
  border: 1px solid #e0e7ef;
  color: #687689;
  font-size: 9px;
  min-width: 0;
  padding: 8px;
}
.operating-demo-metrics b,
.operating-demo-workspace-summary b {
  color: #1e2c3d;
  display: block;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 4px;
}
.operating-demo-toolbar {
  align-items: center;
  border-bottom: 1px solid #dfe6ee;
  color: #617086;
  display: flex;
  font-size: 9px;
  gap: 8px;
  padding: 5px 0 8px;
}
.operating-demo-toolbar strong {
  color: #243246;
  margin-right: auto;
}
.operating-demo-toolbar span {
  border: 1px solid #d4deea;
  border-radius: 3px;
  padding: 4px 6px;
}
.operating-demo-table {
  color: #4f5e71;
  font-size: 9px;
}
.operating-demo-table > div {
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.75fr) minmax(48px, 0.55fr);
  min-height: 31px;
}
.operating-demo-table strong {
  color: #27364a;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operating-demo-table-head {
  color: #8390a2;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-height: 25px !important;
  text-transform: uppercase;
}
.operating-demo-table em {
  border-radius: var(--radius-pill);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  justify-self: start;
  padding: 3px 5px;
  white-space: nowrap;
}
.operating-demo-table .is-good,
.operating-demo-report-score .is-good {
  background: #e8f6ed;
  color: #24754f;
}
.operating-demo-table .is-watch {
  background: #fff4d8;
  color: #906a0c;
}
.operating-demo-table .is-critical {
  background: #fde9e8;
  color: #b23a38;
}
.operating-demo-risk-summary,
.operating-demo-connector-summary {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e0e7ef;
  display: flex;
  gap: 10px;
  margin: 16px 0 13px;
  padding: 13px;
}
.operating-demo-risk-summary > strong,
.operating-demo-connector-summary strong {
  color: #1f2d3e;
  font-size: 27px;
  line-height: 1;
}
.operating-demo-risk-summary > span,
.operating-demo-connector-summary span {
  color: #647287;
  font-size: 10px;
  max-width: 55px;
}
.operating-demo-risk-summary div {
  display: grid;
  gap: 4px;
  margin-left: auto;
  width: 88px;
}
.operating-demo-risk-summary i {
  border-radius: 2px;
  display: block;
  height: 5px;
}
.operating-demo-risk-summary .critical { background: #d75a58; width: 100%; }
.operating-demo-risk-summary .high { background: #e19b47; width: 72%; }
.operating-demo-risk-summary .medium { background: #4c94d1; width: 48%; }
.operating-demo-report-score {
  align-items: center;
  border-bottom: 1px solid #dfe6ee;
  display: flex;
  justify-content: space-between;
  padding: 13px 0 16px;
}
.operating-demo-report-score strong {
  color: #1e2c3d;
  display: block;
  font-size: 30px;
  line-height: 1;
}
.operating-demo-report-score div > span {
  color: #687689;
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.operating-demo-report-score > span {
  border-radius: var(--radius-pill);
  font-size: 9px;
  font-weight: 800;
  padding: 5px 7px;
}
.operating-demo-report-list {
  display: grid;
  margin-top: 11px;
}
.operating-demo-report-list > span {
  align-items: center;
  border-bottom: 1px solid #edf1f5;
  color: #445469;
  display: flex;
  font-size: 10px;
  gap: 7px;
  min-height: 33px;
}
.operating-demo-report-list i {
  background: #4ca47c;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}
.operating-demo-report-list i.is-warning { background: #dfaa42; }
.operating-demo-report-list b {
  color: #637185;
  font-size: 9px;
  font-weight: 700;
  margin-left: auto;
  text-align: right;
}
.operating-topology-zoom {
  background: #fff;
  border: 1px solid #b8cae0;
  bottom: 16px;
  box-shadow: 0 12px 25px rgba(21, 39, 61, 0.22);
  opacity: 0;
  padding: 12px;
  position: absolute;
  right: 16px;
  transform: translate(18px, 14px) scale(0.84);
  transform-origin: bottom right;
  width: min(69%, 290px);
}
.operating-topology-zoom header {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}
.operating-topology-zoom header span {
  color: var(--primary);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.operating-topology-zoom header strong {
  color: #29384a;
  font-size: 9px;
}
.operating-topology-map {
  background: #f7faff;
  border: 1px solid #e0e9f3;
  height: 132px;
  overflow: hidden;
  position: relative;
}
.operating-topology-map i {
  background: #d7edf9;
  border: 2px solid #4b97c8;
  border-radius: 50%;
  height: 13px;
  position: absolute;
  width: 13px;
  z-index: 1;
}
.operating-topology-map .node-a { left: 13%; top: 38%; }
.operating-topology-map .node-b { left: 45%; top: 18%; }
.operating-topology-map .node-c { left: 45%; top: 66%; }
.operating-topology-map .node-d { background: #dbf0e5; border-color: #4da67c; right: 13%; top: 40%; }
.operating-topology-map b {
  background: #8bb7d7;
  height: 1px;
  left: 20%;
  position: absolute;
  transform-origin: left center;
  width: 34%;
}
.operating-topology-map .line-a { top: 46%; transform: rotate(-28deg); }
.operating-topology-map .line-b { top: 48%; transform: rotate(28deg); }
.operating-topology-map .line-c { left: 52%; top: 48%; transform: rotate(0deg); width: 30%; }
.operating-topology-map span {
  color: #617187;
  font-size: 8px;
  left: 33%;
  position: absolute;
  top: 45%;
}
.operating-demo-cursor {
  color: #1f2d3d;
  font-size: 28px;
  left: 72%;
  line-height: 1;
  opacity: 0;
  position: absolute;
  top: 54%;
  z-index: 4;
}
.operating-demo-cursor::before { content: "\2196"; }
.operating-demo-cursor::after {
  border: 2px solid rgba(0, 120, 212, 0.42);
  border-radius: 50%;
  content: "";
  height: 19px;
  left: 1px;
  opacity: 0;
  position: absolute;
  top: 3px;
  width: 19px;
}
.operating-story[data-operating-scene="0"] .operating-demo-cursor { left: 72%; top: 51%; }
.operating-story[data-operating-scene="1"] .operating-demo-cursor { left: 63%; top: 46%; }
.operating-story[data-operating-scene="2"] .operating-demo-cursor { left: 76%; top: 54%; }
.operating-story[data-operating-scene="3"] .operating-demo-cursor { left: 71%; top: 50%; }
.operating-story[data-operating-scene="4"] .operating-demo-cursor { left: 67%; top: 47%; }
.operating-story[data-operating-scene="5"] .operating-demo-cursor { left: 76%; top: 55%; }
.operating-story[data-playing="true"] .operating-demo-cursor {
  animation: operating-demo-cursor 4.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.operating-story[data-playing="true"] .operating-demo-cursor::after {
  animation: operating-demo-click 4.8s ease-out both;
}
.operating-story[data-operating-scene="1"][data-playing="true"] .operating-topology-zoom {
  animation: operating-topology-zoom 4.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.operating-story[data-operating-scene="1"][data-playing="false"] .operating-topology-zoom {
  opacity: 1;
  transform: translate(0) scale(1);
}
.operating-story[data-playing="false"] .operating-demo-cursor,
.operating-story[data-playing="false"] .operating-demo-cursor::after,
.operating-story[data-playing="false"] .operating-topology-zoom {
  animation-play-state: paused;
}
@keyframes operating-demo-cursor {
  0% { opacity: 0; transform: translate(-42px, 34px) scale(0.8); }
  18% { opacity: 1; transform: translate(-22px, 17px) scale(1); }
  55% { opacity: 1; transform: translate(0, 0) scale(1); }
  61% { opacity: 1; transform: translate(0, 0) scale(0.76); }
  68% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(8px, 5px) scale(1); }
}
@keyframes operating-demo-click {
  0%, 55% { opacity: 0; transform: scale(0.35); }
  61% { opacity: 1; transform: scale(1); }
  74%, 100% { opacity: 0; transform: scale(1.7); }
}
@keyframes operating-topology-zoom {
  0%, 57% { opacity: 0; transform: translate(18px, 14px) scale(0.84); }
  76%, 100% { opacity: 1; transform: translate(0) scale(1); }
}
@media (max-width: 720px) {
  .operating-dashboard-demo {
    grid-template-columns: 52px minmax(0, 1fr);
    height: 470px;
  }
  .operating-demo-tabs b { font-size: 9px; padding: 4px 6px 6px; }
  .operating-demo-kpis { gap: 5px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operating-demo-kpis > div { padding: 8px; }
  .operating-demo-kpis strong { font-size: 18px; }
  .operating-demo-split { gap: 8px; grid-template-columns: minmax(0, 1fr); }
  .operating-demo-split > .operating-demo-card:nth-child(2) { display: none; }
  .operating-demo-topsearch { font-size: 0; gap: 0; padding: 4px; }
  .operating-demo-topsearch kbd { display: none; }
  .operating-demo-sidebar {
    align-items: center;
    padding: 10px 6px;
  }
  .operating-demo-sidebar > img {
    margin-bottom: 9px;
    padding: 4px;
    width: 32px;
  }
  .operating-demo-sidebar-label { display: none; }
  .operating-demo-nav-item {
    font-size: 0;
    justify-content: center;
    min-height: 29px;
    padding: 0;
    width: 32px;
  }
  .operating-demo-nav-item i {
    height: 9px;
    width: 9px;
  }
  .operating-demo-topbar {
    font-size: 8px;
    gap: 6px;
    height: 37px;
    padding: 0 10px;
  }
  .operating-dashboard-screen {
    min-height: 433px;
    padding: 15px 12px;
  }
  .operating-demo-pagehead h4 { font-size: 17px; }
  .operating-demo-pagehead p { margin-bottom: 11px; }
  .operating-demo-metrics,
  .operating-demo-workspace-summary { gap: 5px; }
  .operating-demo-metrics span,
  .operating-demo-workspace-summary span { padding: 6px; }
  .operating-demo-metrics b,
  .operating-demo-workspace-summary b { font-size: 13px; }
  .operating-demo-toolbar span { padding: 3px 4px; }
  .operating-demo-table > div { gap: 5px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.7fr) minmax(42px, 0.52fr); }
  .operating-demo-table strong { font-size: 9px; }
  .operating-demo-topbar > span:last-child { font-size: 0; }
  .operating-demo-topbar > span:last-child i { height: 7px; width: 7px; }
  .operating-topology-zoom { bottom: 13px; padding: 9px; right: 10px; width: calc(100% - 38px); }
  .operating-topology-map { height: 118px; }
  .operating-demo-cursor { font-size: 24px; }
}

.operating-topology-zoom {
  bottom: 11px;
  padding: 10px;
  right: 12px;
  width: min(76%, 330px);
}
.operating-topology-zoom header > div { min-width: 0; }
.operating-topology-zoom header > div > strong {
  display: block;
  margin-top: 2px;
}
.operating-topology-zoom header > b {
  align-items: center;
  color: #5d6d81;
  display: flex;
  font-size: 8px;
  font-weight: 800;
  gap: 4px;
  white-space: nowrap;
}
.operating-topology-zoom header > b i {
  background: #54a47d;
  border: 0;
  border-radius: 50%;
  height: 5px;
  position: static;
  width: 5px;
}
.operating-topology-toolbar {
  align-items: center;
  border-bottom: 1px solid #e4ebf2;
  color: #708096;
  display: flex;
  font-size: 7px;
  font-weight: 700;
  gap: 7px;
  padding: 0 0 7px;
}
.operating-topology-toolbar span:first-child {
  color: #39536e;
  margin-right: auto;
  position: static;
}
.operating-topology-toolbar span:not(:first-child) {
  background: #f2f6fb;
  border: 1px solid #dde7f1;
  border-radius: 3px;
  padding: 3px 4px;
  position: static;
}
.operating-topology-map {
  background: #f8fbff;
  border-color: #dfe8f2;
  height: 172px;
  margin-top: 8px;
}
.operating-topology-link {
  background: #a8c5df !important;
  display: block;
  height: 1px;
  left: auto !important;
  position: absolute !important;
  top: auto !important;
  transform-origin: left center;
  width: auto;
  z-index: 0;
}
.operating-topology-link.link-router-switch { left: 19% !important; top: 51% !important; transform: rotate(0deg); width: 23%; }
.operating-topology-link.link-switch-server { left: 48% !important; top: 50% !important; transform: rotate(-29deg); width: 25%; }
.operating-topology-link.link-switch-workstation { left: 48% !important; top: 52% !important; transform: rotate(29deg); width: 25%; }
.operating-topology-link.link-switch-printer { left: 48% !important; top: 54% !important; transform: rotate(70deg); width: 21%; }
.operating-topology-device {
  align-items: center;
  background: #fff;
  border: 1px solid #cbd9e7;
  box-shadow: 0 2px 5px rgba(27, 54, 80, 0.08);
  box-sizing: border-box;
  display: flex;
  gap: 5px;
  min-height: 31px;
  padding: 4px 12px 4px 5px;
  position: absolute;
  width: 92px;
  z-index: 1;
}
.operating-topology-device > div { min-width: 0; }
.operating-topology-device strong,
.operating-topology-device small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.operating-topology-device strong {
  color: #28394d;
  font-size: 7px;
  line-height: 1.2;
}
.operating-topology-device small {
  color: #71829a;
  font-size: 6px;
  line-height: 1.2;
}
.operating-topology-device > b {
  background: #54a47d !important;
  border: 0 !important;
  border-radius: 50%;
  height: 5px !important;
  left: auto !important;
  position: absolute !important;
  right: 5px;
  top: 5px !important;
  transform: none !important;
  width: 5px !important;
}
.operating-topology-device > b.is-watch { background: #e3ae45 !important; }
.operating-topology-device.device-router { left: 3%; top: 44%; }
.operating-topology-device.device-switch { left: 37%; top: 44%; }
.operating-topology-device.device-server { right: 3%; top: 13%; }
.operating-topology-device.device-workstation { right: 3%; top: 62%; }
.operating-topology-device.device-printer { left: 37%; top: 76%; }
.operating-topology-device-icon {
  box-sizing: border-box;
  display: grid;
  flex: 0 0 auto;
  height: 17px;
  left: auto !important;
  position: static !important;
  top: auto !important;
  width: 17px;
}
.operating-topology-device-icon.router,
.operating-topology-device-icon.switch {
  align-content: center;
  background: #e8f1f8;
  border: 1px solid #6f9fc2;
  border-radius: 3px;
  grid-auto-flow: column;
  justify-content: center;
  gap: 2px;
  height: 12px;
  width: 17px;
}
.operating-topology-device-icon.router i,
.operating-topology-device-icon.switch i {
  background: #4ca47c;
  border: 0;
  border-radius: 50%;
  height: 3px;
  position: static;
  width: 3px;
}
.operating-topology-device-icon.switch i:last-child { background: #5b9cc9; }
.operating-topology-device-icon.windows {
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.operating-topology-device-icon.windows i {
  background: #2176d2;
  border: 0;
  border-radius: 0;
  height: auto;
  position: static;
  width: auto;
}
.operating-topology-device-icon.printer {
  background: #e8f1f8;
  border: 1px solid #6f9fc2;
  border-radius: 2px;
  height: 12px;
  margin-top: 3px;
  position: relative !important;
  width: 17px;
}
.operating-topology-device-icon.printer::before {
  background: #fff;
  border: 1px solid #6f9fc2;
  content: "";
  height: 5px;
  left: 3px;
  position: absolute;
  top: -5px;
  width: 9px;
}
.operating-topology-device-icon.printer i {
  background: #4ca47c;
  border: 0;
  border-radius: 50%;
  bottom: 2px;
  height: 3px;
  position: absolute;
  right: 2px;
  width: 3px;
}
.operating-topology-zoom footer {
  align-items: center;
  color: #718198;
  display: flex;
  font-size: 7px;
  justify-content: space-between;
  margin-top: 7px;
}
.operating-topology-zoom footer span:first-child { align-items: center; display: flex; gap: 4px; }
.operating-topology-zoom footer i { background: #4ca47c; border-radius: 50%; height: 5px; width: 5px; }
.operating-demo-context-zoom {
  background: #fff;
  border: 1px solid #b9cce0;
  bottom: 13px;
  box-shadow: 0 12px 25px rgba(21, 39, 61, 0.2);
  box-sizing: border-box;
  opacity: 0;
  padding: 12px;
  position: absolute;
  right: 13px;
  transform: translate(18px, 14px) scale(0.86);
  transform-origin: bottom right;
  width: min(66%, 268px);
}
.operating-demo-context-zoom > span {
  color: var(--primary);
  display: block;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.operating-demo-context-zoom > strong {
  color: #26374b;
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.operating-demo-context-zoom > p {
  color: #69798d;
  font-size: 9px;
  line-height: 1.4;
  margin: 5px 0 10px;
}
.operating-demo-context-zoom > div {
  border-top: 1px solid #e5edf4;
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 9px;
}
.operating-demo-context-zoom b {
  color: #26374b;
  display: block;
  font-size: 12px;
  line-height: 1;
}
.operating-demo-context-zoom small {
  color: #77879a;
  display: block;
  font-size: 7px;
  line-height: 1.25;
  margin-top: 3px;
}
.operating-story[data-operating-scene="0"][data-playing="true"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="2"][data-playing="true"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="3"][data-playing="true"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="4"][data-playing="true"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="5"][data-playing="true"] .operating-demo-context-zoom {
  animation: operating-context-zoom 4.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.operating-story[data-operating-scene="0"][data-playing="false"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="2"][data-playing="false"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="3"][data-playing="false"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="4"][data-playing="false"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="5"][data-playing="false"] .operating-demo-context-zoom {
  opacity: 1;
  transform: translate(0) scale(1);
}
@keyframes operating-context-zoom {
  0%, 58% { opacity: 0; transform: translate(18px, 14px) scale(0.86); }
  78%, 100% { opacity: 1; transform: translate(0) scale(1); }
}
@media (max-width: 720px) {
  .operating-topology-zoom { bottom: 9px; padding: 8px; right: 8px; width: calc(100% - 30px); }
  .operating-topology-map { height: 166px; }
  .operating-topology-device { width: 82px; }
  .operating-topology-device.device-switch,
  .operating-topology-device.device-printer { left: 35%; }
  .operating-topology-device strong { font-size: 6px; }
  .operating-topology-device small { font-size: 5px; }
  .operating-demo-context-zoom { bottom: 10px; padding: 10px; right: 10px; width: calc(100% - 30px); }
}

/* Keep the console in place while each operating view takes over the same workspace. */
.operating-demo-main {
  position: relative;
}
.operating-dashboard-screen {
  inset: 42px 0 0;
  min-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  transform: translateX(10px);
  transition: opacity 360ms ease, transform 360ms ease, visibility 0s linear 360ms;
  visibility: hidden;
}
.operating-dashboard-screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
  visibility: visible;
  z-index: 2;
}
.operating-dashboard-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition-delay: 0s;
  visibility: visible;
  z-index: 1;
}
.operating-topology-header-actions {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.operating-topology-header-actions > b {
  align-items: center;
  color: #5d6d81;
  display: flex;
  font-size: 8px;
  font-weight: 800;
  gap: 4px;
  white-space: nowrap;
}
.operating-topology-header-actions > b i {
  background: #54a47d;
  border: 0;
  border-radius: 50%;
  height: 5px;
  position: static;
  width: 5px;
}
.operating-topology-close {
  align-items: center;
  border: 1px solid #d8e2ed;
  color: #667991;
  display: inline-flex;
  font-size: 12px;
  height: 14px;
  justify-content: center;
  line-height: 1;
  position: static;
  width: 14px;
}
.operating-story-progress span.is-running {
  animation-duration: 6.4s;
}
.operating-story[data-playing="true"] .operating-demo-cursor::after {
  animation-duration: 6.4s;
}
.operating-story[data-operating-scene="0"][data-playing="true"] .operating-demo-cursor { animation: operating-cursor-assets 6.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.operating-story[data-operating-scene="1"][data-playing="true"] .operating-demo-cursor { animation: operating-cursor-findings 6.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.operating-story[data-operating-scene="2"][data-playing="true"] .operating-demo-cursor { animation: operating-cursor-reports 6.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.operating-story[data-operating-scene="3"][data-playing="true"] .operating-demo-cursor { animation: operating-cursor-software 6.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.operating-story[data-operating-scene="4"][data-playing="true"] .operating-demo-cursor { animation: operating-cursor-integrations 6.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.operating-story[data-operating-scene="5"][data-playing="true"] .operating-demo-cursor { animation: operating-cursor-workspace 6.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.operating-story[data-operating-scene="1"][data-playing="true"] .operating-topology-zoom {
  animation: operating-topology-journey 6.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.operating-story[data-operating-scene="0"][data-playing="true"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="2"][data-playing="true"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="3"][data-playing="true"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="4"][data-playing="true"] .operating-demo-context-zoom,
.operating-story[data-operating-scene="5"][data-playing="true"] .operating-demo-context-zoom {
  animation: operating-context-journey 6.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes operating-cursor-assets {
  0%, 5% { left: 13%; opacity: 1; top: 25%; transform: scale(1); }
  24%, 30% { left: 70%; opacity: 1; top: 38%; transform: scale(0.78); }
  34% { left: 70%; opacity: 1; top: 38%; transform: scale(1); }
  58%, 64% { left: 94%; opacity: 1; top: 42%; transform: scale(0.78); }
  68% { left: 94%; opacity: 1; top: 42%; transform: scale(1); }
  100% { left: 13%; opacity: 1; top: 37%; transform: scale(1); }
}
@keyframes operating-cursor-findings {
  0%, 7% { left: 13%; opacity: 1; top: 37%; transform: scale(1); }
  26%, 32% { left: 65%; opacity: 1; top: 44%; transform: scale(0.78); }
  36% { left: 65%; opacity: 1; top: 44%; transform: scale(1); }
  74%, 80% { left: 13%; opacity: 1; top: 43%; transform: scale(0.78); }
  100% { left: 13%; opacity: 1; top: 43%; transform: scale(1); }
}
@keyframes operating-cursor-reports {
  0%, 7% { left: 13%; opacity: 1; top: 43%; transform: scale(1); }
  28%, 34% { left: 67%; opacity: 1; top: 44%; transform: scale(0.78); }
  38% { left: 67%; opacity: 1; top: 44%; transform: scale(1); }
  74%, 80% { left: 13%; opacity: 1; top: 25%; transform: scale(0.78); }
  100% { left: 13%; opacity: 1; top: 25%; transform: scale(1); }
}
@keyframes operating-cursor-software {
  0%, 7% { left: 13%; opacity: 1; top: 25%; transform: scale(1); }
  28%, 34% { left: 67%; opacity: 1; top: 44%; transform: scale(0.78); }
  38% { left: 67%; opacity: 1; top: 44%; transform: scale(1); }
  74%, 80% { left: 13%; opacity: 1; top: 49%; transform: scale(0.78); }
  100% { left: 13%; opacity: 1; top: 49%; transform: scale(1); }
}
@keyframes operating-cursor-integrations {
  0%, 7% { left: 13%; opacity: 1; top: 49%; transform: scale(1); }
  28%, 34% { left: 67%; opacity: 1; top: 44%; transform: scale(0.78); }
  38% { left: 67%; opacity: 1; top: 44%; transform: scale(1); }
  74%, 80% { left: 13%; opacity: 1; top: 55%; transform: scale(0.78); }
  100% { left: 13%; opacity: 1; top: 55%; transform: scale(1); }
}
@keyframes operating-cursor-workspace {
  0%, 7% { left: 13%; opacity: 1; top: 55%; transform: scale(1); }
  28%, 34% { left: 67%; opacity: 1; top: 44%; transform: scale(0.78); }
  38% { left: 67%; opacity: 1; top: 44%; transform: scale(1); }
  74%, 80% { left: 13%; opacity: 1; top: 31%; transform: scale(0.78); }
  100% { left: 13%; opacity: 1; top: 31%; transform: scale(1); }
}
@keyframes operating-topology-journey {
  0%, 30% { opacity: 0; transform: translate(18px, 14px) scale(0.84); }
  42%, 63% { opacity: 1; transform: translate(0) scale(1); }
  76%, 100% { opacity: 0; transform: translate(18px, 14px) scale(0.84); }
}
@keyframes operating-context-journey {
  0%, 37% { opacity: 0; transform: translate(18px, 14px) scale(0.86); }
  49%, 71% { opacity: 1; transform: translate(0) scale(1); }
  84%, 100% { opacity: 0; transform: translate(18px, 14px) scale(0.86); }
}
@media (prefers-reduced-motion: reduce) {
  .operating-demo-cursor,
  .operating-topology-zoom,
  .operating-demo-context-zoom {
    animation: none !important;
  }
}

/* Plans v2 */
.plans-grid-v2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  justify-content: center;
  margin-top: 24px;
}
.plan-card-v2 {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  padding: 26px;
}
.plan-card-v2.is-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}
.plan-card-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.plan-card-v2 h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.28;
  margin: 8px 0 6px;
}
.plan-card-v2 > p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.plan-card-checklist {
  color: var(--text);
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.plan-card-checklist li {
  padding-left: 26px;
  position: relative;
}
.plan-card-checklist li::before {
  color: var(--primary);
  content: "\2713";
  font-weight: 800;
  left: 0;
  position: absolute;
}
.plan-card-price {
  align-items: baseline;
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  margin-top: auto;
}
.plan-card-price strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.plan-card-price span {
  color: var(--muted);
}
.plan-card-v2 .button {
  font-size: 13px;
  line-height: 1.25;
  width: 100%;
}

.platform-section {
  overflow: hidden;
  position: relative;
}
.platform-glow {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.14), transparent 65%);
  height: 480px;
  left: 50%;
  position: absolute;
  top: -160px;
  transform: translateX(-50%);
  width: 900px;
  z-index: 0;
}
.platform-section > *:not(.platform-glow) { position: relative; z-index: 1; }

/* Capabilities */
.capabilities-section {
  margin: 0 auto;
  max-width: 1200px;
  overflow: hidden;
  padding: 72px 40px;
  position: relative;
}
.capabilities-glow {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 65%);
  height: 480px;
  left: 50%;
  position: absolute;
  top: -120px;
  transform: translateX(-50%);
  width: 900px;
  z-index: 0;
}
.capabilities-section > *:not(.capabilities-glow) { position: relative; z-index: 1; }
.capability-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.filter-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
}
.filter-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.capability-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.capability-index-link {
  align-self: start;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.capability-index-link::after { content: " \2192"; }
.capability-index-link:hover { text-decoration: underline; }
.capability-grid .capability-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: inherit;
  display: block;
  padding: 18px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.capability-grid .capability-card:hover,
.capability-grid .capability-card:focus-visible {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
  transform: translateY(-2px);
}
.capability-grid .capability-card[hidden] { display: none; }
.capability-grid:not(.is-filtered) .capability-card[data-capability-featured="false"] { display: none; }
.capability-grid .capability-card.capability-more-card {
  align-items: center;
  border-style: dashed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 158px;
  text-align: center;
}
.capability-more-icon {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: var(--surface);
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  margin-bottom: 10px;
  width: 42px;
}
.capability-grid .capability-card.capability-more-card strong {
  font-size: 22px;
  margin-bottom: 4px;
}
.capability-tag {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.capability-grid strong {
  color: var(--ink);
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}
.capability-grid p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* Capability catalogue page (/capabilities) */
.capability-area {
  scroll-margin-top: 130px;
}
.capability-area .help-category-head h2 {
  color: var(--ink);
  font-size: 26px;
  margin: 0 0 6px;
}
.capability-detail-stack {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.capability-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  padding: 22px;
  scroll-margin-top: 130px;
}
.capability-detail:target {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.capability-detail-head h3 {
  color: var(--ink);
  font-size: 19px;
  margin: 0 0 6px;
}
.capability-detail-summary {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.capability-detail-body p {
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 14px;
  max-width: 70ch;
}
.capability-benefits-label {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.capability-detail-benefits ul {
  color: var(--text);
  display: grid;
  gap: 6px;
  line-height: 1.55;
  margin: 0;
  padding-left: 20px;
}
@media (max-width: 900px) {
  .capability-detail {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
  }
}

/* What's new timeline */
.whats-new-timeline {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
}
.whats-new-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  min-width: 0;
  padding: 18px 20px;
}
.whats-new-date {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.whats-new-item h3 {
  color: var(--ink);
  font-size: 17px;
  margin: 8px 0;
}
.whats-new-item p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.whats-new-see-all {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.whats-new-see-all a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

/* Updates timeline (full /updates page) */
.updates-timeline {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  max-width: 760px;
}
.updates-timeline-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.updates-timeline-item:last-child {
  border-bottom: 0;
}
.updates-timeline-item .whats-new-date {
  display: block;
  margin-bottom: 6px;
}
.updates-timeline-item h3 {
  color: var(--ink);
  font-size: 20px;
  margin: 0 0 8px;
}
.updates-timeline-item p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Resources carousel */
.resource-carousel-shell { margin-top: 24px; }
.resource-carousel {
  display: flex;
  gap: 16px;
  margin: 0 -40px;
  overflow-x: auto;
  padding: 4px 40px 12px;
  scroll-snap-type: x proximity;
}
.resource-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  flex: 0 0 260px;
  padding: 20px;
  scroll-snap-align: start;
}
.resource-card h3 {
  color: var(--ink);
  font-size: 17px;
  margin: 8px 0;
}
.resource-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 14px;
}
.carousel-nav {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.carousel-nav button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.carousel-nav button:hover { background: var(--surface-2); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--primary-2), var(--primary));
  margin: 0 auto;
  max-width: none;
  padding: 64px 40px;
}
.cta-band h2 {
  color: #fff;
  font-size: 32px;
  margin: 0 0 24px;
  text-align: center;
}
.cta-band-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 900px;
}
.cta-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
}
.cta-card h3 {
  color: var(--ink);
  font-size: 19px;
  margin: 0 0 8px;
}
.cta-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

/* FAQ numbered */
.faq-section-v2 { background: var(--surface-2); max-width: none; }
.faq-head {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 12px;
  max-width: 1120px;
}
.faq-head-actions { display: flex; gap: 10px; }
.faq-numbered {
  margin: 0 auto;
  max-width: 1120px;
}
.faq-row {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.faq-row:last-child { border-bottom: 1px solid var(--line); }
.faq-row summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 16px;
  list-style: none;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-num {
  color: var(--primary);
  flex: 0 0 auto;
  font-weight: 700;
}
.faq-q {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
}
.faq-toggle {
  align-items: center;
  background: var(--primary);
  border-radius: var(--radius-sm);
  color: #fff;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 17px;
  height: 28px;
  justify-content: center;
  width: 28px;
}
.faq-toggle::before { content: "+"; }
.faq-row[open] .faq-toggle::before { content: "\2212"; }
.faq-row p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 14px 0 0 44px;
  max-width: 900px;
}

.knowledge-search {
  margin-top: 24px;
  max-width: 560px;
}
.knowledge-search label {
  color: var(--ink);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}
.knowledge-search input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}
.knowledge-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
  outline: none;
}
.knowledge-search p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 8px 0 0;
  min-height: 19px;
}
[data-knowledge-item][hidden],
[data-knowledge-category][hidden] {
  display: none;
}

.help-index-section {
  max-width: 1180px;
}
.help-category-stack {
  display: grid;
  gap: 42px;
}
.help-category {
  scroll-margin-top: 130px;
}
.help-category-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  margin-bottom: 6px;
  padding-bottom: 16px;
}
.help-category-head h3 {
  color: var(--ink);
  font-size: 26px;
  margin: 0 0 6px;
}
.help-category-head p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.help-topic {
  scroll-margin-top: 130px;
}
.help-topic-body {
  margin: 12px 0 0 44px;
  max-width: 920px;
}
.help-topic-body p {
  margin-left: 0;
}
.help-topic-body ol {
  color: var(--text);
  display: grid;
  gap: 8px;
  line-height: 1.55;
  margin: 14px 0 0;
  padding-left: 22px;
}
.help-topic-note {
  background: var(--surface);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.help-support-band {
  display: grid;
  justify-items: center;
  text-align: center;
}
.help-support-band .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}
.help-support-band p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 720px;
}

/* Screenshot support inside a help topic */
.help-topic-figure {
  margin: 16px 0 0;
}
.help-topic-figure img {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
  display: block;
  max-width: 100%;
}
.help-topic-figure figcaption {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 8px;
}

/* Field reference tables (help centre + inline context panel) */
.help-reference-section {
  display: grid;
  gap: 24px;
}
.help-reference-stack {
  display: grid;
  gap: 28px;
}
.help-reference-screen {
  scroll-margin-top: 130px;
}
.help-reference-screen-head h3 {
  margin: 0 0 4px;
}
.help-reference-screen-head p {
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 820px;
}
.help-reference-scroll,
.context-help-reference-scroll {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
.help-reference-table {
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
  width: 100%;
}
.help-reference-table thead th {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 14px;
  text-align: left;
  text-transform: uppercase;
}
.help-reference-table tbody th,
.help-reference-table tbody td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.help-reference-table tbody tr:last-child th,
.help-reference-table tbody tr:last-child td {
  border-bottom: 0;
}
.help-reference-table tbody th {
  font-weight: 600;
  text-transform: none;
  white-space: normal;
  width: 22%;
}
.help-reference-table td {
  color: var(--text);
}
.help-reference-table code {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  padding: 2px 6px;
  white-space: nowrap;
}
.help-reference-field {
  display: block;
  margin-bottom: 6px;
  text-transform: none;
}
.help-reference-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
}
.help-reference-badge.is-required {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}
.help-reference-badge.is-conditional {
  background: var(--surface-2);
  color: var(--muted);
}
.help-reference-badge.is-optional {
  background: var(--surface-2);
  color: var(--muted);
}

/* Compact field reference inside the page-side context panel */
.context-help-reference {
  margin-top: 16px;
}
.context-help-reference > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 6px 0;
}
.context-help-reference > summary::-webkit-details-marker {
  display: none;
}
.context-help-reference-title {
  font-weight: 600;
}
.context-help-reference-count {
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  padding: 1px 9px;
}
.context-help-reference-scroll {
  margin-top: 10px;
}
.context-help-reference-more {
  display: inline-block;
  font-size: 13px;
  margin-top: 12px;
}
.help-support-band .button.primary {
  background: #fff;
  border-color: #fff;
  color: var(--primary-2);
}

/* Inline field help ("?" marker + hover/focus tooltip). Replaces the old
   full-width field-reference table: the same meaning/values/example now lives
   next to each field, revealed only on demand. */
.field-hint {
  cursor: help;
  display: inline-flex;
  margin-left: 5px;
  position: relative;
  vertical-align: middle;
}
.field-hint-mark {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  height: 15px;
  justify-content: center;
  line-height: 1;
  width: 15px;
}
.field-hint:hover .field-hint-mark,
.field-hint:focus .field-hint-mark,
.field-hint:focus-within .field-hint-mark {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.field-hint-pop {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 400;
  left: 0;
  line-height: 1.5;
  opacity: 0;
  padding: 10px 12px;
  pointer-events: none;
  position: absolute;
  text-transform: none;
  top: calc(100% + 8px);
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  visibility: hidden;
  white-space: normal;
  width: max-content;
  max-width: 300px;
  z-index: 60;
}
.field-hint:hover .field-hint-pop,
.field-hint:focus .field-hint-pop,
.field-hint:focus-within .field-hint-pop {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.field-hint-meaning {
  color: var(--ink);
  display: block;
  font-weight: 600;
}
.field-hint-row {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.field-hint-row b {
  color: var(--text);
  font-weight: 600;
}
.field-hint-pop code {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  padding: 1px 5px;
}
/* Near the right edge the popover would overflow; anchor it to the right. */
.field-hint.hint-right .field-hint-pop {
  left: auto;
  right: 0;
}

/* Footer */
.public-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  color: var(--text);
  padding: 40px 40px 24px;
}
.public-footer a { color: var(--text); font-weight: 600; }
.footer-inner { margin: 0 auto; max-width: 1200px; }
.footer-columns {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(260px, 1fr) minmax(0, auto);
  margin-bottom: 28px;
}
.footer-brand-block {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.footer-brand-block img { display: block; height: 34px; width: auto; }
.footer-brand-block p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.footer-link-columns {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, max-content);
  justify-content: end;
}
.footer-col { display: grid; gap: 10px; }
.footer-col strong { color: var(--ink); font-size: 13px; text-transform: uppercase; }
.footer-col a { color: var(--muted); font-weight: 500; }
.footer-bottom {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 18px;
}
.footer-bottom span { color: var(--muted); font-weight: 600; }

.language-select-form {
  margin: 0;
}
.language-select-form select {
  background: var(--surface);
  border: 1px solid #d8e1ea;
  border-radius: 8px;
  color: #17202b;
  font-size: 13px;
  font-weight: 800;
  min-height: 36px;
  padding: 0 30px 0 10px;
}
.app-language-select label {
  color: var(--muted);
}
.app-language-select select {
  min-height: 34px;
}
.app-language-switcher a {
  border-color: var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.app-language-switcher a:hover {
  background: var(--surface-2);
  color: #2563eb;
  text-decoration: none;
}
.contact-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 70px 40px;
}
.contact-hero {
  margin-bottom: 26px;
  max-width: 820px;
}
.contact-hero h1 {
  color: #101828;
  font-size: 46px;
  line-height: 1.08;
  margin: 10px 0 12px;
}
.contact-hero p {
  color: #667085;
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}
.contact-detail-list {
  display: grid;
  gap: 9px;
  margin: 18px 0;
}
.contact-detail-list span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #e5edf5;
  line-height: 1.45;
  padding: 10px;
}
.trial-request-hero {
  padding: 46px 40px 34px;
}
.trial-request-hero .hero-device-image {
  max-width: 600px;
}
.trial-request-section {
  max-width: 1240px;
}
.trial-request-section .public-section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 12px 0 0;
}
.trial-request-steps {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 24px;
}
.trial-request-steps span {
  align-items: center;
  color: var(--text);
  display: flex;
  font-weight: 700;
  gap: 10px;
  min-height: 58px;
  padding: 12px 16px;
}
.trial-request-steps span + span { border-left: 1px solid var(--line); }
.trial-request-steps strong {
  color: var(--primary);
  font-size: 13px;
}
.trial-request-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
}
.trial-request-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 120, 212, 0.07);
  padding: 28px;
}
.trial-form-group {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  padding-top: 18px;
}
.trial-form-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.trial-form-group h3 {
  color: var(--ink);
  font-size: 20px;
  margin: 0;
}
.trial-check-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.trial-check-grid label,
.trial-consent > label:first-child {
  align-items: start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  font-weight: 700;
  gap: 10px;
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.45;
  padding: 12px;
}
.trial-check-grid input,
.trial-consent input[type="checkbox"] {
  min-height: 18px;
  width: 18px;
}
.trial-request-aside {
  background: var(--tint-info-bg);
  border: 1px solid var(--tint-info-border);
  border-radius: 8px;
  color: var(--text);
  display: grid;
  gap: 14px;
  padding: 24px;
  position: sticky;
  top: 112px;
}
.trial-request-aside .eyebrow {
  color: var(--primary);
}
.trial-request-aside strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}
.trial-request-aside p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.trial-aside-list {
  display: grid;
  gap: 9px;
}
.trial-aside-list span {
  background: var(--surface);
  border: 1px solid var(--tint-info-border);
  border-radius: 8px;
  line-height: 1.45;
  padding: 10px;
}
.trial-aside-list b {
  color: var(--ink);
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}
.trial-aside-contact {
  border-top: 1px solid var(--tint-info-border);
  display: grid;
  gap: 4px;
  padding-top: 14px;
}
.trial-aside-contact span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.trial-aside-contact a {
  overflow-wrap: anywhere;
}
.bot-trap {
  height: 0;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 0;
}
.human-challenge {
  grid-column: 1 / -1;
  min-width: 0;
}
.human-challenge .cf-turnstile { max-width: 100%; }
.captcha-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(120px, 1fr);
}
.captcha-row span {
  color: #344054;
  font-weight: 900;
}
.legal-page {
  margin: 0 auto;
  max-width: 980px;
  padding: 70px 40px;
}
.legal-panel h1 {
  color: #101828;
  font-size: 42px;
  margin: 8px 0 20px;
}
.legal-copy p {
  color: #344054;
  line-height: 1.65;
  margin: 0 0 14px;
}
.legal-copy h2 {
  color: #101828;
  font-size: 20px;
  line-height: 1.3;
  margin: 28px 0 10px;
}
.legal-copy h2:first-child {
  margin-top: 0;
}
.legal-copy ul {
  color: #344054;
  line-height: 1.6;
  margin: 0 0 18px;
  padding-left: 22px;
}
.legal-copy li {
  margin: 0 0 8px;
}
.form-subsection {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 16px;
}
.form-subsection h3 {
  margin: 0 0 4px;
}
.support-admin-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}
.support-page-layout {
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
}
.support-admin-layout .support-context-grid {
  grid-template-columns: 1fr;
}
.support-ticket-list {
  display: grid;
  gap: 10px;
}
.support-ticket-row {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.support-ticket-row[open] {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}
.support-ticket-row summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1.25fr) minmax(180px, 0.75fr) minmax(180px, 0.75fr) 150px;
  list-style: none;
  padding: 14px 16px;
}
.support-ticket-list.compact .support-ticket-row summary {
  grid-template-columns: minmax(0, 1fr) 150px;
}
.support-ticket-row summary::-webkit-details-marker {
  display: none;
}
.ticket-main strong,
.ticket-person,
.ticket-workspace {
  color: var(--ink);
  display: grid;
  gap: 4px;
  min-width: 0;
}
.ticket-main small,
.ticket-person small,
.ticket-workspace small,
.ticket-status small {
  color: var(--muted);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.ticket-main strong {
  overflow-wrap: anywhere;
}
.ticket-status {
  display: grid;
  justify-items: end;
  text-align: right;
}
.ticket-status b {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #9a3412;
  font-size: 12px;
  padding: 6px 10px;
}
.support-ticket-body {
  border-top: 1px solid var(--line);
  padding: 16px;
}
.support-message.customer {
  background: var(--surface);
  border-left-color: #2563eb;
}
.support-message.admin {
  background: #f8fbff;
  border-left-color: #2563eb;
}
.support-message.admin_note {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: #b7791f;
}
.pagination-row {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
}
.settings-page {
  display: grid;
  gap: 18px;
}
.settings-page > .grid.two {
  grid-template-columns: minmax(0, 1fr);
}
.settings-page .panel {
  margin-bottom: 0;
}
.compact-head h1 {
  font-size: 20px;
  max-width: 760px;
}
.onboarding-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 18px;
}
.onboarding-strip article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.onboarding-strip article.complete {
  border-color: var(--tint-success-border);
  background: var(--tint-success-bg);
}
.onboarding-strip article.next {
  border-color: var(--tint-warning-border);
  background: var(--tint-warning-bg);
}
.onboarding-strip span {
  align-items: center;
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  margin-bottom: 12px;
  width: 26px;
}
.onboarding-strip strong {
  color: var(--ink);
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}
.onboarding-strip a {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  margin-top: 12px;
}
.onboarding-panel {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}
.onboarding-panel h2 {
  margin-bottom: 8px;
}
.onboarding-panel p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 760px;
}
.onboarding-strip p,
.empty-state p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.simple-posture {
  grid-template-columns: 150px minmax(0, 1fr);
}
.empty-state {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 18px;
}
.empty-state strong {
  color: var(--ink);
}
.admin-inline {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.admin-inline input,
.admin-inline select {
  min-height: 36px;
  min-width: 110px;
  padding: 7px 9px;
  width: auto;
}
.action-work-cell { min-width: 180px; }
.action-work-field {
  display: grid;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  gap: 5px;
  margin-bottom: 9px;
}
.action-work-field input,
.action-work-field select,
.action-work-field textarea { min-width: 160px; }
.action-history { margin-top: 10px; }
.action-history summary { color: var(--primary); cursor: pointer; font-size: 12px; font-weight: var(--font-weight-semibold); }
.action-history ul { margin: 8px 0 0; padding-left: 18px; }
.action-event-form { display: grid; gap: 7px; margin-top: 10px; }
.action-event-form input,
.action-event-form select,
.action-event-form textarea { min-width: 0; width: 100%; }
.policy-summary { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.policy-summary span { color: var(--muted); font-size: 13px; }
.policy-summary strong { color: var(--ink); }
.policy-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.action-board-controls {
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  margin: 0 0 20px;
  padding: 0 0 16px;
}
.action-board-controls .inline-form { align-items: flex-end; }
.action-board-saved-view { align-items: flex-end; display: flex; gap: 8px; }
.action-board-saved-view .inline-form { align-items: flex-end; }
.action-board-saved-view .icon-button { color: #991b1b; font-size: 22px; margin: 0 0 3px; padding: 6px; }
.action-board {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  overflow-x: auto;
  padding: 0 0 12px;
}
.action-board-column { border-top: 3px solid var(--line); min-width: 230px; padding-top: 10px; }
.action-board-column[data-action-status="open"] { border-top-color: #0f766e; }
.action-board-column[data-action-status="in_progress"] { border-top-color: #2563eb; }
.action-board-column[data-action-status="blocked"] { border-top-color: #b45309; }
.action-board-column[data-action-status="accepted"] { border-top-color: #7c3aed; }
.action-board-column[data-action-status="done"] { border-top-color: #15803d; }
.action-board-column-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 10px; }
.action-board-column-head h2 { font-size: 14px; margin: 0; }
.action-board-stack { display: grid; gap: 10px; }
.action-board-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  overflow: hidden;
  padding: 12px;
}
.action-board-card-meta { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.action-board-card h3 { color: var(--ink); font-size: 14px; line-height: 1.35; margin: 0 0 5px; overflow-wrap: anywhere; }
.action-board-card > p { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 8px 0 12px; }
.action-board-asset { display: block; font-size: 12px; font-weight: var(--font-weight-semibold); overflow-wrap: anywhere; }
.action-board-facts { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.action-board-facts div { min-width: 0; }
.action-board-facts dt { color: var(--muted); font-size: 10px; font-weight: var(--font-weight-semibold); text-transform: uppercase; }
.action-board-facts dd { color: var(--ink); font-size: 12px; margin: 2px 0 0; overflow-wrap: anywhere; }
.action-board-update { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.action-board-update summary { color: var(--primary); cursor: pointer; font-size: 12px; font-weight: var(--font-weight-semibold); }
.action-board-update form { margin-top: 10px; }
.action-board-update textarea { min-height: 58px; resize: vertical; }
.action-board-empty { color: var(--muted); font-size: 12px; margin: 10px 0; }
.action-board-operations { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.action-board-operations form { margin: 0; }
.action-board-operations a { font-size: 12px; overflow-wrap: anywhere; }
.action-board-timeline { border-top: 1px solid var(--line); padding-top: 10px; }
.compliance-navigation { justify-content: flex-end; margin: -8px 0 16px; }
.control-state-summary { display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 18px; }
.control-state-metric { border: 1px solid var(--line); border-radius: 6px; color: var(--ink); display: grid; gap: 3px; padding: 12px; text-decoration: none; }
.control-state-metric strong { font-size: 22px; }
.control-state-metric span { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.control-state-metric.state-action_required { border-top: 3px solid #b91c1c; }
.control-state-metric.state-evidence_due { border-top: 3px solid #b45309; }
.control-state-metric.state-exception { border-top: 3px solid #7c3aed; }
.control-state-metric.state-unknown { border-top: 3px solid #64748b; }
.control-state-metric.state-covered { border-top: 3px solid #15803d; }
.control-state.state-action_required { background: #fef2f2; color: #991b1b; }
.control-state.state-evidence_due { background: #fff7ed; color: #9a3412; }
.control-state.state-exception { background: #f5f3ff; color: #6d28d9; }
.control-state.state-unknown { background: #f1f5f9; color: #475569; }
.control-state.state-covered { background: #ecfdf5; color: #166534; }
.control-work-table td { min-width: 150px; }
.renewal-work-table td:first-child { min-width: 260px; }
.sam-optimization-table td:first-child { min-width: 210px; }
.renewal-order-block { border-top: 1px solid var(--border); padding: 16px 0; }
.renewal-order-block:first-of-type { border-top: 0; padding-top: 0; }
.control-detail-summary { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 18px; padding: 0 0 14px; }
.control-detail-summary span { color: var(--muted); font-size: 13px; }
.control-detail-summary strong { color: var(--ink); display: block; font-size: 11px; text-transform: uppercase; }
.control-operation { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.control-operation summary { color: var(--primary); cursor: pointer; font-size: 13px; font-weight: var(--font-weight-semibold); }
.control-operation form { margin-top: 10px; }

@media (max-width: 760px) {
  .action-board-controls { align-items: stretch; }
  .action-board-controls .inline-form,
  .action-board-saved-view,
  .action-board-saved-view .inline-form { align-items: stretch; flex-direction: column; width: 100%; }
  .action-board-controls label,
  .action-board-controls select,
  .action-board-controls input { min-width: 0; width: 100%; }
  .action-board { grid-template-columns: repeat(5, minmax(78vw, 1fr)); }
  .action-board-column { min-width: 78vw; }
  .policy-form { grid-template-columns: 1fr; }
  .control-state-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compliance-navigation { justify-content: flex-start; margin-top: 0; }
}
.inline-check {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  font-weight: 800;
  white-space: nowrap;
}
.inline-check input {
  min-height: auto;
  width: auto;
}
.tight-grid {
  gap: 12px;
}
.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-checks label {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  padding: 9px 11px;
}
.admin-checks input {
  min-height: auto;
  width: auto;
}

/* Connectivity marketplace (Integrations) */
.marketplace-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 240px minmax(0, 1fr);
}
.marketplace-filters { display: grid; gap: 2px; }
.marketplace-filters h2 { font-size: 13px; margin: 0 0 8px; }
.marketplace-filter {
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--text);
  display: flex;
  font-weight: 600;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 10px;
}
.marketplace-filter:hover { background: var(--surface-2); text-decoration: none; }
.marketplace-filter.is-active { background: rgba(0, 120, 212, 0.10); color: var(--primary); }
.marketplace-filter-count {
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
}
.marketplace-filter.is-active .marketplace-filter-count { background: var(--surface); color: var(--primary); }
.marketplace-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.marketplace-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.marketplace-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.marketplace-card-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.marketplace-card-head strong { color: var(--ink); font-size: 14px; }
.marketplace-card p {
  color: var(--muted);
  flex: 1;
  line-height: 1.5;
  margin: 0;
}
.marketplace-card-dir {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.marketplace-card-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}
.marketplace-tag {
  background: var(--tint-info-bg);
  border-radius: var(--radius-pill);
  color: var(--tint-info-ink);
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  white-space: nowrap;
}
.marketplace-tag.muted { background: var(--surface-2); color: var(--muted); }
.marketplace-tag.connected { background: var(--tint-success-bg); color: var(--tint-success-ink); }
.marketplace-tag.live { background: var(--tint-success-bg); color: var(--tint-success-ink); }
.marketplace-tag.beta { background: var(--tint-warning-bg); color: var(--tint-warning-ink); }
.marketplace-tag.roadmap { background: var(--surface-2); color: var(--muted); }
.marketplace-tag.certification-local { background: var(--surface-2); color: var(--muted); }
.marketplace-tag.certification-fixture { background: #e8f2ff; color: #18568d; }
.marketplace-tag.certification-sandbox { background: #e7f6ef; color: #176448; }
.marketplace-tag.certification-production { background: #dcf5e6; color: #135a3a; }
.marketplace-tag.certification-deprecated { background: #f7e7e8; color: #8c2730; }
.marketplace-legend {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px;
  margin: 0 0 16px;
}
.marketplace-legend .marketplace-tag { margin-right: 2px; }
.integration-detail-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

/* Console density baseline: match the compact, scan-friendly marketplace rhythm
   across operational dashboards, forms, and platform administration. */
.app-shell .page-head {
  gap: 16px;
  margin: 4px 0 20px;
}
.app-shell .page-head h1 {
  font-size: 22px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  margin: 4px 0 8px;
}
.app-shell .page-head p {
  font-size: 13px;
  line-height: 1.5;
}
.app-shell .eyebrow,
.app-shell .stat-card span,
.app-shell .mini-panel span,
.app-shell .summary-label {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
}
.app-shell .panel { margin-bottom: 24px; }
.app-shell .section-head { margin-bottom: 12px; }
.app-shell .panel h2,
.app-shell .section-head h2,
.app-shell .panel-subsection h3 {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  gap: 8px;
}
.app-shell .panel h2::before,
.app-shell .section-head h2::before,
.app-shell .panel-subsection h3::before {
  height: 14px;
}
.app-shell .stat-grid {
  gap: 20px;
  margin-bottom: 24px;
}
.app-shell .stat-card span,
.app-shell .mini-panel span { margin-bottom: 6px; }
.app-shell .stat-card strong {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
}
.app-shell .stat-card small,
.app-shell .mini-panel small { margin-top: 6px; }
.app-shell .grid { gap: 16px; }
.app-shell .grid.two { gap: 28px; }
.app-shell .grid.three {
  gap: 20px;
  margin-bottom: 24px;
}
.app-shell .mini-panel {
  border-radius: 8px;
  padding: 16px;
}
.app-shell .mini-panel strong {
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 6px;
}
.app-shell .form-grid,
.app-shell .inline-form { gap: 12px; }
.app-shell .form-grid label,
.app-shell .inline-form label {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  gap: 5px;
  line-height: 1.35;
}
.app-shell .form-grid label > small,
.app-shell .inline-form label > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-normal);
  line-height: 1.45;
}
.app-shell .page input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
.app-shell .page select,
.app-shell .page textarea {
  font-size: 13px;
  font-weight: var(--font-weight-normal);
  min-height: 36px;
  padding: 7px 10px;
}
.app-shell .page textarea { min-height: 72px; }
.app-shell .page .button {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  min-height: 36px;
  padding: 7px 12px;
}
.app-shell .scan-group {
  border-radius: 8px;
  padding: 10px 12px 12px;
}
.app-shell .scan-group > .form-grid { margin-top: 4px; }
.app-shell .scan-group legend {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  padding: 0 4px;
}
.app-shell .scan-group-tag {
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
}
.app-shell .scan-mode-hint { padding: 8px 10px; }
.app-shell .checkbox-row {
  gap: 8px;
  padding: 10px;
}
.app-shell .checkbox-row span {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
}
.app-shell .admin-tabs {
  gap: 4px;
  margin-bottom: 16px;
  padding: 6px;
}
.app-shell .admin-tabs a {
  font-size: 12px;
  padding: 7px 9px;
}
.app-shell .admin-checks label,
.app-shell .inline-check {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
}
.app-shell .admin-checks label { padding: 8px 10px; }
.app-shell .page th {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  padding: 9px 8px;
}
.app-shell .page td {
  font-size: 13px;
  min-height: 36px;
  padding: 10px 8px;
}
.app-shell .page td small { font-size: 12px; }

/* Azure-style command and inventory layout: the current workspace stays left,
   the global search owns the middle, and page-local tools stay with their data. */
.asset-page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.asset-subnav {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  margin: -2px 0 18px;
  overflow-x: auto;
}
.asset-subnav a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  white-space: nowrap;
}
.asset-subnav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.asset-subnav a.is-active { border-bottom-color: var(--primary); color: var(--primary); }
.asset-query-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  padding: 12px;
}
.asset-query-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.asset-query-input { flex: 1 1 320px; }
.asset-query-input input { width: 100%; }
.asset-filter-details,
.asset-saved-views {
  flex: 1 0 100%;
}
.asset-filter-details summary,
.asset-saved-views summary {
  color: var(--primary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 0;
}
.asset-filter-grid,
.bulk-action-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 10px;
}
.asset-filter-actions { display: flex; gap: 8px; margin-top: 10px; }
.asset-saved-views { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; }
.asset-saved-views .inline-form,
.asset-saved-views .actions { margin-top: 10px; }
.asset-results { position: relative; }
.bulk-action-toolbar {
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line));
  border-radius: var(--radius-md);
  margin: 0 0 14px;
  padding: 12px;
}
.bulk-action-toolbar-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.bulk-action-toolbar-head div { align-items: baseline; display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-action-toolbar-head strong { color: var(--primary); }
.bulk-action-toolbar-head span { color: var(--muted); font-size: 13px; }
.bulk-action-form label { min-width: 0; }
.bulk-action-form .button { align-self: end; }

/* All frameworks use the same guided declaration experience, so a person can
   work control by control even when scan evidence alone is inconclusive. */
.framework-self-check {
  background: var(--surface);
  overflow: hidden;
  padding: 0;
}
.framework-self-check > summary {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 16px;
}
.framework-self-check > summary::before { content: none; }
.framework-summary-action {
  background: var(--primary);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  white-space: nowrap;
}
.framework-self-check[open] .framework-summary-action { background: var(--surface-2); color: var(--primary); }
.framework-self-check > p { margin: 0 16px; }
.framework-self-check form { margin: 14px 16px 16px; }
.self-check-overview {
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 12px 0;
  padding: 12px;
}
.self-check-overview div { display: grid; gap: 3px; }
.self-check-overview span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.self-check-overview strong { color: var(--ink); font-size: 14px; }
.self-check-overview small { color: var(--muted); line-height: 1.4; }
.framework-self-check .admin-checks label:has(input:checked) {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  color: var(--primary);
}

/* --- Guided compliance engine: framework grid + control/check panels ------ */
.framework-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  margin-top: 12px;
}
.framework-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: grid;
  font-family: inherit;
  gap: 12px;
  padding: 14px;
  text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.framework-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.framework-card.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary) inset; }
.framework-card-head { align-items: baseline; display: flex; gap: 8px; justify-content: space-between; }
.framework-card-head strong { color: var(--ink); font-size: var(--font-size-13); font-weight: var(--font-weight-semibold); line-height: 1.35; }
.fw-score { color: var(--primary); font-size: var(--font-size-16); font-weight: var(--font-weight-semibold); line-height: 1; white-space: nowrap; }
.fw-metric { display: grid; gap: 5px; }
.fw-metric-top { align-items: baseline; display: flex; justify-content: space-between; }
.fw-metric-top span { color: var(--muted); font-size: var(--font-size-11); font-weight: var(--font-weight-semibold); letter-spacing: .04em; text-transform: uppercase; }
.fw-metric-top b { color: var(--text); font-size: var(--font-size-12); font-weight: var(--font-weight-semibold); }
.fw-metric.muted { color: var(--muted); font-size: var(--font-size-12); }
.meter { background: var(--line); border-radius: var(--radius-pill); height: 6px; overflow: hidden; width: 100%; }
.meter i { background: var(--primary); border-radius: var(--radius-pill); display: block; height: 100%; }
.meter.posture i { background: var(--good); }
.fw-statuscounts { display: flex; gap: 6px; }
.framework-card .framework-summary-action { font-size: var(--font-size-12); font-weight: var(--font-weight-semibold); padding: 7px 10px; text-align: center; }

.status-badge {
  border-radius: var(--radius-pill);
  display: inline-block;
  font-size: var(--font-size-11);
  font-weight: var(--font-weight-semibold);
  min-width: 22px;
  padding: 2px 9px;
  text-align: center;
}
.status-badge.covered { background: color-mix(in srgb, var(--good) 16%, var(--surface)); color: var(--good); }
.status-badge.partial { background: color-mix(in srgb, var(--warning) 20%, var(--surface)); color: var(--warning); }
.status-badge.gap { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: var(--danger); }
.status-badge.not_assessed { background: var(--surface-2); color: var(--muted); }

.framework-panel .section-head { align-items: center; }
.control-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin: 12px 0;
  overflow: hidden;
}
.control-head { background: var(--surface-2); border-bottom: 1px solid var(--line); display: grid; gap: 4px; padding: 12px 14px; }
.control-head > div { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.control-head strong { color: var(--ink); font-size: var(--font-size-13); font-weight: var(--font-weight-semibold); }
.control-head small { color: var(--muted); font-size: var(--font-size-12); line-height: 1.45; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-row {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px 16px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding: 12px 14px;
}
.check-row:last-child { border-bottom: none; }
.check-row.auto { background: color-mix(in srgb, var(--good) 4%, var(--surface)); }
.check-prompt { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.check-text { color: var(--text); font-size: var(--font-size-13); }
.check-answers { margin: 0; }
.check-auto-result { align-self: center; font-size: var(--font-size-12); font-weight: var(--font-weight-semibold); }
.check-auto-result small { color: var(--muted); font-weight: var(--font-weight-normal); }
.check-auto-result.answer-pass { color: var(--good); }
.check-auto-result.answer-fail { color: var(--danger); }
.check-auto-result.answer-partial { color: var(--warning); }

.source-badge {
  border-radius: var(--radius-pill);
  font-size: var(--font-size-11);
  font-weight: var(--font-weight-semibold);
  letter-spacing: .02em;
  padding: 2px 8px;
  white-space: nowrap;
}
.source-badge.auto { background: color-mix(in srgb, var(--good) 16%, var(--surface)); color: var(--good); }
.source-badge.declared { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); color: var(--primary); }
.source-badge.document { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.source-badge.not_assessed { background: color-mix(in srgb, var(--warning) 20%, var(--surface)); color: var(--warning); }

.check-row.wizard-focus, tr.wizard-focus > td { animation: wizardPulse 1.6s ease; }
@keyframes wizardPulse {
  0%, 100% { background: transparent; }
  30% { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
}
.button.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.button.ghost:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 720px) {
  .check-row { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .whats-new-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-shell,
  html.sidebar-collapsed .app-shell { grid-template-columns: 1fr; }
  .sidebar-toggle { display: inline-flex; }
  .sidebar-backdrop { display: block; }
  .sidebar-close { display: inline-flex; }
  .sidebar-collapse-toggle { display: none; }
  .topbar { grid-template-columns: auto minmax(130px, 1fr) minmax(240px, 1.5fr) auto; justify-content: flex-start; }
  .topbar-actions { margin-left: auto; }
  body.sidebar-open { overflow: hidden; }
  .sidebar {
    bottom: 0;
    box-shadow: 12px 0 32px rgba(15, 23, 42, 0.25);
    left: 0;
    max-width: 320px;
    overflow-y: auto;
    padding: 18px 16px;
    position: fixed;
    top: 0;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    width: 82vw;
    z-index: 50;
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-language { display: none; }
  html.sidebar-collapsed .sidebar {
    padding: 18px 16px;
  }
  html.sidebar-collapsed .brand strong,
  html.sidebar-collapsed .brand small,
  html.sidebar-collapsed .nav-section-label,
  html.sidebar-collapsed .nav a span,
  html.sidebar-collapsed .nav-group {
    display: revert;
  }
  html.sidebar-collapsed .nav a {
    justify-content: flex-start;
    padding: 9px 12px;
  }
  html.sidebar-collapsed .sidebar .brand { justify-content: flex-start; padding: 8px 10px; }
  .hero-grid,
  .agent-hero,
  .grid.two,
  .grid.three,
  .contact-layout,
  .checkout-shell,
  .payment-method-grid,
  .trust-grid,
  .pricing-grid,
  .app-pricing,
  .onboarding-strip,
  .workflow-grid,
  .hero-v2-grid,
  .platform-cards.cols-3,
  .platform-cards.cols-4,
  .plans-grid-v2,
  .capability-grid,
  .cta-band-cards,
  .support-context-grid,
  .support-admin-layout,
  .support-page-layout,
  .plan-summary,
  .page.with-context-help,
  .marketplace-layout,
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .help-hero .hero-v2-grid {
    grid-template-columns: 1fr;
  }
  .context-help-sticky {
    position: static;
  }
  .public-subnav { margin-top: -18px; }
  .support-ticket-row summary,
  .support-ticket-list.compact .support-ticket-row summary {
    grid-template-columns: 1fr;
  }
  .ticket-status {
    justify-items: start;
    text-align: left;
  }
  .onboarding-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    padding: 10px 14px;
    position: sticky;
  }
  /* Row 1: hamburger, then notifications/Deploy Agent/Sign out pushed right.
     Row 2: workspace name + who's logged in, in with what role -- given its
     own full-width row instead of competing for space with the buttons. */
  .sidebar-toggle { order: 1; }
  .topbar-actions { order: 2; margin-left: auto; }
  .topbar-workspace {
    order: 3;
    flex: 1 1 auto;
    flex-basis: 100%;
    min-width: 0;
    overflow: hidden;
  }
  .topbar strong {
    font-size: 15px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-identity {
    font-size: 11.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .topbar-actions {
    font-size: 13px;
    justify-content: flex-end;
  }
  .topbar-actions .app-language-select { display: none; }
  .command-trigger {
    flex: 1 1 100%;
    order: 4;
    width: 100%;
  }
  .command-trigger span, .command-trigger kbd { display: inline; }
  .topbar-actions > .status-pill { display: none; }
  .button {
    font-size: 13.5px;
    min-height: 34px;
    padding: 6px 11px;
  }
  .status-pill {
    font-size: 11px;
    padding: 5px 9px;
  }
  /* The notification bell sits near the left edge of the topbar on mobile,
     so the desktop popover (right:0, min-width:320px anchored to the
     button) would open mostly off-screen to the left. Detach it from the
     button and anchor it to the viewport instead. */
  .notification-popover {
    left: 12px;
    max-height: calc(100vh - 90px);
    max-width: none;
    min-width: 0;
    overflow-y: auto;
    position: fixed;
    right: 12px;
    top: 64px;
    width: auto;
  }
  .mobile-footer-bar {
    display: flex;
    justify-content: center;
    padding: 16px;
  }
  .page { padding: 16px; }
  .page-head {
    flex-direction: column;
  }
  .asset-page-actions { justify-content: flex-start; }
  .asset-subnav { margin-bottom: 14px; }
  .asset-filter-grid,
  .bulk-action-form { grid-template-columns: 1fr; }
  .self-check-overview,
  .bulk-action-toolbar-head { align-items: stretch; flex-direction: column; }
  .framework-self-check > summary { align-items: flex-start; flex-direction: column; }
  .page-head h1 { font-size: 23px; margin: 4px 0 6px; }
  .page-head p { font-size: 14px; }
  .posture { grid-template-columns: 1fr; }
  .form-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }
  .trial-request-layout {
    grid-template-columns: 1fr;
  }
  .operating-story {
    gap: 28px;
    grid-template-columns: 1fr;
  }
  .trial-request-steps {
    grid-template-columns: 1fr;
  }
  .trial-request-steps span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .trial-request-form {
    padding: 18px;
  }
  .trial-request-aside {
    position: static;
  }
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .auth-body {
    background: var(--bg);
  }
  .auth-product {
    display: none;
  }
  .auth-product h1 { font-size: 34px; }
  .public-nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 16px 20px;
    position: sticky;
  }
  .public-brand .brand-logo {
    height: 40px;
    max-width: 196px;
  }
  .hero-v2 {
    padding: 34px 20px 28px;
  }
  .trial-request-hero {
    padding: 28px 20px 20px;
  }
  .trial-request-hero .hero-device-image {
    max-width: 280px;
  }
  .public-section {
    padding: 42px 20px;
  }
  .hero-v2 .public-copy h1 {
    font-size: 38px;
  }
  .trial-request-hero .public-copy h1 {
    font-size: 34px;
  }
  .hero-v2 .public-copy p {
    font-size: 17px;
  }
  .public-section h2 {
    font-size: 28px;
  }
  .operating-story-copy h3 {
    font-size: 26px;
  }
  .operating-story-description {
    min-height: 0;
  }
  .operating-console {
    min-height: 420px;
  }
  .operating-visual-grid {
    gap: 10px;
    padding: 0 14px 16px;
  }
  .operating-workspace-header {
    padding: 18px 14px 14px;
  }
  .operating-activity-feed {
    padding: 13px 14px;
  }
  .operating-console-body {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .operating-source-rail {
    gap: 14px;
    padding: 18px 8px;
  }
  .operating-source-line {
    bottom: 44px;
    left: 25px;
    top: 70px;
  }
  .operating-workspace-header {
    padding: 16px 14px 12px;
  }
  .operating-workspace-header strong {
    font-size: 16px;
  }
  .operating-visual-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .operating-asset-profile {
    grid-column: 1 / -1;
    padding: 12px;
  }
  .operating-profile-rows {
    gap: 7px;
    margin-top: 12px;
    padding-top: 10px;
  }
  .operating-profile-rows span {
    font-size: 9px;
  }
  .operating-flow-map {
    min-height: 148px;
  }
  .operating-outcome-panel {
    padding: 12px;
  }
  .operating-outcome-panel strong {
    font-size: 20px;
  }
  .operating-activity-feed {
    gap: 8px 10px;
  }
  .operating-activity-feed span {
    font-size: 9px;
  }
  .help-hero-panel {
    padding: 6px 16px;
  }
  .help-category-head h3 {
    font-size: 22px;
  }
  .help-topic-body {
    margin-left: 0;
  }
  .public-subnav {
    flex-wrap: nowrap;
    gap: 1px;
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    padding: 4px;
  }
  .public-subnav a {
    flex-shrink: 0;
    font-size: 12px;
    padding: 6px 9px;
  }
  .resource-carousel {
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .resource-card {
    flex-basis: min(260px, calc(100vw - 56px));
  }
  .whats-new-timeline {
    grid-template-columns: 1fr;
  }
  .whats-new-see-all {
    justify-content: flex-start;
  }
  /* Scroll the panel horizontally as one unit when a table has too many
     columns for the viewport, instead of forcing every cell onto one
     unwrapped line (which both breaks column alignment and triggers
     inconsistent mobile-browser font auto-boosting on short cell text). */
  .panel {
    overflow-x: auto;
  }
  th, td {
    font-size: 14px;
    padding: 10px 8px;
  }
  .payment-logo-strip,
  .payment-brand-row,
  .checkout-trust {
    gap: 8px;
  }
  .public-footer {
    padding: 20px;
  }
  .footer-columns {
    gap: 22px;
    grid-template-columns: 1fr;
  }
  .footer-link-columns {
    gap: 16px 28px;
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
  }
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .footer-brand-block img {
    max-width: 220px;
  }
  .legal-page,
  .contact-page {
    padding: 42px 20px;
  }
}

/* Public site: fit every phone viewport without sacrificing hierarchy. */
@media (max-width: 720px) {
  .public-body,
  .public-body > main,
  .public-section,
  .hero-v2,
  .capabilities-section {
    max-width: 100%;
    min-width: 0;
  }
  .public-nav {
    flex-wrap: nowrap;
    gap: 8px;
    min-width: 0;
    padding: 12px 16px;
  }
  .public-brand {
    flex: 1 1 auto;
    max-width: 150px;
    min-width: 0;
  }
  .public-brand .brand-logo {
    display: block;
    height: auto;
    max-width: 150px;
    width: 100%;
  }
  .public-nav-actions {
    flex: 0 0 auto;
    gap: 8px;
    min-width: 0;
  }
  .public-nav-actions a:not(.button) {
    font-size: 14px;
  }
  .public-nav-actions .button {
    font-size: 13px;
    min-height: 36px;
    padding: 7px 10px;
    white-space: nowrap;
  }

  /* The home links are deliberately compact enough for all six to remain
     visible at once; deeper Help/FAQ category navigation keeps its own
     horizontal scrolling behaviour. */
  .public-home-subnav {
    gap: 0;
    justify-content: space-between;
    max-width: none;
    overflow: hidden;
    padding: 4px 6px;
    width: calc(100% - 24px);
  }
  .public-home-subnav a {
    flex: 0 1 auto;
    font-size: 10.5px;
    min-width: 0;
    padding: 6px 3px;
    white-space: nowrap;
  }

  .operating-demo-nav-item svg {
    flex-basis: 14px;
    height: 14px;
    width: 14px;
  }
  .operating-demo-nav-item {
    border: 1px solid transparent;
  }
  .operating-story[data-dashboard-screen="assets"] .operating-demo-nav-assets,
  .operating-story[data-dashboard-screen="software"] .operating-demo-nav-assets,
  .operating-story[data-dashboard-screen="findings"] .operating-demo-nav-findings,
  .operating-story[data-dashboard-screen="reports"] .operating-demo-nav-reports,
  .operating-story[data-dashboard-screen="integrations"] .operating-demo-nav-integrations,
  .operating-story[data-dashboard-screen="workspace"] .operating-demo-nav-workspace {
    border-color: rgba(117, 185, 241, 0.4);
  }

  .plans-grid-v2 {
    gap: 14px;
    margin-top: 18px;
  }
  .plan-card-v2 {
    border-radius: 9px;
    padding: 18px;
  }
  .plan-card-v2 h3 {
    margin: 6px 0 4px;
  }
  .plan-card-checklist {
    gap: 6px;
    margin: 14px 0;
  }
  .plan-card-checklist li {
    padding-left: 22px;
  }
  .plan-card-price {
    margin-bottom: 12px;
  }

  .resource-carousel-shell {
    margin-top: 18px;
  }
  .resource-carousel {
    gap: 12px;
    margin: 0;
    padding: 4px 0 10px;
  }
  .resource-card {
    flex-basis: min(232px, calc(100vw - 48px));
    padding: 16px;
  }
  .resource-card h3 {
    font-size: 16px;
    margin: 6px 0;
  }
  .resource-card p {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .carousel-nav {
    margin-top: 10px;
  }
  .carousel-nav button {
    height: 36px;
    width: 36px;
  }

  .faq-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .faq-head-actions {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    width: 100%;
  }
  .faq-head-actions .button {
    align-items: center;
    display: inline-flex;
    font-size: 11.5px;
    justify-content: center;
    line-height: 1.2;
    min-height: 38px;
    padding: 6px 5px;
    text-align: center;
    white-space: normal;
  }

  .public-footer {
    padding: 24px 20px 20px;
  }
  .footer-columns {
    gap: 20px;
    grid-template-columns: 1fr;
    margin-bottom: 22px;
  }
  .footer-brand-block {
    grid-column: 1 / -1;
  }
  .footer-link-columns {
    gap: 16px 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-col {
    gap: 6px;
    min-width: 0;
  }
  .footer-col strong {
    font-size: 11px;
  }
  .footer-col a {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .public-brand,
  .public-brand .brand-logo {
    max-width: 132px;
  }
}

@media (max-width: 360px) {
  .public-nav {
    padding-left: 12px;
    padding-right: 12px;
  }
  .public-brand,
  .public-brand .brand-logo {
    max-width: 112px;
  }
  .public-nav-actions {
    gap: 6px;
  }
  .public-nav-actions a:not(.button) {
    font-size: 13px;
  }
  .public-nav-actions .button {
    font-size: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .public-home-subnav a {
    font-size: 9.5px;
    padding-left: 2px;
    padding-right: 2px;
  }
}

/* Scroll-reveal animation (public homepage, desktop only).
   Two effects, both 0.8s on the same decelerating curve:
   - .slide-up: content rises 30px out of a slight blur (Azure text/content effect)
   - .slide-left: pricing cards slide in 40px from the right in an
     overlapping 150ms-stagger wave (.stagger-left-1..3)
   The hidden initial state is gated on html.scroll-reveal-ready, which
   initScrollReveal() in app.js adds only on >=1024px viewports with
   IntersectionObserver support and no reduced-motion preference — so
   content is never invisible without JS, on mobile, or for reduced motion.
   Hidden styles live on :not(.is-visible) so settled cards fall back to
   their normal stylesheet values instead of a pinned transform. */
@media (min-width: 1024px) {
  .scroll-reveal-ready .animate-on-scroll .slide-up,
  .scroll-reveal-ready .animate-on-scroll .slide-left {
    transition:
      opacity 0.8s cubic-bezier(0.1, 0.9, 0.2, 1),
      transform 0.8s cubic-bezier(0.1, 0.9, 0.2, 1),
      filter 0.8s cubic-bezier(0.1, 0.9, 0.2, 1);
  }
  .scroll-reveal-ready .animate-on-scroll:not(.is-visible) .slide-up {
    filter: blur(4px);
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform, filter;
  }
  .scroll-reveal-ready .animate-on-scroll:not(.is-visible) .slide-left {
    opacity: 0;
    transform: translateX(40px);
    will-change: opacity, transform;
  }
  .animate-on-scroll .slide-up.stagger-1 { transition-delay: 0ms; }
  .animate-on-scroll .slide-up.stagger-2 { transition-delay: 100ms; }
  .animate-on-scroll .slide-up.stagger-3 { transition-delay: 200ms; }
  .animate-on-scroll .slide-up.stagger-4 { transition-delay: 300ms; }
  .animate-on-scroll .slide-up.stagger-5 { transition-delay: 400ms; }
  .animate-on-scroll .slide-up.stagger-6 { transition-delay: 500ms; }
  .animate-on-scroll .slide-left.stagger-left-1 { transition-delay: 0ms; }
  .animate-on-scroll .slide-left.stagger-left-2 { transition-delay: 150ms; }
  .animate-on-scroll .slide-left.stagger-left-3 { transition-delay: 300ms; }
}
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll .slide-up,
  .animate-on-scroll .slide-left {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .operating-live-state i,
  .operating-story[data-playing="true"] .operating-flow-line::after,
  .operating-story[data-playing="true"] .operating-flow-core {
    animation: none;
  }
  .operating-story-progress span {
    animation: none !important;
  }
}

.mobile-custody-body {
  background: #edf4f2;
  color: #15212b;
  margin: 0;
  min-height: 100vh;
}
.mobile-custody-header {
  align-items: flex-start;
  background: #ffffff;
  border-bottom: 1px solid #cbd5d8;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px max(18px, calc((100% - 760px) / 2));
}
.mobile-custody-header h1 { font-size: 24px; margin: 4px 0; }
.mobile-custody-header p { color: #52616b; font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.mobile-custody-main { margin: 0 auto; max-width: 760px; padding: 18px; }
.mobile-custody-summary,
.mobile-custody-panel,
.mobile-custody-queue {
  background: #ffffff;
  border: 1px solid #cbd5d8;
  border-radius: 6px;
  margin-bottom: 14px;
  padding: 16px;
}
.mobile-custody-summary dl { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.mobile-custody-summary dl div { border-bottom: 1px solid #e2e8f0; min-width: 0; padding-bottom: 8px; }
.mobile-custody-summary dt { color: #52616b; font-size: 12px; }
.mobile-custody-summary dd { font-weight: 650; margin: 3px 0 0; overflow-wrap: anywhere; }
.mobile-custody-panel h2,
.mobile-custody-queue h2 { font-size: 18px; margin: 0 0 12px; }
.mobile-custody-panel form { display: grid; gap: 12px; }
.mobile-custody-panel label { color: #334155; display: grid; font-size: 13px; gap: 5px; }
.mobile-custody-panel input,
.mobile-custody-panel select { min-height: 40px; width: 100%; }
.mobile-custody-panel .button { justify-self: start; min-height: 40px; }
.mobile-custody-status { font-size: 14px; min-height: 20px; }
.mobile-custody-status.is-error { color: #b91c1c; }
.mobile-custody-queue-row { align-items: center; border-top: 1px solid #e2e8f0; display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; }
.mobile-custody-queue-row:first-child { border-top: 0; }
.mobile-custody-queue-row small { color: #52616b; display: block; margin-top: 3px; overflow-wrap: anywhere; }
.mobile-custody-queue-row > div:last-child { display: flex; flex-shrink: 0; gap: 8px; }
@media (max-width: 620px) {
  .mobile-custody-header { align-items: stretch; flex-direction: column; }
  .mobile-custody-header .button { align-self: flex-start; }
  .mobile-custody-summary dl { grid-template-columns: 1fr; }
  .mobile-custody-queue-row { align-items: flex-start; flex-direction: column; }
}
