/* 모양 규칙은 PC의 회의 보기와 같다: 누르는 것(단추, 입력칸)만 8px로 둥글고 나머지는 각지다.
   색은 흰 바탕에 #4031FF 하나. 폰에서 한 손으로 읽는 화면이라 한 줄로 내려간다. */
:root {
  --ink: #16161a; --muted: #6b6b76; --line: #e6e6ec; --soft: #f5f5f8;
  --accent: #4031FF; --tint: rgba(64, 49, 255, .07); --bad: #a8261c;
  --r: 8px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #fff; color: var(--ink);
  font: 16px/1.7 "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.boot { padding: 40vh var(--gut) 0; text-align: center; color: var(--muted); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gut-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gut); }

/* 맨 위 줄 */
.top {
  position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gut-r) 10px var(--gut);
}
.top-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.top h1 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; flex: 1 1 auto; min-width: 0; }
.top h1.cut { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn {
  min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r);
  background: #fff; font-weight: 500; cursor: pointer; white-space: nowrap;
}
a.btn { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.btn.main, a.btn.main { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.plain { border-color: transparent; padding: 0 8px; color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: default; }
.field { display: block; margin: 0 0 14px; }
.field span { display: block; margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.field input { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.note { margin: 10px 0 0; font-size: 14px; color: var(--muted); max-width: 46ch; }
.note.bad { color: var(--bad); }

/* 로그인 */
.login { max-width: 380px; margin: 0 auto; padding: 18vh var(--gut-r) 40px var(--gut); }
.login h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.3; }
.login p.lead { margin: 0 0 26px; color: var(--muted); }
.login .btn { width: 100%; }
.login .swap { margin-top: 10px; }

/* 목록 */
.find { margin: 14px 0 6px; }
.find input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.queue { margin: 12px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.queue li { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; font-size: 14px; }
.queue li + li { border-top: 1px solid var(--line); }
.queue .what { flex: 1 1 auto; min-width: 0; }
.queue .state { flex: none; color: var(--accent); font-weight: 600; font-size: 13px; }
.queue .state.bad { color: var(--bad); }
.month { margin: 26px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.list { margin: 0; padding: 0; list-style: none; }
.list a { display: block; padding: 14px 0 13px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.list a:active { background: var(--soft); }
.list .when { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.list .name { display: block; margin: 1px 0 2px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.list .sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.tag { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; line-height: 1.6; color: var(--muted); vertical-align: 1px; }
.tag.on { border-color: var(--accent); color: var(--accent); }
.empty { margin: 40px 0; color: var(--muted); max-width: 40ch; }

/* 회의 하나 */
.meta { margin: 12px 0 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.player {
  position: sticky; top: calc(65px + env(safe-area-inset-top, 0px)); z-index: 2; background: #fff;
  margin: 10px calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut)); padding: 8px var(--gut-r) 8px var(--gut);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap;
}
.player .play { min-width: 72px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r); background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
.player .play[disabled] { background: var(--line); color: var(--muted); }
.player .clock { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.player .seek { flex: 1 1 140px; min-width: 110px; accent-color: var(--accent); height: 32px; }
.player .rate { min-height: 44px; min-width: 56px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font-size: 14px; cursor: pointer; }
.player .why { flex: 1 1 100%; margin: 0; font-size: 13px; color: var(--muted); }
.tabs { display: flex; margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tabs button { flex: 1; min-height: 44px; border: 0; background: #fff; cursor: pointer; color: var(--muted); }
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button[aria-selected="true"] { background: var(--tint); color: var(--accent); font-weight: 600; }
.pane { padding-top: 18px; }

.minutes h2 { margin: 26px 0 8px; font-size: 17px; line-height: 1.4; }
.minutes h2:first-of-type { margin-top: 0; }
.minutes h3 { margin: 18px 0 6px; font-size: 16px; }
.minutes h3.mine { color: var(--accent); }
.minutes p { margin: 0 0 10px; max-width: 62ch; }
.minutes ul { margin: 0 0 10px; padding-left: 18px; max-width: 62ch; }
.minutes li { margin: 0 0 8px; }
.minutes .kind { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.minutes .warn { font-size: 13px; color: var(--bad); border-left: 2px solid var(--bad); padding-left: 10px; }
.st { display: inline-block; margin-right: 6px; padding: 0 6px; font-size: 12px; font-weight: 700; line-height: 1.65; border: 1px solid var(--accent); vertical-align: 1px; }
.st.done { background: var(--accent); color: #fff; }
.st.cond { color: var(--accent); }
.st.open { color: var(--muted); border-color: var(--muted); }
.t { border: 0; background: none; padding: 4px 2px; margin: -4px 0; cursor: pointer; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; border-radius: 4px; }

.u { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 0 8px; padding: 9px 8px 9px 8px; margin: 0 -8px; border-left: 2px solid transparent; }
.u .t { text-align: left; align-self: start; line-height: 1.7; padding: 0; margin: 0; }
.u .who { font-weight: 700; font-size: 14.5px; }
.u .who.me { color: var(--accent); }
.u p { margin: 0; grid-column: 2; }
.u.on { background: var(--tint); border-left-color: var(--accent); }
mark { background: var(--tint); color: inherit; padding: 0 1px; }

/* 올리기 */
.pick { display: block; margin: 18px 0 14px; padding: 22px 16px; border: 1px dashed var(--muted); text-align: center; cursor: pointer; }
.pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick b { display: block; font-size: 17px; }
.pick small { color: var(--muted); font-size: 13.5px; }
.bar { height: 6px; background: var(--line); margin: 14px 0 6px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); }
.steps { margin: 22px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; max-width: 46ch; }
.steps li { margin: 0 0 6px; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 6;
  max-width: min(92vw, 560px); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: var(--r); font-size: 14px; line-height: 1.5;
}

@media (min-width: 900px) {
  .wrap.wide { max-width: 1180px; }
  .wide .tabs { display: none; }
  .wide .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 40px; }
  .wide .cols .pane[hidden] { display: block !important; }
  .top-in.wide { max-width: 1180px; }
}
@media (prefers-reduced-motion: no-preference) { .u { transition: background-color .15s ease; } }
