:root,
html[data-theme="original"] {
    /* Global Finance Command Center — canonical tokens from src/index.css. */
    --background: oklch(0.12 0.01 240);
    --foreground: oklch(0.95 0.02 240);
    --card: oklch(0.16 0.01 240);
    --card-foreground: oklch(0.92 0.01 240);
    --popover: oklch(0.14 0.01 240);
    --popover-foreground: oklch(0.95 0.02 240);
    --primary: oklch(0.70 0.15 240);
    --primary-foreground: oklch(0.10 0.01 240);
    --secondary: oklch(0.20 0.01 240);
    --secondary-foreground: oklch(0.95 0.02 240);
    --muted-surface: oklch(0.18 0.01 240);
    --muted-foreground: oklch(0.55 0.01 240);
    --accent-secondary: oklch(0.70 0.15 285);
    --success: oklch(0.75 0.18 145);
    --destructive: oklch(0.65 0.22 25);
    --warning: oklch(0.75 0.15 75);
    --border: oklch(0.25 0.01 240);
    --input: oklch(0.25 0.01 240);
    --ring: oklch(0.70 0.15 240);

    /* Stable semantic aliases used throughout the public pages. */
    --background-deep: #000;
    --surface: var(--card);
    --surface-raised: var(--secondary);
    --surface-soft: var(--muted-surface);
    --line: var(--border);
    --line-soft: oklch(0.25 0.01 240 / 0.62);
    --text: var(--foreground);
    --text-soft: var(--card-foreground);
    --muted: var(--muted-foreground);
    --accent: var(--primary);
    --accent-bright: oklch(0.76 0.14 240);
    --accent-dark: var(--primary-foreground);
    --control-hover: var(--accent-secondary);
    --danger: var(--destructive);
    --focus: var(--ring);
    --accent-a06: oklch(0.70 0.15 240 / 0.06);
    --accent-a10: oklch(0.70 0.15 240 / 0.10);
    --accent-a16: oklch(0.70 0.15 240 / 0.16);
    --accent-a24: oklch(0.70 0.15 240 / 0.24);
    --accent-a42: oklch(0.70 0.15 240 / 0.42);
    --success-soft: oklch(0.75 0.18 145 / 0.10);
    --success-line: oklch(0.75 0.18 145 / 0.24);
    --warning-soft: oklch(0.75 0.15 75 / 0.10);
    --warning-line: oklch(0.75 0.15 75 / 0.26);
    --danger-soft: oklch(0.65 0.22 25 / 0.10);
    --danger-line: oklch(0.65 0.22 25 / 0.26);
    --overlay: rgb(0 0 0 / 0.68);
    --shadow: 0 18px 54px rgb(0 0 0 / 0.38);

    --shell-width: 1508px;
    --shell-gutter: 24px;
    --header-height: 58px;
    --hero-min-height: 560px;
    --hero-padding: 4.5rem 0;
    --section-padding: 5.5rem 0;
    --panel-radius: 8px;
    --card-radius: 6px;
    --control-radius: 4px;
    --button-height: 36px;
    --button-padding: 0.55rem 0.85rem;
    --body-size: 14px;

    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color-scheme: dark;
}

