:root {
  color-scheme: dark;
  --bg: #0a3f45;
  --bg-2: #11336d;
  --surface: rgba(7, 32, 34, 0.86);
  --surface-2: rgba(10, 46, 48, 0.88);
  --surface-3: rgba(16, 59, 62, 0.72);
  --text: #f2fbfb;
  --muted: #b6d1d3;
  --faint: #85a3a4;
  --source-code: #b2cfd1;
  --link: #78f3fa;
  --line: rgba(108, 200, 205, 0.16);
  --line-strong: rgba(108, 200, 205, 0.28);
  --teal: #00949d;
  --teal-bright: #2cb7c0;
  --purple: #6e56cf;
  --violet: #9384e6;
  --green: #61d394;
  --amber: #f2b84b;
  --yellow: #ffd166;
  --orange: #ff9f43;
  --red: #ff6b6b;
  --answer-green: #61d394;
  --answer-yellow: #ffd166;
  --answer-orange: #ff9f43;
  --answer-red: #ff6b6b;
  --blue: #62a8ff;
  --electric: #3d2bff;
  --electric-soft: #6d5bff;
  --ink: #062021;
  --focus: #7af7ff;
  --surface-highlight: rgba(44, 183, 192, 0.12);
  --motion-fast: 160ms;
  --motion-med: 260ms;
  --motion-slow: 680ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tracking-display: -0.02em;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.24), 0 6px 16px rgba(0, 0, 0, 0.22), 0 20px 48px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 16px 46px rgba(0, 148, 157, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 3px 10px rgba(0, 0, 0, 0.16);
  --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.22);
  --shadow-lift: 0 30px 90px rgba(0, 0, 0, 0.34);
  --glass: linear-gradient(145deg, rgba(14, 58, 61, 0.78), rgba(4, 25, 27, 0.82));
  --radius: 12px;
  --radius-lg: 16px;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fa;
  --bg-2: #eef2f7;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --surface-3: #f2f5f9;
  --text: #10233b;
  --muted: #56657a;
  --faint: #66748a;
  --source-code: #3d4d63;
  --link: #007e86;
  --line: rgba(16, 42, 78, 0.13);
  --line-strong: rgba(16, 42, 78, 0.22);
  --teal: #00949d;
  --teal-bright: #17a4ae;
  --focus: #007e86;
  --answer-green: #1f8a55;
  --answer-yellow: #a86d00;
  --answer-orange: #b85f00;
  --answer-red: #d23350;
  --ink: #ffffff;
  --surface-highlight: rgba(0, 148, 157, 0.1);
  --shadow: 0 1px 2px rgba(16, 42, 78, 0.04);
  --shadow-soft: 0 1px 2px rgba(16, 42, 78, 0.04);
  --shadow-sm: none;
  --shadow-hover: 0 1px 3px rgba(16, 42, 78, 0.06);
  --shadow-lift: 0 2px 8px rgba(16, 42, 78, 0.07);
  --glass: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

::selection {
  background: color-mix(in srgb, var(--teal-bright) 42%, transparent);
  color: var(--text);
}

* {
  scrollbar-color: color-mix(in srgb, var(--teal-bright) 56%, var(--surface-3)) transparent;
  scrollbar-width: thin;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(calc(-100% - 24px));
  padding: 10px 14px;
  border: 2px solid var(--focus);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform var(--motion-fast) ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(60% 54% at 12% 4%, rgba(44, 183, 192, 0.62), transparent 60%),
    radial-gradient(54% 50% at 92% 8%, rgba(110, 86, 207, 0.5), transparent 58%),
    radial-gradient(66% 60% at 84% 94%, rgba(61, 43, 255, 0.55), transparent 62%),
    radial-gradient(42% 42% at 18% 92%, rgba(61, 43, 255, 0.34), transparent 60%),
    radial-gradient(50% 48% at 50% 46%, rgba(122, 247, 255, 0.16), transparent 70%),
    linear-gradient(158deg, var(--bg) 0%, var(--bg-2) 52%, #0a244a 100%);
}

/* crisp technical grid, drifts slowly */
.app-bg::before {
  content: "";
  position: absolute;
  inset: -2%;
  background-image:
    linear-gradient(rgba(122, 247, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 247, 255, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 120% at 50% 0%, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 0%, black 0%, black 55%, transparent 100%);
  animation: gridDrift 26s ease-in-out infinite alternate;
}

/* 21st.dev-style moving aurora / shader glow */
.app-bg::after {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 38% at 28% 30%, rgba(61, 43, 255, 0.55), transparent 60%),
    radial-gradient(34% 34% at 72% 38%, rgba(44, 183, 192, 0.5), transparent 60%),
    radial-gradient(44% 44% at 56% 76%, rgba(110, 86, 207, 0.46), transparent 62%),
    radial-gradient(30% 30% at 84% 74%, rgba(122, 247, 255, 0.32), transparent 60%);
  filter: blur(60px) saturate(134%);
  opacity: 0.82;
  animation: auroraDrift 24s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes gridDrift {
  from { transform: translate3d(-1.5%, -1%, 0); }
  to   { transform: translate3d(1.5%, 1%, 0); }
}

@keyframes auroraDrift {
  0%   { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1.05); }
  50%  { transform: translate3d(3%, 2%, 0) rotate(4deg) scale(1.14); }
  100% { transform: translate3d(-2%, 3%, 0) rotate(-3deg) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .app-bg::before,
  .app-bg::after {
    animation: none;
  }
}

/* Light mode: clean, flat Box.com-style canvas (no aurora, no grid) */
[data-theme="light"] .app-bg {
  background:
    radial-gradient(72% 60% at 90% -4%, rgba(0, 148, 157, 0.06), transparent 60%),
    radial-gradient(60% 50% at 4% 100%, rgba(110, 86, 207, 0.04), transparent 62%),
    linear-gradient(180deg, #f7fafa 0%, #eef4f4 100%);
}

[data-theme="light"] .app-bg::before {
  display: none;
}

[data-theme="light"] .app-bg::after {
  display: none;
}

/* Flat Wiz-style light mode: no decorative sheen on panels */
[data-theme="light"] .panel::before {
  display: none;
}

[data-theme="light"] .panel::after {
  background:
    linear-gradient(135deg, rgba(0, 148, 157, 0.4), transparent 38%),
    linear-gradient(315deg, transparent, rgba(0, 148, 157, 0.22));
}

[data-theme="light"] .nav-item.active {
  border-color: rgba(0, 148, 157, 0.42);
  background:
    linear-gradient(145deg, rgba(0, 148, 157, 0.13), rgba(110, 86, 207, 0.07)),
    var(--surface-2);
}

/* Flat Wiz light mode: strip elevation glows from buttons, CTAs, tiles, rings */
[data-theme="light"] .command-button,
[data-theme="light"] .icon-button,
[data-theme="light"] .pill-button,
[data-theme="light"] .command-button:hover,
[data-theme="light"] .icon-button:hover,
[data-theme="light"] .pill-button:hover,
[data-theme="light"] .command-button.primary,
[data-theme="light"] .pill-button.primary,
[data-theme="light"] .command-button.primary:hover,
[data-theme="light"] .pill-button.primary:hover,
[data-theme="light"] .booking-cta,
[data-theme="light"] .booking-cta:hover,
[data-theme="light"] .score-ring,
[data-theme="light"] .metric,
[data-theme="light"] .mini-metric,
[data-theme="light"] .fact {
  box-shadow: none;
}

@keyframes progressFlow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 180% 50%;
  }
}

.app-frame {
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100vh;
  padding: 20px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, transparent), color-mix(in srgb, var(--bg) 88%, transparent)),
    var(--surface);
  backdrop-filter: blur(18px) saturate(150%);
  overflow: auto;
}

