:root {
  --bg: #000;
  --panel: #15131c;
  --panel-2: #221e2e;
  --line: #2c2838;
  --text: #fff;
  --muted: #a49fb3;
  --accent: #b9a7ff;
  --accent-ink: #140f26;
  --accent-soft: #2a2440;
  --danger: #dc2626;
  --ok: #16a34a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
#app { height: 100dvh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 10px 16px; background: var(--panel-2); min-height: 44px; }
button:hover { filter: brightness(1.15); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
button.danger { background: var(--danger); font-weight: 600; }
button.ok { background: var(--ok); font-weight: 600; }
input, select { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); min-height: 44px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
h1 { font-size: 22px; margin: 0 0 4px; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: #ff8a8a; font-size: 14px; margin-top: 10px; min-height: 20px; }

/* 시작, 입장 전 화면 */
.page { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.card { width: 100%; max-width: 420px; background: var(--panel); border-radius: 16px; padding: 24px; }
.card.wide { max-width: 860px; display: grid; gap: 24px; grid-template-columns: 1.3fr 1fr; align-items: center; }
.card button.primary { width: 100%; margin-top: 16px; }
@media (max-width: 720px) { .card.wide { grid-template-columns: 1fr; gap: 12px; padding: 16px; } }
.preview { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.preview .off { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }
.preview .tools { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 10px; justify-content: center; }
.invite { display: flex; gap: 8px; margin-top: 12px; }
.invite input { font-size: 13px; }
.invite button { flex: none; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner, .mini-spin { animation-duration: 4s; } }
.mini-spin { display: inline-block; flex: none; width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .9s linear infinite; vertical-align: -3px; }
button.primary > .mini-spin { margin-right: 8px; }
.flash.working { display: flex; align-items: center; gap: 8px; animation: none; }
.call-round:active, button.primary:active { transform: scale(.94); filter: brightness(.85); }
.call-round, button.primary { transition: transform .08s ease, filter .08s ease; }
.going { pointer-events: none; }

details { margin-top: 12px; font-size: 14px; color: var(--muted); }
summary { cursor: pointer; min-height: 32px; }
.check { display: flex; gap: 10px; align-items: center; color: var(--text); font-size: 15px; margin: 12px 0 4px; }
.check input { width: 20px; height: 20px; min-height: 0; flex: none; }
.settings { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.settings .invite { margin-top: 4px; }
a.btn { display: block; text-align: center; text-decoration: none; color: var(--accent-ink); background: var(--accent); font-weight: 600; border-radius: 10px; padding: 10px 16px; margin-top: 16px; }
.card > button { width: 100%; margin-top: 8px; }

/* 통화 화면 */
.call { height: 100%; display: flex; flex-direction: column; position: relative; }
.stage { flex: 1; min-height: 0; padding: 8px; display: grid; gap: 8px; position: relative; }
.tile { position: relative; background: var(--panel); border-radius: 12px; overflow: hidden; min-width: 0; min-height: 0; outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .15s; }
.tile.speaking { outline-color: var(--accent); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tile.mirror video { transform: scaleX(-1); }
.tile.screen video, .stage.duo .tile:not(.me) video { object-fit: contain; }
.tile .avatar { position: absolute; inset: 0; display: grid; place-items: center; }
.tile .avatar span { width: 72px; height: 72px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; font-size: 28px; font-weight: 600; }
.tile .tag { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); display: flex; gap: 6px; align-items: center; background: rgba(0,0,0,.6); padding: 3px 9px; border-radius: 6px; font-size: 15px; white-space: nowrap; overflow: hidden; }
.tile .tag .name { overflow: hidden; text-overflow: ellipsis; }
.tile .tag svg { width: 14px; height: 14px; flex: none; }
.tile .tag .bad { color: #ffb454; }
.tile .tag .off { color: #ff8a8a; }

.stage.duo { grid-template: 1fr / 1fr; }
.stage.duo .tile:not(.me) { grid-area: 1 / 1; }
.stage.duo .tile.me { position: absolute; right: 16px; top: 16px; width: clamp(96px, 22vw, 260px); aspect-ratio: 16 / 9; z-index: 2; box-shadow: 0 4px 16px rgba(0,0,0,.5); }
@media (orientation: portrait) { .stage.duo .tile.me { aspect-ratio: 3 / 4; width: clamp(90px, 28vw, 200px); } }

.stage.focus { grid-template-columns: 1fr 200px; grid-auto-rows: minmax(0, 1fr); }
.stage.focus .tile.screen { grid-row: 1 / span 10; grid-column: 1; }
@media (orientation: portrait) {
  .stage.focus { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 96px; }
  .stage.focus .tile.screen { grid-row: 1; grid-column: 1 / -1; }
  .stage.focus .tile:not(.screen) { grid-row: 2; }
  .stage.focus .tile:not(.screen):nth-of-type(n+5) { display: none; }
}

.controls { flex: none; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--panel); }
.ctl { position: relative; width: 52px; height: 52px; padding: 0; border-radius: 50%; display: grid; place-items: center; }
.ctl svg { width: 22px; height: 22px; }
.ctl.off { background: var(--danger); }
.ctl.on { background: var(--accent); color: var(--accent-ink); }
.ctl.leave { background: var(--danger); width: 68px; border-radius: 26px; }
.ctl .badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--danger); font-size: 12px; font-weight: 700; line-height: 20px; }

.banner { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 5; background: var(--panel-2); padding: 8px 14px; border-radius: 10px; font-size: 14px; max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
.banner button { min-height: 32px; padding: 4px 12px; }

.knock { position: absolute; top: 8px; left: 8px; z-index: 6; width: min(340px, calc(100% - 16px)); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.5); }
.knock .row, .panel .row { display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.knock .row .name, .panel .row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.knock button, .panel .row button { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.knock .all { width: 100%; margin-top: 6px; }

.panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 7; width: min(320px, 100%); background: var(--panel); border-left: 1px solid var(--line); padding: 16px; overflow: auto; }
.panel header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.panel h2 { font-size: 16px; margin: 12px 0 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; border-radius: 16px; background: var(--panel-2); font-size: 13px; }
.chip button { min-height: 32px; padding: 2px 10px; background: none; border-radius: 16px; }
.card.admin { max-width: 560px; }
.card.admin > details:first-of-type { margin-top: 12px; }
details.section > summary { font-size: 16px; font-weight: 600; color: var(--text); padding: 8px 0; }
button.wide { width: 100%; margin-top: 10px; }
textarea { width: 100%; margin-top: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: inherit; font: 13px/1.5 inherit; }
.list-row { padding: 10px 0; border-top: 1px solid var(--line); }
.list-row .meta { font-size: 13px; color: var(--muted); }
.list-row .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.list-row .acts button { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.dialog .box input { margin-top: 12px; }
.panel.chat { display: flex; flex-direction: column; }
.chat-list { flex: 1; min-height: 0; overflow: auto; font-size: 14px; }
.chat-list p { margin: 0 0 10px; overflow-wrap: anywhere; }

.dialog { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.dialog .box { background: var(--panel); border-radius: 14px; padding: 20px; width: min(360px, 100%); }
.dialog .actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

details button { color: var(--text); }

/* 가족 통화: 검정 미니멀 */
.fam-box { margin-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fam-box > button { margin-top: 6px; min-height: 36px; padding: 4px 12px; font-size: 14px; }
body.family { background: #000; font-weight: 300; }
.f-screen { position: relative; height: 100dvh; overflow: hidden; background: #000; color: #fff; }
.f-photo { position: absolute; top: 0; left: 0; width: 100%; height: 71%; object-fit: cover; display: block; }
.f-photo.empty { background: var(--accent-soft); }
.f-photo.zoom { animation: f-zoom 14s ease-in-out infinite alternate; }
.f-fade { position: absolute; left: 0; right: 0; top: 40%; height: 31.2%; background: linear-gradient(rgba(0,0,0,0), #000); }
.f-title { position: absolute; top: 70%; left: 16px; right: 16px; margin: 0; font-size: 30px; font-weight: 300; letter-spacing: .02em; text-align: center; }
.f-actions { position: absolute; left: 0; right: 0; bottom: calc(44px + env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: flex-end; gap: 72px; z-index: 3; }
.f-btn { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0; background: none; border-radius: 0; color: #fff; font-size: 18px; font-weight: 400; }
.f-btn:hover { filter: none; }
.f-circle { position: relative; display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; box-sizing: border-box; }
.f-circle svg { width: 38px; height: 38px; }
.f-circle.go { background: var(--ok); color: #fff; }
.f-circle.ghost { border: 1px solid #fff; color: #fff; }
.f-circle.end { background: var(--danger); color: #fff; }
.f-circle.light { background: #fff; color: #000; }
.f-circle.small { width: 72px; height: 72px; }
.f-ringing .f-circle::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--ok); border-radius: 50%; animation: f-ring 2.2s ease-out infinite; }
.breathe { animation: f-breathe 2.6s ease-in-out infinite; }
.f-install { position: absolute; top: 16px; right: 16px; z-index: 3; min-height: 44px; padding: 8px 14px; background: rgba(0,0,0,.6); border-radius: 22px; color: #fff; font-size: 16px; font-weight: 400; }
.f-screen.plain { display: flex; align-items: center; justify-content: center; }
.f-overlay { position: absolute; inset: 0; z-index: 5; }
.f-center { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 0 24px; text-align: center; transform: translateY(-40px); }
.f-center h1, .f-column h1 { margin: 0; font-size: 30px; font-weight: 300; line-height: 1.35; }
.f-sub { margin: 0; font-size: 20px; line-height: 1.5; color: #c8c8c8; }
.f-sub.strong { color: #fff; font-weight: 400; }
.f-column { display: flex; flex-direction: column; gap: 18px; padding: 0 32px; width: 100%; max-width: 480px; }
.f-allow { margin-top: 12px; min-height: 56px; border-radius: 28px; background: var(--accent); color: var(--accent-ink); font-size: 18px; font-weight: 400; }
.f-note { margin: 0; font-size: 16px; color: #ffb0a8; min-height: 24px; }
.f-spin { width: 44px; height: 44px; border: 1px solid #555; border-top-color: #fff; border-radius: 50%; animation: spin 2.6s linear infinite; }
.f-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.f-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity 1.8s ease-in-out .4s; background: #1c1c1e; }
.f-cover.out { opacity: 0; pointer-events: none; }
.f-self { position: absolute; top: calc(24px + env(safe-area-inset-top)); right: 20px; width: 84px; height: 112px; border-radius: 14px; object-fit: cover; transform: scaleX(-1); background: #1c1c1e; z-index: 2; }
.f-screen.call::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.75)); }
.f-notice { position: absolute; top: 45%; left: 16px; right: 16px; z-index: 3; text-align: center; font-size: 22px; }
.f-audio { position: absolute; top: 55%; left: 50%; transform: translateX(-50%); z-index: 3; padding: 0 28px; margin: 0; }
@keyframes f-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes f-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes f-breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .f-photo.zoom, .f-ringing .f-circle::after, .breathe, .f-spin { animation: none; } .f-cover { transition: none; } }

/* 상대 회선이 약해 영상이 멈췄을 때: 마지막 장면을 천천히 흐리고, 돌아오면 다시 선명하게 */
.f-remote, .tile video { transition: filter 1s ease; }
.f-screen.voice .f-remote, .tile.frozen video { filter: blur(14px) brightness(.65); }
.f-voice-tag, .voice-tag { position: absolute; top: 45%; left: 0; right: 0; text-align: center; color: #fff; font-size: 18px; font-weight: 300; opacity: 0; pointer-events: none; transition: opacity 1s ease; z-index: 2; }
.f-screen.voice .f-voice-tag, .tile.frozen .voice-tag { opacity: 1; }
.voice-tag { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .f-remote, .tile video, .f-voice-tag, .voice-tag { transition: none; } }
.f-voice-tag, .voice-tag { text-shadow: 0 1px 8px rgba(0,0,0,.9); }

/* 잠깐 떴다 사라지는 알림 */
.flash { position: fixed; top: calc(16px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); padding: 8px 16px; border-radius: 20px; background: rgba(20,20,20,.85); color: #fff; font-size: 15px; font-weight: 400; white-space: nowrap; animation: flash 3.5s ease forwards; pointer-events: none; }
@keyframes flash { 0% { opacity: 0; } 8%, 80% { opacity: 1; } 100% { opacity: 0; } }

/* 앱 설치 안내 */
.app-offer { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.app-offer p { margin: 0; color: var(--muted); }
.app-link { color: #fff; text-align: center; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 22px; text-decoration: none; }
.app-link.quiet { border: 0; color: var(--muted); padding: 4px; min-height: 32px; text-decoration: underline; }
.f-install-box { position: absolute; top: 12px; left: 16px; right: 16px; z-index: 3; }
.f-install-box .app-offer { margin: 0; }
.f-install-box .app-link { background: rgba(0,0,0,.6); }
.f-column .app-offer p { color: #c8c8c8; }

/* 작은 화면(PiP) */
body.pip .f-actions, body.pip .f-self, body.pip .f-voice-tag, body.pip .controls, body.pip .tile.me, body.pip .flash, body.pip .banner, body.pip .panel, body.pip .knock { display: none !important; }
body.pip .f-screen.call::after { display: none; }

.room-title { font-size: 18px; margin: 2px 0 6px; }

/* 관리 화면: 검정 미니멀, 탭 구조 */
.dash { min-height: 100dvh; background: #000; font-weight: 400; }
.dash-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 10px 24px; background: rgba(0,0,0,.9); border-bottom: 1px solid var(--line); }
.dash-head h1 { font-size: 20px; font-weight: 500; margin: 0; white-space: nowrap; }
.tabs { display: flex; gap: 4px; }
.tab { background: none; color: var(--muted); min-height: 44px; padding: 8px 16px; border-radius: 22px; font-size: 15px; }
.tab.on { background: var(--accent-soft); color: var(--accent); }
.dash-main { padding: 20px 24px 40px; }
.dash-note, .dash > .error { padding: 8px 24px 0; margin: 0; }
.dash > .error:empty { display: none; }
.tab-body h2 { font-size: 15px; font-weight: 500; color: var(--muted); margin: 28px 0 10px; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 10px; }
.head-row:first-child { margin-top: 4px; }
.head-row h2 { margin: 0; }
.hero { display: flex; flex-wrap: wrap; gap: 10px; }
.hero button { min-height: 56px; flex: 0 1 220px; border-radius: 28px; font-size: 16px; }
.dash button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.dash .act, .sheet .act { background: var(--panel-2); color: #fff; min-height: 40px; padding: 6px 14px; border-radius: 20px; font-size: 14px; white-space: nowrap; flex: none; }
.dash .act.big { font-size: 16px; }
.more { background: none; color: var(--muted); min-height: 40px; min-width: 40px; padding: 0; border-radius: 20px; font-size: 20px; line-height: 1; flex: none; }
.quiet { background: none; color: var(--muted); font-size: 14px; }
.stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 22px; }
.stats:empty { display: none; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 24px; font-weight: 400; }
.stats span { font-size: 13px; color: var(--muted); }
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.wide-span { grid-column: 1 / -1; }
.rows.wide-span { margin-top: 2px; }
.empty { grid-column: 1 / -1; margin: 4px 0; }
.row-card { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 16px; background: var(--panel); border-radius: 14px; min-width: 0; }
.row-card.faded { opacity: .6; }
.row-main { flex: 1; min-width: 0; }
.row-main strong { display: block; font-weight: 400; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash .meta, .sheet .meta { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.soon { color: #ffb454; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; flex: none; }
.dot.on { background: #1fa34f; }
.dot.idle { background: #6a6a70; }
.fam-card { background: var(--panel); border-radius: 14px; padding: 14px 10px 8px 16px; grid-column: span 1; }
.fam-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.fam-card header strong { flex: 1; font-weight: 400; min-width: 0; }
.fam-side { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.fam-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-2); }
.fam-photo.none { display: grid; place-items: center; font-size: 10px; color: var(--muted); text-align: center; }
.chart { margin-top: 12px; max-width: 900px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.bar { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; min-width: 2px; }
.bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* 아래에서 올라오는 패널 */
.sheet-wrap { position: fixed; inset: 0; z-index: 15; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: min(560px, 100%); max-height: 90dvh; overflow: auto; background: var(--panel); border-radius: 20px 20px 0 0; padding: 16px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheet-up .2s ease-out; }
.sheet header { display: flex; align-items: center; justify-content: space-between; }
.sheet h2 { margin: 0; font-size: 18px; font-weight: 500; }
.sheet button.primary { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.sheet .primary.wide { margin-top: 16px; min-height: 52px; border-radius: 26px; }
.choices { margin-top: 12px; }
.choices-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.choices-row { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { min-height: 40px; padding: 6px 14px; border-radius: 20px; background: var(--panel-2); color: #fff; font-size: 14px; }
.choice.on { background: var(--accent); color: var(--accent-ink); }
.link-result { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: .5; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }

/* 휴대폰: 탭을 아래에 둔다 */
@media (max-width: 640px) {
  .dash-head { position: static; padding: 14px 16px 6px; border: 0; background: none; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; justify-content: space-around; gap: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: #0c0c0d; border-top: 1px solid var(--line); }
  .tab { flex: 1; }
  .dash-main { padding: 8px 16px 90px; }
  .hero button { flex: 1 1 140px; }
  .dash-note, .dash > .error { padding: 6px 16px 0; }
}
.rows:has(> .fam-card) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
.head-end { margin-left: auto; min-height: 44px; padding: 8px 4px; white-space: nowrap; }
.flash.mid { top: 40%; }
.quality-meta { display: flex; flex-direction: column; gap: 2px; }
.hd-check { margin-top: 12px; }
.check-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.check-good { color: var(--ok, #1f8a4c); font-weight: 600; }
.check-verdict { font-weight: 600; }
.flash.short { top: auto; bottom: calc(96px + env(safe-area-inset-bottom)); animation-duration: 2s; }
.request-area { margin-top: 16px; text-align: center; }
.request-area .quiet { min-height: 44px; }
.head-row[hidden] { display: none; }
a.head-end { display: inline-flex; align-items: center; text-decoration: none; }
.dash .act.call, .sheet .act.call { background: #15803d; color: #fff; }
.sheet .act.wide { width: 100%; margin-top: 16px; min-height: 52px; border-radius: 26px; font-size: 16px; }
.recents h2 { margin-top: 28px; }
.dash-main > .recents:first-child h2 { margin-top: 4px; }
.f-recent { position: absolute; top: calc(70% + 48px); left: 50%; transform: translateX(-50%); z-index: 3; max-width: calc(100% - 32px); min-height: 44px; padding: 8px 16px; background: none; color: #a0a0a6; font-size: 16px; font-weight: 400; white-space: nowrap; }
.f-recent[hidden] { display: none; }
.missed { color: #ff6b60; }
.f-log { margin-top: 12px; max-height: 50dvh; overflow: auto; }
.f-log-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.f-log-row .meta { color: var(--muted); font-size: 14px; white-space: nowrap; }
.f-title { top: min(70%, calc(100dvh - 270px)); }
.f-recent { top: calc(min(70%, calc(100dvh - 270px)) + 46px); min-height: 36px; padding: 4px 16px; }
.act.call { display: inline-flex; align-items: center; justify-content: center; }
.recents h2 { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 10px; }

/* 검정과 라벤더: 탭 개편. 초록은 걸기와 받기, 빨강은 끊기와 부재중에만 쓴다 */
.ctl { background: var(--accent-soft); color: var(--accent); }
.ctl.off { background: var(--danger); color: #fff; }
.ctl.leave { width: 84px; height: 64px; border-radius: 32px; color: #fff; }
.ctl.leave svg { width: 30px; height: 30px; }
.controls { background: rgba(0,0,0,.85); }
.tab { position: relative; }
.tab-badge { margin-left: 6px; display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; line-height: 20px; }
.call-round { flex: none; width: 48px; height: 48px; padding: 0; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.call-round svg { width: 22px; height: 22px; }
.avatar-dot { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 17px; }
.avatar-dot.big { width: 64px; height: 64px; font-size: 22px; }
.fav-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.fav-row:empty { display: none; }
.fav { flex: none; width: 76px; padding: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; }
.fav-name { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.call-list .row-card, .recents .row-card { background: none; border-radius: 0; padding: 10px 0; border-bottom: 1px solid #1d1a26; }
.call-list, .recents .rows { gap: 0 24px; }
.tab-body > h2:first-child, .fav-row:empty + h2 { margin-top: 4px; }
.hero .act.big { border: 1px solid #3a3350; background: none; min-height: 56px; border-radius: 28px; }
.dash-head h1 { font-weight: 700; }
.dash .act.accent { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.f-fade { height: 32%; }
.stats + .muted { margin-top: 10px; }
.avatar-dot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.fam-photo-btn { flex: none; width: 48px; height: 48px; min-height: 0; padding: 0; border-radius: 50%; background: none; }
.fam-photo.none { color: var(--accent); }

/* 폴리싱 */
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tab-icon { display: inline-grid; width: 20px; height: 20px; }
.tab-icon svg { width: 20px; height: 20px; }
.tab-badge { margin-left: 2px; }
@media (max-width: 640px) {
  .tab { flex-direction: column; gap: 2px; min-height: 54px; padding: 4px 2px; border-radius: 18px; font-size: 13px; }
  .tab-badge { position: absolute; top: 2px; left: calc(50% + 8px); margin: 0; min-width: 18px; padding: 0 5px; line-height: 18px; font-size: 11px; }
  .dash-main { padding-bottom: 100px; }
}
.callback-list:empty { display: none; }
.callback-list { margin-bottom: 16px; }
.callback-list .row-card { background: var(--accent-soft); }
.empty-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0; }
.empty-state p { color: var(--muted); }
.empty-state button { min-height: 52px; padding: 8px 24px; border-radius: 26px; }
.skeleton { height: 68px; border-radius: 14px; background: var(--panel); animation: skeleton 1.2s ease-in-out infinite alternate; }
@keyframes skeleton { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.f-photo.empty { display: grid; place-items: center; color: var(--accent); font-size: 96px; font-weight: 300; }
.f-clock { position: absolute; top: calc(24px + env(safe-area-inset-top)); left: 20px; z-index: 3; padding: 6px 12px; border-radius: 16px; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; max-width: calc(100% - 140px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pip .f-clock { display: none !important; }
.dash-main > .hero + .recents { margin-top: 8px; }

/* 회의 준비 */
.lobby { height: 100%; overflow-y: auto; background: #000; }
.lobby .preview { aspect-ratio: auto; height: 56dvh; border-radius: 0; }
.lobby .preview .tools { bottom: 14px; gap: 16px; }
.lobby .preview .ctl { width: 56px; height: 56px; }
.lobby .preview .ctl:not(.off) { background: rgba(0,0,0,.7); }
.lobby-body { padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
.lobby-body h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; overflow-wrap: anywhere; }
.lobby-body button[type=submit] { width: 100%; min-height: 60px; margin-top: 14px; border-radius: 30px; background: var(--ok); color: #fff; font-size: 17px; font-weight: 500; }
.lobby-share { width: 100%; min-height: 54px; margin-top: 10px; border-radius: 27px; background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 500; }
.lobby-more { display: flex; gap: 10px; margin-top: 10px; }
.lobby-more button { flex: 1; min-height: 48px; border: 1px solid #3a3350; border-radius: 24px; background: none; font-size: 14px; }
.lobby .error:empty { display: none; }
@media (min-width: 760px) {
  .lobby { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 32px; padding: 32px; align-items: center; }
  .lobby .preview { height: auto; aspect-ratio: 16 / 9; border-radius: 20px; }
  .lobby-body { padding: 0; }
}
.sheet details { margin-top: 12px; }
.sheet details > summary { display: none; }

/* 대기와 끝 */
.f-photo.mirror { transform: scaleX(-1); background: #000; }
.f-photo.ended { background: var(--panel); color: #6f6690; }
.room-end .f-title { font-size: 26px; font-weight: 400; }
.f-status { position: absolute; top: calc(min(70%, calc(100dvh - 270px)) + 44px); left: 16px; right: 16px; margin: 0; text-align: center; color: var(--muted); font-size: 15px; }
.f-circle.soft { background: var(--accent-soft); color: var(--accent); }

/* 회의 통화 */
.call { background: #000; }
.call-top { flex: none; display: flex; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 2px; font-size: 14px; font-variant-numeric: tabular-nums; }
.call-info { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-count { flex: none; color: var(--accent); }
.controls { gap: 12px; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); background: #000; flex-wrap: nowrap; }
.controls .ctl { width: 60px; height: 60px; flex: none; }
.controls .ctl.leave { width: 96px; height: 68px; border-radius: 34px; }
.more-dots { font-size: 22px; line-height: 1; }
.ctl .badge { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 759px) { .controls { justify-content: flex-start; } .controls .ctl.leave { margin-left: auto; } }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.more-item { position: relative; min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px 4px; border-radius: 16px; background: var(--panel-2); font-size: 14px; }
.more-icon { display: grid; width: 24px; height: 24px; color: var(--accent); }
.more-icon svg { width: 24px; height: 24px; }
.more-item .badge { position: absolute; top: 8px; right: 8px; min-width: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; line-height: 20px; }
.more-wait { margin-top: 12px; padding: 8px 14px; border-radius: 16px; background: #211c33; }
.more-wait .row { display: flex; align-items: center; gap: 6px; padding: 6px 0; }
.more-wait .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.pip .call-top, body.pip .sheet-wrap { display: none !important; }
.call > .panel { bottom: calc(96px + env(safe-area-inset-bottom)); }
.ctl.busy { animation: f-breathe 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ctl.busy { animation: none; } }
@media (max-width: 759px) {
  .controls { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .controls .ctl { width: 52px; height: 52px; }
  .controls .ctl.leave { width: 84px; height: 64px; }
}
.f-self.rear { transform: none; }
.f-circle.ghost.small { background: rgba(0,0,0,.45); }

/* 통화 결과와 미화 */
.log-line { display: inline-flex; align-items: center; gap: 4px; }
.log-icon { display: inline-grid; flex: none; width: 15px; height: 15px; }
.log-icon svg { width: 15px; height: 15px; }
.f-recent .log-icon, .f-log .log-icon { width: 18px; height: 18px; }
.f-recent .log-icon svg, .f-log .log-icon svg { width: 18px; height: 18px; }
.f-log .log-line { gap: 8px; }
.call-filter { margin-bottom: 12px; }
.beauty-row { margin-top: 14px; }
.beauty-row .choice { flex: 1; min-height: 52px; border-radius: 26px; font-size: 16px; }
.f-actions.three { gap: 32px; }
.lobby .preview .tools .ctl { background: rgba(0,0,0,.7); }

/* 앱 정보 */
.head-menu { margin-left: 4px; }
span.head-end { display: inline-flex; align-items: center; padding: 0; min-height: 44px; }
.info-rows { margin: 12px 0; }
.info-rows > div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.sheet .app-link { display: block; margin-top: 12px; }
.sheet .info-reload { display: block; width: 100%; margin-top: 12px; min-height: 48px; border-radius: 24px; }
.f-menu { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 4; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 20px; line-height: 1; }

/* 검수 수정 */
body.pip .dialog { display: none !important; }
.f-screen.plain { overflow-y: auto; }
@media (max-width: 355px) {
  .controls { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .controls .ctl { width: 46px; height: 46px; }
  .controls .ctl.leave { width: 72px; height: 56px; }
}

/* 가족 통화 조작 */
.f-tools { position: absolute; left: 50%; transform: translateX(-50%); width: min(100%, 300px); bottom: calc(112px + env(safe-area-inset-bottom)); z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; transition: opacity .2s; }
.f-tool { position: relative; width: 56px; height: 56px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; }
.f-tool svg { width: 24px; height: 24px; }
.f-tool.off { background: var(--danger); }
.f-tool.on { background: var(--accent); color: var(--accent-ink); }
.f-tool.busy { animation: f-breathe 1s ease-in-out infinite; }
.f-screen.tools-hidden .f-tools { opacity: 0; pointer-events: none; }
.f-media-help { position: absolute; top: calc(66px + env(safe-area-inset-top)); left: 16px; right: 112px; z-index: 4; min-height: 48px; padding: 8px 12px; border-radius: 16px; background: rgba(220,38,38,.85); color: #fff; font-size: 14px; font-weight: 400; text-align: left; }
.f-media-help[hidden] { display: none; }
.f-ring-tip { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 16px; right: 68px; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 14px; border-radius: 18px; background: rgba(0,0,0,.6); }
.f-ring-tip p { margin: 0; font-size: 17px; line-height: 1.4; color: #fff; }
.f-ring-tip button { min-height: 44px; padding: 8px 16px; border-radius: 22px; background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 500; }
.howto { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 10px; font-size: 17px; line-height: 1.5; }
.lobby-how { width: 100%; margin-top: 8px; min-height: 48px; border-radius: 24px; background: var(--danger); color: #fff; font-weight: 500; }
.lobby-how[hidden] { display: none; }
.alone-note { position: absolute; left: 24px; right: 24px; top: 62%; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: rgba(0,0,0,.6); text-align: center; pointer-events: none; }
.alone-note button { pointer-events: auto; }
.alone-note p { margin: 0; font-size: 17px; line-height: 1.5; }
.alone-note[hidden] { display: none; }
.f-notify { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(190px + env(safe-area-inset-bottom)); z-index: 3; min-height: 44px; padding: 8px 16px; border-radius: 22px; background: rgba(0,0,0,.55); color: #fff; font-size: 15px; font-weight: 400; white-space: nowrap; }
.f-muted { position: absolute; top: calc(66px + env(safe-area-inset-top)); left: 20px; z-index: 3; padding: 6px 12px; border-radius: 16px; background: var(--danger); color: #fff; font-size: 14px; font-weight: 400; }
.f-self.cam-off { visibility: hidden; }
body.pip .f-tools, body.pip .f-muted { display: none !important; }
@media (prefers-reduced-motion: reduce) { .f-tool.busy { animation: none; } .f-tools { transition: none; } }
@media (max-width: 355px) { .f-tools { gap: 8px; } .f-tool { width: 50px; height: 50px; } }
.f-screen.peer-cam-off .f-voice-tag { opacity: 1; }

/* 통화 중 사진과 아이 잠금 */
.f-shot { position: absolute; inset: 0; z-index: 4; background: #fff; pointer-events: none; animation: f-shot .3s ease-out forwards; }
@keyframes f-shot { from { opacity: .8; } to { opacity: 0; } }
.f-lock { position: absolute; inset: 0; z-index: 6; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.f-screen.locked .f-tools, .f-screen.locked .f-actions { display: none; }
.f-unlock { position: absolute; left: 50%; bottom: calc(44px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 26px; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; font-weight: 400; white-space: nowrap; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; overflow: hidden; transition: opacity .3s; }
.f-unlock svg { width: 22px; height: 22px; position: relative; pointer-events: none; }
.f-unlock span { position: relative; pointer-events: none; }
.f-unlock.dim { opacity: .35; }
.f-unlock::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.f-unlock.holding::before { transform: scaleX(1); transition: transform 2s linear; }
.f-unlock.holding { color: var(--accent-ink); opacity: 1; }
body.pip .f-lock { display: none !important; }
@media (prefers-reduced-motion: reduce) { .f-shot { animation: none; opacity: 0; } }

/* 폰 상태 */
.phone-warn { display: block; min-height: 32px; margin-top: 4px; padding: 2px 0; background: none; color: #ffb27a; font-size: 13px; font-weight: 400; text-align: left; }
.phone-bad { color: #ffb27a; }
.phone-head { margin: 20px 0 4px; font-size: 15px; font-weight: 400; }

/* 전화 앱처럼: 바로 걸기와 연락처 */
.quick-row { padding-top: 4px; margin-bottom: 16px; }
.quick .avatar-dot { position: relative; }
.quick-badge { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; border: 2px solid #000; }
.quick-badge svg { width: 14px; height: 14px; }
.row-link { display: block; min-height: 0; padding: 0; background: none; color: inherit; font: inherit; font-weight: 400; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-link.missed { color: var(--danger); }
.people-search { width: 100%; margin-bottom: 12px; }
.person-head { display: flex; justify-content: center; margin: 4px 0 16px; }
.person-del { color: var(--danger); margin-top: 16px; }

/* A안: 지금 연결 가능 */
.live-head { color: #86efac; }
.live-list .row-card { background: #102a1a; }
.live-list .row-card .meta { color: #86efac; }
.wait-head { color: #cfc4ff; }
.avatar-dot.online { position: relative; }
.avatar-dot.online::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2px solid #000; }
.people-group { margin: 16px 0 6px; font-size: 14px; font-weight: 400; color: var(--muted); }
.people-group:first-child { margin-top: 0; }

/* 통화 화면: 영상을 가득 채우고 버튼은 눌렀을 때만 반투명하게 */
.f-screen.call .f-tool { background: rgba(0,0,0,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.f-screen.call .f-tool.off { background: rgba(220,38,38,.75); }
.f-screen.call .f-tool.on { background: rgba(185,167,255,.75); }
.f-screen.call > .f-actions { bottom: calc(24px + env(safe-area-inset-bottom)); transition: opacity .2s; }
.f-screen.call > .f-actions .f-circle.end { background: rgba(220,38,38,.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.f-screen.call::after { background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.35)); transition: opacity .2s; pointer-events: none; }
.f-screen.call .f-clock { transition: opacity .2s; }
.f-screen.call.tools-hidden > .f-actions, .f-screen.call.tools-hidden > .f-clock, .f-screen.call.tools-hidden::after { opacity: 0; pointer-events: none; }
.f-screen.call .f-self { touch-action: none; cursor: grab; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.f-screen.call.swapped .f-self { inset: 0; width: 100%; height: 100%; border-radius: 0; z-index: 0; box-shadow: none; touch-action: auto; cursor: auto; }
.f-screen.call.swapped .f-remote { inset: auto; top: calc(24px + env(safe-area-inset-top)); right: 20px; width: 84px; height: 112px; border-radius: 14px; z-index: 2; touch-action: none; cursor: grab; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
body.pip .f-screen.call.swapped .f-remote { inset: 0 !important; width: 100%; height: 100%; border-radius: 0; }

/* 통화 버튼: 아래 막대와 더보기 */
.f-screen.call > .f-bar { left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom)); gap: 0; align-items: flex-start; justify-content: space-around; padding: 10px 6px 26px; border-radius: 40px; background: rgba(0,0,0,.34); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.f-bar .f-tool { width: 52px; height: 52px; }
.f-bar .f-btn { position: relative; padding: 0; min-height: 0; background: none; }
.f-bar .f-circle.small { width: 52px; height: 52px; }
.f-bar .f-circle.small svg { width: 24px; height: 24px; }
.f-bar .f-tool::after, .f-bar .f-btn::after, .f-tools .f-tool::after { content: attr(data-short); position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 3px; color: #fff; font-size: 12px; font-weight: 400; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.f-screen.call .f-tools { display: none; left: 12px; right: 12px; width: auto; transform: none; bottom: calc(116px + env(safe-area-inset-bottom)); flex-wrap: nowrap; justify-content: space-around; padding: 10px 6px 28px; border-radius: 28px; background: rgba(0,0,0,.34); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.f-screen.call .f-tools.open { display: flex; }
.f-screen.call .f-tools .f-tool { width: 48px; height: 48px; }
.f-screen.call.tools-hidden .f-tools { display: none; }
@media (max-width: 355px) { .f-bar .f-tool, .f-bar .f-circle.small { width: 46px; height: 46px; } }

/* 사용성 점검 수정 */
body { word-break: keep-all; overflow-wrap: break-word; }
.avatar-dot { position: relative; }
.avatar-dot img { position: absolute; inset: 0; }
.tab-body h2.live-head { color: #86efac; }
.tab-body h2.wait-head { color: #cfc4ff; }
.sheet .act.person-del { color: #ff8a8a; }
.flash { width: max-content; white-space: normal; text-align: center; }
.f-back { right: auto; left: 12px; font-size: 28px; }
.f-endask { display: flex; align-items: flex-end; justify-content: center; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); background: rgba(0,0,0,.3); }
.f-endask-box { width: min(100%, 360px); padding: 24px 16px 20px; border-radius: 28px; background: rgba(20,18,28,.88); text-align: center; }
.f-endask-box h1 { margin: 0 0 20px; font-size: 24px; font-weight: 400; }
.f-endask-box .f-actions { position: static; gap: 56px; }
body.pip .f-endask { display: none !important; }

/* 앱 사용 요청 */
.f-use { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap; background: rgba(0,0,0,.45); border-radius: 22px; color: #fff; }
.use-wait { margin-top: 12px; text-align: center; }
.f-install-box { right: 68px; }
.f-install { top: 68px; }

/* 앱은 글씨 크기를 고정하므로 통화 버튼 이름을 처음부터 읽기 좋게 둔다 */
.f-bar .f-tool::after, .f-bar .f-btn::after, .f-tools .f-tool::after { font-size: 14px; }
.f-screen.call > .f-bar { padding-bottom: 30px; }
.f-screen.call .f-tools { padding-bottom: 32px; bottom: calc(120px + env(safe-area-inset-bottom)); }
