/* DBO LIVE SIMULATOR — Creator room. Mobile-first, modelled on the TikTok LIVE host layout. */
:root {
  --red: #fe2c55;
  --red-press: #e0264b;
  --text: #fff;
  --muted: rgba(255, 255, 255, .72);
  --glass: rgba(0, 0, 0, .28);
  --glass-strong: rgba(22, 24, 35, .62);
  --sheet: #f8f8f8;
  --sheet-card: #fff;
  --ink: #161823;
  --ink-2: rgba(22, 24, 35, .62);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow-text: 0 1px 2px rgba(0, 0, 0, .45), 0 0 1px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0b0b0f; color: var(--text); font-family: "Inter", -apple-system, "SF Pro Text", Roboto, "Segoe UI", Arial, sans-serif; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }

.ms { font-family: "Material Symbols Rounded"; font-weight: 400; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-smoothing: antialiased; font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24; }
.ms.fill { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }

/* ---------- Phone frame ---------- */
.phone { position: relative; width: min(100vw, 430px); height: 100dvh; margin: 0 auto; overflow: hidden; background: #000; isolation: isolate; }
@media (min-width: 600px) {
  body { display: grid; place-items: center; background: radial-gradient(circle at 50% 20%, #232536, #0b0b0f 70%); }
  .phone { height: min(100dvh, 932px); border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06); }
}

.cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #111; z-index: 0; transition: filter .25s ease; }
.cam.mirror { transform: scaleX(-1); }
.cam.beauty { filter: brightness(1.08) contrast(.94) saturate(1.12); }
.cam.weak { filter: blur(3px) saturate(.8); }
.cam-freeze { z-index: 1; }
.cam-fallback { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(circle at 30% 20%, #3a2a55, #111 70%); text-align: center; padding: 0 32px 200px; }
.cam-fallback b { font-size: 18px; }
.cam-fallback .primary-btn { margin-top: 4px; min-width: 170px; border-radius: 24px; }
.cam-tip { color: rgba(255, 255, 255, .55); font-size: 12px; line-height: 1.45; max-width: 290px; }
.screen[hidden] ~ .cam-fallback, .phone[data-screen="live"] .cam-fallback { padding-bottom: 0; }
.cam-fallback .ms { font-size: 48px; opacity: .6; }
.cam-fallback p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.screen { position: absolute; inset: 0; z-index: 2; }
#screen-prepare { pointer-events: none; }
#screen-prepare > * { pointer-events: auto; }

/* ---------- Shared controls ---------- */
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; text-shadow: var(--shadow-text); }
.icon-btn .ms { font-size: 30px; }
.icon-btn.dark { color: var(--ink); text-shadow: none; }
.glass-pill { height: 40px; padding: 0 16px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .34); backdrop-filter: blur(8px); font-weight: 600; font-size: 14.5px; max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass-pill .ms { font-size: 20px; }
.glass-round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .34); backdrop-filter: blur(8px); }
.glass-round .ms { font-size: 21px; }
.primary-btn { height: 46px; padding: 0 22px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.primary-btn:active { background: var(--red-press); }
.primary-btn.wide, .danger-btn.wide, .ghost-btn.wide { width: 100%; }
.danger-btn { height: 46px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 700; }
.ghost-btn { height: 46px; padding: 0 20px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; text-decoration: none; }
.ghost-btn.dark { background: rgba(22, 24, 35, .06); color: var(--ink); }

/* ---------- Prepare ---------- */
.prep-top { position: absolute; top: calc(14px + var(--safe-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; }
.prep-top .icon-btn { margin-right: auto; }
.promo-card { position: absolute; top: calc(66px + var(--safe-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(60, 60, 70, .52); backdrop-filter: blur(10px); }
.promo-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #7df3ff, #3d5bff 60%, #1b1464); flex: none; }
.promo-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.promo-copy b { font-size: 16px; }
.promo-copy span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-close { align-self: flex-start; margin-left: auto; color: #fff; }
.promo-close .ms { font-size: 20px; }

.prep-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 12px calc(4px + var(--safe-bottom)); background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .3) 55%, transparent); }
.tools-grid { display: grid; grid-template-columns: repeat(5, 1fr); row-gap: 14px; padding: 12px 0 14px; }
.tool { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; text-shadow: var(--shadow-text); }
.tool .ms { font-size: 30px; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 40; }
.tool.on .ms { color: #ffd84d; }
.tool .dot { position: absolute; top: -2px; right: 18%; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.effects-thumb { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #ff9ec4, #8fb2ff); position: relative; overflow: hidden; }
.effects-thumb::after { content: ""; position: absolute; left: 7px; right: 7px; top: 6px; bottom: -4px; border-radius: 12px 12px 0 0; background: #1b1b22; box-shadow: inset 0 8px 0 #f1d3c0; }

.prep-card { border-radius: 18px; background: rgba(40, 40, 48, .56); backdrop-filter: blur(12px); padding: 14px 14px 12px; }
.prep-row { display: flex; align-items: center; gap: 10px; }
.prep-cover { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.prep-title { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-weight: 600; font-size: 17px; }
.prep-title::placeholder { color: var(--muted); }
.prep-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .3); }
.prep-goal.on .ms { color: #20c997; }
.prep-goal { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.prep-goal .ms { font-size: 20px; }
.prep-scenario { width: 100%; margin: 12px 0 14px; display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; text-align: left; }
.prep-scenario .ms { font-size: 21px; }
.prep-scenario-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prep-scenario .chevron { opacity: .7; }
.go-live { width: 100%; height: 50px; border-radius: 26px; background: var(--red); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: .2px; box-shadow: 0 6px 18px rgba(254, 44, 85, .35); }
.go-live:active { transform: scale(.985); background: var(--red-press); }
.go-live[disabled] { opacity: .6; }

.mode-tabs { display: flex; justify-content: center; gap: 22px; padding: 16px 0 10px; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; }
.mode { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .55); }
.mode .ms { font-size: 20px; }
.mode.active { color: #fff; }
.bottom-nav { display: flex; justify-content: center; gap: 44px; padding: 10px 0 8px; font-weight: 700; font-size: 16px; color: rgba(255, 255, 255, .55); letter-spacing: .5px; background: #000; margin: 0 -12px; }
.bottom-nav .active { color: #fff; }

/* ---------- Countdown ---------- */
.countdown { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(0, 0, 0, .25); }
.countdown span { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: rgba(40, 40, 46, .62); font-size: 76px; font-weight: 600; animation: cd-pop 1s ease-out both; }
@keyframes cd-pop { 0% { transform: scale(1.25); opacity: 0; } 20% { transform: scale(1); opacity: 1; } 85% { opacity: 1; } 100% { transform: scale(.92); opacity: 0; } }

/* ---------- LIVE room ---------- */
.shade-top { position: absolute; left: 0; right: 0; top: 0; height: 170px; background: linear-gradient(to bottom, rgba(0, 0, 0, .42), transparent); pointer-events: none; }
.shade-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent); pointer-events: none; }

.live-top { position: absolute; top: calc(12px + var(--safe-top)); left: 10px; right: 8px; display: flex; align-items: center; gap: 8px; }
.host-chip { display: flex; align-items: center; gap: 7px; height: 40px; padding: 3px 14px 3px 3px; border-radius: 22px; background: var(--glass); max-width: 52%; }
.host-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid rgba(255, 255, 255, .5); }
.host-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.host-copy b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: var(--shadow-text); }
.host-copy > span { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; color: rgba(255, 255, 255, .92); }
.heart-mini { font-size: 13px !important; }
.live-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top3 { display: flex; flex-direction: row-reverse; }
.top3-item { position: relative; width: 32px; height: 32px; margin-left: -8px; }
.top3-item img { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #ffd84d; object-fit: cover; background: #333; }
.top3-item:nth-child(2) img { border-color: #cfd6e2; }
.top3-item:nth-child(3) img { border-color: #e9a36b; }
.top3-item b { position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); font-size: 8.5px; font-weight: 800; padding: 0 3px; border-radius: 6px; background: #ffb000; color: #fff; white-space: nowrap; line-height: 12px; }
.top3-item:nth-child(2) b { background: #9aa6b8; }
.top3-item:nth-child(3) b { background: #d97a3a; }
.viewer-pill { min-width: 38px; height: 32px; padding: 0 10px; border-radius: 16px; display: grid; place-items: center; background: var(--glass); font-weight: 700; font-size: 13.5px; }

.live-status { position: absolute; top: calc(58px + var(--safe-top)); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; align-items: center; pointer-events: none; }
.sim-tag { font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 2px 7px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .35); color: #fff; }
.live-clock { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: rgba(0, 0, 0, .35); font-variant-numeric: tabular-nums; }
.live-clock i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.live-chips { position: absolute; top: calc(84px + var(--safe-top)); left: 10px; right: 8px; display: flex; gap: 8px; }
.chip { height: 32px; padding: 0 12px; border-radius: 16px; display: inline-flex; align-items: center; gap: 6px; background: var(--glass); font-size: 13px; font-weight: 600; white-space: nowrap; min-width: 0; overflow: hidden; }
.chip-ic { font-size: 14px; }
.chip-goal { background: linear-gradient(90deg, rgba(103, 72, 255, .75), rgba(0, 0, 0, .28)); padding-left: 4px; }
.chip-goal img { width: 26px; height: 26px; }
.chip-goal.done { background: linear-gradient(90deg, rgba(255, 176, 0, .85), rgba(0, 0, 0, .28)); }
.chip-event { margin-left: auto; padding-right: 3px; }
.chip-orb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff0c2, #ff9fb8 45%, #8a5cff); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }

.wish-panel { position: absolute; top: calc(152px + var(--safe-top)); right: 8px; width: 46%; max-width: 200px; border-radius: 14px; background: rgba(22, 24, 35, .4); backdrop-filter: blur(5px); padding: 10px 10px 4px; }
.wish-timer { text-align: center; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.wish-rows { display: flex; flex-direction: column; gap: 4px; max-height: 176px; overflow: hidden; }
.wish-row { display: flex; align-items: center; gap: 10px; padding: 3px 2px; border-radius: 8px; transition: background .3s; }
.wish-row.hit { background: rgba(254, 44, 85, .35); }
.wish-ic { position: relative; width: 32px; height: 32px; flex: none; }
.wish-ic img { width: 32px; height: 32px; }
.wish-ic b { position: absolute; left: -2px; bottom: -3px; min-width: 18px; padding: 0 3px; font-size: 11px; font-weight: 800; text-align: center; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.wish-row span { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: var(--shadow-text); }
.wish-toggle { width: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .8); }
.wish-toggle .ms { font-size: 20px; }
.wish-panel.collapsed .wish-rows { max-height: 0; }
.wish-panel.collapsed .wish-toggle .ms { transform: rotate(180deg); }

/* comments */
.comments { position: absolute; left: 10px; right: 76px; bottom: calc(66px + var(--safe-bottom)); height: 34%; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%); mask-image: linear-gradient(to bottom, transparent, #000 22%); }
.comments-inner { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; }
.cm { display: flex; gap: 8px; align-items: flex-start; animation: cm-in .22s ease-out both; }
@keyframes cm-in { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.cm-av { width: 32px; height: 32px; border-radius: 50%; flex: none; object-fit: cover; background: #444; }
.cm-body { min-width: 0; line-height: 1.25; text-shadow: var(--shadow-text); }
.cm-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cm-name { color: rgba(255, 255, 255, .78); font-size: 14.5px; font-weight: 600; }
.cm-text { font-size: 15.5px; font-weight: 700; word-break: break-word; margin-top: 1px; }
.cm.sys .cm-text, .cm.sys .cm-name { font-size: 15px; }
.cm.sys .cm-name { color: rgba(255, 255, 255, .85); font-weight: 600; }
.cm.sys.follow .cm-name { color: #ffe3ec; }
.cm.sys.share .cm-name { color: #dff3ff; }
.cm-kind { font-size: 17px; flex: none; }
.cm.sys.follow .cm-kind { color: #ff5c8a; }
.cm.sys.share .cm-kind { color: #5cc8ff; }
.cm-wave { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .22); font-size: 17px; }
.cm.system .cm-text { color: rgba(255, 255, 255, .92); font-size: 14px; font-weight: 600; }
.cm.host .cm-name { color: #fff; }
.cm.flag-toxic .cm-text, .cm.flag-policy_trap .cm-text { color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 2px; height: 17px; padding: 0 5px; border-radius: 4px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: none; line-height: 1; }
.badge-lvl { background: linear-gradient(90deg, #6b8cff, #4a63ff); }
.badge-lvl.l2 { background: linear-gradient(90deg, #3fd3c4, #1fa6a8); }
.badge-lvl.l3 { background: linear-gradient(90deg, #b07cff, #7d45ff); }
.badge-lvl.l4 { background: linear-gradient(90deg, #ffa24a, #ff6a2b); }
.badge-lvl.l5 { background: linear-gradient(90deg, #ff5f7e, #e0123f); }
.badge-lvl svg { width: 10px; height: 10px; }
.badge-fan { background: linear-gradient(90deg, #ff9a3c, #ff5b3a); }
.badge-rank { background: linear-gradient(90deg, #ff6b9a, #ff3f7a); }
.badge-host { background: rgba(255, 255, 255, .22); font-weight: 700; }
.new-msg { position: absolute; left: 12px; bottom: calc(70px + var(--safe-bottom)); padding: 4px 10px; border-radius: 12px; background: #fff; color: var(--red); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.new-msg .ms { font-size: 15px; }

/* gift lanes (small gifts) */
.gift-lanes { position: absolute; left: 0; right: 0; bottom: calc(66px + 34% + var(--safe-bottom)); height: 100px; pointer-events: none; }
.lane { position: absolute; left: 0; height: 44px; display: flex; align-items: center; animation: lane-in .28s cubic-bezier(.2, .9, .3, 1.2) both; }
.lane.out { animation: lane-out .3s ease-in both; }
.lane[data-lane="0"] { bottom: 50px; }
.lane[data-lane="1"] { bottom: 0; }
@keyframes lane-in { from { transform: translateX(-110%); } to { transform: none; } }
@keyframes lane-out { to { transform: translateY(-14px); opacity: 0; } }
.lane-pill { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 44px 0 4px; border-radius: 0 22px 22px 0; background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .12)); max-width: 220px; margin-left: 8px; border-radius: 22px; }
.lane-pill img.av { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.lane-copy { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.lane-copy b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.lane-copy span { font-size: 11.5px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.lane-gift { width: 48px; height: 48px; margin-left: -40px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.lane-count { margin-left: 4px; font-size: 30px; font-weight: 800; font-style: italic; letter-spacing: -1px; color: #fff; -webkit-text-stroke: 1px rgba(160, 60, 0, .7); text-shadow: 0 2px 0 #ff9b1a, 0 3px 6px rgba(0, 0, 0, .4); }
.lane-count small { font-size: 20px; margin-right: 1px; }
.lane-count.bump { animation: bump .22s ease-out; }
@keyframes bump { 0% { transform: scale(1.6); } 100% { transform: scale(1); } }

/* big gift overlay */
.big-gift { position: absolute; inset: 0; z-index: 8; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.big-gift .bg-dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255, 200, 80, .28), rgba(0, 0, 0, .55) 70%); animation: fade-in .4s ease both; }
.big-gift.medium .bg-dim { background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .12), transparent 60%); }
.big-gift.whale .bg-dim { background: radial-gradient(circle at 50% 45%, rgba(130, 90, 255, .45), rgba(0, 0, 0, .7) 72%); animation: fade-in .4s ease both, hue 3s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.big-gift .bg-art { position: relative; width: 62%; max-width: 280px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); animation: art-in 1s cubic-bezier(.2, .9, .3, 1.25) both, float 2.4s ease-in-out 1s infinite; }
.big-gift.medium .bg-art { width: 42%; }
.big-gift.whale .bg-art { width: 80%; max-width: 360px; }
@keyframes art-in { 0% { transform: translateY(60%) scale(.2) rotate(-18deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes float { 50% { transform: translateY(-10px) scale(1.03); } }
.big-gift .bg-glow { position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 220, 120, .0), rgba(255, 220, 120, .45), rgba(255, 220, 120, 0) 30%, rgba(255, 150, 200, .4) 50%, transparent 70%, rgba(120, 200, 255, .4) 85%, transparent); animation: spin 6s linear infinite, fade-in .6s ease both; -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%); mask-image: radial-gradient(circle, #000 35%, transparent 70%); }
.big-gift.medium .bg-glow { width: 60%; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.big-gift .bg-banner { position: absolute; top: 24%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border-radius: 24px; background: linear-gradient(90deg, rgba(255, 90, 140, .9), rgba(255, 170, 60, .9)); white-space: nowrap; animation: banner-in .5s .3s ease both; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.big-gift.whale .bg-banner { background: linear-gradient(90deg, rgba(120, 80, 255, .95), rgba(255, 90, 180, .95)); top: 16%; }
.big-gift .bg-banner img { width: 34px; height: 34px; border-radius: 50%; }
.big-gift .bg-banner b { font-size: 15px; }
.big-gift .bg-banner span { font-size: 13px; opacity: .92; }
@keyframes banner-in { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.big-gift .bg-name { position: absolute; bottom: 26%; left: 0; right: 0; text-align: center; font-size: 22px; font-weight: 800; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); animation: fade-in .5s .6s both; }
.big-gift .bg-name small { display: block; font-size: 13px; font-weight: 700; color: #ffd84d; margin-top: 2px; }
.particle { position: absolute; left: 50%; top: 48%; width: 10px; height: 10px; border-radius: 2px; animation: burst var(--dur, 1.6s) var(--delay, 0s) cubic-bezier(.1, .7, .3, 1) both; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); opacity: 0; } }
.big-gift.leaving { animation: fade-out .5s ease both; }
@keyframes fade-out { to { opacity: 0; } }
.phone.shake { animation: shake .5s ease-in-out 2; }
@keyframes shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

/* hearts */
.hearts { position: absolute; right: 12px; bottom: calc(60px + var(--safe-bottom)); width: 80px; height: 60%; pointer-events: none; }
.heart { position: absolute; bottom: 0; right: 14px; width: 30px; height: 30px; background-size: contain; background-repeat: no-repeat; animation: heart-up var(--dur, 2.4s) ease-out both; }
@keyframes heart-up {
  0% { transform: translate(0, 0) scale(.3); opacity: 0; }
  12% { opacity: 1; transform: translate(0, -20px) scale(1); }
  100% { transform: translate(var(--dx, -20px), -380px) scale(.8) rotate(var(--rot, -10deg)); opacity: 0; }
}

/* bottom bar */
.live-bottom { position: absolute; left: 10px; right: 10px; bottom: calc(10px + var(--safe-bottom)); display: flex; align-items: center; gap: 8px; }
.say { flex: 1; min-width: 0; height: 44px; border-radius: 22px; background: var(--glass); display: flex; align-items: center; padding: 0 12px 0 16px; }
.say input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 15.5px; }
.say input::placeholder { color: rgba(255, 255, 255, .8); }
.say-emoji { font-size: 26px !important; opacity: .9; }
.round { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--glass); display: grid; place-items: center; flex: none; }
.round .ms { font-size: 26px; transform: scaleX(-1); }
.round img { width: 30px; height: 30px; }
.round i { position: absolute; right: 2px; bottom: 2px; font-style: normal; font-size: 11px; font-weight: 800; text-shadow: 0 0 3px #000; }
.ic-guests { width: 26px; height: 22px; position: relative; }
.ic-guests::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: #ff3b8d; box-shadow: 0 13px 0 -1px #ff3b8d; }
.ic-guests::after { content: ""; position: absolute; left: 10px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #22d3ee; box-shadow: 0 11px 0 0 #22d3ee; }
.ic-gift { width: 28px; height: 26px; position: relative; background: linear-gradient(#ff4d7a, #ff2a55); border-radius: 4px; top: 3px; box-shadow: inset 0 7px 0 #ff86a5; }
.ic-gift::before { content: ""; position: absolute; left: 11px; top: -2px; width: 6px; height: 28px; background: #fff; opacity: .9; }
.ic-gift::after { content: ""; position: absolute; left: 4px; top: -9px; width: 20px; height: 10px; border-radius: 10px 10px 0 0; border: 3px solid #ff4d7a; border-bottom: 0; }

/* network */
.net-banner { position: absolute; top: 40%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 84%; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(22, 24, 35, .82); font-size: 13.5px; font-weight: 600; animation: fade-in .3s both; }
.net-banner .ms { color: #ffb020; font-size: 20px; }
.net-lost { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); }
.net-lost b { font-size: 18px; }
.net-lost span { color: var(--muted); font-size: 14px; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: spin .9s linear infinite; margin-bottom: 6px; }

/* ---------- Sheets ---------- */
.scrim { position: absolute; inset: 0; z-index: 30; background: rgba(0, 0, 0, .35); animation: fade-in .2s both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 31; max-height: 86%; overflow-y: auto; background: var(--sheet); color: var(--ink); border-radius: 18px 18px 0 0; padding: 10px 16px calc(18px + var(--safe-bottom)); animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1) both; }
.sheet-tall { min-height: 62%; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: rgba(22, 24, 35, .18); margin: 0 auto 10px; }
.sheet-title { margin: 6px 0 14px; font-size: 18px; font-weight: 700; }
.sheet-title.center, .center { text-align: center; }
.sheet-title.big { font-size: 27px; font-weight: 800; letter-spacing: -.3px; margin: 14px 0 8px; flex: 1; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head .sheet-title { flex: 1; }
.head-ic { font-size: 32px !important; color: var(--ink); cursor: pointer; }
.sheet-desc { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.list-card { width: 100%; display: flex; align-items: center; gap: 14px; background: var(--sheet-card); border-radius: 14px; padding: 16px; margin-bottom: 12px; font-size: 18px; font-weight: 500; text-align: left; }
.lc-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #f1f1f2; }
.lc-ic .ms { font-size: 28px; color: var(--ink); }
.tip-card { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--sheet-card); border-radius: 14px; padding: 14px; font-size: 14.5px; font-weight: 500; text-align: left; margin-bottom: 18px; }
.tip-emoji { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(135deg, #ff6fd8, #3813c2); flex: none; }
.wish-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 17px; }
.plus-btn .ms { font-size: 34px; color: var(--ink); }
.wish-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.wish-item { display: flex; align-items: center; gap: 14px; background: var(--sheet-card); border-radius: 14px; padding: 14px 16px; }
.wish-item .wi-ic { position: relative; width: 48px; height: 48px; flex: none; }
.wish-item .wi-gift { width: 44px; height: 44px; }
.wish-item .wi-coins { position: absolute; left: 0; bottom: -4px; display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 2px; border-radius: 10px; background: rgba(22, 24, 35, .7); color: #fff; font-size: 12px; font-weight: 700; }
.wish-item .wi-coins img { width: 13px; height: 13px; }
.wish-item .wi-name { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.wish-item .wi-name .ms { color: #20c997; font-size: 22px; }
.wish-item button .ms { font-size: 26px; color: var(--ink); }
.wish-empty { text-align: center; color: var(--ink-2); padding: 20px 0; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 10px 0 6px; }
.field { width: 100%; height: 46px; border-radius: 10px; border: 1px solid rgba(22, 24, 35, .14); background: #fff; color: var(--ink); padding: 0 12px; font-size: 16px; outline: none; }
.field:focus { border-color: var(--red); }
.row-actions { display: flex; gap: 10px; margin-top: 16px; }
.row-actions > * { flex: 1; }
.switch-row { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; font-size: 16px; font-weight: 500; }
.switch-row input { width: 44px; height: 26px; appearance: none; border-radius: 13px; background: #d6d6da; position: relative; cursor: pointer; transition: background .2s; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch-row input:checked { background: #20c997; }
.switch-row input:checked::after { transform: translateX(18px); }

.gift-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 8px 0 12px; }
.gift-grid.compact { max-height: 38vh; overflow-y: auto; }
.gift-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border-radius: 10px; border: 1.5px solid transparent; }
.gift-cell img.gi { width: 52px; height: 52px; }
.gift-cell b { font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-cell span { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.gift-cell span img { width: 12px; height: 12px; }
.gift-cell.selected { border-color: var(--red); background: rgba(254, 44, 85, .06); }
.sheet-dark { background: #1f1f25; color: #fff; }
.sheet-dark .gift-cell span { color: rgba(255, 255, 255, .6); }
.sheet-dark .gift-cell:active { background: rgba(255, 255, 255, .06); }
.gifts-tabs { display: flex; gap: 20px; padding: 6px 2px 8px; font-size: 15px; color: rgba(255, 255, 255, .5); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.gifts-tabs .active { color: #fff; }
.gift-foot { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .6); padding-top: 6px; }
.gift-foot .coin { width: 16px; height: 16px; }
.scenario-list { display: flex; flex-direction: column; gap: 10px; }
.scn { text-align: left; background: #fff; border-radius: 14px; padding: 14px 16px; border: 1.5px solid transparent; }
.scn.selected { border-color: var(--red); }
.scn b { display: block; font-size: 16px; margin-bottom: 3px; }
.scn span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.scn i { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--red); display: block; margin-top: 6px; }
.scenario-lib { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.scn-section { margin: 12px 2px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.scn-lib i { color: #0e7490; }
.scn-lib-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 4px; padding: 12px; border-radius: 12px; border: 1.5px dashed rgba(22, 24, 35, .2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.scn-lib-link .ms { font-size: 20px; color: #0e7490; }
.scn-card .lib-tag { font-size: 10.5px; font-weight: 700; color: #0e7490; background: #e0f7fa; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.scn-group-title { margin: 12px 2px 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.mini-btn.academy { color: #0e7490; border-color: rgba(14, 116, 144, .45); }
.preset-row button.academy { border-color: rgba(14, 116, 144, .45); color: #0e7490; }

/* warning modal */
.modal { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(0, 0, 0, .55); padding: 24px; animation: fade-in .2s both; }
.warn-card { width: 100%; max-width: 330px; background: #fff; color: var(--ink); border-radius: 16px; padding: 22px 20px 18px; text-align: center; animation: sheet-up .25s both; }
.warn-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: #fff3e0; }
.warn-icon .ms { font-size: 34px; color: #ff8a00; }
.warn-card.lvl-strike .warn-icon, .warn-card.lvl-restrict .warn-icon, .warn-card.lvl-terminate .warn-icon { background: #ffe3e8; }
.warn-card.lvl-strike .warn-icon .ms, .warn-card.lvl-restrict .warn-icon .ms, .warn-card.lvl-terminate .warn-icon .ms { color: var(--red); }
.warn-card h3 { margin: 0 0 8px; font-size: 18px; }
.warn-card p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.warn-card .warn-sim { font-size: 12px; color: #999; }

/* ended */
#screen-ended { background: rgba(0, 0, 0, .66); backdrop-filter: blur(14px); overflow-y: auto; }
.ended-card { min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: calc(40px + var(--safe-top)) 20px calc(24px + var(--safe-bottom)); }
.ended-avatar { width: 76px; height: 76px; border-radius: 50%; border: 2px solid #fff; }
.ended-card h1 { font-size: 22px; margin: 14px 0 4px; }
.ended-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.ended-grid { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 8px; text-align: center; }
.stat b { display: block; font-size: 19px; font-weight: 800; }
.stat span { font-size: 11.5px; color: var(--muted); }
.ended-top { width: 100%; margin-top: 18px; }
.ended-top h2 { font-size: 15px; margin: 0 0 8px; }
.ended-top ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ended-top li { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.ended-top li img { width: 30px; height: 30px; border-radius: 50%; }
.ended-top li em { margin-left: auto; font-style: normal; color: #ffd84d; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.ended-top li em img { width: 14px; height: 14px; }
.ended-top .rank { width: 20px; font-weight: 800; color: var(--muted); }
.ended-note { font-size: 12px; color: var(--muted); margin: 18px 0; text-align: center; }
.ended-actions { width: 100%; display: flex; gap: 10px; }
.ended-actions > * { flex: 1; }

/* toast */
.toast { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); z-index: 50; max-width: 80%; padding: 10px 16px; border-radius: 10px; background: rgba(22, 24, 35, .88); font-size: 14px; font-weight: 600; text-align: center; animation: fade-in .2s both; }

@media (prefers-reduced-motion: reduce) {
  .heart, .particle, .big-gift .bg-glow { animation-duration: .01s !important; }
}

/* ======================================================================
   P1.5 — practice mode, restrictions, incidents, host tools
   ====================================================================== */
.live-status .sim-tag:empty { display: none; }
.chip-row2 { position: absolute; top: calc(122px + var(--safe-top)); right: 8px; display: flex; align-items: center; gap: 6px; z-index: 3; }
.chip-restrict { height: 30px; padding: 0 6px 0 8px; border-radius: 6px; background: rgba(120, 120, 128, .55); backdrop-filter: blur(6px); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.chip-restrict .ms { font-size: 18px; }
.chip-restrict .ms.fill { color: #ff3b30; font-size: 17px; }
.viewers-delta { height: 24px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .3); font-size: 12px; font-weight: 700; }
.more-ic { transform: none !important; }

/* top notice (device warnings, disconnects) */
.top-notice { position: absolute; top: calc(118px + var(--safe-top)); left: 50%; transform: translateX(-50%); width: 86%; z-index: 7; padding: 10px 14px; border-radius: 10px; background: rgba(22, 24, 35, .72); backdrop-filter: blur(6px); font-size: 13.5px; font-weight: 600; text-align: center; line-height: 1.4; animation: fade-in .25s both; }
.cam.hot { filter: saturate(.75) contrast(.9) blur(1px); }

/* phone notification banner */
.notify { position: absolute; top: calc(8px + var(--safe-top)); left: 8px; right: 8px; z-index: 45; display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 20px; background: rgba(245, 245, 247, .92); backdrop-filter: blur(20px); color: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: notify-in .35s cubic-bezier(.2, .9, .3, 1.1) both; cursor: pointer; }
.notify.out { animation: notify-out .3s ease-in both; }
@keyframes notify-in { from { transform: translateY(-120%); } to { transform: none; } }
@keyframes notify-out { to { transform: translateY(-130%); } }
.notify-app { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(#5ff777, #13c43a); color: #fff; flex: none; }
.notify-app.call { background: linear-gradient(#61e36b, #1bb12e); }
.notify-app.bank { background: linear-gradient(#4f7cff, #1e46d8); }
.notify-app.ship { background: linear-gradient(#ffae42, #f07b00); }
.notify-app .ms { font-size: 22px; }
.notify-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.notify-head { display: flex; justify-content: space-between; font-size: 12px; color: #666; }
.notify-head b { font-weight: 600; color: #444; }
.notify-copy > b { font-size: 14.5px; }
.notify-copy > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* paused */
.paused { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(8, 8, 12, .86); text-align: center; padding: 0 28px; }
.paused p { margin: 0 0 6px; font-size: 15px; line-height: 1.5; }
.paused b { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.paused span { font-size: 13px; color: var(--muted); }
.paused .primary-btn { margin-top: 12px; min-width: 150px; height: 40px; }

/* pinned comment */
.pinned { position: absolute; left: 10px; right: 76px; bottom: calc(66px + 34% + var(--safe-bottom) + 4px); z-index: 3; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: rgba(22, 24, 35, .55); backdrop-filter: blur(6px); }
.pin-ic { font-size: 16px !important; color: #ffd84d; }
.pinned-av { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.pinned-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pinned-copy b { font-size: 12px; color: rgba(255, 255, 255, .75); }
.pinned-copy span { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pinned-x .ms { font-size: 18px; color: rgba(255, 255, 255, .7); }
.pinned ~ .gift-lanes { bottom: calc(66px + 34% + var(--safe-bottom) + 50px); }

/* comments: tappable + greet */
.cm[data-name] { cursor: pointer; }
.cm-greet { margin-left: 6px; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(255, 255, 255, .22); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; pointer-events: auto; }
.cm-greet[disabled] { opacity: .45; }
.cm.sys .cm-body { display: flex; align-items: center; flex-wrap: wrap; }
.cm-sysline { display: flex; gap: 8px; align-items: flex-start; }
.cm-sysline .ms { font-size: 18px; color: #fff; opacity: .85; }
.cm.tip .cm-text { color: #fff; font-weight: 600; font-size: 14px; }
.cm.tip { background: rgba(22, 24, 35, .45); border-radius: 12px; padding: 8px 10px; align-items: center; }
.cm.tip .tip-cta { margin-left: 8px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--red); font-size: 12.5px; font-weight: 700; flex: none; }

/* more sheet */
.quick-row { display: flex; justify-content: space-around; background: #fff; border-radius: 14px; padding: 12px 6px; margin-bottom: 12px; }
.quick { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #f1f1f2; }
.quick .ms { font-size: 24px; color: var(--ink); }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px; background: #fff; border-radius: 14px; padding: 16px 8px; }
.more-item { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; text-align: center; line-height: 1.25; }
.more-item .ms { font-size: 26px; color: var(--ink); }
.more-help { text-align: center; font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }
.link-btn { color: var(--ink); font-weight: 700; text-decoration: underline; }

/* settings */
.set-group { background: transparent; margin-bottom: 14px; }
.set-row { width: 100%; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 13px 14px; margin-bottom: 8px; text-align: left; font-size: 16px; font-weight: 500; }
a.set-row { text-decoration: none; color: inherit; }
.set-row > .ms:first-child { font-size: 24px; color: var(--ink); }
.set-label { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.set-label small, .switch-row small { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 400; margin-top: 2px; }
.set-row .chevron { color: rgba(22, 24, 35, .4); }
.sim-note p { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--ink-2); background: #fff; border-radius: 12px; padding: 12px 14px; }
.switch-row > span { flex: 1; padding-right: 10px; }
.scn-practice { margin-bottom: 10px; background: linear-gradient(135deg, #fff, #fff4f6); border-color: rgba(254, 44, 85, .35); }
.scn-practice b { display: flex; align-items: center; gap: 6px; }
.scn-practice b .ms { font-size: 20px; color: var(--red); }

/* page-style sheets */
.sheet.page { top: 0; max-height: none; border-radius: 0; padding-top: calc(6px + var(--safe-top)); background: #f5f5f7; animation: page-in .26s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes page-in { from { transform: translateX(100%); } to { transform: none; } }
.page-head { position: sticky; top: calc(-6px - var(--safe-top)); z-index: 2; display: flex; align-items: center; gap: 6px; margin: -6px -16px 12px; padding: 8px 10px; background: #f5f5f7; }
.page-head h3 { flex: 1; margin: 0; text-align: center; font-size: 17px; font-weight: 700; line-height: 1.2; }
.page-head h3 small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.page-head .icon-btn .ms { font-size: 22px; }
.page-head .head-ic { font-size: 24px !important; width: 36px; text-align: center; }
.page-sub { font-size: 16px; margin: 18px 0 10px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tabs button { height: 34px; padding: 0 16px; border-radius: 17px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tabs button.active { background: var(--ink); color: #fff; }

/* restriction cards */
.restrict-list { display: flex; flex-direction: column; gap: 12px; }
.r-card { width: 100%; text-align: left; background: #fff; border-radius: 14px; overflow: hidden; }
.r-card-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #fff0f2; color: var(--red); font-size: 14px; font-weight: 700; }
.r-card-top .ms { font-size: 18px; }
.r-card.ended .r-card-top { background: #f1f1f2; color: var(--ink-2); }
.r-card.approved .r-card-top { background: #e7f8f1; color: #0e9f6e; }
.r-card-body { padding: 12px 14px 14px; }
.r-card-body b { display: block; font-size: 15.5px; margin-bottom: 6px; line-height: 1.35; }
.r-card-body p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.r-card-body small { font-size: 12.5px; color: var(--ink-2); }
.r-status { margin-top: 10px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: #f1f1f2; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.r-empty { text-align: center; color: var(--ink-2); padding: 40px 20px; font-size: 14.5px; line-height: 1.5; }
.r-empty .ms { display: block; font-size: 48px; margin-bottom: 8px; color: #c8c8cc; }

/* restriction detail + appeal result */
.rd-hero { text-align: center; padding: 8px 8px 18px; }
.rd-icon { position: relative; width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; }
.rd-icon .ms { font-size: 56px; color: var(--ink); font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48; }
.rd-icon .ban { position: absolute; right: 2px; bottom: 4px; font-size: 24px !important; color: var(--red) !important; background: #f5f5f7; border-radius: 50%; font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24 !important; }
.rd-icon.ok .ms { color: #20c997; font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 48; }
.rd-hero h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; font-weight: 800; }
.rd-hero p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.rd-card { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.rd-card h4 { margin: 0 0 8px; font-size: 15px; }
.rd-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); white-space: pre-line; }
.rd-feedback { display: flex; gap: 10px; margin-top: 10px; }
.rd-feedback button { flex: 1; height: 40px; border-radius: 8px; background: #f1f1f2; font-weight: 600; }
.rd-feedback button.picked { background: var(--ink); color: #fff; }
.rd-link { display: block; text-align: center; font-size: 13px; color: var(--ink-2); margin: 16px 0 12px; }
.rd-link b { color: var(--ink); }

.appeal-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.appeal-options label { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 13px 14px; font-size: 14.5px; line-height: 1.35; }
.appeal-options input { width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.field.area { height: auto; padding: 10px 12px; resize: none; line-height: 1.4; margin-bottom: 16px; font-family: inherit; }

/* credit gauge */
.gauge { position: relative; background: #fff; border-radius: 16px; padding: 20px 16px 12px; text-align: center; }
.gauge svg { width: 100%; max-width: 280px; display: block; margin: 0 auto; }
.gauge-num { position: absolute; left: 0; right: 0; top: 78px; font-size: 56px; font-weight: 800; letter-spacing: -2px; }
.gauge-label { position: absolute; left: 0; right: 0; top: 146px; font-size: 15px; font-weight: 600; color: #22b8cf; }
.gauge-label.bad { color: var(--red); }
.gauge-scale { display: flex; justify-content: space-between; max-width: 240px; margin: 0 auto; font-size: 12px; color: var(--ink-2); }
.credit-list { display: flex; flex-direction: column; gap: 8px; }
.credit-row { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 12px; padding: 12px 14px; }
.credit-row b { display: block; font-size: 14.5px; font-weight: 600; }
.credit-row small { font-size: 12.5px; color: var(--ink-2); }
.credit-row em { font-style: normal; font-weight: 800; color: #0ca678; }
.credit-row em.neg { color: var(--red); }

/* comment action sheet */
.cmt-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cmt-head img { width: 44px; height: 44px; border-radius: 50%; }
.cmt-head b { font-size: 16px; }
.cmt-head .badge { margin-left: 4px; }
.cmt-text { background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 12px; line-height: 1.4; }
.cmt-actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.cmt-actions button { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.2; }
.cmt-actions .ms { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 23px; color: var(--ink); }
.cmt-actions .danger .ms { color: var(--red); }

/* dialogs */
.warn-card .link-btn { display: block; margin: 12px auto 0; font-size: 14.5px; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.warn-icon.gift, .warn-icon.visibility, .warn-icon.group, .warn-icon.block { background: transparent; position: relative; }
.warn-icon.gift .ms, .warn-icon.visibility .ms, .warn-icon.group .ms, .warn-icon.block .ms { color: var(--ink); font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48; font-size: 46px; }
.warn-icon .ban { position: absolute; right: 2px; bottom: 2px; font-size: 22px !important; color: var(--red) !important; background: #fff; border-radius: 50%; font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24 !important; }
.warn-card.restrict h3 { font-size: 19px; line-height: 1.35; }
.warn-card.restrict .primary-btn { border-radius: 22px; }
.dialog-card { width: 100%; max-width: 300px; background: #fff; color: var(--ink); border-radius: 14px; overflow: hidden; text-align: center; animation: sheet-up .22s both; }
.dialog-card h3 { margin: 20px 18px 8px; font-size: 17px; line-height: 1.35; }
.dialog-card p { margin: 0 18px 18px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.dialog-actions { display: flex; border-top: 1px solid rgba(22, 24, 35, .1); }
.dialog-actions button { flex: 1; height: 46px; font-size: 15.5px; font-weight: 500; }
.dialog-actions button + button { border-left: 1px solid rgba(22, 24, 35, .1); font-weight: 700; }
.dialog-actions button.danger { color: var(--red); }

/* realtime performance (dark) */
.perf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.perf-head .icon-btn .ms { font-size: 24px; }
.perf-time { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.perf-time .ms { font-size: 16px; }
.perf-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 4px 0 18px; }
.perf-stats b { display: block; font-size: 26px; font-weight: 800; }
.perf-stats span { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.perf-block { border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0 6px; }
.perf-block:empty { display: none; }
.perf-title { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 10px; color: rgba(255, 255, 255, .8); }
.perf-title a, .perf-title button { font-size: 13px; color: rgba(255, 255, 255, .6); }
.perf-r { width: 100%; text-align: left; border-radius: 12px; background: rgba(255, 60, 90, .16); padding: 12px; margin-bottom: 10px; }
.perf-r .top { display: flex; align-items: center; gap: 6px; color: #ff5c7c; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.perf-r .top .ms { font-size: 18px; }
.perf-r b { display: block; font-size: 14px; margin-bottom: 4px; }
.perf-r p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .7); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.perf-r small { font-size: 12px; color: rgba(255, 255, 255, .6); }
.perf-r .r-status { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); height: 32px; }
.seg { display: flex; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; height: 32px; border-radius: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .6); font-weight: 600; }
.seg button.active { background: rgba(255, 255, 255, .16); color: #fff; }
.perf-money { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.perf-money b { font-size: 24px; }
.perf-money small { color: rgba(255, 255, 255, .6); font-size: 12px; margin-left: 4px; }
.perf-money span { font-size: 13px; color: #ffd84d; font-weight: 700; }
.perf-tasks { display: flex; flex-direction: column; gap: 10px; }
.perf-task { display: grid; grid-template-columns: 1fr 70px 40px; align-items: center; gap: 8px; font-size: 13.5px; }
.perf-task .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.perf-task .bar i { display: block; height: 100%; background: #fff; border-radius: 3px; }
.perf-task em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .6); text-align: right; }

/* practice wizard */
#sheet-practice { display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }
#sheet-practice[hidden] { display: none !important; }
.steps { display: flex; gap: 6px; margin: 0 0 14px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: rgba(22, 24, 35, .12); }
.steps i.on { background: var(--red); }
.pr-body { flex: 1; overflow-y: auto; margin: 0 -16px; padding: 0 16px 16px; }
.pr-foot { display: flex; gap: 10px; padding: 10px 0 calc(12px + var(--safe-bottom)); border-top: 1px solid rgba(22, 24, 35, .08); background: #f5f5f7; }
.pr-foot > * { flex: 1; }
.pr-foot .primary-btn { flex: 1.6; }
.pr-h { font-size: 21px; font-weight: 800; margin: 2px 0 4px; letter-spacing: -.2px; }
.pr-p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; margin: 0 0 14px; }
.pr-section { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.pr-section > label, .pr-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; font-weight: 700; margin-bottom: 10px; }
.pr-label { flex-wrap: wrap; gap: 2px 10px; }
.pr-label small { font-size: 12.5px; font-weight: 500; color: var(--ink-2); flex: 1 1 auto; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 34px; padding: 0 14px; border-radius: 17px; background: #f1f1f2; font-size: 14px; font-weight: 600; color: var(--ink); }
.chips button.on { background: var(--ink); color: #fff; }
.chips.diff button.on[data-v="easy"] { background: #20c997; }
.chips.diff button.on[data-v="medium"] { background: #3b82f6; }
.chips.diff button.on[data-v="hard"] { background: #ff8a00; }
.chips.diff button.on[data-v="nightmare"] { background: var(--red); }
.num-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.num-row input[type="range"] { flex: 1; accent-color: var(--red); }
.num-row input[type="number"] { width: 88px; height: 36px; border-radius: 8px; border: 1px solid rgba(22, 24, 35, .14); padding: 0 8px; font-size: 15px; font-weight: 700; text-align: right; color: var(--ink); background: #fff; }
.mix-row { display: grid; grid-template-columns: 1fr 1.3fr 42px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(22, 24, 35, .06); font-size: 14px; }
.mix-row:last-child { border-bottom: 0; }
.mix-row span { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.mix-row span i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mix-row input { width: 100%; accent-color: var(--red); }
.mix-row b { text-align: right; font-variant-numeric: tabular-nums; }
.mix-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; margin: 4px 0 12px; }
.mix-bar i { display: block; height: 100%; }
.mini-btn { height: 30px; padding: 0 12px; border-radius: 15px; background: #f1f1f2; font-size: 12.5px; font-weight: 700; }
.inc-list { display: flex; flex-direction: column; gap: 8px; }
.inc-row { display: grid; grid-template-columns: 34px 1fr auto 30px; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 10px 10px 10px 12px; }
.inc-row .inc-ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f1f1f2; }
.inc-row .inc-ic .ms { font-size: 19px; color: var(--ink); }
.inc-row .inc-name { font-size: 14px; font-weight: 600; line-height: 1.3; min-width: 0; }
.inc-row .inc-name small { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 500; }
.inc-row select { margin-top: 4px; width: 100%; max-width: 190px; height: 28px; border-radius: 6px; border: 1px solid rgba(22, 24, 35, .14); background: #fff; font-size: 12px; color: var(--ink); }
.inc-row .inc-at { width: 76px; height: 34px; border-radius: 8px; border: 1px solid rgba(22, 24, 35, .14); text-align: center; font-size: 14px; font-weight: 700; color: var(--ink); background: #fff; }
.inc-row .inc-at::placeholder { font-weight: 500; font-size: 12px; color: var(--ink-2); }
.inc-row .inc-at.bad { border-color: var(--red); }
.inc-row .inc-del .ms { font-size: 20px; color: var(--ink-2); }
.g-net { background: #e7f0ff !important; } .g-net .ms { color: #2f6fed !important; }
.g-viewer { background: #fff3e0 !important; } .g-viewer .ms { color: #f08c00 !important; }
.g-policy { background: #ffe3e8 !important; } .g-policy .ms { color: var(--red) !important; }
.g-gift { background: #f3e8ff !important; } .g-gift .ms { color: #8b5cf6 !important; }
.g-scenario { background: #e6fcf5 !important; } .g-scenario .ms { color: #0ca678 !important; }
.add-row { width: 100%; height: 44px; border-radius: 12px; border: 1.5px dashed rgba(22, 24, 35, .25); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14.5px; margin-top: 10px; background: transparent; }
.pick-group h5 { margin: 12px 0 8px; font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .4px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick-item { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 10px; text-align: left; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.pick-item .inc-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pick-item .inc-ic .ms { font-size: 18px; }
.scn-cards { display: flex; flex-direction: column; gap: 10px; }
.scn-card { display: grid; grid-template-columns: 40px 1fr 26px; gap: 10px; align-items: center; text-align: left; background: #fff; border-radius: 14px; padding: 12px; border: 1.5px solid transparent; }
.scn-card.on { border-color: var(--red); background: #fff7f8; }
.scn-card .inc-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.scn-card b { display: block; font-size: 15px; margin-bottom: 2px; }
.scn-card span { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.scn-card .tick { font-size: 24px; color: rgba(22, 24, 35, .2); }
.scn-card.on .tick { color: var(--red); font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }
.sum-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sum-chips span { height: 28px; padding: 0 10px; border-radius: 14px; background: #fff; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.sum-chips .ms { font-size: 16px; }
.tl { position: relative; padding-left: 4px; }
.tl-row { display: grid; grid-template-columns: 48px 30px 1fr; align-items: center; gap: 8px; padding: 6px 0; }
.tl-row time { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.tl-row .inc-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.tl-row .inc-ic .ms { font-size: 16px; }
.tl-row span { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.tl-row span small { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 500; }
.preset-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 4px; }
.preset-row button { flex: none; height: 34px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid rgba(22, 24, 35, .12); font-size: 13px; font-weight: 600; white-space: nowrap; }
.preset-row button.mine { border-color: rgba(254, 44, 85, .4); }
.pr-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ended evaluation */
.ended-eval { width: 100%; margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ended-eval:empty { display: none; }
.ev-card { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px; }
.ev-card h2 { font-size: 15px; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.ev-card h2 em { font-style: normal; font-size: 13px; color: #ffd84d; }
.ev-credit { display: flex; align-items: center; gap: 12px; }
.ev-credit b { font-size: 28px; font-weight: 800; }
.ev-credit span { color: var(--muted); font-size: 13px; }
.ev-credit em { font-style: normal; font-weight: 800; color: #20c997; margin-left: auto; font-size: 18px; }
.ev-credit em.neg { color: #ff5c7c; }
.ev-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ev-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; font-size: 13px; align-items: center; }
.ev-list time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.ev-list .ok { color: #20c997; font-weight: 700; }
.ev-list .miss { color: #ff5c7c; font-weight: 700; }
.ev-list .ms { font-size: 18px; }
.ev-mod { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-mod div { text-align: center; background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 8px 4px; }
.ev-mod b { display: block; font-size: 17px; }
.ev-mod span { font-size: 11px; color: var(--muted); }
.ev-link { width: 100%; height: 38px; margin-top: 8px; border-radius: 8px; background: rgba(255, 255, 255, .12); font-size: 13.5px; font-weight: 600; }

/* ======================================================================
   P1.6 — profile, appeal sheet, captions, speech, admin rules, language
   ====================================================================== */
.prep-cover-btn { position: relative; flex: none; width: 40px; height: 40px; }
.prep-cover-btn .ms { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); font-size: 12px; display: grid; place-items: center; }
.host-chip { cursor: pointer; }

/* captions (live transcript) */
.captions { position: absolute; top: calc(160px + var(--safe-top)); left: 10px; width: calc(54% - 16px); z-index: 4; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(4px); font-size: 13px; line-height: 1.4; pointer-events: none; }
.cap-line { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cap-line .interim { opacity: .6; }
.cap-line mark { background: #fe2c55; color: #fff; border-radius: 3px; padding: 0 2px; }
.cap-tr { margin-top: 4px; font-size: 12px; color: #9fe3ff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cap-tr:empty { display: none; }

/* appeal sheet (matches the real appeal picker) */
.appeal-sheet { background: #f5f5f7; border-radius: 16px 16px 0 0; padding: 8px 18px calc(22px + var(--safe-bottom)); max-height: 92%; }
.appeal-top { display: flex; justify-content: flex-end; }
.appeal-top .ms { font-size: 28px; }
.appeal-title { text-align: center; font-size: 19px; font-weight: 700; margin: 4px 0 18px; }
.appeal-sheet .appeal-options { gap: 0; margin-bottom: 18px; }
.appeal-sheet .appeal-options label { background: transparent; padding: 14px 0; border-radius: 0; justify-content: space-between; font-size: 16px; line-height: 1.4; gap: 16px; }
.appeal-sheet .appeal-options input { order: 2; appearance: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(22, 24, 35, .3); background: #fff; flex: none; }
.appeal-sheet .appeal-options input:checked { border: 7px solid var(--red); }
.appeal-send { border-radius: 10px; height: 50px; font-size: 17px; font-weight: 600; }
.appeal-send[disabled] { background: #f8a5b6; }

/* learning link */
.learn-link { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--red); text-decoration: none; }
.learn-link .ms { font-size: 18px; }
.rd-card .learn-link { margin: 10px 0 0; }
.perf-r .learn-link { color: #ff7a93; margin: 6px 0 0; font-size: 13px; }

/* settings */
.set-h { margin: 6px 4px 8px; font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .4px; }
.lang-row { cursor: default; }
.seg.light { background: #f1f1f2; margin: 0; padding: 3px; }
.seg.light button { color: var(--ink-2); height: 30px; padding: 0 10px; flex: none; font-size: 13px; }
.seg.light button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.head-save { height: 32px; padding: 0 14px; border-radius: 16px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; }
.sheet-desc.small { font-size: 13px; }

/* profile */
.pf-avatar { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 6px; }
.pf-avatar img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #ddd; flex: none; }
.pf-avatar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-btn { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.mini-btn .ms { font-size: 16px; }
.field-prefix { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid rgba(22, 24, 35, .14); border-radius: 10px; padding-left: 12px; }
.field-prefix span { color: var(--ink-2); font-weight: 700; }
.field-prefix .field { border: 0; padding-left: 0; }
select.field { appearance: auto; }
.pf-preview { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); background: #fff; border-radius: 10px; padding: 10px 12px; line-height: 1.45; }
.pf-preview b { color: var(--ink); }
#sheet-profile .chips { margin-bottom: 2px; }

/* host profile card */
.host-card-sheet { padding-top: 10px; }
.hc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.hc-top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.hc-top b { display: block; font-size: 20px; }
.hc-top small { color: var(--ink-2); font-size: 13.5px; }
.hc-stats { font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.hc-stats b { font-weight: 800; }
.hc-bio { font-size: 14px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.45; }
.hc-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.hc-tags span { height: 30px; padding: 0 12px; border-radius: 8px; background: #fff0f2; color: var(--red); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.hc-tags span.alt { background: #eef2ff; color: #4f46e5; }

/* speech */
.speech-support { font-size: 13px; line-height: 1.45; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.speech-support.ok { background: #e6fcf5; color: #0b7a55; }
.speech-support.bad { background: #fff4e6; color: #b35900; }
.try-row { display: flex; gap: 8px; }
.try-row .field { flex: 1; min-width: 0; }
.try-row .primary-btn { height: 46px; padding: 0 14px; }
.try-result { margin-top: 10px; font-size: 13.5px; line-height: 1.5; }
.try-result .hit { display: flex; gap: 6px; align-items: baseline; padding: 6px 0; border-top: 1px solid rgba(22, 24, 35, .06); }
.try-result .hit b { color: var(--red); }

/* admin: links & keywords */
.lk-row { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.lk-row b { display: block; font-size: 14px; margin-bottom: 6px; }
.lk-row small { display: block; font-size: 12px; color: var(--ink-2); margin: -2px 0 6px; }
.lk-row .field { height: 40px; font-size: 14px; }
.lk-row .field.bad { border-color: var(--red); }
.kw-row { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.kw-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.kw-head b { font-size: 14.5px; }
.kw-head small { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.kw-row textarea { min-height: 70px; font-size: 14px; margin-bottom: 8px; }
.kw-selects { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.kw-selects select { min-width: 0; width: 100%; height: 38px; border-radius: 8px; border: 1px solid rgba(22, 24, 35, .14); background: #fff; font-size: 13px; color: var(--ink); padding: 0 6px; }
.kw-delay-hint { font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* wizard step 3: checklist + numbered order */
.order-seg { display: flex; background: #fff; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 8px; }
.order-seg button { flex: 1; height: 38px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.order-seg button.on { background: var(--ink); color: #fff; }
.order-hint { font-size: 12.5px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.45; }
.sel-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sel-row { display: grid; grid-template-columns: 44px 30px 1fr auto; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px 8px 8px 8px; }
.sel-num { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sel-num input { width: 40px; height: 30px; border-radius: 8px; border: 1.5px solid var(--red); text-align: center; font-weight: 800; font-size: 15px; color: var(--red); background: #fff7f8; }
.sel-num .arrows { display: flex; gap: 2px; }
.sel-num .arrows button { width: 19px; height: 18px; border-radius: 4px; background: #f1f1f2; display: grid; place-items: center; }
.sel-num .arrows .ms { font-size: 14px; }
.sel-row .inc-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.sel-row .inc-ic .ms { font-size: 17px; }
.sel-main { min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.sel-main select { margin-top: 4px; width: 100%; height: 28px; border-radius: 6px; border: 1px solid rgba(22, 24, 35, .14); background: #fff; font-size: 12px; color: var(--ink); }
.sel-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sel-side .inc-at { width: 74px; height: 30px; border-radius: 8px; border: 1px solid rgba(22, 24, 35, .14); text-align: center; font-size: 13px; font-weight: 700; color: var(--ink); background: #fff; }
.sel-side .inc-at::placeholder { font-weight: 500; font-size: 11px; color: var(--ink-2); }
.sel-side .inc-at.bad { border-color: var(--red); }
.sel-side .row-btns { display: flex; gap: 2px; }
.sel-side .row-btns button { width: 26px; height: 24px; display: grid; place-items: center; border-radius: 6px; }
.sel-side .row-btns .ms { font-size: 17px; color: var(--ink-2); }
.check-group { background: #fff; border-radius: 14px; padding: 10px 12px 4px; margin-bottom: 10px; }
.check-group h5 { margin: 2px 0 6px; font-size: 12.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .4px; display: flex; justify-content: space-between; align-items: center; }
.check-group h5 button { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--red); font-weight: 700; }
.check-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(22, 24, 35, .06); font-size: 14px; font-weight: 500; cursor: pointer; }
.check-item:first-of-type { border-top: 0; }
.check-item input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }
.check-item .inc-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.check-item .inc-ic .ms { font-size: 16px; }
.check-item em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; color: var(--red); }
.tl-row .tl-num { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; margin-right: 4px; }

/* ---------- DBO LIVE LAB link (gift → music) ---------- */
.link-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #f3f4f6; color: #374151; font-weight: 600; font-size: 14px; margin: 4px 0 12px; }
.link-status i { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; flex: none; }
.link-status[data-tone="on"] { background: #dcfce7; color: #166534; }
.link-status[data-tone="on"] i { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.link-status[data-tone="wait"] { background: #fff7ed; color: #9a3412; }
.link-status[data-tone="wait"] i { background: #f97316; }
.link-id-card { border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.link-id-card small { color: #6b7280; font-size: 12px; }
.link-id-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.link-id-row b { font-size: 20px; letter-spacing: .3px; word-break: break-all; color: #111827; }
.link-id-row .primary-btn { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.link-id-row .primary-btn .ms { font-size: 18px; }
.link-steps { margin: 10px 0 6px; padding-left: 20px; color: #374151; font-size: 14px; line-height: 1.5; }
.link-steps li { margin-bottom: 6px; }
.link-steps a { color: #fe2c55; font-weight: 600; }

/* ---------- P1.8: gift lines in comments ---------- */
.cm.gift-cm .cm-gift { display: flex; align-items: center; gap: 4px; color: #ffe08a; font-weight: 700; }
.cm-gift-img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.cm-gift-count { color: #fff; font-weight: 800; }

/* ---------- P1.8: credit ladder ---------- */
.credit-ladder { margin: 8px 0 14px; }
.cl-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; margin-bottom: 6px; background: #f6f7f9; color: #374151; }
.cl-row .ms { font-size: 22px; color: #9ca3af; }
.cl-row b { display: block; font-size: 14px; color: #111827; }
.cl-row small { font-size: 12.5px; color: #6b7280; }
.cl-row.on { background: #fff1f2; box-shadow: inset 0 0 0 1.5px #fe2c55; }
.cl-row.on .ms { color: #fe2c55; }
.cl-points { font-size: 12.5px; color: #6b7280; margin: 8px 2px 12px; line-height: 1.45; }
.cr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-grid label { display: grid; gap: 4px; font-size: 12.5px; color: #4b5563; font-weight: 600; }
.cr-grid .field, .cr-line .field { height: 40px; }
.cr-line { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 13.5px; color: #374151; flex-wrap: wrap; }
.cr-line .field { width: 72px; text-align: center; }
.cr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 6px; }
.cr-steps select { min-width: 0; width: 100%; height: 38px; border-radius: 10px; border: 1px solid #e5e7eb; background: #fff; padding: 0 6px; font-size: 12.5px; }

/* ---------- P1.8: viewer curve editor ---------- */
.cp-list { display: grid; gap: 6px; margin: 8px 0 6px; }
.cp-row { display: grid; grid-template-columns: auto 64px auto 1fr 32px; align-items: center; gap: 6px; }
.cp-lbl { font-size: 12px; color: #6b7280; font-weight: 600; }
.cp-in { height: 36px; padding: 0 8px; text-align: center; min-width: 0; }
.cp-in.bad { border-color: #fe2c55; }
.cp-del { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #f3f4f6; color: #6b7280; }
.cp-del .ms { font-size: 18px; }
.cp-add { margin: 2px 0 8px; padding: 6px 12px; border-radius: 16px; background: #fff1f2; color: #fe2c55; font-weight: 700; font-size: 13px; }
.cp-preview { width: 100%; height: auto; display: block; margin-top: 6px; border-radius: 12px; background: #f8fafc; }
.cp-area { fill: rgba(254, 44, 85, .12); }
.cp-line { fill: none; stroke: #fe2c55; stroke-width: 2; stroke-linejoin: round; }
.cp-dot { fill: #fe2c55; }
.cp-txt { font-size: 10px; fill: #6b7280; font-family: inherit; }

/* ---------- P2: credit ladder table editor & exercise credit ---------- */
.ld-tiers { display: grid; gap: 8px; margin: 6px 0; }
.ld-tier { border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px; background: #fff; }
.ld-tier-head { display: grid; grid-template-columns: auto 60px auto 1fr 30px; align-items: center; gap: 6px; font-size: 13px; color: #374151; }
.ld-tier-head .field { height: 36px; padding: 0 6px; text-align: center; min-width: 0; }
.ld-tier select, .ld-steps select { min-width: 0; width: 100%; height: 36px; border-radius: 9px; border: 1px solid #e5e7eb; background: #fff; padding: 0 6px; font-size: 12.5px; }
.ld-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.ld-del { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f3f4f6; color: #6b7280; }
.ld-del .ms { font-size: 17px; }
.ld-reasons { margin: 8px 0 4px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px 10px; background: #fafafa; }
.ld-reasons summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: #111827; }
.ld-reason { display: grid; grid-template-columns: 1fr 64px; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid #f0f0f0; font-size: 12.5px; color: #374151; }
.ld-reason .field { height: 34px; text-align: center; padding: 0 6px; }
.cr-start { width: 72px; }
.cr-standing { margin: 6px 2px 0; font-size: 12.5px; color: #be123c; font-weight: 600; }
.cr-standing.ok { color: #0f8a4f; }
.pr-body .credit-ladder .cl-row { background: #f8fafc; }