.brand-block {
  position: relative;
  display: grid;
  gap: 11px;
  min-height: 118px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(44, 183, 192, 0.18), transparent 42%),
    linear-gradient(315deg, rgba(110, 86, 207, 0.12), transparent 40%),
    var(--surface-2);
  box-shadow: var(--shadow-soft);
}

.brand-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, 0.09) 42%, transparent 52%),
    radial-gradient(circle at 15% 0%, rgba(44, 183, 192, 0.22), transparent 38%);
  opacity: 0.8;
  pointer-events: none;
}

.brand-logo-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 72px;
}

.brand-logo {
  display: block;
  width: 100%;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
}

[data-theme="light"] .brand-logo-frame {
  min-height: 66px;
}

.brand-block.logo-fallback .brand-logo-frame {
  margin: -4px;
  padding: 10px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #02191a, #063436);
}

.brand-status {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--teal-bright);
  box-shadow: 0 0 14px rgba(44, 183, 192, 0.9);
}

.main-nav {
  display: grid;
  gap: 8px;
}

.nav-item,
.function-button,
.command-button,
.language-button,
.icon-button,
.answer-option,
.pill-button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    color var(--motion-fast) ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--focus) 20%, transparent),
    0 0 34px color-mix(in srgb, var(--focus) 20%, transparent);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(40px, 1fr));
  gap: 3px;
  min-height: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}

.language-button {
  min-width: 40px;
  padding: 0 9px;
  border-color: transparent;
  border-radius: calc(var(--radius) - 3px);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.language-button.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-bright));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 148, 157, 0.25);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  text-align: left;
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

.nav-item:hover,
.function-button:hover,
.command-button:hover,
.icon-button:hover,
.answer-option:hover,
.pill-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.command-button.primary:hover,
.pill-button.primary:hover {
  box-shadow:
    0 22px 50px color-mix(in srgb, var(--teal) 30%, transparent),
    0 0 0 1px color-mix(in srgb, var(--teal-bright) 55%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.nav-item:active,
.function-button:active,
.command-button:active,
.icon-button:active,
.answer-option:active,
.pill-button:active {
  transform: translateY(0) scale(0.99);
}

.nav-item.active,
.function-button.active {
  border-color: rgba(44, 183, 192, 0.55);
  background:
    linear-gradient(145deg, rgba(44, 183, 192, 0.22), rgba(110, 86, 207, 0.12)),
    var(--surface-2);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 148, 157, 0.13);
}

.nav-item.active svg,
.function-button.active .function-score {
  color: var(--teal-bright);
}

.sidebar-section {
  display: grid;
  gap: 10px;
}

.section-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.function-nav {
  display: grid;
  gap: 8px;
}

.function-button {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  text-align: left;
  overflow: hidden;
}

.function-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--fn-color, var(--teal)), transparent);
  opacity: 0.42;
  transition: opacity var(--motion-med) var(--ease-out);
}

.function-button:hover::after {
  opacity: 0.85;
}

.function-button.active::after {
  opacity: 1;
}

.function-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--fn-color, var(--teal));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fn-color, var(--teal)) 14%, transparent);
}

.function-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.function-score {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.model-facts {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.fact {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
}

.fact span {
  color: var(--muted);
  font-size: 11px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 86px;
  padding: 18px clamp(20px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 84%, transparent), color-mix(in srgb, var(--surface) 76%, transparent)),
    color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
}

.topbar-title {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal-bright);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  margin-top: 4px;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
}

h2 {
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
}

h3 {
  font-size: clamp(18px, 1.4vw, 20px);
}

h4 {
  font-size: 15px;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.command-button,
.icon-button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 22px rgba(0, 0, 0, 0.08);
}

.command-button svg,
.icon-button svg,
.pill-button svg {
  width: 17px;
  height: 17px;
}

.icon-button {
  width: 44px;
  padding: 0;
}

.command-button.primary,
.pill-button.primary {
  border-color: transparent;
  background: linear-gradient(145deg, var(--teal-bright), var(--teal));
  color: #031718;
  box-shadow:
    0 20px 44px rgba(0, 148, 157, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.command-button.danger,
.pill-button.danger {
  border-color: color-mix(in srgb, var(--red) 38%, var(--line));
  color: var(--red);
}

.command-button:disabled,
.pill-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.content {
  display: grid;
  gap: 28px;
  padding: clamp(20px, 4vw, 44px);
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0 clamp(20px, 4vw, 44px) 28px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.legal-footer strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.legal-links a {
  color: var(--link);
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 4px;
}

.legal-links a:hover {
  text-decoration: underline;
}

.legal-footer span {
  max-width: 940px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.58fr);
  gap: 24px;
}

.dashboard-grid-balanced {
  grid-template-columns: minmax(360px, 0.96fr) minmax(420px, 1.04fr);
  align-items: stretch;
}

.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow);
  container-type: inline-size;
  transition:
    border-color var(--motion-med) ease,
    box-shadow var(--motion-med) ease,
    transform var(--motion-med) ease;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(44, 183, 192, 0.14), transparent 34%);
  opacity: 0.82;
  pointer-events: none;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(122, 247, 255, 0.46), transparent 32%, rgba(147, 132, 230, 0.34), transparent 72%),
    linear-gradient(315deg, transparent, rgba(44, 183, 192, 0.28));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-med) ease;
}

