/* 플린더스 새 부품(재설계 1130) — 시안/flinders.css 를 앱에 옮긴 것. 클래스는 모두 f- 로 시작(옛 app.css 와 섞이지 않게).
   토큰은 fl-tokens.css. 화면: 오늘 · 할 일 · 기록 · 설정 · 넣기 시트 · 약속 자세히 · 집중 · 처음 안내. */

/* ── 바탕 · 화면 틀 ─────────────────────────────── */
.f-page { flex: 1; width: 100%; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--ft-2); line-height: 24px; -webkit-font-smoothing: antialiased;
  padding: var(--safe-t) var(--safe-r) 0 var(--safe-l); }
.f-page.grouped { background: var(--bg-group); }
:where(.f-page, .f-sheet, .f-tabbar, .f-side) :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; margin: 0; }
:where(.f-page, .f-sheet, .f-tabbar, .f-side) :where(a) { color: inherit; text-decoration: none; }
.f-page :focus-visible, .f-sheet :focus-visible, .f-tabbar :focus-visible, .f-side :focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 8px; }
.f-page h1, .f-page h2, .f-sheet h1, .f-sheet h2 { margin: 0; text-wrap: balance; }
.f-page p, .f-sheet p { margin: 0; }
.f-num { font-variant-numeric: tabular-nums; }
svg.f-i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
svg.f-i.f-s { width: 18px; height: 18px; }
svg.f-i.f-xs { width: 16px; height: 16px; }
.f-grow { flex: 1; min-width: 0; }
/* 말하기 단추가 아래 막대 위로 38 올라오므로 목록 화면은 아래 여백 44 를 더 둔다 */
.f-page.has-tabs { padding-bottom: calc(56px + var(--safe-b) + 44px); }
.f-wrap { width: 100%; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; flex: 1; }

/* ── 머리 ─────────────────────────────── */
.f-head { display: flex; align-items: baseline; gap: var(--sp-2); padding: var(--sp-3) calc(var(--gutter) + var(--band)) var(--sp-2) var(--gutter); }
.f-title { font-size: var(--ft-1); line-height: 34px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.f-sub { font-size: var(--ft-2); color: var(--ink-2); white-space: nowrap; }
.f-prog { font-size: var(--ft-3); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.f-iconbtn { width: var(--hit); height: var(--hit); display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink); flex: none; }
.f-sticky { position: sticky; top: 0; z-index: 8; background: var(--bg); padding-top: var(--safe-t); margin-top: calc(-1 * var(--safe-t)); }

/* 주 띠 */
.f-week { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 calc(var(--gutter) - 4px) var(--sp-2); }
.f-week .f-d { display: flex; flex-direction: column; align-items: center; gap: 2px; height: 52px; justify-content: center; border-radius: 12px; min-width: 0; }
.f-week .f-w { font-size: var(--ft-4); line-height: 16px; color: var(--ink-3); font-weight: 500; }
.f-week .f-n { font-size: var(--ft-3); font-weight: 600; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.f-week .f-d.today .f-n { background: var(--ink); color: var(--bg); }
.f-week .f-d.today .f-w { color: var(--ink); font-weight: 700; }
.f-week .f-d.pick:not(.today) .f-n { box-shadow: inset 0 0 0 1.5px var(--ink); }
.f-week .f-d .f-dots { display: flex; gap: 2px; height: 4px; }
.f-week .f-d .f-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ctl-line); }