html[data-theme="current"] {
    /* Archived green theme: retained in the stylesheet, never emitted by the public PHP layout. */
    --background: #07100f;
    --foreground: #edf7f4;
    --card: #0c1716;
    --card-foreground: #edf7f4;
    --popover: #040908;
    --popover-foreground: #edf7f4;
    --primary: #55e6b5;
    --primary-foreground: #05251c;
    --secondary: #11201e;
    --secondary-foreground: #edf7f4;
    --muted-surface: #0f1b1a;
    --muted-foreground: #9aafa9;
    --accent-secondary: #279be0;
    --success: #55e6b5;
    --destructive: #ff8f82;
    --warning: #f3c969;
    --border: #24403b;
    --input: #24403b;
    --ring: #f3c969;

    --background-deep: #040908;
    --surface: var(--card);
    --surface-raised: var(--secondary);
    --surface-soft: var(--muted-surface);
    --line: var(--border);
    --line-soft: rgb(85 230 181 / 0.14);
    --text: var(--foreground);
    --text-soft: #b8cac5;
    --muted: var(--muted-foreground);
    --accent: var(--primary);
    --accent-bright: #7ff0cb;
    --accent-dark: var(--primary-foreground);
    --control-hover: var(--accent-bright);
    --danger: var(--destructive);
    --focus: var(--ring);
    --accent-a06: rgb(85 230 181 / 0.06);
    --accent-a10: rgb(85 230 181 / 0.10);
    --accent-a16: rgb(85 230 181 / 0.16);
    --accent-a24: rgb(85 230 181 / 0.24);
    --accent-a42: rgb(85 230 181 / 0.42);
    --success-soft: rgb(85 230 181 / 0.10);
    --success-line: rgb(85 230 181 / 0.24);
    --warning-soft: rgb(243 201 105 / 0.10);
    --warning-line: rgb(243 201 105 / 0.25);
    --danger-soft: rgb(255 143 130 / 0.10);
    --danger-line: rgb(255 143 130 / 0.26);
    --overlay: rgb(0 0 0 / 0.58);
    --shadow: 0 28px 80px rgb(0 0 0 / 0.32);

    --shell-width: 1180px;
    --shell-gutter: 40px;
    --header-height: 96px;
    --hero-min-height: 680px;
    --hero-padding: 6rem 0;
    --section-padding: 8rem 0;
    --panel-radius: 12px;
    --card-radius: 9px;
    --control-radius: 7px;
    --button-height: 48px;
    --button-padding: 0.78rem 1.15rem;
    --body-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--background-deep);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: var(--background);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--body-size);
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html[data-theme="current"] body {
    background:
        radial-gradient(circle at 76% 8%, rgb(85 230 181 / 0.10), transparent 30rem),
        radial-gradient(circle at 12% 42%, rgb(39 155 224 / 0.06), transparent 34rem),
        var(--background);
}

