/* 스피드록 — 어두운 화면에 파형과 버튼 하나.
   어두운 이유: 폰을 켜 둔 채 책상에 눕혀 두는 것이 사용법이라, 밝으면 눈에 거슬리고 배터리를 먹는다. */

:root {
  --bg: #0b0f1a;
  --fg: #e8ecf5;
  --dim: #8a94ad;
  --line: #1e2639;
  --accent: #4f7cff;
  --wave: #3d6bff;
  --danger: #ff5a5a;
  --card: #121829;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%;
  background: var(--bg); color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
        "Malgun Gothic", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body { display: flex; flex-direction: column; overflow: hidden; }

/* ── 상단 ── */
.top {
  display: flex; align-items: center; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
}
/* 스피디하게 — 이탤릭. 한글 글꼴에는 이탤릭 꼴이 없어 브라우저가 흉내 내는 기울기가 들쭉날쭉하다.
   그래서 font-style 대신 skew로 기울인다: 한글·영문이 같은 각도로 앞으로 쏠린다. */
.brand, .tag { display: inline-block; transform: skewX(-12deg); }
.brand { font-weight: 800; letter-spacing: -.02em; }
.tag { color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
@media (max-width: 380px) { .tag { display: none; } }
.badge {
  font-size: 12px; padding: 3px 8px; border-radius: 999px;
  background: #3a2a0a; color: #ffcc66;
}
.icon {
  margin-left: auto; width: 40px; height: 40px; font-size: 20px;
  background: none; border: 0; color: var(--dim); cursor: pointer; border-radius: 10px;
}
.icon:hover { background: var(--card); color: var(--fg); }
/* 상단 '지난 회의' — 설정 톱니 왼쪽 */
.topLink {
  margin-left: auto; padding: 7px 12px; font-size: 13px; border-radius: 999px;
  background: none; border: 1px solid var(--line); color: var(--dim); cursor: pointer;
}
.topLink:hover { color: var(--fg); border-color: #2d3a56; }
.topLink + .icon { margin-left: 0; }

/* ── 무대 ── */
#stage {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
}
#wave {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity .4s;
  /* 그림일 뿐이다 — 클릭을 받지 않는다. 안 그러면 회의가 끝난 화면(#done)의 버튼 넷을 통째로 덮어
     '회의록 보기'가 눌리지 않았다(2026-10-26 조박사님 발견). 코드로 누르는 시험은 이걸 못 잡는다. */
  pointer-events: none;
}
#wave.on { opacity: 1; }
#idle, #live, #working { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }

.rec {
  width: 128px; height: 128px; border-radius: 50%;
  border: 0; padding: 0; background: none;
  display: grid; place-items: center; cursor: pointer;
  /* 물방울처럼 — 떠 있고, 숨 쉬고, 눌리면 찌그러진다 */
  animation: float 5.5s ease-in-out infinite;
  transition: transform .15s;
}
.rec .dot {
  width: 100%; height: 100%; border-radius: 50%; position: relative;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .95) 0 6%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 70% 78%, rgba(255, 170, 170, .45), rgba(255, 170, 170, 0) 45%),
    radial-gradient(circle at 42% 34%, #ff7a7a 0%, #f0433f 52%, #a8201d 100%);
  box-shadow:
    inset 0 -12px 22px rgba(120, 10, 10, .55),
    inset 0 8px 16px rgba(255, 255, 255, .28),
    0 14px 30px rgba(230, 50, 50, .32),
    0 2px 6px rgba(0, 0, 0, .4);
  animation: breathe 3.4s ease-in-out infinite;
}
/* 위쪽에 길게 누운 하이라이트 — 이것 하나로 유리알처럼 보인다 */
.rec .dot::after {
  content: ""; position: absolute; left: 22%; top: 11%; width: 44%; height: 24%;
  border-radius: 50%; background: rgba(255, 255, 255, .5); filter: blur(5px);
}
/* REC — 물방울 가운데 글자와, 그 아래 물에 비친 거꾸로 된 글자.
   비친 쪽은 뒤집고(scaleY -1) 아래로 갈수록 사라지게 가리고, 물결처럼 살짝 일렁인다. */
