:root {
    color-scheme: dark;
    --bg: #030b12;
    --bg-deep: #02070b;
    --panel: rgba(6, 24, 31, .9);
    --panel-soft: rgba(8, 31, 39, .72);
    --panel-solid: #071b23;
    --line: rgba(94, 224, 221, .19);
    --line-strong: rgba(94, 224, 221, .34);
    --text: #f2f5f3;
    --muted: #91a8aa;
    --muted-2: #647b80;
    --cyan: #47efe3;
    --cyan-bright: #75fff5;
    --cyan-deep: #0daeb1;
    --gold: #f3c760;
    --orange: #ff7f2e;
    --purple: #cd75ff;
    --blue: #57bfff;
    --danger: #ff8d91;
    --radius: 12px;
    --shadow: 0 25px 80px rgba(0, 0, 0, .28);
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg-deep); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--text); font-family: var(--sans); background: var(--bg); }
body::selection { color: #001417; background: var(--cyan); }
button, input, select { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 1rem; top: -5rem; padding: .7rem 1rem; color: #001417; background: var(--cyan); border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 1rem; }
.site-backdrop { position: fixed; inset: 0; z-index: -3; pointer-events: none; background:
    linear-gradient(rgba(1, 8, 13, .91), rgba(1, 8, 13, .96)),
    url("images/seren-stars.jpg") center top / cover fixed,
    radial-gradient(circle at 18% 18%, rgba(0, 205, 215, .13), transparent 34%),
    radial-gradient(circle at 85% 55%, rgba(0, 120, 155, .11), transparent 40%);
}
.site-backdrop::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: radial-gradient(circle, rgba(87,255,245,.95) 0 1px, transparent 1.5px); background-size: 110px 110px; background-position: 13px 29px; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.site-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.35), transparent 20%, transparent 80%, rgba(0,0,0,.35)); }

