/* SuiteXray portal v2 "Aurora" — prototype styles. Depends on tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font: 400 var(--text-base)/var(--leading-body) var(--font-sans); color: var(--ink);
  background: var(--bg); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: var(--tracking-tight); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
code, .mono { font-family: var(--font-mono); font-size: 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.canopy :focus-visible, .login__story :focus-visible, .sheet__head :focus-visible { outline-color: var(--focus-on-dark); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.spacer { flex: 1; }
.stack > * + * { margin-top: var(--space-4); }
.stack-sm > * + * { margin-top: var(--space-2); }
.stack-lg > * + * { margin-top: var(--space-6); }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Skip link & demo strip ---------- */
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 200; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow-3); }
.skip-link:focus { top: 8px; }
.demo-strip {
  position: relative; z-index: 3; text-align: center; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .04em;
  color: #fde68a; background: #140f05; border-bottom: 1px solid rgba(245, 158, 11, .3); padding: 3px 12px; text-transform: uppercase;
}

/* ---------- Canopy (dark band with aurora) ---------- */
.canopy {
  position: relative; color: var(--on-canopy);
  background: radial-gradient(120% 90% at 50% -10%, var(--canopy-2) 0%, var(--canopy-1) 45%, var(--canopy-0) 100%);
  padding-bottom: var(--space-9);
}
.canopy--compact { padding-bottom: var(--space-8); }
.aurora { position: absolute; inset: -20% -10% auto -10%; height: 140%; z-index: -1; pointer-events: none; filter: blur(60px) saturate(120%); opacity: .75; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: -12%; background: radial-gradient(circle, rgba(59,160,255,.7), transparent 62%); }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; left: 66%; top: 6%; background: radial-gradient(circle, rgba(143,108,248,.66), transparent 60%); animation-duration: 28s; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 34vw; height: 34vw; left: 20%; top: 18%; background: radial-gradient(circle, rgba(0,217,249,.36), transparent 60%); animation-duration: 34s; animation-delay: -12s; }
.canopy[data-tone="limited"] .aurora span:nth-child(3) { background: radial-gradient(circle, rgba(245,158,11,.55), transparent 60%); }
.canopy[data-tone="danger"] .aurora { opacity: .45; filter: blur(70px) saturate(60%); }
.canopy[data-tone="success"] .aurora span:nth-child(3) { background: radial-gradient(circle, rgba(34,197,94,.45), transparent 60%); }
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-6%,4%,0) scale(1.08); } 100% { transform: translate3d(5%,-3%,0) scale(.96); } }
.grain { position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.grid-lines { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 80% at 60% 20%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(70% 80% at 60% 20%, #000 20%, transparent 75%); }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }

.wrap { max-width: calc(var(--content-max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; gap: var(--space-5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand__mark { width: 32px; height: 32px; flex: none; object-fit: contain; filter: drop-shadow(0 0 10px rgba(0, 217, 249, .28)); }
.brand__word { height: 19px; width: auto; flex: none; display: block; color: currentColor; }
.login__story .brand .brand__word { height: 22px; }
.brand--ink { color: var(--ink); }
.ws { display: flex; flex-direction: column; min-width: 0; padding-left: var(--space-4); border-left: 1px solid var(--glass-line); line-height: 1.25; }
.ws small { font-size: var(--text-2xs); color: var(--on-canopy-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ws strong { font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.nav { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--glass); border: 1px solid var(--glass-line); }
.nav a { color: var(--on-canopy-2); text-decoration: none; font-size: var(--text-sm); font-weight: 600; padding: 6px 14px; border-radius: var(--radius-pill); transition: background var(--dur-1), color var(--dur-1); }
.nav a:hover { color: #fff; background: var(--glass); }
.nav a[aria-current="page"] { color: var(--ink); background: #fff; box-shadow: 0 4px 14px -4px rgba(0,0,0,.4); }
.tools { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--glass); border: 1px solid var(--glass-line); }
.seg button { border: 0; background: transparent; color: var(--on-canopy-2); font-size: var(--text-2xs); font-weight: 700; letter-spacing: .04em; padding: 5px 10px; border-radius: var(--radius-pill); min-width: 36px; }
.seg button[aria-pressed="true"] { background: rgba(255,255,255,.92); color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--on-canopy-2); border-radius: var(--radius-pill); padding: 5px 12px 5px 6px; font-size: var(--text-xs); font-weight: 600; }
.switch__track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.18); transition: background var(--dur-1); flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform var(--dur-2) var(--ease-out); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.switch[aria-checked="true"] { color: #fff; }
.switch[aria-checked="true"] .switch__track { background: var(--accent); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(14px); }
.account { position: relative; }
.avatar-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-line); background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(255,255,255,.05)); color: #fff; display: grid; place-items: center; }
.popover {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 260px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-3); padding: var(--space-2);
  animation: pop var(--dur-2) var(--ease-out);
}
.popover--left { right: auto; left: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.popover h2 { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; font-family: var(--font-sans); }
.popover .role { display: flex; gap: 8px; align-items: center; padding: 6px 10px; font-weight: 600; font-size: var(--text-sm); }
.popover .role .icon { color: var(--accent); width: 16px; height: 16px; }
.popover hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.popover p.note { font-size: var(--text-xs); color: var(--muted); padding: 2px 10px 6px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 9px 10px; border-radius: 10px; text-align: left; color: var(--ink); font-size: var(--text-sm); font-weight: 500; text-decoration: none; }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); color: var(--ink); }
.menu-item .icon { width: 16px; height: 16px; color: var(--muted); }
.menu-item small { display: block; color: var(--muted); font-size: var(--text-xs); }
.menu-item[aria-checked="true"] { background: var(--accent-soft); }
.more { position: relative; display: inline-flex; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-7); align-items: center; padding-top: var(--space-7); min-height: 380px; }
.hero--text { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: var(--space-6); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--text-xs); font-weight: 600; letter-spacing: .02em; color: var(--on-canopy-2); flex-wrap: wrap; }
.hero h1 { font-size: var(--text-hero); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); font-weight: 700; margin-top: var(--space-4); max-width: 19ch; }
.hero--text h1 { max-width: none; font-size: clamp(30px, 3.4vw, 46px); }
.hero h1 .grad { background: var(--brand-gradient-on-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: var(--space-4); font-size: var(--text-md); color: var(--on-canopy-2); max-width: 56ch; line-height: 1.55; }
.hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-6); }
.hero .meta-line { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--text-sm); color: var(--on-canopy-3); align-items: center; }
.hero .meta-line span { display: inline-flex; gap: 6px; align-items: center; }
.hero .meta-line .icon { width: 15px; height: 15px; }
.hero .notices { margin-top: var(--space-5); max-width: 640px; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: var(--text-sm); color: var(--on-canopy-3); margin-top: var(--space-5); flex-wrap: wrap; }
.crumbs a { color: var(--on-canopy-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }

/* Connection switcher in hero */
.conn-switch { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--glass-line); background: var(--glass); color: #fff; border-radius: var(--radius-pill); padding: 5px 12px 5px 6px; font-size: var(--text-sm); font-weight: 600; max-width: 100%; text-align: left; }
button.conn-switch:hover { background: var(--glass-strong); }
.conn-switch .conn-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); flex: none; }
.conn-switch .conn-dot .icon { width: 13px; height: 13px; }
.conn-switch .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.conn-switch > .icon { width: 14px; height: 14px; opacity: .7; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.state-dot--ready { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.state-dot--enrolling { background: #fbbf24; }
.state-dot--revoked { background: #94a3b8; }

/* Steps on canopy */
.steps { display: flex; gap: 6px; align-items: center; margin-top: var(--space-5); flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 600; color: var(--on-canopy-3); padding: 6px 12px 6px 8px; border-radius: var(--radius-pill); border: 1px solid transparent; }
.steps li .bullet { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 11px; }
.steps li .bullet .icon { width: 12px; height: 12px; }
.steps li[data-s="done"] { color: var(--on-canopy-2); }
.steps li[data-s="current"] { color: #fff; background: var(--glass-strong); border-color: var(--glass-line); }
.steps li[data-s="current"] .bullet { border-color: transparent; background: var(--accent); box-shadow: 0 0 0 4px rgba(59,91,253,.3); animation: pulse 1.8s ease-in-out infinite; }
.steps li[data-s="end-success"] { color: #bbf7d0; background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.3); }
.steps li[data-s="end-limited"] { color: #fde68a; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.32); }
.steps li[data-s="end-danger"] { color: #fecaca; background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.32); }
.steps li[data-s="end-neutral"] { color: #e2e8f0; background: var(--glass); border-color: var(--glass-line); }
.steps .sep { width: 18px; height: 1px; background: var(--glass-line); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(59,91,253,.35); } 50% { box-shadow: 0 0 0 8px rgba(59,91,253,.08); } }
@media (prefers-reduced-motion: reduce) { .steps li[data-s="current"] .bullet { animation: none; } }

/* Hero visual: constellation / orbit */
.orbit { width: min(100%, 420px); aspect-ratio: 1; overflow: visible; }
.orbit .ring { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1; }
.orbit .ring--dash { stroke-dasharray: 2 8; stroke: rgba(255,255,255,.24); }
.orbit .spin { transform-origin: 210px 210px; animation: spin 26s linear infinite; }
.orbit .spin-r { transform-origin: 210px 210px; animation: spin 40s linear infinite reverse; }
.orbit[data-mode="running"] .spin { animation-duration: 6s; }
.orbit[data-mode="running"] .spin-r { animation-duration: 10s; }
.orbit[data-mode="queued"] .spin { animation-duration: 14s; }
.orbit[data-mode="failed"] .spin, .orbit[data-mode="failed"] .spin-r, .orbit[data-mode="cancelled"] .spin, .orbit[data-mode="cancelled"] .spin-r { animation: none; }
.orbit .core { animation: breathe 5s ease-in-out infinite; transform-origin: 210px 210px; }
.orbit[data-mode="running"] .core { animation-duration: 2.2s; }
.orbit .float { animation: float 7s ease-in-out infinite; }
.orbit .f2 { animation-delay: -2.3s; }
.orbit .f3 { animation-delay: -4.6s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .92; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .orbit .spin, .orbit .spin-r, .orbit .core, .orbit .float { animation: none; } }

/* Document stack visual (release page) */
.doc-stack { position: relative; width: min(100%, 320px); aspect-ratio: .78; }
.doc-sheet { position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04)); border: 1px solid var(--glass-line); }
.doc-sheet:nth-child(1) { transform: rotate(-8deg) translate(-18px, 12px); opacity: .45; }
.doc-sheet:nth-child(2) { transform: rotate(5deg) translate(16px, 4px); opacity: .7; }
.doc-sheet--front { padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); background: linear-gradient(165deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.doc-sheet--front .k { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .08em; color: var(--on-canopy-3); font-weight: 700; }
.doc-sheet--front .t { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1.12; }
.doc-sheet--front .d { font-size: var(--text-xs); color: var(--on-canopy-2); }
.doc-band { min-height: 36px; border-radius: 11px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: var(--text-xs); font-weight: 600; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--glass-line); }
.doc-band i { width: 18px; height: 18px; border-radius: 6px; flex: none; background: linear-gradient(140deg, var(--c1), var(--c2)); }
.doc-lines { display: grid; gap: 7px; margin-top: auto; }
.doc-lines span { height: 6px; border-radius: 4px; background: rgba(255,255,255,.16); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: var(--text-base); text-decoration: none; white-space: nowrap; line-height: 1.2;
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1), background var(--dur-1), border-color var(--dur-1);
}
.btn:hover { color: var(--ink); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 17px; height: 17px; }
.btn--primary { color: #fff; border-color: transparent; background: var(--btn-gradient); box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary:hover { color: #fff; background: var(--btn-gradient); filter: brightness(1.08) saturate(1.05); transform: translateY(-1px); }
.btn--light { color: var(--ink); background: #fff; border-color: transparent; box-shadow: 0 12px 34px -10px rgba(120,150,255,.75), inset 0 -1px 0 rgba(15,23,42,.08); }
.btn--light:hover { background: #fff; color: var(--ink); transform: translateY(-1px); box-shadow: 0 16px 42px -10px rgba(140,170,255,.9); }
.btn--glass { color: #fff; background: var(--glass); border-color: var(--glass-line); }
.btn--glass:hover { color: #fff; background: var(--glass-strong); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--accent); padding-left: 10px; padding-right: 10px; }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: var(--text-sm); border-radius: 9px; }
.btn--icon { width: 44px; padding: 0; border-radius: 12px; }
.btn--icon.btn--sm { width: 36px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: var(--text-md); border-radius: 14px; }
.btn--lg.btn--icon { width: 54px; padding: 0; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; display: inline-block; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-right-color: currentColor; opacity: .6; } }

/* ---------- Chips (status) ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--radius-pill); padding: 3px 10px 3px 7px; font-size: var(--text-xs); font-weight: 600; border: 1px solid; line-height: 18px; white-space: nowrap; }
.chip .icon { width: 14px; height: 14px; }
.chip--info { color: var(--st-info-fg); background: var(--st-info-bg); border-color: var(--st-info-line); }
.chip--progress { color: var(--st-progress-fg); background: var(--st-progress-bg); border-color: var(--st-progress-line); }
.chip--success { color: var(--st-success-fg); background: var(--st-success-bg); border-color: var(--st-success-line); }
.chip--limited { color: var(--st-limited-fg); background: var(--st-limited-bg); border-color: var(--st-limited-line); }
.chip--danger { color: var(--st-danger-fg); background: var(--st-danger-bg); border-color: var(--st-danger-line); }
.chip--neutral { color: var(--st-neutral-fg); background: var(--st-neutral-bg); border-color: var(--st-neutral-line); }
.chip--preview { color: var(--st-preview-fg); background: var(--st-preview-bg); border-color: var(--st-preview-line); border-style: dashed; }
.canopy .chip { background: var(--glass); border-color: var(--glass-line); color: #e7ecff; }
.canopy .chip--preview { color: #ddd0ff; border-color: rgba(196,170,255,.5); border-style: dashed; }
.canopy .chip--limited { color: #fde68a; border-color: rgba(245,158,11,.45); background: rgba(245,158,11,.12); }
.canopy .chip--success { color: #bbf7d0; border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.12); }
.canopy .chip--danger { color: #fecaca; border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.12); }

/* ---------- Main content ---------- */
main { display: block; }
.content { position: relative; z-index: 2; margin-top: calc(-1 * var(--space-8)); padding-bottom: var(--space-9); }
.section-title { display: flex; align-items: baseline; gap: var(--space-3); margin: var(--space-7) 0 var(--space-4); flex-wrap: wrap; }
.section-title:first-child { margin-top: 0; }
.section-title h2 { font-size: var(--text-lg); font-weight: 700; }
.section-title > a { font-weight: 600; font-size: var(--text-sm); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; margin-left: auto; }
.section-title > a .icon { width: 15px; height: 15px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: var(--space-6); min-width: 0; }
.card--pad-sm { padding: var(--space-5); }
.card > h2 { font-size: var(--text-lg); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }

/* Reveal animation */
.reveal > * { animation: rise var(--dur-3) var(--ease-out) both; }
.reveal > *:nth-child(2) { animation-delay: 70ms; }
.reveal > *:nth-child(3) { animation-delay: 140ms; }
.reveal > *:nth-child(4) { animation-delay: 210ms; }
.reveal > *:nth-child(n+5) { animation-delay: 280ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal > * { animation: none; } }
.no-anim .reveal > *, .no-anim .aurora span, .no-anim .orbit *, .no-anim .sheet, .no-anim .scrim { animation: none !important; }

/* ---------- Report cover card (latest release) ---------- */
.cover { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-6); align-items: stretch; }
.cover__art { position: relative; border-radius: 20px; overflow: hidden; min-height: 300px; padding: 22px; color: #fff; display: flex; flex-direction: column; gap: 8px; text-decoration: none; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, rgba(139,92,246,.8), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(20,184,166,.6), transparent 60%), linear-gradient(160deg, #1d2d86, #0b1330);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); box-shadow: 0 24px 50px -28px rgba(29,45,134,.9); }
a.cover__art:hover { color: #fff; transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 30px 60px -26px rgba(29,45,134,1); }
.cover__art .k { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.72); font-weight: 700; }
.cover__art .t { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.1; letter-spacing: -.02em; }
.cover__art .d { font-size: var(--text-sm); color: rgba(255,255,255,.8); }
.cover__art .bands { margin-top: auto; display: grid; gap: 7px; }
.cover__art .bands span { height: 9px; border-radius: 6px; background: linear-gradient(90deg, var(--c1), var(--c2)); opacity: .95; }
.cover__art .bands span:nth-child(1) { width: 88%; } .cover__art .bands span:nth-child(2) { width: 70%; } .cover__art .bands span:nth-child(3) { width: 80%; }
.cover__body { display: flex; flex-direction: column; min-width: 0; }
.cover__kicker { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.cover__head { display: flex; gap: var(--space-3); align-items: flex-start; flex-wrap: wrap; margin-top: 6px; }
.cover__head h3 { font-size: var(--text-xl); line-height: 1.15; letter-spacing: var(--tracking-display); flex: 1 1 260px; }
.cover__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
.cover__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: auto; padding-top: var(--space-5); }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); margin: 0; }
.facts > div { padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: var(--text-xs); color: var(--muted); font-weight: 500; display: flex; gap: 6px; align-items: center; }
.facts dt .icon { width: 14px; height: 14px; }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.unknown { display: inline-flex; align-items: center; gap: 5px; font-style: italic; font-weight: 500; color: var(--st-neutral-fg); }
.unknown .icon { width: 14px; height: 14px; }

/* ---------- Section tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.tile {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3); border: 1px solid transparent; border-top-width: 4px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, var(--c1, var(--line-strong)), var(--c2, var(--line-strong))) top / 100% 6px no-repeat border-box, linear-gradient(var(--line), var(--line)) border-box;
  border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-2); min-width: 0;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), border-color var(--dur-2);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.tile h3 { font-size: var(--text-md); line-height: 1.25; }
.tile p { color: var(--muted); font-size: var(--text-sm); flex: 1; }
.tile__top { display: flex; align-items: flex-start; gap: var(--space-3); }
.tile__top .spacer { flex: 1; }
.tile__actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-2); }
.tile--missing { --c1: var(--line-strong); --c2: var(--line-strong); background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, linear-gradient(var(--line-strong), var(--line-strong)) border-box; box-shadow: none; }
.tile--missing:hover { transform: none; box-shadow: none; }
.tile--missing .sec-icon { filter: grayscale(1); opacity: .5; }
.sec-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff; flex: none; background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 12px 26px -12px var(--c1), inset 0 1px 0 rgba(255,255,255,.3); }
.sec-icon .icon { width: 23px; height: 23px; }
.sec-icon--sm { width: 34px; height: 34px; border-radius: 11px; }
.sec-icon--sm .icon { width: 17px; height: 17px; }
.sec--account_lifecycle { --c1: var(--sec-accounts); --c2: var(--sec-accounts-2); }
.sec--administrative_accounts { --c1: var(--sec-admin); --c2: var(--sec-admin-2); }
.sec--identity_access_baseline { --c1: var(--sec-identity); --c2: var(--sec-identity-2); }
.sec--exchange_mailflow_protection { --c1: var(--sec-exchange); --c2: var(--sec-exchange-2); }

/* Section link rows (inside cover card) */
.sec-rows { display: grid; gap: 8px; margin-top: var(--space-5); }
.sec-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); transition: background var(--dur-1), border-color var(--dur-1), transform var(--dur-1); }
.sec-row:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); transform: translateX(3px); }
.sec-row strong { font-size: var(--text-sm); display: block; }
.sec-row small { color: var(--muted); font-size: var(--text-xs); display: block; }
.sec-row > .icon { color: var(--muted); width: 16px; height: 16px; }
.sec-row--missing { background: var(--surface-2); }
.sec-row--missing:hover { transform: none; background: var(--surface-2); border-color: var(--line); }
.sec-row--missing .sec-icon { filter: grayscale(1); opacity: .45; }

/* ---------- Timeline (releases) ---------- */
.timeline-month { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: var(--space-5) 0 var(--space-2) 38px; }
.timeline-month:first-child { margin-top: 0; }
.t-list > li { position: relative; }
.t-list > li::before { content: ""; position: absolute; left: 17px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.t-list > li:first-child::before { top: 50%; }
.t-list > li:last-child::before { bottom: 50%; }
.t-list > li:only-child::before { display: none; }
.t-item { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px 14px 8px; border-radius: 16px; text-decoration: none; color: var(--ink); transition: background var(--dur-1), box-shadow var(--dur-1); }
.t-item:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.t-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); display: grid; place-items: center; }
.t-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.t-item--latest .t-dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.t-item--latest .t-dot::after { background: var(--accent); }
.t-main strong { font-size: var(--text-base); letter-spacing: -.01em; }
.t-main .sub { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--text-sm); color: var(--muted); margin-top: 3px; align-items: center; }
.t-main .sub > span { display: inline-flex; gap: 5px; align-items: center; }
.t-main .sub .icon { width: 14px; height: 14px; }
.t-item > .icon { color: var(--muted); width: 18px; height: 18px; transition: transform var(--dur-1); }
.t-item:hover > .icon { transform: translateX(3px); color: var(--accent); }
.t-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: var(--space-4); }

