:root {
  color-scheme: dark;
  --bg-primary: #09090b;
  --bg-secondary: #111114;
  --bg-elevated: #17171c;
  --surface-soft: #1d1d23;
  --surface-hover: #24242b;
  --text-primary: #f7f7f8;
  --text-secondary: #a9a9b2;
  /* 표면 다섯 곳(#09090b~#24242b) 전부에서 4.5:1을 넘기는 값입니다. #71717a는 3.19~4.12로 미달이었습니다. */
  --text-muted: #909099;
  --border-subtle: rgb(255 255 255 / 8%);
  --border-strong: rgb(255 255 255 / 14%);
  /* 채워진 버튼에 흰 글자를 얹으므로 4.5:1이 필요합니다. #7c6cff는 3.86이었습니다. */
  --brand-primary: #6f5df0;
  --brand-light: #a99dff;
  --brand-soft: rgb(111 93 240 / 16%);
  --success: #34c759;
  --warning: #f5a524;
  --danger: #ff5d5d;
  --info: #65a7ff;
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(12px, env(safe-area-inset-bottom));
  --visual-viewport-height: 100dvh;
  --keyboard-offset: 0px;
  --page-x: clamp(18px, 5vw, 24px);
  --control-height: 52px;
  --control-radius: 14px;
  --action-height: 52px;
  --action-radius: 14px;
  --compact-control-height: 44px;
  --compact-control-radius: 12px;
  /* 모든 화면이 같은 중요도 문법을 쓰도록 크기를 역할별로 고정합니다. */
  --type-display: clamp(1.875rem, 7.2vw, 2.125rem);
  --type-page: clamp(1.4375rem, 6vw, 1.6875rem);
  --type-section: 1.125rem;
  --type-card: 1rem;
  --type-item: .9375rem;
  --type-body: .875rem;
  --type-meta: .8125rem;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  font-synthesis: none;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #050506; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -12%, rgb(124 108 255 / 13%), transparent 32rem), #050506;
  color: var(--text-primary);
  font-size: 100%;
  line-height: 1.5;
  word-break: keep-all;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea, select { color: inherit; font: inherit; }
button, a { touch-action: manipulation; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
}
.app-frame {
  position: relative;
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: clip;
  background: radial-gradient(circle at 100% 0, rgb(124 108 255 / 7%), transparent 18rem), var(--bg-primary);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 5%), 0 30px 100px rgb(0 0 0 / 60%);
}
.page {
  min-height: 100svh;
  padding: calc(var(--safe-top) + 58px) var(--page-x) calc(112px + var(--safe-bottom));
}
/*
 * FAB이 있는 화면은 하단 패딩을 더 줍니다.
 * FAB 상단이 화면 밑에서 142px(=86 + 56)인데 기본 패딩은 112px이라,
 * 끝까지 스크롤해도 마지막 카드의 오른쪽이 FAB에 가려져 있었습니다.
 */
