/* public/pwa.css */
.pull-refresh-status{position:fixed;top:calc(42px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:20000;max-width:calc(100% - 28px);padding:9px 14px;border:1px solid #dedede;border-radius:20px;background:#fff;color:#1a1a1a;font-size:13px;line-height:20px;text-align:center;pointer-events:none}
.pull-refresh-status[hidden]{display:none}

/* frontend/styles/tokens.css */
/* Active app theme tokens. Typography roles remain in public/typography.css. */
:root {
  --canvas: #f5f5f5;
  --primary: #1a1a1a;
  --green: var(--ink);
  --magenta: var(--primary);
  --link: var(--primary);
  --surface: #fff;
  --onyx: #1a1a1a;
  --ink: #1a1a1a;
  --muted: #666;
  --accent-ink: var(--primary);
  --line: #dedede;
  --radius: 12px;
  --canvas-alt: #f5f5f5;
  --line-soft: #dedede;
  --primary-deep: #000;
  --primary-soft: #ececec;
  --accent-pink: var(--primary);
  --type-display: 16px;
  --type-heading: 16px;
  --type-body-lg: 14px;
  --type-body: 15px;
  --type-caption: 12px;
  --type-micro: 11px;
  --type-number: 14px;
  --pass-violet: var(--primary);
  --pass-emerald: var(--success-ink);
  --pass-ink: var(--ink);
  --pass-muted: var(--muted);
  --pass-line: var(--line);
  --success-ink: var(--ink);
  --success-soft: var(--primary-soft);
  --warning-ink: var(--ink);
  --warning-soft: var(--primary-soft);
  --error-ink: var(--ink);
  --error-soft: var(--primary-soft);
  --reward-fill: #bfe86b;
  --reward-ink: var(--ink);
  --ticket-seat: var(--primary-soft);
  color-scheme: light;
}

/* public/styles.css */
/* Hairline Cool palette from DESIGN-supabase.md. */
* { box-sizing: border-box; }
.loading-spinner { display:flex; align-items:center; justify-content:center; min-height:96px; }
.loading-spinner::before { content:""; width:28px; height:28px; border:3px solid var(--line); border-top-color:var(--primary); border-radius:50%; animation:loading-spin .75s linear infinite; }
@keyframes loading-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .loading-spinner::before { animation:none; } }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
body::before {
  content: none;
}
@keyframes drift { to { transform: translate3d(5%, 5%, 0) scale(1.08); } }
a { color: inherit; text-decoration: none; }
.text-link { color: var(--link); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
img { max-width: 100%; }
.boot { min-height: 100dvh; display: grid; place-items: center; font-weight: 800; letter-spacing: -.03em; }
.shell { min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 1200px; margin: auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; min-height: 68px; }
.logo { display: inline-flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 900; letter-spacing: -.06em; white-space: nowrap; }
.logo-mark { position: relative; display: grid; place-items: center; width: 36px; height: 36px; background: var(--primary); color: white; border-radius: 10px; transform: rotate(-9deg); font-size: 19px; }
.logo-mark span { transform: rotate(9deg); }
.desktop-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 12px; color: var(--muted); font-weight: 700; }
.nav-link.active, .nav-link:hover { color: var(--primary); background: #edf0ff; }
.score-chip { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); padding: 8px 13px; border-radius: 50px; font-size: 14px; font-weight: 800; }
.score-chip b { color: var(--accent-ink); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); font-size: 22px; }
.mobile-menu { display: none; padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.mobile-menu.open { display: grid; }
.mobile-menu .nav-link { padding: 12px; }
.main { max-width: 1200px; margin: 0 auto; padding: 30px 20px 92px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-ink); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.055em; line-height: 1.1; }
h1 { font-size: clamp(30px, 7vw, 38px); font-weight: 900; }
h2 { font-size: clamp(22px, 5vw, 28px); font-weight: 900; }
h3 { font-size: 19px; font-weight: 800; }
.lead { color: #3f4964; font-size: clamp(16px, 2vw, 19px); line-height: 1.55; max-width: 620px; }
.muted, .meta { color: var(--muted); }
.small { font-size: 14px; }
.hero { position: relative; overflow: hidden; padding: clamp(30px, 6vw, 60px); background: #ffffff; color: var(--ink); border-radius: 40px; min-height: 340px; }
.hero .lead { color: #f3f2ff; }
.hero::before { content: ""; position: absolute; width: 350px; height: 350px; right: -80px; bottom: -170px; border: 54px solid rgba(255,255,255,.12); border-radius: 120px; transform: rotate(-25deg); }
.hero > * { position: relative; }
.hero h1 { max-width: 750px; margin-bottom: 18px; }
.hero .lead { margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { border: 0; min-height: 48px; border-radius: 12px; padding: 11px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-weight: 800; transition: transform .15s ease, filter .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.button-primary { background: var(--primary); color: white; }
.button-green { background: var(--green); color: #000; }
.button-ghost { background: #eef0ff; color: #26367d; border: 1px solid #d9def7; }
.button-white { background: white; color: #20243a; border: 1px solid var(--line); }
.button-danger { background: #fff0f8; color: #a51e68; border: 1px solid rgba(236,72,189,.45); }
.button-small { min-height: 42px; padding: 8px 14px; font-size: 14px; }
.button-block { width: 100%; }
.section { margin-top: 38px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin-bottom: 0; }
.section-head a { color: var(--link); font-weight: 800; white-space: nowrap; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 8px 24px rgba(32,43,94,.045); }
.card-soft { background: #f7f8ff; }
.card-magenta { background: #1c1c1c; color: white; }
.card-magenta .eyebrow { color: white; }
.stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 40px; padding: 28px; background: var(--primary); }
.stat-number { display: block; font-size: clamp(48px, 7vw, 72px); font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.stat-label { font-weight: 800; }
.stat-symbol { font-size: 60px; opacity: .65; }
.event-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.event-card { display: block; min-height: 206px; padding: 24px; background: var(--surface); border-radius: 24px; border: 1px solid var(--line); transition: transform .15s ease, border-color .15s ease; }
.event-card:hover { transform: translateY(-3px); border-color: rgba(88,101,242,.9); }
.event-card h3 { margin: 16px 0 8px; font-size: 25px; }
.event-card .arrow { float: right; font-size: 24px; font-weight: 800; }
.event-foot { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: #d1d3f1; }
.priority-tag { margin-top: 14px; color: var(--accent-ink); font-weight: 850; font-size: 13px; }
.badge { display: inline-flex; align-items: center; border-radius: 16px; background: var(--magenta); color: white; padding: 4px 11px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.badge-open { background: var(--green); color: #000; }
.badge-selection { background: var(--primary); }
.badge-closed { background: #434671; }
.page-intro { padding: 14px 2px 25px; }
.page-intro h1 { font-size: clamp(36px, 6vw, 58px); margin-bottom: 12px; }
.page-intro p:last-child { margin-bottom: 0; }
.stack { display: grid; gap: 16px; }
.request-head { background: #ffffff; color: var(--ink); border-radius: 40px; padding: clamp(26px,5vw,44px); }
.request-head h1 { font-size: clamp(34px, 6vw, 58px); margin: 12px 0; }
.request-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: #f2edff; font-size: 14px; }
.request-rule { margin: 22px 0 0; padding: 13px 16px; border-radius: 14px; background: rgba(10,13,58,.3); font-weight: 800; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,.8fr); gap: 20px; align-items: start; }
.side-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; margin: 0 0 18px; }
.field label { font-weight: 800; font-size: 15px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #ccd2e8; border-radius: 12px; color: var(--ink); background: #f8f9ff; min-height: 50px; padding: 12px 14px; outline: none; }
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green); }
.field input::placeholder, .field textarea::placeholder { color: #707b96; }
.field-note { margin: -8px 0 16px; color: var(--muted); font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.site-field { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.site-field legend { padding: 0; margin-bottom: 10px; font-weight: 800; font-size: 14px; }
.site-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.site-choice { position: relative; display: inline-flex; cursor: pointer; max-width: 100%; }
.site-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.site-choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: #f8f9ff; font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.site-choice input:checked + span { background: #e6faed; border-color: #48b77c; color: var(--accent-ink); }
.site-choice input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.upload-attestation { display: flex; width: 100%; margin-top: 8px; }
.upload-attestation span { width: 100%; }
.site-add { display: flex; gap: 8px; margin-top: 10px; }
.site-add input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9ff; color: var(--ink); padding: 10px 13px; }
.field-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.performance-time[hidden], #venue-info[hidden] { display: none; }
.venue-info { margin: -3px 0 18px; }
.venue-info p { margin: 4px 0 12px; }
.venue-info > a:not(.button) { color: var(--link); font-weight: 800; }
.venue-info .button { width: 100%; }
.priority-panel { border-color: rgba(53,237,126,.28); }
.priority-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.priority-header h2 { margin-bottom: 8px; }
.priority-header p.muted { margin-bottom: 18px; }
.priority-count { flex: none; padding: 8px 12px; border-radius: 30px; background: #e6faed; color: var(--accent-ink); font-size: 13px; font-weight: 900; }
.priority-list { display: grid; gap: 8px; }
.priority-person { display: grid; grid-template-columns: 66px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.045); }
.priority-person.me { background: rgba(88,101,242,.17); border-color: rgba(88,101,242,.7); }
.priority-person.current { border-color: var(--green); box-shadow: inset 4px 0 var(--green); }
.priority-position { color: var(--accent-ink); font-size: 13px; font-weight: 900; }
.priority-person-info { display: grid; min-width: 0; }
.priority-person-info strong { overflow-wrap: anywhere; }
.priority-person-info span { color: var(--muted); font-size: 13px; }
.priority-person > b { white-space: nowrap; font-size: 16px; }
.venue-add { display: flex; align-items: end; gap: 10px; }
.venue-add .field { flex: 1; min-width: 0; margin-bottom: 0; }
.venue-list { display: grid; gap: 8px; margin-top: 18px; }
.venue-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 13px; background: rgba(255,255,255,.045); }
.venue-linked { color: var(--accent-ink); }
.notice { padding: 16px 18px; border-radius: 16px; background: #eef0ff; border: 1px solid #cdd3fa; color: var(--ink); }
.notice-green { background: rgba(53,237,126,.12); border-color: rgba(53,237,126,.34); }
.notice-magenta { background: rgba(236,72,189,.12); border-color: rgba(236,72,189,.34); }
.turn-time { margin-top: 10px; font-size: clamp(20px, 5vw, 27px); font-weight: 900; font-variant-numeric: tabular-nums; color: var(--accent-ink); }
.turn-time.urgent { color: #ff87cf; }
.rank-list { display: grid; gap: 8px; }
.rank-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.045); border-radius: 14px; padding: 12px 14px; min-height: 56px; }
.rank-row strong { min-width: 30px; font-size: 18px; color: var(--accent-ink); }
.rank-row .name { flex: 1; font-weight: 750; }
.rank-row .point { font-weight: 900; }
.rank-row.me { outline: 1px solid var(--primary); background: rgba(88,101,242,.17); }
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.offer-card { padding: 0; overflow: hidden; }
.offer-image { display: block; width: 100%; height: 280px; object-fit: cover; object-position: top; background: #070929; cursor: zoom-in; }
.offer-content { padding: 18px; }
.offer-content h3 { margin: 12px 0 5px; }
.offer-group-head { display: grid; gap: 5px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.offer-group-head strong { font-size: 18px; }
.offer-group-head span { color: var(--muted); font-size: 13px; }
.offer-group-seats { display: grid; gap: 8px; padding: 10px 0; }
.offer-group-seats .offer-detail { background: var(--surface); }
.offer-group-detail > .offer-photo-wrap .offer-image { object-fit: contain; }
.offer-group-detail > .offer-photo-wrap .seat-picked-cover { aspect-ratio: 2 / 1; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.upload-box { border: 2px dashed rgba(255,255,255,.25); border-radius: 20px; min-height: 150px; padding: 20px; display: grid; place-items: center; text-align: center; background: rgba(255,255,255,.035); cursor: pointer; }
.upload-box:hover { border-color: var(--green); }
.upload-box input { width: 100%; margin-top: 12px; }
.offer-preview-panel { margin: 14px 0 22px; }
.offer-preview-panel[hidden] { display: none; }
.offer-preview-button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: #070929; cursor: zoom-in; overflow: hidden; }
.offer-preview-button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.upload-preview { display: block; width: 100%; max-height: min(48dvh, 360px); object-fit: contain; }
.offer-seat-entry { margin-top: 22px; }
.offer-seat-entry h4 { margin: 0 0 16px; font-size: 17px; }
.offer-upload-zoom { min-height: 0; overflow: auto; display: grid; place-items: center; }
.offer-upload-zoom img { display: block; width: 100%; max-width: 100%; max-height: calc(100dvh - 90px); object-fit: contain; }
.offer-upload-zoom.is-zoomed { display: block; }
.offer-upload-zoom.is-zoomed img { width: 200%; max-width: none; max-height: none; }
.split-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.empty { text-align: center; padding: 45px 22px; border: 1px dashed rgba(255,255,255,.22); border-radius: 24px; background: rgba(30,35,83,.55); }
.empty .icon { font-size: 48px; display: block; margin-bottom: 10px; }
.history-row { display: flex; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 16px 0; }
.history-row:last-child { border-bottom: 0; }
.history-row .point { margin-left: auto; font-weight: 900; font-size: 20px; white-space: nowrap; }
.history-row .positive { color: var(--green); }
.history-row .negative { color: #ff87cf; }
.login-wrap { max-width: 1040px; min-height: 100dvh; padding: 24px; display: grid; align-items: center; margin: auto; }
.login-card { padding: clamp(26px, 6vw, 60px); border-radius: 40px; background: #ffffff; box-shadow: 0 3px 68px rgba(69,42,124,.1); overflow: hidden; }
.login-card h1 { max-width: 720px; margin: 30px 0 16px; }
.login-card .lead { max-width: 650px; }
.login-card .button { margin-top: 16px; }
.dev-logins { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.3); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dev-logins span { width: 100%; font-size: 13px; opacity: .85; }
.top-space { margin-top: 16px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(92vw,440px); background: #fff; color: #0a0d3a; border-radius: 16px; padding: 13px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.32); font-weight: 800; }
.lightbox { position: fixed; z-index: 80; inset: 0; background: rgba(0,0,0,.93); display: grid; grid-template-rows: auto minmax(0,1fr); padding: 12px; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 50px; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 90px); margin: auto; object-fit: contain; }
.footer { padding: 32px 20px 45px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 850px) {
  .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .topbar-inner { min-height: 62px; padding: 9px 16px; gap: 10px; }
  .desktop-nav { display: none; }
  .score-chip { margin-left: auto; }
  .menu-button { display: grid; place-items: center; }
  .main { padding: 18px 16px 75px; }
  .hero { border-radius: 32px; min-height: auto; padding: 32px 25px; }
  .hero h1 { font-size: clamp(39px, 10vw, 58px); }
  .hero::before { width: 240px; height: 240px; right: -110px; bottom: -140px; }
  .section { margin-top: 30px; }
  .grid, .event-list, .offer-grid { grid-template-columns: 1fr; }
  .card { padding: 21px; }
  .event-card { min-height: 185px; }
  .request-head { border-radius: 30px; }
  .offer-image { height: auto; max-height: none; object-fit: contain; }
  .hero-actions .button { flex: 1; min-width: 140px; }
  .login-wrap { padding: 16px; }
  .login-card { border-radius: 32px; min-height: 500px; }
}
@media (max-width: 480px) {
  .score-chip { padding: 7px 10px; font-size: 12px; }
  .logo { font-size: 18px; }
  .logo-mark { width: 32px; height: 32px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .split-actions .button { flex: 1 1 100%; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: 27px; }
  .priority-header { display: block; }
  .priority-count { display: inline-flex; margin-bottom: 15px; }
  .priority-person { grid-template-columns: 54px minmax(0,1fr) auto; gap: 7px; padding: 10px; }
  .priority-person > b { font-size: 14px; }
  .site-add { flex-wrap: wrap; }
  .site-add input { flex-basis: 100%; }
  .venue-add { display: block; }
  .venue-add .button { width: 100%; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* The product always uses its phone layout, including on wide screens. */
.shell, .login-wrap { width: 100%; max-width: 430px; margin-inline: auto; }
.topbar-inner { max-width: none; min-height: 62px; padding: 9px 16px; gap: 10px; }
.desktop-nav { display: none; }
.score-chip { margin-left: auto; padding: 7px 10px; font-size: 12px; }
.menu-button { display: grid; place-items: center; }
.main { max-width: none; padding: 18px 16px 75px; }
.grid, .event-list, .offer-grid, .detail-layout, .field-row { grid-template-columns: 1fr; }
.hero { border-radius: 32px; min-height: auto; padding: 32px 25px; }
.hero h1 { font-size: clamp(39px, 10vw, 58px); }
.hero::before { width: 240px; height: 240px; right: -110px; bottom: -140px; }
.login-wrap { padding: 16px; }
.login-card { border-radius: 32px; min-height: 500px; padding: 26px; }
.section { margin-top: 30px; }
.card { padding: 21px; }
.offer-card { padding: 0; }
.offer-image { height: auto; max-height: none; object-fit: contain; }
.request-head { border-radius: 30px; }
.priority-header { display: block; }
.priority-count { display: inline-flex; margin-bottom: 15px; }
.priority-person { grid-template-columns: 54px minmax(0,1fr) auto; gap: 7px; padding: 10px; }
.priority-person > b { font-size: 14px; }
.field-row { gap: 0; }
.split-actions .button { flex: 1 1 100%; }
.site-add { flex-wrap: wrap; }
.site-add input { flex-basis: 100%; }
.section-head { align-items: start; }
.section-head h2 { font-size: 27px; }
.venue-add { display: block; }
.venue-add .button { width: 100%; margin-top: 10px; }
.lightbox { left: 50%; right: auto; width: min(100%, 430px); transform: translateX(-50%); }
.demo-strip { border: 1px solid rgba(236,72,189,.4); background: rgba(236,72,189,.12); border-radius: 20px; padding: 15px; margin-bottom: 18px; }
.demo-strip-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; font-size: 13px; }
.demo-strip-head strong { display: block; font-size: 16px; }
.demo-strip-head span { display: block; color: var(--muted); }
.demo-strip-head a { color: white; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-weight: 800; }
.demo-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.demo-switch .button { min-width: 0; padding: 8px 6px; font-size: 12px; }
.demo-switch .current { border-color: var(--green); color: var(--green); }

.offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seat-tile { min-width: 0; padding: 0 0 8px; text-align: left; color: var(--ink); border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.seat-tile:hover, .seat-tile:focus-visible { border-color: var(--green); }
.seat-tile-covered, .seat-tile-covered:hover { border-color: var(--line); cursor: default; }
.seat-tile img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: top; background: var(--canvas); }
.seat-picked-cover { display: grid; align-content: center; justify-items: center; gap: 7px; width: 100%; aspect-ratio: 1 / 1; padding: 12px; background: #1c1c1c; color: white; text-align: center; font-size: 13px; line-height: 1.3; font-weight: 900; }
.seat-picked-cover span { font-size: 23px; color: var(--green); }
.seat-picked-cover b { font: inherit; }
.seat-tile-status { align-self: flex-start; margin: 7px 6px 2px; padding: 2px 5px; border-radius: 5px; background: rgba(53,237,126,.15); color: var(--green); font-size: 10px; font-weight: 800; line-height: 1.25; }
.seat-tile strong, .seat-relation { display: block; width: 100%; padding: 0 6px; overflow-wrap: anywhere; }
.seat-tile strong { font-size: 11px; line-height: 1.3; }
.seat-relation { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.pick-ledger h3 { margin-bottom: 6px; }
.pick-ledger > p { margin: 0 0 12px; }
.pick-ledger-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.pick-ledger-row > span { color: var(--green); font-weight: 900; }
.pick-ledger-row small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.seat-no-image { display: grid; place-items: center; min-height: 90px; padding: 8px; text-align: center; color: var(--muted); font-size: 12px; }
.lightbox { background: rgba(10,13,58,.98); }
.lightbox-top { padding: 2px 4px 9px; }
.lightbox-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.offer-detail { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: var(--surface); }
.offer-photo-wrap { background: #070929; }
.offer-detail .offer-image { width: 100%; height: auto; max-height: none; object-fit: contain; cursor: default; }
.offer-detail .seat-picked-cover { min-height: 260px; aspect-ratio: auto; }
.offer-detail .offer-content { padding: 16px; }
.offer-detail .offer-actions .button { flex: 1 1 100%; }
.rank-member { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.rank-member .name { font-weight: 800; }
.rank-member .small { font-size: 11px; line-height: 1.35; }
.rank-row { align-items: flex-start; gap: 8px; padding: 11px 9px; }
.rank-row .point { margin-left: auto; white-space: nowrap; font-size: 14px; }
.activity-row { display: grid; gap: 9px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.activity-row:last-child { border-bottom: 0; }
.activity-row-main { display: grid; gap: 3px; }
.activity-row-actions { display: flex; gap: 7px; }
.activity-row-actions .button { flex: 1; }
.demo-guide { margin: 0 0 18px; }
.demo-guide p { margin: 8px 0 12px; }
#seat-offers { scroll-margin-top: 78px; }

.certification-section { display: grid; gap: 12px; }
.certification-summary, .certification-slot { display: grid; gap: 7px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.certification-summary strong, .certification-slot strong { font-size: 16px; }
.certification-summary > span:nth-child(2) { color: var(--green); font-weight: 800; }
.certification-summary .button, .certification-slot .button { justify-self: start; }
.seat-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin: 8px 0; }
.seat-fields input { min-width: 0; width: 100%; padding: 8px 5px; border: 1px solid var(--line); border-radius: 8px; }
.public-certification-grid { display: grid; gap: 9px; margin-top: 8px; }
.public-certification-grid article { display: grid; gap: 4px; padding: 10px; border-radius: 10px; background: var(--canvas); }
.public-certification-grid img { display: block; width: 100%; border-radius: 8px; }
.certification-camera { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 12px; background: rgba(3,5,25,.96); }
.camera-panel { width: min(100%,430px); max-height: 96vh; overflow-y: auto; padding: 16px; border-radius: 18px; background: var(--surface); }
.camera-panel h2 { margin: 10px 0; }
.camera-instruction { padding: 12px; border-radius: 10px; background: var(--canvas); font-weight: 800; }
.camera-live, .camera-preview img, .camera-preview video { display: block; width: 100%; max-height: 55vh; object-fit: contain; border-radius: 10px; background: #000; }
.certification-camera .camera-live, .certification-camera .camera-preview > img, .certification-camera .camera-preview > video {width:min(100%,55vh);height:auto;max-height:none;aspect-ratio:1 / 1;margin-inline:auto;object-fit:contain}
.certification-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.admin-evidence { padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
.admin-evidence video { width: 100%; max-height: 40vh; }
.verification-original-image { max-width: 100%; height: auto; }
.admin-evidence h4 { margin: 0 0 5px; }
.verification-review-modal .request-modal-card { width:min(680px,100%); }
.verification-review-modal .request-modal-body { padding:16px; background:#f7f8f8; }
.verification-review-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 16px; }
.verification-review-summary strong { display:block; font-size:14px; }
.verification-review-summary time { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
.verification-proof-list { display:grid; gap:16px; }
.verification-review .verification-proof { margin:0; padding:14px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.verification-proof-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.verification-proof-kicker { display:block; margin-bottom:4px; color:var(--muted); font-size:11px; font-weight:600; }
.verification-proof-heading h3 { margin:0; font-size:16px; line-height:23px; overflow-wrap:anywhere; }
.verification-proof-badge { flex:none; padding:4px 7px; border-radius:6px; background:#f0f1f1; color:#656b69; font-size:10px; font-weight:600; }
.verification-proof-badge.is-approved { background:#e6f6ed; color:#187444; }
.verification-proof-badge.is-rejected { background:#fff0e5; color:#9c561f; }
.verification-proof-meta { margin:6px 0 0; color:var(--muted); font-size:11px; }
.verification-proof-mission { margin:12px 0; font-size:13px; line-height:21px; white-space:pre-line; overflow-wrap:anywhere; }
.verification-proof .verification-proof-image { display:block; width:100%; height:min(52vh,440px); object-fit:contain; border-radius:10px; background:#f2f3f3; }
.verification-original-button { display:block; width:100%; padding:0; border:0; background:transparent; color:inherit; cursor:zoom-in; }
.verification-original-button:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.verification-proof-footer time { display:block; margin-top:9px; color:var(--muted); font-size:11px; }
.verification-review-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
.verification-review-actions .button { min-height:40px; }
.certification-help { position:relative; flex:none; }
.certification-help > summary { display:grid; place-items:center; width:26px; height:26px; list-style:none; border:1px solid #b8bfbc; border-radius:50%; color:#5b635f; background:#fff; font-size:13px; font-weight:600; cursor:pointer; }
.certification-help > summary::-webkit-details-marker { display:none; }
.certification-help > summary:focus-visible { outline:2px solid #25875b; outline-offset:3px; }
.certification-help-content { position:absolute; right:0; top:34px; z-index:5; width:min(280px,calc(100vw - 70px)); padding:13px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); box-shadow:0 6px 24px #0002; font-size:12px; line-height:19px; }
.certification-help-content p { margin:6px 0 0; }
.camera-privacy-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.camera-privacy-heading h3 { margin:0; }
.mask-surface { position: relative; width: 100%; touch-action: none; cursor: crosshair; }
.mask-surface img { display: block; width: 100%; height: auto; pointer-events: none; }
.mask-overlay { position: absolute; inset: 0; pointer-events: none; }
.mask-rect { position: absolute; background: #080808; border: 1px solid white; }

/* Main mobile navigation and date based dashboards. */
.main { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.admin-bottom-nav .bottom-tab { font-size: 10px; }
.admin-bottom-nav .bottom-tab-icon { width: 27px; height: 27px; }
.admin-bottom-nav .bottom-tab-icon svg { width: 21px; height: 21px; }
.bottom-tab { min-width: 0; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 13px; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap; }
.bottom-tab-icon { display: grid; place-items: center; width: 30px; height: 30px; }
.bottom-tab-icon svg { width: 23px; height: 23px; }
.bottom-tab.active { color: var(--green); background: rgba(53,237,126,.1); }
.bottom-tab-request { color: #fff; }
.bottom-tab-request .bottom-tab-icon { width: 37px; height: 37px; border-radius: 12px; color: #07182b; background: var(--green); }
.bottom-tab-request.active { background: transparent; }
.bottom-tab-request.active .bottom-tab-icon { box-shadow: 0 0 0 3px rgba(53,237,126,.28); }
.toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
.demo-strip { margin-bottom: 16px; }
.demo-strip summary { display: flex; justify-content: space-between; gap: 8px; cursor: pointer; color: #fff; font-size: 13px; font-weight: 800; list-style: none; }
.demo-strip summary::-webkit-details-marker { display: none; }
.demo-strip summary span { color: var(--green); }
.demo-strip[open] summary { margin-bottom: 14px; }
.home-welcome { padding: 8px 2px 15px; }
.home-welcome .eyebrow { margin-bottom: 7px; }
.home-welcome h1 { margin-bottom: 8px; font-size: clamp(28px, 7vw, 34px); line-height: 1.18; }
.home-welcome p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.home-request-action { display: flex; align-items: center; gap: 13px; min-height: 86px; padding: 15px; border-radius: 21px; color: #061a20; background: var(--green); box-shadow: 0 12px 30px rgba(53,237,126,.12); }
.home-request-action > span:nth-child(2) { display: grid; flex: 1; min-width: 0; gap: 1px; }
.home-request-action strong { font-size: 19px; letter-spacing: -.04em; }
.home-request-action small { font-size: 11px; font-weight: 700; }
.home-request-plus { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; color: var(--green); background: #071c2a; font-size: 32px; font-weight: 400; line-height: 1; }
.home-request-action > span:last-child { font-size: 22px; font-weight: 800; }
.home-shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.home-shortcut { display: grid; justify-items: start; gap: 2px; min-width: 0; min-height: 141px; padding: 14px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.home-shortcut-icon { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 3px; border-radius: 9px; color: var(--green); background: rgba(53,237,126,.12); font-size: 18px; font-weight: 900; }
.home-shortcut strong { font-size: 18px; line-height: 1.2; letter-spacing: -.04em; }
.home-shortcut > span:last-child { color: var(--green); font-weight: 800; }
.home-notice { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.04); }
.home-notice > span:first-child { display: grid; gap: 2px; }
.home-notice strong { font-size: 14px; }
.home-notice small { color: var(--muted); font-size: 11px; }
.home-notice-status { white-space: nowrap; color: var(--green); font-size: 11px; font-weight: 800; }
.home-admin-action { display: grid; gap: 2px; margin-top: 12px; padding: 15px; border: 1px solid rgba(53,237,126,.35); border-radius: 16px; background: rgba(53,237,126,.1); }
.home-admin-action strong { color: var(--green); }
.home-admin-action span { font-size: 12px; color: var(--muted); }
.notice-feed { display: grid; gap: 12px; }
.notice-post h2 { margin: 7px 0 12px; font-size: 23px; }
.notice-post p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-jumps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 5px; margin: 16px 0 24px; }
.admin-jumps button { min-width: 0; padding: 10px 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: white; font-size: 12px; font-weight: 800; }
.admin-jumps button:hover { border-color: var(--green); }
.admin-form { display: grid; gap: 12px; margin-top: 15px; }
.admin-edit-item { padding: 14px 0; border-top: 1px solid var(--line); }
.admin-edit-item summary { display: grid; gap: 3px; cursor: pointer; }
.admin-edit-item summary span { color: var(--muted); font-size: 12px; }
.admin-member-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 11px 0; border-top: 1px solid var(--line); }
.admin-member-row > div { min-width: 0; display: grid; gap: 2px; }
.admin-member-row strong { overflow-wrap: anywhere; }
.admin-member-row span { color: var(--muted); font-size: 12px; }
.admin-member-row .button { min-height: 36px; padding: 7px 10px; flex-shrink: 0; }
.danger-form { padding-top: 17px; border-top: 1px solid var(--line); }
.moderation-row { padding: 14px 0; border-top: 1px solid var(--line); }
.moderation-row p { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-row > span { color: var(--muted); font-size: 12px; }
#admin-notices,#admin-members,#admin-venues,#admin-scores,#admin-reviews { scroll-margin-top: 82px; }
.ranking-intro { padding: 8px 2px 14px; }
.ranking-intro h1 { margin-bottom: 8px; font-size: 36px; }
.ranking-intro > p:not(.eyebrow) { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.ranking-live { color: var(--green); font-size: 12px; font-weight: 800; }
.ranking-self { display: flex; align-items: baseline; gap: 9px; padding: 16px 18px; border-radius: 18px; background: var(--primary); }
.ranking-self > span:first-child { margin-right: auto; font-size: 13px; font-weight: 800; }
.ranking-self-position { font-size: 27px; line-height: 1; }
.ranking-self-score { font-size: 15px; font-weight: 800; }
.ranking-card { margin-top: 13px; }
.ranking-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.ranking-card-head h2 { margin: 0; font-size: 23px; }
.ranking-member-count { color: var(--green); font-size: 13px; font-weight: 800; }
.rank-row.rank-top { background: rgba(53,237,126,.08); }
.rank-row.rank-top:first-child { outline: 1px solid rgba(53,237,126,.45); }
.rank-refreshed { margin: 13px 0 0; color: var(--muted); font-size: 11px; text-align: right; }
.ranking-note { margin: 15px 4px 0; }
.calendar-intro { padding: 8px 2px 14px; }
.calendar-intro h1 { margin-bottom: 8px; font-size: 35px; }
.calendar-intro p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.calendar-card { padding: 15px 11px 17px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 13px; }
.calendar-head h2 { margin: 0; font-size: 22px; }
.calendar-head button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; color: white; background: rgba(255,255,255,.05); font-size: 27px; line-height: 1; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }
.calendar-weekday { padding: 5px 0; color: var(--muted); font-size: 11px; text-align: center; }
.calendar-day { display: grid; align-content: start; justify-items: center; gap: 1px; min-width: 0; min-height: 49px; padding: 5px 0; border: 1px solid transparent; border-radius: 10px; color: #fff; background: rgba(255,255,255,.035); font-size: 13px; font-weight: 800; }
.calendar-day small { color: var(--green); font-size: 10px; line-height: 1.1; }
.calendar-day.today { border-color: rgba(53,237,126,.48); }
.calendar-day.selected { background: var(--primary); border-color: var(--primary); }
.calendar-day.selected small { color: white; }
.calendar-details h2 { margin-bottom: 10px; font-size: 22px; }
.calendar-details .text-link { display: inline-block; margin-top: 13px; font-size: 13px; }
.calendar-event { display: grid; gap: 4px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.calendar-event strong { font-size: 16px; }
.calendar-event > span:nth-child(2) { color: var(--muted); }
.calendar-event-status, .calendar-event > span:last-child { color: var(--green); font-weight: 800; }
.notice-empty { display: grid; justify-items: center; gap: 7px; padding: 48px 20px; text-align: center; }
.notice-empty > span { color: var(--green); font-size: 34px; }
.notice-empty h2 { margin: 0; font-size: 22px; }
.notice-empty p { margin: 0; color: var(--muted); font-size: 13px; }

/* Compact request cards and production selection. */
.event-list { gap: 10px; }
.event-card { display: grid; grid-template-columns: 82px minmax(0,1fr) 12px; gap: 12px; align-items: center; min-height: 132px; padding: 12px; border-radius: 18px; }
.event-poster, .production-poster { display: grid; place-items: center; overflow: hidden; color: var(--green); background: #1c1c1c; }
.event-poster { width: 82px; aspect-ratio: 2/3; border-radius: 11px; }
.event-poster img, .production-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.event-poster-empty { display: grid; justify-items: center; gap: 6px; text-align: center; }
.event-poster-empty > span { font-size: 29px; }
.event-poster-empty small { padding: 0 3px; color: #fff; font-size: 11px; font-weight: 800; }
.event-card-body { display: grid; align-content: center; min-width: 0; gap: 3px; }
.event-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.event-genre { color: var(--green); font-size: 11px; font-weight: 900; }
.event-card .badge { padding: 3px 7px; font-size: 10px; }
.event-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 4px 0 1px; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.event-date { color: #fff; font-size: 13px; font-weight: 800; }
.event-venue, .event-card-foot { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.event-card-foot { margin-top: 4px; color: #cdd3f6; }
.event-arrow { color: var(--green); font-size: 26px; }
.production-search-button { margin: -5px 0 12px; }
.production-results { margin-bottom: 17px; }
.production-results .field-hint { margin: 0 0 9px; }
.production-result, .production-selected { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 10px; width: 100%; margin: 8px 0; padding: 9px; border: 1px solid var(--line); border-radius: 13px; color: #fff; background: #111641; text-align: left; }
.production-result { cursor: pointer; }
.production-result:hover { border-color: var(--green); }
.production-poster { width: 54px; height: 73px; border-radius: 7px; font-size: 23px; }
.production-result > span:nth-child(2), .production-selected > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.production-result strong, .production-selected strong { overflow-wrap: anywhere; font-size: 14px; }
.production-result small, .production-selected small { color: var(--muted); font-size: 11px; }
.production-result b { color: var(--green); font-size: 12px; }
.production-selected { border-color: var(--green); }
.production-selected button { border: 0; color: #fff; background: transparent; font-size: 20px; }
.request-head { overflow: hidden; }
.request-head .request-poster { float: right; width: 76px; aspect-ratio: 2/3; margin: 0 0 12px 12px; border-radius: 9px; object-fit: cover; }
.request-genre { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 800; }
.new-request-intro { padding: 5px 2px 16px; }
.new-request-intro .eyebrow { margin-bottom: 5px; }
.new-request-intro h1 { margin-bottom: 5px; font-size: 30px; line-height: 1.2; }
.new-request-intro .lead { margin-bottom: 11px; font-size: 13px; line-height: 1.45; }
.request-info-upload { margin: 20px 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.request-info-upload legend { padding: 0 6px; font-weight: 850; }
.request-info-site-files { display: grid; gap: 10px; }
.request-info-file { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.035); }
.request-info-file span { font-size: 14px; font-weight: 800; }
.request-info-file input { width: 100%; }
.request-info-panel { margin-bottom: 16px; }
.request-info-panel .section-head { margin-bottom: 4px; }
.request-info-panel h2 { font-size: 22px; }
.request-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.request-info-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.04); }
.request-info-image-button { display: block; width: 100%; padding: 0; border: 0; background: #090b2b; cursor: zoom-in; }
.request-info-image-button img { display: block; width: 100%; height: 180px; object-fit: contain; }
.request-info-card-body { display: grid; gap: 3px; padding: 10px; }
.request-info-card-body strong { font-size: 13px; overflow-wrap: anywhere; }
.request-info-card-body span { color: var(--muted); font-size: 11px; }
.request-info-delete { width: max-content; margin-top: 3px; padding: 0; border: 0; background: transparent; color: #ff9ad1; font-size: 11px; text-decoration: underline; }
.request-info-add { margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; }
.request-info-add summary { cursor: pointer; font-weight: 800; }
.request-info-add form { display: grid; gap: 12px; margin-top: 13px; }
.production-head { padding: 5px 0 2px; }
.production-head .text-link, .request-back { display: inline-block; margin-bottom: 13px; color: var(--green); font-size: 13px; font-weight: 800; }
.production-head-main { display: flex; align-items: center; gap: 14px; }
.production-head-main > img, .production-head-placeholder { width: 82px; height: 116px; flex: none; border-radius: 11px; object-fit: cover; }
.production-head-placeholder { display: grid; place-items: center; color: var(--green); background: #1c1c1c; font-size: 32px; }
.production-head-main > div { min-width: 0; }
.production-head h1 { margin: 6px 0; font-size: 28px; line-height: 1.15; overflow-wrap: anywhere; }
.production-head p { margin: 0; color: var(--muted); font-size: 13px; }
.session-list { display: grid; gap: 11px; }
.session-card { display: grid; gap: 7px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.session-card:hover { border-color: var(--green); }
.session-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.session-card-top strong { font-size: 16px; }
.session-card-venue, .session-card-schedule, .session-card-people { color: var(--muted); font-size: 12px; line-height: 1.4; }
.session-card-count { margin-top: 4px; color: #fff; font-size: 13px; font-weight: 850; }
.session-seat-preview { display: flex; gap: 7px; margin-top: 4px; }
.session-seat-preview img { width: 55px; height: 75px; border-radius: 7px; object-fit: cover; background: #080b2d; }
.session-picked-cover { display: grid; place-items: center; width: 55px; height: 75px; border-radius: 7px; background: #171c50; color: var(--green); text-align: center; font-size: 10px; font-weight: 900; }
.session-empty { margin-top: 4px; padding: 12px; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.04); font-size: 12px; }
.session-card-link { color: var(--green); font-size: 12px; font-weight: 850; text-align: right; }
.request-ticketing { clear: both; margin: 15px 0 0; padding: 11px; border-radius: 11px; color: #fff; background: rgba(7,12,60,.28); font-size: 12px; font-weight: 800; }
.ticketing-admin-form { display: grid; gap: 8px; margin: 16px 0; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.ticketing-admin-form label { font-size: 13px; font-weight: 800; }
.ticketing-admin-form input { width: 100%; min-height: 45px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; color: #fff; background: #111641; }

/* Light surfaces and a steadier reading scale for the phone layout. */
.topbar { box-shadow: 0 3px 16px rgba(31,41,91,.05); }
.stat, .ranking-self { color: white; }
.badge-open { background: #d8f9e5; color: #12663b; }
.badge-closed { background: #e6e8f3; color: #4d5671; }
.event-foot, .event-date, .session-card-count { color: var(--ink); }
.event-genre, .event-arrow, .production-result b, .production-head .text-link, .request-back,
.session-card-link, .ranking-live, .ranking-member-count, .calendar-event-status, .calendar-event > span:last-child,
.home-notice-status, .home-shortcut > span:last-child, .home-admin-action strong { color: var(--accent-ink); }
.rank-row, .priority-person, .venue-row, .home-notice, .session-empty, .request-info-file { background: #f7f8ff; }
.rank-row.rank-top { background: #e9faef; }
.rank-row.rank-top:first-child { outline-color: #9adcb5; }
.rank-row .point, .priority-person > b { color: #2e3bb5; }
.priority-person.me { background: #edf0ff; }
.priority-panel { border-color: #b9dcc8; }
.notice-green { background: #e8faef; border-color: #b3e7c8; }
.notice-magenta { background: #fff0f9; border-color: #f4c2e1; }
.empty { background: #fbfcff; border-color: var(--line); }
.login-card { background: #ffffff; }
.login-card .lead { color: #3f4964; }
.demo-strip { background: #fff1fa; border-color: #f0bfdc; }
.demo-strip summary, .demo-strip-head a { color: var(--ink); }
.demo-strip summary span, .demo-switch .current { color: var(--accent-ink); }
.seat-tile-status { background: #e6faed; color: var(--accent-ink); }
.seat-tile strong { font-size: 13px; line-height: 1.35; }
.seat-relation { font-size: 12px; line-height: 1.35; }
.seat-tile-status { font-size: 11px; }
.offer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.rank-member .small { font-size: 13px; line-height: 1.4; }
.rank-row .point { font-size: 15px; }
.bottom-tab { color: #59647c; font-size: 12px; }
.bottom-tab.active { color: #3544c6; background: #eef0ff; }
.bottom-tab-request { color: var(--ink); }
.bottom-tab-request .bottom-tab-icon { color: #113222; }
.admin-bottom-nav .bottom-tab { font-size: 11px; }
.home-welcome p:last-child, .new-request-intro .lead { font-size: 15px; }
.home-request-action small { font-size: 13px; }
.home-request-plus { color: var(--green); }
.home-shortcut-icon { color: var(--accent-ink); background: #e4f8ed; }
.home-notice small { font-size: 13px; }
.home-admin-action { background: #eaf9f0; border-color: #b6e1c5; }
.home-admin-action span { font-size: 13px; }
.admin-jumps button { color: var(--ink); font-size: 13px; }
.ranking-intro h1, .calendar-intro h1 { font-size: 31px; }
.ranking-intro > p:not(.eyebrow), .calendar-intro p:last-child { font-size: 15px; }
.rank-refreshed { font-size: 12px; }
.calendar-head button { color: var(--ink); background: #f5f6ff; }
.calendar-weekday { font-size: 12px; }
.calendar-day { color: var(--ink); background: #f7f8ff; font-size: 14px; }
.calendar-day small { color: var(--accent-ink); font-size: 11px; }
.calendar-day.selected { color: white; }
.calendar-event { font-size: 14px; }
.notice-empty p { font-size: 14px; }
.event-genre { font-size: 12px; }
.event-card .badge { font-size: 11px; }
.event-venue, .event-card-foot, .session-card-venue, .session-card-schedule, .session-card-people { font-size: 13px; }
.event-card-foot { color: var(--muted); }
.production-result, .production-selected { color: var(--ink); background: #f8f9ff; }
.production-result small, .production-selected small { font-size: 12px; }
.production-selected button { color: var(--ink); }
.new-request-intro h1 { font-size: 29px; }
.page-intro h1, .request-head h1 { font-size: 30px; line-height: 1.18; overflow-wrap: anywhere; }
.hero h1 { font-size: 34px; line-height: 1.16; }
.stat-number { font-size: 46px; }
.section-head h2 { font-size: 24px; }
.field-hint, .field-note { font-size: 14px; }
.request-info-panel h2 { font-size: 21px; }
.request-info-card { background: #f8f9ff; }
.request-info-image-button { background: #eef0fa; }
.request-info-card-body strong { font-size: 14px; }
.request-info-card-body span, .request-info-delete { font-size: 12px; }
.request-info-delete { color: #a8236a; }
.ticketing-admin-form { background: #f7f8ff; }
.ticketing-admin-form input { color: var(--ink); background: white; }
.toast { color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 35px rgba(24,36,78,.18); }
.rank-row { color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.rank-row:hover { box-shadow: 0 4px 14px rgba(43,55,130,.12); transform: translateY(-1px); }
.rank-row:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.rank-row .name { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.member-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 18px 0 4px; }
.member-stats > div { display: grid; gap: 3px; padding: 15px 9px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 14px; }
.member-stats strong { color: var(--link); font-size: 25px; line-height: 1.15; }
.member-stats span { color: var(--muted); font-size: 12px; }
.activity-seat { width: fit-content; padding: 3px 8px; color: #173d2a; background: #e6f8ed; border-radius: 7px; font-size: 13px; font-weight: 800; }
.score-kind { display: inline-block; margin-bottom: 4px; padding: 2px 7px; border-radius: 6px; color: var(--link); background: #ebedff; font-size: 12px; font-weight: 800; }
.history-row > div { min-width: 0; }
.history-row > div > strong { display: block; overflow-wrap: anywhere; }
.history-row .small { overflow-wrap: anywhere; }
.history-row .small a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

/* Compact phone rhythm based on DESIGN-discord.md's 8/12/16px spacing and 22px headings. */
.topbar-inner { min-height: 54px; padding: 6px 14px; }
.logo { font-size: 18px; }
.logo-mark { width: 32px; height: 32px; }
.menu-button { width: 40px; height: 40px; }
.main { padding: 10px 14px calc(94px + env(safe-area-inset-bottom)); }
.section { margin-top: 20px; }
.section-head { gap: 10px; margin-bottom: 10px; }
.section-head h2 { font-size: 22px; }
.card { border-radius: 16px; padding: 16px; }
.eyebrow { margin-bottom: 5px; font-size: 11px; }
.page-intro { padding: 3px 2px 15px; }
.page-intro h1 { margin-bottom: 7px; font-size: 26px; }
.page-intro .lead { margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
.demo-strip { margin-bottom: 10px; padding: 9px 12px; border-radius: 12px; }
.demo-strip summary { font-size: 12px; }
.demo-strip[open] summary { margin-bottom: 10px; }
.bottom-tab { gap: 1px; font-size: 11px; }
.bottom-tab-icon { width: 27px; height: 27px; }
.bottom-tab-icon svg { width: 21px; height: 21px; }
.bottom-tab-request .bottom-tab-icon { width: 34px; height: 34px; }
.toast { bottom: calc(73px + env(safe-area-inset-bottom)); }

.home-welcome { padding: 1px 2px 10px; }
.home-welcome .eyebrow { margin-bottom: 4px; }
.home-welcome h1 { margin-bottom: 5px; font-size: 26px; line-height: 1.13; }
.home-welcome p:last-child { font-size: 13px; line-height: 1.4; }
.home-request-action { min-height: 64px; gap: 10px; padding: 10px 12px; border-radius: 14px; }
.home-request-action strong { font-size: 17px; }
.home-request-action small { font-size: 12px; }
.home-request-plus { width: 36px; height: 36px; border-radius: 10px; font-size: 27px; }
.home-shortcuts { gap: 8px; margin-top: 8px; }
.home-shortcut { min-height: 90px; gap: 1px; padding: 9px 10px; border-radius: 14px; }
.home-shortcut-icon { width: 23px; height: 23px; margin-bottom: 1px; border-radius: 7px; font-size: 15px; }
.home-shortcut strong { font-size: 16px; }
.home-shortcut .small { font-size: 12px; line-height: 1.25; }
.home-notice { min-height: 48px; gap: 8px; margin-top: 8px; padding: 8px 11px; border-radius: 12px; }
.home-notice small { font-size: 12px; }
.home-admin-action { margin-top: 8px; padding: 10px 12px; border-radius: 12px; }
.home-welcome ~ .section { margin-top: 15px; }
.event-list { gap: 8px; }
.event-card { grid-template-columns: 64px minmax(0,1fr) 10px; gap: 10px; min-height: 108px; padding: 9px; border-radius: 14px; }
.event-poster { width: 64px; border-radius: 8px; }
.event-card-body { gap: 2px; }
.event-title { margin: 2px 0 0; font-size: 16px; }
.event-date { font-size: 12px; }
.event-venue, .event-card-foot { font-size: 12px; }
.event-card-foot { margin-top: 2px; }
.event-arrow { font-size: 21px; }

.ranking-intro { padding: 2px 2px 9px; }
.ranking-intro h1 { margin-bottom: 4px; font-size: 27px; }
.ranking-intro > p:not(.eyebrow) { margin-bottom: 5px; font-size: 13px; line-height: 1.4; }
.ranking-live { font-size: 11px; }
.ranking-self { gap: 7px; padding: 10px 13px; border-radius: 12px; }
.ranking-self-position { font-size: 23px; }
.ranking-card { margin-top: 9px; }
.ranking-card-head { margin-bottom: 9px; }
.ranking-card-head h2 { font-size: 21px; }
.rank-list { gap: 6px; }
.rank-row { min-height: 56px; gap: 7px; padding: 8px 9px; border-radius: 10px; }
.rank-row strong { min-width: 22px; font-size: 16px; }
.rank-member { gap: 1px; }
.rank-member .small { font-size: 12px; line-height: 1.3; }
.rank-row .point { font-size: 14px; }
.rank-refreshed { margin-top: 9px; }
.member-stats { gap: 6px; margin: 7px 0 0; }
.member-stats > div { gap: 2px; padding: 10px 5px; border-radius: 10px; }
.member-stats strong { font-size: 21px; }
.member-stats span { font-size: 11px; line-height: 1.2; }
.activity-row { gap: 5px; padding: 10px 0; }
.activity-row-main { gap: 2px; }
.activity-row-actions .button { min-height: 38px; padding: 6px 10px; }
.history-row { gap: 9px; padding: 11px 0; }
.history-row .point { font-size: 18px; }
.section.card > h2 { margin-bottom: 9px; font-size: 22px; }
.section.card > p:last-child { margin-bottom: 0; }
.field { gap: 5px; margin-bottom: 12px; }
.field label { font-size: 14px; }
.field input, .field textarea, .field select { min-height: 44px; padding: 9px 12px; border-radius: 10px; }
.field textarea { min-height: 86px; }
.field-hint { margin-top: 6px; font-size: 13px; line-height: 1.4; }
.field-note { margin: -4px 0 11px; font-size: 13px; line-height: 1.4; }
.site-field { margin-bottom: 15px; }
.site-field legend { margin-bottom: 7px; }
.button { min-height: 44px; padding: 9px 14px; }
.button-small { min-height: 40px; padding: 7px 11px; }
.notice { padding: 12px 14px; border-radius: 12px; }
.new-request-intro { padding: 2px 2px 11px; }
.new-request-intro h1 { font-size: 26px; }
.new-request-intro .lead { margin-bottom: 8px; font-size: 14px; }
.production-search-button { margin-bottom: 8px; }
.request-info-upload { margin: 14px 0; padding: 13px; }
.request-head { padding: 18px; border-radius: 20px; }
.request-head h1 { font-size: 26px; }
.request-rule { margin-top: 13px; padding: 10px 12px; }
.session-list { gap: 8px; }
.session-card { gap: 5px; padding: 12px; border-radius: 14px; }
.stat { padding: 16px; border-radius: 16px; }
.stat-number { font-size: 38px; }
.stat-symbol { font-size: 42px; }
.calendar-day { min-height: 44px; }

/* Home dashboard: one clear type scale, with the next ticketing date replacing notice. */
.home-welcome { padding: 8px 2px 15px; }
.home-welcome h1 { margin-bottom: 6px; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.home-welcome p:last-child { font-size: 14px; line-height: 1.45; }
.home-request-action { min-height: 70px; padding: 12px 14px; }
.home-request-action strong { font-size: 17px; }
.home-request-action small { font-size: 14px; }
.home-shortcuts { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.home-shortcut { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: 11px; row-gap: 1px; min-height: 66px; padding: 10px 13px; border: 0; border-radius: 0; background: transparent; }
.home-shortcut + .home-shortcut { border-top: 1px solid var(--line); }
.home-shortcut-icon { grid-column: 1; grid-row: 1 / 3; width: 30px; height: 30px; margin: 0; border-radius: 9px; }
.home-shortcut-label { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 14px; line-height: 1.3; }
.home-shortcut strong { grid-column: 2; grid-row: 2; font-size: 17px; line-height: 1.25; }
.home-shortcut-action, .home-shortcut > span:last-child { grid-column: 3; grid-row: 1 / 3; align-self: center; color: var(--link); font-size: 13px; font-weight: 800; white-space: nowrap; }
.home-ticketing { display: grid; gap: 5px; margin-top: 12px; padding: 13px 15px; border: 1px solid #c9cff7; border-left: 4px solid var(--primary); border-radius: 14px; background: #f0f2ff; }
.home-ticketing-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #3044a9; font-size: 14px; font-weight: 850; }
.home-ticketing-head > span:last-child { font-size: 13px; }
.home-ticketing > strong { font-size: 18px; line-height: 1.3; }
.home-ticketing-title { color: var(--ink); font-size: 14px; line-height: 1.4; }
.home-ticketing-deadline { color: var(--muted); font-size: 13px; line-height: 1.35; }

/* Request pages: show session demand and the live pick turn before supporting material. */
.production-overview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.production-overview span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: #f6f8ff; color: var(--muted); font-size: 13px; }
.production-overview strong { color: var(--ink); font-size: 16px; }
.production-overview-note { margin-top: 8px !important; line-height: 1.45; }
.session-card-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.session-card-stats span { padding: 6px 8px; border-radius: 8px; background: #eef1ff; color: #526078; font-size: 12px; }
.session-card-stats strong { color: var(--ink); font-size: 14px; }
.session-card-progress { color: var(--accent-ink); font-size: 13px; font-weight: 800; }
.request-head { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.request-head h1 { margin: 8px 0; font-size: clamp(22px, 4vw, 27px); line-height: 1.2; }
.request-head .request-meta { color: var(--muted); font-size: 13px; line-height: 1.4; }
.request-head .request-genre { color: var(--accent-ink); }
.request-ticketing { margin-top: 12px; padding: 9px 11px; background: #eff2ff; color: #3142a3; font-size: 13px; line-height: 1.4; }
.request-overview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin: 10px 0; }
.request-overview.has-picks { grid-template-columns: repeat(4, minmax(0,1fr)); }
.request-overview span { display: grid; gap: 2px; min-width: 0; padding: 10px 7px; border: 1px solid var(--line); border-radius: 11px; background: #f7f9ff; color: var(--muted); font-size: 12px; text-align: center; }
.request-overview strong { color: var(--ink); font-size: 18px; line-height: 1.2; white-space: nowrap; }
.request-stage { display: grid; gap: 6px; margin: 0 0 10px; padding: 14px 16px; border: 1px solid #c9cff7; border-left: 4px solid var(--primary); border-radius: 14px; background: #f2f4ff; }
.request-stage-active { border-color: #a7dcbc; border-left-color: #249a60; background: #e9f9ef; }
.request-stage-label { color: #526078; font-size: 12px; font-weight: 800; }
.request-stage > strong { color: var(--ink); font-size: 19px; line-height: 1.3; }
.request-stage p { margin: 0; color: #46536d; font-size: 13px; line-height: 1.45; }
.request-stage-next { color: #59657e; font-size: 12px; line-height: 1.4; }
.request-stage .turn-time { margin: 3px 0 5px; font-size: 24px; }
.request-stage .button { width: 100%; }
.join-panel { margin-bottom: 10px; border-color: #a7dcbc; padding: 0; overflow: hidden; }
.join-panel > summary { position: relative; display: grid; gap: 3px; padding: 12px 70px 12px 16px; background: #e9f9ef; color: #12663b; font-size: 16px; font-weight: 850; cursor: pointer; list-style: none; }
.join-panel > summary::-webkit-details-marker, .priority-panel > summary::-webkit-details-marker, .request-info-panel > summary::-webkit-details-marker { display: none; }
.join-panel > summary::after { content: '열기 ↓'; position: absolute; right: 16px; align-self: center; font-size: 12px; }
.join-panel[open] > summary::after { content: '닫기 ↑'; }
.join-panel > summary span { color: #527361; font-size: 12px; font-weight: 650; }
.join-panel > form { padding: 14px 16px; }
.request-my-status { display: grid; gap: 3px; margin-bottom: 10px; padding: 11px 14px; border: 1px solid #b8dfc9; border-radius: 12px; background: #f0fbf4; }
.request-my-status strong { color: #12663b; font-size: 15px; }
.request-my-status span { color: #526078; font-size: 13px; }
.request-disclosures { display: grid; gap: 8px; margin: 10px 0; }
.priority-panel, .request-info-panel { margin: 0; padding: 0; overflow: hidden; }
.priority-panel > summary, .request-info-panel > summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; padding: 13px 16px; color: var(--ink); font-size: 15px; font-weight: 850; cursor: pointer; list-style: none; }
.priority-panel > summary span, .request-info-panel > summary span { color: var(--muted); font-size: 12px; font-weight: 650; }
.priority-body, .request-info-body { padding: 0 16px 15px; }
.priority-body > p, .request-info-body > p { margin: 0 0 10px; line-height: 1.45; }
.request-info-panel .request-info-grid { margin-top: 10px; }
.request-disclosures + .seeya-picker { margin: 0 0 14px; }
.seeya-picker > summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px; font-size: 15px; font-weight: 850; cursor: pointer; list-style: none; }
.seeya-picker > summary::-webkit-details-marker { display: none; }
.seeya-picker > summary span { color: var(--muted); font-size: 12px; font-weight: 650; }
.seeya-picker-body { margin-top: 12px; }
.seeya-picker-body > p:first-child { margin-bottom: 10px; }
@media (max-width: 390px) {
  .request-overview.has-picks { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .request-head .request-meta { gap: 5px 12px; }
  .session-card-stats span { font-size: 11px; }
}
.home-welcome ~ .section { margin-top: 24px; }
.ticketing-list { display: grid; gap: 10px; }
.ticketing-item { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ticketing-item-top { display: flex; justify-content: space-between; gap: 8px; color: var(--accent-ink); font-size: 13px; font-weight: 800; }
.ticketing-time { color: #2e3bb5; font-size: 20px; line-height: 1.3; }
.ticketing-title { font-size: 16px; line-height: 1.35; }
.ticketing-meta, .ticketing-deadline { color: var(--muted); font-size: 14px; line-height: 1.4; }
.shell { display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; }

/* Hairline Cool home draft from DESIGN-supabase.md. Accent 2 maps to Accent Violet. */
h1, .hero h1, .page-intro h1, .request-head h1, .ranking-intro h1, .calendar-intro h1,
.new-request-intro h1, .production-head h1 { font-size: 28px; }
.stat-number, .stat-symbol, .empty .icon, .notice-empty > span, .production-head-placeholder { font-size: 28px; }
.event-poster-empty > span, .home-welcome h1 { font-size: 28px; }
.topbar { background: #fff; border-bottom-color: #d4d4d4; box-shadow: none; backdrop-filter: none; }
.logo { color: #171717; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: #644fc1; transform: none; font-size: 17px; }
.logo-mark span { transform: none; }
.score-chip { border-color: #d4d4d4; border-radius: 8px; background: #fff; color: #171717; font-weight: 600; }
.score-chip b { color: #644fc1; }
.menu-button { border-color: #d4d4d4; border-radius: 8px; }
.button { border-radius: 8px; }
.badge { border-radius: 9999px; }
.demo-strip { border-color: #d4d4d4; border-radius: 8px; background: #fff; }
.demo-strip summary { color: #171717; font-weight: 600; }
.demo-strip summary span { color: #644fc1; }
.bottom-tab { border-radius: 8px; color: #707070; }
.bottom-tab.active { color: #644fc1; background: #f3f0fb; }
.bottom-tab-request .bottom-tab-icon { border-radius: 8px; background: #4ade80; color: #171717; }
.bottom-tab-request.active { background: transparent; }
.bottom-tab-request.active .bottom-tab-icon { box-shadow: 0 0 0 2px #d4f7df; }
.main { padding-top: 12px; }
.home-dashboard { display: grid; gap: 10px; }
.shell:has(.home-dashboard) .footer { display: none; }
.home-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.home-heading h1 { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.home-admin-link { flex: none; color: #644fc1; font-size: 12px; font-weight: 650; }
.home-request-action { display: flex; align-items: center; gap: 10px; min-height: 50px; margin: 0; padding: 9px 13px; border: 1px solid #3bc96f; border-radius: 8px; background: #4ade80; color: #171717; box-shadow: none; }
.home-request-plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: #171717; color: #4ade80; font-size: 21px; font-weight: 400; }
.home-request-action strong { flex: 1; font-size: 15px; font-weight: 700; letter-spacing: 0; }
.home-request-action > span:last-child { font-size: 18px; font-weight: 500; }
.home-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.home-shortcut { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; justify-items: start; gap: 2px; min-height: 66px; padding: 10px 12px; border: 1px solid #d4d4d4; border-radius: 10px; background: #fff; }
.home-shortcut + .home-shortcut { border-top: 1px solid #d4d4d4; }
.home-shortcut-label { grid-column: 1; grid-row: 1; color: #707070; font-size: 12px; font-weight: 500; }
.home-shortcut strong { grid-column: 1; grid-row: 2; color: #171717; font-size: 18px; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; }
.home-ticketing { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin: 0; padding: 11px 14px; border: 1px solid #d4d4d4; border-left: 3px solid #644fc1; border-radius: 10px; background: #fff; }
.home-ticketing-label { grid-column: 1; color: #644fc1; font-size: 12px; font-weight: 650; }
.home-ticketing > strong { grid-column: 1; color: #171717; font-size: 17px; font-weight: 650; line-height: 1.25; }
.home-ticketing-title { grid-column: 1; min-width: 0; overflow: hidden; color: #707070; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.home-ticketing-arrow { grid-column: 2; grid-row: 1 / 4; align-self: center; color: #644fc1; font-size: 24px; line-height: 1; }
.home-requests { margin-top: 7px; }
.home-requests-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.home-requests-head h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.home-requests-head a { flex: none; color: #644fc1; font-size: 12px; font-weight: 650; }
.home-event-list { overflow: hidden; border: 1px solid #d4d4d4; border-radius: 10px; background: #fff; }
.home-event + .home-event { border-top: 1px solid #ededed; }
.home-event { display: grid; grid-template-columns: 42px minmax(0,1fr) 12px; align-items: center; gap: 10px; min-height: 64px; padding: 9px 11px; }
.home-event-art { display: grid; place-items: center; overflow: hidden; width: 42px; height: 46px; border-radius: 6px; background: #f3f0fb; color: #644fc1; font-size: 20px; }
.home-event-art img { width: 100%; height: 100%; object-fit: cover; }
.home-event-copy { display: grid; gap: 2px; min-width: 0; }
.home-event-copy strong { overflow: hidden; color: #171717; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.home-event-copy small { color: #707070; font-size: 12px; }
.home-event-arrow { color: #644fc1; font-size: 20px; }
.home-empty { padding: 16px; border: 1px solid #d4d4d4; border-radius: 10px; background: #fff; color: #707070; font-size: 13px; }

/* Performance search uses the existing registration form after selection. */
.registration-v8 .performance-catalog-entry { display: grid; gap: 20px; }
.registration-v8 .performance-catalog-entry[hidden], .registration-v8 .catalog-search-results[hidden] { display: none; }
.registration-v8 .catalog-search h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.04em; }
.registration-v8 .catalog-search > p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.registration-v8 .catalog-search .field { margin: 0; }
.registration-v8 .catalog-search input { min-height: 52px; font-size: 17px; }
.registration-v8 .catalog-search .catalog-search-status { min-height: 21px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.registration-v8 .catalog-search-results { display: grid; max-height: min(520px,55dvh); margin-top: 8px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.registration-v8 .catalog-result { display: grid; grid-template-columns: 48px minmax(0,1fr) 14px; align-items: center; gap: 12px; width: 100%; min-height: 98px; padding: 14px; border: 0; border-radius: 0; background: #fff; color: var(--ink); text-align: left; }
.registration-v8 .catalog-result + .catalog-result { border-top: 1px solid #ededed; }
.registration-v8 .catalog-result:hover, .registration-v8 .catalog-result.is-active { background: #f4f1fb; }
.registration-v8 .catalog-result:focus-visible { outline-offset: -3px; }
.registration-v8 .catalog-result img, .registration-v8 .catalog-result-no-poster { width: 48px; height: 66px; object-fit: cover; border-radius: 5px; }
.registration-v8 .catalog-result-no-poster { display: grid; place-items: center; background: #f1eef8; color: var(--primary); font-size: 24px; }
.registration-v8 .catalog-result-copy { display: grid; min-width: 0; gap: 5px; }
.registration-v8 .catalog-result-copy > strong { font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.registration-v8 .catalog-result-copy > span:not(.catalog-provider-badges) { color: var(--muted); font-size: 12px; line-height: 1.45; }
.registration-v8 .catalog-result .catalog-result-copy > span.catalog-result-opening { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; overflow: visible; white-space: normal; color: var(--primary); font-variant-numeric: tabular-nums; }
.registration-v8 .catalog-result-opening .catalog-sale-type { max-width: 100%; overflow-wrap: anywhere; font-size: 11px; }
.registration-v8 .performance-sale-label { grid-column: 2; color: #674293; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.registration-v8 .catalog-result-arrow { color: var(--primary); font-size: 25px; }
.catalog-provider-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.catalog-provider-badge { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid #ded8ee; border-radius: 6px; background: #faf8fe; color: #564392; font-size: 11px; font-weight: 650; line-height: 1.4; }
.registration-v8 .catalog-manual-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.registration-v8 .catalog-manual-option > span { color: var(--muted); font-size: 14px; }
.registration-v8 .catalog-manual-option .button { flex: none; min-height: 40px; width: auto; padding: 9px 14px; }
.registration-v8 .catalog-link-option { padding-top: 16px; border-top: 1px solid #ededed; }
.registration-v8 .catalog-link-option > summary { cursor: pointer; color: var(--link); font-size: 14px; font-weight: 650; }
.registration-v8 .catalog-link-option > p, .registration-v8 .catalog-link-option > small { display: block; color: var(--muted); font-size: 12px; }
.registration-v8 .catalog-link-option .sketch-url-line { margin: 12px 0; }
.registration-v8 .catalog-link-option .sketch-url-line .button { min-height: 48px; border-radius: 10px; }
.registration-v8 .catalog-selected-information { display: grid; gap: 12px; margin: 10px 0 24px; padding: 16px; border: 1px solid #ded8ee; border-radius: 12px; background: #fcfbff; }
.registration-v8 .catalog-selected-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.registration-v8 .catalog-selected-heading > strong { font-size: 15px; }
.registration-v8 .catalog-selected-information > p, .registration-v8 .catalog-selected-information .field { margin: 0; }
.registration-v8 .catalog-selected-information select { width: 100%; min-height: 46px; font-size: 14px; }
.catalog-opening-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.catalog-opening-choices legend { padding: 0; font-size: 14px; font-weight: 700; }
.catalog-opening-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 10px; }
.catalog-opening-choice { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 14px; border: 1px solid #ddd6e8; border-radius: 10px; background: #fff; cursor: pointer; }
.catalog-opening-choice:has(input:checked) { border-color: var(--primary); background: #f2edf9; box-shadow: inset 0 0 0 1px var(--primary); }
.catalog-opening-choice:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.catalog-opening-choice > input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--primary); }
.catalog-opening-choice-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.catalog-opening-choice-body > strong { font-size: 16px; }
.catalog-sale-type { padding: 3px 7px; border-radius: 4px; background: #ececf3; color: #424050; font-size: 12px; font-weight: 700; }
.catalog-sale-type.is-presale { background: #e9def9; color: #674293; }
.catalog-opening-providers, .catalog-opening-choice-body > small { flex-basis: 100%; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.catalog-opening-choice.is-expired { opacity: .55; cursor: default; }
.catalog-materials > summary, .catalog-casting-draft > summary { cursor: pointer; font-size: 14px; font-weight: 650; }
.catalog-material-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.catalog-material { position: relative; display: grid; align-content: start; gap: 6px; overflow: hidden; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; cursor: pointer; }
.catalog-material > label { display: flex; align-items: center; gap: 6px; font-weight: 650; cursor: pointer; }
.catalog-material input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.catalog-material img { display: block; width: 100%; height: 120px; object-fit: contain; background: #f4f4f4; }
.catalog-material > span { font-weight: 650; }
.catalog-material > a, .catalog-source-links > a, .catalog-admin-original { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.catalog-source-links { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 12px; }
.registration-v8 .catalog-site-openings { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid #e5def1; }
.registration-v8 .catalog-site-openings > h3 { margin: 0; font-size: 14px; }
.registration-v8 .catalog-site-openings > p { margin: 0; }
.registration-v8 .catalog-site-opening-row { display: grid; grid-template-columns: minmax(75px,1fr) minmax(185px,2fr); align-items: center; gap: 10px; }
.registration-v8 .catalog-site-opening-row > span { margin: 0; font-size: 13px; }
.registration-v8 .catalog-site-opening-row > input { width: 100%; min-width: 0; min-height: 42px; font-size: 13px; }
.catalog-casting-draft { min-width: 0; }
.catalog-casting-draft > details { margin-top: 12px; font-size: 12px; }
.catalog-casting-draft pre { overflow: auto; max-height: 300px; margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.catalog-table-wrap { overflow-x: auto; }
.catalog-table-wrap table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 12px; text-align: left; }
.catalog-table-wrap th, .catalog-table-wrap td { padding: 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.catalog-table-wrap th { font-weight: 650; }
.catalog-table-wrap td:first-child, .catalog-table-wrap td:nth-child(2) { white-space: nowrap; }
.catalog-admin-status { display: grid; gap: 12px; margin-bottom: 20px; }
.catalog-admin-status h2, .catalog-admin-status p { margin: 0; }
.catalog-admin-status > a { justify-self: start; }
.catalog-admin-list { display: grid; gap: 14px; }
.catalog-admin-item { min-width: 0; }
.catalog-admin-item > summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 12px; align-items: center; cursor: pointer; }
.catalog-admin-item > summary > strong { overflow-wrap: anywhere; }
.catalog-admin-item > summary > span { grid-column: 1; }
.catalog-admin-item > summary > .catalog-delete-button { grid-column: 2; grid-row: 1 / 3; min-height: 44px; color: var(--danger, #b42318); }
.catalog-admin-item > summary > span { color: var(--muted); font-size: 13px; }
.catalog-admin-item > .catalog-provider-badges { margin: 14px 0; }
.catalog-admin-original { display: inline-block; margin: 0 12px 12px 0; font-size: 13px; }
.catalog-admin-item .catalog-casting-draft { margin: 8px 0 20px; }
.catalog-admin-item textarea { font-family: ui-monospace,Consolas,monospace; font-size: 13px; line-height: 1.55; }
@media (max-width: 560px) {
  .registration-v8 .catalog-search h2 { font-size: 21px; }
  .registration-v8 .catalog-result { grid-template-columns: 40px minmax(0,1fr) 12px; gap: 10px; padding: 12px; }
  .registration-v8 .catalog-result img, .registration-v8 .catalog-result-no-poster { width: 40px; height: 56px; }
  .registration-v8 .catalog-result-copy > strong { font-size: 15px; }
  .registration-v8 .catalog-manual-option { flex-wrap: wrap; }
  .registration-v8 .catalog-selected-information { padding: 12px; }
  .catalog-material-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .catalog-material img { height: 110px; }
  .registration-v8 .catalog-site-opening-row { grid-template-columns: 1fr; gap: 5px; }
}

/* public/design-refresh.css */
/* Ticketmate type rhythm: page 22 / section 17 / body 16 / meta 13 / number 18.
   Keep Ticketlog's established palette and layouts. */
body, .shell, .login-wrap { background: var(--canvas-alt); }
body { color: var(--ink); font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; font-size: var(--type-body); line-height: 1.6; letter-spacing: 0; }
button, input, select, textarea { font-family: inherit; }
.shell { max-width: 760px; margin-inline: auto; }
.main { padding: 16px 16px calc(86px + env(safe-area-inset-bottom)); }
.footer { padding: 24px 16px calc(83px + env(safe-area-inset-bottom)); font-size: var(--type-micro); }

h1, h2, h3, h4 { color: inherit; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
h1, .hero h1, .login-card h1 { font-size: var(--type-display); line-height: 1.25; letter-spacing: -.2px; }
h2, .page-intro h1, .request-head h1, .ranking-intro h1,
.calendar-intro h1, .new-request-intro h1, .production-head h1 { font-size: var(--type-heading); line-height: 1.33; }
h3, h4, .section-head h2, .calendar-head h2, .calendar-details h2,
.ranking-card-head h2, .home-panel-head h2, .home-requests-head h2,
.notice-post h2, .request-info-panel h2 { font-size: var(--type-body-lg); line-height: 1.55; }
.section.card > h2 { font-size: var(--type-body-lg); line-height: 1.35; }
.eyebrow, .home-eyebrow { display: none; }
.eyebrow, .home-eyebrow, .badge, .priority-tag, .event-genre,
.home-live, .ranking-live { font-size: var(--type-micro); font-weight: 700; letter-spacing: .96px; line-height: 1.2; }
.lead, .page-intro .lead, .ranking-intro > p:not(.eyebrow),
.calendar-intro p:last-child, .new-request-intro .lead,
.production-head p { color: var(--muted); font-size: var(--type-body); line-height: 1.55; }
.small, small, .muted, .meta, .field-hint, .field-note,
.event-date, .event-venue, .event-card-foot, .ticketing-meta,
.ticketing-deadline, .request-meta, .request-ticketing,
.session-card-venue, .session-card-schedule, .session-card-people,
.home-rank-member small, .home-event-copy small, .home-ticketing-title,
.ranking-member-count, .rank-refreshed { font-size: var(--type-caption); line-height: 1.43; }
.button, .button-small, .field label, .site-field legend,
.admin-jumps button { font-size: var(--type-body-lg); font-weight: 700; line-height: 1.38; letter-spacing: .2px; }
.button-small { font-size: var(--type-caption); }
.home-quicklinks strong, .home-request-action strong, .home-intro h1,
.home-rank-member strong, .home-event-copy strong, .event-title,
.session-card-top strong, .calendar-event strong,
.offer-group-head strong, .rank-row strong { font-size: var(--type-body); font-weight: 700; line-height: 1.4; }
.home-panel-head h2, .home-requests-head h2, .home-ticketing > strong,
.request-overview strong, .session-card-stats strong,
.request-stage > strong, .turn-time, .ticketing-time,
.ranking-self-position, .stat-number, .member-stats strong { font-size: var(--type-body-lg); font-weight: 700; line-height: 1.35; }
.calendar-weekday, .calendar-day small, .home-my-rank span,
.home-rank-number, .home-rank-count, .home-quick-meta,
.home-quick-arrow, .home-ticketing-label, .home-ticketing-deadline,
.seat-tile-status, .seat-relation, .score-kind,
.demo-strip summary, .demo-strip-head, .demo-switch .button,
.request-info-card-body span, .request-info-delete { font-size: var(--type-micro); }
.calendar-day, .rank-row .point, .home-rank-score,
.home-my-rank strong, .event-card .badge, .activity-seat { font-size: var(--type-caption); }

/* A quiet top bar, with admin access in the header for admin accounts. */
.topbar { background: #fff; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; backdrop-filter: none; }
.topbar-inner { min-height: 58px; padding: 8px 12px; gap: 8px; }
.logo { gap: 0; font-size: var(--type-display); font-weight: 700; letter-spacing: -.2px; }
.score-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); background: #fff; }
.score-strip > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; padding: 6px 2px; white-space: nowrap; }
.score-strip > span + span { border-left: 1px solid var(--line-soft); }
.score-strip small { color: var(--muted); font-size: var(--type-micro); line-height: 1.2; }
.score-strip strong { font-size: var(--type-number); font-weight: 700; line-height: 1.3; }
.score-total { color: var(--primary); }
.stars-earned, .stars-available { color: #17643b; }
.stars-spent { color: var(--ink); }
.menu-button { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.menu-button svg { width: 21px; height: 21px; }
.admin-entry { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 36px; margin-left: auto; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font-size: var(--type-micro); font-weight: 700; white-space: nowrap; }
.admin-entry + .menu-button { margin-left: 0; }
.admin-entry svg { width: 17px; height: 17px; }
.admin-entry.active { border-color: #c5b6ea; background: #f4effc; color: var(--primary-deep); }
.mobile-menu { background: #fff; border-top: 1px solid var(--line-soft); }
.mobile-menu .nav-link { border-radius: 6px; font-size: var(--type-body); }
.nav-link.active, .nav-link:hover { color: var(--primary-deep); background: #f4effc; }
.desktop-nav { display: none; }

/* Violet actions, Emerald Soft for affirmative seat actions. */
.button { min-height: 42px; padding: 8px 16px; border: 1px solid transparent; border-radius: 6px; box-shadow: none; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); filter: none; }
.button-primary { color: #fff; background: var(--primary); border-color: var(--primary); }
.button-primary:hover:not(:disabled) { background: var(--primary-deep); border-color: var(--primary-deep); }
.button-green { color: var(--ink); background: var(--primary-soft); border-color: var(--primary-soft); }
.button-green:hover:not(:disabled) { background: #35c96c; border-color: #35c96c; }
.button-ghost, .button-white { color: var(--ink); background: #fff; border-color: #c7c7c7; }
.button-ghost:hover:not(:disabled), .button-white:hover:not(:disabled) { border-color: #b6a4e4; background: #f9f7fe; }
.button-danger { color: #a11f37; background: #fff; border-color: #db9ca8; }
.field input, .field select, .field textarea, .site-choice span,
.ticketing-admin-form input { color: var(--ink); background: #fff; border-color: var(--line); border-radius: 6px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }

.section { margin-top: 24px; }
.section-head { margin-bottom: 12px; }
.page-intro { padding: 6px 2px 18px; }
.page-intro h1, .ranking-intro h1, .calendar-intro h1 { margin-bottom: 6px; }
.card, .event-card, .session-card, .calendar-card, .calendar-details,
.ranking-card, .home-rank-panel, .home-event-list, .ticketing-item,
.notice-post, .request-info-card { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.card { padding: 16px; }
.card-soft, .rank-row, .priority-person, .venue-row, .home-notice,
.session-empty, .request-info-file, .production-result,
.production-selected, .empty { background: #fff; border-color: var(--line); }
.hero, .request-head, .login-card { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.hero { min-height: auto; padding: 24px; }
.hero::before { display: none; }
.hero .lead, .login-card .lead { color: var(--muted); }
.request-head { padding: 16px; }
.request-head .eyebrow, .request-meta { color: var(--muted); }
.login-card { padding: 24px; }
.login-card h1 { margin-top: 24px; }
.dev-logins { border-top-color: var(--line); }
.card-magenta, .ranking-self { color: #fff; background: #1c1c1c; border-color: #1c1c1c; box-shadow: none; }
.card-magenta .eyebrow, .ranking-self .muted { color: #fff; }
.stat { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.badge { border-radius: 999px; background: #f4f4f4; color: var(--ink); letter-spacing: 0; }
.badge-open { background: #dbf8e9; color: #126744; }
.badge-selection { background: #eae4f8; color: #5540a5; }
.badge-closed { background: #efefef; color: #555; }
.notice-green { color: #126744; background: #e9f8f0; border-color: #b6e4ce; }
.notice-magenta { color: #5540a5; background: #f1edfa; border-color: #d9d0f2; }
.text-link, .section-head a, .home-requests-head a,
.home-ticketing-arrow, .event-arrow, .request-back { color: var(--link); }

/* Five icon-only destinations; each link keeps its accessible label. */
.bottom-tab { display: grid; place-items: center; min-width: 0; min-height: 48px; border-radius: 8px; color: #707070; }
.bottom-tab-icon, .admin-bottom-nav .bottom-tab-icon { display: grid; place-items: center; width: 36px; height: 36px; }
.bottom-tab-icon svg, .admin-bottom-nav .bottom-tab-icon svg { width: 21px; height: 21px; }
.bottom-tab.active { color: var(--ink); background: transparent; }
.bottom-tab.active .bottom-tab-icon { background: transparent; }
.bottom-tab-request { align-self: start; margin-top: -18px; }
.bottom-tab-request .bottom-tab-icon { width: 52px; height: 52px; color: #fff; background: var(--primary); border-radius: 50%; box-shadow: 0 6px 18px rgb(0 0 0 / 10%); }
.bottom-tab-request .bottom-tab-icon svg { width: 25px; height: 25px; stroke-width: 3; }
.bottom-tab-request.active .bottom-tab-icon { background: var(--primary); box-shadow: 0 6px 18px rgb(0 0 0 / 10%); }
.bottom-tab:hover { color: var(--primary); }
.toast { bottom: calc(74px + env(safe-area-inset-bottom)); }

/* Home uses neutral quick links, a violet action, and small emerald status cues. */
.home-dashboard { gap: 12px; padding-bottom: 12px; }
.home-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 0; }
.home-intro h1 { margin: 0; }
.home-my-rank { display: grid; flex: none; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; }
.home-my-rank strong { color: var(--ink); }
.home-quicklinks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.home-quicklinks a { display: flex; align-items: center; gap: 7px; min-height: 54px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: none; }
.home-quicklinks strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-quick-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 6px; background: #f2f2f2; color: var(--primary); }
.home-quick-icon svg { width: 21px; height: 21px; }
.home-quick-icon.is-green { background: #e9f9ee; color: #17643b; }
.home-quick-meta { padding: 3px 5px; border-radius: 6px; background: #f2f2f2; color: var(--ink); letter-spacing: 0; }
.home-request-action { min-height: 58px; padding: 10px 12px; border: 1px solid var(--primary); border-radius: 8px; background: var(--primary); box-shadow: none; color: #fff; }
.home-request-plus { width: 34px; height: 34px; border-radius: 50%; color: var(--primary); background: #fff; }
.home-request-plus svg { width: 21px; height: 21px; stroke-width: 3; }
.home-request-action small { font-size: var(--type-caption); font-weight: 400; }
.home-request-action > span:last-child { font-size: var(--type-body-lg); }
.home-rank-panel { overflow: hidden; }
.home-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 8px; padding: 13px 14px 10px; border-bottom: 1px solid var(--line-soft); }
.home-panel-head h2 { margin: 2px 0 0; }
.home-live { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.home-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-soft); animation: live-pulse 2.2s ease-in-out infinite; }
.home-rank-count { color: var(--muted); }
.home-rank-list { padding: 2px 11px 6px; }
.home-rank-row { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 7px 5px; border-bottom: 1px solid var(--line-soft); border-radius: 0; transition: background-color .15s ease; }
.home-rank-row:last-child { border-bottom: 0; }
.home-rank-row.rank-1 { background: #fff; }
.home-rank-row.is-me { box-shadow: inset 3px 0 var(--primary); }
.home-rank-number { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fdf0f6; color: var(--accent-pink); font-weight: 700; }
.home-rank-member { display: grid; flex: 1; min-width: 0; gap: 1px; }
.home-rank-member strong, .home-rank-member small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-rank-score { flex: none; color: var(--accent-pink); }
.home-ticketing, .ticketing-item { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid #ffdb13; border-radius: 8px; background: #fff; box-shadow: none; }
.home-ticketing-label, .ticketing-time { color: var(--accent-ink); }
.home-event-list { overflow: hidden; }
.home-event { min-height: 64px; }
.home-event-art { background: #1c1c1c; color: var(--primary); }

/* Records, calendars, request cards, and admin panels share the same surfaces. */
.rank-row.rank-top, .rank-row.rank-top:first-child { background: #fff; outline-color: var(--line); }
.rank-row .point { color: var(--accent-pink); }
.priority-person > b { color: var(--primary); }
.rank-row .name { color: var(--ink); }
.ranking-self > span:first-child { font-size: var(--type-caption); }
.ranking-self-score { font-size: var(--type-number); }
.ranking-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 10px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ranking-tabs button { min-height: 40px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-family: inherit; font-size: var(--type-caption); font-weight: 700; line-height: 1.4; cursor: pointer; }
.ranking-tabs button.active { border-color: #c5b6ea; background: #f4effc; color: var(--primary-deep); }
.ranking-tabs button:focus-visible { outline: 2px solid var(--primary-deep); outline-offset: 1px; }
.star-wallet { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--primary-soft); border-radius: 10px; background: #fff; color: var(--ink); }
.star-wallet strong { color: #17643b; font-size: var(--type-body); line-height: 1.4; }
.star-wallet span, .star-wallet small { font-size: var(--type-caption); line-height: 1.43; }
.star-wallet small { flex-basis: 100%; color: var(--muted); }
.ranking-star-wallet { margin-top: 10px; }
.request-star-wallet { margin-bottom: 10px; }
.star-activity { color: #17643b; font-weight: 700; }
.ranking-live, .ranking-member-count, .calendar-event-status,
.calendar-event > span:last-child, .event-genre,
.production-result b, .session-card-link { color: var(--accent-ink); }
.calendar-card, .calendar-details { padding: 15px 12px; }
.calendar-head button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); font-size: var(--type-body-lg); }
.calendar-grid { gap: 4px; }
.calendar-weekday { color: var(--muted); font-size: var(--type-micro); }
.calendar-day { min-height: 44px; border: 1px solid var(--line-soft); border-radius: 6px; background: #fff; color: var(--ink); font-weight: 700; }
.calendar-day.has-events { border-color: #d5c8ee; background: #faf8fe; }
.calendar-day.today { border-color: var(--primary-deep); }
.calendar-day.selected { background: var(--primary); border-color: var(--primary); color: #fff; }
.calendar-day small { color: var(--primary); background: transparent; }
.calendar-day.selected small { color: #fff; background: transparent; }
.calendar-details .text-link { font-size: var(--type-caption); }
.ticketing-item-top { font-size: var(--type-micro); }
.home-requests-head a, .request-genre, .request-stage-label,
.request-stage-next, .pick-ledger-row small,
details summary span { font-size: var(--type-caption); }
.event-card { min-height: 108px; padding: 10px; }
.event-poster, .production-poster, .production-head-placeholder,
.seat-picked-cover, .session-picked-cover { color: var(--primary); background: #1c1c1c; }
.event-card-foot, .event-date, .session-card-count { color: var(--ink); }
.event-venue, .event-card-foot { color: var(--muted); }
.production-result, .production-selected, .request-info-card,
.request-info-file, .request-info-image-button,
.ticketing-admin-form, .session-empty { background: #fff; }
.ticketing-admin-form input { color: var(--ink); background: #fff; }
.request-ticketing { color: var(--ink); background: #f5f5f5; }
.request-stage-active { border-color: #d4c8ed; border-left-color: var(--primary); background: #faf8fe; }
.demo-strip { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: none; }
.demo-strip summary, .demo-strip-head a { color: var(--ink); }
.demo-strip summary span, .demo-switch .current { color: var(--accent-ink); }
.admin-jumps button { color: var(--ink); background: #fff; border-radius: 6px; }

/* Match Ticketmate's CHARTS list: one white surface, tabs on a line, rows separated by hairlines. */
.home-rank-panel { padding: 16px 16px 5px; border: 0; border-radius: 16px; background: #fff; }
.home-rank-panel .home-quicklinks { margin-bottom: 10px; }
.home-quicklinks a { position: relative; min-height: 56px; padding: 9px 13px; border: 0; border-radius: 14px; background: #ededed; overflow: hidden; }
.home-quicklinks a::after { content: ''; position: absolute; top: 50%; right: -13px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transform: translateY(-50%); }
.home-quick-icon, .home-quick-icon.is-green { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--primary); font-size: var(--type-body-lg); font-weight: 900; }
.home-quick-arrow { position: relative; z-index: 1; color: var(--primary); font-size: 12px; font-weight: 900; }
.home-quick-meta { margin-left: auto; background: #fff; }
.home-chart-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; min-height: 44px; margin-bottom: 10px; padding: 4px; border-radius: 16px; background: #ededed; }
.home-chart-switch > * { display: grid; place-items: center; min-width: 0; min-height: 40px; border-radius: 12px; color: var(--muted); font-size: var(--type-caption); font-weight: 800; text-align: center; text-decoration: none; white-space: nowrap; }
.home-chart-switch > .active { background: #fff; color: var(--primary); }
.home-chart-switch a:hover { color: var(--primary); }
.home-panel-head { align-items: center; padding: 0; border: 0; }
.home-panel-head h2 { margin: 0; font-size: var(--type-body-lg); }
.home-rank-count { font-size: var(--type-caption); }
.home-rank-panel .ranking-tabs { margin-top: 2px; }
.ranking-tabs { display: flex; gap: 16px; margin: 0 0 4px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.ranking-tabs button { position: relative; min-height: 40px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: var(--type-caption); }
.ranking-tabs button.active { border: 0; border-radius: 0; background: transparent; color: var(--ink); }
.ranking-tabs button.active::after { content: ''; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--primary); }
.home-rank-list, .ranking-card .rank-list { display: grid; gap: 0; padding: 0; }
.home-rank-row, .home-rank-row.rank-1, .ranking-card .rank-row,
.ranking-card .rank-row.rank-top { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; outline: 0; box-shadow: none; transform: none; }
.home-rank-row:last-child, .ranking-card .rank-row:last-child { border-bottom: 0; }
.home-rank-row.is-me, .ranking-card .rank-row.me { background: transparent; outline: 0; box-shadow: none; }
.home-rank-number { display: block; flex: none; width: auto; height: auto; border-radius: 0; background: transparent; color: var(--accent-pink); font-size: var(--type-body); font-weight: 700; white-space: nowrap; }
.home-rank-row:nth-child(n+6) .home-rank-number { color: var(--ink); }
.home-rank-member, .ranking-card .rank-member { display: flex; flex: 1; flex-wrap: wrap; align-items: baseline; gap: 1px 6px; min-width: 0; }
.home-rank-member strong, .ranking-card .rank-row .name { color: var(--ink); font-size: var(--type-body); font-weight: 700; text-decoration: none; }
.home-rank-member small, .ranking-card .rank-member .small { color: var(--muted); font-size: var(--type-caption); font-weight: 400; }
.home-rank-score, .ranking-card .rank-row .point { flex: none; margin-left: auto; color: #ff4d8b; font-size: var(--type-number); font-weight: 700; white-space: nowrap; }
.ranking-card .rank-values { display: flex; flex: none; flex-direction: column; align-items: flex-end; min-width: 65px; margin-left: auto; line-height: 1.2; }
.ranking-card .rank-star-count { color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-rank-row:nth-child(n+6) .home-rank-score,
.ranking-card .rank-row:nth-child(n+6) .point { color: var(--primary); }
.ranking-card { margin-top: 12px; padding: 15px 16px 8px; border: 0; border-radius: 16px; background: #fff; }
.ranking-card .ranking-self { min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); box-shadow: none; }
.ranking-card .ranking-self-position, .ranking-card .ranking-self-score { color: var(--accent-pink); font-size: var(--type-number); }
.ranking-card .ranking-star-wallet { margin: 0; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.ranking-card-head { margin: 12px 0 3px; }
.ranking-card-head h2 { font-size: var(--type-body-lg); }
.ranking-card .rank-row:hover, .home-rank-row:hover { background: #fafafa; box-shadow: none; transform: none; }
.ranking-card .rank-row > strong { min-width: 25px; color: var(--accent-pink); font-size: var(--type-body); }
.ranking-card .rank-row:nth-child(n+6) > strong { color: var(--ink); }
.ranking-card .rank-row:focus-visible, .home-rank-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

/* The original Ticketmate dashboard header and first panel. */
body:has(.shell.is-home) { background: #fffaf0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.topbar { padding: 12px 12px 10px; border: 1px solid #e5e5e5; border-radius: 0 0 16px 16px; box-shadow: 0 1px 3px rgb(0 0 0 / 6%); }
.topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 88px; padding: 0; }
.topbar .logo { justify-self: start; font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.topbar-right { display: flex; flex-direction: column; align-items: flex-end; justify-self: end; gap: 4px; min-width: 0; }
.kst-clock { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 24px; margin-right: 2px; padding: 4px 10px; border-radius: 999px; background: #dceeb1; color: #0a0a0a; }
.kst-clock svg { width: 14px; height: 14px; }
.kst-clock strong { font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.topbar-actions { display: grid; grid-template-columns: repeat(4, 40px); align-items: center; gap: 10px; }
.top-avatar, .top-action-icon, .top-key { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: #8f99aa; background: transparent; border: 0; border-radius: 6px; }
.top-avatar img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; box-shadow: 0 1px 4px rgb(0 0 0 / 10%); }
.top-action-icon svg, .top-key svg { width: 21px; height: 21px; }
.top-action-icon:hover, .top-key:hover, .top-avatar:hover { color: #6b01c2; background: #f8f6fc; }
.top-key { border: 1px solid #e5e5e5; color: #0a0a0a; background: #fff; }
.header-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.header-search input { min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #e5e5e5; border-radius: 10px; background: #fffaf0; color: var(--ink); font-size: 14px; font-weight: 600; }
.header-search input::placeholder { color: #6a6a6a; opacity: 1; }
.header-search input:focus { outline: 2px solid #ead9fa; border-color: #6b01c2; }
.header-search button { min-width: 58px; min-height: 40px; padding: 0 14px; border: 1px solid #6b01c2; border-radius: 10px; background: #6b01c2; color: #fff; font-size: 13px; font-weight: 800; }
.topbar .score-strip { margin: 10px -12px -10px; }
.shell.is-home .topbar .score-strip { display: none; }
.shell.is-home { background: #fffaf0; }
.shell.is-home .main { padding: 12px 12px calc(86px + env(safe-area-inset-bottom)); }
.home-rank-panel { padding: 16px 16px 7px; }
.home-rank-panel .home-quicklinks { margin-bottom: 10px; }
.home-rank-panel .home-panel-head { justify-content: flex-end; min-height: 28px; padding: 2px 0 0; }
.home-rank-panel .home-panel-head h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-rank-panel .home-rank-count { color: #6a6a6a; font-size: 14px; font-weight: 400; }
.home-rank-panel .ranking-tabs { gap: 16px; margin: 0; }
.home-rank-panel .ranking-tabs button { padding-inline: 0; font-size: 14px; }
.home-score-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.home-score-summary span { display: flex; flex-direction: column; align-items: center; padding: 7px 2px; color: var(--muted); font-size: var(--type-caption); white-space: nowrap; }
.home-score-summary span + span { border-left: 1px solid var(--line-soft); }
.home-score-summary strong { color: var(--primary); font-size: var(--type-number); line-height: 1.3; }
.home-score-summary span:nth-child(2) strong, .home-score-summary span:nth-child(4) strong { color: #17643b; }
.search-page { display: grid; gap: 12px; }
.search-page > p { margin: 0; }
.search-group { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search-group h2 { padding-bottom: 7px; font-size: var(--type-body-lg); }
.search-group p { margin: 0; padding: 8px 0; }
.search-result { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.search-result span { color: var(--muted); font-size: var(--type-caption); text-align: right; }

@keyframes live-pulse { 50% { opacity: .45; } }
@media (hover: hover) {
  .home-quicklinks a:hover, .event-card:hover, .session-card:hover { border-color: var(--primary-deep); background: #f8fcfa; transform: none; box-shadow: none; }
  .home-rank-row:hover, .home-event:hover { background: #f8fcfa; transform: none; }
}
@media (max-width: 430px) {
  .home-quicklinks a { gap: 6px; padding-inline: 8px; }
  .home-quick-icon, .home-quick-icon.is-green { width: 30px; height: 30px; }
  .home-quick-arrow, .home-quick-meta { display: none; }
}
@media (max-width: 350px) {
  .topbar { padding-inline: 8px; }
  .topbar-inner { min-height: 84px; gap: 4px; padding: 0; }
  .topbar .logo { font-size: 20px; }
  .topbar-actions { grid-template-columns: repeat(4, 34px); gap: 4px; }
  .top-avatar, .top-action-icon, .top-key { width: 34px; height: 36px; }
  .kst-clock { padding-inline: 7px; }
  .kst-clock strong { font-size: 10px; }
  .header-search button { min-width: 54px; padding-inline: 10px; }
  .score-strip > span { padding-block: 4px; }
  .home-quicklinks a { gap: 4px; padding-inline: 6px; }
  .home-quick-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-live i { animation: none; }
  .button, .home-quicklinks a, .event-card, .session-card,
  .home-rank-row, .home-event, .bottom-tab { transition: none; }
}
