
:root {
    
    --bg:        #ffffff;   
    --surface:   #fafaf9;
    --surface-2: #f5f5f4;
    --line:        #d6d3d1;
    --line-soft:   #e7e5e4;
    --line-strong: #78716c;

    --ink:   #1c1917;
    --ink-2: #44403c;
    --ink-3: #57534e;

    --accent:       #c2410c;   
    --accent-hover: #9a3412;
    --accent-wash:  #fff7ed;
    --accent-line:  #fed7aa;
    --accent-ink:   #ffffff;
    --good:         #15803d;   
    --good-wash:    #dcfce7;
    --good-ink:     #166534;

    
    --series-1: #0e7490;   
    --series-2: #1e40af;   
    --series-3: #15803d;   
    --series-4: #ca8a04;   

    --shadow:    0 1px 3px 0 rgb(28 25 23 / .08), 0 1px 2px -1px rgb(28 25 23 / .06);
    --shadow-lg: 0 10px 15px -3px rgb(28 25 23 / .08), 0 4px 6px -4px rgb(28 25 23 / .06);

    --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;

    
    --gap-row:   var(--s3);   
    --gap-inner: var(--s4);   
    --gap-block: var(--s6);   
    --pad-card:  var(--s5);   
    --radius: 10px;
}

* { box-sizing: border-box; margin: 0; }

body {
    font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg); color: var(--ink);
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
a { color: var(--accent-hover); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .87em;
    background: var(--line-soft); border: 1px solid var(--line);
    padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere;
}
strong { font-weight: 650; }



header {
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; background: rgb(255 255 255 / .88);
    backdrop-filter: blur(8px); z-index: 10;
}
.topin {
    max-width: 1240px; margin: 0 auto; padding: var(--s4) var(--s5);
    display: flex; align-items: center; gap: var(--s5); flex-wrap: wrap;
}
.brand {
    font-weight: 750; font-size: 17px; color: var(--ink); text-decoration: none;
    display: inline-flex; align-items: center; gap: var(--s2);
}
.brand img { display: block; }
header nav { margin-left: auto; display: flex; gap: var(--s5); flex-wrap: wrap; align-items: center; }
header nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; }
header nav a:hover { color: var(--ink); }
header nav a.chat { color: var(--accent); }


header nav a.tab { padding-bottom: 3px; border-bottom: 2px solid transparent; }
body.js header nav a.tab.active { color: var(--ink); border-bottom-color: var(--accent); }


main { max-width: 1240px; margin: 0 auto; padding: 0 var(--s5) var(--s7); }
section { padding: var(--s7) 0; border-bottom: 1px solid var(--line-soft); }
section:last-of-type { border-bottom: 0; }


#view-home section { padding: var(--s6) 0; }


#view-home section > * + * { margin-top: var(--s5); }
#view-home section > h2 { margin-bottom: 0; }


.hicon {
    width: 22px; height: 22px; margin-right: 10px; vertical-align: -3px;
    color: var(--accent);
}
h1 .hicon { width: 27px; height: 27px; vertical-align: -4px; }


.masthead {
    background: linear-gradient(180deg, var(--accent-wash), #ffffff 75%);
    border: 1px solid var(--accent-line); border-top: 3px solid var(--accent);
    border-radius: var(--radius); padding: var(--s6) var(--s6) var(--s5);
    box-shadow: var(--shadow);
}
.masthead h1 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -.02em; }
.mastlead {
    margin-top: var(--s3); font-size: 16.5px; color: var(--ink-2);
}
.masthead .quicklinks { margin-top: var(--s5); }


.masttag {
    font-size: 11.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--ink-3); margin-bottom: var(--s3);
}


.refresh {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; padding: 0; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; cursor: pointer;
    color: var(--ink-3); box-shadow: var(--shadow);
}
.refresh:hover { border-color: var(--accent); color: var(--accent); }
.refresh .hicon { width: 15px; height: 15px; margin: 0; color: currentColor; }
.refresh.busy .hicon { animation: refspin .8s linear infinite; }
@keyframes refspin { to { transform: rotate(360deg); } }
body:not(.js) .refresh { display: none; }
@media (prefers-reduced-motion: reduce) { .refresh.busy .hicon { animation: none; } }


