:root {
    --ink: #211f1b;
    --muted: #6f6a61;
    --line: #d9d3c8;
    --paper: #f7f4ed;
    --surface: #fbfaf6;
    --accent: #8d6448;
    --accent-deep: #684733;
    --sage: #667061;
    --good: #476c56;
    --bad: #9a4d45;
    --shadow: 0 18px 52px rgba(42, 35, 28, .13);
    --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.topbar {
    height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid rgba(101, 93, 82, .16);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.brand img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(64, 54, 45, .15); }
.brand span { font-size: 18px; letter-spacing: -.04em; }
.brand strong { font-weight: 760; }
.brand em { color: var(--accent); font-style: normal; font-weight: 520; }
.topbar nav { display: flex; align-items: center; gap: 28px; }
.topbar nav a { color: var(--muted); font-size: 13px; transition: color .2s ease; }
.topbar nav a:hover, .topbar nav a.active { color: var(--ink); }
.topbar nav a.active { position: relative; }
.topbar nav a.active::after { content: ""; position: absolute; left: 50%; bottom: -11px; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; transform: translateX(-50%); }
.account-link { justify-self: end; font-size: 13px; color: var(--muted); }
.account-link > a:not(.quiet-button) { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

main { min-height: calc(100vh - 136px); }
.hero { min-height: 540px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 90px; padding: 64px 2vw 56px; }
.eyebrow, .section-kicker { color: var(--accent); font-size: 11px; line-height: 1.4; font-weight: 720; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 5px rgba(71, 108, 86, .1); }
.live-dot.muted { background: #9c958a; box-shadow: none; }
.hero h1, .auth-intro h1, .downloads-hero h1, .not-found h1 {
    margin: 26px 0 22px;
    font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
    font-size: clamp(48px, 5vw, 68px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -.055em;
}
.hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 26px; }
.primary-button, .quiet-button, .text-button, .copy-button, button {
    border: 0;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.primary-button {
    display: inline-flex; justify-content: center; align-items: center;
    min-height: 44px; padding: 0 21px; border-radius: 8px;
    color: #fff; background: var(--ink); font-size: 14px; font-weight: 660;
}
.primary-button:hover { background: var(--accent-deep); transform: translateY(-1px); }
.primary-button.wide { width: 100%; }
.text-button { color: var(--muted); font-size: 14px; }
.text-button span { display: inline-block; margin-left: 7px; transition: transform .2s ease; }
.text-button:hover { color: var(--ink); }
.text-button:hover span { transform: translateX(4px); }
.quiet-button, .copy-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 17px;
    color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; font-size: 12px;
}
.quiet-button:hover, .copy-button:hover { border-color: var(--accent); color: var(--accent-deep); }

.hero-portrait { position: relative; justify-self: center; width: min(320px, 100%); aspect-ratio: 1; display: grid; place-items: center; padding: 12px; background: #e8e3d9; border: 1px solid var(--line); border-radius: 10px; }
.hero-portrait::before, .hero-portrait::after { content: none; }
.hero-portrait > img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; filter: saturate(.82) contrast(.98); }
.portrait-note { position: absolute; right: -12px; bottom: 18px; z-index: 3; min-width: 136px; padding: 12px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.portrait-note span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.portrait-note strong { display: block; margin-top: 5px; color: var(--good); font-size: 13px; letter-spacing: .08em; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stat-card { min-height: 142px; padding: 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; font-variant-numeric: tabular-nums; }
.stat-card:first-child { border-left: 0; }
.stat-card.featured { background: var(--ink); color: #fff; }
.stat-card > span { color: var(--muted); font-size: 12px; }
.stat-card.featured > span, .stat-card.featured small { color: #aaa69e; }
.stat-card strong { display: block; margin-top: 15px; font-family: Georgia, serif; font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.035em; }
.stat-card small { color: var(--muted); font-size: 11px; }

.split-section { margin: 104px 2vw 96px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 96px; }
.split-section h2, .launch-panel h2, .section-heading h2, .instructions h2 {
    margin: 18px 0 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.25; font-weight: 500; letter-spacing: -.04em;
}
.feature-list article { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 27px 0; border-top: 1px solid var(--line); }
.feature-list article:first-child { border-top: 0; padding-top: 0; }
.feature-list article > span { color: var(--accent); font-family: Georgia, serif; font-size: 14px; }
.feature-list h3 { margin: 0 0 9px; font-size: 17px; font-weight: 680; }
.feature-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.validator-strip { margin-bottom: 28px; padding: 30px 34px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 28px; background: #e9e4da; border-radius: var(--radius); }
.validator-strip > div span, .validator-strip > div strong { display: block; }
.validator-strip > div span { margin-bottom: 7px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.validator-strip > div strong { font-size: 14px; }
.validator-strip p { margin: 0; padding-left: 28px; border-left: 1px solid #cec6b8; color: var(--muted); font-size: 12px; line-height: 1.7; }
.security-note { margin-bottom: 110px; padding: 22px 28px; display: grid; grid-template-columns: 110px 1fr; gap: 20px; border: 1px solid rgba(154, 77, 69, .2); border-radius: 16px; background: rgba(255,255,255,.35); }
.security-note strong { color: var(--bad); font-size: 12px; }
.security-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.toast-stack { position: fixed; z-index: 80; top: 82px; right: max(20px, calc((100vw - 1240px) / 2)); width: min(390px, calc(100vw - 32px)); display: grid; gap: 11px; pointer-events: none; }
.toast { position: relative; min-height: 72px; display: grid; grid-template-columns: 34px 1fr 26px; align-items: center; gap: 12px; overflow: hidden; padding: 13px 12px 13px 15px; color: var(--ink); background: var(--surface); border: 1px solid rgba(94,84,73,.2); border-radius: 9px; box-shadow: var(--shadow); opacity: 0; pointer-events: auto; transform: translateY(-12px) scale(.985); transition: opacity .28s ease,transform .28s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.toast.is-hiding { opacity: 0; transform: translateX(18px) scale(.98); }
.toast-mark { width: 32px; height: 32px; display: grid; place-items: center; color: var(--accent-deep); background: rgba(141,100,72,.1); border-radius: 50%; font: 700 14px/1 Georgia,serif; }
.toast-success .toast-mark { color: var(--good); background: rgba(71,108,86,.11); }
.toast-error .toast-mark { color: var(--bad); background: rgba(154,77,69,.1); }
.toast-copy { min-width: 0; display: grid; gap: 4px; }
.toast-copy strong { font: 650 12px/1.3 Inter,sans-serif; }
.toast-copy > span { color: var(--muted); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.toast-close { width: 26px; height: 26px; padding: 0; color: #918a80; background: transparent; border-radius: 50%; font-size: 18px; line-height: 1; }
.toast-close:hover { color: var(--ink); background: #efebe3; }
.toast-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); transform-origin: left; animation: toast-progress 5.2s linear forwards; }
.toast-success .toast-progress { background: var(--good); }
.toast-error .toast-progress { background: var(--bad); }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.console-heading { padding: 56px 2vw 34px; display: flex; justify-content: space-between; align-items: end; }
.console-heading h1 { margin: 12px 0; font-family: Georgia, serif; font-size: 48px; font-weight: 500; letter-spacing: -.045em; }
.wallet-line { max-width: min(730px, 80vw); margin: 0; color: var(--muted); font: 12px/1.5 "SFMono-Regular", Consolas, monospace; overflow: hidden; text-overflow: ellipsis; }
.owner-badge { margin-left: 8px; padding: 4px 8px; border-radius: 999px; background: rgba(141,100,72,.12); letter-spacing: .08em; }
.stats-grid.compact { grid-template-columns: repeat(3, 1fr); }
.stats-grid.compact .stat-card { min-height: 142px; }

.launch-panel { margin: 28px 0 80px; padding: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; background: #e7e1d6; border: 1px solid #d3ccbf; border-radius: var(--radius); }
.launch-panel h2 { font-size: 36px; }
.launch-copy p { max-width: 520px; margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.download-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: end; }
.download-button { padding: 17px 18px; background: rgba(251,250,246,.72); border: 1px solid transparent; border-radius: 8px; }
.download-button:hover { border-color: var(--accent); transform: translateY(-1px); }
.download-button span, .download-button small { display: block; }
.download-button span { font-size: 14px; font-weight: 680; }
.download-button small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.command-box { grid-column: 1 / -1; min-height: 56px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 10px 10px 10px 18px; color: #e8e4dc; background: var(--ink); border-radius: 8px; overflow: hidden; }
.command-box code { overflow-x: auto; white-space: nowrap; font-size: 12px; scrollbar-width: none; }
.command-box button { min-width: 76px; height: 36px; border-radius: 9px; background: #37342f; color: #d9d4cb; font-size: 11px; }
.command-box button:hover { background: var(--accent-deep); color: #fff; }
.microcopy { grid-column: 1 / -1; margin: -14px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.microcopy code, .security-caption code { color: var(--accent-deep); }

.table-section { margin-bottom: 80px; }
.section-heading { margin-bottom: 22px; display: flex; justify-content: space-between; align-items: end; }
.section-heading h2 { margin-top: 8px; font-size: 36px; }
.updated-label { color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 970px; }
th { padding: 12px 15px; color: var(--muted); background: #ece8df; font-size: 10px; font-weight: 650; letter-spacing: .05em; text-align: left; white-space: nowrap; }
td { padding: 15px; border-top: 1px solid var(--line); font-size: 12px; vertical-align: middle; white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr:first-child td { border-top: 0; }
tbody tr:nth-child(even) { background: rgba(232,227,217,.28); }
tbody tr:hover { background: rgba(141,100,72,.055); }
td strong, td small { display: block; }
td small { margin-top: 5px; color: var(--muted); font-size: 10px; }
td .hardware { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.type-badge { display: inline-flex; padding: 5px 8px; border-radius: 6px; color: var(--accent-deep); background: rgba(141,100,72,.1); font-size: 10px; font-weight: 700; }
.type-gpu { color: #4e5d70; background: rgba(78,93,112,.1); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; }
.status-pill.online { color: var(--good); }
.status-pill.online i { background: var(--good); box-shadow: 0 0 0 4px rgba(71,108,86,.1); }
.status-pill.offline { color: #918b81; }
.status-pill.offline i { background: #aaa49a; }
.empty-state { padding: 52px 30px; border: 1px dashed #cbc4b7; border-radius: 10px; text-align: center; }
.empty-state strong { font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.empty-state p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.empty-state.small { padding: 30px; }
.empty-state.small p { margin: 0; }

.auth-layout { min-height: calc(100vh - 136px); padding: 48px 5vw 56px; display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 100px; }
.auth-intro { max-width: 610px; }
.auth-intro h1 { font-size: clamp(48px, 5vw, 68px); }
.auth-intro > p { color: var(--muted); font-size: 15px; line-height: 1.85; }
.auth-intro ol { list-style: none; margin: 35px 0 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.auth-intro li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.auth-intro li span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.auth-card { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.auth-tabs { margin-bottom: 28px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #ebe7df; border-radius: 8px; }
.auth-tabs button { height: 38px; display: grid; place-items: center; color: var(--muted); background: transparent; border-radius: 8px; font-size: 12px; }
.auth-tabs button.active { color: var(--ink); background: var(--surface); box-shadow: none; }
.auth-card form { display: grid; gap: 20px; }
.auth-card label { color: #514d46; font-size: 11px; font-weight: 620; }
.auth-card input { width: 100%; height: 46px; margin-top: 8px; padding: 0 13px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; outline: none; font-size: 13px; }
.auth-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(141,100,72,.08); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 60px; }
.password-field button { position: absolute; right: 7px; top: 15px; height: 34px; padding: 0 8px; color: var(--muted); background: transparent; font-size: 10px; }
.auth-footnote { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }

.downloads-hero { max-width: 800px; padding: 110px 3vw 65px; }
.downloads-hero h1 { font-size: clamp(48px, 5vw, 70px); }
.downloads-hero p { max-width: 690px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.download-card { padding: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.download-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--accent-deep); background: rgba(141,100,72,.1); border: 1px solid rgba(141,100,72,.15); border-radius: 15px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.download-icon.gpu { color: #506174; background: rgba(80,97,116,.1); border-color: rgba(80,97,116,.15); }
.download-card h2 { margin: 28px 0 12px; font-family: Georgia, serif; font-size: 32px; font-weight: 500; }
.download-card > p { min-height: 50px; margin: 0 0 27px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.download-card ul { margin: 30px 0 0; padding: 24px 0 0 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 2; }
.instructions { margin: 90px 0 110px; padding: 50px; background: #e7e1d6; border-radius: var(--radius); }
.instructions > ol { list-style: none; margin: 45px 0 0; padding: 0; }
.instructions > ol > li { display: grid; grid-template-columns: 55px 1fr; gap: 20px; padding: 27px 0; border-top: 1px solid #cec6b9; }
.instructions > ol > li > span { color: var(--accent); font: 14px Georgia, serif; }
.instructions h3 { margin: 0 0 12px; font-size: 15px; }
.instructions p { color: var(--muted); font-size: 12px; }
.instructions li > div > code { display: inline-block; padding: 13px 16px; color: #ddd8cf; background: var(--ink); border-radius: 9px; font-size: 11px; line-height: 1.8; }
.instructions .command-box { max-width: 900px; }
.security-caption { margin: 25px 0 0; padding-top: 24px; border-top: 1px solid #cec6b9; }
.not-found { min-height: 620px; display: grid; align-content: center; justify-items: center; text-align: center; }

/* JerryPool v2 — multi-project console */
.inline-form { display: inline-flex; margin: 0; }
.account-link { gap: 14px; }
.account-link > a:not(.quiet-button) { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.account-link > a strong { font-size: 11px; }
.account-link > a small { margin-top: 3px; max-width: 130px; overflow: hidden; color: var(--muted); font: 9px "SFMono-Regular", Consolas, monospace; text-overflow: ellipsis; }
.primary-button.full { width: 100%; border: 0; cursor: pointer; }
.auth-tabs button { text-decoration: none; }
.copy-link { margin-left: 8px; color: var(--accent-deep); background: transparent; font-size: 10px; cursor: pointer; }
.project-heading { padding-bottom: 52px; }
.identity-chip { min-width: 190px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.identity-chip span, .identity-chip small { display: block; color: var(--muted); font-size: 9px; }
.identity-chip strong { display: block; margin: 6px 0; font-size: 14px; }
.project-grid { min-height: 380px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 90px; }
.project-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s ease,border-color .2s ease,background .2s ease; }
.project-card:hover { transform: translateY(-1px); border-color: rgba(141,100,72,.55); background: #fffdf8; }
.project-card-top { display: flex; justify-content: space-between; align-items: center; }
.project-symbol { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; color: #eee9df; background: var(--ink); font: 700 11px/1 Arial,sans-serif; letter-spacing: .08em; }
.project-card h2 { margin: 32px 0 12px; font: 500 34px/1.2 Georgia,serif; }
.project-card > p { min-height: 48px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.project-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 32px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-metrics span small,.project-metrics span strong { display: block; }
.project-metrics span small { margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.project-metrics span strong { font-family: Georgia,serif; font-size: 17px; font-weight: 500; }
.project-card > footer { min-height: auto; border: 0; color: var(--muted); }
.project-card > footer em { color: var(--accent-deep); font-style: normal; }
.project-console-heading { padding-bottom: 34px; }
.project-console-heading .section-kicker a { color: var(--muted); }
.status-pill.large { padding: 10px 14px; border: 1px solid rgba(71,108,86,.18); border-radius: 999px; background: rgba(71,108,86,.06); }
.pool-identity-panel { margin-bottom: 28px; padding: 26px 30px; display: grid; grid-template-columns: minmax(250px,1fr) auto minmax(260px,.8fr); align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #e9e4da; }
.pool-identity-panel span,.pool-identity-panel small { display: block; color: var(--muted); font-size: 9px; letter-spacing: .08em; }
.pool-identity-panel strong { display: block; margin: 7px 0 5px; font: 15px "SFMono-Regular",Consolas,monospace; }
.gateway-label { padding-left: 28px; border-left: 1px solid #cec6b8; }
.gateway-label strong { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.stats-grid.compact.project-stats { grid-template-columns: repeat(4,1fr); }
.compact-launch { margin-top: 32px; margin-bottom: 80px; }
.compact-launch .launch-copy code { color: var(--accent-deep); }
.admin-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; margin-bottom: 90px; }
.admin-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.admin-card h2 { margin: 12px 0 28px; font: 500 30px/1.2 Georgia,serif; }
.admin-card form { display: grid; }
.admin-card label { display: block; margin: 18px 0; color: #514d46; font-size: 11px; }
.admin-card input { width: 100%; height: 46px; margin-top: 8px; padding: 0 13px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 8px; outline: none; }
.admin-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(141,100,72,.08); }
.admin-card > p { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.protocol-card { background: #e7e1d6; }
.protocol-card ol { list-style: none; margin: 0; padding: 0; }
.protocol-card li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid #cec6b9; color: var(--muted); font-size: 12px; }
.protocol-card li span { color: var(--accent-deep); font-family: Georgia,serif; }
.error-text { max-width: 240px; color: var(--bad); white-space: normal; }

/* JerryPool v3 — focused project workspace */
.project-tabs { display: flex; align-items: stretch; gap: 28px; margin: 0 0 28px; padding: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.project-tabs button { min-width: 126px; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: -1px; padding: 0 10px; color: var(--muted); background: transparent; border-bottom: 2px solid transparent; border-radius: 0; }
.project-tabs button span { font-size: 13px; font-weight: 680; }
.project-tabs button small { color: #918a80; font-size: 9px; }
.project-tabs button.active { color: var(--ink); background: transparent; border-bottom-color: var(--accent); box-shadow: none; }
.project-tabs button.active small { color: var(--accent); }
.project-tab-panel { min-height: 480px; }
.miner-table-section { margin-top: 30px; }
.miner-table-section table { min-width: 1080px; }

.settings-grid { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(330px,.72fr); align-items: start; gap: 18px; margin-bottom: 30px; }
.setting-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.setting-card h2 { margin: 10px 0 14px; font: 500 30px/1.2 Georgia,"Noto Serif SC",serif; }
.setting-lead { margin: 0 0 26px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.setting-lead code { color: var(--accent-deep); }
.launch-settings { background: #e7e1d6; }
.launch-settings .download-actions { margin: 0 0 24px; }
.launch-settings .download-button { background: rgba(251,250,246,.66); border-color: #cec6b9; }
.setup-steps { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 0 0 24px; padding: 0; }
.setup-steps li { min-height: 82px; padding: 15px; border: 1px solid #cec6b9; border-radius: 8px; }
.setup-steps li > span { color: var(--accent); font: 11px Georgia,serif; }
.setup-steps p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.setup-steps code { color: var(--ink); font-size: 9px; }
.launch-settings .command-box { grid-column: auto; }
.pool-id-caption { margin: 13px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.pool-id-caption code { color: var(--accent-deep); }
.setting-card.payout-card { border-radius: var(--radius); }
.setting-card.payout-card label { margin-top: 25px; }
.payout-history-section { margin-bottom: 80px; }
.payout-history-section table { min-width: 1040px; }
.payout-history-section td:nth-child(2) strong { white-space: nowrap; }
.payout-history-section td:last-child { max-width: 210px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }

.payout-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; margin: 30px 0 80px; }
.payout-card, .settlement-card { padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.payout-card h2, .settlement-card h2 { margin: 10px 0 24px; font: 500 28px/1.25 Georgia,"Noto Serif SC",serif; }
.payout-card label, .settlement-card label, .settlement-filter label { display: block; color: #514d46; font-size: 11px; font-weight: 620; }
.payout-card input, .settlement-card input, .settlement-card select, .settlement-filter input, .settlement-filter select {
    width: 100%; height: 46px; margin-top: 8px; padding: 0 13px; color: var(--ink); background: #fff;
    border: 1px solid var(--line); border-radius: 6px; outline: none;
}
.payout-card input:focus, .settlement-card input:focus, .settlement-card select:focus, .settlement-filter input:focus, .settlement-filter select:focus { border-color: var(--accent); }
.payout-card > label + label { margin-top: 17px; }
.payout-form-footer { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.payout-form-footer small { max-width: 330px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.settlement-preview { background: #e9e4da; }
.settlement-preview-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.settlement-amount { display: block; margin: 30px 0 24px; font: 500 34px/1.15 Georgia,serif; font-variant-numeric: tabular-nums; }
.settlement-amount small { color: var(--muted); font: 11px Inter,sans-serif; }
.settlement-preview dl, .audit-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid #cec6b8; }
.settlement-preview dl div, .audit-card dl div { padding: 16px 0; border-bottom: 1px solid #cec6b8; }
.settlement-preview dt, .audit-card dt { color: var(--muted); font-size: 9px; }
.settlement-preview dd, .audit-card dd { margin: 6px 0 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.settlement-preview > p { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.settlement-heading { padding-bottom: 30px; }
.settlement-state { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.state-frozen, .state-exported, .state-paid { color: var(--good); border-color: rgba(71,108,86,.28); background: rgba(71,108,86,.05); }
.state-void { color: var(--bad); border-color: rgba(154,77,69,.25); }
.settlement-filter { display: grid; grid-template-columns: minmax(220px,1fr) 180px auto 1fr; align-items: end; gap: 14px; margin-bottom: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(251,250,246,.62); }
.settlement-filter input, .settlement-filter select { margin-top: 6px; }
.settlement-filter > span { align-self: center; justify-self: end; color: var(--muted); font-size: 10px; }
.settlement-stats { grid-template-columns: repeat(4,1fr); box-shadow: none; border-radius: 12px; }
.settlement-stats .stat-card { min-width: 0; }
.settlement-stats .stat-card strong { overflow: hidden; font-size: clamp(22px,2.5vw,34px); text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.settlement-workbench { display: grid; grid-template-columns: 1.12fr .88fr; gap: 24px; margin: 28px 0 72px; }
.settlement-form, .audit-card { min-height: 390px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid label small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; font-weight: 400; }
.settlement-form > .primary-button { margin-top: 25px; border-radius: 6px; background: var(--accent-deep); }
.locked-copy { margin: 26px 0 0; padding: 15px; color: var(--muted); background: #f0ece4; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.audit-card { background: #e9e4da; }
.audit-card dl { margin-bottom: 20px; }
.audit-card dl div:nth-child(even) { padding-left: 18px; }
.readiness { padding: 14px 16px; border: 1px solid; border-radius: 7px; }
.readiness strong { font-size: 11px; }
.readiness p { margin: 6px 0 0; font-size: 10px; line-height: 1.55; }
.readiness.ready { color: var(--good); border-color: rgba(71,108,86,.25); background: rgba(71,108,86,.06); }
.readiness.blocked { color: var(--bad); border-color: rgba(154,77,69,.22); background: rgba(154,77,69,.045); }
.hash-line { display: block; margin-top: 17px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.settlement-actions { display: flex; gap: 10px; align-items: center; }
.settlement-actions form { margin: 0; }
.settlement-actions .primary-button { min-height: 38px; padding: 0 17px; border-radius: 8px; font-size: 12px; }
.primary-button:disabled, button:disabled { cursor: not-allowed; opacity: .42; transform: none; }
.settlement-table-section table { min-width: 1080px; }
.address-cell code { display: block; max-width: 330px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; }
.warning-text { color: var(--bad); font-size: 11px; }
.settlement-disclaimer { margin: 16px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.settlement-history code { color: var(--muted); font-size: 10px; }

footer { min-height: 68px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(101,93,82,.16); color: var(--muted); font-size: 10px; letter-spacing: .04em; }

@media (max-width: 980px) {
    .site-shell { width: min(100% - 32px, 820px); }
    .topbar { grid-template-columns: 1fr auto; }
    .topbar nav { order: 3; grid-column: 1 / -1; height: 40px; justify-content: center; border-top: 1px solid rgba(101,93,82,.12); }
    .topbar { height: 108px; padding-top: 8px; }
    .topbar nav a.active::after { bottom: -8px; }
    .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 68px; text-align: center; }
    .hero .eyebrow, .hero-actions { justify-content: center; }
    .hero-copy > p { margin-inline: auto; }
    .hero-portrait { width: 300px; margin: 34px auto 58px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
    .stat-card:nth-child(4) { border-top: 1px solid var(--line); }
    .split-section { grid-template-columns: 1fr; gap: 60px; }
    .auth-layout { grid-template-columns: 1fr; gap: 48px; padding-block: 64px; }
    .auth-intro { text-align: center; margin-inline: auto; }
    .auth-intro ol { justify-content: center; }
    .auth-card { width: min(440px, 100%); margin-inline: auto; }
    .launch-panel { grid-template-columns: 1fr; }
    .command-box, .microcopy { grid-column: 1; }
    .project-grid { grid-template-columns: 1fr; }
    .pool-identity-panel { grid-template-columns: 1fr auto; }
    .gateway-label { grid-column: 1 / -1; padding: 20px 0 0; border-left: 0; border-top: 1px solid #cec6b8; }
    .stats-grid.compact.project-stats { grid-template-columns: 1fr 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .payout-grid, .settlement-workbench { grid-template-columns: 1fr; }
    .settlement-filter { grid-template-columns: 1fr 180px auto; }
    .settlement-filter > span { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 680px) {
    .site-shell { width: calc(100% - 24px); }
    .topbar nav { gap: 22px; }
    .account-link .quiet-button { padding: 0 12px; }
    .hero { min-height: auto; padding: 58px 6px 20px; }
    .hero h1, .auth-intro h1, .downloads-hero h1 { font-size: 44px; }
    .hero-copy > p { font-size: 14px; }
    .hero-actions { flex-direction: column; gap: 18px; }
    .hero-portrait { width: min(260px, calc(100vw - 70px)); }
    .portrait-note { right: -8px; bottom: 12px; }
    .stats-grid, .stats-grid.compact { grid-template-columns: 1fr; }
    .stat-card, .stat-card:first-child, .stat-card:nth-child(n) { min-height: 128px; border-left: 0; border-top: 1px solid var(--line); }
    .stat-card:first-child { border-top: 0; }
    .split-section { margin: 95px 12px 85px; }
    .validator-strip { grid-template-columns: 1fr auto; padding: 24px; }
    .validator-strip p { grid-column: 1 / -1; padding: 20px 0 0; border-left: 0; border-top: 1px solid #cec6b8; }
    .security-note { grid-template-columns: 1fr; }
    .console-heading { padding: 65px 8px 35px; align-items: start; gap: 20px; }
    .console-heading h1 { font-size: 43px; }
    .wallet-line { max-width: 65vw; }
    .launch-panel { padding: 28px 20px; }
    .download-actions { grid-template-columns: 1fr; }
    .command-box { padding-left: 14px; }
    .section-heading { align-items: start; }
    .updated-label { display: none; }
    .auth-layout { min-height: auto; padding: 58px 6px 70px; }
    .auth-intro ol { display: grid; justify-content: start; width: fit-content; margin-inline: auto; }
    .auth-card { padding: 24px 18px; }
    .downloads-hero { padding: 90px 8px 45px; }
    .download-grid { grid-template-columns: 1fr; }
    .download-card { padding: 30px 24px; }
    .instructions { padding: 34px 20px; }
    .instructions > ol > li { grid-template-columns: 40px 1fr; }
    .project-heading { display: grid; }
    .identity-chip { width: 100%; }
    .project-metrics { grid-template-columns: 1fr; }
    .pool-identity-panel { padding: 23px 20px; }
    .pool-identity-panel > div:first-child strong { font-size: 13px; }
    .stats-grid.compact.project-stats { grid-template-columns: 1fr; }
    .project-tabs button { min-width: 0; flex: 1; padding: 0 12px; }
    .project-tabs button small { display: none; }
    .setting-card { padding: 26px 20px; }
    .setup-steps { grid-template-columns: 1fr; }
    .setup-steps li { min-height: auto; }
    .admin-card { padding: 26px 20px; }
    .payout-grid { margin-bottom: 65px; }
    .payout-card, .settlement-card { padding: 24px 18px; }
    .payout-form-footer { align-items: start; flex-direction: column; }
    .settlement-filter { grid-template-columns: 1fr; }
    .settlement-filter > span { grid-column: 1; }
    .form-grid { grid-template-columns: 1fr; }
    .settlement-stats { grid-template-columns: 1fr; }
    .settlement-actions { flex-wrap: wrap; }
    .responsive-table-wrap { overflow: visible; border: 0; border-radius: 0; background: transparent; }
    .miner-table-section .responsive-table, .payout-history-section .responsive-table { display: block; min-width: 0; }
    .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .responsive-table tbody { display: grid; gap: 12px; }
    .responsive-table tr { display: block; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
    .responsive-table tbody tr:nth-child(even), .responsive-table tbody tr:hover { background: var(--surface); }
    .responsive-table td { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 13px; border-top: 1px solid rgba(217,211,200,.72); white-space: normal; }
    .responsive-table td:first-child { border-top: 0; }
    .responsive-table td::before { content: attr(data-label); flex: 0 0 92px; color: var(--muted); font-size: 9px; font-weight: 650; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
    .responsive-table .cell-value { min-width: 0; max-width: calc(100% - 112px); display: block; margin-left: auto; overflow-wrap: anywhere; text-align: right; }
    .responsive-table .cell-value small { text-align: right; }
    .responsive-table .address-cell code { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
    .responsive-table .ip-address { font-size: 11px; }
    footer { flex-direction: column; justify-content: center; gap: 7px; }
    .toast-stack { top: 14px; right: 12px; width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
