@font-face {
  font-family: "Geist";
  src: url("fonts/geist-400-cyr.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-400-lat.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-500-cyr.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-500-lat.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-600-cyr.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-600-lat.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400-cyr.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400-lat.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500-cyr.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500-lat.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600-cyr.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600-lat.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   1jc — Light infrastructure theme
   White surface, near-black typography, Inter body,
   Geist headings, thin cool borders, black pills.
   Loaded last, after Redline and page-level styles.
   ========================================================= */

:root,
html[data-palette="redline"],
html[data-hybrid="redline"],
html[data-hybrid="redline"]:not(.light) {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --line: #e6eaf0;
  --line-strong: #d7dee8;
  --text: #0a0d14;
  --muted: #5f6673;
  --muted-2: #8a94a6;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --accent-rgb: 59, 130, 246;
  --accent-2-rgb: 139, 92, 246;
  --accent-3-rgb: 34, 211, 238;
  --accent-contrast: #ffffff;
  --accent-2-contrast: #ffffff;
  --accent-soft: #bfdbfe;
  --accent-2-soft: #ddd6fe;
  --danger: #ef4444;
  --success: #10b981;
  --graphite: #f8fafc;
  --graphite-2: #ffffff;
  --graphite-3: #ffffff;
  --graphite-line: #e6eaf0;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --font: "Inter", "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Geist", "Inter", "Manrope", system-ui, sans-serif;
  color-scheme: light;
}

html { background: #ffffff; }
html, body { color-scheme: light; }
body {
  font-family: var(--font) !important;
  color: #0a0a0a;
  background-color: #ffffff !important;
  background-image:
    radial-gradient(ellipse 55% 38% at 12% 0%, rgba(59,130,246,.075), transparent 70%),
    radial-gradient(ellipse 48% 36% at 88% 7%, rgba(139,92,246,.065), transparent 72%) !important;
  background-attachment: fixed;
  color: var(--text);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .32;
  background-image: radial-gradient(rgba(15,23,42,.11) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.45) 48%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.45) 48%, transparent 82%);
}
header, main, footer { position: relative; z-index: 1; }
::selection { background: #3b82f6; color: #fff; }
.landing-page, .page { background: transparent !important; }

/* Header */
.site-header, .landing-header, .site-header.is-scrolled {
  background: rgba(255,255,255,.86) !important;
  border-bottom: 1px solid #e6eaf0 !important;
  box-shadow: 0 1px 0 rgba(15,23,42,.025) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-shell { height: 72px; }
.brand-mark { border-color: #e6eaf0 !important; background: #fff !important; box-shadow: 0 2px 8px rgba(15,23,42,.05); }
.logo-prompt { stroke: #3b82f6 !important; }
.logo-caret { stroke: #8b5cf6 !important; }
.logo-dot { fill: #22d3ee !important; }
.brand-copy strong { color: #0a0d14 !important; font-weight: 800; letter-spacing: -.045em; }
.brand-slogan { color: #6b7280 !important; }
.brand-letter-j { color: #3b82f6 !important; }
.main-nav { gap: 22px; }
.main-nav a,
.main-nav .nav-group > summary { color: #475569 !important; font-size: .77rem; font-weight: 600; }
.main-nav a:hover,
.main-nav a.is-current,
.main-nav .nav-group > summary:hover,
.main-nav .nav-group[open] > summary,
.main-nav .nav-group > summary.is-current { color: #0a0d14 !important; }
.main-nav a::after,
.main-nav .nav-group > summary.is-current::after,
.main-nav .nav-group[open] > summary::after { background: #3b82f6 !important; }
.nav-dropdown { background: #fff !important; border-color: #e6eaf0 !important; box-shadow: 0 24px 60px rgba(15,23,42,.13) !important; border-radius: 14px !important; }
.nav-dropdown a { color: #475569 !important; }
.nav-dropdown a:hover, .nav-dropdown a.is-current { color: #0a0d14 !important; background: #f1f5ff !important; }
.nav-dropdown .nav-overview { color: #0a0d14 !important; border-bottom-color: #edf0f5 !important; }
.nav-dropdown a span:last-child { color: #3b82f6 !important; }
.theme-toggle, .font-scale-toggle, .palette-toggle {
  background: #fff !important; border-color: #e6eaf0 !important; color: #0a0d14 !important;
  box-shadow: 0 1px 3px rgba(15,23,42,.03);
}
.theme-toggle:hover, .font-scale-toggle:hover, .palette-toggle:hover { border-color: #3b82f6 !important; color: #3b82f6 !important; }
.palette-name { color: #0a0d14 !important; }
.palette-menu, .font-menu { background: #fff !important; border-color: #e6eaf0 !important; box-shadow: 0 22px 55px rgba(15,23,42,.14) !important; }
.font-menu-row button, .palette-option { background: #f8fafc !important; border-color: #e6eaf0 !important; color: #0a0d14 !important; }
.font-menu > p, .font-current, .palette-menu p, .palette-menu small { color: #5f6673 !important; }
.menu-toggle { background: #fff !important; border-color: #e6eaf0 !important; color: #0a0d14 !important; }

/* Buttons — Light black pill */
.btn {
  border-radius: 100px !important;
  font-weight: 650;
  letter-spacing: -.01em;
  border-color: #dbe1ea;
}
.btn-primary,
.landing-header-cta {
  background: #0a0a0a !important;
  border-color: #0a0a0a !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(10,10,10,.12) !important;
}
.btn-primary:hover,
.landing-header-cta:hover {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 12px 28px rgba(59,130,246,.22) !important;
}
.btn-ghost,
.btn:not(.btn-primary) {
  background: #fff !important;
  border-color: #dbe1ea !important;
  color: #0a0d14 !important;
}
.btn-ghost:hover,
.btn:not(.btn-primary):hover { border-color: #0a0d14 !important; background: #f8fafc !important; }
.landing-actions .btn { border-radius: 100px !important; }
.text-link { color: #2563eb !important; }
.text-link:hover { color: #0a0d14 !important; }

/* Type */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 500;
  color: #0a0a0a;
  letter-spacing: -.028em;
}
.hero h1, .page-hero h1, .landing-copy h1 {
  font-family: var(--font-display);
  color: #0a0a0a !important;
  font-weight: 500;
  letter-spacing: -.03em;
}
.landing-gradient,
.hero h1 .accent,
.page-hero h1 .muted {
  background: linear-gradient(100deg, #2563eb 0%, #7c3aed 52%, #06b6d4 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
.lead, .landing-lead, .hero .lead, .page-hero .lead { color: #404040 !important; }
.section-kicker, .hero-eyebrow, .page-hero .section-kicker {
  background: #eff6ff !important;
  border-color: #dbeafe !important;
  color: #2563eb !important;
  border-radius: 100px !important;
}
.section-kicker::before { color: #3b82f6 !important; }
.muted { color: #64748b !important; }

/* Hero / page surfaces */
.hero, .page-hero {
  background: #fff !important;
  border-color: #e6eaf0 !important;
  color: #0a0d14 !important;
  box-shadow: none !important;
}
.hero::before, .page-hero::before {
  background:
    radial-gradient(ellipse 35% 46% at 84% 6%, rgba(59,130,246,.10), transparent 70%),
    radial-gradient(ellipse 30% 40% at 4% 92%, rgba(139,92,246,.08), transparent 72%),
    linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px) !important;
  background-size: auto, auto, 56px 56px, 56px 56px !important;
}
.hero::after, .page-hero::after, .landing-hero-grid::after {
  background: linear-gradient(90deg, transparent, #3b82f6 45%, #8b5cf6 62%, transparent) !important;
}
.hero h1 .muted { color: #64748b !important; }
.hero-meta, .page-hero-meta, .hero-trust, .hero-board-link { color: #5f6673 !important; }
.page-hero-meta span { border-color: #e6eaf0 !important; }
.hero .stat strong, .hero .stat b { color: #0a0d14 !important; }
.hero .stat span { color: #64748b !important; }
.stats-grid { background: #f8fafc !important; border-color: #e6eaf0 !important; }
.stats-grid .stat strong { color: #0a0d14 !important; }
.stats-grid .stat span { color: #64748b !important; }
.stats-band { background: #f8fafc !important; border-color: #e6eaf0 !important; }
.hero-orb { filter: saturate(.8); }

/* Landing desktop */
.landing-hero-grid {
  background: #fff !important;
  border-color: #e6eaf0 !important;
  box-shadow: 0 28px 70px rgba(15,23,42,.07) !important;
}
.exec-desktop {
  background:
    radial-gradient(ellipse 55% 50% at 88% 4%, rgba(59,130,246,.08), transparent 65%),
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px),
    #f8fafc !important;
  background-size: auto, 26px 26px, 26px 26px, auto !important;
  border-color: #e6eaf0 !important;
  box-shadow: 0 26px 64px rgba(15,23,42,.08) !important;
}
.exec-top { border-color: #e6eaf0 !important; }
.exec-avatar { background: #0a0a0a !important; color: #fff !important; }
.exec-user b { color: #0a0d14 !important; }
.exec-user small, .exec-date { color: #64748b !important; }
.exec-status { background: #fff !important; border-color: #dbe1ea !important; color: #059669 !important; }
.exec-window, .exec-bi, .landing-terminal {
  background: #fff !important;
  border-color: #e6eaf0 !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.03) !important;
}
.exec-window-head { background: #f8fafc !important; border-color: #e6eaf0 !important; color: #475569 !important; }
.exec-rec { color: #7c3aed !important; }
.exec-taskbar { border-color: #e6eaf0 !important; color: #64748b !important; }
.exec-app { background: #fff !important; border-color: #e6eaf0 !important; }
.exec-app.is-active { background: #eff6ff !important; border-color: #bfdbfe !important; color: #2563eb !important; }
.exec-start { color: #3b82f6 !important; }
.landing-terminal-bar { background: #f8fafc !important; border-color: #e6eaf0 !important; }
.dash-window-title { color: #475569 !important; }
.dash-filter { background: #fff !important; border-color: #e6eaf0 !important; color: #5f6673 !important; }
.dash-filter.is-active { background: #0a0a0a !important; border-color: #0a0a0a !important; color: #fff !important; }
.dash-kpi, .dash-chart, .dash-side, .dash-log, .exec-tasks, .exec-cells, .exec-skud {
  background: #fff !important;
  border-color: #e6eaf0 !important;
}
.dash-kpi span, .dash-chart-head span, .dash-side-head span, .dash-log-head, .cell-foot, .cctv-foot { color: #8a94a6 !important; }
.dash-kpi strong, .dash-chart-head b, .dash-side-head b { color: #0a0d14 !important; }
.dash-kpi strong { color: #2563eb !important; }
.dash-kpi small, .dash-updated, .dash-period { color: #64748b !important; }
.dash-kpi small i { color: #059669 !important; }
.dash-y, .dash-bars em, .dash-legend span { color: #8a94a6 !important; }
.dash-log-row { border-color: #f1f5f9 !important; }
.dash-log-row b { color: #1f2937 !important; }
.dash-log-row em { color: #64748b !important; }
.dash-log-row i, .dash-log-row .ok { color: #059669 !important; }
.dash-slogan, .dash-hash, .landing-cursor { color: #2563eb !important; }
.landing-terminal-foot { color: #8a94a6 !important; }
.exec-task b { color: #1f2937 !important; }
.exec-task small { color: #8a94a6 !important; }
.exec-task em { color: #059669 !important; }
.exec-task-progress { background: #eef2f7 !important; }
.exec-task-progress span { background: #3b82f6 !important; }
.skud-zone, .skud-kpi span, .skud-event { border-color: #e6eaf0 !important; }
.skud-zone { background: #fff !important; }
.skud-zone.is-open i { background: #10b981 !important; }
.skud-zone span { color: #1f2937 !important; }
.skud-zone b { color: #8a94a6 !important; }
.skud-zone.is-open b { color: #059669 !important; }
.skud-event { background: #eff6ff !important; border-color: #dbeafe !important; }
.skud-event b { color: #0a0d14 !important; }
.skud-event time { color: #2563eb !important; }
.cell { background: #f8fafc !important; border-color: #e6eaf0 !important; }
.cell b { color: #1f2937 !important; }
.cell small { color: #475569 !important; }
.cell.is-high small { color: #fff !important; }
.cell-foot b { color: #2563eb !important; }

/* Cards and content surfaces */
.landing-card, .project-card, .dir-card, .bsp-card, .office-case, .office-example,
.office-cloud-grid article, .dir-side-card, .dir-feature, .modal-inner, .notfound-card {
  background: #fff !important;
  border-color: #e6eaf0 !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.025);
}
.dir-card:hover, .project-card:hover, .landing-card:hover {
  border-color: #bfdbfe !important;
  box-shadow: 0 18px 40px rgba(15,23,42,.08) !important;
}
.dir-card h3, .project-card h3, .landing-card strong, .bsp-card h3, .office-example h3 { color: #0a0d14 !important; }
.dir-card p, .project-card p, .landing-card small, .bsp-card p, .office-example p { color: #5f6673 !important; }
.dir-feature { background: linear-gradient(135deg, #f8fbff, #ffffff 55%, #fbf8ff) !important; border-color: #dbeafe !important; }
.dir-feature h2, .dir-feature p { color: #0a0d14; }
.dir-feature p { color: #5f6673; }
.dir-feature-tags span { background: #fff !important; border-color: #dbeafe !important; color: #2563eb !important; }
.dir-feature-metric { background: #fff !important; border-color: #e6eaf0 !important; }
.dir-feature-metric strong { color: #2563eb !important; }
.dir-feature-metric span { color: #5f6673 !important; }
.dir-side-card { background: #f5f9ff !important; border-color: #dbeafe !important; }
.dir-side-card h3 { color: #0a0d14 !important; }
.dir-side-card p { color: #5f6673 !important; }
.office-badge { background: #eff6ff !important; border-color: #dbeafe !important; color: #2563eb !important; }
.office-badge::before { background: #3b82f6 !important; }
.office-cloud-grid article > span, .office-example > span, .office-case-head > span { color: #2563eb !important; }
.office-case, .office-example { background: #fff !important; border-color: #e6eaf0 !important; }
.office-case-head { border-color: #edf0f5 !important; }
.office-case-grid b, .office-cloud-grid b { color: #0a0d14; }
.office-case-grid p, .office-cloud-grid p { color: #5f6673; }
.dir-step, .dir-result > div { background: #fff !important; }
.dir-step b { color: #0a0d14; }
.dir-step p { color: #5f6673; }
.dir-step > span, .dir-result strong { color: #2563eb !important; }
.dir-pager a { background: #fff !important; border-color: #e6eaf0 !important; }
.dir-pager b { color: #0a0d14; }
.dir-pager span { color: #8a94a6; }
.dir-crumb, .dir-crumb a { color: #64748b !important; }
.dir-crumb a:hover { color: #2563eb !important; }

/* Footer */
.site-footer { background: #f8fafc !important; border-top: 1px solid #e6eaf0 !important; color: #5f6673 !important; }
.footer-brand p, .footer-nav a, .footer-cities, .footer-signature, .footer-bottom { color: #64748b !important; }
.footer-nav span { color: #0a0d14 !important; }
.footer-nav a:hover { color: #2563eb !important; }
.landing-foot { background: #f8fafc !important; color: #64748b !important; border: 1px solid #e6eaf0 !important; }
.landing-foot a { color: #475569 !important; }

/* Mobile menu / modal */
.mobile-menu { background: #fff !important; color: #0a0d14 !important; }
.mobile-menu nav a { color: #1f2937 !important; border-color: #e6eaf0 !important; }
.mobile-menu nav a span { color: #2563eb !important; }
.mobile-menu .mobile-group > summary { color: #0a0d14 !important; border-color: #e6eaf0 !important; }
.mobile-menu .mobile-sub a { color: #5f6673 !important; }
.mobile-menu-kicker, .mobile-menu-note { color: #8a94a6 !important; }
.modal { background: #fff !important; border-color: #e6eaf0 !important; }
.modal::backdrop { background: rgba(15,23,42,.45) !important; }

/* Code, console, tables, BSP */
pre, code, kbd, samp, .bsp-code, .console {
  border-color: #e6eaf0 !important;
}
.bsp-code, .console, .friendly-hero, .friendly-step, .friendly-example {
  background: #fff !important;
  border-color: #e6eaf0 !important;
  color: #1f2937 !important;
}
.bsp-code code, .console-log, .log-line { color: #334155 !important; }
.bsp-code code .comment, .bsp-code code .tok-comment { color: #7c8ba1 !important; }
.bsp-result-card, .result-metrics, .project-card, .bsp-block-card { background: #fff !important; border-color: #e6eaf0 !important; }
.bsp-result-copy h3, .result-metrics strong { color: #0a0d14 !important; }
.result-metrics strong { color: #2563eb !important; }
.bsp-crumb, .bsp-crumb a { color: #64748b !important; }
.notfound { background: #fff !important; }

/* Small controls */
.dash-filter, .filter-btn, .contour-tab {
  border-radius: 100px !important;
}
.project-tags span, .int-tags span, .version-pill, .node-count {
  background: #f1f5ff !important;
  border-color: #dbeafe !important;
  color: #2563eb !important;
}
.project-badges b, .project-index, .section-index { color: #2563eb !important; }
.project-top, .project-card { border-color: #e6eaf0 !important; }

/* Keep the accent scan and motion blue/violet */
.hero-orb-b { background: rgba(139,92,246,.12) !important; }
.hero-orb { background: rgba(59,130,246,.10) !important; }
.live-dot, .logo-dot { background: #22d3ee !important; }
.dash-live { color: #059669 !important; }
.dash-live i { background: #10b981 !important; }

@media (max-width: 760px) {
  .site-header, .landing-header { background: rgba(255,255,255,.94) !important; }
  .main-nav a, .main-nav .nav-group > summary { color: #1f2937 !important; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { opacity: .2; }
}

/* =========================================================
   Light surfaces for inner-page panels
   (base styles.css ships dark panels; Light theme is light)
   ========================================================= */
.contour-tabs,
.arch-tabs,
.scenario-tabs,
.api-tabs,
.filter-bar {
  background: #f8fafc !important;
  border-color: #e6eaf0 !important;
}
.contour-tab.is-active,
.arch-tab.is-active,
.scenario-tab.is-active,
.api-tab.is-active {
  background: #ffffff !important;
  border-color: #dbe1ea !important;
  color: #0a0d14 !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .06) !important;
}
.contour-panel,
.scenario-panel,
.arch-diagram,
.pilot-builder,
.api-info {
  background: linear-gradient(150deg, #ffffff, #f8fafc) !important;
  border-color: #e6eaf0 !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06) !important;
}
.contour-title-row h3 code { color: #0a0d14 !important; }
.feature-item { background: #ffffff !important; }
.feature-item:hover { background: #f8fafc !important; }
.side-note { color: #5f6673 !important; }
.arch-diagram::before {
  background-image: radial-gradient(rgba(15, 23, 42, .16) 1px, transparent 1px) !important;
  opacity: .35 !important;
}
.arch-chip {
  background: #ffffff !important;
  border-color: #e6eaf0 !important;
  color: #475569 !important;
}
.filter-btn:hover { background: #eef2f7 !important; }
.filter-btn.is-active { color: #ffffff !important; }
.filter-btn.is-active span { color: rgba(255, 255, 255, .78) !important; }
.pilot-result {
  background: #f8fafc !important;
  border-color: #e6eaf0 !important;
}
.pilot-option { background: #ffffff !important; border-color: #e6eaf0 !important; }
.pilot-option:hover { background: #f8fafc !important; }
.api-facts > div { background: #ffffff !important; }
.timeline-num { background: #ffffff !important; border-color: #e6eaf0 !important; }

/* Code cards: light editor */
.code-card { background: #ffffff !important; border-color: #e6eaf0 !important; }
.code-head { background: #f8fafc !important; border-color: #e6eaf0 !important; }
.code-head > span:nth-child(2) { color: #5f6673 !important; }
.code-body { color: #1f2937 !important; }
.code-foot { background: #f8fafc !important; border-color: #e6eaf0 !important; }
.code-dots i { background: #cbd5e1 !important; }
.code-dots i:first-child { background: #f87171 !important; }
.code-dots i:nth-child(2) { background: #fbbf24 !important; }
.code-dots i:nth-child(3) { background: #34d399 !important; }

/* Client map */
.client-map-canvas {
  background-color: #f8fafc !important;
  background-image: radial-gradient(rgba(15, 23, 42, .14) 1px, transparent 1px) !important;
  border-color: #e6eaf0 !important;
}
.region-node { box-shadow: 0 8px 20px rgba(15, 23, 42, .08) !important; }

/* Activator demo */
.activator-shot { background: #ffffff !important; border-color: #e6eaf0 !important; box-shadow: 0 20px 50px rgba(15, 23, 42, .08) !important; }
.activator-live-head { background: #f8fafc !important; border-color: #e6eaf0 !important; }
.activator-live-brand { color: #5f6673 !important; }
.activator-cam {
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(59, 130, 246, .08), transparent 70%), #f8fafc !important;
  border-color: #e6eaf0 !important;
}
.activator-cam::after {
  background: repeating-linear-gradient(90deg, rgba(15, 23, 42, .12) 0 1px, transparent 1px 19px), linear-gradient(180deg, transparent, rgba(59, 130, 246, .05)) !important;
  border-top-color: #e6eaf0 !important;
}
.activator-cam-grid span { border-color: rgba(15, 23, 42, .1) !important; background: rgba(59, 130, 246, .03) !important; }
.activator-rail { background: #f8fafc !important; border-color: #e6eaf0 !important; }
.act-rail-pair b { color: #0a0d14 !important; }
.activator-code-row { background: #ffffff !important; border-color: #e6eaf0 !important; }

/* Stat strips on inner pages */
.scenario-metrics > div,
.dev-stats > div,
.activator-steps > div,
.activator-facts > div {
  background: #ffffff !important;
}
.scenario-metrics,
.dev-stats,
.activator-steps,
.activator-facts {
  border-color: #e6eaf0 !important;
  background: #e6eaf0 !important;
}
.scenario-metrics strong,
.dev-stats strong,
.activator-steps strong,
.activator-facts strong { color: #0a0d14 !important; }
.scenario-metrics span,
.dev-stats span,
.activator-steps p,
.activator-facts span { color: #5f6673 !important; }

.activator-live-stats > div,
.dev-process-steps > div {
  background: #ffffff !important;
}
.activator-live-stats,
.dev-process-steps {
  border-color: #e6eaf0 !important;
  background: #e6eaf0 !important;
}
.activator-live-stats strong,
.dev-process-steps strong { color: #0a0d14 !important; }
.activator-live-stats span,
.activator-live-stats small,
.dev-process-steps p { color: #5f6673 !important; }

/* =========================================================
   Layout rhythm and typography refinements
   ========================================================= */
:root,
html[data-hybrid="redline"],
html[data-hybrid="redline"]:not(.light) {
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --muted: #404040;
  --muted-2: #737373;
}

body { color: #0a0a0a; }
p, li, dd, dt { color: #404040; }
.lead, .landing-lead { color: #404040 !important; }

h1 { font-weight: 500; letter-spacing: -.03em; }
h2 { font-weight: 500; letter-spacing: -.028em; }
h3, h4 { font-weight: 500; letter-spacing: -.02em; }

/* Nav: compact black-on-white menu, 4px tabs */
.main-nav a,
.main-nav .nav-group > summary {
  color: #0a0a0a !important;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.main-nav a:hover,
.main-nav a.is-current,
.main-nav .nav-group > summary:hover,
.main-nav .nav-group[open] > summary,
.main-nav .nav-group > summary.is-current { color: #0a0a0a !important; }
.main-nav a::after,
.main-nav .nav-group > summary.is-current::after,
.main-nav .nav-group[open] > summary::after { background: #0a0a0a !important; height: 2px; }
.nav-dropdown { border-radius: 12px !important; border-color: #e5e7eb !important; }
.nav-dropdown a { font-size: 14px; }

/* Section rhythm */
@media (min-width: 900px) {
  .section { padding-top: 88px; padding-bottom: 88px; }
  .section-head { margin-bottom: 34px; }
}
.page-hero { padding-top: 84px; }
.dir-main > section { padding-bottom: 34px; margin-bottom: 34px; }

/* Cards: white, hairline border, restrained shadow */
.dir-card, .project-card, .bsp-card, .landing-card, .office-example, .office-case {
  border-color: #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: none;
}
.dir-card:hover, .project-card:hover, .landing-card:hover {
  border-color: #a3a3a3 !important;
  box-shadow: 0 10px 30px rgba(10, 10, 10, .06) !important;
}
.dir-feature, .dir-side-card {
  border-radius: 16px !important;
  border-color: #e5e7eb !important;
}

/* Buttons: black pill / white pill */
.btn { font-family: var(--font); font-size: 14px; font-weight: 500; letter-spacing: -.02em; }
.btn-primary { background: #000 !important; border-color: #000 !important; }
.btn-primary:hover { background: #404040 !important; border-color: #404040 !important; box-shadow: none !important; }
.btn-ghost, .btn:not(.btn-primary) { border-color: #e5e7eb !important; }
.btn-ghost:hover, .btn:not(.btn-primary):hover { border-color: #0a0a0a !important; background: #fafafa !important; }

/* Accents: keep blue/violet only where meaningful */
.section-kicker, .hero-eyebrow {
  border-radius: 100px !important;
  background: #f5f5f5 !important;
  border-color: #e5e7eb !important;
  color: #404040 !important;
}
.landing-header .main-nav .nav-group > summary { color: #0a0a0a !important; }

/* Footer: hairline top, white */
.site-footer, .landing-foot {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
}
.footer-nav span { color: #0a0a0a !important; }
.footer-nav a { color: #404040 !important; }
.footer-nav a:hover { color: #0a0a0a !important; }

/* =========================================================
   Elevated blocks — chosen variant
   White surface, no border, 16px radius, soft shadow.
   ========================================================= */
.dir-card,
.project-card,
.bsp-card,
.landing-card,
.office-example,
.office-case,
.dir-side-card,
.dir-feature,
.office-cloud-grid article,
.dir-feature-metric,
.dir-pager a,
.bsp-result-card,
.bsp-block-card,
.int-card,
.client-map-panel {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 40px rgba(10, 10, 10, .09) !important;
  transition: box-shadow .25s ease, transform .25s ease;
}
.dir-card:hover,
.project-card:hover,
.bsp-card:hover,
.landing-card:hover,
.office-example:hover,
.office-case:hover,
.dir-pager a:hover,
.int-card:hover {
  box-shadow: 0 22px 56px rgba(10, 10, 10, .13) !important;
  transform: translateY(-2px);
}
.dir-card,
.project-card,
.bsp-card,
.landing-card,
.office-example,
.office-case {
  padding: 22px !important;
}
.dir-feature { padding: 28px !important; }
.dir-side-card { padding: 20px !important; }
.office-cloud-grid article { padding: 16px !important; }
.dir-feature-metric { padding: 14px !important; }

/* Menus and dialogs follow the same elevation */
.nav-dropdown,
.palette-menu,
.font-menu,
.modal {
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(10, 10, 10, .16) !important;
}

/* Keep inner separators subtle on elevated surfaces */
.dir-card .dir-card-art { border-radius: 12px 12px 0 0; }
.office-case-head { border-bottom-color: #f0f0f0 !important; }
.dir-related a { border-bottom-color: #f0f0f0 !important; }

/* =========================================================
   Solid type colors — no gradient fills
   ========================================================= */
.landing-gradient,
.hero h1 .accent,
.page-hero h1 .muted,
.hero h1 .muted,
.landing-copy h1 .landing-gradient {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb !important;
  text-shadow: none !important;
}
.brand-copy strong,
.brand-letter-j {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

/* =========================================================
   Chosen type color: black + red
   ========================================================= */
:root,
html[data-hybrid="redline"],
html[data-hybrid="redline"]:not(.light) {
  --accent: #b91c1c;
  --accent-2: #dc2626;
  --accent-3: #ef4444;
  --accent-rgb: 185, 28, 28;
  --accent-2-rgb: 220, 38, 38;
  --accent-3-rgb: 239, 68, 68;
  --accent-soft: #fecaca;
  --accent-2-soft: #fee2e2;
}
.landing-gradient,
.hero h1 .accent,
.page-hero h1 .muted,
.hero h1 .muted,
.landing-copy h1 .landing-gradient {
  color: #b91c1c !important;
  -webkit-text-fill-color: #b91c1c !important;
}
.text-link, .dir-related a:hover, .dir-crumb a:hover, .footer-nav a:hover { color: #b91c1c !important; }
.section-kicker, .hero-eyebrow { color: #b91c1c !important; }
.section-kicker::before { color: #b91c1c !important; }
.dir-card-index, .dir-step > span, .dir-result strong, .office-example > span,
.office-case-head > span, .office-cloud-grid article > span, .dir-feature-metric strong,
.dir-pager b, .dir-related b, .dir-card-foot, .office-badge { color: #b91c1c !important; }
.office-badge { background: #fef2f2 !important; border-color: #fecaca !important; }
.office-badge::before { background: #dc2626 !important; }
.dir-side-card { background: #fef2f2 !important; }
.dir-feature { background: linear-gradient(135deg, #fff, #fef7f7 60%, #fff) !important; }
.dir-feature-tags span { color: #b91c1c !important; border-color: #fecaca !important; }
.project-tags span, .int-tags span, .version-pill, .node-count { background: #fef2f2 !important; border-color: #fecaca !important; color: #b91c1c !important; }
.project-badges b, .project-index, .section-index { color: #b91c1c !important; }
.main-nav a::after, .main-nav .nav-group > summary.is-current::after,
.main-nav .nav-group[open] > summary::after { background: #b91c1c !important; }
.nav-dropdown a span:last-child { color: #b91c1c !important; }
.nav-dropdown a:hover, .nav-dropdown a.is-current { background: #fef2f2 !important; }
.logo-prompt { stroke: #b91c1c !important; }
.logo-caret { stroke: #dc2626 !important; }
.logo-dot { fill: #ef4444 !important; }
.brand-letter-j { color: #b91c1c !important; }
::selection { background: #b91c1c; color: #fff; }
.dash-kpi strong, .cells-total, .skud-kpi b, .dev-head b, .dev-row em, .cell-foot b { color: #b91c1c !important; }
.dash-filter.is-active { background: #b91c1c !important; border-color: #b91c1c !important; }
.exec-avatar { background: #b91c1c !important; }
.exec-task-progress span { background: #b91c1c !important; }
.skud-event { background: #fef2f2 !important; border-color: #fecaca !important; }
.skud-event time { color: #b91c1c !important; }
.skud-zone.is-open b { color: #b91c1c !important; }
.skud-zone.is-open i { background: #dc2626 !important; }
.dash-slogan, .dash-hash, .landing-cursor { color: #b91c1c !important; }
.exec-start { color: #b91c1c !important; }
.exec-app.is-active { background: #fef2f2 !important; border-color: #fecaca !important; color: #b91c1c !important; }
.exec-rec { color: #b91c1c !important; }
.exec-rec i { background: #dc2626 !important; }
.landing-header .main-nav .nav-group > summary:hover,
.landing-header .main-nav .nav-group[open] > summary,
.landing-header .main-nav .nav-group > summary.is-current { color: #b91c1c !important; }

/* =========================================================
   Chosen button: white elevated
   ========================================================= */
.btn,
.landing-header-cta {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #0a0a0a !important;
  box-shadow: 0 10px 28px rgba(10, 10, 10, .12) !important;
  font-weight: 500;
  transition: box-shadow .22s ease, transform .22s ease;
}
.btn-primary,
.landing-header-cta {
  box-shadow: 0 14px 34px rgba(10, 10, 10, .16) !important;
  font-weight: 600;
}
.btn-ghost,
.btn:not(.btn-primary) {
  color: #404040 !important;
  box-shadow: 0 6px 18px rgba(10, 10, 10, .08) !important;
}
.btn:hover,
.landing-header-cta:hover {
  background: #ffffff !important;
  box-shadow: 0 20px 44px rgba(10, 10, 10, .2) !important;
  transform: translateY(-1px);
}
.btn-primary:hover { color: #b91c1c !important; }
.btn .icon { color: #b91c1c; }

/* Red accent must win over the earlier page-hero rule */
.section-kicker,
.hero-eyebrow,
.page-hero .section-kicker { color: #b91c1c !important; }
.section-kicker::before,
.page-hero .section-kicker::before { color: #b91c1c !important; }
.dir-hero-art figcaption span:last-child { color: #b91c1c !important; }

/* =========================================================
   Chosen block surface: inset hairline on white
   White fill, 1px inner ring, soft top inner shadow.
   ========================================================= */
.dir-card,
.project-card,
.bsp-card,
.landing-card,
.office-example,
.office-case,
.dir-side-card,
.dir-feature,
.office-cloud-grid article,
.dir-feature-metric,
.dir-pager a,
.bsp-result-card,
.bsp-block-card,
.int-card,
.client-map-panel {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow:
    inset 0 0 0 1px #e5e7eb,
    inset 0 2px 6px rgba(10, 10, 10, .04) !important;
  transition: box-shadow .22s ease, transform .22s ease;
}
.dir-card:hover,
.project-card:hover,
.bsp-card:hover,
.landing-card:hover,
.office-example:hover,
.office-case:hover,
.dir-pager a:hover,
.int-card:hover {
  box-shadow:
    inset 0 0 0 1px #cfcfcf,
    inset 0 2px 6px rgba(10, 10, 10, .05) !important;
  transform: translateY(-1px);
}

/* Stat strips and inner grids use the same white inset surface */
.scenario-metrics,
.dev-stats,
.activator-steps,
.activator-facts,
.activator-live-stats,
.dev-process-steps,
.dir-steps,
.dir-result {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px #e5e7eb, inset 0 2px 6px rgba(10, 10, 10, .04) !important;
}
.scenario-metrics > div,
.dev-stats > div,
.activator-steps > div,
.activator-facts > div,
.activator-live-stats > div,
.dev-process-steps > div,
.dir-steps .dir-step,
.dir-result > div {
  background: transparent !important;
}
.scenario-metrics > div + div,
.dev-stats > div + div,
.activator-steps > div + div,
.activator-facts > div + div,
.activator-live-stats > div + div,
.dev-process-steps > div + div,
.dir-steps .dir-step + .dir-step,
.dir-result > div + div {
  box-shadow: inset 1px 0 0 #f0f0f0;
}

/* Form fields share the inset hairline */
.field input,
.field select,
.field textarea,
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 1px #e5e7eb, inset 0 2px 5px rgba(10, 10, 10, .04) !important;
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  box-shadow: inset 0 0 0 1px #b91c1c, inset 0 2px 5px rgba(185, 28, 28, .06) !important;
  outline: none;
}

/* Stat strips: white cells, hairline 1px separators, hairline outer ring */
.scenario-metrics,
.dev-stats,
.activator-steps,
.activator-facts,
.activator-live-stats,
.dev-process-steps,
.dir-steps,
.dir-result {
  background: #e5e7eb !important;
  box-shadow: 0 0 0 1px #e5e7eb !important;
}
.scenario-metrics > div,
.dev-stats > div,
.activator-steps > div,
.activator-facts > div,
.activator-live-stats > div,
.dev-process-steps > div,
.dir-steps .dir-step,
.dir-result > div {
  background: #ffffff !important;
  box-shadow: none !important;
}

/* =========================================================
   Buttons: white elevated + inner hairline for definition
   ========================================================= */
.btn,
.landing-header-cta {
  box-shadow:
    inset 0 0 0 1px #e5e7eb,
    0 10px 28px rgba(10, 10, 10, .12) !important;
}
.btn-primary,
.landing-header-cta {
  box-shadow:
    inset 0 0 0 1px #d4d4d4,
    0 14px 34px rgba(10, 10, 10, .16) !important;
}
.btn-ghost,
.btn:not(.btn-primary) {
  box-shadow:
    inset 0 0 0 1px #ececec,
    0 6px 18px rgba(10, 10, 10, .08) !important;
}
.btn:hover,
.landing-header-cta:hover {
  box-shadow:
    inset 0 0 0 1px #b91c1c,
    0 20px 44px rgba(10, 10, 10, .2) !important;
}

/* Keyboard focus */
:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 2px;
  border-radius: 4px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid #b91c1c;
  outline-offset: 2px;
}

/* Project cards: photo header */
.project-photo {
  margin: -22px -22px 16px;
  overflow: hidden;
  background: #f2f2f2;
  border-radius: 16px 16px 0 0;
}
.project-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}
.project-card:hover .project-photo img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .project-card:hover .project-photo img { transform: none; }
}

/* =========================================================
   Photo surfaces
   ========================================================= */
.page-photo {
  margin: 0 auto 26px;
  max-width: 1240px;
  overflow: hidden;
  border-radius: 16px;
  background: #f2f2f2;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}
.page-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.page-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: #fff;
  color: #5f6673;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dir-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}
.landing-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}
.landing-photos figure {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5e7eb;
}
.landing-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.landing-photos figcaption {
  padding: 8px 10px;
  color: #5f6673;
  font-family: var(--mono);
  font-size: .42rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .landing-photos { grid-template-columns: 1fr 1fr; }
  .page-photo img { aspect-ratio: 16 / 9; }
}

/* Nemo integrations chips */
.nemo-integrations { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.nemo-integrations span {
  padding: 5px 9px;
  border-radius: 100px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  color: #5f6673;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* =========================================================
   Instruction algorithm (stages)
   ========================================================= */
.alg { display: grid; gap: 10px; margin-top: 18px; }
.alg-step {
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  overflow: hidden;
}
.alg-step summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}
.alg-step summary::-webkit-details-marker { display: none; }
.alg-num { font-family: var(--mono); font-size: 11px; color: #b91c1c; letter-spacing: .06em; }
.alg-name { font-family: "Geist", "Inter", sans-serif; font-weight: 500; font-size: 15px; letter-spacing: -.01em; }
.alg-where { font-family: var(--mono); font-size: 10px; color: #8a8f98; text-align: right; }
.alg-step[open] summary { border-bottom: 1px solid #f0f0f0; background: #fcfcfb; }
.alg-body {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}
.alg-col h4 {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a8f98;
}
.alg-col ul, .alg-col ol { margin: 0; padding-left: 15px; }
.alg-col li { font-size: 12px; line-height: 1.55; color: #404040; margin-bottom: 4px; }
.alg-col ol li::marker { color: #b91c1c; font-family: var(--mono); font-size: 10px; }
.alg-check { list-style: none; padding-left: 0 !important; }
.alg-check li { position: relative; padding-left: 15px; }
.alg-check li::before { content: "✓"; position: absolute; left: 0; color: #b91c1c; font-size: 11px; }
.alg-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fdf3f2;
  box-shadow: inset 0 0 0 1px #f3d9d6;
  font-size: 11.5px;
  line-height: 1.5;
  color: #5f3c39;
}
.alg-error b { color: #b91c1c; font-weight: 500; }
.alg-status { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.alg-status span {
  padding: 5px 9px;
  border-radius: 100px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  font-family: var(--mono);
  font-size: 10px;
  color: #5f6673;
  text-transform: uppercase;
  letter-spacing: .06em;
}
@media (max-width: 900px) {
  .alg-body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .alg-body { grid-template-columns: 1fr; }
  .alg-step summary { grid-template-columns: 32px minmax(0,1fr); }
  .alg-where { grid-column: 2; text-align: left; margin-top: 2px; }
}
