@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0e10;
  --bg-soft: #101416;
  --panel: #151a1d;
  --panel-2: #1b2225;
  --line: #283137;
  --line-soft: rgba(185, 204, 202, .12);
  --text: #f4f7f5;
  --muted: #93a09e;
  --teal: #2ec4a6;
  --teal-soft: rgba(46, 196, 166, .14);
  --gold: #d9a441;
  --gold-soft: rgba(217, 164, 65, .14);
  --coral: #e05b5b;
  --shadow: 0 20px 60px rgba(0, 0, 0, .22);
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }
.preview-banner { display: flex; min-height: 36px; align-items: center; justify-content: center; gap: 10px; padding: 8px 18px; border-bottom: 1px solid rgba(217, 164, 65, .42); background: #2b2415; color: #f4d895; font-size: 11px; }
.preview-banner strong { color: #fff1c7; font-size: 12px; }
.auth-preview-banner { position: fixed; top: 0; right: 0; left: 0; z-index: 20; }
.topbar { position: sticky; top: 0; z-index: 10; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; border-bottom: 1px solid var(--line-soft); background: rgba(11, 14, 16, .92); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 172px; }
.brand-mark { position: relative; width: 34px; height: 34px; border: 1px solid var(--gold); border-radius: 12px; background: linear-gradient(145deg, #20473e, #0c1716); box-shadow: inset 0 0 0 3px rgba(217, 164, 65, .09); }
.brand-mark::before, .brand-mark::after { content: ''; position: absolute; top: -5px; width: 9px; height: 10px; border: 1px solid var(--gold); border-bottom: 0; border-radius: 8px 8px 0 0; background: #1c6f62; }
.brand-mark::before { left: 4px; transform: rotate(-18deg); }
.brand-mark::after { right: 4px; transform: rotate(18deg); }
.brand-logo-frame { display: block; width: 36px; height: 36px; overflow: hidden; border: 1px solid rgba(217, 164, 65, .55); border-radius: 10px; background: #fff; }
.brand-logo-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-word { font-size: 17px; line-height: 1.1; font-weight: 800; letter-spacing: .02em; }
.brand-word small { display: block; margin-top: 4px; color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .18em; text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 9px 13px; border-radius: 5px; color: var(--muted); font-size: 13px; transition: .18s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--panel); }
.nav-link.active { box-shadow: inset 0 -2px var(--teal); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.store-chip { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(46, 196, 166, .1); }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #49645e; border-radius: 50%; background: #214b42; color: #c6efe4; font-size: 12px; font-weight: 700; }

.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.sidebar { display: flex; flex-direction: column; gap: 24px; padding: 28px 18px; border-right: 1px solid var(--line-soft); background: var(--bg-soft); }
.side-label { padding: 0 12px; color: #5f6b69; font: 10px 'DM Mono', monospace; letter-spacing: .16em; text-transform: uppercase; }
.side-group { display: grid; gap: 4px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 5px; color: var(--muted); font-size: 13px; transition: .18s ease; }
.side-link:hover, .side-link.active { color: var(--text); background: var(--panel); }
.side-link.active { box-shadow: inset 3px 0 var(--teal); }
.side-icon { display: grid; width: 20px; place-items: center; color: inherit; font-size: 16px; }
.sidebar-bottom { margin-top: auto; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(145deg, rgba(46,196,166,.08), transparent 70%); }
.sidebar-bottom p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.sidebar-bottom strong { display: block; margin-bottom: 7px; font-size: 13px; }

.main { min-width: 0; padding: 30px clamp(20px, 4vw, 56px) 56px; overflow: hidden; }
.content { width: min(1240px, 100%); margin: 0 auto; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--teal); font: 11px 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--teal); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 16px 0 28px; }
.page-heading h1 { margin: 0; font-size: clamp(26px, 3vw, 42px); line-height: 1.18; letter-spacing: -.02em; }
.page-heading p { max-width: 460px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.heading-actions { display: flex; align-items: center; gap: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border-radius: 4px; font-size: 12px; font-weight: 600; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--teal); color: #061210; }
.button.primary:hover { background: #4ed5b9; }
.button.ghost { border: 1px solid var(--line); background: transparent; color: var(--text); }
.button.ghost:hover { border-color: #4a5b5a; background: var(--panel); }
.button.gold { background: var(--gold); color: #191207; }
.button.danger { border: 1px solid rgba(224,91,91,.35); background: rgba(224,91,91,.1); color: #ff9b9b; }
.button.compact { min-height: 32px; padding: 0 10px; }
.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 15%, rgba(46,196,166,.12), transparent 32%), var(--bg); }
.auth-panel { width: min(420px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); box-shadow: var(--shadow); }
.auth-brand { margin-bottom: 54px; }
.auth-panel h1 { margin: 14px 0 8px; font-size: 32px; }
.auth-copy { margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; }
.auth-form input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; outline: none; background: var(--bg-soft); color: var(--text); }
.auth-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.auth-form select, .auth-form textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; outline: none; background: var(--bg-soft); color: var(--text); }
.auth-form textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.auth-form select:focus, .auth-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.auth-form .button { width: 100%; margin-top: 4px; }
.auth-note { margin: 21px 0 0; color: #71807d; font-size: 10px; line-height: 1.7; }
.form-error { padding: 10px 12px; border: 1px solid rgba(224,91,91,.35); border-radius: 4px; background: rgba(224,91,91,.1); color: #ff9b9b; font-size: 11px; }
.loading-panel { text-align: center; }

.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); min-height: 280px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #11191a; box-shadow: var(--shadow); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 5vw, 48px); background: radial-gradient(circle at 8% 18%, rgba(46,196,166,.17), transparent 37%), linear-gradient(130deg, #12221f, #13191b 63%); }
.hero-copy h2 { max-width: 500px; margin: 13px 0 12px; font-size: clamp(24px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.04em; }
.hero-copy p { max-width: 470px; margin: 0 0 23px; color: #b5c0be; font-size: 13px; line-height: 1.75; }
.hero-meta { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 11px; }
.hero-meta strong { color: var(--text); font: 500 16px 'DM Mono', monospace; }
.hero-art { position: relative; min-height: 260px; overflow: hidden; background: #f4f4f0; }
.hero-art img { width: 145%; height: 100%; object-fit: cover; object-position: left center; mix-blend-mode: multiply; opacity: .9; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 34, 31, .42), transparent 42%); pointer-events: none; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 13px; }
.section-head h2 { margin: 0; font-size: 17px; }
.section-head a, .section-head button { color: var(--teal); background: none; font-size: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.panel { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.panel-pad { padding: 18px; }
.role-context { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: -8px 0 20px; padding: 16px 18px; border: 1px solid rgba(46, 196, 166, .25); border-radius: 6px; background: linear-gradient(115deg, rgba(46, 196, 166, .1), transparent 72%), var(--panel); }
.role-context h3 { margin: 8px 0 4px; font-size: 15px; }
.role-context p { max-width: 760px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.role-context-badge { flex: 0 0 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--teal); font-size: 10px; }
.event-create-panel { margin-bottom: 20px; }
.event-create-panel .section-head { margin-top: 0; }
.event-create-panel .section-head p { margin: 5px 0 0; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.event-form { gap: 14px; }
.event-form .button { width: auto; justify-self: start; min-width: 150px; }
.date-filter { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.date-filter input { min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); }
.current-row td { background: rgba(46, 196, 166, .08); }
.metric-card { padding: 17px; }
.metric-card .metric-label { color: var(--muted); font-size: 11px; }
.metric-card .metric-value { display: block; margin: 12px 0 5px; font: 500 27px 'DM Mono', monospace; }
.metric-card .metric-foot { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.positive { color: var(--teal) !important; }
.gold-text { color: var(--gold) !important; }
.muted { color: var(--muted); }
.event-card { position: relative; padding: 17px; overflow: hidden; }
.event-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--teal); }
.event-card.gold-edge::before { background: var(--gold); }
.event-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.event-type { color: var(--muted); font: 10px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.event-status { padding: 4px 7px; border-radius: 3px; color: var(--teal); background: var(--teal-soft); font-size: 10px; }
.event-status.gold { color: var(--gold); background: var(--gold-soft); }
.event-card h3 { margin: 13px 0 7px; font-size: 15px; }
.event-info { display: grid; gap: 7px; margin: 13px 0 16px; color: var(--muted); font-size: 11px; }
.event-info span { display: flex; align-items: center; gap: 7px; }
.event-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.participant-stack { display: flex; align-items: center; }
.participant { display: grid; width: 24px; height: 24px; margin-right: -6px; place-items: center; border: 2px solid var(--panel); border-radius: 50%; background: #2c5d52; color: #d4f1e9; font-size: 9px; }
.participant:nth-child(2) { background: #6b5332; }
.participant:nth-child(3) { background: #4b5661; }
.participant.more { background: var(--panel-2); color: var(--muted); }
.event-link { color: var(--teal); font-size: 11px; }

.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--muted); font-size: 11px; }
.filter.active { border-color: rgba(46,196,166,.45); color: var(--teal); background: var(--teal-soft); }
.select { min-width: 150px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); color: var(--text); font-size: 11px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.detail-hero { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(135deg, rgba(46,196,166,.11), transparent 48%), var(--panel); }
.detail-hero h1 { margin: 13px 0 8px; font-size: clamp(24px, 3vw, 36px); }
.detail-hero .subline { color: var(--muted); font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 22px; }
.detail-stat { padding: 13px; border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(0,0,0,.13); }
.detail-stat span { display: block; color: var(--muted); font-size: 10px; }
.detail-stat strong { display: block; margin-top: 8px; font: 500 16px 'DM Mono', monospace; }
.table-panel { margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.table-stage { position: relative; display: grid; min-height: 370px; place-items: center; overflow: hidden; }
.table-stage::before { content: ''; position: absolute; width: min(70%, 410px); aspect-ratio: 1.75; border: 10px solid #273035; border-radius: 50%; background: radial-gradient(circle at 40% 36%, rgba(46,196,166,.24), transparent 48%), #123b34; box-shadow: inset 0 0 0 2px var(--gold), 0 22px 45px rgba(0,0,0,.25); }
.table-label { position: absolute; z-index: 1; top: 49%; color: rgba(219, 241, 235, .66); font: 10px 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.seat-list { position: absolute; inset: 0; z-index: 2; }
.seat { position: absolute; display: grid; width: 52px; aspect-ratio: 1; place-items: center; border: 2px solid #536265; border-radius: 50%; background: #222a2d; color: #bbc5c3; font: 500 13px 'DM Mono', monospace; box-shadow: 0 5px 14px rgba(0,0,0,.24); transition: .18s ease; }
.seat:hover { transform: scale(1.08); border-color: var(--teal); }
.seat.available { border-color: #3e8679; color: #9be5d5; background: #17483f; }
.seat.selected { border-color: var(--gold); color: #161008; background: var(--gold); box-shadow: 0 0 0 5px rgba(217,164,65,.15); }
.seat.occupied { border-color: #5d4c36; color: #d9b77b; background: #443a2b; cursor: not-allowed; }
.seat.unavailable { border-color: #3a4143; color: #697472; background: #242a2c; cursor: not-allowed; }
.seat:nth-child(1) { left: 15%; top: 24%; } .seat:nth-child(2) { left: 29%; top: 10%; } .seat:nth-child(3) { left: 46%; top: 8%; } .seat:nth-child(4) { right: 29%; top: 10%; } .seat:nth-child(5) { right: 15%; top: 24%; }
.seat:nth-child(6) { right: 15%; bottom: 24%; } .seat:nth-child(7) { right: 29%; bottom: 10%; } .seat:nth-child(8) { left: 46%; bottom: 8%; } .seat:nth-child(9) { left: 29%; bottom: 10%; } .seat:nth-child(10) { left: 15%; bottom: 24%; }
.seat-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 15px; color: var(--muted); font-size: 10px; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border: 1px solid #536265; border-radius: 50%; background: #222a2d; }
.legend-dot.available { border-color: #3e8679; background: #17483f; } .legend-dot.occupied { border-color: #5d4c36; background: #443a2b; } .legend-dot.selected { border-color: var(--gold); background: var(--gold); }
.side-sticky { position: sticky; top: 96px; display: grid; gap: 13px; }
.join-panel { padding: 19px; border: 1px solid rgba(46,196,166,.35); border-radius: 6px; background: linear-gradient(145deg, rgba(46,196,166,.13), transparent 66%), var(--panel); }
.join-panel h3 { margin: 0 0 8px; font-size: 16px; }
.join-panel p { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.join-panel .button { width: 100%; }
.summary-list { display: grid; gap: 12px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.summary-row strong { color: var(--text); font-weight: 500; text-align: right; }
.loading-state, .empty-state, .error-state { display: grid; gap: 8px; min-height: 130px; place-items: center; align-content: center; text-align: center; }
.loading-state { color: var(--muted); }
.empty-state strong, .error-state strong { color: var(--text); font-size: 14px; }
.empty-state span, .error-state span { color: var(--muted); font-size: 11px; }
.error-state { border-color: rgba(224,91,91,.35); color: #ff9b9b; }
.error-state .button { margin-top: 4px; }
.legend-dot.held { border-color: #806642; background: #5d4931; }

.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.toolbar-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.toolbar-panel .title { font-weight: 600; }
.toolbar-panel .hint { color: var(--muted); font-size: 11px; }
.timer-panel { display: grid; place-items: center; min-height: 300px; padding: 22px; border: 1px solid var(--line); border-radius: 6px; background: radial-gradient(circle, rgba(46,196,166,.13), transparent 46%), var(--panel); }
.timer-ring { display: grid; width: 206px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(46,196,166,.34); border-radius: 50%; box-shadow: 0 0 0 14px rgba(46,196,166,.035), inset 0 0 0 9px rgba(46,196,166,.06); }
.timer-readout { text-align: center; }
.timer-readout strong { display: block; color: var(--text); font: 500 39px 'DM Mono', monospace; letter-spacing: .04em; }
.timer-readout span { color: var(--teal); font-size: 11px; }
.timer-actions { display: flex; gap: 8px; margin-top: 22px; }
.control-list { display: grid; gap: 10px; }
.timer-reason { display: grid; gap: 7px; margin-top: 2px; color: var(--muted); font-size: 11px; }
.timer-reason input { width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; outline: none; background: var(--bg-soft); color: var(--text); font-size: 11px; }
.timer-reason input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.timer-adjust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.timer-adjust-grid .button { width: 100%; }
.event-timer-readonly { margin-top: 18px; background: linear-gradient(135deg, rgba(46,196,166,.08), transparent 65%), var(--panel); }
.event-timer-readonly .detail-grid { margin-top: 14px; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 4px; }
.control-row span { color: var(--muted); font-size: 11px; }
.control-row strong { color: var(--text); font: 500 14px 'DM Mono', monospace; }
.range { width: 100%; accent-color: var(--teal); }
.log { display: grid; gap: 0; }
.log-row { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.log-row:last-child { border-bottom: 0; }
.log-row time { color: var(--muted); font: 10px 'DM Mono', monospace; }
.log-row span { color: var(--text); } .log-row em { color: var(--teal); font-style: normal; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: 11px; }
th { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
.rank-cell { display: flex; align-items: center; gap: 9px; }
.rank-no { width: 24px; color: var(--gold); font: 500 13px 'DM Mono', monospace; }
.rank-avatar { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #23554b; color: #c8eee5; font-size: 10px; }
.progress { width: 100px; height: 5px; overflow: hidden; border-radius: 99px; background: var(--line); }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--teal); }

.profile-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(100deg, rgba(46,196,166,.11), transparent 55%), var(--panel); }
.profile-avatar { display: grid; width: 68px; height: 68px; place-items: center; border: 2px solid var(--gold); border-radius: 50%; background: #24544a; color: #d4f3eb; font-size: 23px; font-weight: 800; }
.profile-head h2 { margin: 0 0 5px; font-size: 20px; } .profile-head p { margin: 0; color: var(--muted); font-size: 11px; }
.profile-score { text-align: right; } .profile-score span { display: block; color: var(--muted); font-size: 10px; } .profile-score strong { display: block; margin-top: 5px; color: var(--gold); font: 500 24px 'DM Mono', monospace; }
.badge-strip { display: grid; grid-template-columns: 1.3fr 1fr; gap: 13px; }
.badge-art { min-height: 200px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #eef0ec; }
.badge-art img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; object-position: center top; mix-blend-mode: multiply; }
.list-card { padding: 17px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.list-row:first-child { padding-top: 0; } .list-row:last-child { padding-bottom: 0; border-bottom: 0; }
.list-row-main { min-width: 0; } .list-row-main strong { display: block; margin-bottom: 5px; font-size: 12px; } .list-row-main span { color: var(--muted); font-size: 10px; }
.list-row-value { color: var(--teal); font: 500 13px 'DM Mono', monospace; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: flex; align-items: center; gap: 10px; max-width: min(360px, calc(100vw - 48px)); padding: 13px 15px; border: 1px solid rgba(46,196,166,.35); border-radius: 5px; background: #162622; box-shadow: var(--shadow); color: #c7f1e7; font-size: 12px; animation: rise .2s ease-out; }
.offline-banner { position: fixed; top: 62px; right: 0; left: 0; z-index: 15; padding: 9px 16px; border-bottom: 1px solid rgba(217,164,65,.35); background: #2b2415; color: #f2cf83; text-align: center; font-size: 11px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav { display: none; }

@media (max-width: 980px) {
  .topnav { display: none; }
  .layout { grid-template-columns: 178px minmax(0, 1fr); }
  .detail-layout, .split-layout { grid-template-columns: 1fr; }
  .side-sticky { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 180px; }
}

@media (max-width: 680px) {
  .preview-banner { align-items: flex-start; gap: 4px; flex-direction: column; padding: 8px 12px; }
  .topbar { height: 62px; padding: 0 16px; } .store-chip { display: none; }
  .layout { display: block; min-height: calc(100vh - 62px); }
  .sidebar { display: none; }
  .main { padding: 22px 15px 94px; }
  .brand { min-width: auto; } .brand-word { font-size: 15px; }
  .page-heading { display: block; margin-bottom: 20px; } .heading-actions { margin-top: 14px; }
  .grid-3, .grid-2, .detail-grid, .badge-strip, .side-sticky { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .role-context { align-items: flex-start; flex-direction: column; }
  .date-filter { width: 100%; justify-content: space-between; }
  .date-filter input { flex: 1; }
  .hero-copy { min-height: 265px; padding: 27px 22px; }
  .hero-art { min-height: 145px; } .hero-art img { width: 165%; }
  .table-panel { padding: 15px; } .table-stage { min-height: 300px; }
  .table-stage::before { width: 82%; border-width: 7px; }
  .seat { width: 42px; font-size: 11px; }
  .profile-head { grid-template-columns: auto 1fr; } .profile-score { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; padding-top: 12px; border-top: 1px solid var(--line-soft); }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; display: grid; grid-template-columns: repeat(4, 1fr); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(16,20,22,.96); backdrop-filter: blur(18px); }
  .mobile-nav a { display: grid; gap: 3px; place-items: center; min-height: 47px; color: var(--muted); font-size: 10px; } .mobile-nav a.active { color: var(--teal); } .mobile-nav b { font-size: 17px; font-weight: 400; }
}
