/* public/login.css */
.entry-board { margin-top: 24px; padding: 18px 12px 14px; border: 1px solid #d9dce5; border-radius: 18px; background: #fff; }
.entry-stage { margin: 0 auto 22px; padding: 9px; max-width: 240px; border-bottom: 3px solid #4651ab; color: #4651ab; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.entry-map { display: grid; gap: 10px; }
.entry-map-row { display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 5px; }
.entry-row-label { color: #47506a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.entry-map-seats { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.entry-seat { min-width: 0; aspect-ratio: 1; padding: 0; border: 1px solid #cad0e3; border-radius: 6px; background: #f4f6fd; color: #303a59; font-size: 12px; font-weight: 700; cursor: pointer; }
.entry-seat:hover:not(:disabled), .entry-seat:focus-visible { border-color: #5749c8; background: #eae7ff; outline: 2px solid #8b7cf1; outline-offset: 1px; }
.entry-seat-wrong { border-color: #e5b0b6; background: #fbe9ec; color: #a9505e; }
.entry-message { margin: 15px 0 0; color: #4b5470; font-size: 14px; line-height: 1.5; }
.entry-owner-login { display: block; margin-top: 18px; padding: 12px 14px; border: 1px solid #c9b9ee; border-radius: 10px; color: #5f36b8; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none; }
.entry-owner-login:hover, .entry-owner-login:focus-visible { background: #f4f0ff; border-color: #8e71d6; }
.entry-message strong { display: inline-block; padding: 2px 6px; border-radius: 5px; background: #fbe9ec; color: #9b314d; letter-spacing: .08em; }
.entry-admin-hint { margin: 16px 0 0; padding: 12px 14px; border: 1px solid #bce8d1; border-radius: 10px; background: #effaf4; color: #185c3a; font-size: 14px; line-height: 1.5; }
.entry-admin-hint strong { font-weight: 700; }
.entry-seat-admin { border-color: #2ba96b; background: #dff5e9; color: #185c3a; box-shadow: 0 0 0 2px #2ba96b33; }
@media (max-width: 360px) { .entry-board { padding-inline: 8px; } .entry-map-row { grid-template-columns: 24px minmax(0, 1fr); gap: 3px; } .entry-seat { font-size: 11px; } }

.login-wrap-welcome {
  display: block;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin-inline: auto;
  padding: calc(23px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  background: #fafafa;
}
.login-card-welcome {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 47px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.welcome-logo {
  color: #171717;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.7px;
  line-height: 1;
}
.welcome-logo span, .welcome-content h1 span { color: #6b01c2; }
.welcome-content {
  width: 100%;
  padding-top: clamp(84px, 16vh, 144px);
}
.login-card-welcome .welcome-content h1 {
  margin: 0;
  color: #171717;
  font-size: clamp(26px, 7vw, 28px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.27;
}
.google-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  margin-top: 44px;
  padding: 10px 16px;
  border: 1px solid #c7c7c7;
  border-radius: 10px;
  background: #fff;
  color: #171717;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.google-signin svg { display: block; flex: none; width: 22px; height: 22px; }
.google-signin strong { font-size: 15px; font-weight: 700; line-height: 1.35; }
.google-signin strong { min-width: 0; overflow-wrap: anywhere; text-align: center; }
.google-account-email { display: block; margin-block: 3px; }
.google-signin-other { margin-top: 12px; }
.google-login-help { margin: 14px 0 0; color: #666; font-size: 12px; line-height: 1.6; text-align: center; }
.signup-switch-account { width: 100%; margin: 0 0 16px; white-space: normal; }
.google-signin:hover { border-color: #6b01c2; box-shadow: 0 3px 12px rgb(107 1 194 / 9%); transform: translateY(-1px); }
.google-signin:focus-visible { outline: 3px solid #ad8cdc; outline-offset: 3px; }
.login-card-welcome .dev-logins { margin-top: 24px; }
@media (max-height: 700px) {
  .welcome-content { padding-top: 72px; }
}
@media (max-width: 355px) {
  .login-wrap-welcome { padding-inline: 18px; }
  .google-signin strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .google-signin { transition: none; }
}

/* Signup comes before the daily seat challenge. */
.welcome-content { padding-top: clamp(32px, 7vh, 64px); }
.welcome-intro { margin: 18px 0 24px; color: #666; line-height: 1.7; }
.entry-steps { display: grid; gap: 14px; padding: 0; margin: 24px 0; list-style: none; font-size: 14px; line-height: 1.6; }
.entry-steps li { display: flex; align-items: center; gap: 10px; }
.entry-steps li > b { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 50%; color: #6345b3; background: #f0eafa; }
.entry-steps [aria-current="step"] { color: #6345b3; }
.entry-warning { margin: 20px 0; padding: 16px; border: 1px solid #e5bc73; border-radius: 12px; background: #fff8e9; color: #754514; font-size: 14px; line-height: 1.65; }
.entry-warning p { margin: 8px 0 0; }
.entry-choice summary { cursor: pointer; list-style: none; white-space: normal; text-align: center; }
.entry-choice summary::-webkit-details-marker { display: none; }
.entry-choice summary:focus-visible { outline: 3px solid #ad8cdc; outline-offset: 3px; }
.entry-seat[aria-pressed="true"] { background: #6548be; border-color: #6548be; color: #fff; outline: 2px solid #6548be; outline-offset: 2px; }
.entry-selection { font-size: 14px; line-height: 1.6; text-align: center; }
.entry-card .button { white-space: normal; }

/* Signup is shown before any member page assets load. */
.signup-form{padding:0;overflow:hidden;margin-top:18px}.signup-question{padding:18px;border-bottom:1px solid #e7e4eb}.signup-question:last-of-type{border-bottom:0}.signup-question>label,.signup-question>h2{display:flex;align-items:flex-start;gap:10px;margin:0 0 7px;font-size:16px;line-height:1.45;font-weight:700;letter-spacing:-.02em}.signup-question b{flex:none;display:inline-grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#f0edfc;color:#5943b9;font-size:12px;letter-spacing:0}.signup-question>p{margin:0 0 11px;color:#596171;font-size:14px;line-height:1.5}.signup-question>input:not([type=hidden]){width:100%;min-height:46px;padding:10px 12px;border:1px solid #cbcbd6;border-radius:10px;background:#fff;color:#20212b}.signup-question>input:focus{outline:2px solid #644fc1;outline-offset:1px}.signup-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.signup-choice{position:relative;display:block;cursor:pointer}.signup-choice input{position:absolute;opacity:0;width:1px;height:1px}.signup-choice span,.signup-decline{display:flex;align-items:center;justify-content:center;min-height:44px;width:100%;padding:8px;border:1px solid #c9cbd5;border-radius:10px;background:#fff;color:#3d4350;text-align:center;font-size:14px;font-weight:700;line-height:1.35}.signup-choice input:checked+span{border-color:#2cbb73;background:#e9f9ef;color:#12663b}.signup-choice input:focus-visible+span,.signup-decline:focus-visible{outline:3px solid #644fc1;outline-offset:2px}.signup-decline{cursor:pointer}.signup-decline:hover,.signup-choice:hover span{border-color:#9b8ddb}.signup-message{padding:0 18px;margin:16px 0 0;color:#596171;font-size:13px;line-height:1.45}.signup-form>.button{width:calc(100% - 36px);margin:12px 18px 18px!important}.signup-form>.button:disabled{opacity:.58}@media(max-width:370px){.signup-question{padding:15px}.signup-choices{grid-template-columns:1fr}.signup-choice span,.signup-decline{min-height:40px}.signup-form>.button{width:calc(100% - 30px);margin-inline:15px!important}}
.signup-account { display:flex; align-items:center; gap:10px; }
.signup-account .lead { flex:1; min-width:0; margin:0; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.signup-account .lead strong { font-weight:700; }
.signup-account .button { flex:none; margin:0!important; padding:7px 10px; font-size:12px; }
.signup-wrap { display:block; padding-top:24px; }
.login-card.signup-card { min-height:0; padding:24px; }
.login-card.signup-card h1 { margin:0 0 20px; font-size:24px; line-height:1.35; white-space:normal; }
.signup-card .signup-account { margin-bottom:16px; }
.signup-card .signup-privacy { margin:12px 0 0; text-align:right; font-size:12px; line-height:1.5; color:#6b756f; }
.signup-privacy a { display:inline-flex; align-items:center; min-height:44px; color:inherit; text-decoration:underline; text-underline-offset:3px; }

/* public/mobile-system.css */
/* Approved Ticketlog mobile system, shared by the authenticated screens. */
.shell.has-mode-banner { padding-top: calc(32px + env(safe-area-inset-top)); }
.admin-mode-banner,
html:has(.admin-mode-banner) dialog[open]::before {
  position: fixed; inset: 0 0 auto; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  height: calc(32px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top);
  background: #5439ab; color: #fff; font-size: 13px; line-height: 20px;
  font-weight: 700; letter-spacing: .04em; pointer-events: none;
}
html:has(.admin-mode-banner) dialog[open]::before { content: '멤버모드'; }
html:has(.shell[data-active-view-mode="owner"]) dialog[open]::before { content: '최고운영자모드'; }
html:has(.shell[data-active-view-mode="subadmin"]) dialog[open]::before { content: '운영자모드'; }
body { color: var(--ink); font-size: 15px; line-height: 1.53; }
.shell:not(.is-request-page) { color: var(--ink); background: var(--canvas-alt); }
.shell:not(.is-request-page) .main { padding-top: 20px; }
.shell:not(.is-request-page) .site-pass-header {
  padding-top: calc(12px + env(safe-area-inset-top));
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.site-pass-header .pass-logo { font-size: 20px; }
.site-pass-header .pass-logo span { color: var(--primary); }
.site-pass-header .header-star-wallet .header-star-count,
.site-pass-header .header-star-wallet .rank-star-symbol { color: var(--green); }
.site-pass-header .pass-concept { color: #3d4841; font-size: 13px; }
.site-pass-header .pass-compare, .site-pass-header .pass-view-toggle {
  min-height: 36px; padding: 6px 8px; border-color: var(--line);
  border-radius: 8px; color: var(--primary); font-size: 12px;
}
.site-pass-header .pass-header-caption { display: none; }
.site-pass-header .site-pass-tools { margin-top: 12px; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.site-pass-header .site-pass-tools.has-admin { grid-template-columns: minmax(0, 1fr) 44px 44px; }
.site-pass-header .site-pass-search { min-height: 48px; border-color: var(--line); background: #fff; }
.site-pass-header .site-pass-search input { height: 46px; color: var(--ink); font-size: 15px; }
.site-pass-header .site-pass-search input::placeholder { color: var(--muted); }
.site-pass-header .site-pass-search button { min-width: 53px; background: #404040; color: #fff; font-size: 14px; }
.site-pass-header .pass-tool-link, .site-pass-header .pass-menu-button {
  min-height: 48px; border-color: var(--line); color: var(--ink); font-size: 13px;
}
.site-pass-header .mobile-menu { border-color: var(--line); box-shadow: 0 6px 20px rgb(23 27 25 / 8%); }
.site-pass-header .mobile-menu .nav-link { min-height: 44px; font-size: 15px; }
.site-pass-header .mobile-menu .nav-link.active { background: #f1eefb; color: var(--primary); }
.shell.is-mine .site-pass-header { position: sticky; top: 0; }
.shell.is-mine.has-mode-banner .site-pass-header { top: calc(32px + env(safe-area-inset-top)); }
.shell.is-mine .site-pass-header .pass-wallet {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.shell.is-mine .pass-wallet > span { position: relative; min-height: 46px; padding: 2px; }
.shell.is-mine .pass-wallet > span + span { border-left: 0; }
.shell.is-mine .pass-wallet > span + span::before {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 1px; background: var(--line); content: '';
}
.shell.is-mine .pass-wallet small { color: var(--muted); font-size: 11px; line-height: 16px; }
.shell.is-mine .pass-wallet strong { color: var(--ink); font-size: 17px; line-height: 22px; }
.shell.is-mine .pass-wallet .stars-earned { color: var(--primary); }
.shell.is-mine .pass-wallet .stars-available { color: var(--green); }

/* Type and surfaces: 22 / 18 / 16 / 15 / 13. */
.shell:not(.is-request-page) .main .page-intro,
.shell:not(.is-request-page) .main .ranking-intro,
.shell:not(.is-request-page) .main .calendar-intro,
.shell:not(.is-request-page) .main .production-head { padding: 0 0 16px; }
.shell:not(.is-request-page) .main .page-intro > .eyebrow,
.shell:not(.is-request-page) .main .ranking-intro > .eyebrow,
.shell:not(.is-request-page) .main .calendar-intro > .eyebrow,
.shell:not(.is-request-page) .main .production-head > .eyebrow { display: none; }
.shell:not(.is-request-page) .main .page-intro h1,
.shell:not(.is-request-page) .main .ranking-intro h1,
.shell:not(.is-request-page) .main .calendar-intro h1,
.shell:not(.is-request-page) .main .production-head h1,
.shell:not(.is-request-page) .main .request-head h1,
.shell:not(.is-request-page) .main .search-page h1 {
  margin: 0 0 6px; font-size: 22px; font-weight: 700; line-height: 28px; letter-spacing: -.02em;
}
.shell:not(.is-request-page) .main .page-intro .lead,
.shell:not(.is-request-page) .main .ranking-intro > p,
.shell:not(.is-request-page) .main .calendar-intro > p,
.shell:not(.is-request-page) .main .production-head > p { margin: 0 0 10px; color: #3d4841; font-size: 15px; line-height: 23px; }
.shell:not(.is-request-page) .main .section { margin-top: 24px; }
.shell:not(.is-request-page) .main .section-head h2,
.shell:not(.is-request-page) .main .section.card > h2,
.shell:not(.is-request-page) .main .ranking-card-head h2,
.shell:not(.is-request-page) .main .calendar-details h2,
.shell:not(.is-request-page) .main .search-group h2 { font-size: 18px; font-weight: 700; line-height: 25px; }
.shell:not(.is-request-page) .main .card,
.shell:not(.is-request-page) .main .event-card,
.shell:not(.is-request-page) .main .session-card,
.shell:not(.is-request-page) .main .calendar-card,
.shell:not(.is-request-page) .main .calendar-details,
.shell:not(.is-request-page) .main .ticketing-item,
.shell:not(.is-request-page) .main .search-group {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: none;
}
.shell:not(.is-request-page) .main .small,
.shell:not(.is-request-page) .main small,
.shell:not(.is-request-page) .main .muted,
.shell:not(.is-request-page) .main .event-venue,
.shell:not(.is-request-page) .main .event-card-foot,
.shell:not(.is-request-page) .main .ticketing-meta,
.shell:not(.is-request-page) .main .ticketing-deadline { font-size: 13px; line-height: 19px; }
.shell:not(.is-request-page) .main .button { min-height: 48px; border-radius: 9px; font-size: 15px; transform: none; }
.shell:not(.is-request-page) .main .button:hover:not(:disabled) { transform: none; }
.shell:not(.is-request-page) .main .button-small { min-height: 44px; font-size: 13px; }
.shell:not(.is-request-page) .main .button-primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.shell:not(.is-request-page) .main .button-green { border-color: var(--green); background: var(--green); color: var(--ink); }
.shell:not(.is-request-page) .main .button-ghost,
.shell:not(.is-request-page) .main .button-white { border-color: var(--line); background: #fff; color: var(--primary); }
.shell:not(.is-request-page) .main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.shell:not(.is-request-page) .main select,
.shell:not(.is-request-page) .main textarea { min-height: 48px; border-color: var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 15px; }
.shell:not(.is-request-page) .main .field > span,
.shell:not(.is-request-page) .main .field > label { font-size: 14px; font-weight: 600; }
.shell:not(.is-request-page) .main :focus-visible { outline-color: var(--primary); }

/* Home retains the ticket shape and the requested line-separated ranking. */
.pass-wallet, .pass-now, .pass-ranking, .pass-production, .pass-empty { border-color: var(--line); border-radius: 12px; }
.pass-wallet small, .pass-ranking-period, .pass-rank-person small,
.pass-rank-stars, .pass-production-copy > span { color: var(--muted); font-size: 13px; }
.pass-wallet .stars-earned, .pass-wallet .stars-available,
.pass-section-kicker > span, .pass-section-heading > a { color: var(--primary); }
.pass-section-kicker > span { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.pass-ticket { border-radius: 12px; background: var(--ink); animation: none; }
.pass-ticket-stub { background: var(--primary); }
.pass-ticket-label::before, .pass-ticket-cta { background: var(--green); }
.shell.is-home-proposal .pass-now { display: block; min-height: 0; margin-top: 0; border: 0; border-radius: 0; background: transparent; }
.shell.is-home-proposal .pass-now > .pass-now-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center; min-height: 44px; padding: 0;
}
.pass-now-links > a { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 44px; padding: 3px 2px; color: #3d4841; font-size: 11px; text-decoration: none; white-space: nowrap; }
.pass-now-links > a + a { padding-left: 8px; }
.pass-now-links svg { flex: none; width: 18px; height: 18px; color: var(--green); }
.pass-now-links > a + a svg { color: var(--primary); }
.shell.is-home-proposal .pass-now-links strong { font-size: inherit; font-weight: 700; line-height: inherit; }
.pass-now-arrow { margin-left: auto; color: #9ca7a0; font-size: 16px; }
.pass-now-dot, .pass-section-mark { background: var(--primary); }
.pass-live-dot { background: var(--green); box-shadow: 0 0 0 4px rgb(62 207 142 / 16%); animation: pass-pulse 1.8s ease-in-out infinite; }
.pass-section-heading h2 { font-size: 18px; font-weight: 700; }
.pass-rank-row { min-height: 58px; border-bottom-color: var(--line); }
.pass-rank-index { color: var(--muted); }
.pass-rank-row.is-top-rank .pass-rank-index,
.pass-rank-points, .pass-rank-row.is-me .pass-rank-person strong,
.pass-rank-stars, .pass-rank-stars .rank-star-symbol,
.pass-rank-person .has-today-points, .pass-ranking .pass-section-heading > a { color: var(--green); }
.pass-rank-stars .rank-star-symbol { text-shadow: none; }
.pass-rank-person > small { display: inline; }
.pass-rank-person .has-today-points { font-weight: 600; }
.pass-production-lead { min-height: 88px; }
.pass-production-copy strong { font-size: 16px; }
.pass-production-copy small { color: var(--primary); font-size: 13px; }
.pass-session-strip { border-top-color: var(--line); }
.pass-session-strip a { border-color: var(--line); font-size: 13px; }
.pass-session-strip a span { color: #167c55; }
.pass-request-cta { border-radius: 9px; background: var(--primary); }
.ticket-open-art { border-color: var(--line); border-radius: 12px; }
.ticket-open-art img { border-radius: 8px; box-shadow: none; }
.ticket-open-ribbon { background: var(--primary); }
.ticket-open-card.is-today .ticket-open-ribbon { background: #b8ff3b; color: var(--ink); }
.ticket-open-clock, .ticket-open-card-footer a, .ticket-open-card-footer button { color: var(--primary); }
.ticket-open-title { font-size: 16px; font-weight: 700; }
.ticket-open-pill { border-color: var(--line); background: #f2f5f1; font-size: 12px; }
.ticket-open-card-status, .ticket-open-card-footer { color: var(--muted); font-size: 13px; }
.ticket-open-view-all { border-color: var(--line); border-radius: 9px; }

/* Ranking: no stacked rank cards; each member stays on a hairline row. */
.ranking-intro .ranking-live { color: #167c55; font-size: 13px; letter-spacing: 0; }
.shell .ranking-card { padding: 14px 16px 8px; }
.ranking-card .ranking-tabs, .pass-ranking .ranking-tabs { border-bottom-color: var(--line); }
.ranking-card .ranking-tabs button, .pass-ranking .ranking-tabs button { min-height: 44px; color: var(--muted); font-size: 14px; }
.ranking-card .ranking-tabs button.active, .pass-ranking .ranking-tabs button.active { color: var(--green); }
.ranking-card .ranking-tabs button.active::after, .pass-ranking .ranking-tabs button.active::after { background: var(--green); }
.ranking-card .ranking-tabs button:focus-visible, .pass-ranking .ranking-tabs button:focus-visible,
.ranking-card a:focus-visible, .pass-ranking a:focus-visible { outline-color: var(--green); }
.ranking-card .ranking-self { border-bottom-color: var(--line); }
.ranking-card .ranking-self-position, .ranking-card .ranking-self-score { color: var(--green); font-size: 16px; }
.ranking-card .ranking-star-wallet .star-balance, .ranking-card .ranking-star-wallet .star-help,
.ranking-card .rank-star-symbol { color: var(--green); }
.ranking-card .star-balance:focus-visible, .ranking-card .star-help:focus-visible { outline-color: var(--green); }
.ranking-card .rank-star-symbol { text-shadow: none; }
.ranking-card .ranking-star-wallet { border-bottom-color: var(--line); }
.ranking-card .pass-rank-row { min-height: 62px; }
.ranking-card .ranking-member-count { color: var(--muted); font-size: 13px; }
.ranking-note, .rank-refreshed { color: var(--muted); font-size: 13px; }
.rank-star-symbol { color: #ffdb13; }

/* Calendar follows the date picker: a full-cell target with a circular date. */
.shell .calendar-card { padding: 14px 10px 16px; }
.calendar-head { margin: 0 2px 12px; }
.shell .calendar-head h2 { font-size: 18px; font-weight: 700; }
.calendar-head button { width: 44px; height: 44px; border: 0; border-radius: 9px; background: #fff; color: var(--primary); font-size: 28px; }
.calendar-grid { gap: 0; }
.calendar-weekday { min-height: 32px; padding: 5px 0; color: var(--muted); font-size: 13px; }
.shell .calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; min-height: 48px; padding: 2px 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 14px; }
.calendar-day > span:first-child { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid transparent; border-radius: 50%; }
.calendar-day.today > span:first-child { border-color: var(--primary); }
.calendar-day.selected > span:first-child, .calendar-day.selected.today > span:first-child { border-color: var(--primary); background: var(--primary); color: #fff; }
.calendar-day.has-events, .calendar-day.has-events.selected { border: 0; background: transparent; color: var(--ink); }
.calendar-day.has-events.selected > span:first-child { color: #fff; }
.calendar-day small { width: 5px; height: 5px; overflow: hidden; border-radius: 50%; background: var(--green); color: transparent; font-size: 0; }
.calendar-day.selected small { background: var(--green); color: transparent; }
.calendar-event { border-bottom-color: var(--line); font-size: 15px; }
.calendar-event strong { font-size: 16px; }
.calendar-event-status { color: #167c55; }
.calendar-details .text-link { color: var(--primary); font-size: 13px; }

/* Request lists, request detail, records and administrative forms. */
.event-list, .session-list, .ticketing-list, .notice-feed { gap: 12px; }
.event-card .event-title, .session-card-top strong, .ticketing-title { font-size: 16px; line-height: 23px; }
.event-genre, .request-genre { color: var(--primary); font-size: 12px; }
.ticketing-item { border-left: 3px solid var(--primary); }
.ticketing-item-top { color: var(--primary); font-size: 13px; }
.ticketing-time { color: var(--ink); font-size: 18px; }
.ticketing-actions button { min-height: 44px; color: var(--primary); font-size: 13px; }
.ticketing-delete-reason { color: var(--muted); font-size: 13px; }
.ticketing-schedule { min-width: 0; }
.ticketing-schedule .ticketing-intro { padding-bottom: 12px; }
.ticketing-daybar { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; min-height: 54px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ticketing-daybar > button { height: 52px; border: 0; background: transparent; color: var(--ink); font-size: 27px; line-height: 1; cursor: pointer; }
.ticketing-daybar > button:focus-visible, .ticketing-day-picker:focus-within { outline: 2px solid var(--primary); outline-offset: -3px; }
.ticketing-day-picker { position: relative; display: grid; place-items: center; min-width: 0; min-height: 52px; cursor: pointer; }
.ticketing-day-picker strong { overflow: hidden; max-width: 100%; color: var(--ink); font-size: 16px; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.ticketing-day-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ticketing-day-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; color: var(--muted); font-size: 13px; }
.ticketing-day-summary button { min-height: 36px; padding: 0 7px; border: 0; background: transparent; color: var(--primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.ticketing-timeline { display: grid; gap: 12px; margin-top: 4px; }
.ticketing-slot { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 8px; min-width: 0; }
.ticketing-slot-time { padding-top: 13px; color: var(--ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.35; }
.ticketing-schedule .ticketing-entry { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ticketing-card { --ticketing-poster-size:56px; min-width: 0; padding: 12px; }
.ticketing-card-main { display: grid; grid-template-columns: 56px minmax(0, 1fr) 9px; align-items: start; gap: 9px; min-width: 0; color: var(--ink); text-decoration: none; }
.ticketing-card-poster { display: grid; place-items: center; width: 56px; height: 74px; overflow: hidden; border-radius: 7px; background: #f1eefb; color: var(--primary); font-size: 23px; }
.ticketing-card-poster img { width: 100%; height: 100%; object-fit: cover; }
.ticketing-card-poster svg { width: 25px; height: 25px; }
.ticketing-card-copy { display: grid; gap: 3px; min-width: 0; }
.ticketing-card-copy strong { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.36; overflow-wrap: anywhere; }
.ticketing-card-copy span { color: #3d4841; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.ticketing-card-copy small { color: var(--muted); font-size: 12px; line-height: 1.38; }
.ticketing-card-arrow { color: var(--primary); font-size: 20px; line-height: 1; }
.ticketing-card-session { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); color: #3d4841; font-size: 12px; line-height: 1.4; }
.ticketing-card-status { padding: 3px 7px; border-radius: 5px; background: #f2f5f1; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.ticketing-card-status.is-open { background: #eaf8d5; color: #167c55; }
.ticketing-card-sites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ticketing-card-sites a, .ticketing-card-sites span { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--primary); font-size: 12px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.ticketing-card-sites span { color: var(--muted); }
.ticketing-card-media { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ticketing-card-media button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; max-width: 100%; padding: 4px 8px 4px 4px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; }
.ticketing-card-media button img { width: 32px; height: 32px; border-radius: 4px; object-fit: cover; }
.ticketing-card-media a { display: inline-flex; align-items: center; min-height: 40px; color: var(--primary); font-size: 12px; font-weight: 700; text-decoration: none; }
.ticketing-card-deadline { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.45; }
.ticketing-card-deadline .registration-clock { margin-top: 2px; color: var(--primary); }
.ticketing-schedule .ticketing-actions { padding: 0 10px 5px; }
.ticketing-schedule .ticketing-edit-form { margin: 6px 10px 10px; }
.ticketing-day-empty { padding: 20px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ticketing-day-empty strong { display: block; color: var(--ink); font-size: 16px; }
.ticketing-day-empty p { margin: 5px 0 12px; color: var(--muted); font-size: 13px; }
.ticketing-day-empty > div { display: flex; flex-wrap: wrap; gap: 7px; }
.ticketing-day-empty button { min-height: 40px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--primary); font-size: 13px; font-weight: 700; cursor: pointer; }
@media (max-width: 350px) { .ticketing-slot { grid-template-columns: 60px minmax(0, 1fr); gap: 6px; } .ticketing-card { --ticketing-poster-size:48px; padding: 10px; } .ticketing-card-main { grid-template-columns: 48px minmax(0, 1fr) 8px; gap: 7px; } .ticketing-card-poster { width: 48px; height: 65px; } .ticketing-card-copy strong { font-size: 14px; } }
.production-overview span, .session-card-stats span, .request-overview span {
  border: 1px solid var(--line); border-radius: 9px; background: #f2f5f1; color: #3d4841; font-size: 13px;
}
.session-card-progress, .session-card-link { color: #167c55; font-size: 13px; }
.request-head { padding: 16px; }
.request-head .request-meta { color: var(--muted); font-size: 13px; }
.request-ticketing { border-radius: 8px; background: #f1eefb; color: var(--primary); font-size: 13px; }
.request-overview strong { font-size: 17px; }
.request-stage { border-color: #ded4f2; border-left-color: var(--primary); border-radius: 12px; background: #f1eefb; }
.request-stage-active, .request-my-status { border-color: #bde9d0; border-left-color: var(--green); background: #eaf8d5; }
.request-stage-label, .request-stage-next, .request-stage p { color: #3d4841; font-size: 13px; }
.join-panel > summary { background: #eaf8d5; color: #167c55; }
.join-panel > summary span { color: #3d4841; font-size: 13px; }
.priority-panel > summary, .request-info-panel > summary, .seeya-picker > summary { min-height: 48px; font-size: 15px; }
.priority-panel > summary span, .request-info-panel > summary span, .seeya-picker > summary span { color: var(--muted); font-size: 13px; }
.request-info-card { border-color: var(--line); background: #fff; }
.request-info-image-button { background: #f2f5f1; }
.notice-green { border-color: #bde9d0; background: #eaf8d5; color: #167c55; }
.notice-magenta { border-color: #ded4f2; background: #f1eefb; color: var(--primary); }
.notice-empty { min-height: 0; padding: 24px 16px; text-align: left; justify-items: start; }
.notice-empty > span, .empty > .icon { display: none; }
.notice-empty h2 { font-size: 16px; }
.notice-empty p, .notice-post p { color: #3d4841; font-size: 15px; line-height: 23px; }
.notice-post h2 { font-size: 16px; }
.star-wallet, .ranking-star-wallet { border-color: var(--line); background: #fff; }
.mine-score { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.mine-score .stat-number { color: var(--primary); font-size: 22px; }
.mine-score .stat-symbol { color: #ffdb13; font-size: 22px; }
.activity-row, .history-row, .admin-member-row { border-bottom-color: var(--line); }
.activity-row-main strong, .history-row strong, .admin-member-row strong { color: var(--ink); font-size: 15px; }
.activity-seat, .score-kind { border-radius: 7px; background: #f1eefb; color: var(--primary); }
.history-row .point.positive { color: #167c55; }
.search-result { border-bottom-color: var(--line); }
.search-result strong { font-size: 15px; }
.search-result span { color: var(--muted); font-size: 13px; }
.admin-jumps { gap: 8px; margin: 0 0 20px; }
.shell .admin-jumps button { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--primary); font-size: 13px; font-weight: 700; }
.admin-edit-item { border-top-color: var(--line); }
.admin-edit-item summary { min-height: 48px; align-content: center; }
.admin-edit-item summary span, .admin-member-row span { color: var(--muted); font-size: 13px; }
.admin-form { gap: 12px; }

@media (max-width: 350px) {
  html:has(.shell) { scrollbar-width: none; }
  html:has(.shell)::-webkit-scrollbar { display: none; }
  .site-pass-header .site-pass-tools { grid-template-columns: minmax(0, 1fr) 44px; }
  .site-pass-header .site-pass-tools.has-admin { grid-template-columns: minmax(0, 1fr) 44px 44px; }
  .site-pass-header .site-pass-search input { font-size: 13px; }
  .shell:not(.is-request-page) .calendar-card {
    width: calc(100% + 32px); margin-left: -16px; padding-right: 4px; padding-left: 4px;
    border-right: 0; border-left: 0; border-radius: 0;
  }
  .pass-now > a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pass-live-dot { animation: none; }
}
/* Progressive opening registration; retain the shared mobile frame. */
.shell.is-request-page .site-pass-header { display: block; padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.shell.is-request-page .bottom-nav { display: grid; }
.shell.is-request-page .main { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.shell.is-request-page .request-flow-header { background: var(--surface); }
.opening-registration { padding: 18px; }
.opening-registration form, .opening-sites { display: grid; gap: 18px; }
.opening-step + .opening-step { padding-top: 18px; border-top: 1px solid var(--line); }
.opening-step .field { margin-bottom: 0; }
.opening-registration [hidden], .ticket-quick-form [hidden] { display: none !important; }
.opening-date-picker, .session-date-picker { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.opening-date-picker > summary, .session-date-picker > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 10px 12px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.opening-date-picker > summary::-webkit-details-marker, .session-date-picker > summary::-webkit-details-marker { display: none; }
.opening-date-picker > summary > span:last-child, .session-date-picker > summary > span:last-child { color: var(--primary); }
.opening-date-picker .ticket-calendar, .session-date-picker .ticket-calendar { padding: 10px; border-top: 1px solid var(--line); }
.opening-site { display: grid; gap: 12px; }
.opening-site + .opening-site { padding-top: 18px; border-top: 1px solid var(--line); }
.opening-site-name { display: flex; align-items: end; gap: 8px; }
.opening-site-name .field { flex: 1; min-width: 0; }
.opening-site-confirm { min-height: 48px; padding: 0 12px; border: 1px solid var(--primary); background: #f1eefb; color: var(--primary); white-space: nowrap; }
.opening-site[data-confirmed=true] .opening-site-confirm { border-color: #a3dfbd; background: #eaf8d5; color: #167c55; }
.opening-site-remove { width: 44px; min-height: 48px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-size: 22px; }
.opening-site-map { display: grid; gap: 10px; padding: 14px; background: #f7f8f7; border: 1px solid var(--line); border-radius: 10px; }
.opening-site-map .request-upload-preview img { max-width: 100%; max-height: 180px; object-fit: contain; border-radius: 6px; }
.opening-finish .ticket-quick-confirm { margin-bottom: 16px; }
.ticket-quick-form .request-sticky-action { position: static; width: 100%; margin: 16px 0 0; padding: 0; border: 0; }
.ticket-quick-form .ticket-session-remove { min-width: 40px; color: var(--primary); font-size: 22px; }
.ticket-quick-form .ticket-time-hint { display: none; }
.ticket-quick-form .ticket-session-time-count { grid-template-columns: minmax(0,1fr) 90px; }
.ticket-quick-form .ticket-calendar-hint { padding: 0 10px 10px; }
.ticket-quick-form .ticket-session-date { white-space: normal; font-size: 12px; }
.registration-clock { font-variant-numeric: tabular-nums; }
@media(max-width:350px) { .opening-registration { padding: 14px; } .opening-site-name { gap: 6px; } .opening-site-confirm { padding: 0 9px; } }
/* 공연별 티켓팅 일정과 작은 자료 썸네일 */
.ticketing-sessions { margin-top: 11px; }
.ticketing-session { padding: 10px 0; border-top: 1px solid var(--line); }
.ticketing-session .ticketing-card-session { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0; padding: 0; border: 0; }
.ticketing-card-session > span { min-width: 0; overflow-wrap: anywhere; }
.ticketing-card-session button.ticketing-card-status { min-height:28px; padding:3px 8px; border:1px solid var(--line); background:transparent; cursor:pointer; }
.ticketing-card-session button.ticketing-card-status.is-open { border-color:#167c55; color:#167c55; }
.ticketing-card-session button.ticketing-card-status:disabled { cursor: default; opacity: 1; }
.ticketing-card > .ticketing-card-deadline { display:flex; align-items:center; gap:6px; margin-top:10px; padding:0; border:0; font-size:11px; white-space:nowrap; }
.ticketing-card > .ticketing-card-deadline .registration-clock { display: inline-flex; margin: 0; padding: 3px 6px; border-radius: 5px; background: #f2eefc; color: var(--primary); font-size: 11px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ticketing-card > .ticketing-card-deadline .registration-clock.expired { background: #f2f3f2; color: var(--muted); }
.ticketing-session .ticketing-actions { justify-content: flex-end; margin-top: 5px; padding: 0; }
.ticketing-session .ticketing-actions button { min-height: 30px; font-size: 11px; }
.ticketing-materials { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.ticketing-materials-heading { display: flex; justify-content: space-between; gap: 8px; color: var(--ink); font-size: 12px; }
.ticketing-materials-heading span { color: var(--muted); }
.ticketing-card-media { display: flex; flex-wrap: nowrap; gap: 9px; overflow-x: auto; margin-top:0; padding:2px 0; scrollbar-width:none; }
.ticketing-card-media button { display: flex; flex: 0 0 var(--ticketing-poster-size); flex-direction: column; align-items: stretch; gap: 5px; min-height: 0; max-width: none; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; }
.ticketing-card-media button img { width: var(--ticketing-poster-size); height: var(--ticketing-poster-size); border: 1px solid var(--line); border-radius: 7px; background: #faf9f5; object-fit: cover; object-position: center; }
.ticketing-card-media button span { font-size: 10px; font-weight: 400; line-height: 1.35; color: var(--muted); }
.ticketing-card-media::-webkit-scrollbar { display:none; width:0; height:0; }
.ticketing-casting-link { display: inline-block; margin-top: 8px; color: var(--primary); font-size: 12px; font-weight: 700; text-decoration: none; }

.ticketing-daybar > .ticketing-day-picker { display:flex; justify-content:center; align-items:center; gap:8px; padding:0 4px; font-size:16px; }
.ticketing-day-picker svg { width:17px; height:17px; flex:none; color:var(--primary); }
.ticketing-slot-date { display:block; font-size:13px; white-space:nowrap; }
.ticketing-date-dialog { position:fixed; inset:0; width:min(340px,calc(100% - 32px)); margin:auto; padding:20px; border:1px solid var(--line); border-radius:18px; background:#fff; color:var(--ink); box-shadow:0 18px 60px #00000024; }
.ticketing-date-dialog::backdrop { background:#00000040; }
.ticketing-date-summary { margin:0 0 14px; color:var(--primary); font-size:13px; font-weight:600; }
.ticketing-date-dialog .datetime-select-row select { appearance:auto; background:#fff; padding:7px 10px; }
.ticketing-date-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:22px; }
.ticketing-date-actions button { min-height:38px; padding:8px; border:0; background:transparent; color:var(--primary); font-size:13px; cursor:pointer; }
.ticketing-date-actions button:first-child { margin-right:auto; font-weight:700; }

.ticketing-card-title { color:var(--ink); text-decoration:none; }
.ticketing-card-copy .ticketing-card-sites { margin-top:3px; gap:5px; }
.ticketing-card-copy .ticketing-card-sites a,.ticketing-card-copy .ticketing-card-sites span { min-height:28px; padding:4px 7px; font-size:11px; }
.ticketing-card-arrow { text-decoration:none; }
.ticketing-status-tabs { display:flex; gap:8px; margin-top:12px; }
.ticketing-status-tabs button { flex:1; min-height:40px; padding:8px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--muted); font-size:13px; cursor:pointer; }
.ticketing-status-tabs button[aria-selected="true"] { border-color:var(--primary); background:#f1eefb; color:var(--primary); font-weight:700; }

.material-carousel { position:relative; min-width:0; margin-top:8px; }
.material-carousel .material-carousel-strip { overscroll-behavior-x:contain; scroll-behavior:smooth; scrollbar-width:none; }
.material-carousel .material-carousel-strip::-webkit-scrollbar { display:none; width:0; height:0; }
.material-carousel-arrow { display:none; position:absolute; z-index:2; top:50%; width:28px; height:28px; min-height:0; padding:5px; border:1px solid #bdc5c0; border-radius:50%; background:#fffffff2; color:#3d4841; box-shadow:0 1px 4px #171b1920; cursor:pointer; transform:translateY(-50%); }
.material-carousel-arrow svg { display:block; width:16px; height:16px; }
.material-carousel-prev { left:2px; }
.material-carousel-next { right:2px; }
.material-carousel-next svg { transform:rotate(180deg); }
.material-carousel-arrow:disabled { color:#a7b0aa; cursor:default; box-shadow:none; }
.material-carousel-arrow:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
@media (any-hover:hover) and (any-pointer:fine) { .material-carousel-arrow { display:block; } }
.material-carousel-arrow[hidden] { display:none; }
@media (prefers-reduced-motion:reduce) { .material-carousel .material-carousel-strip { scroll-behavior:auto; } }

.ticketing-session-copy { display:grid; gap:4px; }
.ticketing-session-copy small { color:var(--muted); font-size:11px; line-height:1.4; }
.shell .pass-home { grid-template-columns:minmax(0,1fr); gap:24px; }
.pass-home > .pass-feature { grid-template-columns:minmax(0,1fr); min-width:0; }
.shell.is-home-proposal .pass-now { padding:2px 10px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.pass-home .pass-now-links > a { min-height:52px; white-space:normal; }
.pass-home .pass-now-links > a + a { padding-left:12px; border-left:1px solid var(--line); }
.pass-home .pass-now-links > a > span:not(.pass-now-arrow) { line-height:1.5; }
.pass-home > .home-opening-performances { padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.pass-home > .pass-ranking { grid-template-columns:minmax(0,1fr); padding-top:16px; }
@media (max-width:350px) {
  .shell.is-home-proposal .pass-now { padding-inline:8px; }
  .pass-home .pass-now-links > a + a { padding-left:8px; }
  .pass-home > .home-opening-performances { padding:12px; }
}

/* Keep phone inputs readable without Safari focus zoom; navigation returns after typing. */
@media (max-width:640px) {
  :is(#app,dialog,.request-modal) :is(input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=file]):not([type=range]):not([type=color]),textarea,select) { font-size:16px!important; }
  .mobile-keyboard-open .bottom-nav { display:none!important; }
}

/* Keep mode switching available on every authenticated page. */
#app .admin-mode-banner { pointer-events: auto; gap: 12px; background: #171b19; }
#app .admin-mode-banner .banner-view-toggle {
  width: auto; min-height: 28px; max-width: 160px; padding: 2px 24px 2px 8px;
  border: 1px solid #777; border-radius: 4px; background-color: #171b19; color: #fff;
  font: inherit; letter-spacing: 0; cursor: pointer;
}
#app .admin-mode-banner .banner-view-toggle:focus-visible { outline: 2px solid #d6f98a; outline-offset: 1px; }

html:has(.shell[data-active-view-mode="general-member"]) dialog[open]::before { content: '일반멤버보기'; }
