/* 하루 — 환한 수첩 종이와 부드러운 잉크 */
:root {
  --paper: #F7F3EC;
  --card: #FFFDF9;
  --ink: #2D2A26;
  --muted: #6F665C;
  --line: #E7DFD3;
  --box: #A99D8C;          /* 체크박스 테두리: 잘 보이게 */
  --accent: #3A68B0;
  --accent-soft: #E7EEF8;
  --ok: #3B8D65;
  --ok-soft: #E4F2EA;
  --warn: #9A6410;
  --warn-soft: #FAF0DC;
  --bad: #B83A30;
  --bad-soft: #FBE6E3;
  --radius: 16px;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  color-scheme: light;
}
/* 어둡게: 설정에서 '어둡게'를 고르거나, '폰 설정 따라'일 때 폰이 다크 모드면 */
:root[data-theme="dark"] {
  --paper: #1C222B; --card: #262E3A; --ink: #EEF1F5; --muted: #A9B4C2; --line: #3A4553; --box: #8A97A8;
    --accent: #93B4EC; --accent-soft: #2B3A55; --ok: #74C9A0; --ok-soft: #1F3A2E;
    --warn: #E8B562; --warn-soft: #43341C; --bad: #F2948C; --bad-soft: #472524;
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --paper: #1C222B; --card: #262E3A; --ink: #EEF1F5; --muted: #A9B4C2; --line: #3A4553; --box: #8A97A8;
    --accent: #93B4EC; --accent-soft: #2B3A55; --ok: #74C9A0; --ok-soft: #1F3A2E;
    --warn: #E8B562; --warn-soft: #43341C; --bad: #F2948C; --bad-soft: #472524;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--outside); }   /* 화면 바깥(폰 아래 기본 버튼 자리)은 청록 */
body {
  margin: 0; background: var(--paper); color: var(--ink); min-height: 100vh; min-height: 100dvh;
  font: 17px/1.6 var(--font); letter-spacing: -0.01em;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}
#main { max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
h2 { font-size: 1.12rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 700; color: var(--muted); margin: 14px 0 6px; }
small { color: var(--muted); font-size: .82em; }
a { color: var(--accent); }
p { margin: .4em 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 카드 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 12px 0;
}
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.count { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.saved { color: var(--ok); font-size: .85rem; }
.hint { color: var(--muted); font-size: .9rem; }
.hint.center, .center { text-align: center; }
.empty, .loading { text-align: center; color: var(--muted); padding: 48px 12px; }
.err { color: var(--bad); }

/* 날짜 이동 */
.datenav { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 6px 0; }
.datenav h1 { text-align: center; font-size: 1.3rem; font-weight: 800; }
.datenav h1 small { font-weight: 500; }
.datenav .dn-mid { text-align: center; }
.datenav .julian { margin: 2px 0 0; font-size: .85rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.today-tag { font-size: .7rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.back-today { display: block; text-align: center; font-size: .9rem; margin-bottom: 4px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; white-space: nowrap; flex: none;
}
.btn:disabled, .btn.disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn.primary { color: #0B1220; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .btn.primary { color: #0B1220; } }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 36px; padding: 0 10px; font-size: .85rem; }
.btn.icon { width: 44px; padding: 0; font-size: 1.6rem; font-weight: 400; }
.btn.upload { width: 100%; margin-top: 10px; border-style: dashed; }

/* 입력 */
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > .field { flex: 1 1 140px; }
.row .grow { flex: 3 1 180px; }
.field { display: grid; gap: 4px; font-size: .92rem; font-weight: 600; }
.field.sub { margin-left: 16px; padding-left: 12px; border-left: 2px solid var(--line); }
.field.sub label { color: var(--muted); }
.field.inline { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.field.inline input { flex: 1; }
.field.missing input, .field.missing textarea { border-color: var(--bad); background: var(--bad-soft); }
input, textarea, select {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
input[type=checkbox], input[type=radio] { width: auto; }
textarea { resize: vertical; line-height: 1.6; }
input[type=file] { padding: 8px; background: transparent; }
.charcount { justify-self: end; color: var(--muted); font-size: .82rem; font-weight: 400; }

/* 세그먼트 버튼 */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); flex-wrap: wrap; }
.seg label { position: relative; padding: 8px 14px; font-size: .92rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg label + label { border-left: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg label:has(input:checked) { background: var(--accent); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }
.seg.small label { padding: 6px 12px; font-size: .85rem; }

/* 토글 */
.toggle { position: relative; display: inline-block; width: 52px; height: 30px; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.toggle span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background .15s; pointer-events: none; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked + span { background: var(--accent); }
.toggle input:checked + span::after { transform: translateX(22px); }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* 체크 */
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; min-height: 44px; padding: 8px 0; flex: 1; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: none; width: 26px; height: 26px; border: 2px solid var(--box); border-radius: 8px; background: var(--card); display: grid; place-items: center; margin-top: 1px; }
.check input:checked + .box { background: var(--ok); border-color: var(--ok); }
.check input:checked + .box::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 2px; }
.check .txt { display: grid; }
.check .txt small { font-weight: 400; }
.hrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; }
.hrow + .hrow { border-top: 1px solid var(--line); }
.hlabel { font-weight: 700; width: 2.6em; flex: none; }
.hin { width: 4.6em; text-align: right; font-variant-numeric: tabular-nums; padding: 6px 8px; }
.hpulse { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hpulse .hin { width: 4em; }
.hsep, .hunit { color: var(--muted); font-size: .88rem; }
.hdiff { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: auto; }
.hdiff.up { color: var(--warn); } .hdiff.down { color: var(--ok); }
.task-txt .from { display: block; color: var(--muted); font-size: .78rem; }
.task.carried .task-txt { color: var(--muted); }
.carry-note { margin: 0 0 8px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 12%, transparent); font-size: .88rem; }
.carry-note p { margin: 0 0 4px; }
.carry-note ul { list-style: none; margin: 0; padding: 0; }
.carry-note li { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-top: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); }
.carry-note li span { flex: 1; }
.carry-note small { color: var(--muted); }
.km-row { display: flex; align-items: center; gap: 8px; }
.km-in { display: flex; align-items: center; gap: 4px; flex: none; color: var(--muted); font-size: .9rem; }
.km-in input { width: 5.5em; text-align: right; font-variant-numeric: tabular-nums; padding: 6px 8px; }
.check.on .txt { color: var(--muted); }
.check.small { min-height: 36px; padding: 4px 0; gap: 8px; flex: none; align-items: center; }
.check.small .box { width: 22px; height: 22px; border-radius: 6px; margin: 0; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.checks li:first-child { border-top: 0; }
.meter { height: 6px; background: var(--paper); border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .3s; }

/* 기념일 — 이 홈페이지의 얼굴 */
/* 기념일: 개수와 상관없이 가로 폭을 꽉 채우고 칸 너비를 똑같이 */
#anniv { margin: 4px 0 0; }
.anniv-strip { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 8px; padding: 6px 0 10px; }
.anniv {
  min-width: 0; padding: 12px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  display: grid; align-content: start; gap: 0; container-type: inline-size;
}
/* 폰: 2칸씩, 홀수면 마지막 칸은 한 줄 통째로 */
@media (max-width: 600px) {
  .anniv-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .anniv-strip .anniv:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.anniv-name { font-size: .82rem; color: var(--muted); font-weight: 600; }
.anniv-num { font-size: clamp(1.05rem, 15cqi, 1.65rem); white-space: nowrap; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1.2; }
.anniv-sub { font-size: .85rem; color: var(--ink); font-weight: 600; }
.anniv-cnt { font-size: .8rem; color: var(--ink); font-weight: 700; white-space: nowrap; }
.anniv-soon { font-size: .76rem; color: var(--warn); font-weight: 700; margin-top: 2px; }
.anniv.special { background: var(--accent); border-color: var(--accent); }
.anniv.special .anniv-name, .anniv.special .anniv-sub, .anniv.special .anniv-soon, .anniv.special .anniv-num { color: #fff; }
:root[data-theme="dark"] .anniv.special * { color: #0B1220 !important; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .anniv.special * { color: #0B1220 !important; } }
.anniv-empty { display: block; margin: 6px 0; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-decoration: none; font-size: .9rem; text-align: center; }

/* 배너 */
.banner { display: block; border-radius: var(--radius); padding: 12px 14px; margin: 10px 0; text-decoration: none; color: var(--ink); }
.banner .label { font-size: .8rem; color: var(--accent); font-weight: 700; }
.banner p { margin: 2px 0 0; }
.banner.goal { background: var(--accent-soft); }
.banner.goal p { font-weight: 700; font-size: 1.05rem; }
.banner.backup { background: var(--warn-soft); display: grid; gap: 8px; }
.banner.backup .field { font-weight: 600; margin: 0; }
.banner.car { display: grid; }
.banner.car.over { background: var(--bad-soft); }
.banner.car.over b { color: var(--bad); }
.banner.car.soon { background: var(--warn-soft); }
.banner.car span { font-size: .9rem; color: var(--muted); }

/* 할 일 */
.tasks-grid { display: grid; gap: 14px; }
.task-col.pri { order: -1; background: var(--accent-soft); border-radius: 12px; padding: 4px 12px 8px; }
.task-col.pri h3 { color: var(--accent); }
@media (min-width: 680px) {
  .tasks-grid { grid-template-columns: 1fr 1fr; }
  .task-col.pri { order: 0; }
}
.add-row { display: flex; gap: 8px; }
.task-list { list-style: none; margin: 6px 0; padding: 0; }
.task { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); padding: 2px 0; }
.task-txt { flex: 1; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.4; padding: 6px 0; }
.task .btn.small { padding: 0 6px; }
.add-row input { min-width: 0; }
.task.done .task-txt { text-decoration: line-through; color: var(--muted); }
.task select { width: auto; padding: 6px 2px; flex: none; font-size: .88rem; font-variant-numeric: tabular-nums; }
.task-list .hint { list-style: none; padding: 8px 0; }

/* 회화 */
.unit { color: var(--accent); font-weight: 700; font-size: .9rem; }
.play-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.phrases { list-style: none; padding: 0; margin: 0; counter-reset: ph; }
.phrase { counter-increment: ph; border-top: 1px solid var(--line); padding: 12px 0 4px; }
.phrase .ko { font-weight: 700; }
.phrase .ko::before { content: counter(ph) ". "; color: var(--muted); }
.phrase.mem .ko { color: var(--muted); }
.lang { display: flex; gap: 10px; align-items: flex-start; padding: 3px 0; }
.lang small { display: block; }
.say { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--accent); cursor: pointer; font-size: .8rem; }

/* 독서 */
.book { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.cover { width: 72px; height: 100px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); flex: none; }
.cover.small { width: 44px; height: 62px; }
.cover-slot { display: inline-block; width: 72px; height: 100px; border-radius: 6px; background: var(--paper); flex: none; }
.book-title { font-weight: 800; font-size: 1.05rem; margin: 0; }
.book-author { color: var(--muted); margin: 0; }
.notes { margin-top: 8px; }
.note { border-top: 1px solid var(--line); padding: 10px 0; }
.note-meta { font-size: .85rem; color: var(--muted); margin: 0; }
blockquote { margin: 6px 0; padding: 4px 12px; border-left: 3px solid var(--accent); font-weight: 500; white-space: pre-wrap; }
.why { margin: 4px 0; }
.note-img { max-width: 100%; border-radius: 8px; display: block; margin: 6px 0; }
.books { list-style: none; padding: 0; margin: 0; }
.books li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.books .cover-slot { width: 44px; height: 62px; }

/* 주식 */
.thumb img, .yt img { width: 100%; max-width: 320px; border-radius: 8px; display: block; }
.yt { display: inline-grid; gap: 4px; font-size: .88rem; text-decoration: none; }
.summary { white-space: pre-wrap; }
.chips, .tags, .tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 4px 12px; font: inherit; font-size: .85rem; font-weight: 600; text-decoration: none; cursor: pointer; }

/* 사진 */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; position: relative; display: grid; gap: 4px; }
.photo-grid img, .photo-grid .ph-slot { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--paper); display: block; }
.photo-grid .caption { font-size: .85rem; padding: 6px 8px; }
.photo-grid [data-act=del] { position: absolute; top: 4px; right: 4px; background: var(--card); min-height: 30px; width: 30px; padding: 0; border-radius: 50%; }
.img-missing { display: grid; place-items: center; color: var(--muted); font-size: .8rem; background: var(--paper); }

/* 달력 */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: .78rem; color: var(--muted); padding-bottom: 4px; }
.cal-cell { min-width: 0; min-height: 48px; aspect-ratio: 1; overflow: hidden; border-radius: 8px; display: grid; grid-template-rows: auto 1fr auto; padding: 4px; text-decoration: none; color: var(--ink); background: var(--paper); font-size: .8rem; }
.cal-cell b { font-weight: 600; }
.cal-cell.blank { background: transparent; }
.cal-cell.future { opacity: .4; }
.cal-n { justify-self: center; align-self: center; font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }
.cal-cell.lv1 { background: color-mix(in srgb, var(--ok) 15%, var(--paper)); }
.cal-cell.lv2 { background: color-mix(in srgb, var(--ok) 32%, var(--paper)); }
.cal-cell.lv3 { background: color-mix(in srgb, var(--ok) 55%, var(--paper)); }
.cal-cell.lv4 { background: var(--ok); color: #fff; }
.cal-cell.is-today { outline: 2px solid var(--accent); }
.cal-dots { display: flex; gap: 3px; justify-content: center; min-height: 6px; }
.dot-d, .dot-w { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.dot-d { background: var(--accent); }
.dot-w { background: var(--warn); }
.legend { font-size: .8rem; color: var(--muted); margin-top: 8px; }

/* 차계부 */
.car-top .label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.big { font-size: 1.8rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
.odo-form { margin-top: 12px; }
.car-items, .records { list-style: none; margin: 0; padding: 0; }
.car-items li { border-top: 1px solid var(--line); }
.car-items summary { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 10px 0; cursor: pointer; list-style: none; }
.car-items summary::-webkit-details-marker { display: none; }
.ci-name { font-weight: 600; }
.ci-next { grid-column: 2; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ci-body { padding: 0 0 12px; font-size: .9rem; }
.st { display: inline-block; min-width: 58px; text-align: center; font-size: .76rem; font-weight: 800; border-radius: 99px; padding: 3px 8px; grid-row: span 2; }
.st.over { background: var(--bad-soft); color: var(--bad); }
.st.soon { background: var(--warn-soft); color: var(--warn); }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.manual { background: var(--paper); color: var(--muted); }
.records li { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.records li > div { flex: 1; }
.cost { font-variant-numeric: tabular-nums; font-weight: 600; }
.import summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 4px 0 10px; }
.table-wrap { overflow-x: auto; margin: 8px 0; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr.bad td { background: var(--bad-soft); color: var(--bad); }

/* 설정 */
.anniv-form { border-top: 1px solid var(--line); padding: 12px 0; display: grid; gap: 8px; }
.anniv-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.anniv-actions .preview { flex: 1; font-weight: 800; color: var(--accent); }
.cnt-set summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--muted); }
.cnt-set[open] summary { margin-bottom: 6px; }
.cnt-set .row { flex-wrap: wrap; }
.wpre { white-space: pre-wrap; font: inherit; font-size: .88rem; background: var(--bg); padding: 8px; border-radius: 8px; max-height: 240px; overflow: auto; }
.wlist { list-style: none; margin: 6px 0 0; padding: 0; }
.wlist li { border-top: 1px solid var(--line); }
.wlist a { display: block; padding: 8px 2px; color: inherit; text-decoration: none; font-size: .9rem; line-height: 1.45; }
.wlist small { color: var(--muted); }
.wlist mark { background: color-mix(in srgb, var(--accent) 25%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.history { font-size: .82rem; color: var(--muted); margin: 0; }
.import-box { margin-top: 12px; }
.mini { font-size: .88rem; padding-left: 20px; }

/* 로그인 */
.login { max-width: 400px; margin: 12vh auto 0; text-align: center; }
.login h1 { font-size: 2.6rem; font-weight: 800; color: var(--accent); letter-spacing: -0.04em; }
.login form { text-align: left; }
body.logged-out .tabbar { display: none; }

/* 아래 메뉴 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(7, 1fr);
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: grid; justify-items: center; gap: 0; padding: 8px 0 6px; font-size: .74rem; white-space: nowrap; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabbar .ico { font-size: 1.25rem; line-height: 1.2; }
.tabbar a[aria-current="page"] { color: var(--accent); }

/* 알림 */
#toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 99px; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 20; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--bad); color: #fff; }
#toast.warn { background: var(--warn); color: #fff; }

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

body { word-break: keep-all; overflow-wrap: anywhere; }
[hidden] { display: none !important; }

/* 진행 중인 일 */
.step-of { display: block; color: var(--accent); font-size: .78rem; font-weight: 600; }
#projects { margin-top: 16px; padding-top: 4px; border-top: 2px dashed var(--line); }
.proj-head h3 { color: var(--ink); }
.proj-head small { font-weight: 500; }
.projects { list-style: none; margin: 4px 0 8px; padding: 0; }
.project { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: var(--paper); }
.proj-main { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.proj-title { font-weight: 700; }
.proj-main .st { grid-row: auto; min-width: 0; }
.proj-meta { font-size: .82rem; color: var(--muted); margin: 2px 0 6px; }
.proj-meta b { color: var(--ok); font-weight: 600; }
.proj-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.step-form, .proj-more { margin-top: 8px; }
.step-form input { flex: 1 1 180px; }
.steps { font-size: .88rem; padding-left: 20px; margin: 8px 0; }
.steps li.done { color: var(--muted); }
.steps a { font-variant-numeric: tabular-nums; text-decoration: none; margin-right: 4px; }
.proj-add input[type=date] { flex: 0 1 150px; }
.proj-add .grow { flex: 1 1 160px; }
.paused summary { cursor: pointer; color: var(--muted); font-size: .9rem; padding: 6px 0; }
.paused ul { list-style: none; padding: 0; margin: 0; }
.paused li { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 4px 0; }
.done-projects { list-style: none; padding: 0; margin: 0; }
.done-projects li { border-top: 1px solid var(--line); padding: 8px 0; }

/* 중요한 3가지: 시간대 */
.task.pri-task { flex-wrap: wrap; }
.task.pri-task .task-txt { flex: 1 1 0; }
.times { order: 10; flex-basis: 100%; display: flex; align-items: center; gap: 6px; padding: 0 0 8px 30px; color: var(--muted); }
.times select { width: auto; padding: 6px 8px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.times select:disabled { opacity: .5; }
.dday.urgent { color: var(--bad); font-weight: 800; }
.project.urgent { border-color: var(--bad); }
.project.urgent .proj-title { color: var(--bad); }
.long-form { list-style: none; background: var(--bad-soft); border-radius: 10px; padding: 8px 10px; margin: 4px 0 8px; }
.long-form .field { flex: 1 1 160px; }
.proj-add { align-items: end; }
.proj-add .due-field { flex: 0 1 160px; font-size: .8rem; color: var(--muted); }
#projects { scroll-margin-top: 12px; }
input.kdate { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.delivery-form, .due-edit { margin-top: 10px; align-items: end; }

/* 자동 체크 항목 (손으로 못 누름) */
button.check.auto { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; padding: 8px 0; }
.check .box.checked { background: var(--ok); border-color: var(--ok); }
.check .box.checked::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check.auto:not(.on) .box { border-style: dashed; border-color: var(--box); background: transparent; }
.check.auto .txt { flex: 1; }
.check.auto .lock { align-self: center; font-size: .72rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }
.check.auto .lock:empty { display: none; }

/* ---------------- 살림 */
.salim-tabs { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 10px; }
.salim-tabs a { text-align: center; padding: 8px 0; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 700; }
.salim-tabs a.on { background: var(--accent); color: #fff; }
.datenav.sub { grid-template-columns: 44px 1fr 44px; }
.datenav.sub h2 { text-align: center; margin: 0; font-size: 1.1rem; }
.money-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.money-sum .label { display: block; color: var(--muted); font-size: .8rem; }
.money-sum b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.money-sum .gig-line { grid-column: 1 / -1; margin: 6px 0 0; color: var(--muted); font-size: .85rem; }
b.in { color: var(--ok); } b.out { color: var(--bad); }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: 6.5em 1fr auto; align-items: center; gap: 8px; font-size: .88rem; }
.b-bar { height: 10px; background: var(--paper); border-radius: 6px; overflow: hidden; }
.b-bar i { display: block; height: 100%; background: var(--bad); border-radius: 6px; opacity: .75; }
.bars.in .b-bar i, .bars.net .b-bar i { background: var(--ok); }
.bars.net .b-bar i.neg { background: var(--bad); }
.b-v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.m-day { font-size: .85rem; color: var(--muted); margin: 10px 0 2px; }
.m-list, .bal-list, .map-list { list-style: none; margin: 0; padding: 0; }
.m-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.m-cat { flex: 1; display: grid; } .m-cat small { color: var(--muted); font-size: .78rem; }
.m-list b { font-variant-numeric: tabular-nums; }
.bal-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.bal-list .b-name { flex: 1; } .bal-list input { width: 9em; text-align: right; }
.tag { font-size: .72rem; padding: 1px 6px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); }
.tag.debt { background: var(--bad-soft); color: var(--bad); }
.tag.property { background: var(--accent-soft); color: var(--accent); }
.cost-line { display: block; color: var(--muted); font-size: .76rem; }
.cost-edit { display: block !important; }
.bal-list li.prop { flex-wrap: wrap; }
.add-item { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.map-list li a { display: grid; padding: 10px 2px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.map-list small { color: var(--muted); }
.map-title { width: 100%; text-align: center; font: inherit; font-weight: 800; border: none; background: transparent; color: inherit; padding: 4px; }
.view-toggle { margin-bottom: 10px; }
.outline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--accent-soft); }
.card > .outline { padding-left: 0; border-left: none; }
.o-row { display: flex; align-items: center; gap: 4px; padding: 3px 0; }
.o-text { flex: 1; min-width: 0; padding: 6px 8px; }
.mindmap-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mindmap .mm-link { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .55; }
.mindmap .mm-node rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.mindmap .mm-node text { fill: var(--ink); font-size: 13px; font-family: var(--font); }
.mindmap .mm-node.root rect { fill: var(--accent); }
.mindmap .mm-node.root text { fill: #fff; font-weight: 700; }

.ins-list { list-style: none; margin: 0; padding: 0; }
.ins { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 4px; }
.ins-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ins-fee { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ins-meta, .ins-memo { margin: 0; color: var(--muted); font-size: .85rem; }
.ins-cov { margin: 0; white-space: pre-wrap; font-size: .88rem; background: var(--paper); border-radius: 8px; padding: 6px 8px; }
.ins .ok { color: var(--ok); }

.lock-card { text-align: center; max-width: 360px; margin: 24px auto; }
.lock-card .lock-ico { font-size: 2rem; margin: 0; }
.lock-card .lock-form, .lock-card .forgot { text-align: left; }
.forgot summary { cursor: pointer; color: var(--muted); font-size: .88rem; margin-top: 10px; }

.pay-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.cards-form input { width: 100%; }

.auto { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 4px; list-style: none; }
.warn-t { color: var(--warn); }

/* 카드에 아주 옅은 그림자: 종이 위에 놓인 느낌 */
.card { box-shadow: 0 1px 2px rgba(60, 45, 25, .05), 0 4px 14px rgba(60, 45, 25, .04); }
:root[data-theme="dark"] .card { box-shadow: none; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .card { box-shadow: none; } }
.theme-pick { margin-top: 4px; }

/* 약속·챙길 날 (오늘 할 일 위) */
.agenda { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.agenda h3 { margin: 6px 0 4px; font-size: .85rem; }
.ag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ag-list li { display: grid; grid-template-columns: minmax(64px, auto) 1fr; gap: 10px; align-items: baseline; font-size: .95rem; }
.ag-when { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; font-size: .88rem; white-space: nowrap; }
.ag-day.on .ag-when, .ag-day.on .ag-what { color: var(--bad); font-weight: 700; }
.ag-later summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--muted); margin-top: 6px; }
.ag-later .ag-list { margin-top: 4px; }
.ag-empty { color: var(--muted); font-size: .88rem; margin: 2px 0 10px; }
.agenda .ag-empty { margin: 4px 0 0; }
.banner.day-ann { background: var(--bad-soft); border-color: transparent; display: grid; gap: 2px; }
.banner.day-ann b { color: var(--bad); }
.day-list { list-style: none; padding: 0; margin: 0 0 8px; }
.day-list > li { border-top: 1px solid var(--line); padding: 8px 0; display: grid; gap: 4px; }
.day-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.day-next { color: var(--accent); font-weight: 600; font-size: .9rem; }
.day-add summary { cursor: pointer; font-weight: 700; color: var(--accent); margin: 6px 0; }
.leap-ask { background: var(--warn-soft); border-radius: 10px; padding: 8px 10px; }
.leap-ask p { margin: 0 0 6px; }
.steps { padding-left: 1.2em; line-height: 1.7; }
.steps code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0 4px; font-size: .85em; word-break: break-all; }

/* 살림 비밀번호: 브라우저 비밀번호 저장 창이 엔터를 가로채지 않도록 글자칸에 점으로 가림 */
.pin-mask { -webkit-text-security: disc; text-security: disc; letter-spacing: .2em; }

.money-in { font-variant-numeric: tabular-nums; }

/* 그날 날씨 (날짜 옆) */
.wx { display: inline-flex; align-items: baseline; gap: 3px; margin-left: 8px; vertical-align: middle; }
.wx-ico { font-size: 1.05em; }
.wx small { font-size: .62em; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* 맨 위 날짜 칸: 아래로 내려도 그 자리에 고정 */
.datenav {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  margin: 0 -16px; padding: calc(6px + env(safe-area-inset-top)) 16px 6px;
  box-shadow: 0 6px 10px -10px rgba(60, 45, 25, .35);
}

/* 나의 다짐 (날짜 바로 아래) */
.motto { position: relative; margin: 8px 0 4px; padding: 14px 16px; border: 1.5px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.motto-text { margin: 0; padding-right: 56px; font-size: 1.05rem; font-weight: 700; line-height: 1.55; color: var(--ink); word-break: keep-all; }
.motto-edit { position: absolute; top: 8px; right: 8px; }
.motto.empty { border-style: dashed; background: transparent; padding: 0; }
.motto-add { width: 100%; padding: 12px 16px; background: none; border: 0; color: var(--muted); font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.motto.editing { background: var(--card); }
.motto-form textarea { width: 100%; }

/* 보물지도 */
.tm-lead { margin: 0 0 4px; }
.tm-grid { display: grid; gap: 0 12px; }
@media (min-width: 720px) { .tm-grid { grid-template-columns: 1fr 1fr; } }
.tm-list { list-style: none; margin: 0 0 10px; padding: 0; }
.tm-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tm-text { cursor: text; line-height: 1.45; word-break: keep-all; }
.tm-item.done .tm-t { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--ok); }
.tm-when { display: block; text-decoration: none; color: var(--ok); }
.tm-dot { width: 22px; text-align: center; color: var(--accent); font-weight: 800; }
.tm-edit { width: 100%; }
.tm-add input { flex: 1; min-width: 0; }
@media (max-width: 400px) { .tabbar a { font-size: .66rem; letter-spacing: -0.04em; } }

.tm-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; }
.tm-item { display: block; }
.tm-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.tm-more { min-width: 36px; padding: 0 8px; }
.tm-detail { margin: 8px 0 4px 30px; display: grid; gap: 8px; }
.tm-photo { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; }
.tm-detail .row { flex-wrap: wrap; gap: 8px; }
/* 오늘 화면: 오늘의 보물 */
.tm-today { margin: 8px 0 4px; }
.tm-today-in { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tm-today-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.tm-today-txt { display: grid; gap: 2px; }
.tm-today-txt b { font-size: 1rem; line-height: 1.4; word-break: keep-all; }
.tm-today-txt small { color: var(--muted); }

/* 지난 날을 볼 때 날짜 칸 아래 ‘오늘로 돌아가기’가 한 줄로 */
.datenav .back-today { grid-column: 1 / -1; margin: 2px 0 0; }

/* 보물지도: PC에서 넓게, 끌어 놓기 */
body.wide-page #main { max-width: 1240px; }
@media (min-width: 1100px) { .tm-grid { grid-template-columns: repeat(4, 1fr); } }
.tm.drop-on { outline: 2px dashed var(--accent); outline-offset: 2px; background: var(--accent-soft); }
.tm-item[draggable="true"] .tm-row { cursor: grab; }
.tm-item.dragging { opacity: .45; }

/* 살림 › 미술품 */
.art-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.art-card { width: 100%; display: grid; gap: 4px; padding: 0 0 8px; background: none; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.art-img { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--paper); border: 6px solid var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.art-img img { width: 100%; height: 100%; object-fit: cover; }
.art-noimg { color: var(--muted); font-size: .85rem; }
.art-card b { font-size: .95rem; line-height: 1.3; }
.art-card small { color: var(--muted); }
.art-sort select { font: inherit; font-size: .85rem; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.art-tools { gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.art-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.art-pics figure { margin: 0; display: grid; gap: 6px; justify-items: start; }
.art-pics img { width: 100%; max-height: 320px; object-fit: contain; background: var(--paper); border-radius: 10px; cursor: zoom-in; }
.art-pics figcaption { font-size: .8rem; color: var(--muted); }
.art-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 12px; }
.art-table th { width: 7.5em; text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px 6px 0; vertical-align: top; }
.art-table td { padding: 6px 0; border-bottom: 1px solid var(--line); word-break: keep-all; }
.art-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 12px; }

/* 카드 한도 */
.card-row { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.card-lim { gap: 8px; }
.card-lim select { font: inherit; }
.lim-bar { display: grid; gap: 3px; }
.lim-bar .b-bar { height: 8px; border-radius: 4px; background: var(--paper); overflow: hidden; display: block; }
.lim-bar .b-bar i { display: block; height: 100%; background: var(--accent, #3b6fb6); }
.lim-bar.near .b-bar i { background: var(--warn); }
.lim-bar.over .b-bar i { background: var(--bad); }
.lim-bar small { color: var(--muted); }
.lim-bar.over small { color: var(--bad); font-weight: 600; }

/* 미술품 감상 노트 */
.art-notes { margin: 4px 0 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.art-notes h3 { margin: 0 0 8px; font-size: 1rem; }
.art-notes h3 small { color: var(--muted); font-weight: 400; }
.art-notes textarea { width: 100%; font: inherit; line-height: 1.55; }
.note-form .row { align-items: end; gap: 8px; justify-content: space-between; }
.note-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.note-list li { padding: 10px 12px; border-radius: 10px; background: var(--paper); }
.note-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.note-head b { font-size: .85rem; color: var(--muted); }
.note-list p { margin: 4px 0 0; line-height: 1.6; white-space: normal; word-break: keep-all; }
.art-table { table-layout: fixed; }
.art-table td { overflow-wrap: anywhere; }
.art-pics figure { align-content: start; }
.art-pics img, .art-pics .art-noimg { height: 220px; width: 100%; display: grid; place-items: center; }

.card-lim { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card-lim[hidden] { display: none; }
.card-lim .field { min-width: 0; }
.card-lim select, .card-lim input { width: 100%; min-width: 0; }
.card-row { border-bottom: 0; padding-bottom: 4px; }
.card-row:has(.card-lim:not([hidden])) { border-bottom: 1px dashed var(--line); padding-bottom: 10px; }

/* 사진 고르기 줄 (보물지도) */
.tm-pick { margin: 6px 0 10px; }
.pick { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--paper); display: grid; gap: 8px; }
.pick-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pick-head b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-q { gap: 6px; } .pick-q input { flex: 1; min-width: 0; }
.pick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.pick-tile { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--card); color: var(--muted); font: inherit; font-size: .8rem; text-align: center; line-height: 1.3; }
.pick-tile img { width: 100%; height: 100%; object-fit: cover; }
.pick-tile:hover, .pick-tile:focus-visible { border-color: var(--accent); }
.pick-tile.mine { border: 2px dashed var(--line); }
.pick-tile.busy { opacity: .5; } .pick-tile[disabled] { pointer-events: none; }
.pick-wait { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; padding: 6px 2px; }
.pick-foot { justify-content: space-between; align-items: center; }
.pick-credit { color: var(--muted); } .pick-credit a { color: inherit; }
.tm-item.picking { background: var(--accent-soft, #E7EEF8); border-radius: 8px; }
.tm-detail .row { flex-wrap: wrap; }
.pick-tile img { opacity: 0; transition: opacity .2s; } .pick-tile img.ok { opacity: 1; }
.pick-tile { background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); background-size: 200% 100%; animation: pick-shine 1.4s linear infinite; }
.pick-tile.mine { animation: none; background-image: none; }
@keyframes pick-shine { to { background-position: -200% 0; } }

/* 화면 바깥 배경(폰 아래 기본 버튼 자리)만 청록 — 하루 화면과 아래 메뉴는 그대로 */
:root { --outside: #3F9C9C; }
:root[data-theme="dark"] { --outside: #24494C; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --outside: #24494C; } }
/* 폰이 화면을 기본 버튼 밑까지 그릴 때: 버튼 바로 밑 띠만 청록 (컴퓨터·버튼 없는 폰은 띠 높이 0) */
.tabbar::after { content: none; }
body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; height: env(safe-area-inset-bottom); background: var(--outside); pointer-events: none; }
/* 아래로 읽어 내려가면 메뉴가 숨고, 조금 올리거나 맨 아래에 닿으면 다시 나와요 (컴퓨터는 마우스를 맨 아래로 가져가도 나옴) */
.tabbar { transition: transform .25s ease; will-change: transform; }
.tabbar.away { transform: translateY(100%); }

/* 보물지도 배경: 코르크 게시판 무늬만 아주 옅게 */
body.tm-page { isolation: isolate; }
body.tm-page::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(../img/cork.jpg) 0 0 / 256px 256px repeat; opacity: var(--tm-bg-op, .22); }
:root[data-theme="dark"] body.tm-page::before { opacity: .1; filter: brightness(.8); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] body.tm-page::before { opacity: .1; filter: brightness(.8); } }

.art-dup { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--warn-soft); }
.art-dup p { margin: 0; font-size: .92rem; }

/* 캘린더별 표시 */
.ag-cal { font-size: .95em; }
.cal-marks-h { font-size: .95rem; margin: 14px 0 4px; }
.cal-mark-list { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 6px; }
.cal-mark-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cal-mark-list input { width: 4.5em; text-align: center; font-size: 1.1rem; }

.cal-why ul { margin: 10px 0 4px; padding-left: 1.2em; font-size: .9rem; } .cal-why li { margin: 4px 0; } .cal-why .hint { color: var(--muted); }
