/* Wisp. 검은 바탕에 유리처럼 비치는 카드, 굵고 촘촘한 큰 글씨, 라임(진행·강조)과 오렌지(행동) 두 가지 색.
   OKX 앱 애니메이션(유리 질감, 라임 강조, 큰 숫자)과 Payonee 리디자인(둥근 카드, 오렌지 그라데이션, 무지개 고리)을 참고했다. */
:root {
  color-scheme: dark;
  --bg: #070707;
  --surface: #111111;
  --surface-2: #181818;
  --surface-3: #222222;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f4f4f2;
  --muted: #8b8b88;
  --dim: #5d5d5b;
  --lime: #c6f35e;
  --lime-ink: #0b1000;
  --orange: #ff5a1f;
  --orange-2: #ffae1f;
  --green: #22c27a;
  --danger: #ff6b5e;
  --radius: 22px;
  --ring: conic-gradient(from 210deg, #c6f35e, #3fe0c5, #6a8bff, #c56bff, #ff5a8a, #ff8a1f, #c6f35e);
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 14px/1.5 "SF Pro Text", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
}
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }

/* 버튼과 입력 */
button, select, input, textarea { font: inherit; color: var(--text); }
button {
  cursor: pointer; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), color .2s;
}
button:hover { background: var(--surface-3); border-color: var(--line-2); }
button:active { transform: scale(.97); }
button.primary { background: var(--orange); border-color: transparent; color: #160700; font-weight: 650; }
button.primary:hover { filter: brightness(1.06); }
button.primary.big { padding: 13px 26px; font-size: 15px; }
button.live { background: #ff3b3b; border-color: transparent; color: #fff; font-weight: 600; }
button.link { background: none; border: 0; padding: 0; color: var(--muted); }
button.link:hover { color: var(--text); }
button.icon { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; }
input, textarea, select {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  transition: border-color .2s, background .2s; outline: none;
}
input:focus, textarea:focus { border-color: rgba(198, 243, 94, .45); background: #1b1d17; }
textarea { line-height: 1.6; resize: vertical; }
::placeholder { color: var(--dim); }
input[type=range] { accent-color: var(--lime); }

/* 위쪽 줄 */
#bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; min-height: 48px; flex: none; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -.03em; }
.logo.big { font-size: 22px; gap: 12px; }
/* 브랜드 표시: 무지개 고리. 바람에 흩날리는 연기(wisp)처럼 머리는 굵고 꼬리로 갈수록 가늘어진다 (public/logo.png, 앱 아이콘과 같은 그림) */
.mark { width: 20px; height: 20px; background: url(/try/logo.png) center / contain no-repeat; }
.logo.big .mark { width: 34px; height: 34px; }
@keyframes spin { to { transform: rotate(1turn); } }
#status { margin-left: auto; color: var(--muted); font-size: 13px; max-width: 60%; text-align: right; }
#status.error { color: var(--danger); }
.badge { padding: 3px 10px; border-radius: 999px; background: rgba(198, 243, 94, .12); color: var(--lime); font-size: 12px; font-weight: 600; }

/* 화면은 둘 중 하나만 보인다. body.meeting이면 미팅, 아니면 홈 */
.app-only, .meeting-only { display: none; }
body.meeting .meeting-only { display: initial; }
body:not(.app) .app-only { display: none !important; }
body.meeting #home, body:not(.meeting) #meeting { display: none !important; }

/* 홈: 왼쪽 메뉴 + 오른쪽 화면 */
#home { flex: 1; min-height: 0; display: grid; grid-template-columns: 232px 1fr; }
#nav { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 6px 14px 18px; min-height: 0; }
#menu { display: flex; flex-direction: column; gap: 2px; }
#menu button {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; border-radius: 14px;
  background: none; border: 1px solid transparent; color: var(--muted); font-size: 14.5px; font-weight: 500;
}
#menu button:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
#menu button.on { color: var(--text); background: var(--surface-2); border-color: var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
#menu button.on svg { color: var(--lime); }
.nav-foot { display: flex; flex-direction: column; gap: 10px; }
/* 미팅 시작: 무지개 고리가 감싼 둥근 버튼 (Payonee의 가운데 버튼) */
.start {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: var(--text); color: #0a0a0a; border: 0; font-weight: 700; font-size: 15px; letter-spacing: -.02em;
}
.start:hover { background: #fff; }
.start .ring { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--lime); }
.start .ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ring); animation: spin 4s linear infinite; }
.start .ring::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #0a0a0a; }
.start .ring svg { position: relative; z-index: 1; fill: currentColor; stroke: none; width: 16px; height: 16px; margin-left: 2px; }