body::before {
    display: none;
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgb(85 230 181 / 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgb(85 230 181 / 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

html[data-theme="current"] body::before {
    display: block;
}

::selection {
    background: var(--accent);
    color: var(--accent-dark);
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

a:hover {
    color: var(--accent-bright);
}

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

button,
select {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.5;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    border-color: var(--focus);
    outline: 3px solid color-mix(in oklch, var(--focus) 50%, transparent);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 0.85rem;
    transform: translateY(-180%);
    border: 1px solid var(--accent);
    border-radius: var(--control-radius);
    background: var(--accent);
    color: var(--accent-dark);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

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

.site-shell {
    width: min(var(--shell-width), calc(100% - var(--shell-gutter)));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: var(--header-height);
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    background: color-mix(in oklch, var(--background) 88%, transparent);
    backdrop-filter: blur(12px);
}

html[data-theme="current"] .site-header {
    position: relative;
    border-color: var(--line-soft);
    background: transparent;
    backdrop-filter: none;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 800;
}

html[data-theme="current"] .brand-mark {
    width: 42px;
    height: 42px;
    border: 1px solid var(--accent-a42);
    border-radius: 9px;
    background: var(--accent-a10);
    box-shadow: inset 0 0 20px var(--accent-a06);
}

.brand-copy {
    display: grid;
    line-height: 1.08;
}

.brand-copy strong {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.brand-copy small {
    margin-top: 0.18rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

html[data-theme="current"] .brand-copy strong {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    letter-spacing: 0.16em;
}

html[data-theme="current"] .brand-copy small {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}

.site-nav > a {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    border: 1px solid transparent;
    border-radius: var(--control-radius);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"] {
    background: var(--surface-raised);
    color: var(--text);
}

.site-nav > .nav-button {
    border-color: var(--line);
    color: var(--text-soft);
}

.site-nav > .nav-button:hover,
.site-nav > .nav-button[aria-current="page"] {
    border-color: var(--accent-a42);
    background: var(--accent);
    color: var(--accent-dark);
}

html[data-theme="current"] .site-nav {
    gap: 1rem;
}

html[data-theme="current"] .site-nav > a {
    padding-inline: 0.5rem;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
}

.theme-switcher {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 2px;
    margin-left: 0.35rem;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.66rem;
}

.theme-switcher > span {
    padding: 0 0.45rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.theme-switcher a {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: calc(var(--control-radius) - 1px);
    color: var(--muted);
    text-decoration: none;
}

.theme-switcher a:hover {
    color: var(--text);
}

.theme-switcher a[aria-current="true"] {
    background: var(--accent);
    color: var(--accent-dark);
    font-weight: 800;
}

.page-content {
    min-height: calc(100vh - var(--header-height) - 160px);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
}

h1 {
    max-width: 840px;
    margin-bottom: 1.4rem;
    font-size: clamp(2.65rem, 5.3vw, 4.8rem);
    font-weight: 760;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

h1 span {
    color: var(--accent);
}

html[data-theme="current"] h1 {
    margin-bottom: 1.75rem;
    font-size: clamp(3rem, 6.4vw, 5.7rem);
    letter-spacing: -0.065em;
}

.eyebrow,
.panel-kicker {
    margin: 0 0 0.8rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    margin-right: 0.6rem;
    color: var(--muted);
    content: "//";
}

.button {
    display: inline-flex;
    min-height: var(--button-height);
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: var(--button-padding);
    border: 1px solid transparent;
    border-radius: var(--control-radius);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

html[data-theme="current"] .button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: var(--accent-dark);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.08) inset;
}

.button-primary:hover {
    background: var(--accent-bright);
    color: var(--accent-dark);
}

.button-outline,
.button-secondary {
    border-color: var(--line);
    background: color-mix(in oklch, var(--surface-raised) 64%, transparent);
    color: var(--text);
}

.button-outline:hover,
.button-secondary:hover {
    border-color: color-mix(in oklch, var(--control-hover) 58%, var(--line));
    background: var(--surface-raised);
    color: var(--control-hover);
}

.button-ghost {
    background: transparent;
    color: var(--muted);
}

.button-ghost:hover {
    background: var(--surface-raised);
    color: var(--control-hover);
}

.button-danger,
.button-destructive {
    background: var(--danger);
    color: var(--background-deep);
}

.badge,
.status-badge {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
    background: transparent;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-warning,
.status-badge {
    border-color: var(--warning-line);
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-success {
    border-color: var(--success-line);
    background: var(--success-soft);
    color: var(--success);
}

.badge-danger,
.badge-destructive {
    border-color: var(--danger-line);
    background: var(--danger-soft);
    color: var(--danger);
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--warning) !important;
}

.text-destructive,
.state-off {
    color: var(--danger) !important;
}

.terminal-panel {
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    background: var(--surface);
    color: var(--text-soft);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.015) inset;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    min-height: var(--hero-min-height);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: var(--hero-padding);
}

.hero-copy {
    min-width: 0;
}

html[data-theme="current"] .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.72fr);
    gap: clamp(3rem, 7vw, 7rem);
}

.hero-intro,
.page-lead {
    max-width: 680px;
    margin-bottom: 1.8rem;
    color: var(--text-soft);
    font-size: clamp(1rem, 1.45vw, 1.15rem);
    line-height: 1.7;
}

html[data-theme="current"] .hero-intro,
html[data-theme="current"] .page-lead {
    margin-bottom: 2.2rem;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin: 1.6rem 0 0;
    padding: 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.07em;
    list-style: none;
    text-transform: uppercase;
}

.hero-tags li::before {
    margin-right: 0.4rem;
    color: var(--accent);
    content: "+";
}

.status-panel {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

html[data-theme="current"] .status-panel {
    background: linear-gradient(145deg, rgb(17 32 30 / 0.94), rgb(7 16 15 / 0.96));
    box-shadow: var(--shadow);
}

.status-panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    content: "";
    opacity: 0.65;
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--line-soft);
}

.panel-kicker {
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.62rem;
}

.panel-heading h2 {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.status-list,
.compact-list {
    margin: 0;
}

.status-list > div,
.compact-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.82rem 0;
    border-bottom: 1px solid var(--line-soft);
}

.status-list dt,
.status-list dd,
.compact-list dt,
.compact-list dd {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.status-list dt,
.compact-list dt {
    color: var(--muted);
}

.status-list dd,
.compact-list dd {
    color: var(--text);
    font-weight: 700;
    text-align: right;
}

.status-list dd::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.5rem;
    border-radius: 50%;
    background: var(--warning);
    content: "";
    vertical-align: 0.08em;
}

.status-list dd.state-off::before {
    background: currentColor;
}

.panel-note {
    margin: 1.1rem 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.65;
}

.project-snapshot {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.project-snapshot > div {
    display: flex;
    min-height: 96px;
    align-items: baseline;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.6rem 1rem;
}

html[data-theme="current"] .project-snapshot > div {
    min-height: 116px;
    padding: 2rem 1rem;
}

.project-snapshot > div + div {
    border-left: 1px solid var(--line-soft);
}

.snapshot-value {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
}

.snapshot-label {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.67rem;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.content-section {
    padding: var(--section-padding);
    border-bottom: 1px solid var(--line-soft);
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 2rem;
    margin-bottom: 2.4rem;
}

.section-heading-compact {
    grid-template-columns: minmax(0, 760px);
}

.section-heading .eyebrow {
    margin-bottom: 0.65rem;
}

.section-heading h2,
.development-notice h2 {
    max-width: 760px;
    margin-bottom: 0;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    letter-spacing: -0.045em;
    line-height: 1.08;
}

html[data-theme="current"] .section-heading h2,
html[data-theme="current"] .development-notice h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-heading > p {
    margin-bottom: 0.2rem;
    color: var(--muted);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.module-card {
    position: relative;
    display: flex;
    min-height: 240px;
    flex-direction: column;
    grid-column: span 2;
    padding: 1.35rem;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--card-radius);
    background: color-mix(in oklch, var(--surface) 82%, transparent);
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

html[data-theme="current"] .module-card {
    min-height: 270px;
    padding: 1.55rem;
}

.module-card:nth-child(4),
.module-card:nth-child(5) {
    grid-column: span 3;
}

.module-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-a42);
    background: var(--surface-raised);
}

html[data-theme="current"] .module-card:hover {
    transform: translateY(-4px);
}

.module-number {
    margin-bottom: auto;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.module-card h3 {
    margin: 2.4rem 0 0.6rem;
    font-size: 1.18rem;
    letter-spacing: -0.025em;
}

.module-card p {
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.module-state {
    margin-top: auto;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.module-state::before {
    margin-right: 0.5rem;
    content: "[";
}

.module-state::after {
    margin-left: 0.5rem;
    content: "]";
}

.principles {
    padding-bottom: 5.5rem;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--card-radius);
    background: var(--line-soft);
}

.principle-grid article {
    min-height: 220px;
    padding: 1.6rem;
    background: var(--surface);
}

.principle-grid article > span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.66rem;
}

.principle-grid h3 {
    margin: 4rem 0 0.65rem;
    font-size: 1.15rem;
}

.principle-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.development-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1.5rem;
    margin: 4.5rem 0;
    padding: clamp(1.35rem, 3vw, 2.5rem);
    border: 1px solid var(--warning-line);
    border-radius: var(--panel-radius);
    background: linear-gradient(120deg, var(--warning-soft), color-mix(in oklch, var(--surface-raised) 45%, transparent));
}

html[data-theme="current"] .development-notice {
    margin: 6rem 0;
}

.notice-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--warning-line);
    border-radius: 50%;
    color: var(--warning);
    font-family: var(--font-mono);
    font-weight: 900;
}

.development-notice .eyebrow {
    margin-bottom: 0.65rem;
    color: var(--warning);
}

.development-notice .eyebrow::before {
    color: currentColor;
}

.development-notice h2 {
    margin-bottom: 0.9rem;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.development-notice p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
}

.development-notice a {
    color: var(--text);
    font-weight: 700;
}

.compact-notice {
    margin-block: 3rem;
}

/* Inner public pages. */
.page-hero {
    min-height: 340px;
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid var(--line-soft);
}

.page-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.page-hero:not(.page-hero-split) .page-lead {
    margin-bottom: 0;
}

.page-section {
    padding-block: 4.5rem;
}

.compact-panel,
.contact-card {
    padding: 1.35rem;
}

.compact-panel > p:not(.panel-kicker) {
    color: var(--muted);
    font-size: 0.78rem;
}

.compact-panel > p > a {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
}

.contact-card > a {
    display: inline-block;
    margin: 0.25rem 0 1rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
}

.contact-card > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.gateway-grid,
.status-dashboard,
.info-grid,
.metric-grid,
.dashboard-grid,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 2.5rem 0;
}

.gateway-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.gateway-card {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    padding: 1.25rem;
}

.gateway-card h2 {
    margin: 2rem 0 0.5rem;
    font-size: 1.1rem;
}

.gateway-card p {
    margin-bottom: 1.25rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.gateway-card .button {
    align-self: flex-start;
    margin-top: auto;
}

.info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
}

.info-grid article,
.metric-card {
    min-height: 190px;
    padding: 1.35rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--card-radius);
    background: var(--surface);
}

.info-grid article > span,
.metric-card > span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
}

.info-grid h2,
.metric-card h2,
.metric-card h3 {
    margin: 2.3rem 0 0.55rem;
    font-size: 1.1rem;
}

.info-grid p,
.metric-card p {
    color: var(--muted);
    font-size: 0.82rem;
}

.info-grid a {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.domain-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    background: var(--surface);
}

.domain-list article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 92px;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line-soft);
    transition: background-color 150ms ease;
}