/* 날짜 줄(하루 종일·매달) */
.f-allday { display: flex; gap: var(--sp-2); padding: 0 calc(var(--gutter) + var(--band)) var(--sp-2) var(--gutter); align-items: flex-start; }
.f-allday .f-lbl { width: calc(var(--tick-w) - var(--gutter)); font-size: var(--ft-4); color: var(--ink-3); font-weight: 500; flex: none; line-height: 44px; }
.f-allday .f-items { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.f-dayitem { min-width: 0; min-height: 44px; display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-1) 0 var(--sp-3); border-radius: var(--r-chip); background: var(--bg-2); font-size: var(--ft-3); text-align: left; width: 100%; }
.f-dayitem > * { flex: none; }
.f-dayitem b { flex: 0 1 auto; min-width: 3.5em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-dayitem .f-m { flex: 0 1 auto; min-width: 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-dayitem .f-grow { flex: 1 1 0; min-width: 0; }

/* ── 시간표 ─────────────────────────────── */
.f-lanes-head { display: grid; grid-template-columns: var(--tick-w) 1fr var(--done-w, 72px); padding: 0 var(--gutter) 4px 0; font-size: var(--ft-4); color: var(--ink-3); font-weight: 500; border-bottom: 1px solid var(--line); }
.f-lanes-head span:nth-child(2) { padding-left: 8px; }
.f-lanes-head span:last-child { text-align: center; }
.f-grid { position: relative; flex: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.f-grid.dragging { touch-action: none; }
.f-grid .f-hr { position: absolute; left: var(--tick-w); right: 0; height: 1px; background: var(--line); pointer-events: none; }
.f-grid .f-hr.half { background: transparent; border-top: 1px dashed var(--line); opacity: .7; }
.f-grid .f-tk { position: absolute; left: 0; width: var(--tick-w); padding-right: 8px; text-align: right; font-size: var(--ft-4); line-height: 16px; color: var(--ink-3); font-weight: 500; transform: translateY(-8px); background: var(--bg); pointer-events: none; }
.f-grid .f-donelane { position: absolute; top: 0; bottom: 0; width: var(--done-w, 72px); right: var(--gutter); background: var(--bg-2); opacity: .55; border-radius: 8px; pointer-events: none; }
.f-block { position: absolute; border-radius: var(--r-block); padding: 4px 8px 4px 12px; overflow: hidden; display: flex; flex-direction: column; gap: 0; background: var(--ct); color: var(--ci); text-align: left; z-index: 2; touch-action: pan-y; }
.f-block::before { content: ""; position: absolute; left: 3px; top: 3px; bottom: 3px; width: 3px; border-radius: 2px; background: var(--c); }
.f-block .f-bt { font-size: var(--ft-3); line-height: 20px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.f-block .f-bt .f-tx { overflow: hidden; text-overflow: ellipsis; }
.f-block .f-bm { font-size: var(--ft-4); line-height: 16px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-block.short { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; }
.f-block.short .f-bm { flex: none; }
.f-block .f-ok { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: var(--bg); display: grid; place-items: center; flex: none; }
.f-block .f-ok svg { width: 13px; height: 13px; stroke-width: 2.5; }
.f-block.selected { box-shadow: 0 0 0 2px var(--c), var(--sh-float); z-index: 5; overflow: visible; }
.f-block.lifted { box-shadow: 0 0 0 2px var(--c), var(--sh-float); z-index: 7; opacity: .92; transition: none; }
.f-block.done .f-bt .f-tx { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ci) 50%, transparent); }
.f-handle { position: absolute; width: 28px; height: 28px; display: grid; place-items: center; z-index: 6; touch-action: none; }
.f-handle::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c); }
.f-handle.top { top: -14px; right: 10px; } .f-handle.bot { bottom: -14px; left: 10px; }
.f-ghost { position: absolute; border-radius: var(--r-block); border: 1.5px dashed var(--c); background: color-mix(in srgb, var(--ct) 70%, transparent); color: var(--ci); padding: 5px 12px; font-size: var(--ft-3); font-weight: 600; z-index: 6; pointer-events: none; }
.f-ghost.hint { border-color: var(--ctl-line); background: var(--bg-2); color: var(--ink-2); display: flex; align-items: center; justify-content: center; text-align: center; }
.f-actual { position: absolute; border-radius: 4px; background: var(--c); z-index: 2; pointer-events: none; }
.f-actual.running { background: repeating-linear-gradient(135deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 70%, var(--bg)) 6px 12px); }
.f-nowline { position: absolute; left: calc(var(--tick-w) - 2px); right: 0; height: 2px; background: var(--accent); z-index: 1; pointer-events: none; }
.f-nowline::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.f-nowtag { position: absolute; left: 4px; width: calc(var(--tick-w) - 12px); text-align: center; transform: translateY(-50%); height: 20px; line-height: 20px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: var(--ft-4); font-weight: 700; z-index: 9; pointer-events: none; }

/* 아직 안 됨 = 도장처럼 */
.f-stamp { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--r-pill); border: 1.5px solid var(--ink-2); color: var(--ink-2); font-size: var(--ft-4); font-weight: 700; white-space: nowrap; background: transparent; flex: none; transform: rotate(-3deg); }

