/* 웹 주최자 화면(11-06 시안 WebSignIn·WebHostCreate·WebHostLive·WebHostTime)의 수치를 그대로 옮겼다. */
:root {
  --ink: #1d2230; --muted: #5b6170; --line: #e4e6ea; --line-strong: #d5d8de; --field: #b9bdc7;
  --page: #f5f6f8; --card: #ffffff; --accent: #6558f5; --accent-soft: #f1efff; --accent-line: #d9d4ff;
  --link: #4a36d9; --link-hover: #3a2ab0; --ok: #1f7a4d; --ok-dot: #2f9e5b; --ok-soft: #eef8f1;
  --danger: #d14034; --danger-ink: #b42318; --row-line: #f0f1f4;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column; background: var(--page); color: var(--ink);
  word-break: keep-all; overflow-wrap: anywhere;
  font-family: Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
}
[hidden] { display: none !important; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; line-height: 1.5; }
.muted.small { font-size: 13px; }

.host-header { background: var(--card); border-bottom: 1px solid var(--line); }
.host-header-inner { max-width: 1200px; margin: 0 auto; padding: 10px clamp(16px, 4vw, 32px); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 64px; }
body.signin .host-header-inner { padding-block: 14px; min-height: 0; }
.host-brand { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.host-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.host-nav a { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; }
.host-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.host-remaining { margin-left: auto; font-size: 14px; color: var(--muted); }
.host-account { position: relative; }
.host-remaining[hidden] + .host-account { margin-left: auto; }
.host-avatar { width: 32px; height: 32px; border-radius: 16px; border: 0; background: var(--accent-line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; padding: 0; }
.host-account-menu { position: absolute; right: 0; top: 40px; z-index: 5; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 220px; box-shadow: 0 8px 24px rgba(29, 34, 48, .12); font-size: 14px; }

/* 로그인 */
.host-center { flex-grow: 1; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.signin-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.signin-card h1 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; }
.signin-card .lead { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.55; }
.signin-card .small { color: var(--muted); }
.signin-card .terms { min-height: 44px; display: inline-flex; align-items: center; }
.google-button { min-height: 52px; border: 1px solid var(--field); border-radius: 26px; background: var(--card); font-size: 16px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 10px; }
.google-mark { width: 20px; height: 20px; border-radius: 10px; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.signin-status, .form-status { margin: 0; font-size: 14px; color: var(--muted); }
.signin-status:empty, .form-status:empty { display: none; }
.signin-status.error, .form-status.error { color: var(--danger-ink); }

/* 공통 본문 */
.host-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 32px) 40px; display: flex; flex-direction: column; gap: 16px; }
.host-main.narrow { max-width: 880px; padding-bottom: 48px; }
.host-main h1 { margin: 0; font-size: 26px; font-weight: 700; }
#create-form { display: flex; flex-direction: column; gap: 16px; }
.sec { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.sec p { margin: 0; }
.f { display: flex; flex-direction: column; gap: 8px; }
.f > span { font-size: 14px; font-weight: 600; }
.in { min-height: 48px; border: 1px solid var(--field); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 15px; background: var(--card); color: var(--ink); width: 100%; }
.in[aria-invalid="true"] { border-color: var(--danger); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--card); font-size: 14px; color: var(--ink); }
.chip[aria-pressed="true"] { border: 2px solid var(--accent); background: var(--accent-soft); font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); }
.hint.lg { font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; min-height: 44px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.primary { min-height: 48px; padding: 0 24px; border: 0; border-radius: 24px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; }

/* 행사 진행 */
.btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--card); font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.btn.danger { border: 0; background: var(--danger); color: #fff; font-weight: 600; }
.btn.close-mic { border-color: var(--danger); color: var(--danger-ink); }
.btn.open-mic { border: 0; background: var(--accent); color: #fff; font-weight: 600; }
.live-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.live-summary { display: flex; flex-direction: column; gap: 4px; }
.live-state { font-size: 13px; color: var(--muted); font-weight: 600; }
.live-state.open { color: var(--ok); }
.live-summary .small b { color: var(--ok); }
.live-summary .small b.paused { color: var(--danger-ink); }
.live-summary .small b.waiting { color: var(--muted); }
.live-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: #fff5f4; border: 1px solid #f3c7c2; border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.confirm span { flex-grow: 1; }
.live-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.panel h2 { margin: 0; font-size: 16px; }
.panel.stage { flex: 999 1 520px; }
.panel.hands { flex: 1 1 320px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.toggle { display: flex; gap: 6px; align-items: center; font-size: 13px; min-height: 44px; }
.toggle input { width: 18px; height: 18px; margin: 0; }
.list { display: flex; flex-direction: column; gap: 8px; }
.it { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-size: 15px; flex-wrap: wrap; }
.it.on { background: var(--ok-soft); }
.it.off { background: var(--page); }
.it.hand { border: 1px solid var(--line); }
.it .dot { width: 10px; height: 10px; border-radius: 5px; background: var(--ok-dot); flex: none; }
.it.off .dot { background: #b9bdc7; }
.it .who { flex-grow: 1; min-width: 0; overflow-wrap: anywhere; }
.list .empty { margin: 0; font-size: 14px; color: var(--muted); padding: 10px 12px; }
.note { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.share-overlay { position: fixed; inset: 0; z-index: 10; background: rgba(29, 34, 48, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-card { background: var(--card); border-radius: 16px; padding: 28px 24px; width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
.share-card h2 { margin: 0; font-size: 22px; }
.qr-slot { aspect-ratio: 1; width: min(320px, 100%); margin: 0 auto; border-radius: 12px; display: block; background: #fff; image-rendering: pixelated; }
.share-link { margin: 0; font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.share-link.small { font-size: 14px; font-weight: 500; color: var(--muted); }
.share-card .btn { align-self: center; }

/* 내 시간 */
.wallet { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wallet-copy .small { line-height: normal; }
.wallet-copy { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.wallet-amount { font-size: 32px; font-variant-numeric: tabular-nums; }
.wallet .primary { padding: 0 22px; }
.panel.usage { padding: 8px 20px 12px; gap: 0; }
.panel.usage h2 { margin: 12px 0 4px; }
.r { display: grid; grid-template-columns: minmax(90px, 120px) minmax(0, 1fr) minmax(80px, 110px); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--row-line); font-size: 14px; font-variant-numeric: tabular-nums; }
.r.head { color: var(--muted); }
.r span { overflow-wrap: anywhere; }
.host-main > p.muted { margin: 0; }

/* 내 행사 목록 · 계정 */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.list-head .primary { text-decoration: none; display: inline-flex; align-items: center; }
.events { display: flex; flex-direction: column; gap: 16px; }
.events .sec h2 { font-size: 15px; margin: 0 0 4px; }
.event-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.event-row:first-of-type { border-top: 0; }
.event-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 240px; }
.event-title { font-weight: 700; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.event-title:hover { text-decoration: underline; }
.event-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.event-actions a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.host-account-menu a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.danger-zone h2 { font-size: 15px; margin: 0; }
.records-lines { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.record-line { margin: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.invite { margin-top: 16px; }
.invite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.invite-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.invite-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.invite-link code { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; font-size: 13px; background: var(--bg, #f4f5f7); padding: 8px 10px; border-radius: 10px; }
.invite-link .in { flex: 1 1 160px; min-width: 0; }
.invite-qr { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.invite-qr img { border-radius: 8px; background: #fff; image-rendering: pixelated; }
.invite-qr a.btn { text-decoration: none; }
