/* Planner look: same house style as Reminders (Barlow Condensed headings + Barlow text, Dark/Light), in Neon Pink (picked 19/11/2026 from styles/planner pink style v1.0.html). */
:root {
  color-scheme: dark;
  --bg: #0f0e10; --card: #141317; --card2: #1e1c22; --line: #2e2b33; --sep: #2e2b33; --line2: #3b3741;
  --fg: #ececf1; --mut: #8f8b96; --dim: #5e5a64;
  --brand: #ff5fa2; --btn: #ff5fa2; --press: #e04e8c; --ink: #1a0a12; --off: #3b3741; --knob: #fff; --icInk: #1a0a12; --red: #ff5fa2;
  --sel: #2c1a25; --ring: #6b2a55; --glowc: rgba(255, 95, 162, .28);
  --p-c: #d4ccdd; --p-a: #ff7fb5; --p-b: #c39bff;
  --muted: #0c0b0d; --shade: rgba(0, 0, 0, .7); --shadow: rgba(0, 0, 0, .6);
  --fd: 'Barlow Condensed'; --fx: 'Barlow';
  --top: env(safe-area-inset-top, 0px); --bot: env(safe-area-inset-bottom, 0px);
  --barH: calc(max(var(--bot), 14px) + 59px);
}
/* light mode (Light/Dark button on the home header, saved per phone, starts dark) */
:root[data-theme=light] {
  color-scheme: light;
  --bg: #f3f2f5; --card: #ffffff; --card2: #ecebef; --line: #dad7de; --sep: #dad7de; --line2: #cdc9d2;
  --fg: #1c1a20; --mut: #6b6772; --dim: #8a8690;
  --brand: #e0307f; --red: #e0307f; --off: #cdc9d2;
  --sel: #fdeaf3; --ring: #f5bcd6; --glowc: rgba(224, 48, 127, .18);
  --p-c: #6b6772; --p-a: #e0307f; --p-b: #8a5cd6;
  --muted: #ecebef; --shade: rgba(30, 26, 32, .45); --shadow: rgba(30, 26, 32, .18);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); overflow: hidden; }
body { font-family: var(--fx), system-ui, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: var(--fg); }
svg { display: block; flex: none; }
[hidden] { display: none !important; }

/* text */
.h { font-family: var(--fd), sans-serif; font-weight: 800; text-transform: uppercase; font-size: calc(var(--s, 22) * 1px); letter-spacing: .8px; line-height: 1.1; margin: 0; }
.nc { text-transform: none; }
.b { font-size: calc(var(--s, 16) * 1px); line-height: 1.35; }
.m { font-weight: 500; } .w { font-weight: 700; }
.l { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; font-size: calc(var(--s, 13) * 1px); letter-spacing: 2px; color: var(--mut); }
.mut { color: var(--mut); } .brand { color: var(--brand); } .red { color: var(--red); } .dim { color: var(--dim); }
.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: calc(var(--s, 18) * 1px); letter-spacing: 1.6px; line-height: 1; }