.app-frame:has(.fab) .page { padding-bottom: calc(158px + var(--safe-bottom)); }
.page.route-enter { animation: page-enter 120ms ease-out both; }
.page.no-nav { padding-bottom: calc(28px + var(--safe-bottom)); }
.page.centered { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: calc(var(--safe-top) + 24px); text-align: center; }
.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  width: min(100%, 480px);
  min-height: calc(58px + var(--safe-top));
  padding: var(--safe-top) max(10px, calc(var(--page-x) - 10px)) 0;
  transform: translateX(-50%);
  /*
   * 상단바는 불투명하게 덮습니다. 예전에는 55%부터 투명해지는 그라데이션이라
   * 아래쪽 절반으로 본문 글자가 비쳐 로고·제목과 겹쳐 보였습니다.
   * 배경색이 본문 배경과 같아 경계선이 보이지 않으므로 페이드가 필요 없습니다.
   */
  background: var(--bg-primary);
}
.topbar-title {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 730;
  letter-spacing: -.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 100ms ease;
}
.icon-button:active, .button:active, .chip:active, .nav-item:active, .meeting-card:active, .list-row:active, .question-toggle:active, .date-chip:active, .segment button:active, .check:active, .fab:active, .alignment-confirmed-chip:active, .disclosure-row:active, .choice-row:active, .summary-row.actionable:active, .memory-update:active, .toast-action:active, .record-metric-row:active, .record-list-toggle:active { transform: scale(.98); }
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.bottom-nav {
  position: fixed;
  z-index: 60;
  bottom: 0;
  left: 50%;
  display: grid;
  /* 브리핑 탭 추가로 4열 (2026-08-02) */
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 480px);
  min-height: calc(70px + var(--safe-bottom));
  padding: 7px 10px var(--safe-bottom);
  transform: translateX(-50%);
  border-top: 1px solid var(--border-subtle);
  background: rgb(17 17 20 / 86%);
  backdrop-filter: blur(22px) saturate(145%);
}
.nav-item {
  display: grid;
  min-width: 0;
  min-height: 56px;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 14px;
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 680;
  transition: color 160ms ease, transform 100ms ease;
}
.nav-item .icon { width: 19px; height: 19px; }
.nav-item.active { color: var(--brand-light); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-light);
  font-size: .8125rem;
  font-weight: 760;
  letter-spacing: .045em;
}
.page-title, .display-title, .section-title, .card-title, p { margin-top: 0; }
.display-title {
  max-width: 15ch;
  margin-bottom: 14px;
  font-size: var(--type-display);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -.042em;
  text-wrap: balance;
}
.page-title {
  max-width: 20ch;
  margin-bottom: 10px;
  font-size: var(--type-page);
  font-weight: 740;
  line-height: 1.26;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.section-title { margin: 0; font-size: var(--type-section); font-weight: 710; line-height: 1.4; letter-spacing: -.022em; }
.card-title { margin-bottom: 8px; font-size: var(--type-card); font-weight: 690; line-height: 1.48; letter-spacing: -.016em; }
.lede { max-width: 38ch; margin-bottom: 22px; color: var(--text-secondary); font-size: var(--type-card); line-height: 1.65; }
.muted { color: var(--text-muted); }
.secondary-text { color: var(--text-secondary); }
.small { font-size: var(--type-body); line-height: 1.6; }
.micro { font-size: var(--type-meta); line-height: 1.5; }
.stack { display: grid; gap: 14px; }
.stack-lg { display: grid; gap: 18px; }
.cluster { display: flex; align-items: center; gap: 10px; }
.cluster.wrap { flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section { margin-top: 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.card, .insight-card, .meeting-card, .soft-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--bg-elevated);
}
.card, .insight-card, .soft-card { padding: 18px; }
.card.accent {
  border-color: rgb(124 108 255 / 28%);
  background: linear-gradient(145deg, rgb(124 108 255 / 18%), transparent 55%), var(--bg-elevated);
}
.card.warning { border-color: rgb(245 165 36 / 25%); background: rgb(245 165 36 / 7%); }
.card.success { border-color: rgb(52 199 89 / 22%); background: rgb(52 199 89 / 7%); }
.soft-card { background: var(--bg-secondary); }
.meeting-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 118px;
  padding: 17px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 100ms ease;
}
.meeting-time { color: var(--text-primary); font-size: 15px; font-variant-numeric: tabular-nums; font-weight: 760; }
/* 여러 날짜가 섞인 목록에서 시각만 보면 순서를 읽을 수 없어 날짜를 위에 적습니다. */
.meeting-day { margin-bottom: 2px; color: var(--text-secondary); font-size: 12px; font-weight: 650; letter-spacing: -.01em; }
/* 지난 회의는 목록에서 한 걸음 물러나 보이게 합니다. */
.meeting-card.is-past .meeting-time, .meeting-card.is-past .meeting-body h3 { color: var(--text-secondary); }
.meeting-body { min-width: 0; padding-left: 15px; border-left: 1px solid var(--border-subtle); }
.meeting-body h3 { margin: 0 0 7px; font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.badge, .evidence, .count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1;
}
.badge { background: var(--surface-soft); color: var(--text-secondary); }
.badge.brand, .count-pill { background: var(--brand-soft); color: var(--brand-light); }
.badge.success { background: rgb(52 199 89 / 12%); color: #79df91; }
.badge.warning { background: rgb(245 165 36 / 12%); color: #ffc463; }
.evidence { gap: 5px; background: rgb(101 167 255 / 11%); color: #93c4ff; }
.evidence::before { width: 6px; height: 6px; border-radius: 99px; background: currentColor; content: ""; }
.progress-track { width: 100%; height: 6px; margin-top: 14px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); }
.progress-bar { width: var(--progress, 0%); height: 100%; border-radius: inherit; background: var(--brand-primary); transition: width 280ms cubic-bezier(.2,.8,.2,1); }
.button {
  display: inline-flex;
  min-height: var(--action-height);
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--action-radius);
  background: var(--brand-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 740;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: filter 160ms ease, transform 100ms ease, background 160ms ease;
}
.button.secondary { border-color: var(--border-subtle); background: var(--bg-elevated); color: var(--text-primary); }
.button.ghost { background: transparent; color: var(--text-secondary); }
.button.danger { border-color: rgb(255 93 93 / 20%); background: rgb(255 93 93 / 9%); color: #ff8585; }
.button.full { width: 100%; }
.button:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.sticky-actions {
  position: static;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin-top: 28px;
  padding: 0 0 2px;
  background: none;
}
.page:has(> .sticky-actions) {
  display: flex;
  flex-direction: column;
}
.page > .sticky-actions {
  margin-top: auto;
  padding-top: 28px;
}
.read-first .sticky-actions { position: static; padding-top: 0; background: none; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  min-height: var(--compact-control-height);
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--compact-control-radius);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 100ms ease;
}
.chip.selected { border-color: rgb(124 108 255 / 45%); background: var(--brand-soft); color: var(--text-primary); }
.field { display: grid; gap: 8px; }
.field label { color: var(--text-secondary); font-size: .875rem; font-weight: 680; }
.input, .textarea, .select {
  display: block;
  width: 100%;
  min-height: var(--control-height);
  border: 1px solid var(--border-subtle);
  border-radius: var(--control-radius);
  outline: 0;
  background-color: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  scroll-margin-block: calc(var(--safe-top) + 82px) 100px;
}
.input, .select { height: var(--control-height); padding: 0 14px; line-height: normal; }
.select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23909099' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.picker-control { position: relative; min-width: 0; }
.picker-control .input { min-width: 0; padding-right: 44px; }
.picker-icon {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.picker-icon .icon { width: 18px; height: 18px; }
.input[type="date"], .input[type="time"] {
  appearance: none;
  color-scheme: dark;
  text-align: left;
}
.input[type="date"]::-webkit-date-and-time-value, .input[type="time"]::-webkit-date-and-time-value { min-height: var(--control-height); text-align: left; }
.input[type="date"]::-webkit-datetime-edit, .input[type="time"]::-webkit-datetime-edit { padding: 0; }
.input[type="date"]::-webkit-calendar-picker-indicator, .input[type="time"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.meeting-form { gap: 20px; }
.meeting-time-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.meeting-time-grid .field { min-width: 0; }
.textarea { min-height: 144px; padding: 14px 15px; resize: vertical; line-height: 1.6; }
.review-decision-input { min-height: 116px; }
.compact-choice { margin-top: 14px; }
.input:focus, .textarea:focus, .select:focus { border-color: rgb(124 108 255 / 65%); box-shadow: 0 0 0 4px var(--brand-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.list { overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--bg-elevated); }
.list-row {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.list-row:last-child { border-bottom: 0; }
.list-row > span:first-child { min-width: 0; }
.list-row strong { display: block; font-size: var(--type-item); line-height: 1.45; }
.list-row small { display: block; margin-top: 3px; color: var(--text-muted); font-size: .8125rem; line-height: 1.45; }
.check-row { display: grid; grid-template-columns: 44px 1fr auto; min-height: 58px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.check-row:last-child { border-bottom: 0; }
.check {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}
.check::before {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg-elevated);
  content: "";
}
.check .icon { position: relative; z-index: 1; width: 17px; height: 17px; }
.check.checked { color: #fff; }
.check.checked::before { border-color: var(--brand-primary); background: var(--brand-primary); }
.step-progress { display: grid; gap: 9px; margin-bottom: 28px; }
.step-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: .8125rem; font-weight: 700; }
.step-dots { display: grid; grid-template-columns: repeat(var(--steps, 6), 1fr); gap: 5px; }
.step-dot { height: 4px; border-radius: 99px; background: var(--surface-soft); }
.step-dot.done, .step-dot.current { background: var(--brand-primary); }
.score { display: flex; align-items: baseline; gap: 7px; margin: 6px 0; font-variant-numeric: tabular-nums; }
.score strong { font-size: 48px; font-weight: 760; letter-spacing: -.06em; }
.score span { color: var(--text-secondary); font-size: 14px; font-weight: 700; }
.metric-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); font-size: 14px; }
.metric-row:last-child { border-bottom: 0; }
.metric-row span:last-child { color: var(--text-secondary); font-variant-numeric: tabular-nums; font-weight: 700; }
.record-metrics { overflow: hidden; padding: 0; }
.record-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 72px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, transform 100ms ease;
}
.record-metric-row:last-child { border-bottom: 0; }
.record-metric-row:disabled { cursor: wait; opacity: .65; }
.record-metric-copy { display: grid; min-width: 0; gap: 4px; }
.record-metric-copy strong { font-size: var(--type-body); line-height: 1.45; }
.record-metric-copy small { overflow: hidden; color: var(--text-muted); font-size: var(--type-meta); line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.record-metric-value { display: inline-flex; align-items: center; gap: 7px; color: var(--brand-light); font-variant-numeric: tabular-nums; }
.record-metric-value strong { font-size: var(--type-body); }
.record-metric-value .icon { width: 17px; height: 17px; color: var(--text-muted); }
.sheet-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.sheet-title-row .section-title { margin-top: 4px; }
.record-list { overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--bg-elevated); }
.record-list-item + .record-list-item { border-top: 1px solid var(--border-subtle); }
.record-list-toggle { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; min-height: 68px; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; background: transparent; color: var(--text-primary); text-align: left; cursor: pointer; transition: background 160ms ease, transform 100ms ease; }
.record-list-toggle > span { display: grid; min-width: 0; gap: 4px; }
.record-list-toggle strong { font-size: var(--type-body); line-height: 1.45; }
.record-list-toggle small { color: var(--text-muted); font-size: var(--type-meta); line-height: 1.4; }
.record-list-toggle > .icon { width: 18px; height: 18px; color: var(--text-muted); transition: transform 160ms ease; }
.record-list-toggle[aria-expanded="true"] > .icon { transform: rotate(90deg); }
.record-item-detail { display: grid; gap: 0; margin: 0 16px 14px; padding: 4px 14px; border-radius: 14px; background: var(--bg-secondary); }
.record-item-detail > div { display: grid; gap: 4px; padding: 11px 0; }
.record-item-detail > div + div { border-top: 1px solid var(--border-subtle); }
.record-item-detail span { color: var(--text-muted); font-size: var(--type-meta); font-weight: 700; }
.record-item-detail p { margin: 0; color: var(--text-primary); font-size: var(--type-body); line-height: 1.55; }
.record-empty { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 10px; padding: 24px; color: var(--text-secondary); text-align: center; }
.record-empty span { max-width: 250px; color: var(--text-muted); font-size: var(--type-meta); line-height: 1.55; }
.hero-meeting {
  padding: 18px;
  border: 1px solid rgb(124 108 255 / 25%);
  border-radius: 20px;
  background: radial-gradient(circle at 95% 0, rgb(124 108 255 / 18%), transparent 11rem), linear-gradient(145deg, #191822, var(--bg-elevated));
}
.hero-time { color: var(--brand-light); font-size: 13px; font-weight: 750; }
.hero-meeting h2 { margin: 7px 0 14px; font-size: 20px; line-height: 1.35; letter-spacing: -.03em; }
.prep-summary {
  overflow: hidden;
  border-block: 1px solid var(--border-subtle);
}
.prep-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 0;
}
.prep-row + .prep-row { border-top: 1px solid var(--border-subtle); }
.prep-label {
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.55;
}
.prep-value {
  min-width: 0;
  font-size: .875rem;
  font-weight: 680;
  line-height: 1.55;
}
.prep-alert { color: #ffc362; }
.prep-progress { margin-top: 12px; }
.hero-action { margin-top: 16px; }
.prep-card { padding-block: 7px; }
.evidence-list { padding-block: 4px; }
.evidence-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 8px 0;
}
.evidence-row + .evidence-row { border-top: 1px solid var(--border-subtle); }
.evidence-row > div {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.evidence-row strong { font-size: 14px; font-weight: 680; line-height: 1.45; }
.evidence-row .evidence { width: fit-content; }
.agenda-dates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 18px 0 22px; }
.date-chip {
  display: grid;
  min-width: 0;
  min-height: 62px;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
}
.date-chip span { font-size: .8125rem; }
.date-chip strong { font-size: 15px; }
.date-chip.selected { border-color: rgb(124 108 255 / 35%); background: var(--brand-soft); color: var(--text-primary); }
.segment { display: grid; grid-template-columns: repeat(var(--segments, 3), 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-secondary); }
.segment button { min-height: 44px; padding: 0 10px; border-radius: 11px; background: transparent; color: var(--text-muted); font-size: .875rem; font-weight: 700; cursor: pointer; }
.segment button.active { background: var(--surface-soft); color: var(--text-primary); }
.timeline { display: grid; }
.timeline-item { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 22px; }
.timeline-item::before { position: absolute; top: 25px; bottom: 0; left: 12px; width: 1px; background: var(--border-strong); content: ""; }
.timeline-item:last-child::before { display: none; }
.timeline-dot { display: grid; z-index: 1; width: 25px; height: 25px; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand-light); font-size: .8125rem; font-weight: 800; }
.question-card { padding: 0; }
.question-toggle {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 17px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.question-toggle strong { font-size: var(--type-item); line-height: 1.5; }
.question-content { padding: 0 17px 17px; animation: content-reveal 180ms ease both; }
/* 1:1은 여러 질문을 비교하는 목록이므로 카드 제목보다 본문 밀도로 보여줍니다. */
.one-on-one-list { gap: 10px; }
.one-on-one-card { padding: 14px 15px; }
.one-on-one-question { margin: 0; font-size: var(--type-item); font-weight: 650; line-height: 1.5; letter-spacing: -.012em; }
.one-on-one-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 10px; }
.one-on-one-actions .button { min-height: 44px; padding: 0 12px; font-size: .8125rem; }
.one-on-one-actions .button.ghost { margin-right: auto; padding-left: 0; }
.brief-block { padding: 17px 0; border-bottom: 1px solid var(--border-subtle); }
.brief-block:last-child { border-bottom: 0; }
.brief-label { display: block; margin-bottom: 7px; color: var(--brand-light); font-size: .8125rem; font-weight: 750; }
:where(.brief-block) p, :where(.brief-block) li { margin-bottom: 0; color: var(--text-primary); font-size: var(--type-card); line-height: 1.65; }
.brief-block ol { margin: 0; padding-left: 20px; }
.briefing-card .brief-block { padding: 15px 0; }
.briefing-response p + p { margin-top: 8px; color: var(--text-secondary); }
.briefing-response strong { color: var(--text-primary); }
.carried-context { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: var(--text-muted); font-size: var(--type-meta); line-height: 1.45; }
.briefing-check { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; }
.briefing-check .brief-label { margin: 0; }
.briefing-check strong { color: #ffc463; font-size: .875rem; }
.readiness-card .card-title { margin: 13px 0 7px; }
.readiness-list { display: grid; margin-top: 9px; border-top: 1px solid var(--border-subtle); }
.readiness-row { display: flex; min-height: 44px; align-items: center; gap: 10px; color: var(--text-secondary); font-size: var(--type-body); font-weight: 650; }
.readiness-row + .readiness-row { border-top: 1px solid var(--border-subtle); }
.readiness-row .icon { width: 17px; height: 17px; color: #79df91; stroke-width: 2.3; }
.context-source-list { margin: 0 14px 14px; padding-top: 2px; border-top: 1px solid var(--border-subtle); }
.context-source-row { display: grid; gap: 4px; padding: 12px 2px; border-bottom: 1px solid var(--border-subtle); }
.context-source-row span { color: var(--text-muted); font-size: var(--type-meta); line-height: 1.4; }
.context-source-row strong { color: var(--text-primary); font-size: var(--type-body); line-height: 1.5; }
.context-note { margin: 12px 2px 0; color: var(--text-muted); font-size: var(--type-meta); line-height: 1.55; }
.presentation { display: flex; min-height: calc(100svh - var(--safe-top) - var(--safe-bottom) - 86px); flex-direction: column; }
.presentation-counter { color: var(--text-muted); font-size: 13px; font-variant-numeric: tabular-nums; font-weight: 700; text-align: center; }
.presentation-card { display: flex; flex: 1; align-items: center; justify-content: center; padding: 28px 4px; touch-action: pan-y; }
.presentation-card article {
  width: 100%;
  padding: 28px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  background: var(--bg-elevated);
  animation: slide-in 220ms cubic-bezier(.2,.8,.2,1) both;
}
.presentation-card h1 { margin: 0 0 18px; color: var(--brand-light); font-size: 15px; }
.presentation-card p, .presentation-card li { font-size: clamp(21px, 6vw, 27px); font-weight: 690; line-height: 1.5; letter-spacing: -.035em; }
.presentation-card ol { margin: 0; padding-left: 26px; }
.presentation-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch { position: relative; width: 50px; height: 30px; flex: 0 0 auto; border-radius: 99px; background: var(--surface-soft); cursor: pointer; transition: background 180ms ease; }
.switch::after { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / 28%); content: ""; transition: transform 220ms cubic-bezier(.2,.8,.2,1); }
.switch.on { background: var(--brand-primary); }
.switch.on::after { transform: translateX(20px); }
.brand-word { font-size: 29px; font-weight: 800; letter-spacing: -.045em; }
.orbit { position: relative; width: 100%; height: 190px; margin: 10px 0 24px; }
.orbit-ring { position: absolute; top: 50%; left: 50%; width: min(68vw, 280px); height: min(35vw, 140px); transform: translate(-50%, -50%); border: 1px solid rgb(124 108 255 / 35%); border-radius: 50%; box-shadow: 0 0 38px rgb(124 108 255 / 12%) inset; }
.orbit-ring:nth-child(2) { width: min(45vw, 190px); height: min(45vw, 190px); }
.orbit-core { position: absolute; top: 50%; left: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--brand-light); box-shadow: 0 0 0 14px rgb(124 108 255 / 12%), 0 0 40px var(--brand-primary); }
.avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; background: linear-gradient(145deg, #393943, #212127); color: var(--text-secondary); font-size: 13px; font-weight: 760; }
.screen-index .page-title { max-width: 12ch; }
.flow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow-card { display: flex; min-height: 112px; flex-direction: column; justify-content: space-between; padding: 16px; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--bg-elevated); cursor: pointer; }
.flow-card:first-child { grid-column: 1 / -1; min-height: 96px; border-color: rgb(124 108 255 / 28%); background: linear-gradient(145deg, var(--brand-soft), var(--bg-elevated)); }
.flow-card strong { font-size: var(--type-item); line-height: 1.45; }
.screen-link { display: grid; grid-template-columns: 42px 1fr auto; min-height: 58px; align-items: center; gap: 11px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle); cursor: pointer; }
.screen-link:last-child { border-bottom: 0; }
.screen-number { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--surface-soft); color: var(--text-secondary); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 760; }
.screen-link small { display: block; margin-top: 2px; }
.fab { position: fixed; z-index: 32; right: max(20px, calc((100vw - 480px) / 2 + 20px)); bottom: calc(86px + var(--safe-bottom)); display: grid; width: 56px; height: 56px; place-items: center; border-radius: 18px; background: var(--brand-primary); color: #fff; box-shadow: 0 12px 34px rgb(73 55 199 / 35%); cursor: pointer; }
.scrim { position: fixed; z-index: 49; inset: 0; background: rgb(0 0 0 / 58%); animation: fade-in 180ms ease both; }
.bottom-sheet {
  position: fixed;
  z-index: 50;
  bottom: 0;
  left: 50%;
  width: min(100%, 480px);
  max-height: min(calc(var(--visual-viewport-height) - 12px), 720px);
  padding: 10px var(--page-x) calc(18px + var(--safe-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-bottom: 124px;
  transform: translateX(-50%);
  border: 1px solid var(--border-subtle);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: #17171c;
  box-shadow: 0 -24px 80px rgb(0 0 0 / 45%);
  animation: sheet-up 280ms cubic-bezier(.2,.8,.2,1) both;
}
.app-frame:has(.bottom-nav) .bottom-sheet {
  bottom: calc(70px + var(--safe-bottom));
  max-height: min(calc(var(--visual-viewport-height) - 70px - var(--safe-bottom) - 12px), 720px);
  padding-bottom: 18px;
}
.bottom-sheet .sticky-actions {
  position: sticky;
  z-index: 2;
  bottom: calc(-18px - var(--safe-bottom));
  margin-right: calc(-1 * var(--page-x));
  margin-bottom: calc(-18px - var(--safe-bottom));
  margin-left: calc(-1 * var(--page-x));
  padding: 12px var(--page-x) calc(18px + var(--safe-bottom));
  background: linear-gradient(180deg, rgb(23 23 28 / 0%), #17171c 14px);
}
.app-frame:has(.bottom-nav) .bottom-sheet .sticky-actions {
  bottom: -18px;
  margin-bottom: -18px;
  padding-bottom: 18px;
}
.sheet-open body { overflow: hidden; }
.sheet-handle { width: 36px; height: 5px; margin: 0 auto 18px; border-radius: 99px; background: var(--border-strong); }
.toast { position: fixed; z-index: 70; bottom: calc(92px + var(--safe-bottom)); left: 50%; display: flex; width: min(calc(100% - 32px), 440px); min-height: 56px; align-items: center; gap: 10px; padding: 6px 9px 6px 14px; transform: translateX(-50%); border: 1px solid var(--border-strong); border-radius: 15px; background: #28282f; box-shadow: 0 16px 40px rgb(0 0 0 / 35%); color: var(--text-primary); font-size: var(--type-body); font-weight: 650; animation: toast-in 220ms cubic-bezier(.2,.8,.2,1) both; }
.toast > span { min-width: 0; flex: 1; }
.toast-action { min-height: 44px; padding: 0 10px; border-radius: 11px; background: transparent; color: var(--brand-light); font-size: var(--type-meta); font-weight: 760; cursor: pointer; }
.loading { display: grid; min-height: 240px; place-items: center; align-content: center; gap: 18px; text-align: center; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--surface-soft); border-top-color: var(--brand-primary); border-radius: 50%; animation: spin .8s linear infinite; }
.empty-state { display: grid; min-height: 320px; place-items: center; align-content: center; gap: 14px; padding: 24px; text-align: center; }
.empty-symbol { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--bg-elevated); color: var(--brand-light); }
.price { margin: 8px 0 0; font-size: 38px; font-variant-numeric: tabular-nums; font-weight: 780; letter-spacing: -.05em; }
.price small { color: var(--text-secondary); font-size: 14px; font-weight: 650; letter-spacing: 0; }
.privacy-note { padding: 15px; border-left: 3px solid var(--info); border-radius: 0 14px 14px 0; background: rgb(101 167 255 / 7%); color: var(--text-secondary); font-size: .875rem; line-height: 1.7; }

/* Cohesive wordmark and a single alignment symbol for splash and favicon. */
.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: 0;
  padding: 0 8px;
  border-radius: 14px;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.brand-home:active { background: var(--surface-hover); }
.brand-home-logo { width: 26px; height: 26px; border-radius: 8px; }
.brand-home-word { font-size: 17px; font-weight: 800; letter-spacing: -.045em; }
.brand-home-accent, .brand-word span, .welcome-brand span { color: var(--brand-light); }
.welcome-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; font-size: 20px; font-weight: 820; letter-spacing: -.045em; }
.welcome-brand img { width: 34px; height: 34px; border-radius: 10px; }
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: -7px 0 20px;
  color: var(--text-muted);
  font-size: var(--type-meta);
  font-weight: 680;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 4px; }
.trust-strip .icon { width: 14px; height: 14px; color: var(--brand-light); stroke-width: 2.2; }
.welcome-preview .card-title { margin: 12px 0 6px; }
.splash-brand { display: grid; justify-items: center; gap: 16px; }
.splash-logo { width: 66px; height: 66px; border-radius: 19px; box-shadow: 0 18px 44px rgb(73 55 199 / 30%); }
.splash-wordmark { font-size: 36px; line-height: 1.1; }
.status-mark { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 20px; border: 1px solid rgb(169 157 255 / 22%); border-radius: 18px; background: var(--brand-soft); color: var(--brand-light); }
.status-mark.success { border-color: rgb(52 199 89 / 22%); background: rgb(52 199 89 / 10%); color: #79df91; }
.status-mark .icon { width: 26px; height: 26px; stroke-width: 2.1; }

/* Keep optional preparation outside the primary sticky action. */
.optional-action { min-height: 44px; margin-top: 14px; }
.disclosure-card { overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--bg-elevated); }
.disclosure-row {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.disclosure-copy { display: grid; gap: 2px; }
.disclosure-copy .brief-label { margin: 0; }
.disclosure-copy strong { font-size: var(--type-item); line-height: 1.45; }
.disclosure-action { display: inline-flex; min-height: 44px; align-items: center; gap: 4px; color: var(--brand-light); font-size: var(--type-meta); font-weight: 750; }
.today-secondary { display: grid; gap: 4px; }
.today-agenda-link {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.quiet-memory-link {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--type-meta);
  font-weight: 680;
  cursor: pointer;
}
.quiet-memory-link > span { display: inline-flex; align-items: center; gap: 8px; }
.quiet-memory-link .icon { width: 17px; height: 17px; }
.disclosure-action .icon { width: 16px; height: 16px; transition: transform 160ms ease; }
.disclosure-row[aria-expanded="true"] .disclosure-action .icon { transform: rotate(180deg); }
.alignment-confirmed-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 14px 14px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.alignment-confirmed-list > p { margin: 0; }
.alignment-confirmed-chip { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid rgb(52 199 89 / 20%); border-radius: 13px; background: rgb(52 199 89 / 8%); color: var(--text-primary); font-size: var(--type-body); font-weight: 650; cursor: pointer; }
.alignment-confirmed-chip .icon { width: 16px; height: 16px; color: #79df91; }
.alignment-hint { margin: -2px 14px 14px; }
.prepared-summary { margin: 16px 0 0; }

.summary-list, .choice-list, .extract-list {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--bg-elevated);
}
.summary-row {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.summary-row:last-child, .choice-row:last-child, .extract-row:last-child { border-bottom: 0; }
.summary-label { color: var(--text-muted); font-size: var(--type-meta); font-weight: 720; line-height: 1.4; }
.summary-row p, .summary-row strong { margin: 0; color: var(--text-primary); font-size: var(--type-body); font-weight: 650; line-height: 1.55; }
.summary-row small { color: var(--text-muted); font-size: var(--type-meta); line-height: 1.45; }
.summary-row.actionable {
  grid-template-columns: 1fr auto;
  width: 100%;
  min-height: 68px;
  align-items: center;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.summary-row.actionable > span { display: grid; gap: 4px; }
.summary-row.actionable > .icon { width: 18px; height: 18px; color: var(--text-muted); }
.warning-row { background: rgb(245 165 36 / 6%); }
.warning-row .summary-label { color: #ffc463; }

.choice-row {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  font-size: var(--type-body);
  font-weight: 650;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.choice-row.selected { background: var(--brand-soft); }
.choice-indicator { display: grid; flex: 0 0 24px; width: 24px; height: 24px; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: transparent; }
.choice-row.selected .choice-indicator { border-color: var(--brand-primary); background: var(--brand-primary); color: white; }
.choice-indicator .icon { width: 15px; height: 15px; stroke-width: 2.4; }

.perspective-list { gap: 10px; }
.perspective-card { padding: 0; }
.perspective-card .question-toggle small { display: block; margin-top: 3px; color: var(--text-muted); font-size: var(--type-meta); font-weight: 600; }
.perspective-card .question-toggle[aria-expanded="true"] > .icon { transform: rotate(90deg); }
.perspective-content { padding: 0 17px 17px; animation: content-reveal 180ms ease both; }
.perspective-content .micro { margin: 12px 0 0; }

.extract-row { padding: 16px; border-bottom: 1px solid var(--border-subtle); transition: opacity 160ms ease, background 160ms ease; }
.extract-row.excluded { background: var(--bg-secondary); opacity: .58; }
.extract-row .card-title { margin: 7px 0 8px; }
.extract-actions { display: flex; align-items: center; gap: 4px; }
.extract-actions .button { min-height: 44px; padding: 0 10px; font-size: var(--type-meta); }
.extract-actions .button:first-child { margin-left: -10px; }

.memory-update {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  width: 100%;
  min-height: 76px;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgb(52 199 89 / 22%);
  border-radius: 18px;
  background: rgb(52 199 89 / 7%);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: transform 100ms ease, background 160ms ease;
}
.memory-update > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.memory-update strong { overflow: hidden; font-size: var(--type-body); line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.memory-update > .icon { width: 18px; height: 18px; color: var(--text-muted); }
.memory-update-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 11px; background: rgb(52 199 89 / 13%); color: #79df91; }
.memory-update-mark .icon { width: 17px; height: 17px; stroke-width: 2.3; }

@media (hover: hover) and (pointer: fine) {
  .memory-update:hover { background: rgb(52 199 89 / 10%); }
}

/* Project cards show the next useful action first instead of three equal text blocks. */
.project-search { margin-top: 6px; }
.project-summary { padding: 17px 18px; cursor: pointer; }
.project-summary .card-title { margin: 0; }
.project-arrow { display: grid; color: var(--text-muted); }
.project-arrow .icon { width: 17px; height: 17px; }
.project-next { margin: 14px 0 0; color: var(--text-primary); font-size: 14px; font-weight: 680; line-height: 1.5; }
.project-next span { display: block; margin-bottom: 3px; color: var(--brand-light); font-size: .8125rem; font-weight: 750; }
.project-need { display: flex; min-width: 0; align-items: center; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.project-need > span:last-child { min-width: 0; overflow: hidden; color: var(--text-secondary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

@media (hover: hover) and (pointer: fine) {
  .icon-button:hover { background: var(--surface-soft); color: var(--text-primary); }
  .meeting-card:hover { border-color: var(--border-strong); background: var(--surface-soft); }
  .button:hover { filter: brightness(1.08); }
}

@keyframes page-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes content-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-up { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes spin { to { transform: rotate(1turn); } }
@media (min-width: 700px) {
  .app-frame { min-height: calc(100svh - 36px); margin: 18px auto; border-radius: 28px; }
  .topbar { top: 18px; border-radius: 28px 28px 0 0; }
  /*
   * 넓은 화면에서는 앱을 액자에 넣고 페이지 전체가 스크롤됩니다.
   * 액자가 위로 밀려 올라가면 상단바 위 18px 띠가 액자 안쪽이 되어
   * 본문 글자가 그 틈으로 지나갔습니다. 페이지 배경으로 덮습니다.
   */
  .topbar::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -18px;
    right: 0;
    left: 0;
    height: 19px;
    background: var(--bg-primary);
  }
  .bottom-nav { bottom: 18px; border-radius: 0 0 28px 28px; }
  .fab { bottom: calc(104px + var(--safe-bottom)); }
  .bottom-sheet { bottom: 18px; border-radius: 26px; }
  .app-frame:has(.bottom-nav) .bottom-sheet { bottom: calc(88px + var(--safe-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition-duration: .01ms; animation-duration: .01ms; animation-iteration-count: 1; }
  .page, .bottom-sheet, .presentation-card article { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bottom-nav, .bottom-sheet { background: #17171c; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-secondary: #d0d0d6; --text-muted: #aaaab3; --border-subtle: rgb(255 255 255 / 22%); --border-strong: rgb(255 255 255 / 38%); }
}

/* 시트 안에서 직접 입력받는 칸. window.prompt()는 iOS에서 막혀 쓸 수 없습니다. */
.sheet-field { display: grid; gap: 8px; margin-top: 18px; color: var(--text-muted); font-size: .8125rem; font-weight: 700; }
.sheet-field input {
  width: 100%;
  min-height: var(--control-height);
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--control-radius);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
}
.sheet-field textarea {
  width: 100%;
  min-height: 96px;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--control-radius);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  resize: none;
}
.sheet-field input::placeholder, .sheet-field textarea::placeholder { color: var(--text-muted); }
.sheet-field input:focus-visible, .sheet-field textarea:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 2px; }

.keyboard-open .bottom-nav {
  opacity: 0;
  pointer-events: none;
}
.keyboard-open .bottom-sheet,
.keyboard-open .app-frame:has(.bottom-nav) .bottom-sheet {
  bottom: var(--keyboard-offset);
  max-height: min(calc(var(--visual-viewport-height) - 8px), 720px);
}

/*
 * 발표 모드 — 회의장에서 손에 들고 힐끔 보는 화면.
 * 예전에는 카드가 화면 가운데 떠 있어 위아래 60%가 비었고,
 * 지금 어디쯤인지와 다음에 무슨 말을 할지가 없었습니다.
 */
.present-head { display: grid; gap: 9px; padding-top: 2px; }
.present-progress { display: grid; grid-auto-flow: column; gap: 4px; }
.present-progress i { height: 4px; border-radius: 999px; background: var(--surface-hover); }
.present-progress i.done { background: var(--brand-light); }
.present-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.present-clock { color: var(--text-secondary); }

/* 라벨은 무엇에 대한 장인지 알려주는 이름표라 크게 둡니다. */
.presentation-card .present-label {
  margin: 0 0 16px;
  color: var(--brand-light);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}
/* 본문은 팔 길이에서 읽혀야 합니다. 기존 21~27px에서 올립니다. */
.presentation-card .present-body p,
.presentation-card .present-body li {
  font-size: clamp(24px, 7vw, 33px);
  font-weight: 720;
  line-height: 1.45;
  letter-spacing: -.04em;
}
.presentation-card .present-body ol { margin: 0; padding-left: 1.1em; display: grid; gap: 12px; }

/* 빈 공간을 줄이고 카드가 화면을 채우게 합니다. */
.presentation-card { align-items: stretch; padding: 16px 0 10px; }
.presentation-card article { display: flex; flex-direction: column; justify-content: center; }

/* 다음 장 제목을 미리 보여주면 말이 끊기지 않습니다. */
.present-next {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}

/*
 * 루트 탭의 상단바는 로고만 둡니다.
 * 3단 격자를 그대로 쓰면 로고가 48px 칸에 갇혀 글자가 잘립니다.
 */
.topbar.is-brand { grid-template-columns: 1fr auto; }
/* 링크가 1fr을 다 먹으면 상단바 전체가 홈 버튼이 됩니다. 내용 폭만 차지하게 합니다. */
.topbar.is-brand .brand-home { justify-self: start; }