.panel:hover::after,
.panel:focus-within::after {
  opacity: 1;
}

.panel:hover,
.panel:focus-within {
  box-shadow: var(--shadow-lift);
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel-pad {
  padding: clamp(22px, 2.5vw, 32px);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 28px;
  align-content: start;
  min-height: 420px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--teal) 8%), color-mix(in srgb, var(--surface-2) 90%, var(--purple) 10%)),
    var(--surface);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(44, 183, 192, 0.2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 183, 192, 0.13), transparent 62%);
  pointer-events: none;
}

.assessment-identity {
  display: grid;
  gap: 12px;
}

.assessment-brand-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.assessment-standard-logo {
  display: block;
  width: clamp(96px, 9vw, 132px);
  height: clamp(96px, 9vw, 132px);
  flex: 0 0 auto;
  padding: 10px;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--teal-bright) 34%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 28%, rgba(255, 255, 255, 0.18), transparent 32%),
    radial-gradient(circle at 50% 52%, rgba(40, 215, 223, 0.18), transparent 66%),
    linear-gradient(145deg, rgba(2, 25, 26, 0.92), rgba(7, 53, 55, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 18px 34px rgba(0, 30, 34, 0.28),
    0 0 0 8px color-mix(in srgb, var(--teal-bright) 8%, transparent);
}

.assessment-standard-logo.nis2-standard-logo {
  transform: translateZ(0);
  filter: drop-shadow(0 12px 22px rgba(0, 27, 58, 0.28));
}

.assessment-identity h2 {
  max-width: 720px;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.02;
}

.assessment-identity p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 17px);
}

.framework-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.framework-badges span,
.assessment-context {
  border: 1px solid color-mix(in srgb, var(--teal-bright) 32%, var(--line));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal-bright) 12%, transparent), transparent 70%),
    color-mix(in srgb, var(--surface-2) 90%, transparent);
}

.framework-badges span {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.assessment-context {
  display: grid;
  gap: 4px;
  max-width: 560px;
  margin-top: 2px;
  padding: 12px;
  border-radius: var(--radius);
}

.assessment-context span,
.assessment-context small {
  color: var(--muted);
  font-size: 12px;
}

.assessment-context b {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
}

.booking-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  max-width: 100%;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--teal-bright) 64%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #7af7ff 0%, var(--teal-bright) 42%, #8cebd0 100%);
  color: #031719;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 14px 34px color-mix(in srgb, var(--teal-bright) 22%, transparent);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    filter var(--motion-fast) ease;
}

.booking-cta::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.38), transparent 38%);
  pointer-events: none;
}

.booking-cta:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--teal-bright) 82%, white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 42px color-mix(in srgb, var(--teal-bright) 30%, transparent);
  filter: saturate(1.06);
}

.booking-cta:active {
  transform: translateY(0) scale(0.985);
}

.booking-cta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2.25;
}

.booking-cta > span {
  position: relative;
  z-index: 1;
}

.booking-topbar-cta {
  display: none;
  min-width: 142px;
  padding-inline: 13px;
}

.sidebar-booking-cta {
  display: inline-flex;
  width: calc(100% - 20px);
  min-height: 48px;
  margin: -8px 10px 4px;
  padding-inline: 14px;
  border-color: color-mix(in srgb, var(--teal-bright) 52%, var(--line));
  border-radius: 0 0 var(--radius) var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, #7af7ff 78%, white), var(--teal-bright) 48%, #8cebd0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 12px 28px color-mix(in srgb, var(--teal-bright) 19%, transparent);
  font-size: 13px;
}

.sidebar-booking-cta::before {
  content: "";
  position: absolute;
  top: -11px;
  right: 20px;
  left: 20px;
  height: 11px;
  border-inline: 1px solid color-mix(in srgb, var(--teal-bright) 26%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 58%, transparent), transparent);
  pointer-events: none;
}

.sidebar-booking-cta::after {
  border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px);
}

.score-ring {
  --score: 0%;
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 58%, transparent 59%),
    conic-gradient(var(--teal-bright) var(--score), rgba(108, 200, 205, 0.14) 0);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 44px rgba(44, 183, 192, 0.11),
    0 30px 70px rgba(0, 148, 157, 0.12);
  transition: filter var(--motion-med) ease, transform var(--motion-med) ease;
}

.score-ring:hover {
  filter: saturate(1.12);
  transform: scale(1.012);
}

.ring-value {
  font-family: var(--font-display);
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ring-sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
}

.metric-row,
.compact-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric,
.mini-metric {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--surface-2) 92%, var(--teal) 8%), var(--surface-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.metric::after,
.mini-metric::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-bright), transparent);
  opacity: 0.5;
}

.metric b,
.mini-metric b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
}

.metric span,
.mini-metric span {
  color: var(--muted);
  font-size: 12px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span,
.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  padding: 11px 14px;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-fast) var(--ease-out),
    background var(--motion-fast) var(--ease-out);
}

.field input::placeholder,
.field textarea::placeholder,
.search-input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.field select {
  color-scheme: dark;
}

.field select option {
  background: #073537;
  color: #ecfbfb;
}

[data-theme="light"] .field select {
  color-scheme: light;
}

[data-theme="light"] .field select option {
  background: #f6fbfb;
  color: #123436;
}

.field textarea {
  min-height: 76px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  border-color: var(--teal-bright);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 88%, var(--teal) 10%), var(--surface-2));
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--teal-bright) 42%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 78ch;
}

.heatmap {
  display: grid;
  gap: 8px;
}

.heat-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 82px;
  align-items: stretch;
  gap: 8px;
}

.heat-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
}

.heat-cell,
.heat-label,
.heat-score {
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 92%, var(--teal) 8%), var(--surface-2));
}

.heat-label {
  display: grid;
  align-content: center;
}

.heat-label b {
  font-size: 13px;
}

.heat-label span {
  color: var(--muted);
  font-size: 11px;
}

.heat-cell {
  position: relative;
  overflow: hidden;
}

.heat-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--fill, 0%);
  background: linear-gradient(90deg, rgba(44, 183, 192, 0.38), rgba(110, 86, 207, 0.25));
}

.heat-cell > span,
.heat-score > span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  line-height: 1.25;
}

.heat-score > span {
  font-family: var(--font-mono);
}

