:root {
  --ink: #172238;
  --muted: #7c879a;
  --subtle: #aab3c1;
  --line: #e7eaf0;
  --paper: #f7f8fb;
  --white: #ffffff;
  --navy: #101827;
  --navy-soft: #182338;
  --mint: #62d6c7;
  --orange: #ffbe5c;
  --pink: #f18091;
  --purple: #b8a1ff;
  --shadow: 0 18px 45px rgba(27, 42, 69, 0.07);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Space Grotesk", sans-serif; font-size: 14px; }
button { font: inherit; cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 238px; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 27px 17px 18px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 36px; letter-spacing: -.04em; }
.brand strong { font-size: 22px; line-height: 1; font-weight: 700; display: block; }
.brand small { display: block; color: #7d8ba4; font-family: "DM Mono", monospace; font-size: 8px; letter-spacing: .13em; margin-top: 5px; }
.brand-logo { width: 42px; height: 42px; flex: 0 0 auto; object-fit: contain; border-radius: 50%; background: #fff; }
@media (max-width: 950px) { .brand > div:last-child { display: none; } }
.sidebar-label { color: #65748e; font: 500 9px "DM Mono", monospace; letter-spacing: .14em; padding: 0 13px 11px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { border: 0; color: #9aa7bc; background: transparent; border-radius: 8px; padding: 11px 12px; display: flex; align-items: center; gap: 11px; text-align: left; font-size: 12px; transition: .2s ease; }
.nav-item:hover { background: #17243a; color: white; }
.nav-item.active { background: #22304a; color: #fff; box-shadow: inset 3px 0 var(--mint); }
.nav-icon { color: #71829e; width: 13px; font-size: 15px; text-align: center; }
.nav-item.active .nav-icon { color: var(--mint); }
.live-dot { width: 5px; height: 5px; background: var(--pink); border-radius: 100%; margin-left: auto; box-shadow: 0 0 0 3px rgba(241,128,145,.12); }
.nav-count { margin-left: auto; font: 10px "DM Mono", monospace; background: #2e3b55; color: #afbacb; padding: 3px 6px; border-radius: 4px; }
.pub-label { margin-top: 40px; }
.pub-list { display: grid; gap: 5px; }
.pub-link { border: 0; background: transparent; color: #9aa7bc; padding: 9px 13px; text-align: left; display: flex; align-items: center; gap: 10px; border-radius: 7px; font-size: 12px; }
.pub-link:hover { background: #17243a; color: white; }
.pub-swatch { width: 7px; height: 7px; border-radius: 50%; }
.sidebar-foot { margin-top: auto; }
.secure-badge { color: #8e9db4; font-size: 10px; padding: 15px 11px; border-top: 1px solid #263249; border-bottom: 1px solid #263249; }
.secure-badge span { color: var(--mint); margin-right: 5px; }
.profile-row { display: flex; align-items: center; gap: 9px; padding: 17px 5px 0; }
.avatar { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--mint); color: #12303a; display: grid; place-items: center; font: 500 10px "DM Mono", monospace; }
.profile-row strong { display: block; font-size: 11px; font-weight: 500; }
.profile-row small { display: block; color: #71809a; font-size: 10px; margin-top: 3px; }
.more { margin-left: auto; color: #65748e; letter-spacing: 2px; }
.main-content { min-width: 0; flex: 1; }
.topbar { height: 74px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.78); display: flex; align-items: center; justify-content: space-between; padding: 0 44px; }
.crumb { font-size: 12px; }
.crumb-muted { color: #a7afbd; }
.crumb-sep { color: #d5d9e2; padding: 0 13px; }
.top-actions { display: flex; align-items: center; gap: 19px; }
.connection { font: 10px "DM Mono", monospace; color: #7d899a; }
.pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin-right: 7px; box-shadow: 0 0 0 3px rgba(98,214,199,.16); }
.icon-button { border: 0; background: transparent; color: #8f99aa; font-size: 17px; }
.avatar.small { width: 31px; height: 31px; }
.page { max-width: 1240px; margin: 0 auto; padding: 38px 44px 60px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.eyebrow { color: #98a2b2; font: 500 10px "DM Mono", monospace; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 10px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; letter-spacing: -.045em; line-height: 1.1; }
h2 { font-size: 18px; letter-spacing: -.035em; }
h3 { font-size: 14px; }
.subheading { color: var(--muted); margin-top: 9px; font-size: 12px; }
.button { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 6px; padding: 10px 14px; font-size: 11px; font-weight: 600; }
.button:hover { border-color: #b7c1cf; }
.button.primary { background: var(--navy); border-color: var(--navy); color: white; }
.button.mint { background: var(--mint); border-color: var(--mint); color: #10252b; }
.button.ghost-dark { background: transparent; border-color: #40506d; color: #d8e1f1; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 13px; }
.stat-card { background: var(--white); border: 1px solid var(--line); padding: 17px 19px; border-radius: 8px; position: relative; min-height: 92px; }
.stat-card .stat-label { color: #909baa; font: 500 9px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.stat-card .stat-value { font-size: 25px; font-weight: 600; letter-spacing: -.05em; margin-top: 11px; }
.stat-card .stat-help { color: #98a2b2; font-size: 10px; margin-top: 4px; }
.stat-accent { position: absolute; right: 18px; top: 18px; width: 6px; height: 6px; border-radius: 50%; }
.stat-accent.mint { background: var(--mint); }.stat-accent.orange { background: var(--orange); }.stat-accent.pink { background: var(--pink); }.stat-accent.purple { background: var(--purple); }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: 13px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.card-head p { font-size: 11px; color: #929dad; margin-top: 5px; }
.card-body { padding: 21px; }
.pill { padding: 5px 8px; border-radius: 4px; color: #3f876f; background: #e6f7f2; font: 500 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.pill.paused { color: #906a3a; background: #fff3de; }
.draw-stage { background: var(--navy); border-radius: 7px; color: #fff; padding: 23px; display: flex; justify-content: space-between; align-items: center; min-height: 168px; }
.draw-stage .draw-kicker { color: #8595af; font: 500 9px "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.draw-stage .big-number { font-size: 79px; line-height: .9; letter-spacing: -.09em; margin: 13px 0 8px; }
.draw-stage .number-copy { color: #95a4bc; font-size: 11px; }
.draw-actions { display: grid; gap: 9px; justify-items: end; }
.draw-button { width: 124px; height: 124px; border-radius: 50%; border: 8px solid rgba(98,214,199,.16); background: var(--mint); color: #12303a; font-size: 13px; font-weight: 700; box-shadow: 0 0 0 1px rgba(98,214,199,.6), 0 12px 30px rgba(0,0,0,.2); transition: transform .15s ease; }
.draw-button:hover { transform: scale(1.03); }.draw-button:active { transform: scale(.98); }.draw-button:disabled { background: #64718a; border-color: rgba(255,255,255,.08); }
.draw-actions small { color: #8493ac; font: 9px "DM Mono", monospace; }
.called-section { margin-top: 23px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-head small { color: #a0a9b8; font: 10px "DM Mono", monospace; }
.number-board { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; }
.ball { aspect-ratio: 1; display: grid; place-items: center; border-radius: 4px; background: #f1f3f7; color: #b1b8c4; font: 500 10px "DM Mono", monospace; }
.ball.called { background: var(--navy); color: white; }.ball.current { background: var(--mint); color: #17343c; box-shadow: 0 0 0 2px rgba(98,214,199,.28); }
.history-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.history-ball { background: #f5f6f8; border-radius: 5px; padding: 10px 4px; text-align: center; color: #8995a7; font: 500 10px "DM Mono", monospace; }
.history-ball strong { display: block; color: var(--ink); font: 600 18px "Space Grotesk", sans-serif; margin-bottom: 4px; }
.history-ball.latest { background: #e8faf6; }.history-ball.latest strong { color: #3a9c8c; }
.checklist { display: grid; gap: 9px; margin-top: 18px; }
.check-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f2f6; padding-bottom: 10px; font-size: 11px; }
.check-row span:first-child { display: flex; align-items: center; gap: 8px; }
.check-mark { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 4px; background: #e7f8f4; color: #49af9e; font-size: 10px; }
.check-row em { color: #9aa4b2; font: 10px "DM Mono", monospace; font-style: normal; }
.wide-card { margin-top: 13px; }
.pub-status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pub-status { border: 1px solid var(--line); border-radius: 6px; padding: 13px; }
.pub-status-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pub-status h3 { font-size: 12px; }.pub-status small { display: block; color: #9ba5b3; font-size: 10px; margin-top: 4px; }
.pub-online { color: #4aa997; font: 9px "DM Mono", monospace; }.pub-online span { display: inline-block; width: 5px; height: 5px; background: var(--mint); border-radius: 50%; margin-right: 4px; }
.pub-number { color: #a0aaba; font-size: 10px; }.pub-number strong { color: var(--ink); font-size: 25px; letter-spacing: -.06em; margin-right: 3px; }
.display-page { max-width: 1440px; padding-top: 25px; }
.tv-frame { background: var(--navy); color: white; min-height: calc(100vh - 150px); border-radius: 12px; overflow: hidden; position: relative; }
.tv-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; border-bottom: 1px solid #27344c; }
.tv-brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.04em; }.tv-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; background: #fff; }.tv-brand span { color: var(--mint); }
.tv-pub { display: flex; align-items: center; gap: 12px; color: #aebbd1; font: 11px "DM Mono", monospace; }.tv-pub .pub-swatch { width: 8px; height: 8px; }
.tv-live { color: var(--mint); font: 10px "DM Mono", monospace; }.tv-live span { margin-right: 6px; }
.tv-main { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 6vw; padding: 7vh 7vw 8vh; }
.tv-copy .eyebrow { color: #8091ac; }.tv-copy h1 { font-size: clamp(38px, 6vw, 84px); color: #fff; max-width: 600px; }.tv-copy p { color: #9aa9c0; font-size: 14px; margin-top: 15px; }
.tv-last-label { color: #8091ac; font: 500 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .13em; margin-bottom: 11px; }
.tv-last-number { width: min(28vw, 270px); aspect-ratio: 1; border-radius: 50%; background: var(--mint); color: #143139; display: grid; place-items: center; font-size: clamp(90px, 13vw, 190px); line-height: 1; letter-spacing: -.11em; padding-right: .1em; box-shadow: 0 0 0 15px rgba(98,214,199,.1), 0 0 80px rgba(98,214,199,.13); }
.tv-bottom { padding: 0 7vw 7vh; }.tv-bottom-head { display: flex; justify-content: space-between; color: #8091ac; font: 10px "DM Mono", monospace; margin-bottom: 12px; }.tv-bottom-head strong { color: #dce5f3; font-weight: 500; }
.tv-number-board { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; }.tv-number-board .ball { background: #1b2941; color: #71819c; font-size: 12px; }.tv-number-board .ball.called { background: #2e4261; color: #fff; }.tv-number-board .ball.current { background: var(--mint); color: #143139; }
.player-page { max-width: 600px; padding-top: 28px; }.player-wrap { max-width: 470px; margin: 0 auto; }
.player-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 23px; }.player-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.05em; font-size: 20px; }.player-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; background: #fff; }.player-logo span { color: #40b9a8; }.player-online { color: #58aa9d; font: 10px "DM Mono", monospace; }
.player-pub-card { background: var(--navy); color: #fff; border-radius: 10px; padding: 20px; margin-bottom: 13px; }.player-pub-card .eyebrow { color: #8695ae; margin-bottom: 7px; }.player-pub-card h1 { font-size: 25px; }.player-pub-card p { color: #8e9cb3; font-size: 11px; margin-top: 7px; }
.player-current { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid #2e3c55; }.player-current small { color: #8796ad; font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }.player-current strong { color: var(--mint); font-size: 31px; letter-spacing: -.08em; }
.ticket-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 17px; box-shadow: var(--shadow); }.ticket-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }.ticket-head h2 { font-size: 14px; }.ticket-id { color: #a1aab7; font: 9px "DM Mono", monospace; }
.ticket-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; background: #eef1f5; padding: 4px; border-radius: 6px; }.ticket-cell { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 4px; color: var(--ink); font: 500 15px "DM Mono", monospace; }.ticket-cell.empty { background: #f7f8fa; color: transparent; }.ticket-cell.marked { background: var(--navy); color: #fff; position: relative; }.ticket-cell.marked::after { content: "✓"; position: absolute; font: 9px "Space Grotesk", sans-serif; color: var(--mint); bottom: 3px; right: 4px; }
.ticket-note { color: #9ba5b3; font-size: 10px; margin: 11px 1px 0; }
.claim-card { margin-top: 13px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 17px; }.claim-card h2 { font-size: 14px; }.claim-card > p { color: #9aa4b2; font-size: 10px; margin-top: 6px; }.claim-buttons { display: grid; gap: 7px; margin-top: 14px; }.claim-button { border: 1px solid var(--line); background: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; text-align: left; padding: 11px 12px; color: var(--ink); }.claim-button:hover { border-color: var(--mint); background: #f5fffd; }.claim-button[disabled] { opacity: .65; cursor: default; }.claim-button .claim-copy { display: flex; align-items: center; gap: 10px; }.claim-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 5px; background: #e8faf6; color: #48af9e; font: 11px "DM Mono", monospace; }.claim-button small { color: #a1aab6; font-size: 9px; }.claim-button .chevron { color: #b1bac7; }
.qr-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: flex; gap: 18px; align-items: center; }.qr-panel img { width: 104px; height: 104px; border-radius: 5px; }.qr-panel h3 { font-size: 13px; }.qr-panel p { color: #929dac; font-size: 10px; line-height: 1.5; margin-top: 7px; }.qr-panel .button { margin-top: 11px; padding: 7px 9px; font-size: 9px; }
.view-switcher { display: flex; gap: 4px; background: #edf0f4; padding: 4px; border-radius: 7px; }.view-switcher button { border: 0; border-radius: 5px; padding: 8px 10px; color: #8490a1; background: transparent; font-size: 10px; }.view-switcher button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(20,36,60,.08); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; background: var(--navy); color: white; padding: 13px 16px; border-radius: 7px; box-shadow: 0 12px 30px rgba(16,24,39,.2); font-size: 11px; animation: toast-in .2s ease; }.toast.success { border-left: 3px solid var(--mint); }.toast.error { border-left: 3px solid var(--pink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.empty-state { color: #9aa4b2; font-size: 12px; padding: 20px 0; }
.draw-inline { display: flex; gap: 6px; }
.draw-inline .button { padding: 7px 9px; font-size: 9px; }
.pub-meta { color: #9aa4b2; font: 9px "DM Mono", monospace; margin-top: 9px; }
.auth-page { max-width: 1080px; padding-top: 70px; }
.auth-layout { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; min-height: 650px; }
.auth-intro h1 { font-size: clamp(38px, 5vw, 64px); max-width: 600px; }
.auth-intro h1 span { color: #4ab8a8; }
.auth-intro > p { color: var(--muted); line-height: 1.7; max-width: 400px; margin-top: 19px; }
.auth-points { display: grid; gap: 18px; margin-top: 50px; }
.auth-points > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 11px; }
.auth-points span { grid-row: span 2; color: #b7c0cc; font: 10px "DM Mono", monospace; padding-top: 2px; }
.auth-points strong { font-size: 12px; }.auth-points small { color: #909baa; font-size: 10px; margin-top: 4px; }
.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 30px; }
.auth-card h2 { font-size: 25px; }.auth-sub { color: #98a2b2; font-size: 11px; margin-top: 7px; }
.auth-card form { display: grid; gap: 14px; margin-top: 25px; }
.auth-card label, .join-card label { display: grid; gap: 7px; color: #677388; font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.auth-card input, .join-card input, .compact-form input { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 11px 12px; color: var(--ink); background: #fbfcfd; font: 12px "Space Grotesk", sans-serif; text-transform: none; letter-spacing: normal; outline: none; }
.auth-card input:focus, .join-card input:focus, .compact-form input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(98,214,199,.13); }
.auth-submit { display: flex; justify-content: space-between; align-items: center; margin-top: 3px; padding: 12px 14px; }.auth-submit span { font-size: 18px; line-height: 10px; }
.auth-error { color: #a94e61; background: #fff0f3; border: 1px solid #ffd7df; border-radius: 5px; padding: 10px; margin-top: 18px; font-size: 11px; }
.auth-success { color: #3f876f; background: #e6f7f2; border: 1px solid #ccefe7; border-radius: 5px; padding: 10px; margin-top: 18px; font-size: 11px; line-height: 1.5; }
.forgot-link { border: 0; background: transparent; color: #4aa997; padding: 8px 0 0; font: 10px "DM Mono", monospace; text-align: left; cursor: pointer; }
.assignment-preview { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; }.assignment-preview span { display:flex; align-items:center; gap:7px; background:#f0faf8; color:#4d8d82; border-radius:5px; padding:8px 10px; font-size:10px; }.assignment-preview i { width:7px; height:7px; border-radius:50%; }
.demo-access { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; }.demo-head { display:flex; justify-content:space-between; color:#98a2b2; font:9px "DM Mono", monospace; letter-spacing:.08em; }.demo-head small { color:#c3a16c; }
.demo-login { width: 100%; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; text-align: left; gap: 9px; border-radius: 6px; padding: 10px; margin-top: 8px; }.demo-login:hover { border-color: var(--mint); background: #f7fffd; }.demo-login > span:nth-child(2) { display:grid; flex:1; }.demo-login strong { font-size: 11px; font-weight: 600; }.demo-login small { color:#9ba5b3; font-size:9px; margin-top:3px; }.demo-login b { color:#4aa997; font:9px "DM Mono", monospace; }.demo-dot { width: 7px; height: 7px; border-radius: 50%; }.demo-dot.mint { background: var(--mint); }.demo-dot.orange { background: var(--orange); }
.management-card .card-body { padding-top: 18px; }.management-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }.management-title { display:flex; justify-content:space-between; align-items:center; margin-bottom: 12px; }.management-title h3 { font-size: 12px; }.management-title > span { color:#a0a9b8; font:9px "DM Mono", monospace; }
.compact-form { display:grid; grid-template-columns: 1fr 1fr; gap:7px; margin-bottom: 13px; }.compact-form input[name="slug"] { grid-column: 1 / 2; }.compact-form input[type="color"] { height: 37px; padding: 4px; }.compact-form .button { padding: 8px 9px; font-size: 10px; }.compact-form > .button { grid-column: 2; }
.compact-form select { width:100%; min-width:0; border:1px solid var(--line); border-radius:5px; padding:10px 9px; color:var(--ink); background:#fbfcfd; font:10px "Space Grotesk", sans-serif; }.invite-field { display:grid; gap:5px; color:#8792a2; font:9px "DM Mono", monospace; text-transform:uppercase; letter-spacing:.04em; }
.assignment-picker { grid-column: 1 / -1; display:flex; flex-wrap:wrap; gap: 5px; }.assignment-picker label { display:flex; align-items:center; gap:5px; padding: 6px 7px; background:#f5f7fa; border-radius:4px; color:#8792a2; font:9px "Space Grotesk", sans-serif; text-transform:none; letter-spacing:0; }.assignment-picker input { accent-color: var(--mint); }
.invite-result { margin:0 0 15px; padding:12px; border:1px solid #ccefe7; background:#f4fcfa; border-radius:6px; }.invite-result > div:first-child { display:grid; gap:4px; margin-bottom:9px; }.invite-result strong { font-size:10px; }.invite-result small { color:#829286; font-size:9px; }.invite-link-row { display:flex; gap:7px; align-items:center; }.invite-link-row input { flex:1; min-width:0; border:1px solid var(--line); border-radius:5px; padding:9px 10px; background:#fff; color:var(--ink); font:10px "DM Mono",monospace; user-select:all; }.invite-link-row .button { white-space:nowrap; }.caller-overview-notice { color:#a94e61; background:#fff5f6; border-radius:5px; padding:9px; margin-top:13px; font-size:10px; }.caller-overview-notice .tiny-button { margin-left:7px; }
.management-list { border-top: 1px solid #f0f2f6; }.management-row { display:flex; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid #f0f2f6; min-width:0; }.management-row > span:nth-child(2) { display:grid; min-width:0; flex:1; }.management-row strong { font-size:10px; }.management-row small { color:#9aa4b2; font-size:9px; margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.tiny-button { border:1px solid var(--line); background:#fff; color:#8792a2; border-radius:4px; padding:5px 7px; font:9px "DM Mono", monospace; }.tiny-button:hover { border-color:var(--pink); color:#a95e6e; }.avatar.mini { width:22px; height:22px; font-size:8px; flex:0 0 22px; }
.audit-strip { border-top:1px solid var(--line); margin-top:22px; padding-top:20px; }.audit-list { display:grid; grid-template-columns: repeat(4, 1fr); gap:8px; }.audit-row { display:flex; align-items:center; gap:8px; border:1px solid #eef0f4; border-radius:5px; padding:9px; min-width:0; }.audit-status { width:18px; height:18px; display:grid; place-items:center; border-radius:4px; font:10px "DM Mono", monospace; flex:0 0 18px; }.audit-status.valid { color:#42a18f; background:#e7f8f4; }.audit-status.invalid { color:#a5adba; background:#f1f3f6; }.audit-row > span:nth-child(2) { display:grid; min-width:0; flex:1; }.audit-row strong { font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.audit-row small { color:#9ba5b3; font-size:8px; margin-top:3px; }.audit-row time { color:#a0a9b8; font:8px "DM Mono", monospace; }
.archive-details { border:1px solid var(--line); border-radius:6px; padding:10px 12px; }.archive-details summary { cursor:pointer; color:#4aa997; font:10px "DM Mono", monospace; list-style:none; }.archive-details summary::-webkit-details-marker { display:none; }.archive-list { max-height:250px; overflow:auto; margin-top:8px; border-top:1px solid #f0f2f6; }.archive-list > div { display:grid; grid-template-columns:1fr auto; gap:3px 8px; padding:8px 0; border-bottom:1px solid #f0f2f6; }.archive-list strong { font-size:10px; }.archive-list small { color:#9aa4b2; font-size:9px; }.archive-list time { grid-column:2; grid-row:1 / span 2; align-self:center; color:#a0a9b8; font:8px "DM Mono", monospace; }
.operator-panel { margin-top:13px; }.operator-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }.operator-stats > div { border:1px solid var(--line); border-radius:6px; padding:12px; }.operator-stats strong { display:block; font-size:22px; letter-spacing:-.06em; }.operator-stats small { color:#97a1b0; font-size:9px; }.operator-columns { display:grid; grid-template-columns:1fr 1fr; gap:30px; margin-top:24px; }.simple-list { border-top:1px solid #f0f2f6; }.simple-list > div { display:flex; align-items:center; gap:8px; padding:9px 0; border-bottom:1px solid #f0f2f6; }.simple-list > div > span:nth-child(2) { display:grid; }.simple-list strong { font-size:10px; }.simple-list small { color:#9aa4b2; font-size:9px; margin-top:3px; }
.join-card { background: #fff; border:1px solid var(--line); border-radius:10px; box-shadow:var(--shadow); padding:22px; }.join-card h2 { font-size:21px; }.join-card > p { color:#909baa; font-size:11px; line-height:1.6; margin-top:8px; }.join-card form { display:grid; gap:14px; margin-top:22px; }.join-card .button { display:flex; align-items:center; justify-content:space-between; }.join-card .button span { font-size:17px; }.join-safe { display:block; color:#a0a9b5; font:9px "DM Mono", monospace; margin-top:18px; }
@media (max-width: 950px) {
  .sidebar { width: 70px; padding: 22px 10px 14px; }.brand { padding: 0 9px 32px; }.brand > div:last-child, .sidebar-label, .nav-item { font-size: 0; }.nav-item { justify-content: center; padding: 12px 4px; }.nav-icon { font-size: 17px; }.nav-count { display: none; }.pub-list, .secure-badge, .profile-row { display: none; }.pub-label { display: block; height: 1px; padding: 0; margin: 30px 0; border-top: 1px solid #263249; }.main-content { width: calc(100% - 70px); }.topbar { padding: 0 24px; }.page { padding-left: 24px; padding-right: 24px; }.admin-grid { grid-template-columns: 1fr; }.tv-main { gap: 4vw; padding-left: 5vw; padding-right: 5vw; }.tv-bottom { padding-left: 5vw; padding-right: 5vw; }.auth-layout { gap: 30px; }.auth-page { padding-top: 35px; }.management-grid, .operator-columns { gap: 18px; }.audit-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .display-page .view-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; }
  .display-page .view-switcher button { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .topbar { height: 60px; padding: 0 16px; }.crumb-muted, .crumb-sep { display: none; }.top-actions { gap: 10px; }.connection { font-size: 8px; }.page { padding: 26px 14px 45px; }.page-heading { display: block; margin-bottom: 22px; }.page-heading .button { margin-top: 16px; }.stats-row { grid-template-columns: repeat(2, 1fr); }.stat-card { min-height: 82px; padding: 13px; }.stat-card .stat-value { font-size: 21px; margin-top: 8px; }.admin-grid { display: block; }.card { margin-bottom: 13px; }.card-head { padding: 15px; }.card-body { padding: 15px; }.draw-stage { padding: 16px; }.draw-stage .big-number { font-size: 60px; }.draw-button { width: 94px; height: 94px; font-size: 11px; border-width: 6px; }.draw-inline { display:grid; }.draw-inline .button { padding: 6px; }.number-board { gap: 3px; }.ball { font-size: 8px; }.pub-status-grid { grid-template-columns: repeat(2, 1fr); }.history-list { gap: 5px; }.history-ball { padding: 7px 2px; }.history-ball strong { font-size: 15px; }.display-page { padding: 12px 8px 28px; }.tv-frame { min-height: calc(100vh - 82px); }.tv-header { padding: 16px; }.tv-main { grid-template-columns: 1fr; text-align: center; padding: 10vh 20px 7vh; }.tv-copy h1 { font-size: 43px; }.tv-last-number { width: 46vw; margin: 0 auto; }.tv-bottom { padding: 0 16px 30px; }.tv-number-board { gap: 3px; }.tv-number-board .ball { font-size: 8px; }.tv-brand { font-size: 14px; }.tv-pub { font-size: 9px; }.player-page { padding: 21px 14px 40px; }.ticket-cell { font-size: 12px; }.qr-panel { padding: 13px; }.qr-panel img { width: 82px; height: 82px; }.auth-layout { grid-template-columns: 1fr; min-height: auto; gap: 28px; }.auth-page { padding: 28px 14px 50px; }.auth-intro h1 { font-size: 42px; }.auth-points { margin-top: 30px; gap: 13px; }.auth-card { padding: 20px; }.management-grid, .operator-columns { grid-template-columns: 1fr; }.audit-list { grid-template-columns: 1fr; }.compact-form { grid-template-columns: 1fr; }.compact-form > .button, .compact-form input[name="slug"] { grid-column: auto; }.operator-stats { gap:5px; }.operator-stats > div { padding:9px; }.operator-stats strong { font-size:18px; }
}
@media (max-width: 360px) {
  .display-page .tv-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px; }
  .display-page .tv-brand { grid-column: 1 / -1; }
  .display-page .tv-pub { min-width: 0; overflow-wrap: anywhere; }
  .display-page .tv-live { white-space: nowrap; }
}
.tv-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3vw; align-items: center; }
.tv-board-wrap { min-width: 0; }
.tv-join { display: grid; justify-items: center; gap: 6px; text-align: center; color: #fff; text-decoration: none; min-width: 0; width: clamp(240px, 22vw, 340px); }
.tv-join img { width: 100%; aspect-ratio: 1; height: auto; background: #fff; border-radius: 10px; display: block; }
.tv-join-title { color: var(--mint); font: 500 18px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.tv-join strong { font-size: 22px; letter-spacing: -.03em; }
.tv-join small { color: #b4c0d4; font: 15px "DM Mono", monospace; overflow-wrap: anywhere; }
@media (min-width: 951px) { .tv-main { padding-top: 4vh; padding-bottom: 4vh; } .tv-bottom { padding-bottom: 4vh; } }
@media (max-width: 950px) { .tv-join { width: 200px; } }
@media (max-width: 760px) { .tv-bottom { grid-template-columns: minmax(0, 1fr); } .tv-join { width: min(72vw, 260px); max-width: 100%; margin: 24px auto 0; } }
.tv-display-enter { margin-top: 10px; }
.tv-display-exit { display: none; }
body.tv-display-mode { overflow: hidden; background: var(--navy); }
.tv-display-mode .sidebar, .tv-display-mode .topbar, .tv-display-mode .page-heading, .tv-display-mode .operator-panel { display: none; }
.tv-display-mode .display-page { position: fixed; inset: 0; max-width: none; margin: 0; padding: 0; }
.tv-display-mode .tv-frame { height: 100vh; height: 100dvh; min-height: 0; border-radius: 0; padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 420px); grid-template-rows: auto minmax(0, .85fr) minmax(0, 1fr); gap: 24px; }
.tv-display-mode .tv-header { grid-column: 1 / -1; padding: 0 0 16px; gap: 24px; }
.tv-display-mode .tv-brand { font-size: 24px; }
.tv-display-mode .tv-pub { font-size: clamp(16px, 1.4vw, 24px); }
.tv-display-mode .tv-live { font-size: 18px; white-space: nowrap; }
.tv-display-mode .tv-main { grid-column: 1; grid-row: 2; grid-template-columns: 1fr; justify-items: center; padding: 0; gap: 0; text-align: center; min-height: 0; }
.tv-display-mode .tv-copy { display: none; }
.tv-display-mode .tv-last-label { font-size: 16px; }
.tv-display-mode .tv-last-number { width: min(28vh, 290px); font-size: clamp(110px, 21vh, 230px); margin: 0 auto; }
.tv-display-mode .tv-bottom { display: contents; }
.tv-display-mode .tv-board-wrap { grid-column: 1; grid-row: 3; min-height: 0; display: flex; flex-direction: column; }
.tv-display-mode .tv-bottom-head { font-size: 16px; }
.tv-display-mode .tv-number-board { flex: 1; min-height: 0; grid-template-rows: repeat(6, minmax(0, 1fr)); }
.tv-display-mode .tv-number-board .ball { aspect-ratio: auto; font-size: clamp(18px, 2.8vh, 32px); }
.tv-display-mode .tv-join { grid-column: 2; grid-row: 2 / 4; align-self: center; width: 100%; max-width: 100%; margin: 0; }
.tv-display-mode .tv-display-exit { display: block; position: absolute; right: 12px; bottom: 12px; opacity: .7; font-size: 11px; padding: 7px 10px; }
.tv-display-mode .tv-display-exit:hover, .tv-display-mode .tv-display-exit:focus-visible { opacity: 1; }
.tv-display-mode .toast { bottom: 56px; }
