/* 송화성 업무 — mobile first. No letter-spacing anywhere (per spec). */
:root {
  --bg: #F6F7F5;
  --surface: #FFFFFF;
  --surface-2: #EEF1ED;
  --ink: #1A201D;
  --muted: #5C6862;
  --faint: #97A29C;
  --line: #E1E6E1;
  --accent: #1D6B54;
  --accent-ink: #FFFFFF;
  --accent-soft: #E2EEE8;
  --warn: #BF3A2B;
  --warn-soft: #FBE9E6;
  --ok: #2F8A5F;

  --p-arca: #1D6B54;      --p-arca-soft: #E1EEE8;
  --p-russell_dg: #A8471F; --p-russell_dg-soft: #F5E6DE;
  --p-russell_md: #7B3E86; --p-russell_md-soft: #EFE4F1;
  --p-etc: #43548A;       --p-etc-soft: #E4E8F2;

  --shadow: 0 1px 2px rgba(26, 32, 29, .05), 0 6px 18px -12px rgba(26, 32, 29, .18);
  --serif: 'Gowun Batang', 'AppleMyungjo', 'Batang', serif;
  --sans: 'IBM Plex Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101412;
    --surface: #181D1A;
    --surface-2: #212724;
    --ink: #E6EBE8;
    --muted: #9CA8A2;
    --faint: #66716B;
    --line: #29302C;
    --accent: #5BBF9A;
    --accent-ink: #0C1411;
    --accent-soft: rgba(91, 191, 154, .14);
    --warn: #F2786B;
    --warn-soft: rgba(242, 120, 107, .14);
    --ok: #5BBF9A;
    --p-arca: #5BBF9A;       --p-arca-soft: rgba(91, 191, 154, .15);
    --p-russell_dg: #E3916B; --p-russell_dg-soft: rgba(227, 145, 107, .15);
    --p-russell_md: #C98BD6; --p-russell_md-soft: rgba(201, 139, 214, .15);
    --p-etc: #93A6E0;        --p-etc-soft: rgba(147, 166, 224, .15);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: normal; }
button { cursor: pointer; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; } /* mixed Korean + digits: keep the sans face */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 16px 10px;
}
.top-row { max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.date { margin: 0; font: 700 21px/1.2 var(--serif); }
.clock { display: flex; align-items: center; gap: 10px; }
#time { font-size: 20px; font-weight: 500; }
.sync {
  width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; padding: 0;
  display: grid; place-items: center;
}
.sync::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.sync[data-state="ok"]::after { background: var(--ok); }
.sync[data-state="busy"]::after { background: #D69A1E; animation: pulse 1s ease-in-out infinite; }
.sync[data-state="err"]::after { background: var(--warn); }
@keyframes pulse { 50% { opacity: .35; } }

.tabs {
  max-width: 680px; margin: 10px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--surface-2); border-radius: 11px; padding: 3px;
}
.tabs button {
  border: 0; border-radius: 9px; background: transparent; padding: 7px 0; font-weight: 600; font-size: 14px; color: var(--muted);
}
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
body.week-mode .tabs, body.week-mode .top-row { max-width: 1180px; }

/* ---------- layout ---------- */
.view { max-width: 680px; margin: 0 auto; padding: 16px 16px 48px; display: flex; flex-direction: column; gap: 26px; }
.view.wide { max-width: 1180px; }
.sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sec:empty { display: none; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sec-h h2 { margin: 0; font: 700 18px/1.3 var(--serif); }
.sec-h .meta { font-size: 13px; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.empty { color: var(--faint); font-size: 14px; padding: 4px 0; }

/* ---------- chips / pills / buttons ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 22px; padding: 1px 8px;
  border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; line-height: 1.5; white-space: nowrap;
}
.chip.mono { font-size: 12px; }
.chip.accent { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chip.warn { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.chip.wrap { white-space: normal; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 2px 8px; border-radius: 999px; font-size: 12.5px; line-height: 1.5;
  background: var(--pc-soft, var(--surface-2)); color: var(--pc, var(--muted));
}
.pill > i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill .mono { font-size: 11.5px; overflow: visible; }
.pill.rt { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.pill.done { opacity: .5; text-decoration: line-through; }
.p-arca { --pc: var(--p-arca); --pc-soft: var(--p-arca-soft); }
.p-russell_dg { --pc: var(--p-russell_dg); --pc-soft: var(--p-russell_dg-soft); }
.p-russell_md { --pc: var(--p-russell_md); --pc-soft: var(--p-russell_md-soft); }
.p-etc { --pc: var(--p-etc); --pc-soft: var(--p-etc-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--warn); }
.btn.danger.armed { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.small { min-height: 32px; padding: 0 11px; font-size: 13px; }
.spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.check {
  flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  display: grid; place-items: center; padding: 0; color: transparent;
}
.check::after { content: ""; width: 11px; height: 6px; border: 2px solid currentColor; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
span.check { width: 24px; height: 24px; margin-top: 2px; }
span.check::after { width: 9px; height: 5px; }

/* ---------- auth / banner ---------- */
#s-banner { display: flex; flex-direction: column; gap: 8px; }
#s-auth:empty { display: none; }
.notice { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.notice b { font-size: 15px; }
.notice p { margin: 0; color: var(--muted); font-size: 14px; }
.notice.login { align-items: stretch; margin-top: 8vh; padding: 20px 18px; gap: 12px; }
.notice.login b { font: 700 20px/1.3 var(--serif); }
.notice .fail { color: var(--warn); font-size: 13.5px; }
.linkbtn { border: 0; background: none; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.banner {
  border-radius: 16px; padding: 16px 16px 14px; background: var(--accent-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.banner.stale { background: var(--warn-soft); }
.banner .label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.banner.stale .label { color: var(--warn); }
.banner .headline { margin: 0; font: 700 23px/1.35 var(--serif); overflow-wrap: anywhere; }
.banner .note { margin: 0; color: var(--muted); font-size: 14px; }
.banner .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.banner .meta { font-size: 12.5px; color: var(--muted); }
.banner .fail { font-size: 12.5px; color: var(--warn); }
.alerts { display: flex; flex-direction: column; gap: 6px; }
.alert {
  display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: 10px;
  background: var(--warn-soft); color: var(--warn); font-size: 13.5px; font-weight: 500;
}
.alert::before { content: "!"; flex: none; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%; background: var(--warn); color: var(--surface); font: 700 11px/17px var(--mono); text-align: center; }

/* ---------- timeline ---------- */
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tl li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.tl .t { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); padding-top: 9px; display: flex; flex-direction: column; line-height: 1.35; }
.tl .t .end { color: var(--faint); font-size: 12px; }
.ev {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--pc, var(--faint));
  border-radius: 10px; padding: 8px 12px; min-width: 0;
}
.ev .title { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.ev .sub {
  color: var(--muted); font-size: 13px; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
li.now .ev { border-color: var(--pc, var(--accent)); box-shadow: 0 0 0 1px var(--pc, var(--accent)), var(--shadow); }
li.past { opacity: .45; }
.ev.rt { border-left-style: dashed; }
.gap-box {
  border: 1.5px dashed var(--line); border-radius: 10px; padding: 7px 12px; color: var(--muted); font-size: 13.5px;
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
}
.gap-box b { color: var(--ink); font-weight: 600; }
li.now .gap-box { border-color: var(--accent); color: var(--ink); }
.tl li.nowline { grid-template-columns: 50px minmax(0, 1fr); align-items: center; margin: -1px 0; }
.nowline .t { padding: 0; color: var(--accent); font-weight: 600; }
.nowline .bar { height: 2px; background: var(--accent); border-radius: 2px; position: relative; }
.nowline .bar::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- priorities ---------- */
.prio { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pcard { display: grid; grid-template-columns: 30px minmax(0, 1fr) 24px; gap: 12px; align-items: start; padding: 12px 12px 12px 14px; }
.rank {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink); font: 600 14px/1 var(--mono);
}
.pcard.first .rank { background: var(--accent); color: var(--accent-ink); }
.pcard.first { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.p-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.p-title { font-weight: 600; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.p-why { color: var(--muted); font-size: 12.5px; }
.pcard.done .p-title { text-decoration: line-through; color: var(--faint); }
.pcard.done .rank { opacity: .5; }
.overflow { padding: 10px 14px; background: var(--surface-2); border-radius: 12px; font-size: 13.5px; color: var(--muted); }
.overflow b { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.overflow ul { margin: 0; padding-left: 18px; }

/* ---------- slots ---------- */
.slots { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .slots { grid-template-columns: 1fr 1fr; } }
.slot { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.slot-label { font-size: 13px; font-weight: 600; color: var(--accent); }
.slot-task { font-weight: 600; overflow-wrap: anywhere; }
.slot-prep { font-size: 13px; color: var(--muted); }

/* ---------- deadlines / week ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { padding: 10px 12px 10px 14px; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.dl { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; }
.dday { justify-self: start; font: 600 12.5px/1 var(--mono); padding: 5px 7px; border-radius: 7px; background: var(--surface-2); color: var(--ink); }
.dl.soon .dday { background: var(--warn-soft); color: var(--warn); }
.dl .title { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.dl .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dl .meta .pill { font-size: 11.5px; padding: 0 7px; }
.dl-note { font-size: 12.5px; color: var(--faint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.one-list .one { cursor: pointer; }
.one-list .one:hover .title { color: var(--accent); }

.wk { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; align-items: start; }
.wk-day { display: flex; flex-direction: column; line-height: 1.3; padding-top: 2px; }
.wk-day b { font: 700 15px/1.3 var(--serif); }
.wk-day .mono { font-size: 12px; color: var(--muted); }
.wk-pills { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.wk.today { background: var(--accent-soft); }
.wk.today .wk-day b { color: var(--accent); }
.wk.past { opacity: .5; }
.rows > li.wk.today:first-child { border-radius: 13px 13px 0 0; }
.rows > li.wk.today:last-child { border-radius: 0 0 13px 13px; }

/* ---------- add form ---------- */
.add summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; font: 700 16px/1.3 var(--serif);
}
.add summary::-webkit-details-marker { display: none; }
.plus { width: 14px; height: 14px; position: relative; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px; background: var(--muted); transition: transform .2s; }
.plus::after { transform: rotate(90deg); }
.add[open] .plus::after { transform: rotate(0); }
.add form { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; padding: 0; border: 0; }
.f > span, .f > legend { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0; }
.f input, .f textarea, .f select {
  width: 100%; min-width: 0; min-height: 42px; padding: 8px 11px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); font-size: 16px;
}
.f textarea { resize: vertical; min-height: 60px; }
.f input[type="date"], .f input[type="time"] { font-family: var(--mono); font-size: 15px; font-variant-numeric: tabular-nums; }
.f-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.f-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer;
}
.seg span i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc, var(--faint)); }
.seg input:checked + span { border-color: var(--pc, var(--accent)); background: var(--pc-soft, var(--accent-soft)); color: var(--pc, var(--accent)); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- footer ---------- */
.foot { display: flex; flex-direction: column; gap: 10px; }
.foot .status { font-size: 12.5px; color: var(--faint); text-align: center; }
.install { padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.install .txt { flex: 1; min-width: 0; font-size: 13.5px; color: var(--muted); }
.install .txt b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.pushrow { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.howto summary { cursor: pointer; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.howto-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); }
.howto-body p { margin: 0; }
.howto-body ul { margin: 0; padding-left: 18px; color: var(--ink); }
.copyrow { display: flex; gap: 6px; }
.copyrow input {
  flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); font: 12.5px var(--mono);
}
.tt-date { font: 400 12px var(--mono); color: var(--muted); }
.tg { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); }
.tg > b { color: var(--ink); font-size: 15px; }
.tg ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; }
.tg ol b { color: var(--ink); }
.tg a:not(.btn) { color: var(--accent); }
.tg code { font-family: var(--mono); font-size: 12.5px; }
.tg .fail { margin: 0; color: var(--warn); }
.tg-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- week view (timetable editor) ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.tt-grid { display: none; }
.tt-list { display: flex; flex-direction: column; gap: 10px; }
.tt-day { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.tt-day.today { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.tt-day h3 { margin: 0; font: 700 16px/1.3 var(--serif); display: flex; align-items: baseline; gap: 8px; }
.tt-day h3 .mono { font: 400 12px var(--mono); color: var(--muted); }
.tt-item {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; text-align: left;
  border: 0; border-left: 3px solid var(--pc, var(--faint)); background: var(--pc-soft, var(--surface-2)); border-radius: 8px; padding: 8px 10px;
}
.tt-item .mono { font-size: 12.5px; color: var(--muted); padding-top: 1px; }
.tt-item b { font-weight: 600; display: block; overflow-wrap: anywhere; }
.tt-item small { color: var(--muted); font-size: 12.5px; display: block; overflow-wrap: anywhere; }
.tt-item.rt { background: transparent; border: 1px dashed var(--line); border-left: 3px dashed var(--faint); }

@media (min-width: 900px) {
  .tt-list { display: none; }
  .tt-grid { display: block; overflow-x: auto; }
  .tt { display: grid; grid-template-columns: 52px repeat(7, minmax(110px, 1fr)); min-width: 860px; }
  .tt-head { padding: 8px 6px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .tt-head b { font: 700 15px/1.2 var(--serif); }
  .tt-head.today b { color: var(--accent); }
  .tt-head .pill { font-size: 11.5px; cursor: pointer; border: 1px dashed var(--line); background: transparent; }
  .tt-hours { position: relative; }
  .tt-hours span { position: absolute; right: 8px; transform: translateY(-50%); font: 400 11.5px var(--mono); color: var(--faint); }
  .tt-col {
    position: relative; height: calc(var(--hours) * 48px); border-left: 1px solid var(--line);
    background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 48px);
  }
  .tt-col.today { background-color: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
  .tt-block {
    position: absolute; left: 4px; right: 4px; overflow: hidden; text-align: left;
    border: 0; border-left: 3px solid var(--pc); background: var(--pc-soft); color: var(--ink);
    border-radius: 7px; padding: 5px 7px; font-size: 12.5px; line-height: 1.35;
    display: flex; flex-direction: column; gap: 1px;
  }
  .tt-block:hover { box-shadow: 0 0 0 1px var(--pc); }
  .tt-block b { font-weight: 600; font-size: 13px; }
  .tt-block .mono { font-size: 11.5px; color: var(--muted); }
  .tt-block.oneoff { border-left-style: dotted; }
}

.one-list .one { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; align-items: center; cursor: pointer; }
.one .d { font: 500 12.5px/1.35 var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); display: flex; flex-direction: column; }
.one .title { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.one .note { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.one.done .title { text-decoration: line-through; color: var(--faint); }
.one-list button.row-btn { all: unset; display: contents; }
details.past-ones > summary { cursor: pointer; padding: 10px 14px; font-size: 13.5px; color: var(--muted); }

/* ---------- dialog ---------- */
dialog {
  border: 0; padding: 0; width: min(560px, 100vw); max-height: min(88vh, 900px);
  background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .4);
}
dialog::backdrop { background: rgba(10, 14, 12, .45); }
@media (max-width: 600px) {
  dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 18px 18px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.ed { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 16px; }
.ed h2 { margin: 0; font: 700 19px/1.3 var(--serif); }
.ed .actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.ed .actions .spacer { flex: 1; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.checkline input { width: 20px; height: 20px; accent-color: var(--accent); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); z-index: 50;
}

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