.page-container { width: min(1420px, calc(100% - 48px)); margin-inline: auto; }
main { min-height: calc(100vh - 160px); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); letter-spacing: -.025em; }
h1 { margin-bottom: 1rem; font-size: clamp(3rem, 5vw, 5rem); line-height: .98; }
h2 { margin-bottom: .55rem; font-size: clamp(1.55rem, 2.4vw, 2.25rem); line-height: 1.08; }
h3 { margin-bottom: .35rem; }
p { color: #b4c4c5; line-height: 1.7; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--cyan); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow .icon { width: 1rem; height: 1rem; }
.muted { color: var(--muted); }
.full-span { grid-column: 1 / -1; }

.site-header { position: sticky; z-index: 50; top: 0; height: 73px; border-bottom: 1px solid var(--line); background: rgba(2, 10, 16, .9); backdrop-filter: blur(20px); }
.header-inner { width: min(1420px, calc(100% - 48px)); height: 100%; margin-inline: auto; display: grid; grid-template-columns: 270px 1fr 270px; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .78rem; min-width: 0; text-decoration: none; }
.brand-mark { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 48px; filter: drop-shadow(0 0 13px rgba(71,239,227,.34)); }
.brand-mark::before, .brand-mark::after, .brand-mark > span { display: none; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 700; white-space: nowrap; }
.brand-copy small { display: block; margin-top: 1px; color: var(--muted); font-size: .7rem; }
.site-nav { display: flex; justify-content: center; align-items: stretch; height: 100%; gap: 2.2rem; }
.site-nav a { position: relative; display: grid; place-items: center; color: #c9cdca; font-size: .86rem; text-decoration: none; transition: color .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--cyan-bright); }
.site-nav a::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 0; height: 2px; background: var(--cyan); transform: translateX(-50%); box-shadow: 0 0 12px var(--cyan); transition: width .2s; }
.site-nav a.active::after { width: 38px; }
.header-install { justify-self: end; }
.mobile-menu-button { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 40px; padding: .65rem 1rem; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--text); background: rgba(9, 30, 38, .8); box-shadow: inset 0 1px rgba(255,255,255,.05); text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .18s, border-color .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); border-color: rgba(91,255,245,.56); }
.button-primary, .button-install { color: #ecffff; border-color: #19cfd2; background: linear-gradient(180deg, rgba(20,210,211,.68), rgba(5,113,125,.72)); box-shadow: 0 0 25px rgba(22,220,216,.15), inset 0 1px rgba(255,255,255,.18); }
.button-primary:hover, .button-install:hover { background: linear-gradient(180deg, rgba(39,233,229,.82), rgba(7,135,146,.82)); box-shadow: 0 0 32px rgba(22,220,216,.25); }
.button-secondary { background: rgba(4, 14, 20, .65); }
.button-large { min-height: 49px; padding: .78rem 1.6rem; font-size: .94rem; }
.button-small { min-height: 34px; padding: .42rem .72rem; font-size: .78rem; }
.button-tiny { min-height: 30px; padding: .32rem .62rem; font-size: .7rem; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: #cfe0df; background: rgba(8, 27, 34, .75); cursor: pointer; text-decoration: none; transition: color .18s, border-color .18s, background .18s; }
.icon-button:hover { color: var(--cyan); border-color: var(--line-strong); background: rgba(13, 48, 57, .8); }
.disabled { pointer-events: none !important; opacity: .35 !important; }
.text-link, .clear-link { display: inline-flex; align-items: center; gap: .4rem; color: #a9c3c2; font-size: .77rem; text-decoration: none; }
.text-link:hover, .clear-link:hover { color: var(--cyan); }

.hero-with-art { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 15% 35%, rgba(0, 168, 189, .12), transparent 34%); }
.hero-with-art::after { content: ""; position: absolute; inset: auto 0 0; height: 85px; background: linear-gradient(to top, rgba(2,10,15,.84), transparent); pointer-events: none; }
.hero-art-wrap { position: absolute; z-index: 0; left: max(0px, calc((100vw - 1480px) / 2)); top: 0; width: 520px; height: 100%; pointer-events: none; }
.hero-art-wrap img { width: 100%; height: 100%; object-fit: contain; object-position: left center; opacity: .92; filter: drop-shadow(0 0 42px rgba(21, 220, 223, .14)); }
.hero-art-wrap.art-right { left: auto; right: max(10px, calc((100vw - 1450px) / 2)); width: 540px; transform: scaleX(-1); }
.hero-layout, .archive-hero-grid, .items-hero-grid, .contributors-hero-grid, .about-hero-copy { position: relative; z-index: 2; }
.home-hero { min-height: 335px; }
.hero-layout { min-height: 335px; padding: 30px 0 25px 350px; display: grid; grid-template-columns: minmax(430px, 1fr) 450px; gap: 50px; align-items: center; }
.hero-copy h1 { margin: .8rem 0 1rem; font-size: clamp(3.3rem, 4.3vw, 4.65rem); }
.hero-copy h1 em { color: var(--cyan); font-style: normal; }
.hero-copy p { max-width: 620px; margin-bottom: 0; font-size: .98rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.35rem; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric-card { min-height: 113px; padding: 1rem 1.1rem; display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: linear-gradient(145deg, rgba(9, 34, 42, .88), rgba(4, 17, 24, .9)); box-shadow: inset 0 1px rgba(255,255,255,.03); }
.metric-card > div > span, .metric-card small { display: block; color: #c1cecd; font-size: .75rem; }
.metric-card strong { display: block; margin: .1rem 0; color: var(--gold); font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.metric-card small { color: var(--muted); font-size: .68rem; }
.metric-icon { display: grid; place-items: center; width: 54px; height: 54px; color: var(--cyan-bright); filter: drop-shadow(0 0 12px rgba(71,239,227,.38)); }
.metric-icon .icon { width: 44px; height: 44px; stroke-width: 1.5; }
.metric-icon.ghost .icon { fill: rgba(71,239,227,.2); }
.metric-icon.sparkle .icon { fill: rgba(71,239,227,.18); }
.metric-icon.users .icon { fill: rgba(71,239,227,.12); }

.home-content { position: relative; z-index: 4; margin-top: -1px; padding-bottom: 22px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(7, 29, 37, .94), rgba(4, 17, 24, .94)); box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.025); }
.totals-strip { padding: 14px 20px 15px; margin-bottom: 14px; }
.panel-kicker-row, .section-heading, .panel-title, .mini-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-item-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.top-item { min-width: 0; min-height: 65px; padding: .65rem .85rem; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: 7px; background: rgba(3, 15, 21, .56); text-decoration: none; transition: border-color .2s, transform .2s; }
.top-item:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.top-item img { width: 45px; height: 45px; object-fit: contain; }
.top-item strong, .top-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-item strong { font-size: .88rem; }
.top-item span { margin-top: .18rem; color: var(--muted); font-size: .67rem; }
.top-item b { color: var(--gold); font-family: var(--serif); font-size: 1.45rem; font-weight: 600; }
.database-panel { padding: 15px 20px 10px; }
.database-toolbar { display: grid; grid-template-columns: minmax(230px, 1fr) auto auto; gap: 1rem; align-items: end; margin-bottom: 10px; }
.database-toolbar h2 { margin: .25rem 0 0; font-size: 1.75rem; }
.quick-filters { display: flex; align-items: center; gap: .55rem; }
.quick-filters select { max-width: 128px; }
.rows-summary { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .72rem; }

input, select { min-height: 39px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--text); background: rgba(3, 15, 21, .84); transition: border-color .18s, box-shadow .18s; }
input { padding: .65rem .8rem; }
select { padding: .55rem 2.2rem .55rem .75rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7ca2a4 50%), linear-gradient(135deg, #7ca2a4 50%, transparent 50%); background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px); background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus { border-color: var(--cyan-deep); box-shadow: 0 0 0 3px rgba(31, 213, 210, .08); }
.search-field, .input-with-icon, .hero-search { position: relative; display: flex; align-items: center; }
.search-field .icon, .input-with-icon .icon, .hero-search .icon { position: absolute; left: .8rem; z-index: 2; color: #789397; }
.search-field input, .input-with-icon input, .hero-search input { width: 100%; padding-left: 2.4rem; }
.compact-search { width: 240px; }
.compact-search input { min-height: 35px; font-size: .75rem; }

.table-wrap { width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(1, 10, 15, .55); }
.archive-table { width: 100%; border-collapse: collapse; }
.archive-table th, .archive-table td { padding: .65rem .8rem; border-bottom: 1px solid rgba(94, 224, 221, .12); text-align: left; vertical-align: middle; }
.archive-table th { color: #a8b7b7; background: rgba(8, 29, 36, .93); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.archive-table tbody tr { transition: background .16s; }
.archive-table tbody tr:hover { background: rgba(30, 199, 194, .035); }
.archive-table tbody tr:last-child td { border-bottom: 0; }
.home-table { min-width: 1180px; }
.username-chip { display: inline-flex; padding: .38rem .65rem; border: 1px solid rgba(71,239,227,.28); border-radius: 6px; color: var(--cyan-bright); background: rgba(31, 194, 188, .08); font-size: .74rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.item-cell { min-width: 190px; display: flex; align-items: center; gap: .65rem; }
.item-cell img { width: 34px; height: 34px; object-fit: contain; flex: 0 0 auto; }
.item-cell span { display: grid; gap: 2px; font-size: .78rem; }
.item-cell small { font-size: .6rem; }
.proof-preview, .proof-thumb { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #030b0f; cursor: pointer; }
.proof-preview { width: 330px; max-width: 28vw; height: 37px; }
.proof-preview img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
.proof-thumb { width: 84px; height: 42px; }
.proof-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
.base64-code { display: block; max-width: 205px; overflow: hidden; color: #c7bda9; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: .45rem; }
.empty-state { padding: 2rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; text-align: center; }
.notice { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 28, 35, .88); }
.notice-error { color: #ffd0d2; border-color: rgba(255,141,145,.35); background: rgba(120,28,34,.22); }
.notice .icon { color: var(--danger); }

.site-footer { border-top: 1px solid var(--line); background: rgba(2, 9, 14, .92); }
.footer-inner { width: min(1420px, calc(100% - 48px)); min-height: 114px; margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.footer-brand { justify-self: start; }
.footer-inner > p { margin: 0; color: #6f7f82; font-size: .72rem; }
.footer-actions { justify-self: end; display: flex; gap: .7rem; }
.footer-actions a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: #bdc7c7; background: rgba(8, 26, 33, .72); transition: color .2s, border-color .2s; }
.footer-actions a:hover { color: var(--cyan); border-color: var(--line-strong); }

.proof-dialog { width: min(980px, calc(100% - 28px)); padding: 0; overflow: hidden; color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; background: #031017; box-shadow: 0 40px 140px #000; }
.proof-dialog::backdrop { background: rgba(0, 4, 7, .86); backdrop-filter: blur(10px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: .25rem 0 0; font-size: 1.4rem; }
.proof-dialog > img { width: calc(100% - 2rem); max-height: 70vh; margin: 1rem; object-fit: contain; border: 1px solid var(--line); border-radius: 7px; background: #000; }
.proof-dialog > p { margin: 0; padding: 0 1rem 1.25rem; color: var(--muted); }
.toast-region { position: fixed; z-index: 100; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; }
.toast { padding: .75rem 1rem; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: #09232b; box-shadow: 0 15px 50px #000; animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* Archive */
.hero-compact { min-height: 275px; }
.archive-hero-grid { min-height: 275px; padding: 26px 0 20px 285px; display: grid; grid-template-columns: minmax(320px, 1fr) 405px 320px; gap: 22px; align-items: center; }
.archive-intro h1, .items-hero-grid h1, .about-hero-copy h1, .contributors-intro h1 { margin: .55rem 0 .75rem; font-size: clamp(2.8rem, 4vw, 4rem); }
.archive-intro p { max-width: 440px; margin-bottom: 1rem; font-size: .82rem; }
.hero-search { width: min(360px, 100%); }
.hero-search input { height: 42px; }
.hero-search kbd { position: absolute; right: .7rem; padding: .15rem .38rem; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: rgba(0,0,0,.3); font-family: var(--sans); font-size: .65rem; }
.archive-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.archive-stat-grid article { min-height: 92px; padding: .75rem; display: grid; grid-template-columns: 42px 1fr; align-items: center; column-gap: .6rem; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(4, 20, 27, .8); }
.archive-stat-grid .metric-icon { grid-row: 1 / 4; width: 42px; height: 42px; }
.archive-stat-grid .metric-icon .icon { width: 35px; height: 35px; }
.archive-stat-grid small, .archive-stat-grid em { color: #aebcbd; font-size: .65rem; font-style: normal; }
.archive-stat-grid strong { color: var(--cyan-bright); font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.archive-stat-grid em { color: var(--muted); font-size: .58rem; }
.chart-card { align-self: stretch; padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(5, 22, 29, .86); }
.chart-heading { display: flex; justify-content: space-between; align-items: center; }
.chart-heading select { min-height: 31px; padding-block: .3rem; font-size: .64rem; }
.drops-chart { display: block; width: 100%; height: 135px; overflow: visible; }
.chart-grid { fill: none; stroke: rgba(100, 191, 191, .09); }
.chart-area { fill: url(#chartFill); }
.chart-line { fill: none; stroke: var(--cyan); stroke-width: 2.5; }
.drops-chart circle { fill: var(--cyan-bright); stroke: #05363b; stroke-width: 2; }
.chart-label-row { display: flex; justify-content: space-between; color: #819497; font-size: .56rem; }
.chart-card p { margin: .6rem 0 0; color: #7dc8c6; font-size: .65rem; }
.chart-card p strong { color: var(--cyan); }
.archive-layout { padding: 16px 0 24px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.filter-panel { position: sticky; top: 90px; padding: 1rem; }
.filter-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.filter-title a { display: inline-flex; align-items: center; gap: .3rem; color: #8db3b3; font-size: .66rem; text-decoration: none; }
.filter-panel label:not(.switch-row) { display: grid; gap: .4rem; margin-bottom: .85rem; color: #c8d2d2; font-size: .7rem; font-weight: 650; }
.filter-panel select, .filter-panel input { width: 100%; }
.switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: .85rem 0; cursor: pointer; }
.switch-row span { min-width: 0; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: .68rem; }
.switch-row small { margin-top: .15rem; color: var(--muted); font-size: .57rem; line-height: 1.35; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { position: relative; width: 34px; height: 19px; flex: 0 0 auto; border: 1px solid #426066; border-radius: 999px; background: #15272d; transition: background .2s, border-color .2s; }
.switch-row i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #d8dfde; transition: transform .2s; }
.switch-row input:checked + i { border-color: var(--cyan-deep); background: #0ba9ad; }
.switch-row input:checked + i::after { transform: translateX(15px); }
.filter-submit { width: 100%; margin-top: .65rem; }
.archive-results { min-width: 0; padding: 1rem; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.results-toolbar > div:first-child { display: flex; align-items: center; gap: .75rem; }
.results-toolbar h2 { margin: 0; font-family: var(--sans); font-size: 1.25rem; }
.result-count { padding: .3rem .55rem; border-radius: 5px; color: #b9c8c8; background: rgba(67, 134, 137, .13); font-size: .66rem; }
.pagination-compact { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .68rem; }
.pagination-compact > strong { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--cyan-bright); background: rgba(24, 166, 165, .1); }
.archive-table-wrap { overflow-x: hidden; }
.full-archive-table { min-width: 0; table-layout: fixed; }
.full-archive-table col.archive-col-user { width: 13%; }
.full-archive-table col.archive-col-item { width: 20%; }
.full-archive-table col.archive-col-amount { width: 7%; }
.full-archive-table col.archive-col-time { width: 13%; }
.full-archive-table col.archive-col-source { width: 8%; }
.full-archive-table col.archive-col-proof { width: 11%; }
.full-archive-table col.archive-col-id { width: 17%; }
.full-archive-table col.archive-col-actions { width: 11%; }
.full-archive-table th, .full-archive-table td { min-width: 0; padding: .58rem .45rem; overflow: hidden; }
.full-archive-table th:nth-child(3),
.full-archive-table td:nth-child(3),
.full-archive-table th:nth-child(7),
.full-archive-table td:nth-child(7),
.full-archive-table th:nth-child(8),
.full-archive-table td:nth-child(8),
.full-archive-table th:nth-child(10),
.full-archive-table td:nth-child(10) { text-align: center; }
.full-archive-table .username-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.full-archive-table .item-cell { min-width: 0; }
.full-archive-table .item-cell img { width: 29px; height: 29px; }
.full-archive-table .item-cell span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.full-archive-table .proof-thumb { width: 100%; max-width: 86px; height: 36px; margin-inline: auto; }
.full-archive-table .base64-code { max-width: 100%; }
.full-archive-table .row-actions { justify-content: center; gap: .3rem; }
.full-archive-table .row-actions .icon-button { width: 31px; height: 31px; }
.full-archive-table time { display: grid; gap: 2px; font-size: .7rem; white-space: nowrap; }
.full-archive-table time small { display: block; color: var(--muted); font-size: .62rem; }
.source-label { color: #b4c2c2; font-size: .7rem; white-space: nowrap; }
.rarity-text.common { color: var(--cyan); }
.rarity-text.uncommon { color: var(--blue); }
.rarity-text.rare { color: var(--purple); }
.rarity-text.very-rare { color: var(--orange); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; color: var(--muted); font-size: .75rem; }
.pagination a { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pagination a:hover { border-color: var(--line-strong); color: var(--cyan); }

/* Items */
.items-hero-grid { min-height: 275px; padding: 25px 0 20px 300px; display: grid; grid-template-columns: minmax(360px, .78fr) 1.4fr; gap: 40px; align-items: center; }
.items-hero-grid > div:first-child p { max-width: 520px; margin-bottom: 0; font-size: .85rem; }
.items-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.items-summary-grid article { min-height: 142px; padding: 1rem; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .3rem; border: 1px solid var(--line-strong); border-radius: 9px; background: rgba(5, 22, 29, .86); text-align: center; }
.items-summary-grid article > small { color: #b8c5c4; font-size: .68rem; }
.items-summary-grid article > div { display: flex; align-items: center; gap: .65rem; }
.items-summary-grid article .icon { width: 36px; height: 36px; color: var(--cyan); }
.items-summary-grid article strong { color: var(--gold); font-family: var(--serif); font-size: 1.7rem; }
.items-summary-grid article > img { width: 45px; height: 45px; object-fit: contain; }
.items-summary-grid article > span { color: var(--muted); font-size: .61rem; }
.items-summary-grid article > img + strong { color: var(--text); font-family: var(--sans); font-size: .85rem; }
.items-page { padding: 16px 0 25px; }
.item-filter-bar { padding: .85rem 1rem; display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(5, minmax(125px, auto)) auto auto; align-items: center; gap: .65rem; margin-bottom: 14px; }
.item-filter-bar .search-field input, .item-filter-bar select { width: 100%; }
.item-filter-bar .clear-link { justify-self: end; white-space: nowrap; }
.items-content-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr); gap: 14px; align-items: start; }
.all-items-panel { padding: 1rem; min-width: 0; }
.compact-heading h2 { margin: .25rem 0 0; color: var(--cyan); font-family: var(--sans); font-size: .8rem; font-weight: 700; }
.reward-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.reward-card { position: relative; min-height: 195px; padding: .9rem; display: grid; align-content: start; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: linear-gradient(145deg, rgba(8, 33, 41, .9), rgba(4, 18, 24, .9)); text-decoration: none; overflow: hidden; transition: transform .2s, border-color .2s; }
.reward-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.reward-card::after { content: ""; position: absolute; inset: auto 0 0; height: 45px; opacity: .11; background: linear-gradient(to top, var(--cyan), transparent); pointer-events: none; }
.reward-card.rarity-rare::after { background: linear-gradient(to top, var(--purple), transparent); }
.reward-card.rarity-very-rare::after { background: linear-gradient(to top, var(--orange), transparent); }
.reward-card.rarity-uncommon::after { background: linear-gradient(to top, var(--blue), transparent); }
.reward-card-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .75rem; }
.reward-card-head img { width: 46px; height: 46px; object-fit: contain; }
.reward-card-head > div { min-width: 0; }
.reward-card-head strong { display: block; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.rarity-badge { display: inline-block; margin-top: .28rem; padding: .17rem .38rem; border: 1px solid currentColor; border-radius: 4px; font-size: .58rem; font-weight: 700; }
.rarity-badge.common { color: #54e6bd; background: rgba(37, 197, 146, .08); }
.rarity-badge.uncommon { color: var(--blue); background: rgba(87, 191, 255, .08); }
.rarity-badge.rare { color: var(--purple); background: rgba(205, 117, 255, .08); }
.rarity-badge.very-rare { color: var(--orange); background: rgba(255, 127, 46, .08); }
.reward-card > b { color: var(--gold); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.reward-card > small { color: var(--muted); font-size: .61rem; }
.reward-card .drop-count { margin-top: .55rem; font-size: .83rem; }
.sparkline { width: 100%; height: 30px; margin-top: .45rem; overflow: visible; }
.sparkline polyline { fill: none; stroke: var(--cyan); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.sparkline.uncommon polyline { stroke: var(--blue); }
.sparkline.rare polyline { stroke: var(--purple); }
.sparkline.very-rare polyline { stroke: var(--orange); }
.card-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: var(--muted); font-size: .68rem; }
.card-pagination nav { display: flex; gap: .4rem; align-items: center; }
.page-number { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; }
.page-number.active { color: var(--cyan); border-color: var(--line-strong); background: rgba(24, 166, 165, .1); }
.card-pagination form label { display: flex; align-items: center; gap: .5rem; }
.card-pagination select { min-height: 34px; }
.featured-column { display: grid; gap: 12px; }
.featured-item-card { padding: 1rem; }
.featured-item-main { display: grid; grid-template-columns: 110px 1fr; gap: 1.1rem; align-items: center; margin: .8rem 0 1rem; }
.featured-item-main > img { width: 105px; height: 105px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(71,239,227,.13)); }
.featured-item-main h2 { display: inline; margin-right: .5rem; font-family: var(--sans); font-size: 1.15rem; }
.featured-item-main p { margin: .7rem 0 0; font-size: .72rem; line-height: 1.55; }
.featured-stats { display: grid; grid-template-columns: 1fr 1fr 1.3fr; align-items: end; gap: .6rem; margin-bottom: .9rem; }
.featured-stats small, .featured-stats strong { display: block; }
.featured-stats small { color: var(--muted); font-size: .6rem; }
.featured-stats strong { color: var(--gold); font-family: var(--serif); font-size: 1.35rem; }
.featured-item-card > .button { width: 100%; }
.featured-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-list-card { min-width: 0; padding: .8rem; }
.mini-list-heading { margin-bottom: .55rem; }
.mini-list-heading a, .mini-list-heading > span:last-child { color: #83b9b8; font-size: .6rem; text-decoration: none; }
.history-row, .contributor-mini-row { display: grid; align-items: center; gap: .45rem; padding: .45rem 0; border-bottom: 1px solid rgba(94,224,221,.09); color: #c8d0cf; text-decoration: none; }
.history-row:last-child, .contributor-mini-row:last-child { border-bottom: 0; }
.history-row { grid-template-columns: 43px 1fr; font-size: .6rem; }
.history-row time { color: var(--muted); }
.history-row b { color: var(--gold); }
.contributor-mini-row { grid-template-columns: 22px 30px minmax(0,1fr) auto; font-size: .62rem; }
.rank-dot { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #102126; background: var(--gold); font-weight: 900; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid hsla(var(--avatar-hue), 80%, 70%, .55); border-radius: 50%; color: hsl(var(--avatar-hue), 85%, 82%); background: hsla(var(--avatar-hue), 55%, 25%, .65); font-size: .57rem; font-weight: 900; }
.contributor-mini-row small { color: var(--muted); }

/* About */
.about-hero { min-height: 260px; }
.about-hero-copy { min-height: 260px; padding: 30px 560px 26px 100px; }
.about-hero-copy p { max-width: 650px; margin-bottom: 0; font-size: .9rem; }
.about-page { padding: 16px 0 25px; }
.how-it-works { display: grid; grid-template-columns: minmax(0, 1fr) 270px; overflow: hidden; }
.how-main { padding: 1rem 1.2rem; }
.process-grid { display: grid; grid-template-columns: repeat(7, auto); align-items: stretch; gap: 8px; margin-top: .5rem; }
.process-grid article { position: relative; width: min(205px, 15vw); min-width: 155px; padding: 1rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(5, 24, 31, .72); text-align: center; }
.step-number { position: absolute; left: .65rem; top: .65rem; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--cyan); background: rgba(24, 166, 165, .12); font-size: .7rem; font-weight: 800; }
.process-icon { display: grid; place-items: center; height: 62px; color: var(--cyan); filter: drop-shadow(0 0 12px rgba(71,239,227,.25)); }
.process-icon .icon { width: 53px; height: 53px; }
.process-grid h2 { margin: .55rem 0 .45rem; font-family: var(--sans); font-size: .85rem; }
.process-grid p { margin: 0; color: #9fb0b1; font-size: .64rem; line-height: 1.5; }
.process-arrow { align-self: center; color: var(--cyan); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.principle-grid article { padding: .85rem; display: grid; grid-template-columns: 55px 1fr; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(5, 24, 31, .6); }
.principle-grid article > .icon { width: 50px; height: 50px; color: var(--cyan); filter: drop-shadow(0 0 10px rgba(71,239,227,.25)); }
.principle-grid h3 { font-size: .75rem; }
.principle-grid p { margin: 0; font-size: .61rem; line-height: 1.45; }
.community-trust-card { padding: 1rem; border-left: 1px solid var(--line); background: rgba(7, 27, 34, .68); }
.community-trust-card > div { min-height: 61px; display: grid; grid-template-columns: 45px 45px 1fr; align-items: center; gap: .45rem; padding: .55rem .65rem; margin-top: .65rem; border: 1px solid var(--line); border-radius: 7px; background: rgba(3, 16, 22, .55); }
.community-trust-card .metric-icon { width: 43px; height: 43px; }
.community-trust-card .metric-icon .icon { width: 34px; height: 34px; }
.community-trust-card strong { color: var(--gold); font-family: var(--serif); font-size: 1.35rem; }
.community-trust-card p { margin: 0; color: #e5eceb; font-size: .66rem; line-height: 1.2; }
.community-trust-card p small { display: block; margin-top: .2rem; color: var(--muted); font-size: .55rem; }
.live-indicator { display: block; margin-top: .7rem; color: var(--muted); font-size: .58rem; }
.live-indicator i { display: inline-block; width: 6px; height: 6px; margin-right: .3rem; border-radius: 50%; background: #23e79e; box-shadow: 0 0 9px #23e79e; }
.about-lower-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; margin-top: 14px; }
.companion-card { padding: 1rem 1.2rem; display: grid; grid-template-columns: 100px 1fr; gap: 1rem; align-items: center; overflow: hidden; }
.alt1-mark { display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--cyan); background: rgba(5, 25, 32, .8); font-size: 3.2rem; font-weight: 800; filter: drop-shadow(0 0 14px rgba(71,239,227,.18)); }
.alt1-mark span { display: block; margin-top: -1rem; font-size: .8rem; }
.companion-card h2 { margin: .25rem 0 .3rem; font-size: 1.4rem; }
.companion-card p { margin-bottom: .75rem; font-size: .7rem; line-height: 1.55; }
.faq-card { padding: 1rem 1.2rem; }
.faq-card details { border-bottom: 1px solid rgba(94,224,221,.11); }
.faq-card details:last-child { border-bottom: 0; }
.faq-card summary { display: flex; justify-content: space-between; align-items: center; padding: .65rem .6rem; list-style: none; color: #dce5e5; font-size: .7rem; cursor: pointer; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary .icon { transition: transform .2s; }
.faq-card details[open] summary .icon { transform: rotate(90deg); }
.faq-card details p { padding: 0 .6rem .75rem; margin: 0; font-size: .65rem; line-height: 1.5; }

/* Contributors */
.contributors-hero-grid { min-height: 275px; padding: 25px 0 20px 360px; display: grid; grid-template-columns: minmax(420px, 1fr) 470px; gap: 50px; align-items: center; }
.contributors-intro p { max-width: 590px; margin-bottom: 0; font-size: .82rem; }
.contributor-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.contributor-stat-grid article { min-height: 98px; padding: .8rem; display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: .7rem; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(5, 22, 29, .86); }
.contributor-stat-grid small, .contributor-stat-grid span { display: block; color: var(--muted); font-size: .62rem; }
.contributor-stat-grid strong { display: block; margin: .12rem 0; color: var(--gold); font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.contributors-page { padding: 16px 0 25px; display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; align-items: start; }
.leaderboard-card { padding: 1rem; min-width: 0; }
.leaderboard-head, .leaderboard-row { display: grid; grid-template-columns: 38px minmax(180px, 1.5fr) .7fr .6fr minmax(145px, 1fr) 90px; align-items: center; gap: .7rem; }
.leaderboard-head { padding: .7rem .65rem; color: #8ca2a4; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.leaderboard-row { min-height: 48px; padding: .4rem .65rem; border-top: 1px solid rgba(94,224,221,.1); color: #d4dcdc; font-size: .68rem; text-decoration: none; }
.leaderboard-row:hover { background: rgba(30, 199, 194, .035); }
.leader-rank { display: grid; place-items: center; width: 25px; height: 25px; }
.leader-rank.medal { border-radius: 50%; color: #352700; background: var(--gold); box-shadow: 0 0 12px rgba(243,199,96,.22); font-weight: 900; }
.leader-rank.medal-2 { color: #1d2526; background: #c4d0cf; }
.leader-rank.medal-3 { color: #2b1607; background: #be7d42; }
.leader-user { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.leader-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verified-badge { padding: .18rem .32rem; border: 1px solid rgba(71,239,227,.3); border-radius: 4px; color: var(--cyan); font-size: .5rem; }
.favorite-reward { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.favorite-reward img { width: 28px; height: 28px; object-fit: contain; }
.favorite-reward { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-row time { color: var(--muted); font-size: .6rem; white-space: nowrap; }
.leaderboard-more { width: 220px; margin: .9rem auto 0; display: flex; }
.contributor-side-column { display: grid; gap: 14px; min-width: 0; }
.activity-card, .recent-uploads-card { padding: 1rem; }
.heatmap-months { display:grid; grid-template-columns:repeat(var(--week-count, 12), 9px); column-gap:3px; margin:.7rem 0 .35rem 37px; color:#899b9d; font-size:.55rem; line-height:1; }
.heatmap-months span { justify-self:start; white-space:nowrap; }
.heatmap-shell { display: grid; grid-template-columns: 30px minmax(0,max-content); gap: 7px; align-items:start; }
.heatmap-days { display:grid; grid-template-rows:repeat(7, 9px); row-gap:3px; padding-top:0; color:#829697; font-size:.5rem; line-height:9px; }
.heatmap-days span:nth-child(1) { grid-row: 1; }
.heatmap-days span:nth-child(2) { grid-row: 3; }
.heatmap-days span:nth-child(3) { grid-row: 5; }
.heatmap { display: grid; grid-template-rows: repeat(7, 9px); grid-auto-flow: column; grid-auto-columns: 9px; gap: 3px; overflow: hidden; }
.heatmap span, .heatmap-legend i { width: 9px; height: 9px; border-radius: 2px; background: #0b333a; }
.heatmap .level-1, .heatmap-legend .level-1 { background: #0c555b; }
.heatmap .level-2, .heatmap-legend .level-2 { background: #087a7c; }
.heatmap .level-3, .heatmap-legend .level-3 { background: #08aaa7; }
.heatmap .level-4, .heatmap-legend .level-4 { background: #28d9d0; }
.heatmap .level-5, .heatmap-legend .level-5 { background: #77fff4; box-shadow: 0 0 5px rgba(71,239,227,.28); }
.heatmap-legend { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: .7rem; color: var(--muted); font-size: .5rem; }
.activity-footer { display: flex; justify-content: space-between; margin-top: .75rem; color: #819598; font-size: .56rem; }
.upload-row { display: grid; grid-template-columns: 48px 28px minmax(70px,.8fr) minmax(120px,1.2fr) 80px auto; align-items: center; gap: .45rem; min-height: 43px; padding: .35rem 0; border-bottom: 1px solid rgba(94,224,221,.09); color: #c7d0cf; font-size: .58rem; text-decoration: none; }
.upload-row:last-child { border-bottom: 0; }
.upload-row time { color: var(--muted); }
.upload-item { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.upload-item img { width: 27px; height: 27px; object-fit: contain; }
.upload-item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row button { justify-self: end; }
.contributor-cta { min-height: 100px; padding: 1rem 1.2rem; display: grid; grid-template-columns: 80px minmax(250px,1fr) 1.8fr auto; gap: 1rem; align-items: center; }
.cta-orb { display: grid; place-items: center; width: 67px; height: 67px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--cyan); box-shadow: inset 0 0 25px rgba(71,239,227,.09), 0 0 20px rgba(71,239,227,.08); }
.cta-orb .icon { width: 35px; height: 35px; }
.contributor-cta > div:nth-child(2) > span { color: var(--cyan); font-size: .68rem; }
.contributor-cta h2 { margin: .3rem 0 0; font-size: 1.35rem; }
.contributor-cta ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.contributor-cta li { display: grid; grid-template-columns: 35px 1fr; gap: .5rem; align-items: center; }
.contributor-cta li > .icon { width: 31px; height: 31px; padding: 6px; border: 1px solid var(--line); border-radius: 50%; color: var(--cyan); }
.contributor-cta li strong, .contributor-cta li small { display: block; }
.contributor-cta li strong { font-size: .62rem; }
.contributor-cta li small { margin-top: .15rem; color: var(--muted); font-size: .52rem; }

@media (max-width: 1300px) {
    .header-inner { grid-template-columns: 240px 1fr 220px; }
    .site-nav { gap: 1.4rem; }
    .hero-layout { padding-left: 285px; grid-template-columns: 1fr 400px; gap: 30px; }
    .hero-art-wrap { width: 460px; left: -20px; }
    .archive-hero-grid { padding-left: 225px; grid-template-columns: minmax(280px,1fr) 360px 285px; }
    .items-hero-grid { padding-left: 240px; gap: 25px; }
    .contributors-hero-grid { padding-left: 285px; }
    .about-hero-copy { padding-left: 45px; padding-right: 500px; }
    .item-filter-bar { grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, auto)); }
    .item-filter-bar label:nth-of-type(5), .item-filter-bar label:nth-of-type(6) { display: none; }
    .reward-card-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { overflow-x: auto; padding-bottom: .4rem; }
    .process-grid article { width: 190px; min-width: 190px; }
}

@media (max-width: 1050px) {
    .page-container, .header-inner, .footer-inner { width: min(100% - 28px, 1420px); }
    .site-header { height: 66px; }
    .header-inner { grid-template-columns: 1fr auto auto; }
    .mobile-menu-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: rgba(5,22,29,.85); }
    .site-nav { position: absolute; left: 14px; right: 14px; top: 72px; height: auto; display: none; padding: .65rem; border: 1px solid var(--line-strong); border-radius: 9px; background: #061820; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
    .site-nav.open { display: grid; }
    .site-nav a { min-height: 42px; border-radius: 6px; }
    .site-nav a:hover { background: rgba(71,239,227,.06); }
    .site-nav a::after { display: none; }
    .header-install { justify-self: end; }
    .home-hero { min-height: auto; }
    .hero-layout { padding: 35px 0 30px 230px; grid-template-columns: 1fr; }
    .hero-art-wrap { width: 420px; left: -70px; opacity: .84; }
    .hero-metrics { grid-template-columns: repeat(4, 1fr); }
    .metric-card { min-height: 95px; grid-template-columns: 1fr; text-align: center; }
    .metric-card .metric-icon { display: none; }
    .metric-card strong { font-size: 1.65rem; }
    .top-item-grid { grid-template-columns: repeat(2, 1fr); }
    .database-toolbar { grid-template-columns: 1fr; }
    .quick-filters { flex-wrap: wrap; }
    .archive-hero-grid { padding: 30px 0 25px 230px; grid-template-columns: 1fr 1fr; }
    .archive-intro { grid-column: 1 / -1; }
    .chart-card { min-height: 220px; }
    .archive-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .filter-panel form { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
    .filter-title, .filter-submit { grid-column: 1 / -1; }
    .switch-row { margin: 0; }
    .items-hero-grid { padding: 30px 0 25px 230px; grid-template-columns: 1fr; }
    .items-summary-grid { grid-template-columns: repeat(4, 1fr); }
    .items-content-grid { grid-template-columns: 1fr; }
    .reward-card-grid { grid-template-columns: repeat(3, 1fr); }
    .featured-column { grid-template-columns: 1fr; }
    .featured-lists { grid-template-columns: 1fr 1fr; }
    .about-hero-copy { padding-right: 400px; }
    .how-it-works { grid-template-columns: 1fr; }
    .community-trust-card { border-top: 1px solid var(--line); border-left: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
    .community-trust-card > .eyebrow, .community-trust-card > .live-indicator { grid-column: 1 / -1; }
    .community-trust-card > div { margin-top: 0; grid-template-columns: 36px 38px 1fr; }
    .about-lower-grid { grid-template-columns: 1fr; }
    .contributors-hero-grid { padding: 30px 0 25px 230px; grid-template-columns: 1fr; }
    .contributor-stat-grid { grid-template-columns: repeat(4, 1fr); }
    .contributor-stat-grid article { grid-template-columns: 1fr; text-align: center; }
    .contributor-stat-grid .metric-icon { display: none; }
    .contributors-page { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    h1 { font-size: clamp(2.45rem, 12vw, 3.7rem); }
    .header-install span { display: none; }
    .header-install { width: 42px; padding: 0; }
    .brand-copy strong { font-size: 1.05rem; }
    .brand-copy small { display: none; }
    .hero-art-wrap { width: 420px; left: 50%; top: -30px; height: 260px; transform: translateX(-50%); opacity: .5; }
    .hero-art-wrap.art-right { right: auto; left: 50%; transform: translateX(-50%) scaleX(-1); }
    .hero-layout, .archive-hero-grid, .items-hero-grid, .contributors-hero-grid, .about-hero-copy { padding: 220px 0 24px; display: block; text-align: center; }
    .hero-copy p, .archive-intro p, .items-hero-grid > div:first-child p, .contributors-intro p, .about-hero-copy p { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-metrics { grid-template-columns: repeat(2, 1fr); margin-top: 1.2rem; text-align: left; }
    .metric-card { text-align: center; }
    .top-item-grid { grid-template-columns: 1fr; }
    .proof-preview { max-width: 320px; }
    .footer-inner { grid-template-columns: 1fr; padding: 1.5rem 0; text-align: center; }
    .footer-brand, .footer-actions { justify-self: center; }
    .archive-stat-grid, .items-summary-grid, .contributor-stat-grid { grid-template-columns: repeat(2, 1fr); margin-top: 1rem; }
    .chart-card { margin-top: 1rem; text-align: left; }
    .filter-panel form { grid-template-columns: 1fr 1fr; }
    .results-toolbar { align-items: flex-start; flex-direction: column; }
    .item-filter-bar { grid-template-columns: 1fr 1fr; }
    .item-filter-bar .search-field, .item-filter-bar .clear-link { grid-column: 1 / -1; }
    .item-filter-bar label:nth-of-type(5), .item-filter-bar label:nth-of-type(6) { display: block; }
    .reward-card-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-lists { grid-template-columns: 1fr; }
    .community-trust-card { grid-template-columns: 1fr 1fr; text-align: left; }
    .process-grid { justify-content: start; }
    .principle-grid { grid-template-columns: 1fr; }
    .about-lower-grid { grid-template-columns: 1fr; }
    .leaderboard-head { display: none; }
    .leaderboard-row { grid-template-columns: 32px minmax(150px,1fr) auto; padding: .65rem .3rem; }
    .leaderboard-row > :nth-child(4), .leaderboard-row > :nth-child(5), .leaderboard-row > :nth-child(6) { display: none; }
    .upload-row { grid-template-columns: 45px 28px 1fr auto; }
    .upload-row .upload-item { grid-column: 3; }
    .upload-row > span:nth-last-child(2) { display: none; }
    .contributor-cta { grid-template-columns: 65px 1fr; }
    .contributor-cta ul, .contributor-cta > .button { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
    .page-container, .header-inner, .footer-inner { width: min(100% - 18px, 1420px); }
    .brand-mark { width: 34px; height: 40px; }
    .button-large { width: 100%; }
    .hero-metrics, .archive-stat-grid, .items-summary-grid, .contributor-stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .metric-card { padding: .75rem; }
    .top-item { grid-template-columns: 42px minmax(0,1fr) auto; }
    .database-panel, .totals-strip { padding: .8rem; }
    .quick-filters { display: grid; grid-template-columns: 1fr 1fr; }
    .quick-filters .search-field { grid-column: 1 / -1; width: 100%; }
    .archive-layout { padding-top: 10px; }
    .filter-panel form { grid-template-columns: 1fr; }
    .filter-title, .filter-submit { grid-column: 1; }
    .pagination-compact > span:first-child { display: none; }
    .item-filter-bar { grid-template-columns: 1fr; }
    .item-filter-bar .search-field, .item-filter-bar .clear-link { grid-column: 1; }
    .reward-card-grid { grid-template-columns: 1fr; }
    .card-pagination { align-items: flex-start; flex-direction: column; }
    .featured-item-main { grid-template-columns: 80px 1fr; }
    .featured-item-main > img { width: 78px; height: 78px; }
    .featured-stats { grid-template-columns: 1fr 1fr; }
    .featured-stats .sparkline { grid-column: 1 / -1; }
    .community-trust-card { grid-template-columns: 1fr; }
    .companion-card { grid-template-columns: 1fr; text-align: center; }
    .alt1-mark { margin-inline: auto; }
    .contributor-stat-grid { grid-template-columns: 1fr 1fr; }
    .heatmap { overflow-x: auto; }
    .contributor-cta { grid-template-columns: 1fr; text-align: center; }
    .cta-orb { margin-inline: auto; }
    .contributor-cta ul { grid-template-columns: 1fr; text-align: left; }
}

/* v3.1 functional controls */
.button-ghost { color: var(--muted); background: transparent; }
.button-ghost:hover { color: var(--cyan); background: rgba(71,239,227,.04); }
.result-count { display: inline-flex; margin-top: .35rem; }
.pagination .page-number { padding: 0; }
.pagination .page-number.active { color: var(--cyan); border-color: var(--line-strong); background: rgba(24,166,165,.1); }

.proof-dialog-body { padding: 1rem 1rem 0; }
.proof-dialog-body img { width: 100%; max-height: 70vh; object-fit: contain; border: 1px solid var(--line); border-radius: 7px; background: #000; }
.proof-dialog-body p { margin: .75rem 0 0; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.dialog-footer { display: flex; justify-content: flex-end; gap: .65rem; padding: 1rem; }

.filter-preset-tools { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.filter-preset-tools > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.filter-preset-tools .button { min-width: 0; padding-inline: .35rem; }
.active-filter-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .8rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .25rem; min-height: 28px; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: #bcd0cf; background: rgba(12,43,51,.55); font-size: .62rem; text-decoration: none; }
.filter-chip:hover { color: var(--cyan); border-color: var(--line-strong); }
.filter-chip .icon { width: 12px; height: 12px; }
.filter-chip.clear-chip { color: var(--gold); }

.leaderboard-toolbar { display: grid; grid-template-columns: minmax(190px,1fr) 170px 120px auto auto; gap: .5rem; align-items: center; margin: .8rem 0 .4rem; }
.leaderboard-toolbar .search-field { width: 100%; }
.leaderboard-summary { color: var(--muted); font-size: .62rem; padding: .3rem .65rem; }
.leaderboard-pagination { margin-top: .9rem; }
.mini-list-heading form { margin: 0; }
.mini-list-heading select { min-height: 30px; padding: .25rem 1.8rem .25rem .55rem; font-size: .58rem; }
.upload-row a { color: inherit; text-decoration: none; min-width: 0; }
.upload-row a:hover { color: var(--cyan); }

@media (max-width: 1050px) {
    .filter-preset-tools { grid-column: 1 / -1; }
    .leaderboard-toolbar { grid-template-columns: 1fr 1fr 1fr auto; }
    .leaderboard-toolbar .search-field { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .leaderboard-toolbar { grid-template-columns: 1fr 1fr; }
    .leaderboard-toolbar .search-field { grid-column: 1 / -1; }
    .leaderboard-toolbar .button { width: 100%; }
    .active-filter-chips { margin-top: .2rem; }
}

@media (max-width: 520px) {
    .filter-preset-tools > div { grid-template-columns: 1fr; }
    .leaderboard-toolbar { grid-template-columns: 1fr; }
    .leaderboard-toolbar .search-field { grid-column: 1; }
    .dialog-footer { flex-direction: column; }
    .dialog-footer .button { width: 100%; }
}

/* v3.1.1 archive table: no horizontal scrollbar, card rows on small screens */
@media (max-width: 760px) {
    .archive-table-wrap { overflow: visible; border: 0; background: transparent; }
    .full-archive-table,
    .full-archive-table tbody,
    .full-archive-table tr,
    .full-archive-table td { display: block; width: 100%; }
    .full-archive-table colgroup,
    .full-archive-table thead { display: none; }
    .full-archive-table tbody { display: grid; gap: .75rem; }
    .full-archive-table tbody tr { padding: .72rem; border: 1px solid var(--line); border-radius: 9px; background: rgba(2, 13, 19, .78); }
    .full-archive-table tbody tr:hover { background: rgba(7, 30, 37, .82); }
    .full-archive-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: .65rem; padding: .45rem 0; overflow: visible; border-bottom: 1px solid rgba(94, 224, 221, .08); text-align: left !important; }
    .full-archive-table td:last-child { border-bottom: 0; }
    .full-archive-table td::before { content: attr(data-label); color: #80999b; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .full-archive-table .username-chip { justify-self: start; }
    .full-archive-table .item-cell { width: 100%; }
    .full-archive-table .item-cell span { white-space: normal; }
    .full-archive-table .proof-thumb { width: min(100%, 270px); max-width: 270px; height: 44px; margin: 0; }
    .full-archive-table .base64-code { overflow-wrap: anywhere; white-space: normal; }
    .full-archive-table .row-actions { justify-content: flex-start; }
    .full-archive-table td[colspan] { display: block; }
    .full-archive-table td[colspan]::before { display: none; }
}


/* v3.2.1 contributor toolbar: contained controls with no overlap */
.leaderboard-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: .65rem;
    align-items: center;
    margin: .8rem 0 .4rem;
    min-width: 0;
}
.leaderboard-toolbar > *,
.leaderboard-controls > *,
.leaderboard-select { min-width: 0; }
.leaderboard-search { width: 100%; }
.leaderboard-controls {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(125px, 145px) max-content max-content;
    gap: .5rem;
    align-items: center;
    min-width: 0;
}
.leaderboard-select { display: block; width: 100%; }
.leaderboard-select select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-overflow: ellipsis;
}
.leaderboard-controls .button {
    min-width: 0;
    white-space: nowrap;
    align-self: stretch;
}

@media (max-width: 1100px) {
    .leaderboard-toolbar { grid-template-columns: 1fr; }
    .leaderboard-controls {
        grid-template-columns: minmax(180px, 1fr) minmax(125px, .65fr) max-content max-content;
    }
}

@media (max-width: 700px) {
    .leaderboard-controls { grid-template-columns: 1fr 1fr; }
    .leaderboard-controls .button { width: 100%; }
}

@media (max-width: 460px) {
    .leaderboard-controls { grid-template-columns: 1fr; }
}

/* v3.3 Weird Gloop cached Grand Exchange pricing */
.price-cache-note { display: flex; align-items: center; gap: .45rem; margin: .7rem 0 0; color: var(--muted); font-size: .66rem; }
.price-cache-note .icon { width: 15px; height: 15px; color: var(--gold); flex: 0 0 auto; }

.gp-value { color: var(--gold); white-space: nowrap; }
.reward-card .reward-value { margin-top: .55rem; font-size: .92rem; }
.reward-card { min-height: 230px; }
.market-value-card { grid-column: 1 / -1; min-height: 88px; }
.market-value-card strong { font-size: 2.15rem; }
.top-item b { min-width: 78px; text-align: right; font-size: 1.08rem; }
.full-archive-table col.archive-col-user { width: 11%; }
.full-archive-table col.archive-col-item { width: 17%; }
.full-archive-table col.archive-col-amount { width: 6%; }
.full-archive-table col.archive-col-price { width: 8%; }
.full-archive-table col.archive-col-value { width: 8%; }
.full-archive-table col.archive-col-time { width: 11%; }
.full-archive-table col.archive-col-source { width: 7%; }
.full-archive-table col.archive-col-proof { width: 9%; }
.full-archive-table col.archive-col-id { width: 14%; }
.full-archive-table col.archive-col-actions { width: 9%; }
.full-archive-table th:nth-child(4),
.full-archive-table td:nth-child(4),
.full-archive-table th:nth-child(5),
.full-archive-table td:nth-child(5) { text-align: right; }
.featured-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.featured-stats .sparkline { grid-column: 1 / -1; }

@media (max-width: 760px) {
    .top-item b { min-width: 0; }
}


.proof-verified, .proof-transcript { margin-top: .8rem; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 29, 38, .72); }
.proof-verified span, .proof-transcript span { display: block; margin-bottom: .3rem; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proof-verified strong { color: var(--text); font-size: 1rem; }
.proof-transcript p { margin: 0; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }

/* Seren Spirits 4.0 public analytics, status, feedback, and administration */
.site-nav { gap: clamp(.65rem, 1.35vw, 1.65rem); }
.button-row { display:flex; flex-wrap:wrap; gap:.55rem; }
.narrow-page { width:min(820px,calc(100% - 48px)); }
.home-enhancement-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr); gap:1rem; margin-bottom:1rem; }
.rare-home-panel,.milestone-panel { min-width:0; }
.rare-spotlight-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(225px,1fr)); gap:.65rem; margin-top:1rem; }
.rare-spotlight-grid > a { display:flex; align-items:center; gap:.75rem; min-width:0; padding:.75rem; border:1px solid var(--line); border-radius:9px; background:rgba(8,30,38,.66); text-decoration:none; }
.rare-spotlight-grid > a:hover { border-color:var(--line-strong); transform:translateY(-1px); }
.rare-spotlight-grid img { width:44px; height:44px; object-fit:contain; flex:0 0 auto; }
.rare-spotlight-grid b,.rare-spotlight-grid small { display:block; }
.rare-spotlight-grid small { margin-top:.2rem; color:var(--muted); font-size:.7rem; line-height:1.4; }
.milestone-list { display:grid; gap:.8rem; margin-top:1rem; }
.milestone-row > div { display:flex; justify-content:space-between; gap:1rem; margin-bottom:.38rem; font-size:.8rem; }
.milestone-row small { color:var(--muted); white-space:nowrap; }
.milestone-row > span { display:block; height:7px; overflow:hidden; border:1px solid var(--line); border-radius:999px; background:rgba(0,0,0,.25); }
.milestone-row > span i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--cyan-deep),var(--cyan)); box-shadow:0 0 14px rgba(71,239,227,.3); }
.milestone-row.complete b { color:var(--cyan-bright); }

.analytics-filter > div { display:flex; flex-wrap:wrap; align-items:end; gap:.65rem; }
.analytics-filter label { display:grid; gap:.3rem; color:var(--muted); font-size:.72rem; }
.analytics-filter input,.analytics-filter select,.lookup-form input,.admin-dashboard input,.admin-dashboard select,.admin-dashboard textarea,.admin-login input { min-height:40px; padding:.6rem .7rem; border:1px solid var(--line); border-radius:7px; color:var(--text); background:rgba(4,18,24,.88); }
.analytics-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.bar-chart { display:flex; align-items:end; gap:4px; min-height:150px; padding-top:1rem; overflow-x:auto; }
.bar-chart.tall { min-height:230px; }
.bar-column { display:grid; grid-template-rows:1fr auto; align-items:end; min-width:16px; height:200px; flex:1 0 16px; }
.bar-column span { display:block; min-height:3px; border-radius:4px 4px 0 0; background:linear-gradient(to top,var(--cyan-deep),var(--cyan)); }
.value-chart .bar-column span { background:linear-gradient(to top,#846719,var(--gold)); }
.bar-column small { padding-top:.35rem; color:var(--muted-2); font-size:.55rem; writing-mode:vertical-rl; }
.horizontal-chart { display:grid; gap:.8rem; margin-top:1rem; }
.horizontal-chart a { position:relative; display:grid; gap:.35rem; padding-bottom:.42rem; text-decoration:none; }
.horizontal-chart a > div { display:flex; justify-content:space-between; gap:1rem; font-size:.8rem; }
.horizontal-chart small { color:var(--muted); }
.horizontal-chart a > span { display:block; height:5px; border-radius:999px; background:linear-gradient(90deg,var(--cyan-deep),var(--cyan)); }
.timeline-list { display:grid; gap:.45rem; margin-top:1rem; }
.timeline-list div { display:flex; justify-content:space-between; padding:.65rem .75rem; border-bottom:1px solid var(--line); }
.timeline-list time { color:var(--muted); }
.export-panel { display:flex; align-items:center; justify-content:space-between; gap:1rem; }

.item-detail-heading { display:flex; align-items:center; gap:1.25rem; }
.item-detail-heading img { width:86px; height:86px; object-fit:contain; }
.profile-metrics { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.distribution-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:.65rem; margin-top:1rem; }
.distribution-row { display:grid; grid-template-columns:45px 1fr auto; align-items:center; gap:.75rem; padding:.75rem; border:1px solid var(--line); border-radius:9px; text-decoration:none; background:rgba(8,30,38,.62); }
.distribution-row img { width:42px; height:42px; object-fit:contain; }
.distribution-row small { display:block; color:var(--muted); margin-top:.2rem; }

.status-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:1rem; }
.system-card { border-top:3px solid var(--cyan); }
.system-card.status-degraded { border-top-color:var(--gold); }
.system-card.status-outage { border-top-color:var(--danger); }
.system-card-head { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.65rem; }
.system-card-head h2 { margin:0; font-size:1.25rem; }
.system-card-head b { font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; }
.system-dot { width:10px; height:10px; border-radius:50%; background:var(--cyan); box-shadow:0 0 12px var(--cyan); }
.status-degraded .system-dot { background:var(--gold); box-shadow:0 0 12px var(--gold); }
.status-outage .system-dot { background:var(--danger); box-shadow:0 0 12px var(--danger); }
.status-detail { text-align:center; }
.lookup-form label { display:block; margin-bottom:.45rem; color:var(--muted); font-size:.78rem; }
.lookup-form > div { display:grid; grid-template-columns:1fr auto; gap:.55rem; }
.status-chip { display:inline-flex; align-items:center; min-height:27px; padding:.25rem .55rem; border:1px solid var(--line-strong); border-radius:999px; color:var(--cyan-bright); background:rgba(16,80,82,.22); font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.status-chip.status-declined,.status-chip.status-closed,.status-chip.status-rejected { color:#ffbdc0; border-color:rgba(255,141,145,.35); background:rgba(120,25,30,.22); }
.status-chip.status-planned,.status-chip.status-fix-planned { color:#ffe6a1; border-color:rgba(243,199,96,.35); background:rgba(110,80,10,.22); }
.status-chip.status-implemented,.status-chip.status-fixed,.status-chip.status-applied,.status-chip.status-approved { color:#a6ffd7; border-color:rgba(83,230,164,.35); background:rgba(20,100,65,.22); }
.detail-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:.7rem; margin:1rem 0; }
.detail-list div { padding:.75rem; border:1px solid var(--line); border-radius:8px; }
.detail-list dt { color:var(--muted); font-size:.7rem; text-transform:uppercase; }
.detail-list dd { margin:.3rem 0 0; font-weight:700; }
.filter-pills,.admin-jump { display:flex; flex-wrap:wrap; gap:.45rem; }
.filter-pills a,.admin-jump a { padding:.48rem .75rem; border:1px solid var(--line); border-radius:999px; color:var(--muted); text-decoration:none; font-size:.75rem; }
.filter-pills a.active,.filter-pills a:hover,.admin-jump a:hover { color:var(--cyan-bright); border-color:var(--line-strong); background:rgba(30,105,108,.2); }
.suggestion-public-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:1rem; }
.suggestion-public-card { display:flex; flex-direction:column; }
.suggestion-public-card h2 { font-family:var(--sans); font-size:1rem; }
.suggestion-public-card p { flex:1; white-space:normal; overflow-wrap:anywhere; }
.suggestion-meta { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-bottom:.75rem; color:var(--muted); font-size:.68rem; }
.suggestion-public-card footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.5rem; padding-top:.75rem; border-top:1px solid var(--line); color:var(--muted); font-size:.7rem; }

.admin-hero .button { margin-top:.5rem; }
.admin-dashboard { padding-bottom:3rem; }
.admin-jump { position:sticky; top:83px; z-index:20; padding:.65rem; border:1px solid var(--line); border-radius:10px; background:rgba(2,12,17,.94); backdrop-filter:blur(14px); }
.admin-section { scroll-margin-top:145px; }
.admin-record { display:grid; grid-template-columns:minmax(260px,1fr) minmax(230px,.55fr); gap:.8rem; align-items:start; padding:1rem 0; border-bottom:1px solid var(--line); }
.admin-record:last-child { border-bottom:0; }
.admin-record p { margin:.45rem 0; font-size:.84rem; }
.admin-record small,.admin-record code { display:block; margin-top:.25rem; color:var(--muted); font-size:.68rem; overflow-wrap:anywhere; }
.admin-record form { display:flex; flex-wrap:wrap; gap:.4rem; justify-content:flex-end; }
.admin-record input,.admin-record select { min-width:150px; flex:1; }
.admin-record.severity-critical { border-left:3px solid #ff4450; padding-left:.8rem; }
.admin-record.severity-high { border-left:3px solid var(--orange); padding-left:.8rem; }
.button-danger { border-color:rgba(255,141,145,.45); color:#ffd2d4; background:rgba(100,22,28,.42); }
.compact-table { display:grid; gap:.35rem; }
.compact-table > div { display:grid; grid-template-columns:minmax(180px,1fr) minmax(150px,.5fr) minmax(220px,.8fr); gap:.7rem; align-items:center; padding:.65rem .75rem; border-bottom:1px solid var(--line); }
.compact-table span,.compact-table small { color:var(--muted); font-size:.72rem; }
.panel-subform,.remote-config-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; margin-top:1rem; }
.remote-config-form label,.panel-subform label,.admin-login label { display:grid; gap:.35rem; color:var(--muted); font-size:.75rem; }
.remote-config-form .wide { grid-column:1/-1; }
.remote-config-form textarea { min-height:100px; resize:vertical; }
.remote-config-form .check-row { display:flex; align-items:center; gap:.5rem; }
.remote-config-form .check-row input { min-height:0; width:auto; }
.admin-login { display:grid; gap:.75rem; }
.print-only { display:none; }

@media (max-width: 900px) {
  .home-enhancement-grid,.analytics-grid { grid-template-columns:1fr; }
  .admin-record { grid-template-columns:1fr; }
  .admin-record form { justify-content:flex-start; }
  .compact-table > div { grid-template-columns:1fr; gap:.2rem; }
  .panel-subform,.remote-config-form { grid-template-columns:1fr; }
  .remote-config-form .wide { grid-column:auto; }
  .export-panel { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 620px) {
  .page-container,.narrow-page { width:min(100% - 24px,1420px); }
  .lookup-form > div { grid-template-columns:1fr; }
  .suggestion-public-grid { grid-template-columns:1fr; }
  .item-detail-heading { align-items:flex-start; }
  .item-detail-heading img { width:58px; height:58px; }
  .milestone-row > div { display:grid; gap:.2rem; }
  .admin-jump { position:static; }
}
@media print {
  .site-header,.site-footer,.no-print,.proof-modal,.site-backdrop { display:none !important; }
  body { color:#000; background:#fff; }
  main { min-height:0; }
  .page-container.print-export { width:100%; margin:0; }
  .print-only { display:block; }
  .archive-table { color:#000; font-size:9pt; }
  .archive-table th,.archive-table td { border:1px solid #777; }
  a { color:#000; text-decoration:none; }
}
.export-builder { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.export-builder label { display:grid; gap:.35rem; color:var(--muted); font-size:.75rem; }
.export-builder input,.export-builder select { min-height:42px; padding:.65rem .7rem; border:1px solid var(--line); border-radius:7px; color:var(--text); background:rgba(4,18,24,.88); }
.export-builder .check-row { display:flex; align-items:center; gap:.5rem; }
.export-builder .check-row input { width:auto; min-height:0; }
.archive-toolbar-actions { margin-left:auto; }
@media(max-width:650px){.export-builder{grid-template-columns:1fr}.archive-toolbar-actions{margin-left:0}}
.admin-diagnostics { margin-top:.65rem; padding:.65rem .75rem; border:1px solid var(--line); border-radius:8px; background:rgba(3,16,21,.58); }
.admin-diagnostics summary { cursor:pointer; color:var(--cyan-bright); font-size:.75rem; font-weight:800; }
.admin-diagnostics h4 { margin:.75rem 0 .3rem; color:var(--muted); font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; }
.admin-diagnostics pre { max-height:260px; margin:.25rem 0; padding:.65rem; overflow:auto; border:1px solid var(--line); border-radius:6px; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--text); background:rgba(2,11,15,.82); font-size:.68rem; }
.admin-evidence-link { display:inline-flex !important; width:max-content; margin-top:.55rem; color:var(--cyan-bright) !important; }

/* v4.0.1 beta polish */
:root {
    --radius: 9px;
    --shadow: 0 18px 54px rgba(0, 0, 0, .24);
}
.page-container,
.header-inner { width: min(1360px, calc(100% - 48px)); }
.site-nav { gap: 1.55rem; }
.site-nav a { font-size: .82rem; letter-spacing: .01em; }
.panel,
.metric-card,
.chart-card,
.reward-card,
.archive-stat-grid article,
.contributor-stat-grid article,
.process-grid article,
.principle-grid article,
.items-summary-grid article,
.top-item,
.distribution-row,
.rare-spotlight-grid > a,
.compact-table > div {
    box-shadow: inset 0 1px rgba(255,255,255,.02), 0 10px 24px rgba(0,0,0,.12);
}
.footer-actions a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}
.filter-pills a,
.admin-jump a,
.status-chip,
.filter-chip { border-radius: 8px; }
.database-toolbar,
.items-filter-bar,
.analytics-filter,
.archive-toolbar { align-items: center; }
.compact-notice { margin-top: .9rem; }
.empty-state.panel {
    min-height: 152px;
    display: grid;
    place-items: center;
    text-align: center;
}
.suggestion-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.suggestion-summary-grid .panel,
.suggestion-public-card {
    padding: 1rem 1.05rem;
}
.suggestion-public-card footer {
    align-items: center;
    row-gap: .6rem;
}
.suggestion-public-card footer a {
    color: var(--cyan-bright);
    text-decoration: none;
}
.suggestion-public-card footer a:hover { text-decoration: underline; }
.hero-actions .button { min-width: 180px; }
.admin-dashboard .page-container.page-stack { gap: 1rem; }
.admin-section { padding: 1rem 1.05rem; }
.admin-login { max-width: 560px; padding: 1rem 1.05rem; }
.admin-jump {
    top: 82px;
    border-radius: 8px;
}
@media (max-width: 900px) {
  .suggestion-summary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .page-container, .header-inner, .narrow-page { width: min(100% - 24px, 1360px); }
  .site-nav { gap: .35rem; }
}

/* v4.0.2 beta layout spacing and scale refinement */
.page-stack {
    display: grid;
    gap: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.subpage-hero {
    padding: 1rem 0 .35rem;
}
.subpage-hero .page-container > p {
    max-width: 820px;
    margin-bottom: 0;
}
.subpage-hero h1 {
    max-width: 14ch;
    margin-bottom: .7rem;
    font-size: clamp(2.6rem, 4.35vw, 4.7rem);
    line-height: .96;
}
.status-hero h1 {
    max-width: 12ch;
}
.status-hero p {
    font-size: 1.02rem;
}
.home-enhancement-grid,
.analytics-grid,
.status-grid {
    align-items: start;
}
.analytics-filter,
.export-panel,
.status-detail,
.rare-home-panel,
.milestone-panel,
.database-panel,
.system-card {
    padding: 1rem 1.05rem 1.1rem;
}
.analytics-filter > div {
    gap: .8rem;
}
.analytics-filter small {
    display: inline-block;
    padding-top: .1rem;
}
.profile-metrics {
    gap: 1rem;
}
.metric-card {
    min-height: 126px;
    padding: 1rem 1.05rem;
}
.metric-card strong {
    font-size: clamp(1.85rem, 2.2vw, 2.35rem);
}
.status-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.system-card {
    min-height: 172px;
    display: grid;
    align-content: start;
    gap: .65rem;
}
.system-card h2 {
    line-height: 1.05;
}
.system-card p,
.system-card small {
    margin: 0;
}
.system-card small {
    display: block;
    margin-top: .25rem;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.45;
}
.status-detail {
    text-align: center;
}
.status-detail h2 {
    margin-bottom: .45rem;
}
.items-hero-grid {
    grid-template-columns: minmax(300px, .68fr) minmax(0, 1.32fr);
    gap: 28px;
}
.items-summary-grid {
    gap: 1rem;
}
.items-summary-grid article {
    min-height: 154px;
    padding: 1rem 1rem 1.05rem;
    justify-content: flex-start;
}
.items-summary-grid article strong {
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    line-height: .98;
}
.items-summary-grid article:nth-child(4) strong {
    font-size: clamp(1.35rem, 1.85vw, 1.95rem);
}
.items-summary-grid article > span {
    font-size: .67rem;
    line-height: 1.45;
}
.items-summary-grid article > img + strong {
    line-height: 1.15;
}
.analytics-grid {
    gap: 1.15rem;
}
.analytics-grid > .panel,
.export-panel {
    padding: 1rem 1.05rem 1.15rem;
}
.analytics-grid > .panel h2,
.export-panel h2,
.rare-home-panel h2,
.milestone-panel h2,
.status-detail h2 {
    font-size: clamp(1.7rem, 2.2vw, 2.6rem);
    line-height: 1.02;
}
.bar-chart {
    gap: 6px;
    margin-top: .35rem;
}
.horizontal-chart,
.timeline-list,
.rare-spotlight-grid,
.milestone-list {
    margin-top: .9rem;
}
.timeline-list {
    gap: .55rem;
}
.timeline-list div {
    padding: .75rem .8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 15, 21, .38);
}
.home-enhancement-grid {
    gap: 1.15rem;
}
.rare-home-panel,
.milestone-panel {
    min-height: 0;
}
.rare-spotlight-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: .8rem;
}
.rare-spotlight-grid > a {
    min-height: 84px;
    padding: .9rem;
}
.rare-spotlight-grid small {
    font-size: .72rem;
}
.milestone-list {
    gap: .95rem;
}
.milestone-row > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem 1rem;
    align-items: baseline;
    margin-bottom: .45rem;
}
.milestone-row b {
    line-height: 1.3;
}
.milestone-row small {
    font-size: .75rem;
}
.export-panel {
    gap: 1.25rem;
}
.export-panel p {
    margin-bottom: 0;
}
@media (max-width: 1380px) {
  .items-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .items-hero-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .status-grid,
  .items-summary-grid {
    grid-template-columns: 1fr;
  }
  .subpage-hero h1 {
    max-width: none;
  }
}

/* v4.0.3 beta contributor heatmap alignment fix */
.activity-card { overflow: hidden; }

/* v4.0.4 beta contributor profile refinement */
.profile-metrics-contributor {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .85rem;
}
.profile-metrics-contributor .metric-card {
    min-height: 106px;
    padding: .9rem 1rem;
}
.profile-metrics-contributor .metric-card span {
    display: block;
    font-size: .8rem;
    color: var(--text);
    line-height: 1.25;
}
.profile-metrics-contributor .metric-card strong {
    display: block;
    margin-top: .55rem;
    font-size: clamp(2rem, 2.35vw, 3rem);
    line-height: .95;
    color: var(--gold);
}
.profile-metrics-contributor .metric-card-stat {
    display: flex;
    align-items: center;
}
.profile-metrics-contributor .metric-card-feature {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
}
.profile-metrics-contributor .metric-card-feature img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
.profile-metrics-contributor .metric-card-feature strong {
    margin-top: .35rem;
    font-size: clamp(1.15rem, 1.55vw, 1.55rem);
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profile-metrics-contributor .nowrap-value {
    white-space: nowrap;
    font-size: clamp(1.8rem, 2.2vw, 2.6rem);
}
@media (max-width: 1380px) {
  .profile-metrics-contributor {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .profile-metrics-contributor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .profile-metrics-contributor {
    grid-template-columns: 1fr;
  }
}

/* v4.0.5 beta contributor overview redesign */
.profile-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(350px, .85fr);
    gap: 1rem;
    align-items: stretch;
}
.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}
.profile-stat {
    position: relative;
    min-width: 0;
    min-height: 132px;
    padding: 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(11, 39, 47, .78), rgba(4, 18, 24, .92));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.14);
}
.profile-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(var(--cyan), var(--cyan-deep));
    opacity: .85;
}
.profile-stat > span,
.profile-feature-card span {
    color: #c7d6d5;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .025em;
}
.profile-stat strong {
    display: block;
    margin: .35rem 0 .25rem;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(2.15rem, 2.75vw, 3.25rem);
    font-weight: 700;
    line-height: .92;
    white-space: nowrap;
}
.profile-stat-value strong {
    font-size: clamp(1.9rem, 2.35vw, 2.8rem);
}
.profile-stat small,
.profile-feature-card small {
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.35;
}
.profile-feature-grid {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.profile-feature-card {
    min-width: 0;
    min-height: 0;
    padding: .95rem 1rem;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: center;
    gap: .9rem;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(10, 36, 44, .9), rgba(4, 17, 23, .94));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.14);
}
.profile-feature-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(71, 239, 227, .18);
    border-radius: 7px;
    background: rgba(2, 13, 18, .52);
}
.profile-feature-icon img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}
.profile-feature-card strong {
    display: block;
    min-width: 0;
    margin: .28rem 0 .24rem;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 1.75vw, 1.9rem);
    line-height: 1.02;
    white-space: nowrap;
}
@media (max-width: 1240px) {
  .profile-overview {
    grid-template-columns: 1fr;
  }
  .profile-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }
}
@media (max-width: 850px) {
  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-feature-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .profile-stat-grid {
    grid-template-columns: 1fr;
  }
  .profile-feature-card strong {
    white-space: normal;
  }
}

/* v4.0.9 beta contribution activity calendar rebuild */
.activity-card {
    min-width: 0;
    overflow: visible;
}
.activity-range-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .8rem;
    padding: .55rem .7rem;
    border: 1px solid rgba(94,224,221,.12);
    border-radius: 7px;
    color: var(--muted);
    background: rgba(3,15,21,.35);
    font-size: .64rem;
}
.activity-range-meta span {
    color: var(--cyan-bright);
    font-weight: 800;
}
.activity-range-meta strong {
    color: #b9c9ca;
    font-weight: 600;
    white-space: nowrap;
}
.activity-heatmap-scroll {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    scrollbar-color: rgba(71,239,227,.35) rgba(4,18,24,.65);
    scrollbar-width: thin;
}
.activity-heatmap-frame {
    width: min(100%, var(--heatmap-natural-width));
    max-width: 100%;
    margin-top: .85rem;
}
.heatmap-months {
    width: calc(100% - 37px);
    margin: 0 0 .42rem 37px;
    display: grid;
    grid-template-columns: repeat(var(--week-count), minmax(0, 1fr));
    column-gap: 2px;
    color: #91a5a7;
    font-size: .53rem;
    line-height: 1;
}
.heatmap-months span {
    min-width: 0;
    justify-self: start;
    white-space: nowrap;
}
.heatmap-months span:last-child {
    justify-self: end;
}
.heatmap-shell {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px;
    align-items: stretch;
    width: 100%;
}
.heatmap-days {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    row-gap: 2px;
    height: 100%;
    color: #829697;
    font-size: .5rem;
    line-height: 1;
}
.heatmap-days span {
    align-self: center;
}
.heatmap-days span:nth-child(1) { grid-row: 2; }
.heatmap-days span:nth-child(2) { grid-row: 4; }
.heatmap-days span:nth-child(3) { grid-row: 6; }
.heatmap {
    display: grid;
    grid-template-columns: repeat(var(--week-count), minmax(0, 1fr));
    grid-template-rows: repeat(7, auto);
    grid-auto-flow: column;
    gap: 2px;
    width: 100%;
    min-width: 0;
    overflow: visible;
}
.heatmap span {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1;
    border-radius: 2px;
    background: #0b333a;
}
.heatmap .outside-range {
    visibility: hidden;
    pointer-events: none;
}
.activity-heatmap-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .65rem;
    color: var(--muted);
    font-size: .56rem;
}
.activity-heatmap-details .heatmap-legend {
    justify-content: flex-start;
    margin: 0;
}
.activity-footer {
    margin-top: .7rem;
    padding-top: .65rem;
    border-top: 1px solid rgba(94,224,221,.1);
    font-size: .58rem;
}
@media (max-width: 560px) {
    .activity-range-meta,
    .activity-heatmap-details,
    .activity-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: .35rem;
    }
    .activity-range-meta strong {
        white-space: normal;
    }
    .activity-heatmap-scroll {
        overflow-x: auto;
        padding-bottom: .35rem;
    }
    .activity-heatmap-frame {
        width: var(--heatmap-natural-width);
        max-width: none;
    }
}

/* v4.0.10 beta instant contribution range switching */
.activity-card .activity-heatmap-frame,
.activity-card .activity-range-meta,
.activity-card .activity-heatmap-details,
.activity-card .activity-footer {
    transition: opacity .14s ease;
}
.activity-card.is-updating .activity-heatmap-frame,
.activity-card.is-updating .activity-range-meta,
.activity-card.is-updating .activity-heatmap-details,
.activity-card.is-updating .activity-footer {
    opacity: .58;
}
.activity-card [data-contribution-range] {
    min-width: 116px;
}

/* v4.0.13 beta items summary redesign */
.items-summary-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(270px, .85fr);
    gap: 14px;
    align-items: stretch;
}
.items-stat-console {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(7, 29, 37, .92), rgba(4, 17, 24, .94));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 14px 34px rgba(0,0,0,.16);
}
.items-stat-cell {
    min-width: 0;
    min-height: 138px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: .8rem;
    border-right: 1px solid var(--line);
}
.items-stat-cell:last-child { border-right: 0; }
.items-stat-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--cyan-bright);
    background: rgba(17, 105, 108, .12);
    box-shadow: inset 0 0 20px rgba(71,239,227,.04);
}
.items-stat-icon .icon { width: 25px; height: 25px; }
.items-stat-cell small,
.items-stat-cell span,
.items-most-common-copy small,
.items-most-common-copy span {
    display: block;
}
.items-stat-cell small {
    color: #c7d4d3;
    font-size: .7rem;
    font-weight: 700;
}
.items-stat-cell strong {
    display: block;
    margin: .28rem 0 .22rem;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(1.75rem, 2.25vw, 2.45rem);
    line-height: .95;
    white-space: nowrap;
}
.items-stat-cell span {
    color: var(--muted);
    font-size: .64rem;
    line-height: 1.35;
}
.items-stat-cell-value strong {
    font-size: clamp(1.55rem, 2vw, 2.15rem);
}
.items-most-common-card {
    min-width: 0;
    min-height: 138px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: .55rem .9rem;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    color: var(--text);
    background: linear-gradient(145deg, rgba(8, 33, 41, .94), rgba(4, 18, 24, .96));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 14px 34px rgba(0,0,0,.16);
    text-decoration: none;
    transition: border-color .18s, transform .18s, background .18s;
}
.items-most-common-card:hover {
    transform: translateY(-1px);
    border-color: rgba(91,255,245,.5);
    background: linear-gradient(145deg, rgba(10, 39, 47, .96), rgba(5, 21, 28, .98));
}
.items-most-common-icon {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(2, 13, 18, .62);
}
.items-most-common-icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}
.items-most-common-icon > .icon {
    width: 34px;
    height: 34px;
    color: var(--cyan);
}
.items-most-common-copy { min-width: 0; }
.items-most-common-copy small {
    color: var(--cyan);
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.items-most-common-copy strong {
    display: block;
    margin: .28rem 0 .2rem;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(1.25rem, 1.65vw, 1.65rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}
.items-most-common-copy span {
    color: var(--muted);
    font-size: .65rem;
    line-height: 1.4;
}
.items-most-common-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #b8cfce;
    font-size: .68rem;
    font-weight: 700;
}
.items-most-common-link .icon { width: .95rem; height: .95rem; }
.items-most-common-empty { pointer-events: none; }
@media (max-width: 1380px) {
  .items-summary-overview {
    grid-template-columns: 1fr;
  }
  .items-most-common-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    min-height: 98px;
  }
  .items-most-common-icon {
    grid-row: 1;
    width: 58px;
    height: 58px;
  }
  .items-most-common-icon img { width: 48px; height: 48px; }
}
@media (max-width: 780px) {
  .items-stat-console {
    grid-template-columns: 1fr;
  }
  .items-stat-cell {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .items-stat-cell:last-child { border-bottom: 0; }
  .items-most-common-card {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
  }
  .items-most-common-icon { grid-row: 1 / 3; }
}

/* v4.0.14 beta items hero summary correction */
.items-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-self: center;
    min-width: 0;
}
.items-summary-card {
    position: relative;
    min-width: 0;
    min-height: 108px;
    padding: .9rem 1rem;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    color: var(--text);
    background: linear-gradient(145deg, rgba(7, 29, 37, .92), rgba(4, 17, 24, .96));
    box-shadow: inset 0 1px rgba(255,255,255,.025), 0 12px 28px rgba(0,0,0,.14);
    text-decoration: none;
}
.items-summary-card-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--cyan-bright);
    background: rgba(17, 105, 108, .11);
}
.items-summary-card-icon .icon {
    width: 28px;
    height: 28px;
}
.items-summary-card-copy {
    min-width: 0;
    display: block;
}
.items-summary-card-copy small,
.items-summary-card-copy span,
.items-summary-card-copy strong {
    display: block;
}
.items-summary-card-copy small {
    margin-bottom: .28rem;
    color: #c9d7d6;
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.2;
}
.items-summary-card-copy strong {
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(1.65rem, 2vw, 2.2rem);
    line-height: .95;
    white-space: nowrap;
}
.items-summary-card-copy span {
    margin-top: .3rem;
    color: var(--muted);
    font-size: .64rem;
    line-height: 1.35;
}
.items-summary-card-value .items-summary-card-copy strong {
    font-size: clamp(1.5rem, 1.8vw, 2rem);
}
.items-summary-card-feature {
    padding-right: 2.6rem;
    transition: transform .18s, border-color .18s, background .18s;
}
.items-summary-card-feature:hover {
    transform: translateY(-1px);
    border-color: rgba(91,255,245,.5);
    background: linear-gradient(145deg, rgba(10, 39, 47, .96), rgba(5, 21, 28, .98));
}
.items-summary-item-icon {
    background: rgba(2, 13, 18, .62);
}
.items-summary-item-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.items-summary-card-feature .items-summary-card-copy small {
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: .055em;
}
.items-summary-card-feature .items-summary-card-copy strong {
    font-family: var(--serif);
    font-size: clamp(1.05rem, 1.32vw, 1.38rem);
    line-height: 1.08;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.items-summary-card-arrow {
    position: absolute;
    right: .85rem;
    top: 50%;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--cyan);
    transform: translateY(-50%);
}
.items-summary-card-arrow .icon {
    width: 17px;
    height: 17px;
}
.items-summary-card-empty {
    pointer-events: none;
}
@media (max-width: 1120px) {
  .items-summary-card {
    min-height: 100px;
  }
}
@media (max-width: 680px) {
  .items-summary-cards {
    grid-template-columns: 1fr;
  }
}


/* v4.0.42 production: graceful legacy-proof fallback. */
.proof-thumb { position: relative; }
.proof-thumb.proof-thumb-missing::after {
    content: 'Proof unavailable';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 4px;
    color: #90b7bf;
    background: linear-gradient(135deg, #07151b, #0a2029);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* v4.0.44: keep the expanded public navigation balanced before mobile collapse. */
@media (min-width: 1051px) and (max-width: 1320px) {
    .header-inner { grid-template-columns: 225px minmax(0, 1fr) 210px; }
    .site-nav { gap: clamp(.55rem, .85vw, .85rem); }
    .site-nav a { font-size: .74rem; }
    .header-install { padding-inline: .8rem; font-size: .76rem; }
}