.heat-score {
  display: grid;
  place-items: center;
  font-weight: 800;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 210px auto auto;
  gap: 10px;
  align-items: center;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.switch-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.assessment-guided-panel {
  display: grid;
  gap: 16px;
}

.guided-toolbar {
  grid-template-columns: minmax(260px, 1.2fr) minmax(190px, 0.7fr) minmax(240px, 0.9fr) auto auto;
}

.guided-progress-card {
  display: grid;
  gap: 8px;
  width: min(260px, 100%);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 92%, var(--teal) 8%), var(--surface-2));
}

.level-scope-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 14%, transparent), transparent 46%),
    color-mix(in srgb, var(--surface-2) 86%, transparent);
}

.level-scope-card h3 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.level-scope-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.level-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.level-option {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 92px;
  padding: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 90%, var(--teal) 6%), var(--surface-2));
}

.level-option::after {
  content: "";
  position: absolute;
  inset: auto 10px 9px 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-bright), var(--purple));
  opacity: 0;
  transition: opacity var(--motion-fast) ease;
}

.level-option strong {
  font-family: var(--font-display);
  font-size: 15px;
}

.level-option span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.level-option.active {
  border-color: var(--teal-bright);
  box-shadow:
    inset 0 0 0 1px rgba(44, 183, 192, 0.14),
    0 14px 34px rgba(0, 148, 157, 0.12);
}

.level-option.active::after {
  opacity: 1;
}

.product-class-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.92fr) minmax(150px, 0.42fr);
  gap: 12px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 16%, transparent), transparent 48%),
    linear-gradient(315deg, color-mix(in srgb, var(--purple) 10%, transparent), transparent 44%),
    color-mix(in srgb, var(--surface-2) 88%, transparent);
}

.product-class-copy,
.product-class-select,
.product-class-baseline {
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 54%, transparent);
}

.product-class-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.product-class-copy h3 {
  font-size: clamp(20px, 2vw, 28px);
}

.product-class-copy p,
.product-class-summary span,
.product-class-summary small,
.product-class-baseline small {
  color: var(--muted);
  font-size: 13px;
}

.product-class-help {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.product-class-link {
  width: fit-content;
  margin-top: 2px;
}

.product-class-select {
  display: grid;
  gap: 10px;
}

.product-class-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-class-dropdown {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 8px;
  --pc-accent: var(--teal-bright);
}

.product-class-trigger,
.product-class-option {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--pc-accent) 44%, var(--line));
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.product-class-trigger {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 36px;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 14px 14px 14px 16px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--pc-accent) 23%, transparent), transparent 58%),
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 92%, var(--pc-accent) 8%), var(--surface-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px color-mix(in srgb, var(--pc-accent) 14%, transparent);
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    transform var(--motion-fast) ease,
    background var(--motion-fast) ease;
}

.product-class-trigger:hover,
.product-class-dropdown.open .product-class-trigger {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--pc-accent) 74%, white);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 42px color-mix(in srgb, var(--pc-accent) 22%, transparent);
}

.product-class-trigger:focus-visible,
.product-class-option:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--focus) 20%, transparent),
    0 0 34px color-mix(in srgb, var(--pc-accent) 24%, transparent);
}

.product-class-swatch {
  display: block;
  width: 12px;
  min-height: 48px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--pc-accent) 72%, white), var(--pc-accent));
  box-shadow:
    0 0 22px color-mix(in srgb, var(--pc-accent) 45%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-class-trigger-copy,
.product-class-option-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.product-class-trigger-copy strong,
.product-class-option-copy strong {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.18;
}

.product-class-trigger-copy small,
.product-class-option-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.46;
}

.product-class-chevron {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--pc-accent) 34%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease;
}

.product-class-chevron::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.product-class-dropdown.open .product-class-chevron {
  transform: rotate(180deg);
  border-color: color-mix(in srgb, var(--pc-accent) 62%, white);
  background: color-mix(in srgb, var(--pc-accent) 14%, var(--surface));
}

.product-class-menu {
  display: none;
  max-height: min(430px, 62vh);
  padding: 8px;
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--pc-accent) 34%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, var(--pc-accent) 10%), var(--surface-2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 54px rgba(0, 20, 24, 0.34);
}

.product-class-dropdown.open .product-class-menu {
  display: grid;
  gap: 8px;
}

.product-class-option {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 13px 12px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pc-accent) 18%, transparent), transparent 62%),
    color-mix(in srgb, var(--surface-2) 84%, transparent);
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}

.product-class-option:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--pc-accent) 72%, white);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pc-accent) 27%, transparent), transparent 70%),
    color-mix(in srgb, var(--surface-2) 72%, var(--pc-accent) 10%);
}

.product-class-option.selected {
  border-color: color-mix(in srgb, var(--pc-accent) 82%, white);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--pc-accent) 34%, transparent), transparent 72%),
    color-mix(in srgb, var(--surface-2) 68%, var(--pc-accent) 14%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--pc-accent) 22%, transparent),
    0 12px 28px color-mix(in srgb, var(--pc-accent) 16%, transparent);
}

.product-class-option b {
  align-self: center;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--pc-accent) 54%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--pc-accent) 14%, transparent);
  color: color-mix(in srgb, var(--pc-accent) 82%, white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-class-dropdown.compact {
  gap: 6px;
}

.product-class-dropdown.compact .product-class-trigger {
  grid-template-columns: 10px minmax(0, 1fr) 28px;
  min-height: 44px;
  padding: 8px 9px;
}

.product-class-dropdown.compact .product-class-trigger-copy small {
  display: none;
}

.product-class-dropdown.compact .product-class-trigger-copy strong {
  font-family: var(--font-sans);
  font-size: 13px;
}

.product-class-dropdown.compact .product-class-swatch {
  width: 9px;
  min-height: 26px;
}

.product-class-dropdown.compact .product-class-chevron {
  width: 28px;
  height: 28px;
}

.product-class-dropdown.compact .product-class-option {
  grid-template-columns: 10px minmax(0, 1fr);
  min-height: 58px;
  padding: 10px;
}

.product-class-dropdown.compact .product-class-option b {
  display: none;
}

.product-class-summary {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--pc-accent) 38%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pc-accent) 14%, transparent), transparent),
    color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.product-class-summary strong,
.product-class-baseline strong {
  font-family: var(--font-display);
  font-size: 24px;
}

.product-class-summary strong {
  color: color-mix(in srgb, var(--pc-accent) 78%, white);
}

.product-class-summary small {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.product-class-baseline {
  display: grid;
  align-content: center;
  gap: 6px;
  text-align: center;
}

.product-class-baseline span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-class-baseline strong {
  color: var(--teal-bright);
  font-size: 46px;
  line-height: 0.95;
}

.guided-progress-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 850;
  line-height: 0.95;
}

