/* Mrs. Ardagna's Classroom: shared site styles (dashboard + nav + footer). No external fonts or files. */
:root{
  --bg:#FFF6E6; --bg2:#FFEBCB; --ink:#26243A; --muted:#575570; --card:#FFFFFF; --line:#EBD9BC;
  --teal:#0E6F78; --teal-d:#0A545B; --teal-l:#D9F1F0; --coral:#B83A25; --coral-l:#FFE1DA; --sun:#FFC94A; --sun-l:#FFF0C2; --mint-l:#D8F3DF; --blue-l:#DCEBFF; --pink-l:#FFDDEA;
  --g1:#FFE2A8; --g2:#CFEFEC; --hdr:#FFF9EFEE; --count:#5B3FA8; --count-b:var(--count-b); --wx:#1B8FB5; --deep:#1D3F8F; --past:#F1ECE0; --wash:var(--bg);
  --radius:1.1rem; --shadow:0 .15rem 0 #E5CFA9, 0 .6rem 1.4rem #6B4E1A22;
  --font:ui-rounded,"Nunito","Avenir Next Rounded","Trebuchet MS","Segoe UI",system-ui,-apple-system,sans-serif;
}
*{box-sizing:border-box}
html{font-size:clamp(15px,calc(.55vw + .6vh + 6px),26px);-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;font-family:var(--font);color:var(--ink);background:radial-gradient(circle at 12% -10%,var(--g1) 0,transparent 38%),radial-gradient(circle at 100% 0,var(--g2) 0,transparent 34%),var(--bg);line-height:1.4}
[hidden]{display:none!important}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--teal-d)}
:focus-visible{outline:.22rem solid #1B4FD8;outline-offset:.14rem;border-radius:.4rem}
.sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:.5rem;top:-4rem;z-index:100;background:var(--card);color:var(--ink);padding:.6rem 1rem;border-radius:.5rem;font-weight:800;border:2px solid var(--ink)}
.skip:focus{top:.5rem}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;border:.12rem solid var(--teal-d);background:var(--card);color:var(--teal-d);border-radius:999px;padding:.45rem 1.05rem;font-weight:800;text-decoration:none;min-height:2.4rem;line-height:1.1}
.btn:hover{background:var(--teal-l)}
.btn.primary{background:var(--teal);border-color:var(--teal-d);color:#fff;box-shadow:0 .17rem 0 var(--teal-d)}
.btn.primary:hover{background:var(--teal-d)}
.btn.primary:active{transform:translateY(.12rem);box-shadow:0 .05rem 0 var(--teal-d)}
.btn.ghost{background:transparent}
.btn.small{padding:.3rem .8rem;min-height:2rem;font-size:.9rem}
.btn.big{font-size:1.25rem;padding:.65rem 1.6rem;min-height:3rem}
.btn:disabled{opacity:.6;cursor:default}
.icon-btn{width:2rem;height:2rem;min-width:2rem;border-radius:.6rem;border:.1rem solid transparent;background:transparent;color:var(--muted);font-weight:800;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:1}
.icon-btn:hover{background:var(--sun-l);color:var(--ink);border-color:var(--line)}
.icon-btn.on{background:var(--teal);color:#fff;border-color:var(--teal-d)}

/* header / nav */
.site-header{position:sticky;top:0;z-index:30;background:var(--hdr);backdrop-filter:blur(8px);border-bottom:.12rem solid var(--line)}
.nav{display:flex;align-items:center;gap:.6rem 1.4rem;flex-wrap:wrap;max-width:110rem;margin:0 auto;padding:.55rem 1.2rem}
.brand{display:inline-flex;align-items:center;gap:.6rem;font-weight:900;font-size:1.15rem;color:var(--ink);text-decoration:none}
.brand-mark{width:2rem;height:2rem;border-radius:.55rem;background:url(../icon.svg) center/cover}
.nav-links{flex:1 1 22rem;display:flex;align-items:center;gap:.3rem 1rem;list-style:none;margin:0 auto 0 0;padding:0;flex-wrap:wrap}
.nav-links a{color:var(--ink);text-decoration:none;font-weight:800;padding:.4rem .2rem;border-bottom:.2rem solid transparent}
.nav-links a:hover{border-bottom-color:var(--sun)}
.nav-links a[aria-current=page]{border-bottom-color:var(--coral)}
.nav-links .soon{color:var(--muted);font-size:.88rem;font-style:italic}
.nav-actions{display:flex;gap:.5rem}

/* widgets panel */
.panel{max-width:46rem;margin:.8rem auto 0;background:var(--card);border:.12rem solid var(--teal);border-radius:var(--radius);padding:1rem 1.2rem;box-shadow:var(--shadow);position:relative;z-index:20}
.panel h2{margin:0 0 .6rem;font-size:1.15rem}
.panel-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));gap:.4rem .8rem}
.panel-row{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.9rem}
.panel-note{color:var(--muted);font-size:.9rem;margin:.5rem 0 0}
.check{display:inline-flex;align-items:center;gap:.5rem;font-weight:700;min-height:2rem}
.check input{width:1.2rem;height:1.2rem;accent-color:var(--teal)}