.rec .recText, .rec .recWater {
  position: absolute; left: 0; right: 0; text-align: center;
  font-weight: 300; font-size: 20px; letter-spacing: .16em; text-indent: .16em; line-height: 1;
  color: rgba(255, 255, 255, .72); pointer-events: none; user-select: none;
}
.rec .recText { top: calc(50% - 10px); text-shadow: 0 1px 2px rgba(120, 10, 10, .3); }
.rec .recWater {
  /* 제자리에서 뒤집는다. 가림은 뒤집히기 전 기준이라 'to bottom'이 화면에서는 위(글자 쪽)가 진한 것이 된다 */
  top: calc(50% + 11px);
  transform: scaleY(-1); transform-origin: center;
  opacity: .28; filter: blur(.5px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .95));
          mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 10%, rgba(0, 0, 0, .95));
  animation: ripple 2.8s ease-in-out infinite;
}
@keyframes ripple {
  0%, 100% { transform: scaleY(-1) skewX(0deg) scaleX(1); }
  30%      { transform: scaleY(-.92) skewX(4deg) scaleX(1.03); }
  65%      { transform: scaleY(-1.04) skewX(-3deg) scaleX(.98); }
}
.rec:hover { animation-play-state: paused; transform: scale(1.04); }
.rec:active { transform: scale(.93); }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -7px; }
}
@keyframes breathe {
  0%, 100% { scale: 1 1; }
  35%      { scale: 1.03 0.97; }
  70%      { scale: 0.98 1.02; }
}
@media (prefers-reduced-motion: reduce) {
  .rec, .rec .dot, .rec .recWater { animation: none; }
}