/* screens */
.scr { position: fixed; inset: 0; display: flex; flex-direction: column; padding-top: var(--top); background: var(--bg); }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 16px 140px; }
.wrap { max-width: 640px; margin: 0 auto; width: 100%; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px 10px; min-height: 56px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.row { display: flex; align-items: center; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; }
.flex { flex: 1; min-width: 0; }

/* buttons */
.press { transition: transform .1s, opacity .1s; }
.press:active { transform: scale(.97); opacity: .85; }
.pill { height: 48px; padding: 0 20px; border-radius: 10px; background: var(--btn); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.pill:active { background: var(--press); }
.pill.ghost { background: transparent; border: 1.5px solid var(--brand); color: var(--brand); }
.pill.small { height: 36px; padding: 0 14px; border-radius: 8px; min-width: 70px; --s: 16; }
.rbtn { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line2); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.rbtn.sm { width: 38px; height: 36px; border-radius: 8px; }
.rbtn.on { background: var(--btn); border-color: var(--btn); color: var(--ink); }
.back { height: 38px; padding: 0 6px 0 0; margin-left: -6px; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; }
.back .l { color: var(--brand); font-weight: 800; --s: 19; letter-spacing: 1.5px; }
.gear { width: 38px; height: 38px; border-radius: 19px; border: 1px solid var(--line2); color: var(--fg); display: flex; align-items: center; justify-content: center; position: relative; }
.gear .dot { position: absolute; top: 0; right: 0; width: 10px; height: 10px; border-radius: 5px; background: var(--brand); }
.tog { width: 52px; height: 30px; border-radius: 8px; background: var(--off); padding: 3px; flex: none; }
.tog i { display: block; width: 24px; height: 24px; border-radius: 6px; background: var(--knob); transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); }
.tog.on { background: var(--btn); } .tog.on i { transform: translateX(22px); }
.link { color: var(--brand); font-weight: 700; }

/* bottom bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px max(var(--bot), 14px); display: flex; align-items: center; justify-content: space-between; background: var(--bg); border-top: 1px solid var(--line); z-index: 5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dots { display: flex; gap: 7px; } .dots i { width: 7px; height: 7px; border-radius: 2px; background: var(--line2); } .dots i.on { background: var(--brand); }

/* home */
/* site title (same as the other sites: icon + name) + Dark/Light button */
.ttl { display: flex; align-items: center; gap: 9px; font-family: var(--fd), sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 26px; line-height: 1; margin: 0; color: var(--fg); }
.ttl img { width: 38px; height: 38px; display: block; }
.ttl .st { display: flex; flex-direction: column; line-height: .9; }
.ttl .st small { font-weight: 700; font-size: 15px; letter-spacing: .12em; color: var(--mut); text-transform: none; }
.ttl .st em { font-style: normal; color: var(--red); }
.motto { --s: 15; font-weight: 600; margin-top: 8px; }
.thm { height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card2); color: var(--fg); display: inline-flex; align-items: center; gap: 6px; font-family: var(--fd), sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.thm svg { width: 17px; height: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.chip { padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line2); color: var(--mut); --s: 13; font-weight: 700; }
.chip.red { border-color: var(--red); }
.hcard { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px 11px 11px; margin-bottom: 9px; }
.hcard:active { opacity: .7; }
.hcard .h { --s: 21 !important; letter-spacing: .5px; }
.ic40 { width: 46px; height: 46px; border-radius: 10px; background: var(--brand); color: var(--icInk); display: flex; align-items: center; justify-content: center; flex: none; }
.calic { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--card2); border: 1px solid var(--line2); flex: none; display: flex; flex-direction: column; }
.calic span { background: var(--btn); color: var(--ink); text-align: center; padding: 3px 0 2px; font: 800 10px 'Barlow Condensed'; letter-spacing: 1.5px; }
.calic b { flex: 1; display: flex; align-items: center; justify-content: center; }
.badge { min-width: 24px; height: 24px; border-radius: 12px; background: var(--brand); color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0 7px; font-weight: 700; font-size: 13px; flex: none; }
.sec { margin: 18px 0 8px; display: block; }
.spacer { height: 8px; }

/* lists pager */
.pager { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pager::-webkit-scrollbar { display: none; }
.pager.lock { overflow-x: hidden; }
.page { flex: none; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow-y: auto; padding: 2px 16px 140px; }
.lhead { display: block; text-align: left; width: 100%; padding: 2px 0 8px; }
.avs { display: flex; align-items: center; margin-top: 8px; }
.av { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--bg); background: var(--line2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-left: -4px; }
.av:first-child { margin-left: 0; }
.donebar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 4px; --s: 14; font-weight: 600; }
/* group heading = banner look 5 (Group Banners v1.0): big white name, red count badge, no line */
.ghead { display: flex; align-items: center; gap: 10px; margin: 24px 0 8px; }
.badge.zero { background: var(--line2); color: var(--mut); }
.ghead .name { flex: 1; min-width: 0; text-align: left; }
.ghead .h { letter-spacing: 1.2px; }
.ghead .plus { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: var(--brand); }
.empty { text-align: center; padding: 40px 0; color: var(--mut); }