/* ── 아래 막대 + 말하기 단추 ─────────────────────────────── */
.f-tabbar { position: fixed; left: 0; right: var(--safe-r); bottom: 0; height: calc(56px + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--barbg);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr 96px 1fr 1fr; align-items: center; z-index: 30; font-family: var(--font); }
.f-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; height: 52px; justify-content: center; color: var(--ink-3); font-size: var(--ft-4); line-height: 16px; font-weight: 500; text-decoration: none; }
.f-tab.on { color: var(--ink); font-weight: 700; }
.f-talkslot { position: relative; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 6px; font-size: var(--ft-4); line-height: 16px; font-weight: 700; color: var(--accent-text); }
.f-talk { width: 64px; height: 64px; border-radius: 50%; background: var(--accent) !important; color: var(--on-accent) !important; display: grid; place-items: center; box-shadow: var(--sh-talk), 0 0 0 4px var(--bg); }
.f-page.grouped ~ .f-tabbar .f-talk { box-shadow: var(--sh-talk), 0 0 0 4px var(--bg-group); }
.f-talk svg { width: 30px; height: 30px; stroke-width: 2; }
.f-talkslot .f-talk { position: absolute; top: -38px; left: 50%; transform: translateX(-50%); }
.f-talk.big { width: 88px; height: 88px; } .f-talk.big svg { width: 40px; height: 40px; }
/* 듀오 펼침·아이패드 세로: 뜬 알약 막대 460 */
@media (min-width: 700px) {
  .f-tabbar { left: 50%; right: auto; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); width: 460px; height: 60px; padding-bottom: 0; border-radius: 30px; box-shadow: var(--sh-float); border: 1px solid var(--line); }
  .f-tabbar .f-talkslot { height: 60px; }
  .f-tabbar .f-talkslot .f-talk { top: -24px; }
  .f-page.has-tabs { padding-bottom: calc(96px + var(--safe-b)); }
}
/* 아이패드·맥 가로: 왼쪽 목록 248 + 말하기는 목록 맨 아래(시스템.md 7절) */
.f-side { display: none; }
@media (min-width: 1100px) and (min-height: 600px) {
  .f-tabbar { display: none; }
  .f-side { display: flex; position: fixed; top: 0; bottom: 0; left: 0; width: 248px; background: var(--bg-side); border-right: 1px solid var(--line); flex-direction: column; padding: calc(18px + var(--safe-t)) 12px calc(18px + var(--safe-b)); gap: 2px; z-index: 30; font-family: var(--font); font-size: var(--ft-2); }
  .f-side .f-brand { font-size: var(--ft-2); font-weight: 700; padding: 6px 12px 18px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
  .f-side .f-brand img { width: 28px; height: 28px; border-radius: 7px; }
  .f-side .f-nav { height: 40px; border-radius: 10px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
  .f-side .f-nav.on { background: var(--bg); color: var(--ink); font-weight: 600; box-shadow: var(--sh-hair); }
  .f-side .f-nav .f-cnt { margin-left: auto; font-size: var(--ft-4); color: var(--ink-3); }
  .f-side .f-sidetalk { margin-top: var(--sp-3); height: 44px; border-radius: 12px; font-size: var(--ft-3); }
  .f-side .f-sidetalk .f-kbd { font-size: var(--ft-4); font-weight: 500; opacity: .85; margin-left: 4px; }
  .f-page.has-tabs { padding-left: calc(248px + var(--safe-l)); padding-bottom: 32px; }
  .f-page.has-tabs .f-wrap.full { max-width: none; }
}
:root[data-theme="dark"] .f-side .f-nav.on { background: var(--bg-3); }

/* ── 시트 ─────────────────────────────── */
.f-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 60; opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.f-scrim.in { opacity: 1; }
.f-sheet { position: fixed; left: 0; right: var(--safe-r); bottom: 0; z-index: 61; background: var(--bg-sheet); color: var(--ink); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--sh-float);
  padding: 8px var(--sp-5) calc(var(--safe-b) + 12px); display: flex; flex-direction: column; max-height: calc(100dvh - var(--safe-t) - 10px); overflow-y: auto; overscroll-behavior: contain;
  font-family: var(--font); font-size: var(--ft-2); line-height: 24px; transform: translateY(100%); transition: transform 300ms cubic-bezier(.2, .9, .25, 1); }
.f-sheet.in { transform: none; }
.f-sheet.tall { top: calc(var(--safe-t) + 10px); }
.f-sheet > * { flex-shrink: 0; }
@media (min-width: 700px) {
  .f-sheet { left: 50%; right: auto; width: min(560px, calc(100vw - 32px)); transform: translate(-50%, 100%); padding-bottom: calc(var(--safe-b) + 20px); }
  .f-sheet.in { transform: translate(-50%, 0); }
  .f-sheet.side { left: auto; right: calc(var(--band) + 12px); top: 12px; bottom: 12px; width: 420px; border-radius: 20px; transform: translateX(110%); }
  .f-sheet.side.in { transform: none; }
}
@media (min-width: 1100px) and (min-height: 600px) {
  .f-sheet:not(.side) { bottom: auto; top: 120px; border-radius: 20px; transform: translate(-50%, 24px); opacity: 0; transition: transform 250ms var(--ease), opacity 200ms var(--ease); }
  .f-sheet:not(.side).in { transform: translate(-50%, 0); opacity: 1; }
  .f-sheet.side { top: 0; bottom: 0; right: 0; width: 380px; border-radius: 0; box-shadow: none; border-left: 1px solid var(--line); padding: 20px 24px; }
}
@media (prefers-reduced-motion: reduce) { .f-sheet, .f-sheet.in, .f-scrim { transition: opacity 200ms linear; } }
.f-grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 8px; flex: none; }
.f-said { font-size: var(--ft-2); line-height: 26px; font-weight: 500; letter-spacing: -0.01em; padding: 4px 0 12px; word-break: keep-all; }
.f-said mark, .f-row mark, .f-said-q mark { background: var(--bg-3); color: var(--ink); font-weight: 700; border-radius: 5px; padding: 1px 3px; white-space: nowrap; }
:root[data-theme="dark"] .f-sheet .f-said mark { background: var(--seg-on); }
.f-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.f-chip { height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 10px; border-radius: var(--r-chip); background: var(--bg-2); font-size: var(--ft-3); font-weight: 500; white-space: nowrap; color: var(--ink); }
:root[data-theme="dark"] .f-sheet .f-chip { background: var(--bg-3); }
.f-chip svg { color: var(--ink-3); }
.f-chip.found svg { color: var(--ink); }
.f-chip.miss { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); background: transparent; }
.f-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }
.f-chip.color { background: var(--ct); color: var(--ci); font-weight: 600; }
.f-chip.color[aria-pressed="false"] { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.f-sheetrow { display: flex; align-items: center; gap: var(--sp-2); }
.f-input { width: 100%; min-height: 48px; border-radius: 12px; border: 0; background: var(--bg-2); color: var(--ink); padding: 12px 14px; font: inherit; font-size: max(16px, var(--ft-2)); line-height: 24px; resize: none; }
:root[data-theme="dark"] .f-sheet .f-input { background: var(--bg-3); }
.f-input:focus { outline: 2px solid var(--accent-text); outline-offset: 0; }
.f-thinking { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: var(--ft-3); font-weight: 600; padding: 8px 0 12px; }
.f-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--ink); animation: f-spin 0.9s linear infinite; }
@keyframes f-spin { to { transform: rotate(360deg); } }
.f-mini { border-radius: 12px; background: var(--bg-2); padding: 10px 12px 10px 0; margin-bottom: 16px; position: relative; }
:root[data-theme="dark"] .f-sheet .f-mini { background: var(--bg-3); }
.f-mini .f-mh { font-size: var(--ft-4); font-weight: 600; color: var(--ink-3); padding: 0 0 6px 12px; }
.f-mini .f-mg { position: relative; --tick-w: 52px; --gutter: 0px; }
.f-mini .f-mt { position: absolute; left: 0; width: 44px; text-align: right; font-size: 13px; color: var(--ink-3); transform: translateY(-8px); font-weight: 500; }
.f-mini .f-ml { position: absolute; left: 52px; right: 0; height: 1px; background: var(--line); }