.title {
  margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.02em;
  max-width: 90vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.title.date { color: var(--dim); font-weight: 400; font-size: 17px; }
.title { cursor: text; padding: 2px 10px; border-radius: 8px; border: 1px solid transparent; }
.title:hover { border-color: var(--line); }
.title:focus { outline: none; border-color: var(--accent); color: var(--fg); background: var(--card); }
.title:empty::before { content: attr(data-ph); color: var(--dim); }
/* 제목 앞의 '회의명' 꼬리표 — 제목을 누르면 고칠 수 있다는 것을 말 없이 알린다 */
.titleRow { display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap; }
.titleLabel { color: var(--dim); font-size: 13px; font-weight: 600; letter-spacing: .02em; }

/* 설정 맨 위 화면 언어 — 두 칸 짜리 토글 */
.uiLang { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.uiLangLabel { color: var(--dim); font-size: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.seg button { border: 0; background: none; color: var(--dim); padding: 6px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; font-weight: 600; }
/* 홈 맨 위 안내 — 녹음 버튼을 회의 '전에' 누르게. 버튼과 떨어뜨려 위에 둔다 */
.guide { margin: 0 0 22px; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: #ffd9d9; background: rgba(255, 90, 90, .10); border: 1px solid rgba(255, 90, 90, .28); text-align: center; }
@media (max-width: 420px) { .guide { font-size: 13px; padding: 7px 12px; white-space: nowrap; } }
.tagline { margin: 6px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.link {
  margin-top: 26px; padding: 8px 14px; font-size: 13px;
  background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--dim);
}
.link:hover { color: var(--fg); border-color: #2d3a56; }

/* 새 회의 — 지금 것을 떠나는 버튼이라 빨강으로 눈에 띄게 둔다 */
#again {
  margin-top: 22px; padding: 11px 26px; font-size: 14px; font-weight: 600;
  background: linear-gradient(180deg, #ff5f5f, #e23b3b); border: 0; color: #fff;
  box-shadow: 0 6px 18px rgba(226, 59, 59, .28);
}
#again:hover { background: linear-gradient(180deg, #ff7070, #ec4a4a); }
#again:active { transform: translateY(1px); }
.sub { margin: 0; color: var(--dim); font-size: 14px; }

.timer {
  font-size: clamp(40px, 13vw, 64px); font-weight: 300;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.stop {
  margin-top: 8px; padding: 14px 34px; border-radius: 999px;
  border: 1px solid #4a2030; background: #2a1420; color: #ff8a8a;
  font-size: 16px; font-weight: 600; cursor: pointer;
}
.stop:hover { background: #3a1a2a; }

.glass { font-size: 56px; line-height: 1; animation: turn 2.4s ease-in-out infinite; }
@keyframes turn {
  0%, 40% { transform: rotate(0); }
  55%, 95% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

/* 다 되면 고를 것은 셋뿐이다. 색으로 무엇이 무엇인지 바로 알게 한다. */
.menu { display: flex; flex-direction: column; gap: 10px; width: min(360px, 86vw); margin-top: 6px; }
.menu button { border: 0; color: #fff; }
/* 파랑 — 이 도구가 만들어 준 결과물 */
#openNotes { background: linear-gradient(180deg, #5b86ff, #3f63e8); box-shadow: 0 6px 18px rgba(63, 99, 232, .3); }
#openNotes:hover { background: linear-gradient(180deg, #6b93ff, #4a6ef2); }
/* 청록 — 받아쓴 원문 */
#openText { background: linear-gradient(180deg, #1fa88f, #158a74); box-shadow: 0 6px 18px rgba(21, 138, 116, .26); }
#openText:hover { background: linear-gradient(180deg, #26bb9f, #1a9a82); }
/* 보라 — 다른 AI로 넘기는 길 */
#copyAll { background: linear-gradient(180deg, #8a5cf0, #6d3fd6); box-shadow: 0 6px 18px rgba(109, 63, 214, .28); }
#copyAll:hover { background: linear-gradient(180deg, #9a6ffa, #7b4de2); }
.menu button:active { transform: translateY(1px); }
.menu .fine { margin-top: 2px; text-align: center; }
button.big { padding: 16px 20px; font-size: 16px; font-weight: 600; border-radius: 14px; }
p.big { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.back {
  padding: 6px 12px; font-size: 18px; line-height: 1;
  background: none; border-color: transparent; color: var(--dim);
}
.back:hover { color: var(--fg); }
.sheetHead .primary, .sheetHead .ghost { margin-left: 0; padding: 9px 14px; font-size: 14px; }
#result .sheetHead .primary { background: #3f63e8; border-color: #3f63e8; }
/* 공유 — 카톡 노랑. 어디로 보내는 버튼인지 색으로 바로 알게 */
.share {
  padding: 9px 14px; font-size: 14px; font-weight: 700;
  background: #fae100; border-color: #e8d000; color: #3c1e1e;
}
.share:hover { background: #ffe92e; border-color: #e8d000; }
/* 저장 — START와 같은 붉은 계열. 회색이면 눈에 안 띈다(조박사님 2026-11-13) */
#saveBtn { background: #d93a3a; border-color: #d93a3a; color: #fff; font-weight: 700; }
#saveBtn:hover { background: #e54b4b; border-color: #e54b4b; }
#textView .sheetHead .primary { background: #158a74; border-color: #158a74; }
.sheetHead h2 { margin-right: auto; }

/* ── 경고 ── */
.alert {
  position: fixed; left: 12px; right: 12px; top: 64px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: #3a1a1a; color: #ffd4d4; border: 1px solid #5a2a2a; font-size: 14px;
  text-align: left;
}
.alertBtn {
  margin-left: auto; flex: none; white-space: nowrap;
  padding: 7px 12px; font-size: 13px; font-weight: 600;
  background: #5a2a2a; border-color: #7a3a3a; color: #ffe4e4;
}
.alertBtn:hover { background: #6e3434; border-color: #7a3a3a; }

/* ── 시트 (결과·설정) ── */
.sheet {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  background: var(--bg);
}
.sheetHead {
  display: flex; align-items: center; gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid var(--line);
}
.sheetHead h2 { margin: 0; font-size: 18px; }
.sheetHead .ghost { margin-left: auto; }
.sheetBody {
  flex: 1; overflow-y: auto; padding: 16px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  max-width: 760px; width: 100%; margin: 0 auto;
}

fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 16px; padding: 12px 14px; }
legend { padding: 0 6px; color: var(--dim); font-size: 13px; }

.field { display: block; margin-bottom: 14px; color: var(--dim); font-size: 13px; }
.field input, .field select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  background: var(--card); color: var(--fg);
  border: 1px solid var(--line); border-radius: 10px; font-size: 16px;
}
.choice, .check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; }
.choice small { color: var(--dim); }
.hint { margin: 8px 0 0; color: var(--dim); font-size: 13px; }
.fine { margin: 18px 0 0; color: var(--dim); font-size: 12px; line-height: 1.7; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
button {
  font: inherit; padding: 11px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg); cursor: pointer;
}
button:hover { border-color: #2d3a56; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.ghost { background: none; border-color: transparent; color: var(--dim); }

.notes {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; overflow-x: auto;
}
.notes h1, .notes h2 { font-size: 18px; margin: 20px 0 10px; }
.notes h3 { font-size: 16px; margin: 16px 0 8px; }
.notes h1:first-child, .notes h2:first-child { margin-top: 0; }
.notes table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 10px 0; }
.notes th, .notes td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.notes th { background: #18203a; }
.notes ul, .notes ol { padding-left: 20px; }
.notes code { background: #1a2238; padding: 1px 5px; border-radius: 5px; font-size: 13px; }

.full {
  white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.8;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; max-height: 50vh; overflow-y: auto; margin: 0;
}
details summary { cursor: pointer; color: var(--dim); padding: 12px 0; }

/* 회의 중 전사문 — 켠 사람에게만 */
.liveText {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  max-height: 38vh; overflow-y: auto;
  padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(11, 15, 26, .96) 20%);
  font-size: 14px; color: var(--dim); line-height: 1.8;
}
.liveText b { color: var(--fg); font-weight: 400; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60;
  background: #e8ecf5; color: #0b0f1a; padding: 10px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
}

/* 기다리기 싫은 사람을 위한 빠져나갈 길. 작게 둔다 — 크면 다들 회의록을 안 본다. */
/* 모래시계보다 한참 위. 기다릴지 말지를 먼저 고르게 한다. */
#waitCopy { margin: 0 0 56px; font-size: 12px; padding: 6px 12px; }

/* 작성 중 엿보기 창 — 글자를 읽으라는 게 아니다. 멈춰 있지 않다는 것만 보이면 된다. */
.peek {
  width: min(320px, 78vw); height: 92px; margin-top: 10px;
  overflow: hidden; position: relative;
  border: 1px solid var(--line); border-radius: 12px; background: #0e1424;
  /* 위아래로 사라지게 — 창 너머로 지나가는 느낌 */
  -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent);
  mask-image: linear-gradient(transparent, #000 32%, #000 68%, transparent);
}
.peek > div {
  position: absolute; left: 0; right: 0; bottom: 8px;
  padding: 0 12px;
  font-size: 10px; line-height: 1.7; color: #5f6c8a;
  white-space: pre-wrap; word-break: break-all;
  filter: blur(.3px);
}
@media (prefers-reduced-motion: reduce) { .peek > div { filter: none; } }

/* 만든 사람 */
.maker {
  margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--line);
  text-align: center; color: var(--dim); font-size: 13px; line-height: 1.9;
}
.maker p { margin: 0; }
.makerName { color: var(--fg); font-weight: 600; }
.maker a { color: var(--accent); text-decoration: none; }
.maker a:hover { text-decoration: underline; }
.makerFree { margin-top: 6px !important; font-size: 12px; }

/* 저장 메뉴 */
.saveWrap { position: relative; }
.saveMenu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 70;
  display: flex; flex-direction: column; min-width: 160px; padding: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.saveMenu button {
  border: 0; background: none; text-align: left; padding: 10px 12px; font-size: 14px;
}
.saveMenu button:hover { background: #1b2338; }

/* PDF는 브라우저 인쇄로 낸다 — 한글 글꼴을 따로 심을 필요가 없다 */
@media print {
  body { background: #fff; color: #000; display: block; overflow: visible; }
  .top, #stage, #settings, #textView, .sheetHead, .toast, .alert, .liveText { display: none !important; }
  #result { position: static; background: #fff; }
  #result .sheetBody { overflow: visible; max-width: none; padding: 0; }
  .notes { background: #fff; border: 0; padding: 0; color: #000; }
  .notes th { background: #eee; }
  .notes th, .notes td { border: 1px solid #999; }
  .notes h1, .notes h2, .notes h3 { page-break-after: avoid; }
  .notes table, .notes tr { page-break-inside: avoid; }
  /* 레터 규격(8.5 × 11인치). 미국에서 인쇄하는 문서라 A4가 아니다. */
  @page { size: letter portrait; margin: 0.9in 0.8in; }
}

/* 좁은 폰 — 회의록 머리글에 버튼이 넷(뒤로·저장·공유·복사)이라 여유가 없다. 조금씩 줄인다. */
@media (max-width: 420px) {
  .sheetHead { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .sheetHead h2 { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sheetHead .primary, .sheetHead .ghost, .share { padding: 8px 10px; font-size: 13px; }
  .back { padding: 6px 8px; }
}

[hidden] { display: none !important; }

/* 한도 칸 — 세 줄 요금표. 지금 내 줄만 진하게 */
.tiers { border-collapse: collapse; margin: 2px 0 10px; font-size: 13px; }
.tiers td { padding: 3px 14px 3px 0; color: var(--dim); }
.tiers tr.me td { color: var(--fg); }
.tiers tr.me td:first-child::before { content: "● "; color: var(--accent); }
#limits a { color: var(--accent); }
a.alertBtn { text-decoration: none; display: inline-block; border: 1px solid #7a3a3a; border-radius: 8px; }
.brand:empty { display: none; }

/* 버튼 속 작은 안내 한 줄 — 그 버튼에만 해당하는 말 */
button .btnNote { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; line-height: 1.45; opacity: .85; }

/* 줌 안내 — 폰에서 안 되는 것은 눈에 띄게 */
.zoomGuide .hint { line-height: 1.6; }
.hint.warn { color: #ffd9d9; background: rgba(255, 90, 90, .08); border: 1px solid rgba(255, 90, 90, .25); border-radius: 10px; padding: 10px 12px; }
.zoomGuide .ind { display: inline-block; padding-left: 1.1em; }

/* ── 회의록 시트 위 메뉴: 정리된 회의록 | 회의 텍스트 | 지난 회의 ── */
.sheetTabs { display: flex; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.sheetTabs button {
  flex: 1 1 0; white-space: nowrap; padding: 9px 10px; font-size: 14px; border-radius: 10px;
  background: none; border: 1px solid var(--line); color: var(--dim); cursor: pointer;
}
.sheetTabs button.on { background: var(--card); border-color: var(--accent); color: var(--fg); font-weight: 600; }
.back { font-size: 15px; white-space: nowrap; }
.sheetTitle { font-size: 15px !important; color: var(--dim); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 지난 회의 목록 ── */
.historyList { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.historyList li { display: flex; align-items: center; gap: 8px; }
.historyList .open {
  flex: 1; min-width: 0; text-align: left; padding: 12px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--fg); cursor: pointer;
}
.historyList .open:hover { border-color: var(--accent); }
.historyList .open b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.historyList .open small { color: var(--dim); font-size: 12px; }
.historyList .del { flex: none; padding: 8px 10px; background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 16px; }
.historyList .del:hover { color: var(--danger); }
.link.danger { color: var(--danger); }
@media print { .sheetTabs, #history, .topLink { display: none !important; } }
@media (max-width: 420px) {
  .sheetTabs { padding: 6px 10px; gap: 4px; }
  .sheetTabs button { font-size: 13px; padding: 8px 6px; }
  .back { font-size: 14px; }
  .sheetTitle { display: none; }
}

/* 지난 회의 맨 위 — 어디에 저장되는지 먼저 말한다 */
.deviceOnly { margin: 0 0 14px; padding: 10px 12px; font-size: 13px; line-height: 1.6; color: var(--dim);
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.deviceOnly b { color: var(--fg); }
.historyActions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 홈의 '회의록 결과물 보기'와 예시 안내 */

/* 머리글 단추는 꺾이지 않는다. 자리가 모자라면 회의 제목이 먼저 빠진다 */
.sheetHead button, .sheetHead .saveWrap { flex: none; white-space: nowrap; }
.sheetTitle { flex: 1 1 0; }
@media (max-width: 640px) { .sheetTitle { display: none; } .sheetHead .back { margin-right: auto; } }

/* 실패한 회의록 아래 '다시 만들기' */
.retryNotes { margin-top: 14px; padding: 12px 18px; font-size: 15px; font-weight: 700; }

/* 참가자 명단 */
.peopleBtn b { font-weight: 600; color: var(--accent); }
.peopleRows { display: grid; gap: 8px; margin: 4px 0 12px; }
.pRow { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; }
.pRow input { min-width: 0; padding: 12px; font-size: 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.pRow input:focus { outline: none; border-color: var(--accent); }
.pDel { background: none; border: 0; color: var(--dim); font-size: 16px; cursor: pointer; }
.pDel:hover { color: var(--danger); }
.peoplePaste { margin-top: 16px; }
.peoplePaste summary { cursor: pointer; color: var(--dim); font-size: 14px; }
.peoplePaste textarea { width: 100%; margin: 10px 0 8px; padding: 12px; font: inherit; font-size: 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--fg); box-sizing: border-box; }

/* 단체 다섯 칸 */
.groupTabs { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 12px; padding-bottom: 2px; }
.groupTabs button { flex: none; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 12px; font-size: 14px; border-radius: 999px; background: none; border: 1px solid var(--line); color: var(--dim); cursor: pointer; }
.groupTabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.groupTabs button small { opacity: .8; }

/* 녹음파일 불러오기 — 폴더 아이콘과 연한 호박색 */
.pickBtn { display: inline-flex; align-items: center; gap: 7px; color: #f3d9a4; background: rgba(245, 180, 70, .08); border-color: rgba(245, 180, 70, .30); }
.pickBtn:hover { color: #ffe7b8; background: rgba(245, 180, 70, .14); border-color: rgba(245, 180, 70, .45); }
.pickBtn .ico { width: 16px; height: 16px; fill: rgba(245, 180, 70, .55); stroke: #f5b446; stroke-width: 1.4; stroke-linejoin: round; }

/* 시트가 녹음 화면을 덮었을 때 — 녹음은 계속된다는 표시, 누르면 돌아간다 */
.recPill { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 65;
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; white-space: nowrap;
  font-size: 15px; font-weight: 700; color: #fff; background: #d93a3a; border: 0; box-shadow: 0 6px 24px rgba(0,0,0,.45); cursor: pointer; }
.recPill i { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: recBlink 1.2s ease-in-out infinite; }
.recPill.working { background: var(--accent); }
@keyframes recBlink { 50% { opacity: .25; } }

/* 왼쪽 위 소개 페이지 가기 — 바탕화면 앱에는 주소창이 없다 */
.homeLink { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 4px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--dim); }
.homeLink svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.homeLink:hover { color: var(--fg); border-color: #2d3a56; }

/* 베타 표시 */
.beta { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .12em;
  color: #ffd36b; border: 1px solid rgba(255, 211, 107, .45); vertical-align: middle; }

/* 이름이 '미팅록 MEETING LOG'로 길어졌다 — 폰에서 위 줄이 꺾이지 않게 */
.top .brand, .top .tag, .top .beta, .topLink { white-space: nowrap; flex: none; }
@media (max-width: 440px) { .top .tag { display: none; } }

/* 폰 — 마이크만 된다는 작은 안내 */
.phoneMicNote { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--dim); text-align: center; }

/* PC — START 뒤 '어디서 회의하세요?' */
.srcAsk { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 15, .72); backdrop-filter: blur(4px); }
.srcAsk[hidden] { display: none; }
.srcAskBox { width: min(420px, 100%); padding: 24px 20px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.srcAskBox h2 { margin: 0 0 16px; font-size: 20px; }
.srcBtn { display: block; width: 100%; margin: 0 0 10px; padding: 16px 18px; border-radius: 14px; text-align: left; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line); color: var(--fg); }
.srcBtn b { display: block; font-size: 17px; }
.srcBtn small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--dim); }
.srcBtn:hover { border-color: var(--accent); }
.srcBtn.last { border: 2px solid var(--accent); }
.srcBtn.last b::after { content: "  · 지난번"; font-size: 12px; font-weight: 600; color: var(--accent); }
html[lang="en"] .srcBtn.last b::after { content: "  · last time"; }
.srcAskBox .link { margin-top: 4px; }

/* 아이폰 녹음 올리기 안내 */
.iosPickBox { text-align: left; }
.iosPickBox h2 { text-align: center; }
.iosSteps { margin: 0 0 12px; padding-left: 22px; font-size: 15px; line-height: 1.6; }
.iosSteps li { margin: 0 0 8px; }
.iosNote { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: var(--dim); }
.iosGo { text-align: center; background: var(--accent); border-color: var(--accent); color: #fff; }
.iosGo:hover { filter: brightness(1.08); }
.iosSkip { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 2px; font-size: 13px; color: var(--dim); }
.iosPickBox .link { display: block; margin: 6px auto 0; }
