:root {
    color-scheme: dark;
    --ink: #f4f0e8;
    --muted: #aaa79f;
    --surface: #171817;
    --surface-2: #202220;
    --line: #353832;
    --gold: #e6be55;
    --gold-2: #ffe29a;
    --green: #73d29a;
    --red: #ed7777;
    --bg: #0c0d0c;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 80% 0%, #292811 0, transparent 32rem), var(--bg); }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: white; }
header, footer { width: min(1120px, calc(100% - 36px)); margin: auto; display: flex; align-items: center; justify-content: space-between; }
header { min-height: 78px; border-bottom: 1px solid var(--line); }
footer { min-height: 72px; margin-top: 60px; color: var(--muted); border-top: 1px solid var(--line); }
nav { display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 750; letter-spacing: .02em; }
.mark { display: grid; place-items: center; width: 38px; height: 38px; color: #111; background: var(--gold); border-radius: 50% 50% 48% 52% / 52% 48% 52% 48%; font-family: Georgia, serif; font-size: 23px; }
main { width: min(1120px, calc(100% - 36px)); margin: 64px auto 0; }
.hero { min-height: 520px; display: grid; grid-template-columns: 1.55fr .75fr; align-items: center; gap: 70px; }
.hero h1, .page-head h1, .panel h1 { margin: 12px 0 18px; max-width: 800px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 6vw, 5.4rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.panel h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; }
.hero p, .page-head p, .panel p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 800; }
.signal-card { min-height: 300px; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(145deg, #2f2e16, #171817 60%); border: 1px solid #504a24; box-shadow: 0 30px 80px #0008; }
.signal-card strong { margin-top: 12px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button, button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 3px; font: inherit; font-weight: 700; cursor: pointer; }
.button.primary { color: #16130a; background: var(--gold); border-color: var(--gold); }
.button:hover { color: white; border-color: #777; }
.button.primary:hover { color: #000; background: var(--gold-2); }
.panel { padding: 30px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); box-shadow: 0 24px 70px #0005; }
.panel.narrow { max-width: 620px; margin: 100px auto; }
.panel.success { border-color: #37694b; }
.page-head { margin-bottom: 30px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.grid { display: grid; gap: 22px; margin-bottom: 22px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 18px; }
label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .9rem; font-weight: 700; }
input, select { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); background: #0d0e0d; border: 1px solid var(--line); border-radius: 3px; font: inherit; }
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
input.code { text-transform: uppercase; letter-spacing: .24em; font-size: 1.3rem; font-weight: 800; }
.notice { margin-top: 24px; padding: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.notice.warning { border-color: #7a6731; }
.status { margin: 24px 0; padding: 18px; display: flex; justify-content: space-between; background: #101110; border-left: 3px solid var(--line); }
.status.good { border-color: var(--green); }
.status.muted { color: var(--muted); }
.inline { display: inline; margin: 0; }
button.link { padding: 0; color: var(--gold-2); background: none; border: 0; font: inherit; cursor: pointer; }
button.link.danger { color: var(--red); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
td.empty { padding: 34px 12px; color: var(--muted); text-align: center; }

@media (max-width: 760px) {
    header { min-height: 66px; }
    nav { gap: 12px; font-size: .9rem; }
    main { margin-top: 34px; }
    .hero, .grid.two { grid-template-columns: 1fr; }
    .hero { gap: 34px; }
    .signal-card { min-height: 220px; }
    .panel { padding: 22px; }
}

