/* =====================================================================
   MY SPACE · PLANNER — drawn by js/planner.js (the Today design, 2026-10-03)
   Day: the date in big type, one true sentence, a strip of two weeks, the
   day's list as roomy rows, Coming up as countdowns beside it.
   Month: the whole month at once, things as small chips, the chosen day
   beside it. Kinds by tone inside the brand: test navy · assignment blue ·
   homework sky · study dashed blue · to-do ink. Hairlines hold the surfaces;
   shadows only on what floats (the editor, a dragged chip).
   ===================================================================== */

.main-myspace, .pl-dlg{--k-test:var(--navy); --k-assignment:var(--blue); --k-homework:#7FB6D8; --k-study:var(--blue); --k-todo:rgba(16,34,64,.34)}
.k-test{--k:var(--k-test)} .k-assignment{--k:var(--k-assignment)} .k-homework{--k:var(--k-homework)} .k-study{--k:var(--k-study)} .k-todo{--k:var(--k-todo)}
.pi{width:16px; height:16px; flex:none}
/* the Planner keeps the shell's own width, so the tab row lines up with the top bar */

/* ---------- My Space top: one title, then the page tabs as an underline row
   (they change the page; the planner's Day | Month switch is a small segmented
   control, so the two never look alike) */
.ms-top{display:block; margin-bottom:0}
.ms-top .h1{margin:0; font-size:clamp(1.5rem, 1.3rem + .6vw, 1.85rem); font-weight:600; letter-spacing:-.02em}
.main-myspace .ms-bar{position:static; margin:10px 0 0; padding:0; background:none}
.main-myspace .tabs{display:flex; gap:28px; padding:0; border-radius:0; background:none; border-bottom:1px solid var(--hair); overflow:visible}
.main-myspace .tab{position:relative; min-height:44px; padding:0; border-radius:0; font-size:.94rem; font-weight:500; color:var(--ink-3); background:none}
.main-myspace .tab:hover{color:var(--navy); background:none}
.main-myspace .tab[aria-selected="true"]{background:none; color:var(--navy); font-weight:600}
.main-myspace .tab[aria-selected="true"]::after{content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; border-radius:2px; background:var(--navy)}
.main-myspace .tab-n{background:var(--sky-10); color:var(--ink-2)}
.main-myspace .tab[aria-selected="true"] .tab-n{background:var(--navy); color:#fff}
.main-myspace .ms-panel{padding-top:clamp(26px, 3.4vw, 44px)}

/* ---------- small shared pieces */
.pl{min-width:0}
.pl-link{color:var(--blue); font-weight:600; font-size:.88rem; text-underline-offset:3px}
.pl-link:hover{text-decoration:underline}
.pl-ib{display:inline-grid; place-items:center; width:40px; height:40px; border-radius:50%; color:var(--ink-2); transition:background-color .2s, color .2s}
.pl-ib:hover{background:var(--sky-10); color:var(--navy)}
.pl-ib.sm{width:32px; height:32px} .pl-ib.sm .pi{width:15px; height:15px}
.pl-eyebrow{font-size:.84rem; font-weight:600; color:var(--blue)}
.pl-sec-h{font-size:.84rem; font-weight:600; color:var(--ink-3)}
.pl-sec-row{display:flex; align-items:center; justify-content:space-between; gap:12px}
.pl-none{padding:18px 0 6px; font-size:.95rem; color:var(--ink-3)}

/* ---------- the date and its sentence */
.pl-hero{display:flex; align-items:flex-end; justify-content:space-between; gap:18px 24px; flex-wrap:wrap}
.pl-date{margin-top:6px; font-size:clamp(2.4rem, 1.6rem + 2.6vw, 4rem); line-height:1.02; font-weight:560; letter-spacing:-.03em; color:var(--navy);
  font-variation-settings:"GRAD" 0,"ROND" 0,"wdth" 100,"opsz" 144}
.pl-truth{overflow-wrap:anywhere; margin-top:12px; font-size:1.12rem; line-height:1.45; color:var(--ink-2)}
.pl-sep{margin:0 .5em; color:var(--ink-4)}
.pl-tools{display:flex; align-items:center; gap:10px; padding-bottom:6px}
.pl-today{min-height:40px; padding:0 16px; border-radius:999px; border:1px solid var(--hair-2); font-size:.86rem; font-weight:600; color:var(--navy); transition:background-color .2s, border-color .2s}
.pl-today:hover{background:var(--sky-10); border-color:var(--hair-3)}
.pl-today[disabled]{opacity:.4; pointer-events:none}
.pl-seg{display:flex; gap:2px; padding:4px; border-radius:999px; background:var(--sky-10)}
.pl-seg-b{display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0 15px; border-radius:999px; font-size:.86rem; font-weight:500; color:var(--ink-2); transition:background-color .2s, color .2s}
.pl-seg-b:hover{color:var(--navy)}
.pl-seg-b.on{background:#fff; color:var(--navy); font-weight:600; box-shadow:0 1px 2px rgba(16,34,64,.1)}

/* ---------- the strip of days */
.pl-strip-w{position:sticky; top:var(--toph, 67px); z-index:9; margin-top:26px; background:rgba(255,255,255,.94);
  backdrop-filter:saturate(1.4) blur(12px); -webkit-backdrop-filter:saturate(1.4) blur(12px); border-bottom:1px solid var(--hair)}
.pl-strip-h{display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:6px}
.pl-strip-h b{font-size:.84rem; font-weight:600; color:var(--ink-2)}
.pl-strip-n{display:flex; gap:2px}
.pl-strip{display:flex; gap:4px; padding:4px 0 12px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none}
.pl-strip::-webkit-scrollbar{display:none}
.pl-dt{flex:1 0 56px; max-width:86px; display:grid; justify-items:center; gap:5px; padding:6px 0 4px; border-radius:16px}
.pl-dt.pl-dt-mon{margin-left:12px; position:relative}
.pl-dt.pl-dt-mon::before{content:""; position:absolute; left:-8px; top:12px; bottom:12px; width:1px; background:var(--hair)}
.pl-dt-w{font-size:.74rem; font-weight:500; color:var(--ink-3); line-height:1.2}
.pl-dt-n{width:44px; height:44px; border-radius:50%; display:grid; place-items:center; font-size:1.1rem; font-weight:500; color:var(--navy);
  font-variant-numeric:tabular-nums; transition:background-color .2s, color .2s, transform .2s var(--ease)}
.pl-dt:hover .pl-dt-n{background:var(--sky-16)}
.pl-dt:active .pl-dt-n{transform:scale(.94)}
.pl-dt.is-past .pl-dt-n, .pl-dt.is-past .pl-dt-w{color:var(--ink-4)}
.pl-dt.is-today .pl-dt-w{color:var(--blue); font-weight:600}
.pl-dt.is-today .pl-dt-n{color:var(--blue); font-weight:650; box-shadow:inset 0 0 0 1.5px var(--sky-24)}
.pl-dt[aria-selected="true"] .pl-dt-n{background:var(--navy); color:#fff; box-shadow:none}
.pl-dt:focus-visible{outline-offset:0}
.pl-dt-dots{display:flex; gap:3px; height:6px}
.pl-dt-dots i, .pl-key i, .pl-mdots i{width:6px; height:6px; border-radius:50%; background:var(--k)}
.pl-dt-dots i.k-study, .pl-key i.k-study, .pl-mdots i.k-study{background:none; box-shadow:inset 0 0 0 1.4px var(--k)}

/* ---------- the day, and Coming up beside it */
.pl-cols{display:grid; grid-template-columns:minmax(0, 1fr) 300px; gap:clamp(36px, 5vw, 72px); align-items:start; padding-top:26px}
.pl-day{display:flex; flex-direction:column; min-width:0; max-width:720px}

/* rows: a big round tick in the kind's tone, the words, how near */
.pl-rows{display:grid}
.pl-r{position:relative; display:grid; grid-template-columns:44px minmax(0, 1fr) auto; align-items:center; column-gap:12px; margin:0 -14px; padding:0 14px; border-radius:16px; transition:background-color .2s}
.pl-r + .pl-r::before{content:""; position:absolute; left:70px; right:14px; top:0; height:1px; background:var(--hair)}
.pl-r:hover{background:var(--sky-06)}
.pl-r:hover::before, .pl-r:hover + .pl-r::before{opacity:0}
.pl-rb{display:grid; gap:5px; padding:16px 0; text-align:left; min-width:0; border-radius:8px}
.pl-rt{overflow-wrap:anywhere; font-size:1.1rem; font-weight:500; line-height:1.35; color:var(--navy); letter-spacing:-.005em; transition:color .3s}
.pl-r.k-test .pl-rt{font-weight:600}
.pl-rm{display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; font-size:.85rem; color:var(--ink-3)}
.pl-sub{display:inline-flex; align-items:center; height:22px; padding:0 9px; border-radius:7px; font-size:.76rem; font-weight:600; letter-spacing:.005em}
.pl-sub.s0{background:rgba(157,202,227,.38); color:var(--navy)}
.pl-sub.s1{background:rgba(48,112,182,.12); color:#1F4E80}
.pl-sub.s2{background:rgba(16,34,64,.07); color:var(--navy)}
.pl-sub.s3{background:#fff; color:#1F4E80; box-shadow:inset 0 0 0 1px rgba(48,112,182,.3)}
.pl-ra{display:flex; align-items:center}
.pl-due{font-size:.84rem; font-weight:600; color:var(--navy); white-space:nowrap; padding:5px 11px; border-radius:999px; background:rgba(16,34,64,.06)}
.pl-later{display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 12px; border-radius:999px; font-size:.82rem; font-weight:600; color:var(--blue);
  opacity:0; transition:opacity .2s, background-color .2s}
.pl-later .pi{width:14px; height:14px}
.pl-later:hover{background:var(--blue-24, rgba(48,112,182,.1))}
.pl-r:hover .pl-later, .pl-later:focus-visible{opacity:1}
@media (hover:none){ .pl-later{display:none} }
.pl-r.is-done .pl-rt{color:var(--ink-3)}
.pl-r.is-new{animation:pl-new 1.6s var(--ease)}
@keyframes pl-new{0%,30%{background:var(--sky-24)} 100%{background:transparent}}

/* the tick: a large ring in the kind's tone; it fills and the check draws in */
.pl-tk{width:44px; height:44px; display:grid; place-items:center; border-radius:50%}
.pl-tk-c{width:28px; height:28px; border-radius:50%; display:grid; place-items:center; box-shadow:inset 0 0 0 2px var(--k);
  transition:background-color .22s var(--ease), box-shadow .22s var(--ease), transform .25s var(--ease)}
.k-study .pl-tk-c{box-shadow:none; border:2px dashed var(--k)}
.pl-tk:hover .pl-tk-c{background:var(--sky-10)}
.pl-tk:active .pl-tk-c{transform:scale(.9)}
.pl-tk svg{width:17px; height:17px; fill:none; stroke:#fff; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:18; stroke-dashoffset:18;
  transition:stroke-dashoffset .25s .04s var(--ease)}
.pl-tk[aria-pressed="true"] .pl-tk-c{background:var(--blue); box-shadow:none; border-color:transparent}
.pl-tk[aria-pressed="true"] svg{stroke-dashoffset:0}
.pl-r.is-ticking .pl-tk-c{animation:pl-pop .32s var(--ease)}
@keyframes pl-pop{40%{transform:scale(1.16)}}
.pl-r.is-ticking .pl-rt{color:var(--ink-3)}
.pl-r.is-fold{overflow:hidden; opacity:0; transition:height .34s var(--ease), opacity .22s}

/* small rows: Anytime, Done, the month's side */
.pl-rows.sm .pl-rb{padding:11px 0}
.pl-rows.sm .pl-rt{font-size:.98rem}
.pl-rows.sm .pl-tk-c{width:24px; height:24px}
.pl-rows.sm .pl-sub{height:20px; font-size:.72rem}

/* From earlier: soft, never alarm */
.pl-earlier{margin-bottom:22px; padding:14px 18px 6px; border-radius:20px; background:var(--sky-06)}
.pl-earlier .pl-r{margin:0 -10px; padding:0 10px}
.pl-earlier .pl-r::before{display:none}
.pl-earlier .pl-r:hover{background:var(--sky-10)}
.pl-mv{min-height:36px; padding:0 14px; border-radius:999px; font-size:.86rem; font-weight:600; color:var(--blue); white-space:nowrap; transition:background-color .2s}
.pl-mv:hover{background:rgba(48,112,182,.1)}

/* the quick line */
.pl-q{margin-bottom:10px}
.pl-q-top{display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:8px}
.pl-q-l{font-size:.88rem; font-weight:600; color:var(--ink-2)}
.pl-q-box{position:relative; display:flex; align-items:center}
.pl-q-box input{width:100%; height:54px; padding:0 58px 0 18px; border-radius:16px; border:1px solid var(--hair-2); background:#fff; font:inherit; font-size:1.04rem; color:var(--navy); outline:none;
  transition:border-color .2s, box-shadow .2s, background-color .2s}
.pl-q-box input::placeholder{color:var(--ink-3)}
.pl-q-box input:hover{border-color:var(--hair-3)}
.pl-q-box input:focus{border-color:var(--blue); box-shadow:0 0 0 4px rgba(48,112,182,.12)}
.pl-q-go{position:absolute; right:7px; width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:var(--blue); color:#fff; transition:opacity .2s, background-color .2s, transform .2s var(--ease)}
.pl-q-go .pi{width:18px; height:18px; stroke-width:2.2}
.pl-q-go:hover{background:var(--navy)}
.pl-q-go:disabled{opacity:0; transform:scale(.8); pointer-events:none}
.pl-q-pv{display:flex; align-items:center; gap:8px; min-height:1.5em; margin-top:8px; font-size:.86rem; color:var(--ink-2)}
.pl-q-pv b{font-weight:600; color:var(--navy)}
.pl-q-tip{color:var(--ink-3)}
.pl-q-pv b{overflow-wrap:anywhere}
.pl-q-warn{margin-top:8px; padding:10px 12px; border-radius:12px; background:var(--sky-06); font-size:.84rem; color:var(--ink-2)}
.pl-kd{flex:none; width:9px; height:9px; border-radius:50%; background:var(--k)}
.pl-kd.k-study{background:none; border:1.5px dashed var(--k)}

/* Anytime, Done */
.pl-anytime{margin-top:30px}
.pl-anytime .pl-sec-h{margin-bottom:2px}
.pl-done{margin-top:24px; border-top:1px solid var(--hair); padding-top:6px}
.pl-done summary{display:flex; align-items:center; gap:8px; min-height:44px; cursor:pointer; list-style:none; font-size:.9rem; font-weight:600; color:var(--ink-3); width:max-content; border-radius:10px}
.pl-done summary::-webkit-details-marker{display:none}
.pl-done summary .pi{width:16px; height:16px; transition:transform .25s var(--ease)}
.pl-done[open] summary .pi{transform:rotate(90deg)}
.pl-done summary:hover{color:var(--navy)}
.pl-n{min-width:24px; height:22px; padding:0 8px; border-radius:999px; display:inline-grid; place-items:center; font-size:.78rem; background:var(--sky-10); color:var(--ink-2); font-variant-numeric:tabular-nums}

/* everything ticked */
.pl-alldone{display:flex; align-items:center; gap:6px; padding:6px 0 10px}
.pl-alldone .kulpi-slot{--ks:140px; margin:-14px -14px -18px -30px}
.pl-alldone p{font-size:1.45rem; font-weight:550; letter-spacing:-.02em; color:var(--navy)}

/* Coming up: countdowns, tests in navy */
.pl-coming{position:sticky; top:calc(var(--toph, 67px) + 120px)}
.pl-coming .pl-sec-h{margin-bottom:12px}
.pl-cu{display:grid; gap:10px}
.pl-cu > li{border-radius:18px; border:1px solid var(--hair-2); background:#fff; overflow:hidden; transition:border-color .2s}
.pl-cu > li:hover{border-color:var(--hair-3)}
.pl-cd{width:100%; display:grid; grid-template-columns:52px minmax(0, 1fr); column-gap:14px; align-items:center; padding:14px 16px 14px 12px; text-align:left; transition:background-color .2s}
.pl-cd:hover{background:var(--sky-06)}
.pl-cd-c{display:grid; justify-items:center; line-height:1}
.pl-cd-c b{font-size:1.9rem; font-weight:600; letter-spacing:-.04em; color:var(--navy); font-variant-numeric:tabular-nums}
.pl-cd-c small{margin-top:4px; font-size:.72rem; color:var(--ink-3)}
.pl-cd-x{display:grid; gap:3px; min-width:0; overflow-wrap:anywhere}
.pl-cd-t{font-size:.94rem; font-weight:500; line-height:1.3; color:var(--navy); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden}
.pl-cd-s{font-size:.8rem; color:var(--ink-3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pl-cu > li.is-test{background:var(--navy); border-color:var(--navy)}
.pl-cu > li.is-test .pl-cd:hover{background:rgba(255,255,255,.06)}
.pl-cu > li.is-test .pl-cd-c b{color:var(--sky)}
.pl-cu > li.is-test .pl-cd-c small, .pl-cu > li.is-test .pl-cd-s{color:rgba(255,255,255,.7)}
.pl-cu > li.is-test .pl-cd-t{color:#fff}
.pl-cd-plan{width:100%; display:flex; align-items:center; gap:8px; min-height:44px; padding:0 16px 0 22px; border-top:1px solid rgba(255,255,255,.12); font-size:.84rem; font-weight:600; color:#fff; text-align:left; transition:background-color .2s}
.pl-cd-plan:hover{background:rgba(255,255,255,.08)}
.pl-cd-plan .pi{width:14px; height:14px; color:var(--sky)}
.pl-cd-plan small{margin-left:auto; font-weight:500; color:rgba(255,255,255,.66)}
.pl-cu-more{margin-top:10px; min-height:40px}

/* the empty planner */
.pl-empty{max-width:720px}
.pl-empty-top{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; max-width:none}
.pl-is-empty{max-width:none}
.pl-em-k .kulpi-slot{--ks:160px; margin:0 0 4px -38px}
.pl-em-h{margin:6px 0 26px; text-wrap:balance; font-size:clamp(2rem, 1.4rem + 2vw, 2.75rem); line-height:1.08; font-weight:560; letter-spacing:-.035em; color:var(--navy)}
.pl-ex{display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:8px}
.pl-ex > span{font-size:.86rem; font-weight:600; color:var(--ink-3); margin-right:4px}
.pl-chipx{min-height:44px; padding:0 16px; border-radius:999px; border:1px solid var(--hair-2); font-size:.9rem; color:var(--navy); transition:background-color .2s, border-color .2s}
.pl-chipx:hover{background:var(--sky-10); border-color:var(--hair-3)}

/* Undo, in Kulpi's note */
.k-toast.is-on:has(.pl-undo){pointer-events:auto}
.k-toast-t .pl-undo{height:34px; padding:0 14px; border-radius:999px; background:var(--sky-10, #EEF6FB); font-weight:600; font-size:.86rem; color:var(--blue)}
.k-toast-t .pl-undo:hover{background:var(--sky-16, #E0EFF8)}

/* ---------- first visit: subjects */
.pl-setup{display:grid; gap:14px; padding:22px 24px; border-radius:20px; background:rgba(157,202,227,.16); border:1px solid rgba(48,112,182,.16)}
.pl-setup h3{font-size:1.15rem; font-weight:600; letter-spacing:-.015em; color:var(--navy)}
.pl-setup-b p{margin-top:3px; font-size:.9rem; color:var(--ink-2)}
.pl-setup-c{display:flex; flex-wrap:wrap; gap:8px}
.pl-pick{display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:999px; background:#fff; border:1px solid var(--hair-2); font-size:.86rem; color:var(--navy); transition:background-color .2s, border-color .2s}
.pl-pick:hover{border-color:var(--hair-3)}
.pl-pick.on{background:var(--navy); border-color:var(--navy); color:#fff}
.pl-pick .pi{width:14px; height:14px}
.pl-setup-a{display:flex; align-items:center; gap:16px}
.pl-setup-a .btn[disabled]{opacity:.42; pointer-events:none}
.pl-setup-a .pl-link{font-size:.86rem; color:var(--ink-3)}

/* the steps checkboxes inside the editor */
.pl-ck{display:grid; place-items:center; width:26px; height:26px; border-radius:50%; border:2px solid var(--hair-3); color:transparent; transition:background-color .2s, color .2s, border-color .2s, transform .2s var(--ease)}
.pl-ck .pi{width:14px; height:14px; stroke-width:2.6}
.pl-ck:hover{border-color:var(--blue); color:var(--blue)}
.pl-ck:active{transform:scale(.9)}
.pl-ck[aria-pressed="true"]{background:var(--blue); border-color:var(--blue); color:#fff}
.pl-ck.sm{width:22px; height:22px}

/* ---------- Month: the whole month at once */
.pl-mhero{margin-bottom:22px}
.pl-mnav{display:flex; align-items:center; gap:4px; margin-right:6px}
.pl-mwrap{display:grid; grid-template-columns:minmax(0, 1fr) 284px; gap:24px; align-items:start}
.pl-mgrid{border:1px solid var(--hair-2); border-radius:20px; overflow:hidden; background:#fff}
.pl-mrow{display:grid; grid-template-columns:repeat(7, minmax(0, 1fr))}
.pl-mrow + .pl-mrow{border-top:1px solid var(--hair)}
.pl-mhead{background:var(--sky-06)}
.pl-mh{padding:10px 12px; font-size:.74rem; font-weight:600; letter-spacing:.04em; color:var(--ink-3)}
.pl-mh.we{color:var(--ink-4)}
.pl-mc{position:relative; display:flex; flex-direction:column; gap:4px; min-height:124px; min-width:0; padding:6px 6px 8px; cursor:pointer; transition:background-color .2s}
.pl-mc + .pl-mc{border-left:1px solid var(--hair)}
.pl-mc.we{background:rgba(157,202,227,.06)}
.pl-mc:hover{background:var(--sky-06)}
.pl-mc.out .pl-mn{color:var(--ink-4)}
.pl-mc.out .pl-ml{opacity:.55}
.pl-mc.is-sel{background:rgba(157,202,227,.16); box-shadow:inset 0 0 0 2px var(--blue)}
.pl-mc.is-over{background:var(--sky-16); box-shadow:inset 0 0 0 2px var(--blue)}
.pl-mt{display:flex; align-items:center; justify-content:space-between; gap:4px}
.pl-mn{width:30px; height:30px; border-radius:50%; display:grid; place-items:center; font-size:.86rem; font-weight:500; color:var(--navy); font-variant-numeric:tabular-nums; transition:background-color .2s}
.pl-mn:hover{background:var(--sky-16)}
.pl-mc.is-past:not(.out) .pl-mn{color:var(--ink-3)}
.pl-mc.is-today .pl-mn{background:var(--blue); color:#fff; font-weight:650}
.pl-mrt{display:inline-flex; align-items:center; gap:2px; margin-right:4px; font-size:.7rem; font-weight:600; color:var(--ink-4)}
.pl-mrt .pi{width:13px; height:13px}
.pl-ml{display:grid; gap:3px; min-width:0}
.pl-chip{position:relative; display:block; width:100%; min-height:24px; padding:3px 7px 3px 9px; border-radius:7px; background:rgba(157,202,227,.2); text-align:left;
  font-size:.75rem; font-weight:500; line-height:1.3; color:var(--navy); overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow-wrap:anywhere; transition:background-color .2s, transform .2s var(--ease)}
.pl-chip::before{content:""; position:absolute; left:0; top:5px; bottom:5px; width:3px; border-radius:0 3px 3px 0; background:var(--k)}
.pl-chip.k-study{background:#fff; box-shadow:inset 0 0 0 1px rgba(48,112,182,.35)}
.pl-chip.k-study::before{display:none}
.pl-chip.k-test{background:var(--navy); color:#fff; font-weight:600}
.pl-chip.k-test::before{display:none}
.pl-chip.k-assignment{background:rgba(48,112,182,.12)}
.pl-chip.k-todo{background:rgba(16,34,64,.05)}
.pl-chip i{font-style:normal; font-weight:600; margin-right:4px; opacity:.7}
.pl-chip:hover{background:rgba(157,202,227,.42)}
.pl-chip.k-test:hover{background:#1A3358}
.pl-chip.is-done{background:transparent; box-shadow:none; color:var(--ink-4); text-decoration:line-through}
.pl-chip.is-done::before{display:none}
.pl-chip.is-drag{opacity:.5; transform:scale(.97)}
.pl-mmore{justify-self:start; padding:2px 6px; border-radius:6px; font-size:.74rem; font-weight:600; color:var(--blue)}
.pl-mmore:hover{background:rgba(48,112,182,.1)}
.pl-mdots{display:none}
.pl-key{display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin-top:14px; font-size:.8rem; color:var(--ink-3)}
.pl-key span{display:inline-flex; align-items:center; gap:7px}
.pl-key .pi{width:13px; height:13px}
.pl-key-tip{margin-left:auto}

/* the chosen day, beside the month */
.pl-mside{position:sticky; top:calc(var(--toph, 67px) + 20px); padding:22px 22px 18px; border-radius:20px; border:1px solid var(--hair-2); background:#fff}
.pl-ms-h{overflow-wrap:anywhere; margin-top:4px; font-size:1.3rem; font-weight:600; letter-spacing:-.02em; line-height:1.2; color:var(--navy)}
.pl-ms-late{margin-top:10px; padding:10px 12px; border-radius:12px; background:var(--sky-06); font-size:.86rem; color:var(--ink-2)}
.pl-mside .pl-rows{margin-top:8px}
.pl-mside .pl-r{margin:0 -8px; padding:0 8px; grid-template-columns:40px minmax(0, 1fr) auto}
.pl-mside .pl-r + .pl-r::before{left:56px; right:8px}
.pl-mside .pl-due{font-size:.76rem; padding:4px 9px}
.pl-mside .pl-none{padding:14px 0 4px}
.pl-ms-done{margin-top:8px; font-size:.84rem; color:var(--ink-3)}
.pl-ms-a{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-top:16px; padding-top:16px; border-top:1px solid var(--hair)}

/* ---------- narrower: Coming up and the chosen day go under */
@media (max-width:1180px){
  .pl-cols{grid-template-columns:minmax(0, 1fr); gap:40px}
  .pl-day{max-width:none}
  .pl-coming{position:static; min-width:0}
  .pl-cu{display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; margin:0 calc(-1 * var(--gut)); padding:0 var(--gut) 4px; scroll-padding:0 var(--gut)}
  .pl-cu::-webkit-scrollbar{display:none}
  .pl-cu > li{flex:none; width:250px; display:flex; flex-direction:column}
  .pl-cd{flex:1}
  .pl-mwrap{grid-template-columns:minmax(0, 1fr)}
  .pl-mside{position:static}
}

/* ---------- phone */
@media (max-width:700px){
  .main-myspace .tabs{gap:22px}
  .main-myspace .ms-panel{padding-top:22px}
  .pl-hero{align-items:flex-start}
  .pl-hero-t{order:2; width:100%}
  .pl-tools{order:1; width:100%; justify-content:space-between; padding:0}
  .pl-tools .pl-seg{margin-left:auto}
  .pl-date{font-size:2.3rem; letter-spacing:-.025em}
  .pl-truth{font-size:1rem; margin-top:8px}
  .pl-truth .pl-sep{display:block; height:0; overflow:hidden}
  .pl-strip-w{top:58px; margin:18px -16px 0; padding:0 8px}
  .pl-strip-h{padding:6px 8px 0}
  .pl-strip-n{display:none}
  .pl-strip{padding:4px 8px 10px; gap:2px}
  .pl-dt{flex:0 0 50px}
  .pl-dt.pl-dt-mon{margin-left:10px}
  .pl-dt-n{width:40px; height:40px; font-size:1.02rem}
  .pl-cols{padding-top:18px}
  .pl-r{column-gap:8px; margin:0 -8px; padding:0 8px}
  .pl-r + .pl-r::before{left:60px; right:8px}
  .pl-rt{font-size:1.03rem}
  .pl-r .pl-due{display:none}
  .pl-earlier{margin-left:-6px; margin-right:-6px; padding:12px 12px 4px}
  .pl-earlier .pl-r{grid-template-columns:44px minmax(0, 1fr)}
  .pl-earlier .pl-ra{grid-column:2; margin:-10px 0 10px -14px}
  /* the quick line sits just above the tab bar while the list scrolls under it */
  .pl-day{display:flex}
  .pl-earlier{order:1} .pl-main-rows, .pl-none, .pl-alldone{order:2} .pl-anytime{order:3} .pl-done{order:4}
  .pl-day > .pl-q{order:5; position:sticky; bottom:calc(67px + env(safe-area-inset-bottom)); z-index:8; margin:18px -16px 0; padding:10px 16px 6px;
    background:rgba(255,255,255,.96); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-top:1px solid var(--hair)}
  .pl-q-top{margin-bottom:2px; align-items:center}
  .pl-q-top .pl-link{min-height:40px; padding:0 2px}
  .pl-q-box input{height:50px; font-size:1rem}
  .pl-q-pv{margin-top:6px; min-height:0}
  .pl-q-pv:has(.pl-q-tip){display:none}
  .pl-alldone .kulpi-slot{--ks:116px; margin-left:-26px}
  .pl-alldone p{font-size:1.2rem}
  .pl-em-k .kulpi-slot{--ks:130px; margin-left:-30px}
  .pl-cu{margin:0 -16px; padding:0 16px 4px}
  .pl-cu > li{width:240px}
  /* the month as dots; the chosen day is listed under it */
  .pl-mnav{margin-right:auto}
  .pl-mgrid{border-radius:16px}
  .pl-mh{padding:8px 0; text-align:center}
  .pl-mc{min-height:56px; padding:4px 2px 6px; align-items:center; gap:2px}
  .pl-mt{justify-content:center}
  .pl-mrt, .pl-ml, .pl-key{display:none}
  .pl-mn{width:34px; height:34px; font-size:.92rem}
  .pl-mdots{display:flex; gap:2px; height:6px}
  .pl-mdots i{width:5px; height:5px}
  .pl-mside{padding:18px 16px 14px}
  .pl-ms-a .btn{flex:1; justify-content:center}
}

/* ---------- the editor: a drawer from the right, a sheet from the bottom on a phone */
.pl-dlg{position:fixed; inset:0 0 0 auto; margin:0; width:min(500px, 100vw); height:100dvh; max-height:none; max-width:none; padding:0; border:0; background:#fff; color:var(--ink);
  box-shadow:-24px 0 60px -32px rgba(16,34,64,.4)}
.pl-dlg[open]{animation:pl-in .38s var(--ease)}
.pl-dlg::backdrop{background:rgba(16,34,64,.26); backdrop-filter:blur(2px)}
@keyframes pl-in{from{transform:translateX(24px); opacity:0}}
.pl-ed{display:grid; grid-template-rows:auto minmax(0,1fr) auto; height:100%}
.pl-ed-h{display:flex; align-items:center; justify-content:space-between; padding:20px 18px 6px 28px}
.pl-ed-h h2{font-size:1.3rem; font-weight:600; letter-spacing:-.02em; color:var(--navy)}
.pl-ed-b{overflow:auto; display:grid; align-content:start; gap:24px; padding:14px 28px 28px}
.pl-ed-f{display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:14px 20px 18px 28px; border-top:1px solid var(--hair)}
.pl-ed-f > .pl-del{margin-right:auto}
.pl-saved{display:inline-flex; align-items:center; gap:5px; margin-right:6px; font-size:.78rem; color:var(--ink-3)}
.pl-saved .pi{width:13px; height:13px}
@media (max-width:420px){ .pl-saved{display:none} }

.pl-q{display:grid; gap:10px; margin:0; padding:0; border:0; min-width:0}
.pl-ql{padding:0; font-size:.92rem; font-weight:600; color:var(--navy)}
.pl-ql small{margin-left:6px; font-size:.8rem; font-weight:400; color:var(--ink-3)}
.pl-tx{height:52px; padding:0 16px; border-radius:14px; border:1.5px solid var(--hair-3); background:#fff; font:inherit; font-size:1.05rem; color:var(--navy); outline:none; transition:border-color .2s, box-shadow .2s}
.pl-tx::placeholder{color:var(--ink-3)}
.pl-tx:focus{border-color:var(--blue); box-shadow:0 0 0 4px rgba(48,112,182,.12)}
.pl-tx.is-req{border-color:var(--navy); box-shadow:0 0 0 4px rgba(16,34,64,.1)}

.pl-pls{display:flex; flex-wrap:wrap; gap:8px}
.pl-pl{position:relative; display:inline-flex; align-items:center; gap:7px; padding:9px 15px; border-radius:999px; border:1px solid var(--hair-2); background:#fff; font-size:.88rem; color:var(--ink); cursor:pointer; transition:border-color .2s, background-color .2s, color .2s}
.pl-pl input[type="radio"]{position:absolute; opacity:0; pointer-events:none}
.pl-pl:hover{border-color:var(--hair-3)}
.pl-pl.on{background:var(--navy); border-color:var(--navy); color:#fff}
.pl-pl:has(input:focus-visible){outline:2px solid var(--blue); outline-offset:2px}
.pl-kind .pi{color:var(--k)}
.pl-kind.k-homework .pi{color:#4F8DB5}
.pl-kind.on .pi{color:#fff}
.pl-date input{position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer}
.pl-sb-add input{width:150px; height:100%; min-height:38px; padding:0 14px; border-radius:999px; border:1px dashed var(--hair-3); font:inherit; font-size:.86rem; outline:none; background:none}
.pl-sb-add input:focus{border-style:solid; border-color:var(--blue)}

.pl-more-t{display:flex; align-items:center; gap:8px; padding:14px 16px; border-radius:14px; border:1px dashed var(--hair-3); font-size:.9rem; font-weight:500; color:var(--blue); text-align:left; transition:border-color .2s, background-color .2s}
.pl-more-t:hover{border-color:var(--blue); background:rgba(157,202,227,.08)}
.pl-more-t small{font-weight:400; color:var(--ink-3)}
.pl-more-t .pi{width:15px; height:15px}
.pl-more-b{display:grid; gap:22px; padding-top:20px; border-top:1px solid var(--hair)}
.pl-row2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
.pl-in{display:grid; gap:6px}
.pl-in label{font-size:.88rem; font-weight:600; color:var(--navy)}
.pl-in label small{font-weight:400; color:var(--ink-3)}
.pl-in input, .pl-in select{height:46px; padding:0 12px; border-radius:12px; border:1px solid var(--hair-2); background:#fff; font:inherit; font-size:.9rem; color:var(--navy); outline:none; min-width:0}
.pl-in input:focus, .pl-in select:focus{border-color:var(--blue)}
.pl-in-h{max-width:calc(50% - 6px)}
.pl-steps{display:grid; gap:2px}
.pl-steps li{display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:6px 0; font-size:.92rem; color:var(--navy)}
.pl-steps li.is-done span{color:var(--ink-4); text-decoration:line-through}
.pl-step-add{grid-template-columns:minmax(0,1fr) !important}
.pl-step-add input{height:44px; padding:0 14px; border-radius:12px; border:1px solid var(--hair-2); font:inherit; font-size:.9rem; outline:none; background:#fff}
.pl-step-add input:focus{border-color:var(--blue)}
.pl-q textarea{width:100%; resize:vertical; padding:12px 14px; border-radius:12px; border:1px solid var(--hair-2); font:inherit; font-size:.92rem; color:var(--ink); outline:none}
.pl-q textarea:focus{border-color:var(--blue)}
.pl-studyfor{background:var(--sky-10); color:var(--navy)}
.pl-studyfor:hover{background:var(--sky-16)}
.pl-del{display:inline-flex; align-items:center; gap:6px; padding:8px 4px; font-size:.86rem; color:var(--ink-3); transition:color .2s}
.pl-del:hover, .pl-del.sure{color:var(--navy); font-weight:600}
.pl-del .pi{width:15px; height:15px}


@media (max-width:700px){
  .pl-row2{grid-template-columns:1fr}
  .pl-in-h{max-width:none}
  /* the editor as a sheet from the bottom */
  .pl-dlg{inset:auto 0 0 0; width:100%; height:auto; max-height:92dvh; border-radius:24px 24px 0 0; box-shadow:0 -20px 60px -30px rgba(16,34,64,.4)}
  .pl-dlg[open]{animation:pl-up .4s var(--ease)}
  .pl-ed{max-height:92dvh}
  .pl-ed-h{padding:18px 12px 4px 20px}
  .pl-ed-b{padding:12px 20px 22px; gap:22px}
  .pl-ed-f{padding:12px 16px calc(14px + env(safe-area-inset-bottom)) 20px}
}
@keyframes pl-up{from{transform:translateY(40px); opacity:0}}
@media (prefers-reduced-motion: reduce){
  .pl-dlg[open]{animation:none}
  .pl-tk-c, .pl-tk svg, .pl-rt, .pl-r, .pl-dt-n, .pl-done summary .pi, .pl-q-go, .pl-chip{transition:none}
  .pl-r.is-ticking .pl-tk-c, .pl-r.is-new{animation:none}
}
.pl-req{margin:6px 0 0; font-size:.86rem; font-weight:500; color:var(--navy)}