#views { min-height: 0; overflow-y: auto; padding: 8px 40px 48px 28px; scroll-behavior: smooth; }
.view { display: none; flex-direction: column; gap: 18px; max-width: 920px; }
.view.on { display: flex; animation: fade .2s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eyebrow { margin: 18px 0 -8px; color: var(--muted); font-size: 13px; font-weight: 500; }
h1 { margin: 0; font: 700 44px/1.06 "SF Pro Display", -apple-system, "Apple SD Gothic Neo", sans-serif; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
h3 small, .field small { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.grad { color: inherit; }
.lead { margin: -4px 0 0; color: var(--muted); font-size: 15px; max-width: 620px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }

/* 카드: 위쪽 모서리에 빛이 맺힌 유리 판 (OKX) */
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.card p { margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; color: var(--text); font-weight: 600; font-size: 13.5px; }
.field :is(textarea, input) { width: 100%; font-weight: 400; font-size: 14px; }

/* 오늘: 다음 일정 카드. 주황빛 덩어리가 번지는 카드 (Payonee 카드) */
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); }
.hero .orb { display: none; }
.hero-body { position: relative; display: flex; flex-direction: column; gap: 12px; }
.hero-body small { color: rgba(255, 255, 255, .7); font-weight: 500; }
.hero-body .big { font: 700 52px/1 "SF Pro Display", -apple-system, sans-serif; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.hero-body strong { font-size: 20px; letter-spacing: -.03em; }
.hero-body .meta { color: rgba(255, 255, 255, .72); }
.hero-body .row { margin-top: 6px; }
.hero-body button:not(.primary) { background: rgba(0, 0, 0, .45); backdrop-filter: blur(10px); }

/* 상태 타일: 큰 숫자 하나와 짧은 설명 (OKX의 큰 숫자) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface);
}
.tile:hover { transform: translateY(-2px); }
.tile small { color: var(--muted); font-size: 12.5px; }
.tile strong { font: 700 26px/1.15 "SF Pro Display", -apple-system, sans-serif; letter-spacing: -.04em; }
.tile span { color: var(--muted); font-size: 12.5px; }
.tile .ok { color: var(--lime); }
.tile .warn { color: var(--orange-2); }

/* 고르는 줄: 아이콘, 제목, 설명 (OKX의 모드 선택) */
.options { display: flex; flex-direction: column; gap: 8px; }
.options.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.options.trio .option { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
@media (max-width: 620px) { .options.trio { grid-template-columns: 1fr; } .options.trio .option { flex-direction: row; align-items: center; } }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.option > span:not(.ico) { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.option strong { font-size: 14.5px; letter-spacing: -.02em; }
.option small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.option .go { color: var(--dim); transition: transform .25s var(--ease), color .2s; }
.option:hover .go { color: var(--lime); transform: translate(2px, -2px); }
.option.static { cursor: default; }
.option.static:hover { background: var(--surface); }
.option.compact { padding: 10px 12px; border-radius: 16px; gap: 10px; }
.option.compact strong { font-size: 13px; }
.option.compact small { font-size: 11.5px; }
.option.wide { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); }
.ico { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--text); font-weight: 700; font-size: 13px; }
.ico.lime { background: var(--lime); color: var(--lime-ink); }
.option.compact .ico { width: 32px; height: 32px; border-radius: 10px; background: rgba(198, 243, 94, .12); color: var(--lime); }
.brand-google { background: #fff; color: #4285f4; font-size: 17px; }
.brand-ms { background: linear-gradient(135deg, #f25022 0 50%, #7fba00 0 100%); color: #fff; }
.brand-apple { background: #f4f4f2; color: #ff3b30; }

/* 목록: 지난 미팅, 일정 */
.list { display: flex; flex-direction: column; gap: 8px; }
.session {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.session strong { font-size: 14.5px; letter-spacing: -.02em; }
.session span { font-size: 12.5px; color: var(--muted); }
.session.on { border-color: rgba(198, 243, 94, .35); background: #141710; }
.session .when { color: var(--lime); font-variant-numeric: tabular-nums; font-weight: 600; }
.list > p { margin: 0; padding: 18px; border-radius: 18px; border: 1px dashed var(--line-2); color: var(--muted); }

/* 미팅 준비: 칸을 나누는 버튼(segmented)과 켜고 끄는 스위치 */
.settings { display: flex; flex-direction: column; gap: 14px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.setting > span { display: flex; flex-direction: column; font-weight: 600; font-size: 13.5px; }
.setting > span small { color: var(--muted); font-weight: 400; font-size: 12px; }
select[data-seg] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
/* 쓰는 자리 고르기 */
.purposes { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.purposes button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 13px; border-radius: 14px; text-align: start; background: #0c0c0c; border: 1px solid var(--line); }
.purposes button strong { font-size: 13.5px; letter-spacing: -.01em; }
.purposes button small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.purposes button.on { border-color: rgba(198, 243, 94, .55); background: rgba(198, 243, 94, .07); }
.purposes button.on strong { color: var(--lime); }
.purposes.small { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.purposes.small button { padding: 8px 10px; }
.purposes.small button small { display: none; }
#welcome .eyebrow { margin: 18px 0 0; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: #0c0c0c; border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 14px; color: var(--muted); font-size: 13px; font-weight: 500; }
.seg button:hover { color: var(--text); background: none; }
.seg button.on { background: var(--surface-3); color: var(--text); }
.switches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 16px; background: #0d0d0d; border: 1px solid var(--line); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { flex: none; position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); transition: background .25s var(--ease); margin-top: 1px; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8b8b88; transition: transform .25s var(--ease), background .25s; }
.switch input:checked + i { background: var(--lime); }
.switch input:checked + i::after { transform: translateX(16px); background: #0b1000; }
.switch input:focus-visible + i { outline: 2px solid var(--lime); outline-offset: 2px; }
.switch span { display: flex; flex-direction: column; gap: 2px; }
.switch strong { font-size: 13.5px; font-weight: 600; }
.switch small { color: var(--muted); font-size: 12px; line-height: 1.4; }

/* 캘린더와 지난 미팅: 두 칸 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.split .col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.split.history { grid-template-columns: minmax(240px, 300px) 1fr; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.connection { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #10140b; border: 1px solid rgba(198, 243, 94, .18); font-size: 13.5px; }
.connection::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); flex: none; }
.connection.failed { background: #170d0c; border-color: rgba(255, 107, 94, .25); }
.connection.failed::before { background: var(--danger); box-shadow: 0 0 10px var(--danger); }
.connection .error { color: var(--danger); font-size: 12.5px; }
.connection .spacer { flex: 1; }
.connection button { padding: 5px 12px; font-size: 12.5px; }
.spacer { flex: 1; }
#loginLink a { color: var(--lime); }

/* 지난 미팅 상세 */
#sessionView { gap: 18px; }
#sessionView .head { display: flex; flex-direction: column; gap: 4px; }
#sessionView h2 { font-size: 24px; letter-spacing: -.035em; line-height: 1.2; }
#sessionView section { display: flex; flex-direction: column; gap: 8px; }
#sessionView h3 { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: none; }
#sessionView ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
#sessionView li::marker { color: var(--lime); }
#sessionView audio { width: 100%; height: 36px; }
#sessionView .working:empty { display: none; }
#sessionView .study { padding: 16px 18px; gap: 14px; background: #0d0d0d; border-radius: 18px; border: 1px solid var(--line); }
#sessionView .said { color: var(--muted); text-decoration: line-through; }
.empty-detail { min-height: 160px; justify-content: center; }
.split.history:has(#sessionView:not([hidden])) .empty-detail { display: none; }
.lines { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.line { display: grid; grid-template-columns: auto 2.6em 1fr; gap: 10px; align-items: baseline; }
.line .time { padding: 2px 8px; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--lime); background: rgba(198, 243, 94, .08); border: 0; }
.line .time:disabled { color: var(--muted); background: none; cursor: default; }
.line .who { color: var(--muted); font-size: 12px; }
.line.me .who { color: var(--orange-2); }
.line .tr { color: #b7d98a; font-size: .93em; }

/* 처음 실행 소개 */
#welcome { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 40px; background: var(--bg); animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }
.welcome-body { display: flex; flex-direction: column; gap: 22px; max-width: 620px; }
.welcome-body > * { animation: rise .6s var(--ease) both; }
.welcome-body > :nth-child(2) { animation-delay: .08s; } .welcome-body > :nth-child(3) { animation-delay: .16s; } .welcome-body > :nth-child(4) { animation-delay: .24s; } .welcome-body > :nth-child(5) { animation-delay: .32s; }
.welcome-body h1 { font-size: 56px; }
.welcome-body .ico { font-variant-numeric: tabular-nums; color: var(--lime); background: rgba(198, 243, 94, .1); }

/* 미팅 */
#meeting { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 2fr) 3fr; }
#meeting section { display: flex; flex-direction: column; min-height: 0; padding: 14px 18px; gap: 10px; }
/* 체험 미팅의 상대 영상. 창 높이의 3분의 1쯤만 쓴다(대화가 가려지지 않게). 듣는 장면 위에 말하는 장면이 겹쳐 뜬다 */
#demoStage { position: relative; flex: none; align-self: center; width: min(100%, calc(32vh * 16 / 9)); min-width: min(100%, 240px); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0c0c0c center / cover no-repeat; border: 1px solid var(--line); transition: box-shadow .2s ease; }
#demoStage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#demoStage #stageClip { opacity: 0; transition: opacity .25s ease; }
#demoStage.speaking #stageClip { opacity: 1; }
#demoStage.speaking { box-shadow: 0 0 0 2px rgba(198, 243, 94, .75); }
/* 실제 사람이 아니라는 표시(만들어 낸 영상임을 알린다) */
#demoStage .stage-note { position: absolute; right: 8px; top: 8px; padding: 2px 7px; border-radius: 7px; background: rgba(0, 0, 0, .5); color: rgba(255, 255, 255, .82); font-size: 10.5px; font-weight: 500; }
#demoStage #stageName { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 7px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600; }
#transcriptPanel { border-right: 1px solid var(--line); }
#transcript { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
/* 채팅처럼 한 문장이 버블 하나. 상대는 왼쪽, 나는 오른쪽 */
.turn { max-width: 88%; align-self: flex-start; padding: 8px 13px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); border: 1px solid var(--line); animation: pop .3s var(--ease) both; }
.turn.live { animation: none; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.turn.me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: rgba(255, 90, 31, .14); border-color: rgba(255, 138, 31, .2); }
.turn.interim { opacity: .6; }
.turn .tr { color: #c7ea8c; margin-top: 3px; font-size: .93em; }
.turn .tr:empty { display: none; }
.turn.note { align-self: flex-end; border-radius: 14px; background: none; border: 1px dashed var(--muted); color: var(--muted); font-size: .93em; }
.turn.note::before { content: var(--note-label, '하고 싶은 말') ' · '; }
#manual, #say { display: flex; gap: 8px; }
:is(#manual, #say) input { flex: 1; min-width: 0; border-radius: 999px; padding: 8px 14px; }
#tabs { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: #0c0c0c; border: 1px solid var(--line); align-self: flex-start; }
#tabs button { padding: 4px 12px; font-size: 12.5px; color: var(--muted); border: 0; background: none; }
#tabs button.on { color: var(--text); background: var(--surface-3); }
#tabs button.fresh::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-start: 6px; border-radius: 50%; background: var(--lime); vertical-align: 2px; }
#liveSummary { flex: 1; overflow-y: auto; display: none; flex-direction: column; gap: 6px; }
#liveSummary strong { font-size: 15px; letter-spacing: -.02em; }
#liveSummary h4 { margin: 8px 0 0; font-size: 12px; color: var(--lime); font-weight: 600; }
#liveSummary ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
#transcriptPanel.live-view #transcript { display: none; }
#transcriptPanel.live-view #liveSummary { display: flex; }
/* 체험 미팅 안내 줄 */
#demoBar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 16px; background: rgba(198, 243, 94, .08); border: 1px solid rgba(198, 243, 94, .2); font-size: 13px; }
#demoBar #demoStep { color: var(--lime); font-weight: 700; font-variant-numeric: tabular-nums; }
#demoBar #demoHint { flex: 1 1 260px; min-width: 200px; }
#demoBar button { padding: 5px 14px; font-size: 12.5px; }
#demoNext.count { position: relative; overflow: hidden; }
#demoNext.count::after { content: ''; position: absolute; inset: auto 0 0 0; height: 3px; background: rgba(0, 0, 0, .5); transform-origin: left center; animation: wait var(--wait, 3s) linear forwards; }
[dir="rtl"] #demoNext.count::after { transform-origin: right center; }
@keyframes wait { from { transform: scaleX(1); } to { transform: scaleX(0); } }
#answerPanel { overflow-y: auto; }
#answer { font-size: 20px; line-height: 1.65; letter-spacing: -.01em; }
#answer p { margin: 0 0 .8em; }
#answer strong { color: var(--lime); font-weight: 650; }
/* 답변이 내 언어가 아닐 때: 구절마다 발음이 바로 밑에, 해석은 문장 아래에 붙는다. 구절 사이 간격이 끊어 읽는 자리다 */
#answer .chunk { display: inline-flex; flex-direction: column; vertical-align: top; margin: 0 .5em .3em 0; line-height: 1.3; }
#answer .chunk small { font-size: .6em; color: #a7a7a3; }
#answer .gloss { display: block; font-size: .68em; line-height: 1.45; color: #c7ea8c; }
#actions { display: flex; flex-wrap: wrap; gap: 6px; }
#actions button { padding: 6px 13px; font-size: 13px; }
#directions { display: flex; flex-wrap: wrap; gap: 6px; }
#directions:empty { display: none; }
#directions button { font-size: 13px; padding: 6px 13px; border-color: var(--line-2); animation: pop .35s var(--ease) both; }
#directions button:nth-child(2) { animation-delay: .06s; } #directions button:nth-child(3) { animation-delay: .12s; }
#directions button.on { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); font-weight: 600; }
#history { color: var(--muted); }
details.card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
details.card > summary::-webkit-details-marker { display: none; }
details.card .chev { color: var(--muted); transition: transform .25s var(--ease); }
details.card[open] .chev { transform: rotate(180deg); }
details.card:not([open]) { gap: 0; }
#history summary { cursor: pointer; }
#history article { border-top: 1px solid var(--line); padding: 10px 0; }
#history h4 { margin: 0 0 4px; font-size: 13px; color: var(--text); }
body > #answerPanel { height: 100%; }

/* 좁은 창: 메뉴를 아이콘만 남긴다 */
@media (max-width: 860px) {
  #home { grid-template-columns: 76px 1fr; }
  #menu button { justify-content: center; padding: 12px; }
  #menu button span, .nav-foot .option, .start > span:last-child { display: none; }
  .start { padding: 6px; justify-content: center; }
  #views { padding: 8px 20px 40px 8px; }
  .tiles, .split, .split.history, .switches { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}

/* 데스크톱 앱. 창 자체는 항상 투명하게 만들어 두고, 보이는 배경은 여기서 칠한다.
   홈은 불투명하게 칠해 일반 창처럼 보이고, 미팅 중에만 --alpha만큼 비치게 한다. */
html:has(body.app) { background: transparent; }
body.app { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); }
body.app .web-only { display: none !important; }
body.app .app-only:not(.meeting-only), body.app.meeting .app-only { display: initial; }
body.app .switch.app-only { display: flex; }
body.app #bar, body.app #nav { -webkit-app-region: drag; }
body.app :is(#bar, #nav) :is(button, select, input, label, a) { -webkit-app-region: no-drag; }

body.app.meeting { background: rgba(7, 7, 7, var(--alpha, .6)); backdrop-filter: blur(18px) saturate(1.2); }
body.app.meeting #bar { padding: 6px 10px; gap: 8px; font-size: 12px; min-height: 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
body.app.meeting :is(button, select) { padding: 4px 11px; font-size: 12.5px; }
body.app.meeting :is(button:not(.primary, .live, .on), select) { background: rgba(24, 24, 24, .6); }
body.app.meeting .logo { font-size: 13px; }
body.app.meeting .mark { width: 14px; height: 14px; }
body.app.meeting :is(#status, #history) { color: #cfcfcb; text-shadow: 0 1px 2px #000; }
body.app.meeting #alpha { width: 70px; padding: 0; }
body.app.meeting #meeting { grid-template-columns: 1fr; grid-template-rows: minmax(0, var(--top, 50%)) 9px minmax(0, 1fr); }
body.app.meeting #meeting section { padding: 8px 14px; gap: 8px; }
body.app.meeting #transcriptPanel { border-right: 0; }
body.app.meeting #transcript { gap: 5px; }
body.app.meeting .turn { padding: 5px 11px; background: rgba(30, 30, 30, .78); text-shadow: 0 1px 2px #000; }
body.app.meeting .turn.me { background: rgba(110, 40, 12, .7); }
body.app.meeting .turn.note { background: none; color: #cfcfcb; border-color: rgba(207, 207, 203, .5); }
body.app.meeting #say input { padding: 4px 12px; background: rgba(24, 24, 24, .6); }
body.app.meeting #answer { font-size: 18px; text-shadow: 0 1px 3px #000, 0 0 8px #000; }
body.app.meeting #demoBar { padding: 6px 10px; font-size: 12px; }
/* 여러 사람 구분: 상대가 둘 이상일 때만 이름표가 보인다 */
.turn .speaker { display: none; }
body.many-speakers .turn .speaker { display: block; margin: -2px 0 4px; padding: 0; border: 0; background: none; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; color: var(--sc, var(--lime)); cursor: text; }
body.many-speakers .turn .speaker:hover { text-decoration: underline dotted; }
body.many-speakers .turn.them[data-speaker] { border-left: 2px solid var(--sc, var(--lime)); }
.turn[data-color="0"] { --sc: #c6f35e; } .turn[data-color="1"] { --sc: #6ab8ff; } .turn[data-color="2"] { --sc: #ff8a5c; }
.turn[data-color="3"] { --sc: #c58bff; } .turn[data-color="4"] { --sc: #3fe0c5; } .turn[data-color="5"] { --sc: #ffd25e; }
.turn .speaker-name { display: block; width: 12em; margin: -2px 0 4px; padding: 2px 6px; font-size: 12px; border-radius: 6px; }
#actions #casual.on { background: rgba(198, 243, 94, .14); border-color: rgba(198, 243, 94, .5); color: var(--lime); }
/* Wisp 계정 */
.account-line { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 0; font-size: 15px; }
.account-line strong { color: var(--lime); }
/* 체험 미션 */
#demoBar .mission-chip { background: rgba(0, 0, 0, .35); border: 1px solid rgba(198, 243, 94, .25); color: var(--muted); }
#demoBar .mission-chip b { color: var(--lime); font-variant-numeric: tabular-nums; }
#demoBar .mission-chip.pop { animation: pop .6s var(--ease); }
@keyframes pop { 30% { transform: scale(1.06); } }
.mission-list { list-style: none; margin: 6px 0 0; padding: 8px 10px; display: grid; gap: 4px; border-radius: 14px; background: rgba(12, 12, 12, .92); border: 1px solid var(--line); font-size: 12.5px; }
.mission-list li { display: flex; gap: 8px; align-items: baseline; color: var(--muted); }
.mission-list li::before { content: ''; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--dim); transform: translateY(1px); }
.mission-list li.done { color: var(--text); }
.mission-list li.done::before { border-color: var(--lime); background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%230b1000' stroke-width='1.8'/%3E%3C/svg%3E") center / 10px no-repeat; }
/* 결과 화면: 미션은 이름을 늘어놓지 않고 점 일곱 개로(이룬 것만 켜진다. 이름은 올려 두면 뜬다) */
.mission-list.static { display: flex; align-items: center; gap: 8px; background: var(--surface); padding: 12px 16px; }
.mission-list.static::before { content: attr(data-label); margin-inline-end: 6px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.mission-list.static li { font-size: 0; gap: 0; }
.mission-list.static li::before { width: 14px; height: 14px; transform: none; }
/* 권한 안내 */
#permSheet, #feedbackSheet, #signinSheet, #voiceSheet, #demoPick { position: fixed; inset: 0; z-index: 12; display: grid; place-items: center; padding: 32px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(10px); }
#permSheet .sheet, #feedbackSheet .sheet, #signinSheet .sheet, #voiceSheet .sheet, #demoPick .sheet { position: relative; width: min(520px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: rise .35s var(--ease) both; }
#permSheet h2, #feedbackSheet h2, #signinSheet h2, #voiceSheet h2, #demoPick h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
#permSheet .close, #feedbackSheet .close, #signinSheet .close, #voiceSheet .close, #demoPick .close { position: absolute; top: 14px; right: 14px; padding: 4px 9px; border: 0; background: none; color: var(--muted); }
.perm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.perm-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #0c0c0c; border: 1px solid var(--line); }
.perm-list li > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.perm-list strong { font-size: 14px; }
.perm-list small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.perm-list .state { flex: none; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); }
.perm-list .state.granted { color: var(--lime); border-color: rgba(198, 243, 94, .4); }
.perm-list .state.denied, .perm-list .state.restricted { color: var(--danger); border-color: rgba(255, 107, 94, .4); }
/* 체험을 마친 화면 */
#demoDone { position: fixed; inset: 0; z-index: 11; display: grid; place-items: center; padding: 40px; overflow: auto; background: var(--bg); }
#demoDone h1 { font-size: 44px; }
.done-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.done-stats div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.done-stats strong { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.done-stats small { color: var(--muted); font-size: 12.5px; }
#doneReward { color: var(--lime); }

/* 대화와 답변 사이 구분선: 가운데 짧은 막대를 끌어 높이를 나눈다 */
#split { display: none; }
body.app.meeting #split { display: block; position: relative; cursor: row-resize; -webkit-app-region: no-drag; border-top: 1px solid rgba(255, 255, 255, .07); }
body.app.meeting #split::after { content: ''; position: absolute; left: 50%; top: 2px; width: 44px; height: 4px; margin-left: -22px; border-radius: 4px; background: rgba(255, 255, 255, .22); transition: background .2s; }
body.app.meeting #split:hover::after, body.app.meeting #split.dragging::after { background: var(--lime); }

/* 창 크기 손잡이: 가장자리 6px, 모서리 16px. 보이지 않지만 마우스를 올리면 커서가 바뀐다.
   미팅 창에서는 오른쪽 아래 모서리에 작은 표시를 둬서 끌 수 있다는 걸 알린다 */
#grips i { position: fixed; z-index: 50; -webkit-app-region: no-drag; }
#grips [data-edge=n], #grips [data-edge=s] { left: 16px; right: 16px; height: 6px; cursor: ns-resize; }
#grips [data-edge=n] { top: 0; } #grips [data-edge=s] { bottom: 0; }
#grips [data-edge=e], #grips [data-edge=w] { top: 16px; bottom: 16px; width: 6px; cursor: ew-resize; }
#grips [data-edge=e] { right: 0; } #grips [data-edge=w] { left: 0; }
#grips [data-edge=ne], #grips [data-edge=nw], #grips [data-edge=se], #grips [data-edge=sw] { width: 16px; height: 16px; }
#grips [data-edge=ne] { top: 0; right: 0; cursor: nesw-resize; } #grips [data-edge=sw] { bottom: 0; left: 0; cursor: nesw-resize; }
#grips [data-edge=nw] { top: 0; left: 0; cursor: nwse-resize; } #grips [data-edge=se] { bottom: 0; right: 0; cursor: nwse-resize; }
body.app.meeting #grips [data-edge=se]::after { content: ''; position: absolute; right: 4px; bottom: 4px; width: 9px; height: 9px; border-right: 2px solid rgba(255, 255, 255, .35); border-bottom: 2px solid rgba(255, 255, 255, .35); border-bottom-right-radius: 3px; }
body.resizing, body.resizing * { user-select: none !important; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Wisp 계정: Google·Apple 로그인 버튼(각 회사 안내에 맞춰 흰 바탕·검은 바탕) */
.signin { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.signin-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 210px; padding: 11px 18px; font-weight: 600; letter-spacing: -.01em; }
.signin-btn .brand { width: 18px; height: 18px; stroke: none; }
.signin-btn[data-provider="google"] { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.signin-btn[data-provider="google"]:hover { background: #f2f2f2; }
.signin-btn[data-provider="apple"] { background: #000; color: #fff; border-color: rgba(255, 255, 255, .35); }
.signin-btn[data-provider="apple"]:hover { background: #151515; }
.signin-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.login-note { margin: 10px 0 0; color: var(--lime); font-size: 13px; }
details.license { margin-top: 16px; }
details.license summary { cursor: pointer; color: var(--muted); font-size: 13px; list-style: none; }
details.license summary::-webkit-details-marker { display: none; }
details.license summary:hover { color: var(--text); }
details.license[open] summary { margin-bottom: 8px; }

/* 홈의 남은 시간 카드 */
.time-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.time-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lime); transition: width .6s var(--ease); }
.time-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* 체험 코치: 지금 눌러 볼 곳에 빛나는 테두리, 지금 누를 버튼은 맥박처럼 */
.coach { position: relative; border-radius: 14px; animation: coach 1.6s ease-in-out infinite; outline: 2px solid rgba(198, 243, 94, .9); outline-offset: 3px; }
@keyframes coach { 0%, 100% { outline-color: rgba(198, 243, 94, .9); box-shadow: 0 0 0 0 rgba(198, 243, 94, .35); } 50% { outline-color: rgba(198, 243, 94, .35); box-shadow: 0 0 0 10px rgba(198, 243, 94, 0); } }
#demoNext.pulse { background: var(--lime); color: var(--lime-ink); border-color: transparent; font-weight: 700; animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 243, 94, .55); } 70% { box-shadow: 0 0 0 12px rgba(198, 243, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 243, 94, 0); } }
#end.coach { border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .coach, #demoNext.pulse { animation: none; } }

/* 온보딩: 단계 표시, 결과 화면의 로그인 유도, 쓸 자리 고르기 */
#setup { position: fixed; inset: 0; z-index: 11; display: grid; place-items: center; padding: 40px; overflow: auto; background: var(--bg); }
#setup h1 { font-size: 48px; }
#setup .option { text-align: start; width: 100%; }
#setup .option small small { color: var(--dim); font-weight: 400; }
.steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.steps li b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .06); font-size: 12px; font-variant-numeric: tabular-nums; }
.steps li.on { color: var(--text); border-color: rgba(198, 243, 94, .45); }
.steps li.on b { background: var(--lime); color: var(--lime-ink); }
.steps li.done { color: var(--muted); }
.steps li.done b { background: rgba(198, 243, 94, .18); color: var(--lime); font-size: 0; }
.steps li.done b { background: rgba(198, 243, 94, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23c6f35e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.done-signin { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.done-signin > strong { font-size: 19px; letter-spacing: -.03em; }
.done-signin > span { color: var(--muted); }
.done-signin .signin { margin-top: 10px; }
.done-reward { margin: 0; padding: 12px 16px; border-radius: 14px; background: rgba(198, 243, 94, .1); color: var(--lime); font-weight: 600; }

/* 미팅 준비: 왼쪽 목록, 오른쪽 한 미팅의 메모·자료·정리 */
.prep-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.prep-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
.prep-items { display: flex; flex-direction: column; gap: 6px; }
.prep-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: start; border-radius: 16px; padding: 12px 14px; background: var(--surface); }
.prep-item strong { font-size: 14px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.prep-item span { color: var(--muted); font-size: 12px; }
.prep-item.on { border-color: rgba(198, 243, 94, .45); background: var(--surface-2); }
.prep-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.prep-main.empty > :not(.prep-empty) { display: none; }
.prep-main:not(.empty) > .prep-empty { display: none; }
.prep-empty { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); color: var(--muted); }
.prep-empty strong { color: var(--text); font-size: 17px; }
.prep-title { width: 100%; background: none; border: 0; padding: 4px 0; font: 700 26px/1.2 "SF Pro Display", -apple-system, sans-serif; letter-spacing: -.03em; color: var(--text); outline: none; }
.prep-title::placeholder { color: var(--dim); }
.prep-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.prep-meta label { display: inline-flex; align-items: center; gap: 8px; }
.prep-meta input[type="datetime-local"] { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; color-scheme: dark; }
.dropzone { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 22px; margin: 12px 0; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--muted); transition: border-color .2s, background .2s; }
.dropzone.over { border-color: var(--lime); background: rgba(198, 243, 94, .06); color: var(--text); }
.file-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.file-list .file-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list small { color: var(--muted); }
.prep-brief .section-head { margin: 0; }
.brief-summary { font-size: 15px; line-height: 1.6; margin: 10px 0 4px; }
.brief-block { margin-top: 14px; }
.brief-block h4 { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.brief-block ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.brief-block li strong { display: block; }
.brief-block li span { color: var(--muted); }
.brief-block.gaps li { color: var(--orange-2); }
.brief-terms { margin: 0; color: var(--muted); }
p.small { font-size: 12px; }
@media (max-width: 860px) { .prep-layout { grid-template-columns: 1fr; } .prep-side { position: static; } }

/* 의견 보내기 */
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 13.5px; text-align: left; }
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
#feedbackSheet .seg { align-self: flex-start; }
#feedbackSheet textarea { width: 100%; min-height: 120px; resize: vertical; font-size: 14px; }
#feedbackSheet .row { display: flex; gap: 8px; }
.feedback-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }
.feedback-check small { display: block; margin-top: 2px; font-size: 12px; color: var(--dim); }
.feedback-check input { margin-top: 2px; accent-color: var(--lime); }
#feedbackNote.ok { color: var(--lime); }
#feedbackNote.error { color: var(--danger); }
/* 새 버전 알림 */
.update-card { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 14px; background: rgba(198, 243, 94, .08); border: 1px solid rgba(198, 243, 94, .3); }
.update-card > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.update-card strong { font-size: 13.5px; }
.update-card small { font-size: 12px; color: var(--muted); }
.update-card button { flex: none; padding: 7px 12px; border-radius: 10px; border: 0; background: var(--lime); color: var(--lime-ink); font-weight: 600; font-size: 12.5px; }
body.meeting .update-card { display: none; }

/* 계정과 남은 시간: 사이드바 아래, 미팅 시작 바로 위 */
.account-chip { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s var(--ease); }
.account-chip:hover { border-color: var(--line-2); transform: none; }
.account-chip .chip-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.account-chip small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-chip strong { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; color: var(--lime); }
.account-chip .chip-bar { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.account-chip .chip-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--lime); transition: width .6s var(--ease); }
.account-chip.low strong { color: var(--orange-2); }
.account-chip.low .chip-bar i { background: var(--orange-2); }
/* 무료 시간 기한: 막대 대신 일곱 칸. 남은 날만큼 켜지고 이틀 안이면 주황 */
.account-chip .chip-days { display: grid; grid-template-columns: repeat(7, 1fr) auto; align-items: center; gap: 3px; }
.account-chip .chip-days::after { content: attr(data-left); margin-inline-start: 6px; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.account-chip.due .chip-days::after { color: var(--orange-2); }
.account-chip .chip-days[hidden] { display: none; }
.account-chip .chip-days i { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); transition: background .4s var(--ease); }
.account-chip .chip-days i.on { background: var(--lime); }
.account-chip.due { border-color: rgba(255, 138, 31, .45); }
.account-chip.due .chip-days i.on { background: var(--orange-2); }
/* 가입하면 받는 것: 문장 대신 숫자 세 칸(무료 시간, 사용 기한, 체험 보상) */
.offer { display: grid; grid-template-columns: repeat(3, 1fr); }
.offer > span { display: flex; flex-direction: column; gap: 2px; padding: 4px 16px; border-inline-start: 1px solid var(--line-2); }
.offer > span:first-child { padding-inline-start: 0; border-inline-start: 0; }
.offer b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.offer > span:first-child b { color: var(--lime); }
.offer small { color: var(--muted); font-size: 12px; }
.offer b { white-space: nowrap; }
@media (max-width: 480px) { .offer > span { padding: 2px 10px; } .offer b { font-size: 18px; } .offer small { font-size: 11px; line-height: 1.3; } }
.account-chip.off { border-color: rgba(198, 243, 94, .28); }
.account-chip.off .chip-top { flex-direction: column; align-items: flex-start; gap: 2px; }
.account-chip.off strong { color: var(--text); white-space: normal; }
/* 로그인 창 */
#signinSheet .signin { margin-top: 0; }
#signinSheet .signin-btn { flex: 1 1 200px; }
#signinSheet .login-note { margin: 0; }
#signinSheet #signinDemo { align-self: flex-start; font-size: 13px; }
/* 미팅 준비: 캘린더에서 고르기가 먼저 */
.prep-new { display: flex; flex-direction: column; gap: 8px; }
.prep-new button { width: 100%; }
/* 캘린더: 준비하러 왔을 때 안내, 준비한 일정 표시 */
.pick-hint { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: rgba(198, 243, 94, .08); border: 1px solid rgba(198, 243, 94, .28); color: var(--lime); font-size: 13.5px; }
.agenda-manual { margin-top: 12px; font-size: 13px; }
.session .prepared { margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: rgba(198, 243, 94, .12); color: var(--lime); font-size: 11.5px; font-weight: 600; }

/* 미팅 리포트(지난 미팅 화면 위쪽) */
.recap { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid rgba(198, 243, 94, .22); }
.recap-top { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.recap-xp { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.recap-xp small, .recap-streak small { font-size: 12px; color: var(--muted); }
.recap-xp strong { font: 800 38px/1.05 "SF Pro Display", -apple-system, sans-serif; letter-spacing: -.04em; color: var(--lime); }
.recap-xp .muted { font-size: 12.5px; }
.recap-streak { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.recap-streak strong { font-size: 15px; }
.recap-streak .dots { display: flex; gap: 5px; }
.recap-streak .dots i { width: 16px; height: 16px; border-radius: 5px; background: var(--surface-3); }
.recap-streak .dots i.on { background: var(--lime); }
.recap-streak .dots i.today { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.recap .level-up { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(198, 243, 94, .12); color: var(--lime); font-weight: 700; }
.recap-level { display: flex; flex-direction: column; gap: 8px; }
.recap-level > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.recap-level strong { font-size: 14px; }
.recap-level small { font-size: 12px; }
.recap-level .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.recap-level .bar i { display: block; height: 100%; border-radius: inherit; background: var(--lime); transition: width .8s var(--ease); }
.recap .badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.recap .badges small { margin-right: 4px; }
.recap .badge { padding: 5px 11px; border-radius: 99px; background: rgba(198, 243, 94, .12); color: var(--lime); font-size: 12.5px; font-weight: 600; }
.recap .mission { margin: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.recap .mission small { font-size: 12px; color: var(--muted); }
.recap .mission.done small { color: var(--lime); }
.recap .mission.next { background: rgba(255, 138, 31, .07); border-color: rgba(255, 138, 31, .25); }
.recap .mission.next small { color: var(--orange-2); }
.recap .mission span:not(.muted) { font-weight: 600; }
.recap .cards h3 { margin: 4px 0 10px; font-size: 15px; }
.recap .cards h3 small { font-weight: 400; color: var(--muted); font-size: 12px; }
.recap .flips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.recap .flip { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; }
.recap .flip:hover { border-color: var(--line-2); transform: none; }
.recap .flip .kind { font-size: 11.5px; color: var(--muted); }
.recap .flip .front { font-size: 14px; line-height: 1.45; }
.recap .flip.correction .front { text-decoration: line-through; text-decoration-color: rgba(255, 138, 31, .6); }
.recap .flip .back { display: none; flex-direction: column; gap: 3px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.recap .flip .back small { font-size: 11px; color: var(--dim); }
.recap .flip .back strong { font-size: 15px; color: var(--lime); line-height: 1.4; }
.recap .flip .back span { font-size: 12.5px; color: var(--muted); }
.recap .flip .hint { margin-top: auto; font-size: 11.5px; color: var(--dim); }
.recap .flip.open .back { display: flex; }
.recap .flip.open .hint { display: none; }

/* 요금제 화면: 월간·연간 전환, 단계 카드, 시간 충전·팀즈 */
.plans { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.plans .plan-seg { align-self: flex-start; }
/* 월간·연간 고르는 자리와 그 옆의 학생 할인 */
.plan-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.student-chip { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 13px; line-height: 1.3; }
.student-chip strong { font-weight: 600; color: var(--lime); }
.student-chip small { color: var(--muted); font-size: 12px; }
button.student-chip:hover, .student-chip.open { border-color: rgba(198, 243, 94, .45); background: var(--surface-2); }
.student-chip.on { border-color: rgba(198, 243, 94, .45); background: rgba(198, 243, 94, .08); }
.student-note { font-size: 12px; margin-top: -6px; }
.plans .plan-seg em { font-style: normal; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(198, 243, 94, .14); color: var(--lime); font-size: 11.5px; font-weight: 600; }
/* 카드 넷(베이직·프로·울트라·팀즈 & 엔터프라이즈)을 한 줄에. 좁으면 2×2로 접어도 팀즈가 오른쪽 끝에 온다 */
.plan-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1240px) { .plan-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plan-cards { grid-template-columns: minmax(0, 1fr); } }
.plan-card.teams { background: transparent; }
.plan-card .plan-top strong { overflow-wrap: anywhere; }
.plan-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.plan-card.popular { border-color: rgba(255, 90, 31, .45); background: var(--surface-2); }
.plan-card.mine { border-color: rgba(198, 243, 94, .45); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-top strong { font-size: 16px; letter-spacing: -.02em; }
.plan-badge { padding: 2px 8px; border-radius: 99px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.plan-price b { font: 700 26px/1.1 "SF Pro Display", -apple-system, sans-serif; letter-spacing: -.04em; }
.plan-price span { color: var(--muted); font-size: 13px; }
.plan-billed { font-size: 12px; }
.plan-card ul { margin: 8px 0 4px; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text); }
.plan-card ul li::marker { color: var(--lime); }
.plan-card button { margin-top: auto; width: 100%; }
.plan-extras { display: flex; flex-direction: column; gap: 8px; }
.plan-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.plan-extra > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plan-extra strong { font-size: 14px; }
.plan-extra small { font-size: 12px; }
.plan-extra button { flex: none; }

/* 미팅 방식(온라인 · 대면)과 내 목소리 알려 주기 */
.place { display: flex; flex-direction: column; gap: 6px; }
.place .seg { display: flex; }
.place .seg button { flex: 1; }
.place small { padding: 0 4px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
#voiceSheet .row { display: flex; gap: 8px; flex-wrap: wrap; }
#voiceCard .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.voice-read { margin: 0; padding: 16px 18px; border-radius: 14px; background: #0c0c0c; border: 1px solid var(--line); font-size: 16px; line-height: 1.6; }
.voice-meter { height: 6px; border-radius: 999px; background: #0c0c0c; border: 1px solid var(--line); overflow: hidden; }
.voice-meter i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .08s linear; }
/* 대면 미팅: 화자가 잘못 나뉜 말풍선을 고치는 버튼(말풍선에 올리면 보인다) */
.turn .whose { display: none; }
body.room .turn { position: relative; }
body.room .turn:not(.live):hover .whose { display: block; position: absolute; top: -11px; right: 10px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.5; }
body.room .turn.me:not(.live):hover .whose { right: auto; left: 10px; }
body.room .turn .whose:hover { color: var(--text); }
/* 말풍선 하나를 고친 뒤 붙는 '이 목소리 모두' 버튼: 말풍선 아래쪽에, 고친 직후에는 올리지 않아도 보인다 */
body.room .turn.fixed:not(.live) .whose.all { top: auto; bottom: -11px; }
body.room .turn.fixed.fresh:not(.live) .whose.all { display: block; position: absolute; right: 10px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.5; }
body.room .turn.me.fixed.fresh:not(.live) .whose.all { right: auto; left: 10px; }
body.room .turn.fixed { margin-bottom: 12px; }
/* 로그인 자리의 이용약관·개인정보처리방침 링크 */
.legal { margin: 0; color: var(--dim, var(--muted)); font-size: 12px; line-height: 1.6; }
.legal .link { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.legal .link:hover { color: var(--text); background: none; }
/* Windows 앱에서는 Mac 전용 기능을 숨긴다 */
body.not-mac .mac-only { display: none !important; }
/* 좁은 창(아이콘만 남는 왼쪽 줄): 글자가 세로로 깨지지 않게 한다 */
@media (max-width: 860px) {
  .nav-link span { display: none; }
  .nav-link { justify-content: center; }
  .account-chip { padding: 8px 4px; align-items: center; }
  .account-chip.off { display: none; } /* 로그인 전에는 미팅 시작을 누르면 로그인 창이 뜬다 */
  .account-chip .chip-top { display: block; text-align: center; }
  .account-chip .chip-top small { display: none; }
  .account-chip .chip-days { width: 100%; gap: 2px; }
  .account-chip .chip-top strong { font-size: 11px; line-height: 1.3; word-break: keep-all; }
  .place .seg { flex-direction: column; border-radius: 14px; padding: 3px; }
  .place .seg button { padding: 5px 0; font-size: 11px; white-space: nowrap; border-radius: 10px; }
  .place small { display: none; }
}

/* 체험할 자리 고르기 */
#demoPick .sheet { width: min(620px, 100%); max-height: calc(100vh - 64px); overflow: auto; }
.demo-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#demoPick .sheet { width: min(760px, 100%); }
.demo-pick .option { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 8px 12px; text-align: center; transition: border-color .2s, transform .25s var(--ease); }
.demo-pick .option:hover { border-color: rgba(198, 243, 94, .5); transform: translateY(-2px); }
.demo-pick .face { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.demo-pick .face:not([src]) { visibility: hidden; }
.demo-pick .option strong { font-size: 13.5px; }
@media (max-width: 640px) { .demo-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#demoBar #demoSkip { padding: 5px 6px; color: var(--muted); }

/* 친구 초대(설정의 계정 카드)와 학생 할인(요금제 아래) */
.invite { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.invite strong { font-size: 15px; }
.invite .invite-code { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.invite code { padding: 6px 12px; border-radius: 10px; background: rgba(0, 0, 0, .35); font: 600 15px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: var(--lime); user-select: all; }
.invite .row, .student-form .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.invite input, .student-form input { flex: 1; min-width: 150px; }
.student-form { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 10px; }
.plan-extra.student { flex-wrap: wrap; }
.plan-price s { margin-right: 6px; color: var(--muted); font-weight: 400; font-size: .6em; }

/* --- 글보다 모양(2026-12-03). 가운뎃점 대신 사이를 띄우고, 고른 칸은 바탕이 미끄러져 옮겨 간다 --- */
/* 조각을 나란히 놓는 줄(날짜, 길이, 문장 수 …). 사이는 가는 세로줄로 나눈다 */
.bits { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.bits > span + span { padding-inline-start: 10px; border-inline-start: 1px solid var(--line-2); line-height: 1.1; }
.hero-body .bits.when { color: rgba(255, 255, 255, .7); font-weight: 500; font-size: 13px; }
[data-legal] a + a { margin-inline-start: 10px; }
/* 알약 모양 묶음에서 고른 버튼 뒤의 바탕(app.js의 slideThumb가 자리를 넘긴다) */
.seg.slide, #tabs.slide { position: relative; }
.seg.slide::before, #tabs.slide::before { content: ''; position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); transform: translate(var(--x), var(--y)); border-radius: 999px; background: var(--surface-3); transition: transform .28s var(--ease), width .28s var(--ease); }
.seg.slide button, #tabs.slide button { position: relative; }
.seg.slide button.on, #tabs.slide button.on { background: none; }
.close svg { width: 16px; height: 16px; display: block; }

/* 웹 체험(/try)에서만 붙는 스타일. scripts/web-demo.mjs가 앱 스타일 뒤에 덧붙인다 */
#webBar { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 6px 14px; background: rgba(10, 10, 10, .92); border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#webBar span { color: var(--muted); }
#webBar button { padding: 6px 14px; font-size: 12.5px; white-space: nowrap; }
/* 화면 언어 고르기: 첫 화면의 로고 줄 끝. 보이는 것은 지구본과 언어 이름이고, 투명한 select가 그 위를 덮어 누르면 목록이 열린다 */
html.web .welcome-body { position: relative; }
#webLang { position: absolute; top: 0; inset-inline-end: 0; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--text); font-size: 13px; white-space: nowrap; }
#webLang:hover { border-color: rgba(255, 255, 255, .32); }
#webLang:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }
#webLang i { display: inline-flex; opacity: .7; }
#webLang b { font-weight: 600; }
#webLang select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; font-size: 16px; -webkit-appearance: none; appearance: none; }
html.web body { padding-top: 44px; }
html.web #welcome, html.web #demoDone, html.web #setup { top: 44px; }
/* 웹은 체험만 따로 한다. 앱의 홈(사이드바와 오늘·미팅 준비·지난 미팅·설정 화면)은 어디서도 보이지 않는다 */
html.web #home { display: none !important; }
html.web body:not(.meeting) #bar { display: none !important; }
/* 열려 있는 것이 없으면(체험 고르기를 닫았을 때 등) 첫 화면이 바탕이다. 체험 중에는 감춘다 */
html.web body:not(.meeting) #welcome { display: grid !important; background: var(--bg); animation: none; }
/* 요약 보기: 끝 화면 위에 요약만 따로 띄운다(앱의 '지난 미팅'으로 가지 않는다) */
#webReview { position: fixed; inset: 44px 0 0 0; z-index: 12; overflow: auto; padding: 28px 20px 64px; background: var(--bg); }
#webReview .web-review-body { width: min(860px, 100%); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
#webReview #sessionView > .row button:nth-last-child(2) { display: none; } /* 삭제: 웹의 기록은 이 탭에만 있어서 지울 것이 없다 */
/* 앱에서만 뜻이 있는 것(업데이트, 의견 보내기, 대면 미팅 고르기, 창 손잡이)은 감춘다 */
html.web #updateCard, html.web #feedbackOpen, html.web .place, html.web #grips, html.web #pip, html.web #manual, html.web #practice { display: none !important; }
@media (max-width: 640px) {
  #webBar span { display: none; }
  /* 버튼 글이 긴 언어(우크라이나어 등)에서 줄 밖으로 넘치지 않게: '앱 받기'부터 줄인다 */
  #webBar { gap: 6px; padding: 6px 10px; }
  #webBar button { flex: 0 1 auto; min-width: 0; padding: 6px 12px; overflow: hidden; text-overflow: ellipsis; }
  #webBar button:not(.primary) { flex-shrink: 20; }
  /* 폰: 대화와 답변을 위아래로 쌓는다 */
  html.web body.meeting main#meeting { display: flex; flex-direction: column; }
  html.web body.meeting #transcriptPanel, html.web body.meeting #answerPanel { width: 100%; min-height: 0; flex: 1 1 50%; }
  html.web .welcome-body h1 { font-size: 34px; }
  /* 폰에서 상대 영상이 나오는 체험: 자막(원문과 번역)을 영상 아래쪽에 겹쳐 보여 준다. 영상, 안내, 답변이 한 화면에 들어가게 */
  html.web body.meeting #transcriptPanel:has(#demoStage:not([hidden])) { position: relative; flex: 0 0 auto; }
  html.web body.meeting #transcriptPanel:has(#demoStage:not([hidden])) ~ #answerPanel { flex: 1 1 0; }
  html.web body.meeting #transcriptPanel:has(#demoStage:not([hidden])) #demoStage { width: 100%; }
  html.web body.meeting #transcriptPanel:has(#demoStage:not([hidden])) #transcript { position: absolute; left: 18px; right: 18px; top: 14px; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; padding: 0 10px 10px; overflow: hidden; pointer-events: none; }
  html.web body.meeting #transcriptPanel:has(#demoStage:not([hidden])) #transcript .turn { max-width: 100%; margin: 0; padding: 5px 10px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .66); font-size: 13px; line-height: 1.35; text-align: center; }
  html.web body.meeting #transcriptPanel:has(#demoStage:not([hidden])) #transcript .turn .tr { font-size: 12.5px; }
  html.web body.meeting #transcriptPanel:has(#demoStage:not([hidden])) #transcript .turn:nth-last-child(n+2) { display: none; } /* 얼굴이 가려지지 않게 마지막 말만 */
  html.web body.meeting #transcriptPanel:has(#demoStage:not([hidden])) #stageName { top: 8px; bottom: auto; }
}
