/* EngineCore suite palette. These variables are presentation-only. */
:root {
    color-scheme: light;
    --page-background: #edf0f4;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-soft: #f4f6f9;
    --control: #ffffff;
    --charcoal: #182638;
    --charcoal-soft: #102438;
    --text: #182638;
    --text-muted: #607083;
    --border: #d9e1ea;
    --border-strong: #9eacbc;
    --accent: #1674d1;
    --accent-hover: #0e60b2;
    --accent-text: #fff;
    --accent-soft: #e9f2fd;
    --focus-ring: #1674d1;
    --shadow: 0 4px 18px rgba(26, 40, 50, .045);
    --radius: 12px;
}
:root[data-theme="smoke"] {
    --page-background: #aeb5bd;
    --surface: #dfe4e9;
    --surface-strong: #eef1f5;
    --surface-soft: #cbd2da;
    --control: #eef1f5;
    --text: #182638;
    --text-muted: #42566d;
    --border: #96a3b2;
    --border-strong: #778ba1;
    --accent: #1674d1;
    --accent-hover: #0e60b2;
    --accent-soft: #c5d9ef;
    --focus-ring: #1674d1;
}
:root[data-theme="graphite"] {
    color-scheme: dark;
    --page-background: #242c36;
    --surface: #354150;
    --surface-strong: #2c3745;
    --surface-soft: #2c3745;
    --control: #2c3745;
    --charcoal: #edf3fa;
    --charcoal-soft: #bac8d7;
    --text: #edf3fa;
    --text-muted: #bac8d7;
    --border: #546579;
    --border-strong: #8799ae;
    --accent: #8fc6ff;
    --accent-hover: #b2dbff;
    --accent-text: #132b3d;
    --accent-soft: #2b4d6a;
    --focus-ring: #8fc6ff;
    --error-background: #593b3d;
    --error-border: #c88787;
    --error-text: #ffdedc;
}
html { font-family: "Segoe UI", Arial, sans-serif; scroll-behavior: smooth; }
body { line-height: 1.5; }
span { color: inherit; }
a { color: var(--accent); text-underline-offset: 3px; }
button { background: var(--accent); color: var(--accent-text); font-weight: 650; }
button:hover { background: var(--accent-hover); }
button:disabled { opacity: .5; cursor: not-allowed; }
button:disabled:hover { background: var(--accent); }
input, select, textarea { accent-color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-color: var(--accent); }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 12px 16px; background: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.suite-header { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; min-height: 84px; padding: 16px max(24px, calc((100vw - 1440px) / 2)); background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); }
.suite-brand { display: flex; gap: 11px; align-items: center; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--accent-text); font-size: 27px; font-weight: 800; letter-spacing: -2px; padding-right: 2px; }
.brand-name { display: block; font-size: 15px; font-weight: 800; letter-spacing: .09em; line-height: 1.2; }
.brand-name small { display: block; margin-top: 5px; font-size: 10px; color: var(--text-muted); font-weight: 500; letter-spacing: .035em; }
.suite-nav { display: flex; align-self: stretch; align-items: center; gap: 6px; }
.suite-nav a { padding: 9px 13px; color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; border-radius: 7px; }
.suite-nav a:hover { background: var(--surface-soft); color: var(--text); }
.suite-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.suite-tools { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.theme-control { margin: 0; width: 155px; font-size: 10px; font-weight: 400; }
.theme-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text-muted); }
.theme-label strong { font-weight: 650; color: var(--text); }
.theme-control input[type="range"] { display: block; width: 100%; min-height: 24px; height: 24px; margin: 0; padding: 0; cursor: pointer; border: 0; background: transparent; }
.signout-link { color: var(--text-muted); font-size: 12px; text-decoration: none; white-space: nowrap; }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.login-shell { width: min(1040px, calc(100% - 48px)); margin: 64px auto; display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; }
.login-story h1 { margin: 0 0 20px; max-width: 500px; font-size: clamp(32px, 4vw, 48px); font-weight: 650; line-height: 1.1; letter-spacing: -.045em; }
.login-story > p:not(.eyebrow) { max-width: 420px; font-size: 16px; color: var(--text-muted); line-height: 1.65; }
.login-principles { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--text-muted); }
.login-principles li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--accent); }
.login-card { padding: 34px; border-radius: 16px; box-shadow: 0 12px 32px rgba(24, 40, 55, .07); }
.login-card h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.025em; }
.login-card .subtitle { font-size: 13px; line-height: 1.6; margin-bottom: 26px; }
.login-card label { font-size: 12px; margin-bottom: 8px; }
.login-card input { font-size: 15px; background: var(--control); border-color: var(--border); border-radius: 8px; }
.login-card button { margin-top: 6px; border-radius: 8px; font-size: 14px; }
.login-note { margin: 20px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.suite-footer { width: min(1440px, calc(100% - 48px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 28px auto; color: var(--text-muted); font-size: 11px; }
.session-bar { background: var(--surface-soft); color: var(--text); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.65; }
@media (max-width: 900px) {
    .suite-header { gap: 16px; padding: 16px 20px; }
    .suite-nav { order: 3; width: 100%; }
    .suite-nav a { flex: 1; text-align: center; }
    .login-shell { grid-template-columns: 1fr; gap: 26px; max-width: 560px; margin-top: 36px; }
    .login-story h1 { font-size: 34px; }
    .login-principles { margin-top: 16px; }
}
@media (max-width: 520px) {
    .suite-header { padding: 14px 16px; gap: 16px 10px; }
    .brand-name { font-size: 12px; }
    .brand-mark { width: 34px; height: 34px; font-size: 23px; }
    .brand-name small { font-size: 9px; }
    .suite-tools { gap: 12px; }
    .theme-control { width: 130px; }
    .theme-label { font-size: 9px; }
    .signout-link { display: none; }
    .login-shell { width: calc(100% - 32px); }
    .login-card { padding: 24px; }
    .suite-footer { width: calc(100% - 32px); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