.domain-list article:last-child {
    border-bottom: 0;
}

.domain-list article:hover {
    background: var(--accent-a06);
}

.domain-list article > span,
.domain-list article > strong {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.domain-list h3,
.domain-list p {
    margin-bottom: 0;
}

.domain-list h3 {
    font-size: 1rem;
}

.domain-list p {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.phase-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    background: var(--surface);
    list-style: none;
}

.phase-track li {
    display: grid;
    min-height: 135px;
    align-content: space-between;
    gap: 0.5rem;
    padding: 1.15rem;
    border-right: 1px solid var(--line-soft);
}

.phase-track li:last-child {
    border-right: 0;
}

.phase-track span,
.phase-track small {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    text-transform: uppercase;
}

.phase-track strong {
    font-size: 0.9rem;
}

.phase-track .phase-active {
    background: var(--accent-a10);
    box-shadow: inset 0 2px var(--accent);
}

.phase-track .phase-active span,
.phase-track .phase-active small {
    color: var(--accent);
}

.status-dashboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
    min-height: 170px;
    padding: 1.2rem;
}

.service-card > div {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.6rem;
}

.service-card h2,
.service-card strong,
.service-card p {
    margin: 0;
}

.service-card h2,
.service-card strong {
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.service-card p {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.service-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--muted);
}