.quicklinks { display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center; }
.ql {
    display: inline-flex; align-items: center; padding: 10px 20px;
    border-radius: 8px; font-size: 15px; font-weight: 600; text-decoration: none;
    color: var(--ink-2); background: #fff; border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.ql:hover { border-color: var(--accent); color: var(--accent-hover); }
.ql.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.ql.primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.ql .hicon { width: 17px; height: 17px; margin-right: 8px; color: currentColor; }

.extlinks {
    margin-left: auto; display: inline-flex; gap: var(--s5);
    align-items: center; flex-wrap: wrap;
}
.tlink {
    font-size: 14.5px; font-weight: 600; color: var(--ink-2);
    text-decoration: none; white-space: nowrap;
}
.tlink:hover { color: var(--accent-hover); text-decoration: underline; }
.tlink .hicon {
    width: 13px; height: 13px; margin: 0 0 0 5px; vertical-align: -1.5px;
    color: currentColor; opacity: .65;
}


.panelcard {
    background: #fff; border: 1px solid var(--line-soft);
    border-top: 3px solid var(--line-strong);
    border-radius: var(--radius); padding: var(--s4) var(--s5);
    box-shadow: var(--shadow);
}
.panelcard.s1 { border-top-color: var(--series-1); }
.panelcard.s2 { border-top-color: var(--series-2); }
.panelcard.s3 { border-top-color: var(--series-3); }
.panelcard.ac { border-top-color: var(--accent); }

.panelcard.ac { display: flex; flex-direction: column; }
.panelcard.ac .board { flex: 1; display: flex; flex-direction: column; }
.panelcard.ac .board .empty { margin: auto; text-align: center; max-width: 34ch; }
.panelcard .chart { border: 0; padding: 0; background: transparent; }
.panelcard .charth { margin-top: var(--s1); }


.view { padding: 0; border-bottom: 0; }
.view > section:last-child { border-bottom: 0; }
[hidden] { display: none !important; }

section > h2 {
    font-size: 28px; letter-spacing: -.02em; font-weight: 700;
    color: var(--ink); margin-bottom: var(--s5);
}



.hero { border-bottom: 0; padding-bottom: var(--s5); }
.lead { font-size: 18px; color: var(--ink-2); margin-top: var(--s4); }



#stats { padding-top: var(--s6); }

@media (min-width: 1100px) {
    .figures.primary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


#stats .chartdeck { margin-top: var(--gap-inner); }

.figures {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap-inner); align-items: start;
}

.figures.primary {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.figure {
    background: #ffffff; border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: var(--s5) var(--s5) var(--s4);
}

.figures.primary .figure { border-top: 3px solid var(--line-strong); }
.figure.s1 { border-top-color: var(--series-1); }
.figure.s2 { border-top-color: var(--series-2); }
.figure.ac { border-top-color: var(--accent); }
.figure.s4 { border-top-color: var(--series-4); }

.fignum {
    margin-top: var(--s2);
    font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
    color: var(--accent-hover); overflow-wrap: anywhere;
}
.figures.primary .fignum {
    font-size: clamp(34px, 4vw, 44px); line-height: 1.05; letter-spacing: -.03em;
}
.figlabel {
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3);
}

.figsub {
    margin-top: var(--s2); font-size: 13px; color: var(--ink-3);
    font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}

.figsub.kv {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: var(--s3); margin-top: var(--s3); padding-top: var(--s3);
    border-top: 1px dashed var(--line);
}
.kv .k {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--ink-3); white-space: nowrap;
}
.kv .v {
    font-size: 13px; font-weight: 600; color: var(--ink-2);
    font-variant-numeric: tabular-nums; text-align: right;
}


.chmeta {
    display: flex; gap: var(--s5); flex-wrap: wrap; align-items: baseline;
    margin-top: var(--s3); padding-top: var(--s3);
    border-top: 1px dashed var(--line-soft);
}
.chmeta:empty { display: none; }
.chmeta .mpair { white-space: nowrap; }
.chmeta .mk {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--ink-3);
}
.chmeta .mv {
    font-size: 13px; font-weight: 650; color: var(--ink-2);
    font-variant-numeric: tabular-nums; margin-left: 6px;
}


#paid-totals .figure { border-top: 3px solid var(--line-strong); }
#paid-totals .fignum { color: #166534; }
#stats.cold .fignum { color: var(--ink-3); }


.livechip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
}
.livechip .mark { font-weight: 800; font-size: 13px; line-height: 1; color: var(--ink-3); }
.livechip .mark.ok { color: var(--good); }
.livechip .mark.bad { color: #dc2626; }


.notice {
    padding: var(--s4) var(--s5);
    background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b;
    border-radius: var(--radius); font-size: 15px; color: #713f12;
}


.blocks { display: flex; flex-direction: column; gap: 2px; }
.blockrow {
    display: flex; align-items: center; gap: var(--s4);
    padding: 9px 12px; border-radius: 8px; font-size: 14px;
}
.blockrow:nth-child(odd) { background: var(--surface); }
.blockrow .bh { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 650; }
.blockrow .bwhen { color: var(--ink-3); margin-left: auto; font-variant-numeric: tabular-nums; }
.badge {
    font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px;
    background: var(--good-wash); color: var(--good-ink);
}
.badge.waiting { background: var(--surface-2); color: var(--ink-3); }


.copyable { cursor: copy; text-decoration: underline dotted var(--line-strong); text-underline-offset: 3px; }
.copyable:hover { text-decoration-color: var(--accent); }



.cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: var(--gap-inner);
}