/* reminder row */
.rr { display: flex; align-items: flex-start; gap: 12px; border-radius: 8px; width: 100%; text-align: left; transition: background .3s; }
.rr.flash { background: color-mix(in srgb, var(--brand) 22%, transparent); }
.chk { width: 24px; height: 24px; margin-top: 15px; border-radius: 6px; border: 1.5px solid var(--line2); background: var(--card2); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink); position: relative; }
.chk::after { content: ""; position: absolute; inset: -10px; }
.chk.on { border-color: var(--brand); background: var(--brand); }
.chk.dim { opacity: .3; }
.rbody { flex: 1; min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; min-height: 56px; }
.rbody.t { padding: 12px 0; }
.rtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rtitle { font-weight: 700; overflow-wrap: anywhere; }
.rr.muted .rtitle { color: var(--mut); text-decoration: line-through; text-decoration-color: var(--line2); }
.meta { display: flex; align-items: center; gap: 5px; --s: 14; color: var(--mut); }
.meta.late { color: var(--red); font-weight: 700; }
.sqbtn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line2); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.sqbtn.soft { color: var(--mut); }
/* tap a task: edit title + description in the row; hold a row to drag it */
.page .gbody > .rr { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ein { display: block; width: 100%; background: none; border: 0; outline: 0; padding: 0; margin: 0; -webkit-user-select: text; user-select: text; }
.ein.rtitle { font-size: 16px; color: var(--fg); }
.ein.edesc { --s: 15; color: var(--mut); font-weight: 400; }
/* rows on list + project pages = cards (option 1), all the same height */
:root { --rowH: 62px; }
.page .rr, .cal .rr { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 8px; min-height: var(--rowH); align-items: center; }
.page .rr .chk, .cal .rr .chk { margin-top: 0; }
.page .rr .rbody, .cal .rr .rbody { border-bottom: 0; padding: 10px 0; min-height: calc(var(--rowH) - 2px); align-self: stretch; }
.page .rr.muted { background: var(--muted); }
.page .rr.flash { background: color-mix(in srgb, var(--brand) 22%, var(--card)); }
.page .rr.editing { border-color: var(--brand); }
.page .rr.editing .rbody { padding: 10px 0; }
.meta .dsc { color: var(--mut); font-weight: 400; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta > span:not(.dsc), .meta > svg { flex: none; }
.caps { text-transform: uppercase; }
.addin { flex: 1; background: none; border: 0; outline: 0; padding: 12px 0; font-size: 16px; font-weight: 600; }
.addin::placeholder, input::placeholder, textarea::placeholder { color: var(--dim); }

/* move mode */
.grip { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--mut); touch-action: none; cursor: grab; flex: none; }
.gbody { min-height: 14px; }
.lift { position: relative; z-index: 3; background: var(--card); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 8px 24px var(--shadow); transform: scale(1.02); }
.gsec.lift { padding: 0 8px 8px; }

/* calendar */
.strip { display: flex; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.day.today { border-color: var(--btn); }
.day.on { background: var(--btn); border-color: var(--btn); }
.day.on .l, .day.on .h { color: var(--ink); }
.day i { width: 6px; height: 6px; border-radius: 2px; background: var(--btn); }
.day.on i { background: var(--ink); }
.day i.no { opacity: 0; }
.sech { display: flex; align-items: center; margin-top: 20px; padding-bottom: 3px; }
.crow { transition: padding .26s, opacity .26s; position: relative; }
.crow.pick { padding-left: 16px; }
.crow.pick::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: -8px; right: -8px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 14%, transparent); }
.crow.fade { opacity: .5; }

/* settings */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.card > .l { color: var(--mut) !important; --s: 13 !important; }
.sel { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line2); width: 100%; text-align: left; }
.sel .v { flex: 1; font-weight: 700; font-size: 16px; }
.sel > svg:last-child { color: var(--btn); }
.srow { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line2); width: 100%; text-align: left; }
.srow:active { opacity: .7; }
.srow .v { flex: 1; font-weight: 700; font-size: 16px; }

/* setup */
.setup .ttl { align-self: flex-start; }
.setup { display: flex; flex-direction: column; gap: 18px; padding: 16vh 24px 40px; max-width: 420px; margin: 0 auto; width: 100%; }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; height: 48px; border-radius: 10px; border: 1px solid var(--line2); color: var(--mut); font-weight: 700; }
.seg button.on { background: var(--btn); border-color: var(--btn); color: var(--ink); }
.seg.kind { width: 100%; }
.field { width: 100%; background: var(--card2); border: 1px solid var(--line2); border-radius: 10px; padding: 0 14px; height: 52px; font-size: 17px; font-weight: 600; outline: 0; }