.service-ok {
    background: var(--success);
    box-shadow: 0 0 0 4px var(--success-soft);
}

.service-warn {
    background: var(--warning);
    box-shadow: 0 0 0 4px var(--warning-soft);
}

.service-off {
    background: var(--danger);
    box-shadow: 0 0 0 4px var(--danger-soft);
}

.environment-table,
.terminal-table,
.data-table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    background: var(--surface);
}

.table-row {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
    min-width: 620px;
    border-bottom: 1px solid var(--line-soft);
}

.table-row:last-child {
    border-bottom: 0;
}

.table-row > * {
    margin: 0;
    padding: 0.75rem 1rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-style: normal;
}

.table-row > strong {
    color: var(--text);
}

.table-head {
    position: sticky;
    z-index: 2;
    top: var(--header-height);
    background: var(--surface);
}

.table-head > * {
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table-wrap,
.environment-table {
    overflow-x: auto;
}

/* Forms, authentication placeholders and account screens. */
form {
    margin: 0;
}

label,
legend {
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    min-height: 38px;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--input);
    border-radius: var(--control-radius);
    background: color-mix(in oklch, var(--background) 72%, transparent);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.015) inset;
}

textarea {
    min-height: 128px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

input[type="checkbox"],
input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--accent);
}

.auth-layout,
.auth-shell,
.form-shell,
.centered-panel {
    display: grid;
    min-height: clamp(520px, 70vh, 760px);
    place-items: center;
    padding: 3.5rem 0;
}