.guided-progress,
.report-progress {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-3) 82%, var(--text) 8%);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.24);
}

.guided-progress span,
.report-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--teal-bright), var(--purple), var(--teal-bright));
  background-size: 180% 100%;
  box-shadow: 0 0 24px color-mix(in srgb, var(--teal-bright) 48%, transparent);
  animation: progressFlow 3.8s linear infinite;
}

.guided-progress-card small,
.guided-stat-grid span {
  color: var(--muted);
  font-size: 12px;
}

.guided-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.guided-stat-grid div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
  transition:
    border-color var(--motion-fast) ease,
    transform var(--motion-fast) ease,
    background var(--motion-fast) ease;
}

.guided-stat-grid div:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface-2) 78%, var(--teal) 8%);
}

.guided-stat-grid b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.assessment-guide {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.aspect-rail {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 126px);
  padding: 14px;
  overflow: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.aspect-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.aspect-rail-head strong {
  font-family: var(--font-mono);
  color: var(--muted);
}

.aspect-groups,
.aspect-group-items {
  display: grid;
  gap: 8px;
}

.aspect-group {
  display: grid;
  gap: 8px;
}

.aspect-group-header {
  position: sticky;
  top: -14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 8px 9px;
  border: 1px solid color-mix(in srgb, var(--fn-color, var(--teal-bright)) 28%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--fn-color, var(--teal-bright)) 12%, transparent), transparent 62%),
    color-mix(in srgb, var(--surface-2) 94%, var(--bg));
  backdrop-filter: blur(12px);
}

.aspect-group-header span {
  color: var(--text);
  font-weight: 850;
  line-height: 1.2;
}

.aspect-group-header small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.aspect-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, auto);
  gap: 11px;
  align-items: start;
  width: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--surface-2) 82%, transparent)),
    var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}

.aspect-item.active {
  border-color: var(--teal-bright);
  background:
    linear-gradient(135deg, rgba(44, 183, 192, 0.22), transparent 52%),
    var(--surface-2);
  box-shadow:
    inset 4px 0 0 var(--teal-bright),
    0 14px 30px rgba(0, 148, 157, 0.13);
}

.aspect-item:hover {
  transform: translateX(2px);
  border-color: var(--line-strong);
}

.aspect-item-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.aspect-code {
  width: fit-content;
  min-height: 22px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--teal-bright) 42%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal-bright) 12%, transparent);
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 950;
}

.aspect-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 850;
  line-height: 1.2;
}

.aspect-question-line {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.aspect-item-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px 6px;
  align-items: start;
  justify-content: stretch;
  min-width: 96px;
}

.aspect-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--teal-bright) 36%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 86%, var(--teal) 10%);
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
}

.aspect-mini-progress {
  grid-column: 1 / -1;
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-3) 76%, var(--bg));
}

.aspect-mini-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-bright), var(--purple));
  box-shadow: 0 0 14px color-mix(in srgb, var(--teal-bright) 48%, transparent);
  transition: width var(--motion-med) ease;
}

.aspect-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.aspect-status.idle {
  border-color: var(--line);
  color: var(--faint);
}

.aspect-status.done {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
  color: var(--green);
}

.aspect-status.warn {
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  color: var(--amber);
}

.aspect-status.large {
  min-height: 30px;
  padding-inline: 10px;
  font-size: 11px;
}

.aspect-detail {
  display: grid;
  gap: 16px;
  scroll-margin-top: 118px;
}

.aspect-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.aspect-card-head p,
.aspect-question p {
  color: var(--muted);
}

.aspect-breadcrumb,
.gap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.aspect-breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.aspect-question,
.aspect-criteria,
.aspect-answer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.aspect-question p {
  color: var(--text);
  font-size: 17px;
  font-weight: 760;
}

.aspect-subhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.aspect-subhead span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.implementation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.implementation-grid .field {
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  gap: 8px;
  min-height: 246px;
}

.implementation-grid .owner-field {
  grid-column: 1 / -1;
  grid-template-rows: auto auto;
  min-height: 0;
}

.implementation-grid .compact-field {
  grid-template-rows: auto auto;
  min-height: 0;
}

.implementation-grid .field-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 24px;
}

.mandatory-star {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.comment-template-card {
  display: grid;
  gap: 9px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--teal-bright) 28%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal-bright) 10%, transparent), transparent 62%),
    color-mix(in srgb, var(--surface-2) 92%, transparent);
}

.comment-template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.implementation-template-card {
  grid-column: 1 / -1;
}

.comment-template-head div {
  display: grid;
  gap: 3px;
}

.comment-template-head strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 13px;
}

.comment-template-head span {
  color: var(--muted);
  font-size: 11px;
}

.pill-button.small {
  min-height: 40px;
  padding-inline: 10px;
  white-space: nowrap;
}

.comment-template-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.implementation-grid small {
  min-height: 38px;
  color: var(--muted);
  font-size: 12px;
}

.implementation-grid textarea {
  height: 100%;
  min-height: 180px;
  resize: vertical;
}

.implementation-grid textarea::placeholder {
  color: var(--faint);
  opacity: 1;
}

@supports selector(:has(*)) {
  .aspect-detail:has(.answer-option.selected) .aspect-answer {
    border-color: color-mix(in srgb, var(--teal-bright) 42%, var(--line));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal-bright) 14%, transparent);
  }

  .aspect-detail:has(textarea[required]:focus) .required-field .field-label {
    color: var(--text);
  }
}

.aspect-more {
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.practice-stack {
  display: grid;
  gap: 18px;
}

.practice-workbench {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.practice-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.practice-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge,
.score-badge,
.state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.practice-label-badge {
  justify-content: flex-start;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.score-badge {
  color: var(--text);
}

.state-badge.good {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
  color: var(--green);
}

.state-badge.warn {
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  color: var(--amber);
}

.state-badge.bad {
  border-color: color-mix(in srgb, var(--red) 45%, var(--line));
  color: var(--red);
}

.practice-desc,
.activity-desc,
.muted {
  color: var(--muted);
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stream-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.stream-head {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(44, 183, 192, 0.16), transparent 42%),
    linear-gradient(145deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 72%, var(--teal) 12%));
}

.stream-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.activity-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.activity-card.answered {
  border-color: color-mix(in srgb, var(--teal-bright) 42%, var(--line));
  background:
    linear-gradient(145deg, rgba(44, 183, 192, 0.1), transparent 42%),
    var(--surface);
}

.activity-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.question-text {
  font-weight: 750;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.answer-option {
  --answer-color: var(--teal-bright);
  position: relative;
  display: grid;
  align-content: center;
  min-height: 74px;
  overflow: hidden;
  padding: 12px;
  border-color: color-mix(in srgb, var(--answer-color) 26%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--answer-color) 8%, transparent), transparent 62%),
    var(--surface-2);
  text-align: left;
}

.answer-option[data-value="0"] {
  --answer-color: var(--answer-red);
}

.answer-option[data-value="0.25"] {
  --answer-color: var(--answer-orange);
}

.answer-option[data-value="0.5"] {
  --answer-color: var(--answer-yellow);
}

.answer-option[data-value="1"] {
  --answer-color: var(--answer-green);
}

.answer-option::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.08) 48%, transparent 58%);
  opacity: 0;
  transform: translateX(-45%);
  pointer-events: none;
  transition:
    opacity var(--motion-fast) ease,
    transform var(--motion-med) ease;
}