/* layers: sheets and full pages that slide up */
.layer { position: fixed; inset: 0; z-index: 20; }
.shade { position: absolute; inset: 0; background: var(--shade); animation: fade .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 75%; background: var(--bg); border-top: 1px solid var(--line2); border-radius: 14px 14px 0 0; padding-bottom: calc(var(--bot) + 12px); display: flex; flex-direction: column; animation: up .25s cubic-bezier(.2, .8, .3, 1); max-width: 640px; margin: 0 auto; }
.sheet.full { top: calc(var(--top) + 10px); max-height: none; }
.shead { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px; }
.shead .t { font-family: 'Barlow Condensed'; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; font-size: 19px; }
.shead > :first-child { min-width: 70px; text-align: left; font-weight: 600; }
.sbody { overflow-y: auto; padding: 0 16px 8px; flex: 1; }
.pick { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pick button { display: flex; align-items: center; gap: 12px; padding-left: 16px; min-height: 52px; width: 100%; text-align: left; font-weight: 600; }
.pick button:active { background: var(--card2); }
.pick .in { flex: 1; display: flex; align-items: center; gap: 10px; align-self: stretch; padding-right: 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.pick button:last-child .in { border-bottom: 0; }
.pick .in > span:first-child { flex: 1; }
.pick svg { color: var(--btn); }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* reminder details + list info */
.grp { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.inp { display: block; width: 100%; background: none; border: 0; outline: 0; padding: 12px 16px; font-size: 16px; font-weight: 600; resize: none; }
.sep { height: 1px; background: var(--line); margin-left: 16px; }
.drow { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 52px; width: 100%; text-align: left; font-weight: 600; }
button.drow:active { background: var(--card2); }
.drow .ic { width: 22px; display: flex; justify-content: center; color: var(--brand); }
.drow .lab { flex: 1; padding: 8px 0; }
.drow .val { color: var(--mut); max-width: 55%; font-weight: 500; }
.drow > svg:last-child { color: var(--mut); }
.native { margin: 0 14px 10px; background: var(--card2); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; font-size: 16px; color-scheme: dark; accent-color: var(--brand); outline: 0; }
.delbtn { width: 100%; min-height: 50px; color: var(--red); font-weight: 700; }
.bigic { width: 80px; height: 80px; border-radius: 16px; background: var(--brand); color: var(--icInk); display: flex; align-items: center; justify-content: center; }
.liname { width: 100%; text-align: center; font-family: 'Barlow Condensed'; font-weight: 800; letter-spacing: .5px; font-size: 24px; color: var(--fg); background: var(--card2); border: 1px solid var(--line2); border-radius: 10px; padding: 11px; outline: 0; }
.lidesc { width: 100%; text-align: center; font-size: 15px; color: var(--mut); background: none; border: 0; outline: 0; }
.person { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 8px; border: 1px solid var(--line2); --s: 15; font-weight: 600; }
.person .av { margin: 0; border: 0; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bot) + 84px); background: var(--card); border: 1px solid var(--line2); padding: 10px 18px; border-radius: 8px; font-size: 15px; font-weight: 600; z-index: 50; pointer-events: none; white-space: nowrap; }


/* 7/11/2026 select mode: round pick circles, bar with Group / List / Project / Done / Delete; home list cards hold + drag */
.chk.pk { border-radius: 50%; }
.selbar { justify-content: space-around !important; gap: 4px !important; }
.sbtn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--fg); padding: 2px 0; }
.sbtn .l { --s: 12; color: inherit; letter-spacing: 1px; }
.sbtn[disabled] { opacity: .3; }
.sbtn:not([disabled]):active { color: var(--brand); }
.hsec > .hcard { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hsec > .hcard.lift { border-color: var(--brand); }

/* 19/11/2026: long titles wrap so you can read all of it; description sits on its own line under the title; laptop arrows to change list */
.rdesc { --s: 14; color: var(--mut); font-weight: 400; white-space: pre-wrap; overflow-wrap: anywhere; }
.rr.muted .rdesc { color: var(--dim); }
.wrapt { overflow-wrap: anywhere; }
textarea.ein { resize: none; overflow: hidden; font-family: inherit; line-height: 1.35; }
.pgarrow { display: none; }
@media (min-width: 760px) {
  .pgarrow { display: flex; position: fixed; top: 50%; transform: translateY(-50%); z-index: 4; width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--fg); align-items: center; justify-content: center; cursor: pointer; }
  .pgarrow.l { left: max(12px, calc(50% - 320px - 80px)); }
  .pgarrow.r { right: max(12px, calc(50% - 320px - 80px)); }
  .pgarrow:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
  .pgarrow:disabled { opacity: .3; cursor: default; }
  .pgarrow[hidden] { display: none; }
}

