:root {
  --paper: #F4F1EA;
  --paper-2: #EEEAE1;
  --card: #FFFFFF;
  --line: #E7E2D8;
  --line-2: #EFEBE3;
  --ink: #1D2320;
  --ink-2: #3D4440;
  --muted: #858A84;
  --faint: #B9BCB5;
  --sage: #5FA97F;
  --shadow: 0 1px 1px rgb(52 44 24 / 0.03), 0 2px 4px rgb(52 44 24 / 0.03), 0 14px 32px -18px rgb(52 44 24 / 0.16);
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --h: 'Geist', var(--kit-grotesk);
  --ui: 'Inter', var(--kit-sans);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 14px/1.45 var(--ui);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  overflow: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { display: block; }

.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 100vh; min-height: 820px; }

/* ---------- rail ---------- */
.rail {
  display: flex; flex-direction: column; gap: 22px;
  padding: 26px 18px 20px;
  background: linear-gradient(180deg, #F0ECE3, #ECE7DD);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 6px; }
.brand__mark { width: 30px; height: 30px; filter: drop-shadow(0 3px 6px rgb(47 175 166 / 0.25)); }
.brand__word { font: 600 21px/1 var(--h); letter-spacing: -0.03em; }
.rail__nav { display: flex; flex-direction: column; gap: 2px; }
.nav-i {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 11px;
  color: var(--ink-2); font-weight: 500; font-size: 14px; text-align: left;
  transition: background 0.2s var(--ease), color 0.2s;
}
.nav-i svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.nav-i:hover { background: rgb(255 255 255 / 0.55); }
.nav-i.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(52 44 24 / 0.06), 0 0 0 1px rgb(52 44 24 / 0.04); }
.nav-i.is-on svg { opacity: 1; stroke: #2E8F7D; }
.rail__label { margin: 0 0 8px 12px; font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.next {
  display: flex; align-items: center; gap: 10px; margin: 0 2px; padding: 11px 12px; border-radius: 14px;
  background: rgb(255 255 255 / 0.6); border: 1px solid rgb(231 226 216 / 0.9);
}
.next .disc { width: 30px; height: 30px; }
.next .disc svg { width: 16px; height: 16px; }
.next b { display: block; font-size: 13px; font-weight: 600; }
.next small { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal {
  display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; margin: 0 2px; padding: 12px 8px 10px; border-radius: 14px;
  background: rgb(255 255 255 / 0.6); border: 1px solid rgb(231 226 216 / 0.9);
}
.cal .h { font-size: 10px; font-weight: 600; color: var(--faint); text-align: center; letter-spacing: 0.04em; padding-bottom: 3px; }
.cal .d { position: relative; height: 24px; display: grid; place-items: center; font: 500 11px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cal .d span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.cal .d.full span { background: #D6EDDD; color: #1F5A3B; font-weight: 600; }
.cal .d.part::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: #7DBF97; }
.cal .d.today span { background: var(--ink); color: #fff; font-weight: 600; }
.cal .d.later { color: #C9CBC4; }
.tipcard { margin: 0 2px; padding: 14px 14px 14px; border-radius: 16px; background: linear-gradient(160deg, #E4F1E7, #F3EFE4 70%); border: 1px solid #DCE7DA; position: relative; overflow: hidden; }
.tipcard svg { width: 64px; height: 52px; margin: -2px 0 6px -4px; }
.tipcard p { margin: 0; font-size: 12.5px; line-height: 1.45; color: #3E4A43; }
.tipcard b { display: block; margin-bottom: 3px; font: 600 13px/1.3 var(--h); color: var(--ink); }
.rail__foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.chip-sample {
  align-self: flex-start; margin-left: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px 4px 8px; border-radius: 99px; background: #fff; border: 1px dashed #D3CDC0;
  font: 500 11px/1 var(--kit-mono); letter-spacing: 0.04em; text-transform: uppercase; color: #8A7F67;
}
.chip-sample i { width: 6px; height: 6px; border-radius: 50%; background: #EDB341; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgb(255 255 255 / 0.5); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #F4B28C, #E06F98); color: #fff; font: 600 12.5px/1 var(--h); letter-spacing: 0.02em;
}
.me__txt b { display: block; font-size: 13px; font-weight: 600; }
.me__txt small { display: block; font-size: 11.5px; color: var(--muted); }

/* ---------- main ---------- */
.main { padding: 26px 32px 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; overflow: auto; }
.main > .grid { flex: 1 0 auto; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.top__date { margin: 0 0 6px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.03em; color: var(--muted); }
.top__hi { margin: 0; font: 600 33px/1.08 var(--h); letter-spacing: -0.03em; }
.top__cheer { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); min-height: 22px; }
.top__cheer em { font-style: normal; color: #2E8F7D; font-weight: 600; }
.top__side { display: flex; align-items: center; gap: 18px; }
.dayring { position: relative; width: 74px; height: 74px; }
.dayring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dayring .arc { transition: stroke-dashoffset 0.9s var(--ease); }
.dayring__n { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dayring__n b { font: 600 19px/1 var(--h); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dayring__n b small { font-size: 13px; color: var(--muted); font-weight: 500; }
.dayring__n span { font-size: 10.5px; color: var(--muted); margin-top: 2px; letter-spacing: 0.02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 12px; font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / 0.15) inset, 0 6px 16px -8px rgb(29 35 32 / 0.6); }
.btn--ink:hover { background: #2C3430; }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { background: #FAF8F4; }
.btn--danger { color: #C4503A; padding: 0 10px; }
.btn--danger:hover { background: #FBEFEC; }
.btn--danger.is-confirm { background: #C4503A; color: #fff; }
.btn--block { width: 100%; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 18px 20px;
}
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.card__head--stack { flex-direction: column; align-items: flex-start; gap: 2px; }
.card__title { margin: 0; font: 600 17px/1.2 var(--h); letter-spacing: -0.02em; }
.card__title .count { color: var(--muted); font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.card__sub { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }

.grid { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 18px; align-items: stretch; }
.col { display: flex; flex-direction: column; gap: 18px; }

/* segmented */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: #F3F0EA; border: 1px solid var(--line-2); position: relative; }
.seg button {
  height: 28px; padding: 0 11px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(52 44 24 / 0.1), 0 0 0 1px rgb(52 44 24 / 0.04); }
.seg--full { display: flex; }
.seg--full button { flex: 1; height: 32px; }

/* ---------- today list ---------- */
.today { display: flex; flex-direction: column; padding-bottom: 10px; }
.list { list-style: none; margin: 0 -8px; padding: 0; position: relative; }
.today .list { flex: 1; display: flex; flex-direction: column; }
.today .list .row { flex: 1 1 0; height: auto; min-height: 58px; max-height: 74px; }
.row {
  --c: #5FA97F;
  position: relative; display: grid; grid-template-columns: 14px 40px minmax(0, 1fr) auto 50px 26px 34px; align-items: center; gap: 12px;
  height: 63px; padding: 0 10px 0 4px; border-radius: 14px; background: #fff;
  transition: background 0.25s var(--ease), transform 0.28s var(--ease), box-shadow 0.2s;
}
.row + .row::before { content: ''; position: absolute; left: 66px; right: 12px; top: 0; height: 1px; background: var(--line-2); }
.row:hover { background: #FBFAF7; }
.row:hover::before, .row:hover + .row::before { opacity: 0; }
.row.is-done { background: color-mix(in oklab, var(--c) 5%, white); }
.row.is-done::before, .row.is-done + .row::before { opacity: 0; }
.row.is-drag { z-index: 5; background: #fff; box-shadow: 0 16px 40px -14px rgb(29 35 32 / 0.35), 0 0 0 1px var(--line); transition: none; }
.grip { width: 14px; height: 24px; display: grid; place-items: center; cursor: grab; opacity: 0; transition: opacity 0.2s; touch-action: none; }
.grip svg { width: 8px; height: 14px; fill: #B9BCB5; }
.row:hover .grip { opacity: 1; }
.is-dragging .grip { cursor: grabbing; }
.disc { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 14%, white); flex: none; }
.disc svg { width: 20px; height: 20px; fill: none; stroke: color-mix(in oklab, var(--c) 82%, #102018); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.row__txt { min-width: 0; }
.row__name { display: block; font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: color 0.3s; }
.row__goal { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.row.is-done .row__name { color: var(--ink-2); }
.wk { display: flex; gap: 5px; }
.wk i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in oklab, var(--c) 18%, white); }
.wk i.on { background: var(--c); }
.wk i.off { background: transparent; box-shadow: inset 0 0 0 1.2px #E2DED5; }
.wk i.now { box-shadow: 0 0 0 2px #fff, 0 0 0 3.2px color-mix(in oklab, var(--c) 60%, white); }
.wk i.later { background: #F1EEE8; }
.streak-n { display: flex; align-items: center; gap: 4px; justify-content: flex-end; font: 600 13.5px/1 var(--h); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.streak-n svg { width: 14px; height: 14px; }
.streak-n.zero { color: var(--faint); }
.streak-n.zero svg path { fill: #DCD8CF; }
.streak-n .num { display: inline-block; min-width: 1.2em; text-align: left; }
.streak-n.bump .num { animation: bump 0.6s var(--spring); }
@keyframes bump { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-3px) scale(1.35); color: var(--c); } 100% { transform: none; } }
.more { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; opacity: 0; transition: opacity 0.2s, background 0.2s; }
.more svg { width: 14px; height: 14px; fill: var(--muted); }
.row:hover .more { opacity: 1; }
.more:hover { background: #F1EEE8; }
.chk {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--c) 38%, white);
  transition: box-shadow 0.3s, transform 0.2s var(--ease);
}
.chk:hover { box-shadow: inset 0 0 0 2px var(--c); background: color-mix(in oklab, var(--c) 8%, white); }
.chk:active { transform: scale(0.92); }
.chk__fill { position: absolute; inset: 0; border-radius: 50%; background: var(--c); transform: scale(0); transition: transform 0.45s var(--spring); box-shadow: 0 6px 14px -6px var(--c); }
.chk__tick { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chk__tick path { stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 0.35s var(--ease) 0.12s; }
.row.is-done .chk__fill { transform: scale(1); }
.row.is-done .chk__tick path { stroke-dashoffset: 0; }
.row.is-done .chk { box-shadow: inset 0 0 0 2px var(--c); }
.burst { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--c); opacity: 0; pointer-events: none; }
.ring-pulse { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; pointer-events: none; }
.list__empty { padding: 30px 16px; color: var(--muted); text-align: center; font-size: 13.5px; }

/* ---------- week rings ---------- */
.week { padding-bottom: 16px; }
.week__body { display: grid; grid-template-columns: 166px 1fr; gap: 14px; align-items: center; }
.rings { position: relative; width: 166px; height: 166px; }
.rings svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.rings .arc { transition: stroke-dashoffset 1s var(--ease); }
.rings__c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rings__c b { font: 600 18px/1 var(--h); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rings__c span { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6.5px; }
.legend li { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.legend li i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.legend li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend li b { font: 600 12.5px/1 var(--h); font-variant-numeric: tabular-nums; color: var(--ink); }

/* ---------- streak card ---------- */
.streak { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto minmax(34px, 1fr) auto; gap: 6px 16px; align-items: center; flex: 1; padding: 18px 20px; position: relative; overflow: hidden; }
.streak__badge { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(150deg, #FFE3B0, #F7B58E); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), 0 8px 18px -10px #E08A4D; }
.streak__badge svg { width: 30px; height: 30px; }
.streak__k { margin: 0 0 2px; font-size: 12.5px; color: var(--muted); }
.streak__v { margin: 0; display: flex; align-items: baseline; gap: 7px; }
.streak__v b { font: 600 34px/1 var(--h); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.streak__v span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.streak__who { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.streak__who .who { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.streak__who .disc { width: 24px; height: 24px; }
.streak__who .disc svg { width: 13px; height: 13px; stroke-width: 2; }
.streak__who b { color: var(--ink); font-weight: 600; }
.streak__who .rec { flex: none; padding: 4px 9px; border-radius: 99px; background: #F6F3EC; color: var(--ink-2); font-weight: 500; font-size: 11.5px; }
.bars { grid-column: 1 / -1; align-self: end; height: 100%; display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; align-items: end; min-height: 34px; max-height: 84px; margin-top: 10px; }
.bars i { display: block; border-radius: 5px; background: color-mix(in oklab, var(--c) 22%, white); height: 30%; transition: height 0.6s var(--ease), background 0.3s; }
.bars i.on { background: var(--c); height: 100%; }
.bars i.today { background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--c) 30%, white) 0 3px, #fff 3px 6px); height: 100%; }
.bars i.today.on { background: var(--c); }
.bars__lab { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: -2px; }

/* ---------- year heatmap ---------- */
.year { position: relative; padding-bottom: 16px; }
.year .card__head { margin-bottom: 8px; align-items: flex-end; }
.year__tools { display: flex; align-items: center; gap: 18px; }
.dots { display: flex; gap: 4px; padding: 3px; border-radius: 99px; background: #F3F0EA; border: 1px solid var(--line-2); }
.dots button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; transition: background 0.2s, box-shadow 0.2s; }
.dots button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); transition: transform 0.2s var(--spring); }
.dots button.all i { background: conic-gradient(#5C9DE6, #EDB341, #9B83DE, #EE7F62, #5FA97F, #E06F98, #2FAFA6, #5C9DE6); }
.dots button:hover i { transform: scale(1.2); }
.dots button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgb(52 44 24 / 0.12); }
.scale { display: flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); }
.scale span { margin: 0 4px; }
.scale i { width: 11px; height: 11px; border-radius: 3px; }
.l0 { background: #EFECE5; } .l1 { background: #CFE7D7; } .l2 { background: #94CDA9; } .l3 { background: #55A97B; } .l4 { background: #2D7A55; }
.heat svg { width: 100%; height: auto; overflow: visible; }
.heat .cell { transition: fill 0.35s var(--ease); }
.heat .cell:hover { stroke: var(--ink); stroke-width: 1.2; }
.heat text { font: 500 10.5px var(--ui); fill: var(--muted); }
.heat .today-mark { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.tip {
  position: absolute; z-index: 4; pointer-events: none; padding: 6px 9px; border-radius: 8px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 500; white-space: nowrap; opacity: 0; transform: translate(-50%, -100%) translateY(-6px); transition: opacity 0.15s;
}
.tip.on { opacity: 1; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgb(29 35 32 / 0.16); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); z-index: 20; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; top: 12px; right: 12px; bottom: 12px; width: 420px; z-index: 21; display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; box-shadow: 0 30px 80px -20px rgb(29 35 32 / 0.35), 0 0 0 1px rgb(29 35 32 / 0.05);
  transform: translateX(calc(100% + 24px)); transition: transform 0.45s var(--ease); visibility: hidden;
}
.sheet.on { transform: none; visibility: visible; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 6px; }
.sheet__head h2 { margin: 0; font: 600 20px/1.2 var(--h); letter-spacing: -0.02em; }
.icon-btn { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.icon-btn:hover { background: #F3F0EA; }
.icon-btn svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-2); stroke-width: 1.8; stroke-linecap: round; }
.sheet__body { flex: 1; overflow: auto; padding: 4px 22px 18px; }
.f-label { display: block; margin: 16px 0 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.f-input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line); background: #FCFBF8;
  font-size: 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.f-input:focus { border-color: #9BC7B0; background: #fff; box-shadow: 0 0 0 4px rgb(95 169 127 / 0.15); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pv { padding: 4px 10px 4px 4px; border-radius: 14px; border: 1px dashed var(--line); background: #FCFBF8; }
.pv .row { grid-template-columns: 0 40px minmax(0, 1fr) 34px; background: transparent; height: 58px; }
.pv .row::before { display: none; }
.icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.icons button { height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line-2); background: #FCFBF8; transition: background 0.2s, border-color 0.2s, transform 0.15s; }
.icons button svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icons button:hover { background: #F4F1EA; }
.icons button[aria-pressed="true"] { background: color-mix(in oklab, var(--c) 14%, white); border-color: var(--c); }
.icons button[aria-pressed="true"] svg { stroke: color-mix(in oklab, var(--c) 82%, #102018); }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; background: var(--c); transition: transform 0.2s var(--spring), box-shadow 0.2s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.daychips { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.daychips button { height: 36px; border-radius: 10px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); background: #fff; transition: all 0.2s; }
.daychips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sheet__foot { display: flex; align-items: center; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line-2); }
.grow { flex: 1; }

/* ---------- settings popover ---------- */
.pop {
  position: fixed; left: 220px; bottom: 120px; z-index: 22; width: 260px; padding: 16px; border-radius: 16px; background: #fff;
  box-shadow: 0 24px 60px -18px rgb(29 35 32 / 0.35), 0 0 0 1px rgb(29 35 32 / 0.06);
}
.pop__title { margin: 0 0 6px; font: 600 15px/1.2 var(--h); }
.pop__note { margin: 0 0 14px; display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.pop__note i { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: calc(50% + 116px); bottom: 26px; z-index: 30; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 99px; background: rgb(29 35 32 / 0.94); color: #fff; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 18px 40px -16px rgb(29 35 32 / 0.6); backdrop-filter: blur(8px);
  opacity: 0; transform: translate(-50%, 14px) scale(0.98); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast .disc { width: 28px; height: 28px; background: color-mix(in oklab, var(--c) 30%, #1D2320); }
.toast .disc svg { width: 15px; height: 15px; stroke: color-mix(in oklab, var(--c) 40%, white); }

/* ---------- entrance ---------- */
.rise { opacity: 0; transform: translateY(8px); }
.ready .rise { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }

@media (max-width: 1180px) {
  .app { grid-template-columns: 196px minmax(0, 1fr); }
  .rail { padding: 22px 12px 18px; }
  .grid { grid-template-columns: minmax(0, 1fr) 316px; }
  .week__body { grid-template-columns: 140px 1fr; }
  .rings { width: 140px; height: 140px; }
  .wk { display: none; }
  .row { grid-template-columns: 14px 40px minmax(0, 1fr) 0 50px 26px 34px; }
  .toast { left: calc(50% + 98px); }
}
@media (min-width: 1500px) {
  .grid { grid-template-columns: minmax(0, 1fr) 400px; }
  .week__body { grid-template-columns: 190px 1fr; }
  .rings { width: 190px; height: 190px; }
}
@media (max-height: 900px) { body { overflow: auto; } }