.auth-card,
.form-card,
.access-panel,
.locked-panel,
.empty-state,
.error-panel {
    width: min(100%, 540px);
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-card h1,
.form-card h1,
.error-panel h1 {
    margin-bottom: 0.75rem;
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.auth-card > p,
.form-card > p,
.empty-state > p,
.error-panel > p {
    color: var(--muted);
}

.auth-form,
.form-grid,
.field-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-field,
.field,
.field-group {
    display: grid;
    gap: 0.4rem;
}

.form-help,
.field-help,
.field-note,
.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.checkbox-row,
.form-check,
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.checkbox-row label,
.form-check label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-family: var(--font-sans);
    font-weight: 400;
}

.form-actions,
.auth-actions,
.panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.auth-links,
.form-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line-soft);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.form-alert,
.security-note,
.status-notice,
.callout {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--warning-line);
    border-radius: var(--card-radius);
    background: var(--warning-soft);
    color: var(--text-soft);
    font-size: 0.78rem;
}

.form-alert.is-error,
.alert-error,
.callout-danger {
    border-color: var(--danger-line);
    background: var(--danger-soft);
}

.form-alert.is-success,
.alert-success,
.callout-success {
    border-color: var(--success-line);
    background: var(--success-soft);
}

/* Dashboard and administration scaffolding. */
.workspace-header,
.dashboard-header,
.admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0 1.25rem;
    border-bottom: 1px solid var(--line);
}

.workspace-header h1,
.dashboard-header h1,
.admin-header h1 {
    margin-bottom: 0;
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.04em;
}

.dashboard-grid,
.admin-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dashboard-grid > *,
.admin-grid > * {
    grid-column: span 4;
}

.dashboard-card,
.admin-card,
.data-panel,
.widget {
    min-height: 180px;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: var(--surface);
}

.dashboard-card h2,
.admin-card h2,
.data-panel h2,
.widget h2 {
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.admin-nav,
.subnav,
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: var(--control-radius);
    background: var(--muted-surface);
}

.admin-nav a,
.subnav a,
.tabs a,
.tab {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: var(--control-radius);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"],
.subnav a:hover,
.subnav a[aria-current="page"],
.tabs a:hover,
.tabs a[aria-current="page"],
.tab[aria-selected="true"] {
    background: var(--surface-raised);
    color: var(--text);
}

/* Legal, policy, security and error content. */
.document-layout,
.legal-layout,
.policy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
    align-items: start;
    gap: 2rem;
    padding: 3.5rem 0;
}

.prose,
.document,
.legal-content,
.policy-content,
.article-stack,
.content-stack {
    max-width: 820px;
}

.prose > section,
.document > section,
.legal-content > section,
.policy-content > section,
.legal-section,
.content-card {
    margin-bottom: 0.75rem;
    padding: 1.35rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--card-radius);
    background: var(--surface);
}

.prose h2,
.document h2,
.legal-content h2,
.policy-content h2,
.legal-section h2,
.content-card h2 {
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
}

.prose h3,
.document h3,
.legal-content h3,
.policy-content h3 {
    margin: 1.4rem 0 0.5rem;
    font-size: 0.95rem;
}

.prose p,
.prose li,
.document p,
.document li,
.legal-content p,
.legal-content li,
.policy-content p,
.policy-content li,
.legal-section p,
.content-card p {
    color: var(--muted);
}

.prose a,
.document a,
.legal-content a,
.policy-content a {
    color: var(--accent);
}

.toc,
.document-nav,
.legal-nav {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: var(--surface);
}

.toc a,
.document-nav a,
.legal-nav a {
    display: block;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-decoration: none;
}

.toc a:last-child,
.document-nav a:last-child,
.legal-nav a:last-child {
    border-bottom: 0;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(170px, 0.55fr) minmax(340px, 1fr) minmax(300px, 0.8fr);
    align-items: end;
    gap: 2rem;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--line-soft);
}

.footer-brand {
    margin-bottom: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-brand span {
    color: var(--muted);
}

.site-footer p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 1rem;
}