/* ---------- Notices ---------- */
.notice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; border: 1px solid; border-radius: var(--radius-md); padding: 14px 16px; background: var(--surface); }
.notice > .icon { width: 20px; height: 20px; margin-top: 1px; }
.notice__title { font-weight: 700; color: var(--ink); }
.notice__body > * + * { margin-top: 6px; }
.notice__body { font-size: var(--text-sm); color: var(--ink-2); }
.notice__body .row { margin-top: 10px; }
.notice--info { background: var(--st-info-bg); border-color: var(--st-info-line); } .notice--info > .icon { color: var(--st-info-fg); }
.notice--limited { background: var(--st-limited-bg); border-color: var(--st-limited-line); } .notice--limited > .icon { color: var(--st-limited-fg); }
.notice--danger { background: var(--st-danger-bg); border-color: var(--st-danger-line); } .notice--danger > .icon { color: var(--st-danger-fg); }
.notice--neutral { background: var(--st-neutral-bg); border-color: var(--st-neutral-line); } .notice--neutral > .icon { color: var(--st-neutral-fg); }
.notice--preview { background: var(--st-preview-bg); border-color: var(--st-preview-line); border-style: dashed; } .notice--preview > .icon { color: var(--st-preview-fg); }
.notice--success { background: var(--st-success-bg); border-color: var(--st-success-line); } .notice--success > .icon { color: var(--st-success-fg); }
.canopy .notice { background: rgba(255,255,255,.06); border-color: var(--glass-line); }
.canopy .notice .notice__body { color: var(--on-canopy-2); }
.canopy .notice .notice__title { color: #fff; }
.canopy .notice > .icon { color: #c7d2ff; }
.canopy .notice--limited > .icon { color: #fcd34d; }
.canopy .notice--danger > .icon { color: #fca5a5; }
.notices { display: grid; gap: var(--space-3); }
.offline-bar { position: sticky; top: 0; z-index: 50; background: #111827; color: #fff; font-size: var(--text-sm); }
.offline-bar .wrap { display: flex; gap: 12px; align-items: center; min-height: 46px; flex-wrap: wrap; }

/* ---------- Empty / error / loading ---------- */
.empty { text-align: center; padding: var(--space-7) var(--space-5); }
.empty__art { width: 92px; height: 92px; margin: 0 auto var(--space-4); border-radius: 30px; display: grid; place-items: center; color: var(--accent); background: radial-gradient(circle at 30% 20%, #fff, var(--accent-soft)); box-shadow: inset 0 0 0 1px var(--st-progress-line), 0 24px 44px -26px var(--accent); }
.empty__art .icon { width: 38px; height: 38px; }
.empty__art--muted { color: var(--st-neutral-fg); background: radial-gradient(circle at 30% 20%, #fff, var(--st-neutral-bg)); box-shadow: inset 0 0 0 1px var(--st-neutral-line); }
.empty__art--danger { color: var(--st-danger-fg); background: radial-gradient(circle at 30% 20%, #fff, var(--st-danger-bg)); box-shadow: inset 0 0 0 1px var(--st-danger-line); }
.empty h3, .empty h1 { font-size: var(--text-lg); }
.empty p { color: var(--muted); margin: 6px auto 0; max-width: 460px; }
.empty .actions { display: flex; justify-content: center; gap: 12px; margin-top: var(--space-5); flex-wrap: wrap; }
.skeleton { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, #edf0f6 0, #f7f8fb 50%, #edf0f6 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton + .skeleton { margin-top: 12px; }
.skeleton--title { height: 26px; width: 40%; }
.skeleton--block { height: 200px; border-radius: 18px; }
.canopy .skeleton { background: linear-gradient(90deg, rgba(255,255,255,.08) 0, rgba(255,255,255,.16) 50%, rgba(255,255,255,.08) 100%); background-size: 200% 100%; }
.canopy .skeleton--hero { height: 54px; width: 60%; border-radius: 14px; margin-top: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- Files drawer ---------- */
details.drawer { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-1); }
details.drawer > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-weight: 700; min-height: 64px; border-radius: var(--radius-lg); }
details.drawer > summary::-webkit-details-marker { display: none; }
details.drawer > summary .chev { margin-left: auto; transition: transform var(--dur-2) var(--ease-out); color: var(--muted); }
details.drawer[open] > summary .chev { transform: rotate(90deg); }
details.drawer > summary small { font-weight: 500; color: var(--muted); }
details.drawer > .drawer__body { padding: 0 22px 20px; }
.file-group + .file-group { margin-top: var(--space-5); }
.file-group h4 { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.file-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.file-list li:first-child { border-top: 0; }
.ftype { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.ftype--html { color: var(--accent-ink); background: var(--accent-soft); }
.ftype--pdf { color: #b42318; background: #fff1f0; }
.ftype--csv { color: #13723d; background: #ecfdf3; }
.ftype--json { color: #6427c9; background: #f6f2ff; }
.file-name strong { display: block; font-size: var(--text-sm); }
.file-name code { color: var(--muted); font-size: 11.5px; }

/* ---------- Table (advanced history) ---------- */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 760px; font-size: var(--text-sm); }
table.data caption { text-align: left; padding: 12px 16px; color: var(--muted); font-size: var(--text-xs); }
table.data th { text-align: left; font-size: var(--text-xs); color: var(--muted); font-weight: 600; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
table.data tr:first-child td { border-top: 0; }
table.data td .sub { display: block; color: var(--muted); font-size: var(--text-xs); }
.unknown-val { display: inline-flex; align-items: center; gap: 4px; font-style: italic; color: var(--st-neutral-fg); }
.unknown-val .icon { width: 13px; height: 13px; }
.table-foot { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-xs); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: var(--space-4); }
.filters label { display: block; font-size: var(--text-xs); color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.filters > div { min-width: 0; max-width: 100%; }
.select { min-height: 38px; padding: 6px 30px 6px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); max-width: 100%; }

/* ---------- Sheet (launch) ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(6, 10, 24, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fade var(--dur-2) ease both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet { position: fixed; z-index: 91; top: 12px; right: 12px; bottom: 12px; width: min(520px, calc(100% - 24px)); background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-3); display: flex; flex-direction: column; overflow: hidden; animation: slide-in var(--dur-3) var(--ease-out) both; }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__head { position: relative; padding: 26px 28px 24px; color: #fff; overflow: hidden; isolation: isolate; background: radial-gradient(120% 120% at 100% 0%, rgba(139,92,246,.6), transparent 55%), radial-gradient(80% 90% at 0% 100%, rgba(20,184,166,.35), transparent 60%), linear-gradient(160deg, #1d2d86, #0b1330); }
.sheet__head h2 { font-size: 28px; letter-spacing: var(--tracking-display); margin-top: 10px; }
.sheet__head p { color: var(--on-canopy-2); margin-top: 4px; font-size: var(--text-sm); }
.sheet__close { position: absolute; top: 16px; right: 16px; }
.sheet__body { padding: 24px 28px; overflow-y: auto; flex: 1; }
.sheet__body > section + section { margin-top: var(--space-5); }
.sheet__foot { padding: 18px 28px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.sheet__foot .fine { font-size: var(--text-xs); color: var(--muted); margin-top: 10px; text-align: center; }
.sheet h3 { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; font-family: var(--font-sans); font-weight: 700; }
.scope { display: grid; gap: 8px; }
.scope li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.scope strong { display: block; font-size: var(--text-sm); }
.scope small { display: block; color: var(--muted); font-size: var(--text-xs); line-height: 1.4; }
.lang-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.lang-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; min-height: var(--touch-min); transition: border-color var(--dur-1), background var(--dur-1), box-shadow var(--dur-1); }
.lang-opt input { position: absolute; opacity: 0; pointer-events: none; }
.lang-opt .flag { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); flex: none; }
.lang-opt strong { display: block; font-size: var(--text-sm); }
.lang-opt small { color: var(--muted); font-size: var(--text-xs); }
.lang-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(59,91,253,.12); }
.lang-opt:has(input:checked) .flag { background: var(--accent); color: #fff; border-color: transparent; }
.lang-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.lang-opt:has(input:disabled) { cursor: not-allowed; opacity: .7; }
.hint { font-size: var(--text-xs); color: var(--muted); margin-top: 8px; }
details.more-info { border-top: 1px solid var(--line); padding-top: 14px; margin-top: var(--space-5); }
details.more-info summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: var(--text-sm); display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
details.more-info[open] summary { margin-bottom: 12px; }

/* ---------- Forms (login) ---------- */
.field + .field { margin-top: var(--space-4); }
.field label { display: block; font-weight: 600; font-size: var(--text-sm); margin-bottom: 6px; }
.input { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: var(--text-base); transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59,91,253,.15); outline: none; }
.input[aria-invalid="true"] { border-color: var(--st-danger-fg); box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
.field .error { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; color: var(--st-danger-fg); font-size: var(--text-sm); font-weight: 600; }
.field .error .icon { width: 16px; height: 16px; margin-top: 2px; }
.field .hint { margin-top: 8px; }
.tag-test { display: inline-flex; margin-left: 8px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #92400e; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 6px; padding: 1px 6px; vertical-align: 2px; }

/* ---------- Login page ---------- */
.login { min-height: calc(100vh - 22px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.login__story { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: var(--space-6) var(--space-8) var(--space-7); display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 30% -10%, var(--canopy-2) 0%, var(--canopy-1) 45%, var(--canopy-0) 100%); }
.login__story .brand { font-size: var(--text-md); }
.login__story .orbit { position: absolute; right: 36px; top: 76px; width: 360px; opacity: .92; z-index: -1; }
.login__story h1 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.03; letter-spacing: var(--tracking-display); margin-top: auto; max-width: 12ch; }
.login__story h1 .grad { background: var(--brand-gradient-on-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login__story p.lead { color: var(--on-canopy-2); font-size: var(--text-md); margin-top: var(--space-4); max-width: 46ch; }
.login__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-6); }
.login__pills span { display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-size: var(--text-sm); font-weight: 600; }
.login__pills .sec-icon { width: 28px; height: 28px; border-radius: 50%; box-shadow: none; }
.login__pills .sec-icon .icon { width: 15px; height: 15px; }
.login__form { position: relative; display: grid; place-items: center; padding: var(--space-8) var(--space-6); background: var(--surface); }
.login__card { width: 100%; max-width: 400px; }
.login__card h2 { font-size: 32px; letter-spacing: var(--tracking-display); line-height: 1.1; }
.login__card .lead { color: var(--muted); margin-top: 10px; }
.login__card .body { margin-top: var(--space-6); }
.login__lang { position: absolute; top: 20px; right: 24px; }
.login__lang .seg { background: var(--surface-2); border-color: var(--line); }
.login__lang .seg button { color: var(--muted); }
.login__lang .seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--text-xs); margin: var(--space-5) 0; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.loading-line { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.canopy .loading-line { color: var(--on-canopy-2); }

/* ---------- Toast ---------- */
.toast-region { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 150; display: grid; gap: 8px; width: min(560px, calc(100% - 32px)); }
.toast { display: flex; gap: 12px; align-items: center; background: #0f172a; color: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-3); animation: rise var(--dur-2) var(--ease-out); font-size: var(--text-sm); }
.toast .icon { color: #a5b4fc; }

/* ---------- Advanced panels ---------- */
.adv-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border-radius: 6px; padding: 3px 7px; }
.adv-badge .icon { width: 12px; height: 12px; }
.conn-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.conn-list li:first-child { border-top: 0; }
.conn-list small { display: block; color: var(--muted); font-size: var(--text-xs); }
.conn-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; font-size: var(--text-sm); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; min-width: 0; }

/* ---------- Error page ---------- */
.sx { max-width: 640px; margin: 0 auto; }

/* ---------- Concept G05 ---------- */
.concept { border: 2px dashed var(--st-preview-line); background: linear-gradient(180deg, var(--st-preview-bg), #fff 40%); }
.concept-tag { display: inline-flex; gap: 6px; align-items: center; font-size: var(--text-2xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--st-preview-fg); }
.mtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.mtile { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
.mtile .n { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.mtile .n div span { display: block; font-size: var(--text-xs); color: var(--muted); }
.mtile .n div strong { font-size: 24px; letter-spacing: -.02em; }

/* ---------- API annotation chips (prototype only) ---------- */
.ann { display: inline-flex; align-items: center; font: 700 10px/1 var(--font-mono); border-radius: 5px; padding: 3px 5px; margin: 0 2px; vertical-align: middle; border: 1px solid; cursor: help; white-space: nowrap; letter-spacing: 0; text-transform: none; font-style: normal; }
.ann--a { color: #13723d; background: #e9f9ef; border-color: #9fdcb6; }
.ann--g { color: #9a4a06; background: #fff4e0; border-color: #f2c47a; }
.ann--demo { color: #475467; background: #f2f4f7; border-color: #cfd5de; }
.ann--client { color: #1d4ed8; background: #eaf1ff; border-color: #aec5fb; }
.ann-off .ann, .ann-off .ann-note { display: none; }
.ann-note { display: block; margin-top: 8px; font-size: 11px; color: #9a4a06; }
.canopy .ann-note { color: #fcd34d; }

/* ---------- Demo panel (prototype only) ---------- */
.demo-toggle { position: fixed; left: 16px; bottom: 16px; z-index: 130; border: 1px dashed #d97706; background: #fffbeb; color: #92400e; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 12px; box-shadow: var(--shadow-2); }
.demo-panel { position: fixed; top: 0; left: 0; bottom: 0; width: 380px; max-width: 100%; z-index: 140; overflow-y: auto; background: #fffdf5; border-right: 2px dashed #d97706; box-shadow: var(--shadow-3); padding: 16px; font-size: 12px; }
.demo-panel h2 { font-size: 16px; }
.demo-panel h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #92400e; margin: 16px 0 6px; }
.demo-panel label { display: block; font-weight: 700; margin: 8px 0 2px; }
.demo-panel select { width: 100%; }
.demo-panel .scenario-links a { display: block; padding: 3px 0; }
.demo-panel .journal { font-family: var(--font-mono); font-size: 11px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; max-height: 260px; overflow: auto; }
.demo-panel .journal div { padding: 3px 0; border-top: 1px dotted var(--line); }
.demo-panel .journal div:first-child { border-top: 0; }
.j-ok { color: #13723d; } .j-err { color: #b42318; }
.legend-list li { display: flex; gap: 6px; align-items: center; margin: 3px 0; }
.no-chrome .demo-toggle, .no-chrome .demo-panel { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .wrap { padding: 0 var(--gutter-tablet); }
  .hero { gap: var(--space-5); }
  .cover { grid-template-columns: 210px minmax(0, 1fr); }
  .login__story { padding-left: var(--space-6); padding-right: var(--space-6); }
}
@media (max-width: 959px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-visual { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .login { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .login__story { padding: var(--space-5) var(--gutter-tablet) var(--space-6); }
  .login__story h1 { margin-top: var(--space-7); }
  .login__story .orbit { display: none; }
  .mtiles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  body { font-size: 15px; }
  .wrap { padding: 0 var(--gutter-mobile); }
  .topbar { flex-wrap: wrap; gap: 10px 12px; min-height: 0; padding-top: 12px; }
  .brand__label { display: none; }
  .ws { flex: 1; }
  .ws strong { max-width: none; }
  .switch__label { display: none; }
  .switch { padding: 5px 6px; }
  .nav { order: 10; width: 100%; }
  .nav a { flex: 1; text-align: center; padding: 8px 10px; }
  .canopy { padding-bottom: var(--space-8); }
  .hero { padding-top: var(--space-5); }
  .hero .actions > .btn:not(.btn--icon) { flex: 1 1 auto; }
  .content { margin-top: calc(-1 * var(--space-7)); }
  .card { padding: var(--space-5); border-radius: 20px; }
  .cover { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .cover__art { min-height: 150px; }
  .cover__actions > .btn--primary { flex: 1 1 auto; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div { border-left: 0; border-top: 1px solid var(--line); }
  .facts > div:first-child { border-top: 0; }
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0; animation-name: slide-up; }
  .sheet__head, .sheet__body, .sheet__foot { padding-left: 20px; padding-right: 20px; }
  .lang-seg { grid-template-columns: minmax(0, 1fr); }
  .file-list li { grid-template-columns: 38px minmax(0, 1fr); }
  .file-list li .file-actions { grid-column: 2; }
  .popover { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; min-width: 0; }
  .login__form { padding: var(--space-8) var(--gutter-mobile) var(--space-7); place-items: start center; }
  .login__lang { top: 14px; right: 16px; }
  .steps .sep { display: none; }
  .demo-panel { width: 100%; }
  .t-item { padding-right: 8px; gap: 12px; }
  .section-title > a { margin-left: 0; }
}
.no-enter .sheet, .no-enter .scrim { animation: none; }
.steps li.sep { padding: 0; width: 18px; height: 1px; min-width: 0; border: 0; border-radius: 0; background: var(--glass-line); }
@media (max-width: 767px) {
  .ws small { display: none; }
  .ws strong { font-size: var(--text-base); }
}
@media (min-width: 960px) {
  .facts > div:nth-child(4n+1) { border-left: 0; }
  .facts > div:nth-child(n+5) { border-top: 1px solid var(--line); }
}
.sheet__head, .sheet__foot { flex: none; }
.sheet__body { min-height: 0; }

/* =====================================================================
   Report layer (in-portal reading) — v2.1
   ===================================================================== */
.rtabs { display: flex; gap: 6px; margin-top: var(--space-6); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rtabs::-webkit-scrollbar { display: none; }
.rtabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; color: var(--on-canopy-2); text-decoration: none; font-size: var(--text-sm); font-weight: 600; background: var(--glass); border: 1px solid var(--glass-line); transition: background var(--dur-1), color var(--dur-1); }
.rtabs a:hover { color: #fff; background: var(--glass-strong); }
.rtabs a[aria-current="page"] { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 8px 24px -10px rgba(0,0,0,.5); }
.rtabs a .sec-icon { width: 24px; height: 24px; border-radius: 8px; box-shadow: none; }
.rtabs a .sec-icon .icon { width: 13px; height: 13px; }
.rtabs a .cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; background: rgba(245,158,11,.22); color: #fde68a; }
.rtabs a[aria-current="page"] .cnt { background: var(--st-limited-bg); color: var(--st-limited-fg); }
.rtabs a .cnt--zero { background: rgba(255,255,255,.12); color: var(--on-canopy-2); }
.rtabs a .home-dot { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.rtabs a[aria-current="page"] .home-dot { background: var(--accent-soft); color: var(--accent); }
.rtabs a .home-dot .icon { width: 13px; height: 13px; }

.area-hero-icon { width: 64px; height: 64px; border-radius: 20px; }
.area-hero-icon .icon { width: 30px; height: 30px; }

/* Key takeaways */
.takeaway { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.takeaway h2 { font-size: var(--text-xl); letter-spacing: var(--tracking-display); line-height: 1.15; }
.takeaway p { color: var(--muted); margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface-2); }
.stat span { display: block; font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
.stat strong { display: block; font: 700 30px/1.1 var(--font-display); letter-spacing: -.03em; margin-top: 4px; }
.stat--attn strong { color: var(--st-limited-fg); }
.stat small { display: block; font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }

/* Area cards */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.area-card { position: relative; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); border: 1px solid transparent; border-top-width: 4px; border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-2);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(90deg, var(--c1), var(--c2)) top / 100% 6px no-repeat border-box, linear-gradient(var(--line), var(--line)) border-box;
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.area-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-3); }
.area-card h3 { font-size: var(--text-md); line-height: 1.25; }
.area-card p.intro { color: var(--muted); font-size: var(--text-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.area-card .attn { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--text-sm); }
.area-card .attn .icon { width: 16px; height: 16px; }
.area-card .attn--on { color: var(--st-limited-fg); }
.area-card .attn--off { color: var(--st-success-fg); }
.area-card .kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.area-card .kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.area-card .kpi strong { display: block; font: 700 18px/1.2 var(--font-display); }
.area-card .kpi span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.area-card .go { display: inline-flex; gap: 6px; align-items: center; color: var(--accent); font-weight: 600; font-size: var(--text-sm); }

/* Severity meter (bars + text) */
.sev { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.sev i { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.sev i b { width: 3px; border-radius: 2px; background: #d6dbe3; }
.sev i b:nth-child(1) { height: 5px; } .sev i b:nth-child(2) { height: 8px; } .sev i b:nth-child(3) { height: 10px; } .sev i b:nth-child(4) { height: 12px; }
.sev--Critical { color: #b42318; } .sev--Critical i b { background: #d92d20; }
.sev--High { color: #b54708; } .sev--High i b:nth-child(-n+3) { background: #f79009; }
.sev--Medium { color: #93600b; } .sev--Medium i b:nth-child(-n+2) { background: #eaaa08; }
.sev--Low { color: #1d4ed8; } .sev--Low i b:nth-child(1) { background: #3b82f6; }
.sev--Info { color: var(--muted); }

/* Action / finding cards */
.actions-list { display: grid; gap: 10px; }
details.action { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-1); transition: box-shadow var(--dur-1), border-color var(--dur-1); }
details.action[open] { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
details.action > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 18px; }
details.action > summary::-webkit-details-marker { display: none; }
details.action > summary:hover { background: var(--surface-2); }
details.action .a-title { font-weight: 700; line-height: 1.3; }
details.action .a-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: 5px; font-size: var(--text-xs); color: var(--muted); }
details.action .a-meta > span { display: inline-flex; gap: 5px; align-items: center; }
details.action .a-meta .icon { width: 13px; height: 13px; }
details.action .chev { color: var(--muted); transition: transform var(--dur-2) var(--ease-out); }
details.action[open] .chev { transform: rotate(90deg); }
.a-body { padding: 0 20px 20px 62px; display: grid; gap: 14px; }
.a-body h4 { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 4px; }
.a-body p { color: var(--ink-2); }
.a-body ul.recs { display: grid; gap: 6px; }
.a-body ul.recs li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; color: var(--ink-2); }
.a-body ul.recs li .icon { width: 16px; height: 16px; color: var(--st-success-fg); margin-top: 3px; }
.a-body .a-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.a-tech { font-size: var(--text-xs); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; }
.a-tech code { color: var(--ink-2); }

/* Metric tiles */
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--surface); box-shadow: var(--shadow-1); min-width: 0; }
.metric .m-label { font-size: var(--text-sm); color: var(--muted); font-weight: 500; line-height: 1.3; }
.metric .m-value { font: 700 30px/1.1 var(--font-display); letter-spacing: -.03em; margin-top: 8px; overflow-wrap: anywhere; }
.metric .m-value--text { font-size: 21px; letter-spacing: -.015em; }
.metric .m-note { display: flex; gap: 6px; align-items: flex-start; font-size: var(--text-xs); margin-top: 6px; color: var(--muted); }
.metric .m-note .icon { width: 14px; height: 14px; margin-top: 1px; }
.metric--attention { border-color: var(--st-limited-line); box-shadow: inset 4px 0 0 #f59e0b, var(--shadow-1); }
.metric--attention .m-note { color: var(--st-limited-fg); font-weight: 600; }
.metric--critical { border-color: var(--st-danger-line); box-shadow: inset 4px 0 0 #d92d20, var(--shadow-1); }
.metric--critical .m-note { color: var(--st-danger-fg); font-weight: 600; }
.metric--unknown .m-value { color: var(--st-neutral-fg); font-style: italic; font-size: 20px; }
.metric--unknown { background: var(--surface-2); }

/* Data sections */
.dsec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: 20px 22px; scroll-margin-top: 20px; }
.dsec + .dsec { margin-top: 14px; }
.dsec__head { display: flex; gap: 10px 14px; align-items: flex-start; flex-wrap: wrap; }
.dsec__head h3 { font-size: var(--text-md); flex: 1 1 260px; }
.dsec__desc { color: var(--muted); font-size: var(--text-sm); margin-top: 6px; max-width: 860px; }
.dsec__tools { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.search { position: relative; flex: 0 1 280px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search input { width: 100%; min-height: 38px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px 12px 6px 36px; font-size: var(--text-sm); background: var(--surface); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(59,91,253,.15); }
.dsec .table-wrap { margin-top: 14px; box-shadow: none; }
.dsec table.data { min-width: 0; }
.dsec__foot { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: var(--text-xs); color: var(--muted); }
.dsec__empty { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--st-success-bg); color: var(--st-success-fg); font-weight: 600; font-size: var(--text-sm); }
.dsec__empty .icon { width: 18px; height: 18px; }
.dsec__nodata { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--st-limited-bg); color: var(--st-limited-fg); font-weight: 600; font-size: var(--text-sm); }
.bars { display: grid; gap: 10px; margin-top: 14px; }
.bar { display: grid; grid-template-columns: minmax(120px, 240px) minmax(0, 1fr) 56px; gap: 12px; align-items: center; font-size: var(--text-sm); }
.bar .track { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--c1, #3b5bfd), var(--c2, #8b5cf6)); }
.bar strong { text-align: right; font-variant-numeric: tabular-nums; }
.ca-list { display: grid; gap: 8px; margin-top: 14px; }
.ca-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.ca-item .icon { width: 18px; height: 18px; margin-top: 2px; }
.ca-item strong { display: block; font-size: var(--text-sm); }
.ca-item p { font-size: var(--text-sm); color: var(--muted); margin-top: 2px; }
.ca-item--critical { background: var(--st-danger-bg); border-color: var(--st-danger-line); } .ca-item--critical > .icon { color: var(--st-danger-fg); }
.ca-item--warning { background: var(--st-limited-bg); border-color: var(--st-limited-line); } .ca-item--warning > .icon { color: var(--st-limited-fg); }
.ca-item--ok > .icon { color: var(--st-success-fg); }
.ca-group { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: 12px; }

/* Coverage */
.src-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.src-list li:first-child { border-top: 0; }
.src-list code { color: var(--ink-2); font-size: 12px; }

.not-assessed { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.not-assessed span { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface-2); border: 1px dashed var(--line-strong); color: var(--ink-2); font-size: var(--text-sm); }
.not-assessed span .icon { width: 15px; height: 15px; color: var(--muted); }

.menu-item[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.menu-sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.popover--wide { min-width: 300px; }

@media (max-width: 1199px) { .areas { grid-template-columns: minmax(0, 1fr); } .area-card .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 959px) { .takeaway { grid-template-columns: minmax(0, 1fr); } .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; } .stat strong { font-size: 24px; }
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric { padding: 12px 14px; } .metric .m-value { font-size: 24px; } .metric .m-value--text, .metric--unknown .m-value { font-size: 17px; }
  .area-card .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a-body { padding: 0 16px 16px 16px; }
  details.action > summary { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .dsec { padding: 16px; }
  .bar { grid-template-columns: minmax(0, 1fr) 48px; }
  .bar .track { grid-column: 1 / -1; grid-row: 2; }
  .dsec table.data.stack thead { display: none; }
  .dsec table.data.stack, .dsec table.data.stack tbody, .dsec table.data.stack tr, .dsec table.data.stack td { display: block; width: 100%; }
  .dsec table.data.stack tr { padding: 10px 14px; border-top: 1px solid var(--line); }
  .dsec table.data.stack tr:first-child { border-top: 0; }
  .dsec table.data.stack td { border: 0; padding: 2px 0; display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 8px; }
  .dsec table.data.stack td::before { content: attr(data-label); color: var(--muted); font-size: var(--text-xs); }
  .dsec table.data.stack td:first-child { font-weight: 700; grid-template-columns: 1fr; }
  .dsec table.data.stack td:first-child::before { display: none; }
}

/* Canopy background layer: clips the aurora without clipping menus in the canopy. */
.canopy__bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.canopy > .wrap { position: relative; }
.canopy--tabs { padding-bottom: 28px; }
.content--flat { margin-top: 0; padding-top: 32px; }
@media (max-width: 767px) { .canopy--tabs { padding-bottom: 20px; } .content--flat { padding-top: 22px; } }

/* ---------- Top bar: never break labels mid-word on mid-size screens ---------- */
.nav a, .seg button, .switch__label { white-space: nowrap; }
.nav, .seg { flex: none; }
.ws { flex: 0 1 auto; min-width: 0; }
.ws small, .ws strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1099px) and (min-width: 768px) {
  .brand__label, .switch__label, .ws small { display: none; }
  .switch { padding: 5px 6px; }
  .ws { flex: 1 1 0; }
  .ws strong { max-width: none; }
}

/* ---------- Workspace management (/manage) ---------- */
.manage .hero--text { padding-bottom: var(--space-5); }
.manage .hero--text .eyebrow a { color: inherit; }
.manage-narrow { max-width: 520px; }
.manage-narrow .btn--block + form, .manage-narrow form .btn { margin-top: var(--space-4); }
.manage-kicker { font-size: var(--text-2xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.manage-ws { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; justify-content: space-between; }
.manage-ws h2 { font-size: var(--text-xl, 24px); margin: 4px 0 10px; }
.manage-ws__main { min-width: 0; }
.manage-ws__main code { overflow-wrap: anywhere; }
.manage-ws__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.manage-sub { font-size: var(--text-md); margin-top: var(--space-5); }
.manage .card > h2 + .conn-list, .manage .card > h2 + .muted { margin-top: var(--space-3); }
.manage .card .field { margin-top: var(--space-4); }
.manage .card form > .btn, .manage .card > div > .btn, .manage .card > .btn { margin-top: var(--space-4); }
.manage .card p.muted { margin-top: 6px; }
.manage .conn-list strong { display: block; margin-bottom: 4px; overflow-wrap: anywhere; }
.manage #people > div:not([hidden]) + div:not([hidden]) { border-top: 1px solid var(--line); margin-top: var(--space-5); }
.manage-demo { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px dashed var(--line-strong); }
.manage #message { margin-bottom: 0; }
@media (max-width: 767px) {
  .manage .conn-list li { grid-template-columns: 38px minmax(0, 1fr); }
  .manage .conn-list li > .row { grid-column: 2; }
}

/* ---------- Brand lockup always visible (parity with the landing) ---------- */
.topbar .brand { gap: 9px; }
@media (max-width: 767px) {
  .topbar .brand__word { height: 16px; }
  .topbar .brand__mark { width: 28px; height: 28px; }
  .topbar .ws { display: none; }
}
.popover .pop-ws { display: grid; gap: 2px; margin: 0 0 10px; }
.popover .pop-ws small { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.popover .pop-ws strong { font-size: var(--text-sm); overflow-wrap: anywhere; }