/* ── 단추 ─────────────────────────────── */
.f-btn { height: 50px; padding: 0 var(--sp-5); border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: var(--ft-2); font-weight: 600; white-space: nowrap; text-decoration: none; }
.f-btn.primary { background: var(--accent) !important; color: var(--on-accent) !important; }
.f-btn.second { background: var(--bg-2) !important; color: var(--ink) !important; }
:root[data-theme="dark"] .f-sheet .f-btn.second { background: var(--bg-3) !important; }
.f-btn.text { color: var(--ink-2) !important; padding: 0 var(--sp-3); }
.f-btn.sm { height: 44px; border-radius: 12px; padding: 0 var(--sp-4); }
.f-btn.wide { width: 100%; }
.f-btn svg.f-i { stroke-width: 2.2; }
.f-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.f-btn:disabled { opacity: .4; }
.f-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg-2); border-radius: 10px; padding: 2px; height: 36px; }
.f-seg > * { display: grid; place-items: center; border-radius: 8px; font-size: var(--ft-3); font-weight: 500; color: var(--ink-2); }
.f-seg > .on { background: var(--seg-on); color: var(--ink); font-weight: 600; box-shadow: var(--sh-hair); }
.f-toggle { width: 51px; height: 31px; border-radius: 16px; background: var(--bg-3); position: relative; flex: none; }
.f-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: var(--knob); box-shadow: var(--sh-hair); transition: left var(--dur-1) var(--ease); }
.f-toggle[aria-checked="true"] { background: var(--switch-on); }
.f-toggle[aria-checked="true"]::after { left: 22px; }
:root[data-theme="dark"] .f-toggle[aria-checked="true"]::after { background: var(--bg); }
/* 했어요 글자 단추(목록·매달 줄) — 누르는 곳 44 */
.f-donebtn { position: relative; height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1.5px solid var(--ctl-line) !important; font-size: var(--ft-4); font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: none; margin-left: 4px; }
.f-donebtn::before { content: ""; position: absolute; inset: -6px -4px; }
.f-donebtn.on { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--on-accent) !important; }
.f-donebtn.on svg { stroke-width: 2.6; }