.answer-option:hover::before,
.answer-option.selected::before {
  opacity: 1;
  transform: translateX(45%);
}

.answer-option:hover {
  border-color: color-mix(in srgb, var(--answer-color) 58%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--answer-color) 13%, transparent), transparent 62%),
    var(--surface-2);
}

.answer-option strong {
  display: block;
  color: color-mix(in srgb, var(--answer-color) 82%, var(--text));
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.answer-option span {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.answer-option.selected {
  border-color: var(--answer-color);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--answer-color) 24%, transparent), transparent 62%),
    linear-gradient(315deg, color-mix(in srgb, var(--answer-color) 12%, var(--purple) 10%), transparent 64%),
    var(--surface-2);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--answer-color) 22%, transparent),
    0 12px 34px color-mix(in srgb, var(--answer-color) 18%, transparent);
}

.answer-option.selected strong {
  color: var(--answer-color);
}

.answer-option.selected::after {
  content: "";
  position: absolute;
  inset: auto 10px 8px 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--answer-color), color-mix(in srgb, var(--answer-color) 45%, var(--purple)));
  box-shadow: 0 0 18px color-mix(in srgb, var(--answer-color) 44%, transparent);
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.details-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.quality-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quality-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.quality-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--teal-bright);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.answer-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: stretch;
}

.report-hero-main {
  display: grid;
  align-content: start;
  gap: 12px;
}

.report-narrative,
.report-function-grid,
.report-method-grid {
  display: grid;
  gap: 10px;
}

.report-narrative {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

.report-narrative div,
.report-function-card,
.report-score-card,
.report-method-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.report-narrative div {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.report-narrative strong,
.report-method-grid b {
  font-family: var(--font-display);
}

.report-narrative span,
.report-method-grid span {
  color: var(--muted);
  font-size: 12px;
}

.report-score-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  text-align: center;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 82%, var(--teal) 12%), var(--surface-2));
}

.report-score {
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 82px);
  font-weight: 850;
  line-height: 0.92;
  text-shadow: 0 0 26px color-mix(in srgb, var(--teal-bright) 30%, transparent);
}

.report-grade {
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-score-grid div,
.report-method-grid div {
  padding: 10px;
}

.report-score-grid b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
}

.report-score-grid span {
  color: var(--muted);
  font-size: 11px;
}

.report-progress,
.report-bar {
  position: relative;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 78%, var(--bg));
}

.report-progress span,
.report-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-bright), var(--purple));
}

.management-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.management-chart-card {
  min-height: 260px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 86%, var(--teal) 8%), var(--surface-2));
}

.management-chart-card.wide {
  grid-column: span 2;
}

.chart-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.chart-card-head h3 {
  font-size: 17px;
}

.chart-card-head span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.function-balance-chart,
.level-coverage-chart {
  display: grid;
  gap: 10px;
}

.balance-row {
  display: grid;
  grid-template-columns: 160px 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.balance-row span,
.level-row span {
  color: var(--muted);
  font-size: 12px;
}

.balance-row b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}

.balance-row i,
.level-row i {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-3) 80%, transparent);
}

.balance-row em,
.level-row em {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fn-color, var(--teal-bright)), var(--purple));
  box-shadow: 0 0 18px color-mix(in srgb, var(--teal-bright) 38%, transparent);
}

.donut-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: min(190px, 72vw);
  aspect-ratio: 1;
  margin: 10px auto 14px;
  border-radius: 50%;
  background: conic-gradient(var(--segments));
  box-shadow:
    inset 0 0 0 1px var(--line),
    0 24px 60px rgba(0, 148, 157, 0.12);
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: inherit;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.donut-chart strong,
.donut-chart span {
  position: relative;
  z-index: 1;
}

.donut-chart strong {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.donut-chart span {
  color: var(--muted);
  font-size: 11px;
}

.donut-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.donut-legend span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.donut-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-bright);
}

.donut-legend span:nth-child(1) i { background: var(--red); }
.donut-legend span:nth-child(2) i { background: var(--yellow); }
.donut-legend span:nth-child(3) i { background: var(--teal-bright); }
.donut-legend span:nth-child(4) i { background: var(--purple); }

.level-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.level-row div {
  display: grid;
  gap: 2px;
}

.portfolio-chart {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 49.6%, var(--line) 49.6% 50.4%, transparent 50.4%),
    linear-gradient(0deg, transparent 49.6%, var(--line) 49.6% 50.4%, transparent 50.4%),
    radial-gradient(circle at 75% 25%, color-mix(in srgb, var(--teal-bright) 16%, transparent), transparent 28%),
    color-mix(in srgb, var(--surface) 92%, transparent);
}

.portfolio-dot {
  position: absolute;
  left: clamp(22px, var(--x, 0%), calc(100% - 58px));
  top: clamp(30px, var(--y, 50%), calc(100% - 42px));
  min-width: 42px;
  min-height: 30px;
  padding: 0 8px;
  border-color: color-mix(in srgb, var(--fn-color, var(--teal-bright)) 72%, var(--line));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--fn-color, var(--teal-bright)) 24%, transparent), var(--surface-2));
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  transform: translate(-50%, -50%);
}

.axis-label {
  position: absolute;
  z-index: 1;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.axis-label.top {
  top: 10px;
  left: 12px;
}

.axis-label.bottom {
  right: 12px;
  bottom: 10px;
}

.report-function-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.report-function-card {
  padding: 13px;
}

.report-function-card h3 {
  font-size: 15px;
}

.report-function-card::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--fn-color, var(--teal));
}

.report-bar {
  height: 9px;
  margin: 12px 0 10px;
}