/* ---------- Planner (19/11/2026) ---------- */
/* home: Streaks + Quiz cards, reward dot */
.ic40.soft { background: var(--card2); border: 1px solid var(--line2); color: var(--brand); }
.pdot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); flex: none; }
.gear svg { color: var(--fg); }
/* who it's for (only when one person): small outlined name tag */
.who { margin-left: 4px; padding: 0 7px; border-radius: 6px; border: 1px solid currentColor; font-size: 12px; font-weight: 700; line-height: 18px; flex: none; }
.who.c00kie { color: var(--p-c); } .who.adella { color: var(--p-a); }
.meta .dsc { flex: 0 1 auto; }

/* calendar rows = same cards as the lists */
.cal .rr.muted { background: var(--muted); }
.cal .rr.flash { background: color-mix(in srgb, var(--brand) 22%, var(--card)); }
.cal .rr.editing { border-color: var(--brand); }
.rr.ghost { opacity: .5; border-style: dashed !important; }
.cal .scroll { padding-bottom: 120px; }
.prog { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 12px; }
.prog span { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.seg.cview { margin: 16px 0 12px; }
.seg.cview button { height: 40px; }
/* day strip: scrolls sideways; selected day = pink tint + soft glow (no filled block) */
.cal .strip { overflow-x: auto; scrollbar-width: none; border-bottom: 0; margin: 0 -16px 6px; padding: 2px 16px 12px; }
.cal .strip::-webkit-scrollbar { display: none; }
.cal .strip .day { flex: 0 0 50px; }
.day.on, .mday.on { background: var(--sel); border-color: transparent; box-shadow: inset 0 0 0 1px var(--ring), 0 0 14px var(--glowc); }
.day.on .l, .day.on .h { color: var(--brand); }
.day.on i { background: var(--brand); }
.sech { gap: 8px; margin: 18px 0 8px; }
.sech.wk { width: 100%; text-align: left; }
.tday { padding: 2px 8px; border-radius: 999px; background: var(--brand); color: var(--ink); font: 700 11px 'Barlow Condensed'; letter-spacing: 1.3px; text-transform: uppercase; }
.cpager { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.cplab { flex: 1; text-align: center; --s: 15; color: var(--fg); padding: 8px; }
/* month grid */
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.mh { text-align: center; --s: 12; padding: 2px 0 4px; }
.mday { min-height: 48px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 15px; }
.mday.out { opacity: .35; }
.mday.today { border-color: var(--brand); }
.mday.on { color: var(--brand); }
.mdots { display: flex; gap: 3px; height: 6px; align-items: center; }
.mdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--p-b); }
.mdots i.c00kie { background: var(--p-c); } .mdots i.adella { background: var(--p-a); }
.mdots b { font-size: 10px; line-height: 6px; color: var(--mut); }