/* ── 목록 ─────────────────────────────── */
.f-search { margin: 0 var(--gutter) var(--sp-3); height: 40px; border-radius: 10px; background: var(--bg-2); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--ink-3); font-size: var(--ft-2); }
.f-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: max(16px, var(--ft-2)); outline: none; }
.f-search input::placeholder { color: var(--ink-3); }
.f-group-l { font-size: var(--ft-3); line-height: 20px; font-weight: 700; color: var(--ink); padding: var(--sp-6) var(--gutter) var(--sp-1); display: flex; gap: 6px; align-items: baseline; }
.f-group-l .f-c { font-size: var(--ft-4); color: var(--ink-3); font-weight: 600; }
.f-row { display: flex; align-items: center; min-height: 52px; padding: 0 var(--gutter); gap: 4px; position: relative; text-decoration: none; color: inherit; width: 100%; text-align: left; }
.f-row + .f-row::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: 0; height: 1px; background: var(--line); }
.f-row .f-tt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.f-row .f-tt b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-row .f-meta { font-size: var(--ft-3); color: var(--ink-2); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.f-row .f-meta .f-amt { color: var(--ink); font-variant-numeric: tabular-nums; }
.f-row.done .f-tt b { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ctl-line); }
.f-row.leaving { transition: opacity 300ms var(--ease), max-height 300ms var(--ease); opacity: 0; }
.f-lead { width: 28px; flex: none; display: grid; place-items: center; color: var(--ink-3); }
.f-rowlink { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 52px; text-decoration: none; color: inherit; text-align: left; }
.f-empty { padding: 40px var(--gutter); text-align: center; color: var(--ink-2); font-size: var(--ft-3); display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* 설정 묶음 */
.f-inset { margin: 0 var(--gutter); background: var(--bg); border-radius: var(--r-card); overflow: hidden; }
.f-srow { display: flex; align-items: center; min-height: 48px; padding: 0 var(--sp-4); gap: var(--sp-3); position: relative; text-decoration: none; color: inherit; width: 100%; text-align: left; }
.f-srow + .f-srow::before { content: ""; position: absolute; top: 0; left: var(--sp-4); right: 0; height: 1px; background: var(--line); }
.f-srow .f-grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-srow .f-v { color: var(--ink-2); font-size: var(--ft-2); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.f-srow .f-v svg { color: var(--ink-3); }
.f-srow.danger .f-grow { color: var(--ink-2); }
.f-slabel { font-size: var(--ft-4); font-weight: 600; color: var(--ink-3); padding: var(--sp-4) calc(var(--gutter) + var(--sp-4)) 6px; }

/* ── 자세히 ─────────────────────────────── */
.f-dt-row { display: flex; align-items: center; gap: var(--sp-3); min-height: 52px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; width: 100%; text-align: left; }
.f-dt-row > svg { color: var(--ink-3); }
.f-dt-row .f-grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-dt-row .f-v { color: var(--ink-2); font-size: var(--ft-3); white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.f-said-q { font-size: var(--ft-3); line-height: 22px; color: var(--ink-2); white-space: normal; }
.f-colorchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--ct); color: var(--ci) !important; font-size: var(--ft-4); font-weight: 700; align-self: flex-start; }
.f-planbars { margin: 18px 0 14px; display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; font-size: var(--ft-4); color: var(--ink-3); font-weight: 500; }
.f-planbars .f-pl { height: 10px; border-radius: 5px; border: 1px dashed var(--line-strong); background: var(--bg-2); }
.f-planbars .f-dn { height: 10px; position: relative; }
.f-acts2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding-top: 12px; }

/* ── 집중 타이머 ─────────────────────────────── */
.f-ring { position: relative; display: grid; place-items: center; }
.f-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.f-ring .f-big { font-size: var(--num-l); line-height: 64px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.f-ring .f-small { font-size: var(--ft-3); color: var(--ink-2); margin-top: 4px; text-align: center; }

/* ── 통계 ─────────────────────────────── */
.f-bignum { font-size: var(--num-m); line-height: 40px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.f-bars { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 10px; height: 168px; padding: 0 var(--gutter); }
.f-bar-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.f-bar-plan { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 34px; border-radius: 6px; background: var(--bg-2); border: 1px dashed var(--line-strong); }
.f-bar-done { position: relative; width: 62%; max-width: 22px; display: flex; flex-direction: column-reverse; border-radius: 5px; overflow: hidden; gap: 1px; }
.f-bar-done i { display: block; background: var(--c); }
.f-bar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; padding: 6px var(--gutter) 0; font-size: var(--ft-4); color: var(--ink-3); text-align: center; font-weight: 500; }
.f-legend { display: flex; gap: var(--sp-4); align-items: center; font-size: var(--ft-4); color: var(--ink-2); padding: var(--sp-3) var(--gutter) 0; flex-wrap: wrap; }
.f-legend span { display: inline-flex; align-items: center; gap: 6px; }
.f-legend .f-sw { width: 14px; height: 10px; border-radius: 3px; display: inline-block; }
.f-crow { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px var(--gutter); align-items: center; }
.f-crow .f-nm { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.f-crow .f-vv { font-size: var(--ft-3); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.f-crow .f-vv b { color: var(--ink); font-weight: 600; }
.f-track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--bg-2); border: 1px dashed var(--line-strong); position: relative; overflow: hidden; }
.f-track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); border-radius: 4px; }
.f-heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 var(--gutter); }
.f-heat .f-c { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font-size: var(--ft-4); font-weight: 600; font-variant-numeric: tabular-nums; }
.f-heat .f-c.out { background: transparent; color: var(--ink-3); opacity: .5; }
.f-heat .f-w { font-size: var(--ft-4); color: var(--ink-3); text-align: center; font-weight: 500; }