.card {
    background: #ffffff; border: 1px solid var(--line-soft); border-radius: var(--radius);
    border-top: 3px solid var(--line-strong);
    padding: var(--pad-card); display: flex; flex-direction: column; gap: var(--gap-row);
    box-shadow: var(--shadow); transition: box-shadow .15s ease, transform .15s ease;
}

.card.plat-windows { border-top-color: var(--series-2); }
.card.plat-linux { border-top-color: var(--series-4); }

.card.plat-windows .get { background: var(--series-2); }
.card.plat-windows .get:hover { background: #1e3a8a; }
.card.plat-linux .get { background: #a16207; }
.card.plat-linux .get:hover { background: #854d0e; }

.card.plat-windows .get.disabled, .card.plat-linux .get.disabled {
    background: none; border: 1px dashed var(--line); color: var(--ink-3);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card.pending { opacity: .6; }
.platform {
    font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--accent-hover); font-weight: 700;
}
.card h3 { font-size: 19px; }


.get {
    display: flex; align-items: baseline; justify-content: center; gap: var(--s2);
    background: var(--accent); color: var(--accent-ink); text-decoration: none;
    font-weight: 700; font-size: 16px; padding: 13px var(--s4); border-radius: 8px;
    text-align: center;
}
.get:hover { background: var(--accent-hover); color: var(--accent-ink); box-shadow: var(--shadow-lg); }
.get .size { font-size: 12.5px; font-weight: 600; opacity: .8; }
.get.disabled {
    background: none; border: 1px dashed var(--line); color: var(--ink-3);
    cursor: default; font-weight: 600;
}

.meta { display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s3); font-size: 13px; }
.meta dt { color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.meta dd { margin: 0; color: var(--ink-2); min-width: 0; }
.meta dd.hash {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px; overflow-wrap: anywhere; color: var(--ink-3);
}

.fine { font-size: 14px; color: var(--ink-3); margin-top: var(--s5); }
.fine a + a { margin-left: var(--s4); }


.steps { list-style: none; padding: 0; margin-top: var(--s6); display: flex; flex-direction: column; gap: var(--s6); }
.steps h3 {
    font-size: 20px; display: flex; align-items: center; gap: var(--s3);
    margin-bottom: var(--s3);
}
.num {
    flex: none; width: 30px; height: 30px; border-radius: 50%;
    background: var(--accent); border: 1px solid var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; color: var(--accent-ink);
}
.steps p { color: var(--ink-2); }
.steps p + p { margin-top: var(--s3); }

a.out {
    display: inline-block; margin-top: var(--s2);
    border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px;
    text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink);
}
a.out::after { content: ' ↗'; color: var(--ink-3); }
a.out:hover { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-hover); }


.cardnote { font-size: 14px; color: var(--ink-3); }
.fhash {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px; color: var(--ink-3); overflow-wrap: anywhere;
    margin-top: -4px;
}


.split {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap-inner);
}

.pane {
    background: #ffffff; border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: var(--s5);
}
.bignum {
    font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
    color: var(--ink); margin-bottom: var(--s2);
}
.biglabel {
    font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--ink-3); font-weight: 700; margin-bottom: var(--s2);
}
.pane p { font-size: 15px; color: var(--ink-2); }
.refnote { margin-top: var(--s5); }
.refnote p { font-size: 15px; color: var(--ink-2); }


details {
    border-bottom: 1px solid var(--line-soft);
}
details summary {
    cursor: pointer; padding: var(--s4) 0; font-weight: 600; font-size: 16.5px;
    list-style: none; display: flex; align-items: baseline; gap: var(--s3);
}
details summary::-webkit-details-marker { display: none; }
details summary::before {
    content: '+'; color: var(--ink-3); font-weight: 700; width: 14px; flex: none;
}
details[open] summary::before { content: '−'; color: var(--accent); }
details summary:hover { color: var(--accent-hover); }
.answer { padding: 0 0 var(--s5) 26px; }
.answer p { color: var(--ink-2); font-size: 16px; }
.answer p + p { margin-top: var(--s3); }



footer {
    border-top: 1px solid var(--line); background: var(--surface);
    margin-top: var(--s7); font-size: 14.5px; color: var(--ink-3);
}
.footin { max-width: 1240px; margin: 0 auto; padding: var(--s7) var(--s5) var(--s5); }
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s6); }
.footbrand .brand { font-size: 16px; }
.footbrand p { margin-top: var(--s3); }
.footbrand .footver {
    margin-top: var(--s3); font-size: 12.5px; color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}
