:root {
    --bg: #080b10;
    --bg-soft: #0d1118;
    --panel: #111720;
    --panel-2: #171e29;
    --line: #253040;
    --line-soft: rgba(255, 255, 255, .08);
    --text: #f5f7fb;
    --muted: #8f9aab;
    --accent: #90f8b8;
    --accent-strong: #4de58a;
    --accent-dark: #082d1b;
    --blue: #76a8ff;
    --warning: #ffcd6b;
    --danger: #ff7777;
    --radius: 20px;
    --shadow: 0 24px 80px rgba(0, 0, 0, .32);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 15% -5%, rgba(77, 229, 138, .09), transparent 28rem), var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { width: min(1220px, calc(100% - 40px)); height: 76px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #07130c; background: linear-gradient(135deg, var(--accent), #d4ffe4); box-shadow: 0 8px 25px rgba(77, 229, 138, .18); }
.brand-centered { justify-content: center; margin-bottom: 34px; }
.site-nav { display: flex; align-items: center; gap: 22px; color: #c2cad5; font-size: 14px; }
.user-chip { padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.inline-form { display: inline; }

.button { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 12px; color: #07140c; background: var(--accent); font-weight: 750; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); background: #b3ffcf; border-color: #b3ffcf; }
.button-secondary { color: var(--text); border-color: var(--line); background: var(--panel-2); }
.button-secondary:hover { background: #202a38; border-color: #39475b; }
.button-danger { color: #fff; border-color: rgba(255, 119, 119, .35); background: #412128; }
.button-danger:hover { border-color: var(--danger); background: #54262f; }
.button-small { min-height: 36px; padding: 0 13px; border-radius: 10px; font-size: 13px; }
.button-wide { width: 100%; }
.link-button { padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.link-button:hover, .text-link:hover { color: var(--accent); }
.danger-link { color: var(--danger); }
.icon-button { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--panel-2); cursor: pointer; }
.icon-button:hover { color: var(--text); border-color: #405069; }

.http-warning { position: relative; z-index: 10; padding: 7px 20px; text-align: center; color: #201600; background: var(--warning); font-size: 12px; font-weight: 700; }
.flash-stack { position: fixed; top: 86px; right: 20px; z-index: 100; width: min(380px, calc(100% - 40px)); display: grid; gap: 8px; }
.flash { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: rgba(17, 23, 32, .96); box-shadow: var(--shadow); animation: flash-in .2s ease-out; }
.flash-success { border-color: rgba(77, 229, 138, .45); }
.flash-error { border-color: rgba(255, 119, 119, .5); }
.flash-warning { border-color: rgba(255, 205, 107, .5); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }

.eyebrow { display: block; margin-bottom: 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--muted); line-height: 1.6; }

/* Landing */
.hero { min-height: 610px; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 80px; padding: 70px 0 100px; }
.hero h1 { max-width: 680px; margin: 0; font-size: clamp(46px, 6.7vw, 82px); line-height: .98; letter-spacing: -.065em; }
.hero-copy > p { max-width: 600px; margin: 28px 0 32px; color: #aeb8c7; font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 32px; color: var(--muted); font-size: 13px; }
.hero-proof span::before { content: "✓"; margin-right: 6px; color: var(--accent); }
.hero-demo { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(155deg, #171f2b, #0d1219); box-shadow: 0 42px 120px rgba(0, 0, 0, .5); transform: rotate(1deg); }
.hero-demo::before { content: "LIVE"; position: absolute; top: -15px; right: 34px; padding: 7px 11px; border-radius: 8px; color: #07140c; background: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.demo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.demo-top span { color: var(--muted); font-size: 13px; }
.demo-top strong { font-size: 28px; font-variant-numeric: tabular-nums; }
.demo-lot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0 9px; font-size: 14px; }
.demo-lot b { margin-right: 7px; color: var(--accent); }
.meter { height: 5px; overflow: hidden; border-radius: 999px; background: #252f3e; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-strong), var(--blue)); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 90px; }
.feature-grid article { padding: 28px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(17, 23, 32, .55); }
.feature-grid h2 { margin: 36px 0 9px; font-size: 18px; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.feature-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--accent); background: var(--accent-dark); font-size: 11px; font-weight: 900; }

/* Forms and auth */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 70px 20px; }
.auth-card { width: min(460px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(160deg, rgba(23, 30, 41, .95), rgba(13, 17, 24, .98)); box-shadow: var(--shadow); }
.auth-heading { margin-bottom: 26px; text-align: center; }
.auth-heading h1 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.stack-form { display: grid; gap: 16px; }
.stack-form label, .public-card > label { display: grid; gap: 7px; color: #c5ceda; font-size: 13px; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); outline: none; border-radius: 10px; color: var(--text); background: #0b1017; transition: border-color .15s ease, box-shadow .15s ease; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(144, 248, 184, .7); box-shadow: 0 0 0 3px rgba(144, 248, 184, .08); }
label small { color: var(--muted); font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 20px; color: var(--muted); font-size: 13px; }
.auth-links a:hover { color: var(--accent); }
.resend-box { margin-top: 24px; color: var(--muted); font-size: 12px; }
.resend-box summary { cursor: pointer; }
.compact-form { display: flex; gap: 8px; margin-top: 12px; }
.compact-form input { flex: 1; }

/* Studio shell */
.studio-page { background: #090d13; }
.studio-layout { min-height: 100vh; display: grid; grid-template-columns: 245px minmax(0, 1fr); }
.studio-sidebar { position: sticky; top: 0; height: 100vh; padding: 25px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line-soft); background: #0b0f15; }
.workspace-switcher { margin: 35px 0 20px; }
.workspace-switcher label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.workspace-switcher select { min-height: 39px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.workspace-name { display: grid; gap: 5px; margin: 35px 0 20px; padding: 0 13px; }
.workspace-name span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.workspace-name strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.studio-nav { display: grid; gap: 5px; }
.studio-nav a { padding: 11px 13px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 650; }
.studio-nav a:hover { color: var(--text); background: var(--panel); }
.studio-nav a.active { color: #07140c; background: var(--accent); }
.sidebar-bottom { display: grid; margin-top: auto; padding: 16px 12px 4px; border-top: 1px solid var(--line-soft); }
.sidebar-bottom span { font-size: 13px; font-weight: 700; }
.sidebar-bottom small { margin: 3px 0 10px; color: var(--muted); }
.studio-main { min-width: 0; padding: 28px clamp(24px, 4vw, 58px) 70px; }
.studio-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.studio-topbar h1 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.live-dot { color: var(--muted); font-size: 12px; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 12px var(--accent-strong); }

.card { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); box-shadow: 0 18px 55px rgba(0, 0, 0, .13); }
.card-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-heading h2, .form-card h2 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.heading-count { margin-left: 6px; color: var(--accent); font-size: 10px; font-weight: 850; vertical-align: super; }
.heading-meta { margin-left: 10px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.panel-grid { display: grid; gap: 18px; }
.queue-layout { grid-template-columns: minmax(0, 1fr); align-items: start; }
.form-card { padding: 24px; }
.list-card { min-width: 0; padding: 24px; }
.quick-create-card { padding: 18px 20px 20px; }
.quick-create-card .card-heading { margin-bottom: 13px; }
.quick-form { display: grid; align-items: end; gap: 9px; }
.quick-form label { display: grid; gap: 5px; min-width: 0; color: #c5ceda; font-size: 10px; font-weight: 700; }
.quick-form input, .quick-form select { min-height: 38px; padding: 7px 10px; font-size: 12px; }
.queue-create-form { grid-template-columns: minmax(160px, 1.45fr) minmax(140px, 1.2fr) minmax(85px, .72fr) 86px minmax(135px, 1fr) minmax(125px, .95fr) auto; }
.quick-submit { min-height: 38px; padding-inline: 16px; border-radius: 10px; font-size: 13px; }
.queue-toolbar { min-height: 38px; gap: 18px; margin-bottom: 14px; }
.queue-toolbar h2 { flex: none; }
.search-form { display: flex; align-items: center; gap: 8px; }
.search-form input[type="search"] { width: 180px; min-height: 36px; }
.text-link { color: var(--muted); font-size: 12px; }
.archive-toggle { height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.archive-toggle:hover { color: var(--text); background: var(--panel-2); }
.archive-toggle input { position: absolute; width: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.archive-box { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #39465a; border-radius: 7px; background: #0a0f15; transition: .15s ease; }
.archive-box svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.archive-toggle input:checked + .archive-box { color: #07140c; border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px rgba(144,248,184,.08); }
.queue-form { position: relative; }
.bulk-bar { position: fixed; left: calc(245px + (100vw - 245px) / 2); bottom: 24px; z-index: 90; display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid rgba(144,248,184,.28); border-radius: 14px; background: rgba(17,23,32,.96); box-shadow: 0 18px 55px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .16s ease, transform .16s ease; }
.bulk-bar.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.bulk-bar strong { padding: 0 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.bulk-bar strong span { color: var(--accent); }
.bulk-bar select { width: 180px; min-height: 36px; font-size: 12px; }
.queue-list { display: grid; gap: 8px; }
.queue-row { display: grid; grid-template-columns: 20px 20px 20px minmax(150px, 1.5fr) 110px 90px minmax(120px, 1fr) minmax(100px, .7fr) auto; gap: 7px; align-items: center; min-height: 54px; padding: 8px 10px; border: 1px solid var(--line-soft); border-radius: 12px; background: #0d131b; transition: border-color .15s ease, opacity .15s ease, transform .15s ease; }
.queue-row.status-playing { border-color: rgba(144, 248, 184, .4); background: linear-gradient(90deg, rgba(77, 229, 138, .07), #0d131b 55%); }
.queue-row.is-dragging { opacity: .38; }
.queue-row.drag-over { border-color: var(--accent); transform: translateY(2px); }
.drag-handle { width: 20px; height: 28px; padding: 0; border: 0; color: #536176; background: transparent; font-size: 17px; line-height: 1; cursor: grab; }
.drag-handle:hover { color: var(--accent); }
.drag-handle:active { cursor: grabbing; }
.drag-handle.is-disabled { opacity: .25; cursor: default; }
.check-cell { position: relative; width: 18px; height: 18px; }
.check-cell input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-cell span { display: block; width: 16px; height: 16px; margin: 1px; border: 1px solid #3c495b; border-radius: 5px; background: #0a0f15; }
.check-cell input:checked + span { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #0a0f15; }
.queue-index { color: #637084; font-size: 12px; font-weight: 800; }
.queue-content { min-width: 0; display: grid; gap: 3px; }
.queue-content strong, .queue-content small, .queue-comment, .queue-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-content strong { font-size: 13px; }
.queue-content small { color: var(--muted); font-size: 10px; }
.status-badge, .role-badge { display: inline-flex; padding: 4px 7px; border-radius: 7px; color: var(--accent); background: var(--accent-dark); font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.muted-badge { color: var(--muted); background: #242c38; }
.queue-status-cell { min-width: 0; }
.queue-amount { font-size: 12px; font-weight: 750; white-space: nowrap; }
.queue-comment { color: #aab4c3; font-size: 11px; }
.queue-comment span, .queue-link > span { color: #4b5667; }
.queue-meta, .lot-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.safe-link { color: var(--blue); font-size: 11px; }
.queue-actions { display: flex; gap: 5px; }
.queue-actions .icon-button { width: 31px; height: 31px; }
.empty-state { min-height: 190px; display: grid; place-content: center; gap: 7px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--text); }
.hidden-form { display: none; }

/* Auction */
.create-auction-card { padding: 20px; }
.create-auction-card .card-heading { margin-bottom: 13px; }
.create-auction-card h2 { margin: 0; font-size: 20px; }
.auction-create-form { grid-template-columns: minmax(240px, 1fr) minmax(190px, .55fr) 140px auto; }
.auction-option-create { margin-bottom: 14px; }
.auction-option-form { grid-template-columns: minmax(220px, 1.3fr) minmax(200px, 1fr) minmax(160px, .6fr) auto; }
.narrow-form { max-width: 430px; }
.auction-header { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 14px; padding: 16px 20px; }
.auction-header h2 { margin: 0; font-size: 21px; }
.timer-block { display: flex; align-items: center; gap: 16px; }
.timer-block > strong { min-width: 116px; font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.timer-label { color: var(--muted); font-size: 11px; }
.timer-controls { display: flex; gap: 7px; }
.auction-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.auction-main > .card { padding: 20px; }
.auction-side { display: grid; gap: 18px; }
.copy-toolbar { display: flex; justify-content: flex-end; margin: -48px 0 16px; }
.lot-list { display: grid; gap: 9px; }
.lot-card { display: grid; grid-template-columns: 24px 40px minmax(0, 1fr) 36px; align-items: center; gap: 10px; padding: 15px; border: 1px solid var(--line-soft); border-radius: 14px; background: #0d131b; }
.lot-check { align-self: start; margin-top: 2px; }
.lot-number { align-self: start; padding-top: 2px; color: var(--accent); font-size: 12px; font-weight: 900; }
.lot-body { min-width: 0; }
.lot-title { display: flex; justify-content: space-between; gap: 20px; }
.lot-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lot-title span { flex: none; font-weight: 800; }
.chance-line { height: 5px; margin-top: 10px; overflow: hidden; border-radius: 99px; background: #26303d; }
.chance-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-strong), var(--blue)); }
.lot-meta a { color: var(--blue); }
.contribution-form { display: grid; grid-template-columns: 1fr 110px 1.2fr auto; gap: 7px; margin-top: 12px; }
.contribution-form input { min-height: 35px; padding: 7px 9px; font-size: 12px; }
.lot-copy-form { align-self: start; }
.auction-footer-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.activity-card { padding: 22px; }
.activity-list { display: grid; gap: 8px; }
.activity-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 8px; padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.activity-item div { min-width: 0; display: grid; }
.activity-item span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.activity-item b { color: var(--accent); }
.activity-item small { grid-column: 1 / -1; color: var(--warning); }
.cancel-form { text-align: center; }

/* History / settings */
.history-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.history-main { display: grid; gap: 14px; }
.history-card { padding: 24px; }
.history-title { display: flex; justify-content: space-between; gap: 20px; }
.history-title h2 { margin: 0; font-size: 22px; }
.winner-banner { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 12px; padding: 14px 16px; border: 1px solid rgba(144,248,184,.25); border-radius: 12px; background: rgba(77,229,138,.07); }
.winner-banner span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.winner-banner strong { color: var(--accent); }
.history-options { display: grid; gap: 5px; }
.history-options > label { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 8px; background: #0d131b; font-size: 13px; }
.history-options input { width: 15px; min-height: auto; }
.history-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.receipt { margin-top: 16px; color: var(--muted); font-size: 12px; }
.receipt summary { cursor: pointer; }
.receipt dl { display: grid; grid-template-columns: 130px 1fr; gap: 7px; }
.receipt dd { margin: 0; overflow-wrap: anywhere; color: var(--text); }
.audit-card { padding: 22px; }
.audit-list { display: grid; gap: 11px; }
.audit-list > div { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.audit-list small { color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.settings-grid > .card { padding: 24px; }
.public-card { display: grid; gap: 16px; }
.copy-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.copy-field input { color: var(--muted); font-size: 12px; }
.member-list { display: grid; gap: 8px; margin-bottom: 18px; }
.member-list > div { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 11px; background: #0d131b; }
.member-list > div > div { min-width: 0; display: grid; flex: 1; }
.member-list span { color: var(--muted); font-size: 11px; }
.member-list .role-badge { color: var(--accent); }
.safety-card p { color: var(--muted); line-height: 1.6; }

/* Public / OBS */
.public-page { background: radial-gradient(circle at 50% -20%, rgba(118,168,255,.14), transparent 38rem), #070a0f; }
.public-screen { width: min(1440px, calc(100% - 44px)); margin: 0 auto; padding: 34px 0 60px; }
.public-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.public-header h1 { margin: 0; font-size: clamp(24px, 4vw, 46px); letter-spacing: -.055em; }
.connection-status { color: var(--muted); font-size: 11px; }
.connection-status.online { color: var(--accent); }
.public-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 16px; }
.public-panel { min-height: 70vh; padding: 22px; border: 1px solid var(--line-soft); border-radius: 24px; background: rgba(15, 20, 28, .93); box-shadow: var(--shadow); }
.public-panel-title { display: flex; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.public-panel-title b { color: var(--accent); }
.public-queue { display: grid; gap: 8px; margin-top: 12px; }
.public-queue-item { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 13px; border-radius: 13px; background: #111822; }
.public-queue-item.playing { border: 1px solid rgba(144,248,184,.38); }
.public-queue-item .number { color: #657386; font-size: 11px; font-weight: 900; }
.public-queue-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-queue-item small { color: var(--muted); }
.public-queue-item b { color: var(--accent); font-size: 13px; }
.public-auction-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 28px; }
.public-auction-header h2 { margin: 3px 0 0; font-size: clamp(24px, 3.4vw, 42px); letter-spacing: -.05em; }
.public-timer { font-size: clamp(35px, 6vw, 68px); font-weight: 850; font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
.public-lots { display: grid; gap: 10px; }
.public-lot { padding: 15px; border: 1px solid var(--line-soft); border-radius: 14px; background: #111822; }
.public-lot.winner { border-color: var(--accent); background: linear-gradient(100deg, rgba(77,229,138,.12), #111822); }
.public-lot-top { display: flex; justify-content: space-between; gap: 20px; }
.public-lot-top b { color: var(--accent); }
.public-lot-meta { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 11px; }
.public-meter { height: 7px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #293342; }
.public-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-strong), var(--blue)); transition: width .5s ease; }
.public-winner { margin-top: 20px; padding: 18px; border-radius: 15px; color: #06130b; background: var(--accent); text-align: center; }
.public-winner span { display: block; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.public-winner strong { font-size: 24px; }
.public-empty { display: grid; min-height: 300px; place-content: center; text-align: center; color: var(--muted); }
.obs-page { background: transparent !important; }
.obs-page .http-warning { display: none; }
.obs-screen { width: 100%; padding: 0; }
.obs-screen .public-header { display: none; }
.obs-screen .public-panel { min-height: 100vh; border-radius: 0; background: rgba(8, 11, 16, .76); box-shadow: none; }

.error-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.error-card { width: min(520px, 100%); padding: 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); text-align: center; }
.error-card h1 { margin: 0; font-size: 34px; }
.error-card p { margin: 15px 0 26px; color: var(--muted); }

@media (max-width: 1050px) {
    .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 55px; }
    .hero-demo { max-width: 680px; }
    .queue-layout, .auction-layout, .history-grid { grid-template-columns: 1fr; }
    .auction-side { grid-template-columns: 1fr 1fr; }
    .queue-create-form { grid-template-columns: 1.4fr 1.2fr .7fr .55fr; }
    .auction-create-form, .auction-option-form { grid-template-columns: 1.4fr 1fr 1fr auto; }
    .queue-row { grid-template-columns: 20px 20px 20px minmax(150px, 1fr) 110px 90px auto; }
    .queue-comment { grid-column: 4 / 6; grid-row: 2; }
    .queue-link { grid-column: 6 / 8; grid-row: 2; }
}

@media (max-width: 760px) {
    .site-header { width: calc(100% - 28px); }
    .site-nav > a:first-child, .user-chip { display: none; }
    .hero { width: calc(100% - 28px); }
    .hero h1 { font-size: 48px; }
    .feature-grid { grid-template-columns: 1fr; width: calc(100% - 28px); }
    .studio-layout { display: block; }
    .studio-sidebar { position: static; width: 100%; height: auto; padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .workspace-switcher, .workspace-name { margin: 0; justify-self: end; }
    .studio-nav { grid-column: 1 / -1; display: flex; overflow-x: auto; }
    .studio-nav a { flex: none; }
    .sidebar-bottom { display: none; }
    .studio-main { padding: 24px 14px 60px; }
    .studio-topbar { align-items: center; }
    .live-dot { display: none; }
    .field-row, .settings-grid, .auction-side, .queue-create-form, .auction-create-form, .auction-option-form { grid-template-columns: 1fr; }
    .queue-toolbar, .auction-header, .public-auction-header { align-items: stretch; flex-direction: column; }
    .search-form { flex-wrap: wrap; }
    .search-form input[type="search"] { width: 100%; }
    .archive-toggle { margin-left: auto; }
    .bulk-bar { left: 50%; bottom: 14px; max-width: calc(100% - 20px); }
    .bulk-bar strong { display: none; }
    .bulk-bar select { width: min(180px, 48vw); }
    .queue-row { grid-template-columns: 18px 18px 18px minmax(0,1fr) auto; gap: 6px; }
    .queue-content { grid-column: 4; grid-row: 1; }
    .queue-status-cell { grid-column: 4; grid-row: 2; }
    .queue-amount { grid-column: 5; grid-row: 2; }
    .queue-comment { grid-column: 4 / 6; grid-row: 3; }
    .queue-link { grid-column: 4 / 6; grid-row: 4; }
    .queue-actions { grid-column: 5; grid-row: 1; }
    .timer-block { align-items: flex-start; flex-wrap: wrap; }
    .contribution-form { grid-template-columns: 1fr 1fr; }
    .contribution-form input:nth-child(6) { grid-column: 1 / -1; }
    .public-screen { width: calc(100% - 20px); padding-top: 16px; }
    .public-grid { grid-template-columns: 1fr; }
    .public-panel { min-height: auto; }
    .auth-card { padding: 28px 22px; }
}