/* ── 처음 안내 ─────────────────────────────── */
.f-ob { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--sp-6); max-width: 460px; margin: 0 auto; width: 100%; }
.f-ob .f-art { flex: 1; display: grid; place-items: center; width: 100%; min-height: 240px; }
.f-ob .f-title { margin-bottom: var(--sp-2); white-space: normal; }
.f-ob .f-sub { max-width: 30ch; white-space: normal; }
.f-ob .f-acts { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 4px; padding: var(--sp-6) 0 calc(var(--safe-b) + 8px); }
.f-pager { display: flex; gap: 6px; justify-content: center; padding-top: var(--sp-5); }
.f-pager i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.f-pager i.on { background: var(--ink); width: 18px; border-radius: 4px; }
.f-brandrow { display: flex; align-items: center; gap: 10px; padding-top: var(--sp-5); font-size: var(--ft-2); font-weight: 700; }
.f-brandrow img { border-radius: 10px; }
.f-ob .f-brandrow + .f-pager { padding-top: var(--sp-3); }
.f-notif { width: 100%; max-width: 340px; border-radius: 18px; background: var(--barbg); box-shadow: var(--sh-float); padding: 12px 16px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.f-notif .f-top { display: flex; gap: 10px; align-items: center; }
.f-appico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.f-notif .f-acts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; }
.f-notif .f-acts2 span { height: 36px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; font-size: var(--ft-3); font-weight: 600; }
.f-finger { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 10%, var(--bg)); box-shadow: var(--sh-float), inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 25%, transparent); z-index: 7; }

/* ── 말하는 중 ─────────────────────────────── */
.f-recdot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; animation: f-pulse 1.4s ease-in-out infinite; }
@keyframes f-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .f-recdot { animation: none; } }
.f-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 56px; }
.f-wave i { width: 3px; border-radius: 2px; background: var(--accent); display: block; transition: height 120ms linear; }
.f-stopbtn { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 4px var(--line-strong); }
.f-stopbtn i { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); display: block; }