/* hero */
main{max-width:110rem;margin:0 auto;padding:1rem 1.2rem 2rem}
.hero{display:flex;align-items:center;justify-content:space-between;gap:1rem 2rem;flex-wrap:wrap;padding:.6rem .4rem 1rem}
.hero h1{margin:0;font-size:clamp(1.8rem,4.2vw,3.1rem);line-height:1.05;color:var(--teal-d);letter-spacing:-.01em}
.date{margin:.3rem 0 0;font-size:clamp(1.2rem,2.4vw,1.9rem);font-weight:800;color:var(--ink)}
.date .weekday{color:var(--coral)}
.clock{display:flex;align-items:center;gap:.5rem;background:var(--teal);color:#fff;border-radius:1.4rem;padding:.35rem 1.4rem .45rem;box-shadow:0 .25rem 0 var(--teal-d),0 .8rem 1.6rem #0A545B33;font-variant-numeric:tabular-nums}
.clock-hm{font-size:clamp(3rem,8vw,6rem);font-weight:900;line-height:1;letter-spacing:-.02em}
.clock-side{display:flex;flex-direction:column;align-items:flex-start;line-height:1.05}
.clock-ampm{font-size:clamp(1.3rem,2.6vw,2.2rem);font-weight:900;color:var(--sun)}
.clock-sec{font-size:clamp(1rem,1.8vw,1.5rem);font-weight:700;opacity:.92}

/* grid + cards */
.card{background:var(--card);border:.12rem solid var(--line);border-top:.45rem solid var(--teal);border-radius:var(--radius);box-shadow:var(--shadow);padding:.8rem 1rem 1rem;min-width:0;overflow:hidden}
.card-focus{border-top-color:var(--coral)}.card-agenda{border-top-color:var(--teal)}.card-timer{border-top-color:var(--sun)}.card-countdown{border-top-color:var(--count-b)}.card-weather{border-top-color:var(--wx)}.card-notes{border-top-color:#2E7D4F}.card-picker{border-top-color:var(--coral)}.card-jobs{border-top-color:#2F63C9}.card-quiet{border-top-color:var(--wx);background:linear-gradient(#E6F6FC,#fff 70%)}.card-pages{border-top-color:var(--muted)}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.5rem}
.card h2{margin:0;font-size:1.2rem;letter-spacing:.01em}
.card-actions{display:flex;gap:.15rem;opacity:.0;transition:opacity .15s}
.card:hover .card-actions,.card:focus-within .card-actions,.card.is-editing .card-actions{opacity:1}
@media (hover:none){.card-actions{opacity:1}}
.hint{color:var(--muted);margin:.3rem 0;font-size:.95rem}
.privacy{color:var(--muted);font-size:.82rem;margin:.6rem 0 0}
.field{display:block;margin:.3rem 0 .6rem}
.field>span{display:block;font-weight:800;font-size:.9rem;margin-bottom:.2rem}
input[type=text],input[type=number],input[type=date],textarea{width:100%;border:.12rem solid #B9A57F;border-radius:.6rem;background:var(--card);padding:.45rem .6rem;min-height:2.4rem}
textarea{resize:vertical;min-height:4.5rem}
.big-text{font-size:1.5rem;font-weight:800;line-height:1.25}

/* focus */
.focus-text{font-size:clamp(1.4rem,2.6vw,2.2rem);font-weight:800;line-height:1.2;margin:.2rem 0;overflow-wrap:anywhere;white-space:pre-wrap}

/* agenda */
.agenda{list-style:none;margin:0 0 .6rem;padding:0;display:flex;flex-direction:column;gap:.35rem}
.agenda li{display:flex;align-items:center;gap:.6rem;padding:.35rem .5rem;border-radius:.7rem;background:var(--wash)}
.agenda li.done{opacity:.7}.agenda li.done .ag-text{text-decoration:line-through}
.agenda input[type=checkbox]{width:1.5rem;height:1.5rem;accent-color:var(--teal);flex:none}
.ag-label{display:flex;gap:.7rem;align-items:baseline;flex:1;font-size:1.15rem;font-weight:700;cursor:pointer}
.ag-time{color:var(--teal-d);font-weight:900;min-width:4.4ch;font-variant-numeric:tabular-nums}
.time-in{width:6rem!important;flex:none}.agenda .text-in{flex:1}

/* timer */
.timer-body{display:flex;flex-direction:column;align-items:center;gap:.5rem}
.ring-wrap{position:relative;width:min(100%,9.5rem);aspect-ratio:1}.ring-art{position:absolute;inset:0}
.ring{width:100%;height:100%}
.ring-bg{fill:none;stroke:var(--bg2);stroke-width:9}
.ring-fg{fill:none;stroke:var(--teal);stroke-width:9;stroke-linecap:round;transition:stroke-dashoffset .3s linear}
.alarm .ring-fg{stroke:var(--coral)}
.ring-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:2.2rem;font-weight:900;font-variant-numeric:tabular-nums}
.timer-status{margin:0;min-height:1.4rem;font-weight:900;color:var(--coral);font-size:1.15rem}
.alarm{animation:flash 1s steps(2) 6}
@keyframes flash{50%{background:var(--coral-l)}}
.btn-row{display:flex;gap:.6rem;flex-wrap:wrap;justify-content:center}
.chips{display:flex;gap:.35rem;flex-wrap:wrap;justify-content:center}
.chip{border:.1rem solid var(--teal-d);background:var(--card);color:var(--teal-d);border-radius:999px;padding:.2rem .7rem;font-weight:800;font-size:.9rem;min-height:2rem}
.chip.on{background:var(--teal-d);color:#fff}
.timer-opts{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:center;font-size:.9rem}
.timer-opts input[type=number]{width:4.5rem}.inline{font-weight:700}

/* countdown */
.cd-view{text-align:center}
.cd-num{margin:0;font-size:clamp(2.6rem,5vw,4.2rem);font-weight:900;color:var(--count);line-height:1}
.cd-label{margin:.2rem 0 0;font-size:1.15rem;font-weight:800;overflow-wrap:anywhere}

/* notes */
.message{font-size:1.4rem;font-weight:800;margin:.2rem 0 .7rem;overflow-wrap:anywhere;white-space:pre-wrap}
.notes{list-style:none;margin:0 0 .6rem;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(10rem,1fr));gap:.6rem}
.note{padding:.7rem .8rem;border-radius:.4rem .4rem .9rem .4rem;box-shadow:.1rem .2rem 0 #00000022;min-height:4rem;transform:rotate(-.6deg)}
.note:nth-child(even){transform:rotate(.7deg)}
.note p{margin:0;font-weight:700;overflow-wrap:anywhere;white-space:pre-wrap}
.note.yellow{background:var(--sun-l)}.note.mint{background:var(--mint-l)}.note.pink{background:var(--pink-l)}.note.blue{background:var(--blue-l)}
.note-in{background:var(--card)fffaa!important;min-height:3.2rem}
.note-tools{display:flex;justify-content:flex-end;gap:.2rem;margin-top:.2rem}

/* picker */
.picked{min-height:5.2rem;display:flex;align-items:center;justify-content:center;text-align:center;font-size:clamp(1.8rem,3vw,2.6rem);font-weight:900;color:var(--coral);background:var(--coral-l);border-radius:1rem;padding:.4rem .8rem;margin-bottom:.7rem;overflow-wrap:anywhere}
.picked.pop{animation:pop .6s cubic-bezier(.2,1.5,.4,1)}
@keyframes pop{from{transform:scale(.8)}to{transform:scale(1)}}
.roster-in{min-height:9rem}

/* jobs */
.job-tools{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.4rem}
.jobs .job-pick{flex:none}
.helper{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;background:var(--blue-l);border-radius:.8rem;padding:.5rem .8rem;margin-bottom:.6rem}
.helper-label{font-weight:800;font-size:.9rem;color:var(--deep)}
.helper-name{font-size:1.4rem;font-weight:900;flex:1;min-width:5rem;overflow-wrap:anywhere}
.jobs{list-style:none;margin:0 0 .6rem;padding:0;display:flex;flex-direction:column;gap:.3rem}
.jobs li{display:flex;gap:.6rem;align-items:center;justify-content:space-between;padding:.3rem .2rem;border-bottom:.1rem dashed var(--line);font-size:1.1rem}
.job-name{font-weight:800;flex:1;min-width:0;overflow-wrap:anywhere}.job-who{font-weight:900;color:var(--deep);text-align:right;overflow-wrap:anywhere}
.jobs input{flex:1;min-width:0}

/* quiet + links */
.wave{margin:-.2rem -.4rem .4rem;color:#1B8FB5}
.wave svg{width:100%;height:4rem;display:block;background:linear-gradient(#BFE6F5,#2B9BC3)}
.wave{border-radius:.8rem;overflow:hidden}
.quiet-text{margin:.2rem 0 .8rem;font-size:1.02rem}
.links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}
.links li{display:flex;flex-direction:column}
.links a{font-weight:900;font-size:1.15rem}
.links span{color:var(--muted);font-size:.9rem}
.links .soon span{font-style:italic;font-size:1rem}

/* footer */
.site-footer{max-width:110rem;margin:0 auto;padding:1rem 1.2rem 2rem;color:var(--muted);font-size:.9rem;border-top:.1rem solid var(--line)}
.site-footer p{margin:0}
.noscript{background:var(--card);border:.12rem solid var(--coral);padding:1rem;border-radius:.8rem}

/* present mode (projector) */
.exit-present{position:fixed;right:.8rem;bottom:.8rem;z-index:50;opacity:.55}
.exit-present:hover,.exit-present:focus{opacity:1}
.present .site-header,.present .site-footer,.present .panel,.present .card-actions,.present .hint.wide{display:none!important}
.present main{max-width:none;padding:.6rem 1.4rem .8rem}
.present .clock-hm{font-size:4.6rem}.present .clock-ampm{font-size:1.8rem}.present .clock-sec{font-size:1.3rem}.present .greeting{font-size:2.8rem}.present .date{font-size:1.6rem}.present .grid{gap:.8rem}
.present .hero{padding:.2rem .4rem .8rem}
.present .card .hint{display:none}
.present .card-agenda .hint,.present .card-picker #pickInfo{display:block}

@media (max-width:640px){.nav-links .soon{flex-basis:100%}.nav{padding:.5rem .8rem}.clock{width:100%;justify-content:center}.hero{padding-bottom:.6rem}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media (forced-colors:active){.btn.primary{border:.15rem solid ButtonText}}

/* ---------- v2: customizable board ---------- */
.grid{display:grid;grid-template-columns:1fr;gap:1rem;grid-auto-flow:dense;align-items:stretch}
.card.size-s,.card.size-m,.card.size-l{grid-column:span 1}
@media (min-width:640px){.grid{grid-template-columns:repeat(2,1fr)}.card.size-m,.card.size-l{grid-column:span 2}}
@media (min-width:1000px){.grid{grid-template-columns:repeat(3,1fr)}.card.size-l{grid-column:1/-1}}
@media (min-width:1500px){.grid{grid-template-columns:repeat(4,1fr)}}
.card-header{background:none;border:0;box-shadow:none;padding:0;overflow:visible}
.card-header .hero{padding:.4rem .4rem .6rem}
.greeting{margin:0;font-size:clamp(1.8rem,4.2vw,3.1rem);line-height:1.05;color:var(--teal-d);letter-spacing:-.01em;font-weight:900}
.card-header.layout-on{border:.15rem dashed var(--teal);border-radius:var(--radius);padding:.5rem}
.empty-board{grid-column:1/-1;text-align:center;padding:3rem 1rem;background:var(--card);border:.15rem dashed var(--line);border-radius:var(--radius);font-size:1.2rem}
.layout-on:not(.card-header){outline:.15rem dashed var(--teal);outline-offset:-.15rem}
.layout-bar{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem;margin:-.2rem -.3rem .6rem;padding:.3rem .4rem;background:var(--teal-l);border-radius:.7rem}
.card-header .layout-bar{margin:0 0 .4rem}
.drag-handle{width:2.6rem;height:2.6rem;border-radius:.6rem;border:.1rem solid var(--teal-d);background:var(--card);color:var(--teal-d);font-size:1.4rem;line-height:1;cursor:grab;touch-action:none;display:inline-flex;align-items:center;justify-content:center;padding:0}
.drag-handle:active{cursor:grabbing}
.layout-bar .mv{width:2.4rem;height:2.4rem;background:var(--card);border-color:var(--teal-d);color:var(--teal-d)}
.size-group{display:inline-flex;gap:0;border:.1rem solid var(--teal-d);border-radius:.6rem;overflow:hidden;margin-left:.2rem}
.size-btn{border:0;background:var(--card);color:var(--teal-d);font-weight:900;width:2.3rem;height:2.4rem;padding:0}
.size-btn+.size-btn{border-left:.1rem solid var(--teal-d)}
.size-btn.on{background:var(--teal-d);color:#fff}
.remove-btn{margin-left:auto;display:inline-flex;align-items:center;gap:.3rem;border:.12rem solid var(--coral);background:var(--card);color:var(--coral);font-weight:900;border-radius:999px;padding:.25rem .8rem;min-height:2.4rem}
.remove-btn:hover{background:var(--coral);color:#fff}
.drag-source{opacity:.3}
.drag-ghost{opacity:.92;box-shadow:0 1rem 2.4rem #0005;transform-origin:center}
body.dragging{user-select:none;-webkit-user-select:none;cursor:grabbing}
.editbar{background:var(--card);border:.12rem solid var(--teal);border-radius:var(--radius);padding:.8rem 1rem;margin:0 0 1rem;box-shadow:var(--shadow)}
.editbar-title{margin:0 0 .6rem}
.editbar-row{display:flex;flex-wrap:wrap;gap:.5rem .7rem;align-items:center}
.editbar-group{display:inline-flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.library{max-width:none;margin:0 0 1rem}
.lib-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.4rem}
.lib-head h2{margin:0}
.lib-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(19rem,1fr));gap:.6rem}
.lib-item{display:flex;align-items:center;gap:.7rem;border:.1rem solid var(--line);border-radius:.8rem;padding:.55rem .7rem;background:var(--wash)}
.lib-ic{font-size:1.8rem;width:2.4rem;text-align:center}
.lib-txt{flex:1;display:flex;flex-direction:column;min-width:0}.lib-txt span{color:var(--muted);font-size:.88rem}
.toast{position:fixed;left:50%;bottom:1rem;transform:translateX(-50%);z-index:80;display:flex;gap:.8rem;align-items:center;background:var(--ink);color:#fff;padding:.5rem .6rem .5rem 1.1rem;border-radius:999px;box-shadow:0 .5rem 1.4rem #0006;font-weight:700;max-width:92vw}
.toast .btn{background:var(--card)}
.present .editbar,.present .library,.present .toast{display:none!important}
.present .grid{gap:.8rem}
.present .card.size-l{grid-column:1/-1}
@media (min-width:1000px){.present .grid{grid-template-columns:repeat(4,1fr)}}

/* weather */
.weather .wx-main{display:flex;align-items:center;gap:.8rem}
.wx-icon{width:5rem;height:5rem;flex:none}.wx-icon svg{width:100%;height:100%;display:block}
.wx-temp{margin:0;font-size:2.8rem;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}
.wx-label{margin:.15rem 0 0;font-weight:800;font-size:1.1rem}
.wx-high{margin:.5rem 0 .2rem;font-weight:800;font-size:1.15rem;color:var(--coral)}
.wx-meta{margin:0;color:var(--muted);font-size:.82rem;display:flex;align-items:center;flex-wrap:wrap;gap:.2rem}
.wx-fail{margin:.2rem 0;font-weight:900;font-size:1.3rem}

/* countdown blocks (dashboard widget + page) */
.cd-blocks{display:grid;grid-template-columns:repeat(auto-fit,minmax(11rem,1fr));gap:.8rem}
.cd-block{text-align:center;background:var(--wash);border-radius:1rem;padding:.7rem .6rem;border:.1rem solid var(--line)}
.cd-title{margin:0;font-size:1.05rem;font-weight:900}
.cd-date{margin:.1rem 0 0;color:var(--muted);font-size:.9rem;font-weight:700}
.cd-big{margin:.1rem 0 0;font-size:clamp(3.2rem,6vw,5.2rem);font-weight:900;line-height:1;color:var(--count);font-variant-numeric:tabular-nums}
.cd-block.cd-break .cd-big{color:var(--teal-d)}
.cd-big.cd-word{font-size:clamp(1.8rem,3.4vw,2.8rem);padding:.5rem 0}
.cd-unit{margin:0;font-weight:900;font-size:1.1rem}
.cd-small{margin:.2rem 0 0;font-size:.95rem;color:var(--muted);font-weight:700}
.cd-note{margin:.4rem 0 0;font-size:.88rem;color:var(--ink)}
.cd-foot{margin:.6rem 0 0;font-weight:800;text-align:right}
.cd-view{text-align:center}
.cd-num{margin:0;font-size:clamp(2.6rem,5vw,4.2rem);font-weight:900;color:var(--count);line-height:1}
.cd-label{margin:.2rem 0 0;font-size:1.15rem;font-weight:800;overflow-wrap:anywhere}
@media (prefers-reduced-motion:reduce){.drag-ghost{transition:none}}

/* ---------- Countdown page ---------- */
.cdp{max-width:64rem;margin:0 auto;padding:1rem 1.2rem 2.5rem;display:grid;gap:1rem}
.cdp-hero h1{margin:.2rem 0 0;font-size:clamp(2.2rem,5vw,3.4rem);color:var(--teal-d);line-height:1.05}
.cdp-sub{margin:.2rem 0 0;font-weight:800;font-size:1.15rem}
.cdp-today{margin:.2rem 0 0;color:var(--muted);font-weight:700}
.cdp-blocks{gap:1rem;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr))}
.cdp-blocks .cd-block{background:var(--card);border:.15rem solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);padding:1.1rem .8rem}
.cdp-blocks .cd-title{font-size:1.35rem}
.cdp-blocks .cd-date{font-size:1.05rem}
.cdp-blocks .cd-big{font-size:clamp(4.5rem,13vw,8.5rem)}
.cdp-blocks .cd-big.cd-word{font-size:clamp(2.6rem,7vw,4.4rem)}
.cdp-blocks .cd-unit{font-size:1.4rem}
.cdp-blocks .cd-small{font-size:1.15rem}
.cdp-blocks .cd-note{font-size:1rem}
.cdp-card{background:var(--card);border:.1rem solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1rem 1.2rem}
.cdp-card h2{margin:0 0 .5rem;font-size:1.35rem}
.cdp-card h3{font-size:1.05rem}
.cdp-line{margin:.2rem 0 .6rem;font-weight:800;font-size:1.1rem}
.cdp-progress{width:100%;height:1.1rem;accent-color:var(--count)}
.cdp-target{border:.1rem solid var(--line);border-radius:.8rem;padding:.5rem .8rem;margin:0 0 .8rem;display:grid;gap:.3rem}
.cdp-target legend{font-weight:800;padding:0 .3rem}
.cdp-list{list-style:none;margin:0;padding:0;display:grid;gap:.6rem}
.cdp-item{display:flex;justify-content:space-between;align-items:center;gap:.8rem;flex-wrap:wrap;border:.1rem solid var(--line);border-radius:.8rem;padding:.6rem .8rem;background:var(--wash)}
.cdp-item.is-over{background:var(--past);border-style:dashed}
.cdp-item.is-over .cdp-item-name{text-decoration:line-through;text-decoration-thickness:.1rem}
.cdp-item.is-on{background:var(--teal-l);border-color:var(--teal)}
.cdp-item-main{flex:1 1 18rem;min-width:0}
.cdp-item-name{margin:0;font-size:1.1rem}
.cdp-item-dates,.cdp-item-note{margin:.15rem 0 0;color:var(--muted);font-size:.92rem;font-weight:600}
.cdp-item-num{display:flex;align-items:baseline;gap:.4rem;flex-wrap:wrap;justify-content:flex-end;text-align:right}
.cdp-n{font-size:2.4rem;font-weight:900;color:var(--teal-d);line-height:1;font-variant-numeric:tabular-nums}.cdp-n.sm{font-size:1.7rem}
.cdp-u{font-weight:800}.cdp-s{width:100%;color:var(--muted);font-weight:700;font-size:.9rem}
.cdp-done{font-weight:900;color:var(--ink)}.cdp-now{font-weight:900;color:var(--teal-d)}
.cdp-mine{gap:.5rem}
.cdp-mine input[type=text]{flex:1 1 10rem}
.cdp-count{font-weight:900;min-width:5rem;text-align:right}
.cdp-form{display:flex;flex-wrap:wrap;gap:.6rem 1rem;align-items:flex-end;margin-top:.8rem}
.cdp-form .field{flex:1 1 12rem}
.cdp-row{display:flex;justify-content:space-between;align-items:center;gap:.6rem;flex-wrap:wrap}
.cdp-row h2{margin:0}
#editDates{display:grid;gap:.5rem;margin-top:.6rem}
.edit-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;border:.1rem solid var(--line);border-radius:.7rem;padding:.5rem .7rem}
.edit-name{flex:1 1 12rem}
.edit-field{display:flex;align-items:center;gap:.4rem;font-weight:700;font-size:.9rem}
.cdp-source ul{margin:.3rem 0 .6rem;padding-left:1.2rem;display:grid;gap:.3rem}
.cdp-source a{overflow-wrap:anywhere}
.cdp-source h3{margin:.8rem 0 .2rem}
@media (max-width:640px){.cdp{padding:.8rem}.cdp-item-num{justify-content:flex-start;text-align:left}.cdp-mine{align-items:stretch}.cdp-count{text-align:left}}

/* ---------- Themes (Settings page): each theme is just a set of CSS variables, plus a small decorative strip and corner motif ---------- */
.site-header::after{content:"";display:block;height:var(--tile-h,0);background:var(--tile,none) repeat-x center/auto 100%}
body::before{content:"";position:fixed;right:0;bottom:0;width:var(--corner-w,0);height:var(--corner-w,0);background:var(--corner,none) no-repeat right bottom/contain;opacity:.55;pointer-events:none;z-index:-1}
:root[data-theme=fall],.tp-fall{
  --bg:#FFF3E3; --bg2:#FBDFBC; --ink:#2E1F14; --muted:#5E4B3C; --card:#FFFDF8; --line:#E8CBA5;
  --teal:#9A4A12; --teal-d:#6F3209; --teal-l:#FBE3CC; --coral:#A32A1C; --coral-l:#FFDCD2; --sun:#FFC24B; --sun-l:#FFEBB8;
  --g1:#FFD39A; --g2:#F4C2A1; --hdr:#FFF8EEEE; --count:#8B1E3F; --count-b:#B2432A; --wx:#C8861A; --deep:#6F3209; --past:#F3E6D2;
  --shadow:0 .15rem 0 #E3C08F, 0 .6rem 1.4rem #7A3E1022; --tile:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='16' viewBox='0 0 72 16'><path d='M10 14C4 10 5 3 10 1c5 2 6 9 0 13z' fill='%23C8561A'/><path d='M10 14V4' stroke='%23fff' stroke-opacity='.6' stroke-width='.8'/><path d='M34 14C28 10 29 3 34 1c5 2 6 9 0 13z' fill='%23D9962B'/><path d='M34 14V4' stroke='%23fff' stroke-opacity='.6' stroke-width='.8'/><path d='M58 14C52 10 53 3 58 1c5 2 6 9 0 13z' fill='%23A32A1C'/><path d='M58 14V4' stroke='%23fff' stroke-opacity='.6' stroke-width='.8'/></svg>"); --tile-h:1rem; --motif:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'><path d='M80 54c0-8 1.5-16 6-20c5-4 12-2 9 5c-2 4-5 6-6 8' fill='none' stroke='%232C7A43' stroke-width='5.5' stroke-linecap='round'/><path d='M74 54c2-8 6-12 10-12c3 0 5 2 5 5v10' fill='%233A8F4A' stroke='%232C7A43' stroke-width='1.6' stroke-linejoin='round'/><ellipse cx='80' cy='98' rx='56' ry='48' fill='%23E07A28' stroke='%23A34412' stroke-width='3'/><g fill='none' stroke='%23C45A16' stroke-width='2.6' stroke-linecap='round'><path d='M80 52c-17 14-24 40-24 46 0 16 11 36 24 48'/><path d='M80 52c17 14 24 40 24 46 0 16-11 36-24 48'/><path d='M80 54c-30 16-40 38-40 48 0 18 17 38 40 46'/><path d='M80 54c30 16 40 38 40 48 0 18-17 38-40 46'/></g><ellipse cx='60' cy='84' rx='12' ry='16' fill='%23FFB060' opacity='.4'/></svg>"); --corner:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'><g transform='translate(28 22) scale(.85)'><path d='M80 54c0-8 1.5-16 6-20c5-4 12-2 9 5c-2 4-5 6-6 8' fill='none' stroke='%232C7A43' stroke-width='5.5' stroke-linecap='round'/><path d='M74 54c2-8 6-12 10-12c3 0 5 2 5 5v10' fill='%233A8F4A' stroke='%232C7A43' stroke-width='1.6' stroke-linejoin='round'/><ellipse cx='80' cy='98' rx='56' ry='48' fill='%23E07A28' stroke='%23A34412' stroke-width='3'/><g fill='none' stroke='%23C45A16' stroke-width='2.6' stroke-linecap='round'><path d='M80 52c-17 14-24 40-24 46 0 16 11 36 24 48'/><path d='M80 52c17 14 24 40 24 46 0 16-11 36-24 48'/><path d='M80 54c-30 16-40 38-40 48 0 18 17 38 40 46'/><path d='M80 54c30 16 40 38 40 48 0 18-17 38-40 46'/></g><ellipse cx='60' cy='84' rx='12' ry='16' fill='%23FFB060' opacity='.4'/></g></svg>"); --corner-w:min(14rem,30vw);
}
  :root[data-theme=winter],.tp-winter{
  --bg:#15233A; --wash:#E8EEF6; --bg2:#1C2C48; --ink:#14233A; --muted:#4A5C73; --card:#FFFFFF; --line:#C5D6E8;
  --teal:#2E6EB0; --teal-d:#1A4E86; --teal-l:#DCEBFA; --coral:#C4335A; --coral-l:#FBE0E8; --sun:#CDE6FF; --sun-l:#E3EFFB;
  --g1:#2C4A72; --g2:#1A1F3A; --hdr:#15233AF5; --count:#3A4AB0; --count-b:#5B6BD0; --wx:#3B8FD0; --deep:#143F6B; --past:#E6EEF6;
  --shadow:0 .15rem 0 #C5D6E8, 0 .7rem 1.8rem #06101855; --tile:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='16' viewBox='0 0 72 16'><g fill='none' stroke='%23C9DFF5' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'><path d='M10.00 1.80L10.00 14.20M15.37 4.90L4.63 11.10M15.37 11.10L4.63 4.90M10.00 4.59L11.50 3.72M10.00 4.59L8.50 3.72M10.00 2.92L10.97 2.36M10.00 2.92L9.03 2.36M12.95 6.29L14.46 7.16M12.95 6.29L12.95 4.56M14.40 5.46L15.37 6.02M14.40 5.46L14.40 4.34M12.95 9.71L12.95 11.44M12.95 9.71L14.46 8.84M14.40 10.54L14.40 11.66M14.40 10.54L15.37 9.98M10.00 11.41L8.50 12.28M10.00 11.41L11.50 12.28M10.00 13.08L9.03 13.64M10.00 13.08L10.97 13.64M7.05 9.71L5.54 8.84M7.05 9.71L7.05 11.44M5.60 10.54L4.63 9.98M5.60 10.54L5.60 11.66M7.05 6.29L7.05 4.56M7.05 6.29L5.54 7.16M5.60 5.46L5.60 4.34M5.60 5.46L4.63 6.02'/><path d='M34.00 1.80L34.00 14.20M39.37 4.90L28.63 11.10M39.37 11.10L28.63 4.90M34.00 4.59L35.50 3.72M34.00 4.59L32.50 3.72M34.00 2.92L34.97 2.36M34.00 2.92L33.03 2.36M36.95 6.29L38.46 7.16M36.95 6.29L36.95 4.56M38.40 5.46L39.37 6.02M38.40 5.46L38.40 4.34M36.95 9.71L36.95 11.44M36.95 9.71L38.46 8.84M38.40 10.54L38.40 11.66M38.40 10.54L39.37 9.98M34.00 11.41L32.50 12.28M34.00 11.41L35.50 12.28M34.00 13.08L33.03 13.64M34.00 13.08L34.97 13.64M31.05 9.71L29.54 8.84M31.05 9.71L31.05 11.44M29.60 10.54L28.63 9.98M29.60 10.54L29.60 11.66M31.05 6.29L31.05 4.56M31.05 6.29L29.54 7.16M29.60 5.46L29.60 4.34M29.60 5.46L28.63 6.02'/><path d='M58.00 1.80L58.00 14.20M63.37 4.90L52.63 11.10M63.37 11.10L52.63 4.90M58.00 4.59L59.50 3.72M58.00 4.59L56.50 3.72M58.00 2.92L58.97 2.36M58.00 2.92L57.03 2.36M60.95 6.29L62.46 7.16M60.95 6.29L60.95 4.56M62.40 5.46L63.37 6.02M62.40 5.46L62.40 4.34M60.95 9.71L60.95 11.44M60.95 9.71L62.46 8.84M62.40 10.54L62.40 11.66M62.40 10.54L63.37 9.98M58.00 11.41L56.50 12.28M58.00 11.41L59.50 12.28M58.00 13.08L57.03 13.64M58.00 13.08L58.97 13.64M55.05 9.71L53.54 8.84M55.05 9.71L55.05 11.44M53.60 10.54L52.63 9.98M53.60 10.54L53.60 11.66M55.05 6.29L55.05 4.56M55.05 6.29L53.54 7.16M53.60 5.46L53.60 4.34M53.60 5.46L52.63 6.02'/></g></svg>"); --tile-h:1rem; --motif:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'><g fill='none' stroke='%23B8D6F2' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'><path d='M80.00 18.00L80.00 142.00M133.69 49.00L26.31 111.00M133.69 111.00L26.31 49.00M80.00 49.00L93.96 40.94M80.00 49.00L66.04 40.94M80.00 31.64L89.66 26.06M80.00 31.64L70.34 26.06M106.85 64.50L120.81 72.56M106.85 64.50L106.85 48.38M121.88 55.82L131.55 61.40M121.88 55.82L121.88 44.66M106.85 95.50L106.85 111.62M106.85 95.50L120.81 87.44M121.88 104.18L121.88 115.34M121.88 104.18L131.55 98.60M80.00 111.00L66.04 119.06M80.00 111.00L93.96 119.06M80.00 128.36L70.34 133.94M80.00 128.36L89.66 133.94M53.15 95.50L39.19 87.44M53.15 95.50L53.15 111.62M38.12 104.18L28.45 98.60M38.12 104.18L38.12 115.34M53.15 64.50L53.15 48.38M53.15 64.50L39.19 72.56M38.12 55.82L38.12 44.66M38.12 55.82L28.45 61.40'/></g></svg>"); --corner:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'><g fill='none' stroke='%23B8D6F2' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'><path d='M110.00 62.00L110.00 158.00M151.57 86.00L68.43 134.00M151.57 134.00L68.43 86.00M110.00 86.00L120.81 79.76M110.00 86.00L99.19 79.76M110.00 72.56L117.48 68.24M110.00 72.56L102.52 68.24M130.78 98.00L141.59 104.24M130.78 98.00L130.78 85.52M142.42 91.28L149.91 95.60M142.42 91.28L142.42 82.64M130.78 122.00L130.78 134.48M130.78 122.00L141.59 115.76M142.42 128.72L142.42 137.36M142.42 128.72L149.91 124.40M110.00 134.00L99.19 140.24M110.00 134.00L120.81 140.24M110.00 147.44L102.52 151.76M110.00 147.44L117.48 151.76M89.22 122.00L78.41 115.76M89.22 122.00L89.22 134.48M77.58 128.72L70.09 124.40M77.58 128.72L77.58 137.36M89.22 98.00L89.22 85.52M89.22 98.00L78.41 104.24M77.58 91.28L77.58 82.64M77.58 91.28L70.09 95.60'/></g></svg>"); --corner-w:min(15rem,32vw);
}
:root[data-theme=spring],.tp-spring{
  --bg:#F4FAEA; --bg2:#E0F0CC; --ink:#1F2E22; --muted:#4B5F4F; --card:#FFFFFF; --line:#CFE3B5;
  --teal:#2C7A43; --teal-d:#1D5530; --teal-l:#DDF2D9; --coral:#B8336A; --coral-l:#FFE0EC; --sun:#FFE066; --sun-l:#FFF6BF;
  --g1:#FFDDEA; --g2:#D4EEB8; --hdr:#FAFFF2EE; --count:#8A3FB5; --count-b:#B07CD6; --wx:#3FA36A; --deep:#1D5530; --past:#EAF2DF;
  --shadow:0 .15rem 0 #BCD79B, 0 .6rem 1.4rem #2F5A1F22; --tile:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='16' viewBox='0 0 72 16'><g fill='%23E86AA0'><circle cx='10' cy='4.8' r='2.7'/><circle cx='10' cy='11.2' r='2.7'/><circle cx='6.8' cy='8' r='2.7'/><circle cx='13.2' cy='8' r='2.7'/></g><circle cx='10' cy='8' r='1.8' fill='%23F2B705'/><g fill='%23B58AE0'><circle cx='34' cy='4.8' r='2.7'/><circle cx='34' cy='11.2' r='2.7'/><circle cx='30.8' cy='8' r='2.7'/><circle cx='37.2' cy='8' r='2.7'/></g><circle cx='34' cy='8' r='1.8' fill='%23F2B705'/><g fill='%23F08CB8'><circle cx='58' cy='4.8' r='2.7'/><circle cx='58' cy='11.2' r='2.7'/><circle cx='54.8' cy='8' r='2.7'/><circle cx='61.2' cy='8' r='2.7'/></g><circle cx='58' cy='8' r='1.8' fill='%23F2B705'/></svg>"); --tile-h:1rem; --corner:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'><g fill='%23F08CB8'><circle cx='110' cy='88' r='17'/><circle cx='110' cy='132' r='17'/><circle cx='88' cy='110' r='17'/><circle cx='132' cy='110' r='17'/></g><circle cx='110' cy='110' r='11' fill='%23F2B705'/><g fill='%23B58AE0'><circle cx='46' cy='128' r='10'/><circle cx='46' cy='152' r='10'/><circle cx='34' cy='140' r='10'/><circle cx='58' cy='140' r='10'/></g><circle cx='46' cy='140' r='6' fill='%23F2B705'/></svg>"); --corner-w:min(14rem,30vw);
}
:root[data-theme=summer],.tp-summer{
  --bg:#FFFBEA; --bg2:#FFEFA8; --ink:#16303A; --muted:#456068; --card:#FFFFFF; --line:#F3DE93;
  --teal:#00708F; --teal-d:#004F66; --teal-l:#D3F1FA; --coral:#C4430F; --coral-l:#FFE3D2; --sun:#FFD84A; --sun-l:#FFF2B0;
  --g1:#FFE48A; --g2:#BDEBF7; --hdr:#FFFDF0EE; --count:#1B5FBF; --count-b:#3C86E8; --wx:#00A3C4; --deep:#004F66; --past:#F6F0D4;
  --shadow:0 .15rem 0 #E9CF72, 0 .6rem 1.4rem #5A4A0A22; --tile:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='16' viewBox='0 0 72 16'><g stroke='%23F29A00' stroke-width='1.3' stroke-linecap='round'><path d='M10 1v2.4M10 12.6V15M3 8h2.4M14.6 8H17M5 3l1.7 1.7M13.3 11.3L15 13M5 13l1.7-1.7M13.3 4.7L15 3'/></g><circle cx='10' cy='8' r='3.2' fill='%23FFC21A' stroke='%23F29A00' stroke-width='1'/><path d='M26 9q4-5 8 0t8 0' fill='none' stroke='%232B9BC3' stroke-width='1.8' stroke-linecap='round'/><g stroke='%23F29A00' stroke-width='1.3' stroke-linecap='round'><path d='M58 1v2.4M58 12.6V15M51 8h2.4M62.6 8H65M53 3l1.7 1.7M61.3 11.3L63 13M53 13l1.7-1.7M61.3 4.7L63 3'/></g><circle cx='58' cy='8' r='3.2' fill='%23FFC21A' stroke='%23F29A00' stroke-width='1'/></svg>"); --tile-h:1rem; --corner:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'><g stroke='%23F29A00' stroke-width='6' stroke-linecap='round'><path d='M130 40v18M130 142v18M40 130h18M142 130h18M66 66l12 12M182 182M66 194M194 66M96 80l8 8M164 164l-8-8'/></g><circle cx='130' cy='130' r='34' fill='%23FFC21A' stroke='%23F29A00' stroke-width='5'/><path d='M0 150q14-12 28 0t28 0t28 0' fill='none' stroke='%232B9BC3' stroke-width='5' stroke-linecap='round'/></svg>"); --corner-w:min(15rem,32vw);
}
.present::before,body.present::before{opacity:.4}

/* ---------- Settings page ---------- */
.theme-grid{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:.9rem}
.theme-opt{position:relative;display:block;cursor:pointer;border:.18rem solid var(--line);border-radius:var(--radius);background:var(--bg);color:var(--ink);padding:.8rem .9rem;box-shadow:var(--shadow)}
.theme-opt:hover{border-color:var(--teal)}
.theme-opt > input[type=radio]{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.theme-opt:has(> input[type=radio]:checked){border-color:var(--teal-d);outline:.2rem solid var(--teal-d);outline-offset:.1rem}
.theme-opt:has(> input[type=radio]:focus-visible){outline:.22rem solid #1B4FD8;outline-offset:.14rem}
.theme-name{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-weight:900;font-size:1.2rem}
.theme-check{display:none;background:var(--teal);color:#fff;border-radius:999px;padding:.05rem .6rem;font-size:.85rem}
.theme-opt:has(> input[type=radio]:checked) .theme-check{display:inline-block}
.theme-blurb{margin:.2rem 0 .5rem;color:var(--muted);font-size:.92rem}
.theme-swatch{display:flex;gap:.35rem;align-items:center}
.theme-swatch i{width:1.7rem;height:1.7rem;border-radius:50%;border:.1rem solid #0003;display:inline-block}
.theme-swatch .s1{background:var(--teal)}.theme-swatch .s2{background:var(--coral)}.theme-swatch .s3{background:var(--sun)}.theme-swatch .s4{background:var(--card)}
.theme-strip{height:1rem;margin-top:.55rem;border-radius:.3rem;background:var(--tile,none) repeat-x center/auto 100%,var(--card)}
.settings-soon{list-style:none;margin:.3rem 0 0;padding:0;color:var(--muted)}

/* ---------- countdown widget chooser ---------- */
.cd-pick{border:.1rem solid var(--line);border-radius:.7rem;margin:.4rem 0;padding:.3rem .7rem .5rem;display:grid;gap:.1rem}
.cd-pick legend{font-weight:900;padding:0 .3rem;font-size:.95rem}
.cd-add{display:grid;gap:.2rem;border-top:.1rem dashed var(--line);margin-top:.6rem;padding-top:.6rem}
.card-countdown .cd-blocks{grid-template-columns:repeat(auto-fit,minmax(min(9.2rem,calc(50cqw - 1.5rem)),1fr))}
.tp-default{--bg:#FFF6E6;--bg2:#FFEBCB;--ink:#26243A;--muted:#575570;--card:#FFFFFF;--line:#EBD9BC;--teal:#0E6F78;--teal-d:#0A545B;--teal-l:#D9F1F0;--coral:#B83A25;--sun:#FFC94A;--shadow:0 .15rem 0 #E5CFA9,0 .6rem 1.4rem #6B4E1A22;--tile:none}
.card-header .hero{position:relative}
.card-header .hero::after{content:"";position:absolute;left:52%;top:50%;width:6.5rem;height:6.5rem;transform:translateY(-50%);background:var(--motif,var(--corner,none)) center/contain no-repeat;opacity:.95;pointer-events:none}
@media (max-width:1150px){.card-header .hero::after{display:none}}

/* ---------- resizable cards: width in columns (w-1..4), height in row units (h-1..8) ---------- */
.grid{--row:5.5rem;grid-auto-rows:minmax(var(--row),auto)}
.card:not(.card-header){container-type:inline-size;position:relative}
.card.w-1{grid-column:span 1}
@media (min-width:640px){.card.w-2,.card.w-3,.card.w-4{grid-column:span 2}}
@media (min-width:1000px){.card.w-3{grid-column:span 3}.card.w-4{grid-column:1/-1}}
@media (min-width:1500px){.card.w-4{grid-column:span 4}}
@media (min-width:1000px){.present .card.w-4{grid-column:1/-1}.present .card.w-3{grid-column:span 3}.present .card.w-2{grid-column:span 2}.present .card.w-1{grid-column:span 1}}
.card.h-1{grid-row:span 1}.card.h-2{grid-row:span 2}.card.h-3{grid-row:span 3}.card.h-4{grid-row:span 4}.card.h-5{grid-row:span 5}.card.h-6{grid-row:span 6}.card.h-7{grid-row:span 7}.card.h-8{grid-row:span 8}
.resize-handle{position:absolute;right:.35rem;bottom:.35rem;width:2.6rem;height:2.6rem;border-radius:.6rem;border:.1rem solid var(--teal-d);background:var(--card);color:var(--teal-d);font-size:1.5rem;line-height:1;cursor:nwse-resize;touch-action:none;display:inline-flex;align-items:center;justify-content:center;padding:0;z-index:3}
.resize-badge{position:absolute;right:3.2rem;bottom:.5rem;background:var(--teal-d);color:#fff;font-weight:900;border-radius:.5rem;padding:.2rem .6rem;z-index:3;pointer-events:none}
.card.is-resizing{outline:.2rem solid var(--teal);outline-offset:-.2rem}
body.resizing{user-select:none;cursor:nwse-resize}
.layout-on:not(.card-header){padding-bottom:3.4rem}

/* content follows the card's width, so small cards stay readable and nothing is clipped */
.ring-wrap{width:min(100%,clamp(4.5rem,36cqw,8.2rem))}
.ring-text{font-size:clamp(1.2rem,7cqw,2.4rem)}
.focus-text{font-size:clamp(1.15rem,5.5cqw,2.2rem)}
.wx-temp{font-size:clamp(2rem,15cqw,3.4rem)}
.picked{font-size:clamp(1.4rem,9cqw,2.6rem)}
@container (max-width:15rem){
  .card{padding-inline:.7rem}
  .timer-body{gap:.35rem}
  .chip{padding:.15rem .5rem;font-size:.85rem}
  .timer-opts{gap:.3rem}
  .cd-blocks{grid-template-columns:1fr!important}
  .card h2{font-size:1.05rem}
  .jobs li{flex-wrap:wrap}
  .agenda .time-in{width:4.6rem!important}
}
.card-countdown .cd-block{container-type:inline-size}
.card-countdown .cd-big{font-size:clamp(2.4rem,34cqw,5rem)}
.card-countdown .cd-big.cd-word{font-size:clamp(1.5rem,18cqw,2.6rem)}

/* seasonal effects (canvas is inserted by js/season.js) */
#seasonFx,#snowFx{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:25}
body.present #seasonFx,body.present #snowFx{z-index:40}
.fx-toggle,.snow-toggle{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .4rem;position:relative;z-index:2;margin:.6rem 0 0;padding:.45rem .55rem;background:var(--card);border:.1rem solid var(--line);border-radius:.55rem;font-weight:700;font-size:.95rem;color:var(--ink)}
.fx-toggle input[type=checkbox],.snow-toggle input[type=checkbox]{position:static;opacity:1;inset:auto;width:1.2rem;height:1.2rem;margin:0;flex:none;accent-color:var(--teal-d);cursor:pointer}
.fx-toggle .hint,.snow-toggle .hint{flex:1 1 100%;display:block;font-weight:600;font-size:.82rem;color:var(--muted);margin:.1rem 0 0}

/* Winter night: page chrome is light-on-dark; widgets stay dark-on-light */
.card,.cdp-card,.panel,.empty-board,.theme-opt .snow-toggle,.theme-opt .fx-toggle{color:var(--ink)}
:root[data-theme=winter] .greeting,
:root[data-theme=winter] .cdp-hero h1{color:#E8F2FF}
:root[data-theme=winter] .date{color:#E8F2FF}
:root[data-theme=winter] .date .weekday{color:#FF9BB0}
:root[data-theme=winter] .cdp-sub{color:#C5D4E8}
:root[data-theme=winter] .brand,
:root[data-theme=winter] .nav-links a{color:#E8F2FF}
:root[data-theme=winter] .nav-links .soon,
:root[data-theme=winter] .site-footer{color:#B4C3D8}
:root[data-theme=winter] .site-footer a{color:#9EC9F0}
:root[data-theme=winter] .site-header{border-bottom-color:#3D5678}
:root[data-theme=winter] .site-footer{border-top-color:#3D5678}
.tp-winter.theme-opt{color:#E8F2FF}
.tp-winter .theme-blurb{color:#C5D4E8}
.tp-winter .snow-toggle,.tp-winter .fx-toggle{color:#14233A}
.tp-winter .snow-toggle .hint,.tp-winter .fx-toggle .hint{color:#4A5C73}
