:root { color-scheme: dark; --bg: #0c0e10; --panel: #131619; --surface: #1b1f23; --border: #30363c; --text: #f1f4f5; --muted: #a2adb7; --accent: #71e0b4; --warning: #f4bd78; --danger: #ffaaa9; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; font-feature-settings: "cv01", "ss03"; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { min-height: 44px; padding: 9px 15px; color: var(--text); background: #20252a; border: 1px solid #414b53; border-radius: 7px; cursor: pointer; font-weight: 550; line-height: 1.4; transition: background .15s, border-color .15s; }
button:hover:not(:disabled) { background: #2b3238; border-color: #7a8893; }
button:disabled { color: #a1aab2; background: #1b1f23; border-color: #343b42; cursor: not-allowed; }
button.primary { color: #09261b; background: var(--accent); border-color: var(--accent); }
button.primary:hover:not(:disabled) { background: #9ceacb; border-color: #9ceacb; }
button.warning { color: var(--warning); border-color: #886239; background: #2b241b; }
button.danger { color: var(--danger); border-color: #87504f; background: #2d1e20; }
button.primary:disabled, button.warning:disabled, button.danger:disabled { color: #a1aab2; background: #1b1f23; border-color: #343b42; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
a { color: var(--accent); text-underline-offset: 4px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.25; font-weight: 590; letter-spacing: -.7px; overflow-wrap: anywhere; }
h2 { font-size: 1.05rem; line-height: 1.4; font-weight: 590; }
p + p { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.eyebrow { color: var(--muted); font-size: .72rem; letter-spacing: .14em; font-weight: 590; margin-bottom: 8px; }
.full-width { width: 100%; }
label { display: block; font-weight: 550; margin-bottom: 8px; }
input, select, textarea { width: 100%; min-width: 0; color: var(--text); background: #0d1012; border: 1px solid #57616a; border-radius: 7px; padding: 12px; font-size: 16px; }
input:disabled, textarea:disabled, select:disabled { color: #a2adb7; background: #14181b; border-color: var(--border); cursor: not-allowed; opacity: 1; }
select { max-width: 360px; min-height: 46px; }
textarea { resize: vertical; min-height: 320px; font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: .88rem; line-height: 1.7; tab-size: 2; }
.notice { padding: 12px 14px; background: #181d21; border: 1px solid #384149; border-radius: 7px; font-size: .9rem; overflow-wrap: anywhere; }
[data-tone="success"] { color: #a0eacb; border-color: #39765d; background: #14251f; }
[data-tone="warning"] { color: #f4c78f; border-color: #7c603e; background: #292219; }
[data-tone="danger"] { color: #ffb9b8; border-color: #87504f; background: #2b1c1e; }
.brand { color: var(--text); text-decoration: none; font-weight: 590; display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 36px; border: 1px solid #58947c; border-radius: 7px; background: #182b24; color: #9ae6c8; font-weight: 590; font-size: 1.2rem; }
.site-header { border-bottom: 1px solid var(--border); background: #111416; }
.header-inner { max-width: 1224px; margin: auto; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-actions { display: flex; gap: 20px; align-items: center; }
.private-label { display: none; color: var(--muted); font-size: .85rem; }
.shell { width: min(100%, 1224px); margin-inline: auto; padding: 24px 20px; }
.page-heading { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.page-heading h1 + p { margin-top: 7px; }
.status-summary { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 11px; border: 1px solid #47525c; border-radius: 999px; font-size: .85rem; font-weight: 550; max-width: 100%; }
.status-pill::before { content: ""; background: currentColor; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; flex-shrink: 0; }
.section-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 22px 0; padding-bottom: 10px; }
.section-nav button { background: transparent; border-color: transparent; color: var(--muted); padding-inline: 12px; font-size: .9rem; }
.section-nav button[aria-pressed="true"] { background: #1b2b25; border-color: #3d6c57; color: #a0eacb; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric { min-width: 0; background: var(--panel); padding: 17px 15px; border: 1px solid var(--border); border-radius: 9px; }
.metric h2 { font-size: .8rem; color: #b3bec7; font-weight: 500; }
.metric > p { font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 550; letter-spacing: -.4px; margin: 6px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.overview-grid { display: grid; gap: 16px; }
.panel { min-width: 0; border: 1px solid var(--border); background: var(--panel); border-radius: 9px; padding: 20px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.panel-heading h2 + p { margin-top: 5px; }
.panel-heading > button { font-size: .85rem; }
.panel > p.muted { font-size: .9rem; }
.facts { margin: 0 0 18px; }
.facts > div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #282f35; padding: 10px 0; font-size: .9rem; }
.facts > div:first-child { padding-top: 0; }
.facts dt { color: var(--muted); flex: 0 0 42%; }
.facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.control-buttons { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 15px; }
.control-buttons button { flex: 1 1 145px; }
.logs-panel { margin-top: 16px; }
.log-output { margin: 0; min-height: 185px; max-height: 440px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #0c0f11; border: 1px solid #2f3941; border-radius: 6px; padding: 15px; color: #c5ced6; font: .8rem/1.85 ui-monospace, "SFMono-Regular", Consolas, monospace; }
.job-banner { margin-top: 12px; background: var(--panel); border: 1px solid #627367; border-radius: 7px; padding: 12px; }
.job-banner p { border-radius: 4px; padding: 8px; overflow-wrap: anywhere; font-size: .9rem; }
.job-banner button { margin-top: 10px; }
#view-config > .notice { margin: 16px 0; }
#config-security { margin-top: 10px; overflow-wrap: anywhere; }
.editor-footer, .backup-toolbar { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 20px; }
.backup-toolbar { margin-top: 0; margin-bottom: 20px; }
#backups-message { margin: 18px 0; }
.backup-list { list-style: none; padding: 0; margin: 0; }
.backup-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 0; border-top: 1px solid var(--border); }
.backup-list li > div { min-width: 0; flex: 1 1 220px; }
.backup-list strong, .backup-list span { display: block; overflow-wrap: anywhere; }
.backup-list strong { font-size: .9rem; font-weight: 550; }
.backup-list button { font-size: .85rem; }
.site-footer { color: #a2adb7; display: flex; flex-wrap: wrap; gap: 8px; font-size: .8rem; padding-top: 12px; padding-bottom: 30px; }
.site-footer > .muted { flex-basis: 100%; }
.skip-link { position: absolute; left: 20px; top: -100px; background: #1b2b25; padding: 12px; z-index: 2; border-radius: 6px; }
.skip-link:focus { top: 10px; }
.login-page { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; min-height: 100svh; padding: 28px 20px; }
.login-card { width: min(100%, 430px); padding: 28px 24px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.login-card > .brand-mark { width: 42px; height: 46px; margin-bottom: 26px; font-size: 1.55rem; }
.login-card h1 { font-size: 1.75rem; }
.login-card h1 + p { margin-top: 10px; font-size: .93rem; }
.login-card form { margin: 28px 0 18px; }
.login-card form button { margin-top: 16px; }
.login-card label { font-size: .9rem; }
.login-card #session-retry { margin-top: 12px; width: 100%; }
.login-foot { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 26px; font-size: .8rem; }
.login-footer { display: flex; gap: 8px; margin-top: 24px; color: var(--muted); font-size: .8rem; }
@media (min-width: 640px) { .shell { padding: 32px; } .header-inner { padding-inline: 32px; } .private-label { display: inline; } .page-heading { flex-direction: row; justify-content: space-between; align-items: center; } .status-summary { align-items: flex-end; text-align: right; } .editor-footer, .backup-toolbar { flex-direction: row; align-items: center; justify-content: space-between; } .editor-footer p { max-width: 70%; } .editor-footer button { flex-shrink: 0; } .login-card { padding: 36px; } }
@media (min-width: 900px) { .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } .metric { padding: 20px; } .overview-grid { grid-template-columns: 1fr 1fr; } .panel { padding: 24px; } .site-footer > .muted { flex-basis: auto; margin-left: auto; } }
@media (max-width: 359px) { .shell, .header-inner { padding-inline: 12px; } .panel { padding: 15px; } .metric { padding: 14px 12px; } .section-nav button { padding-inline: 10px; } .brand { font-size: 1rem; } .header-actions button { padding-inline: 10px; } }
.config-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.config-toolbar > div { min-width: 0; }
.config-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.config-modes button { font-size: .88rem; }
.config-modes button[aria-pressed="true"] { color: #a0eacb; border-color: #3d6c57; background: #1b2b25; }
.config-explanation { margin: 14px 0; max-width: 88ch; }
.pending-configs { margin-top: 12px; }
#config-state { margin-top: 18px; }
.config-save-buttons { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
#config-restart-hint { margin-top: 10px; overflow-wrap: anywhere; }
.editor-footer > #config-save-hint { flex: 1 1 240px; max-width: 64ch; }
.editor-footer { flex-wrap: wrap; }
.basic-fields > section { margin: 26px 0; }
.basic-fields h3 { margin: 0 0 12px; font-size: 1rem; }
.basic-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.basic-card { min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 16px; background: #111518; }
.basic-card > label { margin-bottom: 5px; }
.basic-card > p { overflow-wrap: anywhere; }
.basic-input-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 14px 0 8px; }
.basic-input-row input, .basic-input-row select { width: auto; flex: 1 1 120px; min-width: 0; }
.basic-input-row input[aria-invalid="true"] { border-color: var(--danger); }
.basic-reset { font-size: .8rem; padding-inline: 10px; }
.basic-source { font-size: .75rem; }
#basic-error { margin-top: 14px; }
#config-advanced { margin-top: 20px; }
@media (min-width: 760px) { .basic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