/* 눌림 — 누르는 순간 바로 */
.f-btn, .f-talk, .f-tab, .f-iconbtn, .f-chip, .f-row, .f-srow, .f-nav, .f-donebtn { transition: transform var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), filter var(--dur-1) var(--ease); }
.f-btn:active, .f-chip:active, .f-donebtn:active { transform: scale(.97); }
.f-btn.primary:active, .f-talk:active { filter: brightness(.9); }
.f-talkslot .f-talk:active { transform: translateX(-50%) scale(.96); }
.f-tab:active, .f-iconbtn:active { opacity: .6; }
.f-row:active, .f-srow:active, .f-nav:active { background: var(--bg-2); }
@media (prefers-reduced-motion: reduce) { .f-btn:active, .f-chip:active, .f-talk:active, .f-donebtn:active { transform: none; } .f-talkslot .f-talk:active { transform: translateX(-50%); } }
.f-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 기록 — 넓은 화면은 두 칸(왼쪽 막대 · 오른쪽 색별 줄) */
@media (min-width: 900px) { .stats-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; } .stats-right { padding-top: 52px; } .f-wrap.stats-wrap { max-width: 1100px; } }
/* 했어요 줄 폭: 폰 72 · 듀오 접힘(쓰는 폭 382) 64 · 넓은 화면 96 */
html:root { --done-w: 72px; }
@media (min-width: 440px) and (max-width: 480px) { html:root { --done-w: 64px; } }
@media (min-width: 700px) { html:root { --done-w: 96px; } }
/* 넓은 화면 시간표 머리: 주 띠를 머리 줄 오른쪽에 */
@media (min-width: 700px) { .today-screen .f-sticky { display: grid; grid-template-columns: auto minmax(0, 420px); align-items: center; column-gap: 16px; } .today-screen .f-sticky > .f-head { grid-column: 1; padding-top: 16px; } .today-screen .f-sticky > .f-week { grid-column: 2; grid-row: 1; padding: 8px calc(var(--gutter) + var(--band)) 0 0; } .today-screen .f-sticky > :not(.f-head):not(.f-week) { grid-column: 1 / -1; } }
/* 설정(옛 묶음 부품 + 새 토큰) — 아래 막대 자리 */
.settings-screen { padding-bottom: calc(56px + var(--safe-b) + 44px); }
@media (min-width: 700px) { .settings-screen { padding-bottom: calc(96px + var(--safe-b)); } }
.f-colornames { display: inline-flex; align-items: center; gap: 4px; }
.f-colornames .f-dot { margin-left: 6px; }
/* 누르는 곳 44 — 보이는 크기는 시안 그대로(칩 36 · 색 칩 28 · 했어요 32), 누르는 자리만 넓힘 */
button.f-chip, button.f-colorchip { position: relative; }
button.f-chip::after { content: ""; position: absolute; inset: -4px -2px; }
button.f-colorchip::after { content: ""; position: absolute; inset: -8px -4px; }
.stats-screen .f-seg { height: 48px; border-radius: 12px; }
.stats-screen .f-seg > * { border-radius: 10px; }
.f-search .f-iconbtn { width: 44px !important; height: 44px !important; margin-right: -12px; }
/* 좁은 폰(폴드 접힘 344): 줄 이름이 먼저 — 금액은 매달 화면에서 */
.f-row .f-rowlink { min-width: 38%; }
@media (max-width: 379px) { .f-row .f-meta .f-amt, .f-dayitem .f-m { display: none; } .f-row .f-meta { gap: 4px; } }
/* 맥·아이패드 가로: 자세히는 오른쪽 칸(맥 캘린더) — 뒤 화면을 어둡게 하지 않음 */
@media (min-width: 1100px) and (min-height: 600px) { .f-scrim.side { background: transparent; } }
/* 설정 = 묶음 바탕(밝음 #F4F4F6 위 흰 묶음 · 어두움 검정 위 #1C1C1E 묶음 — 시안 settings) */
html:has(.settings-screen), html:has(.settings-screen) body { background: var(--bg-group); }
.settings-screen .group { background: var(--bg); }
.settings-screen .bar, .settings-screen .f-head { background: transparent; }
/* 쓰는 폭이 좁으면(듀오 접힘 382 · 폴드 접힘) 금액은 줄에서 빼고 이름을 먼저 — 화면 폭이 아니라 쓰는 폭 기준 */
.todo-screen .f-wrap, .today-screen .f-sticky { container-type: inline-size; }
@container (max-width: 520px) { .f-row .f-meta .f-amt.late { display: none; } }
@container (max-width: 360px) { .f-row .f-meta .f-amt, .f-dayitem .f-m { display: none; } }   /* 며칠 지남·도장·했어요가 먼저(매달 규칙) — 금액은 줄을 눌러 */
/* 옛 시트(매달 추가·칸 고치기·보내기 등)가 아래 막대·말하기 단추 위로 오게 */
.scrim { z-index: 70; }
.sheet { z-index: 71; }
/* 머리 막대 오른쪽 단추 둘(메모 자세히: 즐겨찾기 · 더 보기) */
.bar-r { display: flex; align-items: center; flex: none; }
/* 메모 재생: 15초 앞뒤 · 속도(재생 막대 위 한 줄 — 음성 메모 자리) */
.pctl { display: flex; justify-content: center; align-items: center; gap: 24px; margin-bottom: 4px; }
.pskip { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink-2, var(--t2)); font: 600 var(--ft-4, 13px)/1 inherit; border-radius: 22px; padding: 0 8px; }
.pskip:active { background: var(--fill, rgba(0,0,0,.06)); }
.pskip svg.f-i { width: 26px; height: 26px; }
/* 메모 목록 거르기 칩 · 여러 개 고르기 */
.memo-chips { display: flex; gap: 8px; padding: 4px 0 8px; overflow-x: auto; scrollbar-width: none; }
.memo-pick { display: flex; align-items: stretch; gap: 4px; }
.memo-pick > .pk { flex: none; width: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; }
.memo-pick > .pk i { width: 22px; height: 22px; border-radius: 50%; border: 1.75px solid var(--line-2, #C7C7CC); display: block; }
.memo-pick > .pk[aria-pressed="true"] i { background: var(--accent, #CF4425); border-color: var(--accent, #CF4425); box-shadow: inset 0 0 0 3px var(--bg); }
.memo-pick > :last-child { flex: 1; min-width: 0; }
.memo-selbar { position: sticky; bottom: calc(8px + var(--safe-b, 0px)); display: flex; gap: 8px; justify-content: center; padding: 8px; margin-top: 8px; background: var(--bg); border-radius: 16px; box-shadow: 0 1px 0 var(--line-2, #ddd), 0 8px 24px rgba(0,0,0,.08); z-index: 5; }
/* 구독: 무료 · 구독 비교 두 줄(TickTick 「무료로 쓰는 범위」) */
.sub-cmp { display: grid; gap: 6px; margin-top: 12px; font-size: var(--ft-4, 13px); }
.sub-cmp > div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: baseline; }
.sub-cmp .k { font-weight: 700; color: var(--ink-2); }
/* 「모든 약속」 줄 = 한 줄(제목 · 때·곳) — 쌓인 두 줄 대신, 좁으면 때·곳이 먼저 줄어듦 */
.card-row .grow { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.card-row .grow .t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-row .grow .d { flex: 0 100 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.card-row .grow .d::before { content: "· "; }
/* 설정 묶음 6개(C-3): 이름 하나 아래 흰 칸 여럿 — 칸 사이 8 */
.settings-screen .sec > .group + .group, .settings-screen .sec > .group + * + .group, .settings-screen .sec > * + .group { margin-top: 8px; }
.settings-screen .sec > h2 + .group { margin-top: 0; }
.pskip { gap: 2px; }
.pskip svg.f-i { width: 22px; height: 22px; }
/* 메모 자세히(옛 화면) 글자 크기 4단계(28·17·15·13, 시스템.md 2절) — 손글씨·rem 반쪽 크기(18·18.5·19·17.5·15.5·13.5)를 맞춤 */
.memo-sheet .sec .hd .ht, .memo-sheet .lead-line, .memo-sheet .item .t, .memo-sheet li { font-size: var(--ft-2); }
.memo-sheet .sec .hd .n, .memo-sheet .item .no, .memo-sheet .tx-line, .memo-sheet .item .tx, .memo-sheet .meta { font-size: var(--ft-3); }
.memo-sheet .item .q, .memo-sheet .jump, .memo-sheet .ts, .memo-sheet .small, .memo-sheet .chip { font-size: var(--ft-4); }

/* ── 달력(12-02 「달력」 탭 · cal.js) — 달 · 주 · 그날 목록. 넓은 화면은 달력 + 그날 목록 나란히 ── */
.f-titlelink { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; }
.f-titlelink:hover { color: var(--ink-2); }
.cal-screen .f-calhead { align-items: center; gap: 4px; }
.cal-screen .f-seg { width: 112px; height: 48px; border-radius: 12px; flex: none; }
.cal-screen .f-calhead .f-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-screen .f-title .f-sm { display: none; }
.f-cc { -webkit-user-drag: none; }
@media (max-width: 419px) { .cal-screen .f-title .f-lg { display: none; } .cal-screen .f-title .f-sm { display: inline; } .cal-screen .f-calhead .f-title { font-size: var(--ft-2); } .cal-screen .f-seg { width: 96px; } }
.cal-screen .f-seg > a { text-decoration: none; border-radius: 10px; }
.f-calnav { display: flex; align-items: center; padding: 0 calc(var(--gutter) - 10px); min-height: 48px; }
.f-calnav-c { display: flex; justify-content: center; }
.f-calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 calc(var(--gutter) - 6px) var(--sp-2); row-gap: 2px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.f-cw { text-align: center; font-size: var(--ft-4); line-height: 28px; color: var(--ink-3); font-weight: 500; }
.f-cc { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 54px; padding-top: 4px; border-radius: 12px; text-decoration: none; color: var(--ink); min-width: 0; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.f-cc .f-n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: var(--ft-3); font-weight: 600; flex: none; }
.f-cw.sun, .f-cc.sun:not(.today) .f-n { color: var(--accent-text); }
.f-cc.out { color: var(--ink-3); } .f-cc.out .f-n { color: var(--ink-3); font-weight: 500; }
.f-cc.today .f-n { background: var(--ink); color: var(--bg); }
.f-cc.pick { background: var(--bg-2); }
.f-cc.pick:not(.today) .f-n { box-shadow: inset 0 0 0 1.5px var(--ink); }
.f-cc .f-dots { display: flex; gap: 3px; height: 6px; }
.f-cc .f-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.f-cc .f-dots i.mon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.f-cts { display: none; }
.f-ct { font-size: 12px; line-height: 18px; padding: 0 6px; border-radius: 6px; background: var(--ct); color: var(--ci); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.f-ct.more { background: transparent; color: var(--ink-3); }
@media (hover: hover) { .f-cc:hover:not(.pick) { background: var(--hover); } }
.f-calday { min-width: 0; }
.f-calday-h { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-4) var(--gutter) var(--sp-2); }
.f-calday-h h2 { font-size: var(--ft-2); line-height: 24px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.f-daylink { flex: none; }
.f-callist .f-row { padding-right: calc(var(--gutter) - 4px); }
.f-callist .f-rowlink .f-meta { margin-left: auto; padding-right: 4px; }
.f-calrow .f-dot.mon { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-2); }
.f-calrow .f-dot.todo { background: var(--ink-3); width: 8px; height: 8px; margin: 0 1px; }
.cal-grid2 { display: flex; flex-direction: column; }
@media (max-width: 379px) { .f-calday-h h2 { font-size: var(--ft-3); } .f-callist .f-rowlink .f-meta { display: none; } }
/* 듀오 펼침·아이패드·컴퓨터: 왼쪽 달력 + 오른쪽 그날 목록(가운데 좁게 띄우지 않음) */
@media (min-width: 700px) {
  .f-wrap.cal-wrap { max-width: none; }
  .cal-grid2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); align-items: start; padding-right: var(--band); }
  .f-calday { border-left: 1px solid var(--line); position: sticky; top: 0; min-height: calc(100dvh - 140px); }
  .f-calgrid .f-cc { min-height: 76px; }
  .f-calgrid.week .f-cc { min-height: 220px; align-items: stretch; padding: 6px 4px; }
  .f-calgrid.week .f-cc .f-n { align-self: center; }
  .f-calgrid.week .f-dots { display: none; }
  .f-calgrid.week .f-cts { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
}
@media (min-width: 1100px) and (min-height: 600px) { .f-calgrid .f-cc { min-height: 92px; } .f-calgrid.week .f-cc { min-height: 300px; } }
@media (min-width: 1100px) and (max-height: 720px) { .f-calgrid .f-cc { min-height: 64px; } }