.report-bar.compact {
  min-width: 110px;
  height: 8px;
  margin: 0;
}

.report-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.report-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.report-table th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-table tr:last-child td {
  border-bottom: 0;
}

.gap-score-stack {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.report-method-grid {
  margin-top: 14px;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
}

.report-main,
.report-side,
.library-stack,
.gap-list,
.action-list {
  display: grid;
  gap: 14px;
}

.gap-item,
.action-item,
.library-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.gap-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gap-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chart-wrap {
  display: grid;
  min-height: 330px;
  place-items: center;
}

.radar {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  color: var(--teal-bright);
  overflow: visible;
}

.radar text {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.radar .grid {
  fill: color-mix(in srgb, var(--surface-2) 18%, transparent);
  stroke: color-mix(in srgb, var(--teal-bright) 28%, var(--line));
  stroke-width: 1;
}

.radar .grid-3 {
  stroke: color-mix(in srgb, var(--teal-bright) 44%, var(--line));
  stroke-width: 1.35;
}

.radar .axis {
  stroke: color-mix(in srgb, var(--teal-bright) 24%, var(--line));
  stroke-width: 1;
}

.radar .shape {
  filter: url("#radarShadow");
  fill: color-mix(in srgb, var(--teal-bright) 28%, transparent);
  stroke: url("#radarStroke");
  stroke-width: 3;
  stroke-linejoin: round;
}

.radar-glow {
  fill: url("#radarGlow");
}

.radar-dot {
  fill: var(--surface);
  stroke: #7af7ff;
  stroke-width: 3;
  paint-order: stroke fill;
}

.radar-center {
  fill: var(--amber);
}

.radar-label {
  fill: var(--text);
}

.radar-score-label {
  fill: var(--muted);
  font-size: 10px;
}

.critical-gap-list {
  display: grid;
  gap: 10px;
}

.critical-gap-row {
  --severity: var(--teal-bright);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, auto) minmax(120px, 0.34fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--severity) 28%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--severity) 11%, transparent), transparent 54%),
    var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    background var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}

.critical-gap-row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--severity) 58%, var(--line-strong));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--severity) 16%, transparent);
}

.critical-gap-row.critical {
  --severity: var(--red);
}

.critical-gap-row.elevated {
  --severity: var(--amber);
}

.critical-gap-row.advisory {
  --severity: var(--green);
}

.critical-gap-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.critical-gap-title {
  color: var(--text);
  font-weight: 850;
  line-height: 1.2;
}

.critical-gap-question {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.critical-gap-meta {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.criticality-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--severity) 48%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--severity) 14%, transparent);
  color: color-mix(in srgb, var(--severity) 82%, var(--text));
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.critical-gap-domain {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.critical-gap-meter {
  display: grid;
  gap: 6px;
}

.critical-gap-meter b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
}

.critical-gap-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-3) 76%, var(--bg));
}

.critical-gap-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--gap-fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--severity) 70%, white), var(--severity));
  box-shadow: 0 0 18px color-mix(in srgb, var(--severity) 36%, transparent);
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
}

.library-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.library-item,
.gap-item,
.report-function-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 180px;
}

.model-tree {
  display: grid;
  gap: 12px;
}

.source-code {
  color: var(--source-code);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.empty-state {
  padding: 32px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: 360px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 88%, var(--teal) 9%), var(--surface));
  box-shadow: var(--shadow);
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast::before {
  content: "";
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal-bright), var(--purple));
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.print-only {
  display: none;
}

/* ---------------------------------------------------------------
   Animated gradient CTA — ported from the 21st.dev gradient-button
   (pure CSS, CSP-safe), re-tinted to the VamiSec / Box blue palette.
   Applied to the primary call-to-action buttons only.
   --------------------------------------------------------------- */