.footcol h4 {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--ink-3); margin-bottom: var(--s3);
}
.footcol a {
    display: block; width: fit-content; color: var(--ink-2);
    text-decoration: none; padding: 3px 0;
}
.footcol a:hover { color: var(--accent-hover); text-decoration: underline; }
.footcol a .hicon {
    width: 12px; height: 12px; margin: 0 0 0 5px; vertical-align: -1px;
    color: currentColor; opacity: .55;
}
.footbase {
    margin-top: var(--s6); padding-top: var(--s4);
    border-top: 1px solid var(--line-soft);
    display: flex; justify-content: space-between; gap: var(--s4);
    flex-wrap: wrap; font-size: 13px;
}
@media (max-width: 720px) {
    .footgrid { grid-template-columns: 1fr; gap: var(--s5); }
}

@media (max-width: 640px) {
    .topin { padding: var(--s3) var(--s4); gap: var(--s3); }
    header nav { gap: var(--s4); width: 100%; margin-left: 0; }
    main { padding: 0 var(--s4) var(--s6); }
    section { padding: var(--s6) 0; }
    .extlinks { margin-left: 0; width: 100%; gap: var(--s4); }
}




.chart {
    background: #ffffff; border: 1px solid var(--line-soft); border-radius: var(--radius);
    padding: var(--s4); min-height: 200px;
    display: flex; flex-direction: column;
}
.chart > * { width: 100%; }

.chart .empty { margin: auto; text-align: center; max-width: 34ch; }
.chartsvg { display: block; width: 100%; height: 180px; }
.chline { fill: none; stroke: var(--series-1); stroke-width: 2; vector-effect: non-scaling-stroke; }
.charea { fill: var(--series-1); opacity: .1; stroke: none; }
.chline.s2 { stroke: var(--series-2); }
.charea.s2 { fill: var(--series-2); }


.chartdeck { display: grid; gap: var(--gap-inner); grid-template-columns: 1fr; }
@media (min-width: 860px) { .chartdeck { grid-template-columns: 1fr 1fr; } }


.charth { font-size: 15px; font-weight: 650; margin-bottom: var(--s2); }
.dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: var(--series-1); margin-right: var(--s2); vertical-align: 1px;
}
.dot.s2 { background: var(--series-2); }
.dot.s3 { background: var(--series-3); }
.dot.s4 { background: var(--series-4); }
.dot.ac { background: var(--accent); }


.chgrid { stroke: var(--line-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chwrap { position: relative; }
.chwrap .ylab {
    position: absolute; left: 6px; transform: translateY(-55%);
    font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums;
    background: rgb(255 255 255 / .75); padding: 0 4px; border-radius: 4px;
    pointer-events: none;
}
.chwrap .xlabs {
    display: flex; justify-content: space-between; margin-top: 4px;
    font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums;
}


.chtip {
    position: fixed; z-index: 40; pointer-events: none;
    background: #ffffff; color: var(--ink); font-size: 12.5px; line-height: 1.5;
    padding: 7px 11px; border-radius: 8px; border: 1px solid var(--line);
    box-shadow: var(--shadow-lg); max-width: 280px; white-space: nowrap;
}
.chtip .tt { display: block; font-size: 11.5px; color: var(--ink-3); }
.chtip .tv { font-weight: 650; }
.chtip .td {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--series-1); margin-right: 6px;
}
.chtip .td.s2 { background: var(--series-2); }
.chtip .td.s3 { background: var(--series-3); }
.xhair {
    position: absolute; top: 0; width: 1px; height: 180px;
    background: var(--line-strong); opacity: .55; pointer-events: none;
}
.xdot {
    position: absolute; width: 10px; height: 10px; border-radius: 50%;
    background: var(--series-1); border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgb(28 25 23 / .12), var(--shadow);
    transform: translate(-50%, -50%); pointer-events: none;
}
.xdot.s2 { background: var(--series-2); }
.xdot.s3 { background: var(--series-3); }

.chbar { fill: var(--line-soft); }
.chbarfill { fill: var(--series-3); }


.board { overflow-x: auto; }
.empty { color: var(--ink-3); font-size: 15px; padding: var(--s5) 0; }



.skel {
    background: var(--line-soft); border-radius: 6px;
    animation: skelpulse 1.4s ease-in-out infinite;
}
.skelcard {
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: var(--pad-card);
    display: flex; flex-direction: column; gap: var(--gap-row);
}
.skelcard .skel:nth-child(1) { height: 11px; width: 45%; }
.skelcard .skel:nth-child(2) { height: 26px; width: 70%; }
.skelcard .skel:nth-child(3) { height: 11px; width: 55%; }
.skelchart { height: 180px; }

.skelfig { display: inline-block; width: 56%; min-width: 90px; height: .8em; vertical-align: baseline; }

@keyframes skelpulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
    .skel { animation: none; }
}