/* ---------- Streaks (web/streaks.js): page over the app + its own sheet ---------- */
:root { --slip: #a98bdc; }
:root[data-theme=light] { --slip: #7d5cc4; }
.st-page { position: fixed; inset: 0; z-index: 15; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg);
  padding: calc(var(--top) + 12px) 16px calc(var(--bot) + 60px); display: grid; align-content: start; gap: 16px; animation: up .25s cubic-bezier(.2, .8, .3, 1); }
.st-page > * { width: 100%; max-width: 640px; justify-self: center; }
.st-page .thead { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.st-page .icon-btn, .st-sheet .icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); color: var(--fg); background: none; display: grid; place-items: center; flex: none; }
.st-page .icon-btn:first-child { color: var(--brand); }
.st-h1 { font: 800 30px/1.05 var(--fd), sans-serif; text-transform: uppercase; letter-spacing: .8px; margin: 0; flex: 1; overflow-wrap: anywhere; }
.st-plus { color: var(--brand) !important; }
.st-body { display: grid; gap: 12px; align-content: start; }
.st-h3 { font: 700 13px var(--fd), sans-serif; text-transform: uppercase; letter-spacing: 2px; color: var(--mut); margin: 8px 0 -2px; }
.st-ic { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -0.18em; fill: var(--brand); }
.st-ic.star { width: .9em; height: .9em; }
.st-page .empty { display: grid; justify-items: center; gap: 12px; }
.st-page .empty p { margin: 0; }
.st-page button.ghost, .st-sheet button.ghost { height: 48px; padding: 0 20px; border-radius: 10px; background: none; border: 1.5px solid var(--brand); color: var(--brand); font: 800 18px var(--fd), sans-serif; letter-spacing: 1.6px; text-transform: uppercase; }
.st-sheet button.primary { height: 48px; padding: 0 20px; border-radius: 10px; background: var(--btn); border: 0; color: var(--ink); font: 800 18px var(--fd), sans-serif; letter-spacing: 1.6px; text-transform: uppercase; flex: 1; }
.st-sheet button.danger { height: 48px; padding: 0 16px; border-radius: 10px; background: none; border: 1px solid var(--line2); color: var(--red); font-weight: 700; }
.st-sheet button[disabled] { opacity: .5; }
/* reward waiting to be given: pink outline + soft glow all round */
.st-unlock { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--sel); box-shadow: inset 0 0 0 1px var(--ring), 0 0 14px var(--glowc); }
.st-unlock .g { width: 28px; height: 28px; flex: 0 0 auto; }
.st-unlock-t { flex: 1; min-width: 0; }
.st-unlock-t b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.st-unlock-t small { color: var(--mut); font-size: 13px; }
.st-given { background: var(--btn); color: var(--ink); border: 0; border-radius: 8px; padding: 9px 14px; font: 800 16px var(--fd), sans-serif; letter-spacing: 1.2px; text-transform: uppercase; }
.st-card { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.st-card:active { opacity: .7; }
.st-card-t { flex: 1; min-width: 0; }
.st-card .t { font: 800 21px/1.1 var(--fd), sans-serif; text-transform: uppercase; letter-spacing: .5px; overflow-wrap: anywhere; }
.st-card .r { font-size: 14px; color: var(--mut); margin-top: 3px; }
.st-card .r em { color: var(--brand); font-style: normal; font-weight: 700; }
.st-chev { color: var(--brand); font-size: 26px; line-height: 1; }
.st-ring { --p: 50; width: 66px; height: 66px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--line) 0); }
.st-ring > div { width: 54px; height: 54px; border-radius: 50%; background: var(--card); display: grid; place-items: center; }
.st-ring b { font: 800 24px var(--fd), sans-serif; }
.st-hero { text-align: center; padding: 24px 18px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.st-big { font: 800 96px/1 var(--fd), sans-serif; color: var(--brand); }
.st-u { color: var(--mut); font: 700 15px var(--fd), sans-serif; text-transform: uppercase; letter-spacing: 2px; }
.st-hero .prog { margin: 16px 4px 8px; }
.st-nx { font-size: 14px; }
.st-nx em { color: var(--brand); font-style: normal; font-weight: 700; }
.st-path { display: grid; }
.st-step { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; position: relative; padding: 9px 2px; background: none; border: 0; text-align: left; font-size: 15px; }
.st-step::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.st-step:first-child::before { top: 50%; } .st-step:last-child::before { bottom: 50%; }
.st-step:only-child::before { display: none; }
.st-step i { width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 2px solid var(--line2); z-index: 1; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; }
.st-step i .st-ic { width: 14px; height: 14px; vertical-align: 0; }
.st-step.ok i { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.st-step.ok b { color: var(--mut); font-weight: 500; }
.st-step.nx i { border-color: var(--brand); box-shadow: 0 0 10px var(--glowc); }
.st-step b { font-weight: 600; overflow-wrap: anywhere; }
.st-step small { color: var(--mut); font-size: 13px; }
.st-step.add i { color: var(--brand); font-size: 16px; }
.st-step.add b { color: var(--mut); font-weight: 500; }
.st-row2 { display: flex; gap: 10px; margin-top: 6px; }
.st-row2 > * { flex: 1; }
.st-slip { height: 48px; border-radius: 10px; background: none; border: 1.5px solid var(--slip); color: var(--slip); font: 800 18px var(--fd), sans-serif; letter-spacing: 1.6px; text-transform: uppercase; }
.st-heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.st-heat span { text-align: center; font: 700 12px var(--fd), sans-serif; color: var(--mut); }
.st-heat i { aspect-ratio: 1; border-radius: 7px; background: var(--brand); }
.st-heat i.x { background: var(--slip); }
.st-heat i.f { background: var(--line); opacity: .5; }
.st-heat i.h { background: none; border: 1px dashed var(--line2); }
.st-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.st-stats b { display: block; font: 800 28px var(--fd), sans-serif; }
.st-stats small { font-size: 12px; color: var(--mut); }
.st-pat { display: flex; gap: 8px; flex-wrap: wrap; }
.st-pat span { background: var(--card2); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 11px; font-size: 14px; }
.st-slips { display: grid; }
.st-sliprow { display: flex; gap: 8px; align-items: center; padding: 11px 2px; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; }
.st-sliprow:last-child { border-bottom: 0; }
.st-sliprow b { flex: 1; font-weight: 600; }
.st-why { font-size: 12px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line2); color: var(--mut); }
.st-who { font-size: 11px; font-weight: 700; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: var(--card2); }
.st-who.adella { color: var(--p-a); } .st-who.c00kie { color: var(--p-c); }
/* streak sheet (slides up like the other sheets) */
.st-scrim { position: fixed; inset: 0; z-index: 30; background: var(--shade); animation: fade .2s; }
.st-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; max-width: 640px; margin: 0 auto; max-height: 88%; overflow-y: auto; background: var(--bg); border-top: 1px solid var(--line2); border-radius: 14px 14px 0 0;
  padding: 10px 16px calc(var(--bot) + 16px); display: grid; gap: 14px; animation: up .25s cubic-bezier(.2, .8, .3, 1); }