@property --gb-pos-x { syntax: "<percentage>"; initial-value: 11%; inherits: false; }
@property --gb-pos-y { syntax: "<percentage>"; initial-value: 140%; inherits: false; }
@property --gb-spread-x { syntax: "<percentage>"; initial-value: 150%; inherits: false; }
@property --gb-spread-y { syntax: "<percentage>"; initial-value: 180%; inherits: false; }
@property --gb-c1 { syntax: "<color>"; initial-value: #013a3e; inherits: false; }
@property --gb-c2 { syntax: "<color>"; initial-value: #026b72; inherits: false; }
@property --gb-c3 { syntax: "<color>"; initial-value: #00949d; inherits: false; }
@property --gb-c4 { syntax: "<color>"; initial-value: #17b0ba; inherits: false; }
@property --gb-c5 { syntax: "<color>"; initial-value: #35d0d8; inherits: false; }
@property --gb-border-angle { syntax: "<angle>"; initial-value: 20deg; inherits: true; }
@property --gb-bc1 { syntax: "<color>"; initial-value: hsla(185, 70%, 72%, 0.25); inherits: true; }
@property --gb-bc2 { syntax: "<color>"; initial-value: hsla(185, 65%, 80%, 0.7); inherits: true; }
@property --gb-s1 { syntax: "<percentage>"; initial-value: 37.35%; inherits: false; }
@property --gb-s2 { syntax: "<percentage>"; initial-value: 61.36%; inherits: false; }
@property --gb-s3 { syntax: "<percentage>"; initial-value: 78.42%; inherits: false; }
@property --gb-s4 { syntax: "<percentage>"; initial-value: 89.52%; inherits: false; }
@property --gb-s5 { syntax: "<percentage>"; initial-value: 100%; inherits: false; }

.command-button.primary,
.pill-button.primary,
.booking-cta {
  position: relative;
  color: #fff;
  border-color: transparent;
  background: #00949d; /* fallback if @property unsupported */
  background: radial-gradient(
    var(--gb-spread-x) var(--gb-spread-y) at var(--gb-pos-x) var(--gb-pos-y),
    var(--gb-c1) var(--gb-s1),
    var(--gb-c2) var(--gb-s2),
    var(--gb-c3) var(--gb-s3),
    var(--gb-c4) var(--gb-s4),
    var(--gb-c5) var(--gb-s5)
  );
  transition:
    --gb-pos-x 0.5s, --gb-pos-y 0.5s, --gb-spread-x 0.5s, --gb-spread-y 0.5s,
    --gb-c1 0.5s, --gb-c2 0.5s, --gb-c3 0.5s, --gb-c4 0.5s, --gb-c5 0.5s,
    --gb-border-angle 0.5s, --gb-bc1 0.5s, --gb-bc2 0.5s,
    --gb-s1 0.5s, --gb-s2 0.5s, --gb-s3 0.5s, --gb-s4 0.5s, --gb-s5 0.5s,
    transform var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-med) var(--ease-out);
}

.command-button.primary::before,
.pill-button.primary::before,
.booking-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(var(--gb-border-angle), var(--gb-bc1), var(--gb-bc2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.command-button.primary:hover,
.pill-button.primary:hover,
.booking-cta:hover {
  border-color: transparent;
  --gb-pos-x: 0%;
  --gb-pos-y: 91.5%;
  --gb-spread-x: 120%;
  --gb-spread-y: 103%;
  --gb-c1: #35d0d8;
  --gb-c2: #17b0ba;
  --gb-c3: #00949d;
  --gb-c4: #026b72;
  --gb-c5: #01282b;
  --gb-border-angle: 190deg;
  --gb-bc1: hsla(185, 80%, 92%, 0.18);
  --gb-bc2: hsla(185, 70%, 90%, 0.72);
  --gb-s1: 0%;
  --gb-s2: 10%;
  --gb-s3: 30%;
  --gb-s4: 71%;
  --gb-s5: 86%;
}

@media (prefers-reduced-motion: reduce) {
  .command-button.primary,
  .pill-button.primary,
  .booking-cta {
    transition:
      transform var(--motion-fast) var(--ease-out),
      box-shadow var(--motion-med) var(--ease-out);
  }
}

@media (min-width: 1181px) {
  .assessment-guided-panel {
    padding: 14px;
  }

  .assessment-guide {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
    gap: 12px;
  }

  .aspect-rail {
    top: 92px;
    max-height: calc(100vh - 112px);
    padding: 10px;
    scroll-padding-block: 44px;
  }

  .aspect-item {
    min-height: 74px;
    padding: 10px;
  }

  .aspect-item.active {
    border-color: var(--teal-bright);
    box-shadow:
      inset 6px 0 0 var(--teal-bright),
      0 0 0 2px color-mix(in srgb, var(--teal-bright) 28%, transparent),
      0 16px 34px rgba(0, 148, 157, 0.18);
    transform: translateX(3px);
  }

  .aspect-detail {
    gap: 10px;
    max-height: calc(100vh - 112px);
    overflow: auto;
    padding: 14px;
    scroll-margin-top: 0;
  }

  .aspect-card-head {
    gap: 12px;
  }

  .aspect-question,
  .aspect-criteria,
  .aspect-answer {
    gap: 8px;
    padding: 10px;
  }

  .aspect-question p {
    font-size: clamp(0.96rem, 1.1vw, 1.08rem);
    line-height: 1.35;
  }

  .answer-grid,
  .implementation-grid {
    gap: 8px;
  }

  .answer-option {
    min-height: 56px;
    padding: 8px;
  }

  .implementation-grid .field {
    grid-template-rows: auto minmax(84px, 1fr) auto;
    gap: 6px;
    min-height: 142px;
  }

  .implementation-grid small {
    min-height: 0;
  }

  .implementation-grid textarea {
    min-height: 84px;
  }

  .comment-template-card {
    gap: 6px;
    padding: 8px;
  }

  .comment-template-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .step-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding-top: 8px;
    background: linear-gradient(180deg, transparent, var(--surface) 35%);
  }
}

@media (max-width: 1180px) {
  .app-frame {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .dashboard-grid,
  .report-layout,
  .assessment-guide {
    grid-template-columns: 1fr;
  }

  .level-scope-card,
  .product-class-card {
    grid-template-columns: 1fr;
  }

  .aspect-rail {
    position: relative;
    top: auto;
    max-height: 360px;
  }

  .report-hero {
    grid-template-columns: 1fr;
  }

  .report-function-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guided-toolbar,
  .guided-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .function-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-facts {
    margin-top: 0;
  }

  .topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .booking-topbar-cta {
    display: none;
  }

  .sidebar-booking-cta {
    display: inline-flex;
  }

  .section-head {
    flex-direction: column;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .stream-grid,
  .evidence-grid,
  .implementation-grid,
  .answer-meta-grid,
  .answer-grid,
  .report-narrative,
  .guided-stat-grid,
  .management-chart-grid {
    grid-template-columns: 1fr;
  }

  .management-chart-card.wide {
    grid-column: auto;
  }

  .guided-progress-card {
    width: 100%;
  }

  .aspect-card-head,
  .aspect-subhead {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .heat-row {
    grid-template-columns: 1fr;
  }

  .critical-gap-row {
    grid-template-columns: 1fr;
  }

  .critical-gap-meter b {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .content,
  .topbar,
  .sidebar {
    padding-inline: 14px;
  }

  .legal-footer {
    margin-inline: 14px;
  }

  .function-nav,
  .meta-grid,
  .metric-row,
  .compact-metrics,
  .report-function-grid,
  .report-score-grid,
  .level-segment,
  .step-actions {
    grid-template-columns: 1fr;
  }

  .booking-topbar-cta {
    width: 100%;
  }

  .balance-row {
    grid-template-columns: 1fr;
  }

  .balance-row b {
    text-align: left;
  }

  .step-actions {
    display: grid;
  }

  .step-actions .pill-button {
    width: 100%;
  }

  .product-class-link {
    width: 100%;
  }

  .aspect-item {
    grid-template-columns: 1fr;
  }

  .aspect-item-side {
    justify-content: start;
    width: 100%;
  }

  .aspect-question-line {
    -webkit-line-clamp: 3;
  }

  .aspect-status {
    justify-self: start;
  }

  .command-button span:last-child {
    display: none;
  }
}

@container (max-width: 520px) {
  .critical-gap-row {
    grid-template-columns: 1fr;
  }

  .critical-gap-meter b {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  :root,
  [data-theme="dark"],
  [data-theme="light"] {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --surface-3: #ffffff;
    --text: #122829;
    --muted: #4d6467;
    --line: #d5e2e3;
    --line-strong: #b9cdcf;
    color-scheme: light;
  }

  body {
    background: #ffffff;
  }

  .app-bg,
  .sidebar,
  .topbar,
  .no-print,
  .legal-footer,
  .toast {
    display: none !important;
  }

  .app-frame,
  .workspace,
  .content,
  .report-layout {
    display: block;
    min-height: auto;
    padding: 0;
  }

  .content {
    padding: 0;
  }

  .panel,
  .gap-item,
  .action-item {
    break-inside: avoid;
    box-shadow: none;
    margin-bottom: 12px;
  }

  .print-only {
    display: block;
  }
}