.footer-nav a {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
    color: var(--text);
}

.risk-disclaimer {
    max-width: 520px;
    justify-self: end;
    text-align: right;
}

@media (max-width: 1100px) {
    .site-header {
        grid-template-columns: auto 1fr;
    }

    .site-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-bottom: 0.6rem;
    }

    .theme-switcher {
        justify-self: end;
    }

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

    .site-footer {
        grid-template-columns: minmax(170px, 0.6fr) minmax(0, 1fr);
    }

    .risk-disclaimer {
        grid-column: 1 / -1;
        max-width: none;
        justify-self: start;
        text-align: left;
    }
}

@media (max-width: 900px) {
    .hero,
    .page-hero-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        min-height: auto;
        padding: 4rem 0;
    }

    .status-panel,
    .compact-panel,
    .contact-card {
        width: min(100%, 660px);
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

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

    .module-card,
    .module-card:nth-child(4),
    .module-card:nth-child(5) {
        grid-column: span 1;
    }

    .module-card:last-child {
        grid-column: 1 / -1;
    }

    .principle-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .principle-grid article,
    .info-grid article {
        min-height: 180px;
    }

    .principle-grid h3,
    .info-grid h2 {
        margin-top: 2.8rem;
    }

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

    .phase-track li {
        border-bottom: 1px solid var(--line-soft);
    }

    .phase-track li:nth-child(2n) {
        border-right: 0;
    }

    .phase-track li:last-child {
        grid-column: 1 / -1;
        border-bottom: 0;
    }

    .dashboard-grid > *,
    .admin-grid > * {
        grid-column: span 6;
    }

    .document-layout,
    .legal-layout,
    .policy-layout {
        grid-template-columns: 1fr;
    }

    .toc,
    .document-nav,
    .legal-nav {
        position: static;
    }
}

@media (max-width: 680px) {
    :root,
    html[data-theme="original"],
    html[data-theme="current"] {
        --shell-gutter: 28px;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 70px;
    }

    .brand-copy small,
    .theme-switcher > span {
        display: none;
    }

    .theme-switcher {
        margin-left: 0;
    }

    .site-nav {
        max-width: calc(100vw - var(--shell-gutter));
        overflow-x: auto;
        padding-bottom: 0.55rem;
        scrollbar-width: thin;
    }

    .site-nav > a {
        flex: 0 0 auto;
    }

    h1,
    html[data-theme="current"] h1 {
        font-size: clamp(2.45rem, 13vw, 3.7rem);
    }

    .hero,
    .page-hero,
    .page-hero-split {
        padding: 3.5rem 0;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .project-snapshot {
        grid-template-columns: 1fr;
    }

    .project-snapshot > div,
    html[data-theme="current"] .project-snapshot > div {
        min-height: 78px;
        justify-content: flex-start;
        padding: 1rem 0.5rem;
    }

    .project-snapshot > div + div {
        border-top: 1px solid var(--line-soft);
        border-left: 0;
    }

    .content-section,
    .page-section {
        padding: 4rem 0;
    }

    .module-grid,
    .gateway-grid,
    .status-dashboard,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .module-card,
    .module-card:last-child {
        grid-column: auto;
        min-height: 215px;
    }

    .development-notice {
        grid-template-columns: 1fr;
        margin: 3.5rem 0;
    }

    .domain-list article {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .domain-list article > strong {
        grid-column: 2;
    }

    .phase-track {
        grid-template-columns: 1fr;
    }

    .phase-track li,
    .phase-track li:nth-child(2n) {
        min-height: 105px;
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .phase-track li:last-child {
        grid-column: auto;
    }

    .dashboard-grid > *,
    .admin-grid > * {
        grid-column: 1 / -1;
    }

    .workspace-header,
    .dashboard-header,
    .admin-header,
    .checkbox-row,
    .form-options {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-actions,
    .auth-actions,
    .panel-actions,
    .form-actions .button,
    .auth-actions .button,
    .panel-actions .button {
        width: 100%;
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .footer-nav {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (forced-colors: active) {
    .service-dot,
    .status-list dd::before {
        border: 1px solid currentColor;
    }
}