.st-sheet .grab { margin: 0 auto; }
.st-sheet h2 { font: 800 22px var(--fd), sans-serif; text-transform: uppercase; letter-spacing: 1px; margin: 0; }
.st-sheet .field { display: grid; gap: 6px; height: auto; padding: 0; background: none; border: 0; font-size: 16px; font-weight: 500; }
.st-sheet .field > span:first-child { font: 700 13px var(--fd), sans-serif; text-transform: uppercase; letter-spacing: 2px; color: var(--mut); }
.st-sheet input:not([type=checkbox]), .st-sheet select { width: 100%; height: 48px; background: var(--card2); border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; font-size: 16px; font-weight: 600; color: var(--fg); outline: 0; color-scheme: dark; }
:root[data-theme=light] .st-sheet input, :root[data-theme=light] .st-sheet select { color-scheme: light; }
.st-sheet input:focus, .st-sheet select:focus { border-color: var(--brand); }
.st-sheet .seg button.sel { background: var(--btn); border-color: var(--btn); color: var(--ink); }
.st-sheet .sheet-btns { display: flex; gap: 10px; margin-top: 4px; }
.st-sheet .error { color: var(--red); margin: 0; font-weight: 600; }
.st-sheet .muted, .st-page .muted { color: var(--mut); }
.st-sub { margin: -8px 0 0; font-size: 14px; }
.st-bubbles { display: flex; flex-wrap: wrap; gap: 8px; }
.st-bubbles > button, .st-ownbtn { background: var(--card); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--mut); display: inline-flex; align-items: center; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.st-bubbles > button .st-ic { width: 18px; height: 18px; vertical-align: 0; }
.st-bubbles > button.sel { background: var(--btn); border-color: var(--btn); color: var(--ink); }
.st-bubbles > button.sel .st-ic { fill: var(--ink); }
.st-bubbles > button.own { color: var(--fg); }
.st-bubbles > button.own.sel { color: var(--ink); }
.st-bubbles > button.armed { border-color: var(--red); color: var(--red); background: none; }
.st-ownbtn { border-style: dashed; color: var(--brand); }
.st-own.typing { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--brand); border-radius: 8px; padding: 3px 4px 3px 12px; }
.st-own input { width: 120px !important; height: 32px !important; border: 0 !important; background: none !important; padding: 0 !important; }
.st-ownok { background: var(--btn); color: var(--ink); border: 0; border-radius: 6px; width: 30px; height: 30px; font-weight: 700; }
.st-view { display: grid; gap: 8px; justify-items: start; }
.st-view p { color: var(--fg); margin: 0; }
