/* =====================================================================
   LAUREN · life & study dashboard
   The Vivid look: cream grid paper, chunky ink outlines with hard offset
   shadows, highlighter headings, washi tape, tilted sticky notes and mono
   sticker labels. Bricolage Grotesque for everything, Caveat for the
   handwritten bits, Space Mono for labels. Five bright palettes.
   ===================================================================== */
:root {
  --display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif; --sans: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace; --hand: "Caveat", "Bradley Hand", cursive;
  --r: 14px; --r-sm: 10px; --b: 2px solid var(--line); --sh: 4px 5px 0 var(--shadow); --sh-sm: 2px 3px 0 var(--shadow); --side: 272px;
  --red: #C0314B; --green: #2E7D4F; --amber: #9A5B00; --white: var(--paper); --white-s: var(--paper2);
}
:root, [data-theme="postcard"] {
  --bg: #FBF6EC; --grid: rgb(42 37 64 / .065); --paper: #FFFDF8; --paper2: #F7F1E5; --paper3: #EEE6D6;
  --ink: #2A2540; --ink2: #4F4866; --ink3: #6B6484; --line: #2A2540; --shadow: #2A2540; --hair: #E5DDCC; --inkx: #2A2540; --berry: #B92F67;
  --pink: #F5A8C8; --pink-s: #FCE3EE; --lime: #C5D86D; --lime-s: #EEF4D2; --violet: #A99AF0; --violet-s: #E9E4FC; --butter: #F7DD72; --butter-s: #FCF2C9;
  --sky: #8EC5F2; --sky-s: #DDEEFB; --orange: #FFB07A; --orange-s: #FFE6D4; --mint: #9EDDC4; --mint-s: #DDF4EB; --lilac: #C9B6F0; --lilac-s: #EFE8FB;
  color-scheme: light;
}
[data-theme="matcha"] {
  --bg: #F6F3E8; --grid: rgb(47 58 44 / .07); --paper: #FFFEF8; --paper2: #F1EEE1; --paper3: #E6E2D2;
  --ink: #2F3A2C; --ink2: #4D5947; --ink3: #66715F; --line: #2F3A2C; --shadow: #2F3A2C; --hair: #E1DDCB; --inkx: #2F3A2C; --berry: #A4472A;
  --pink: #F3C2B0; --pink-s: #FBE7DF; --lime: #B8D49A; --lime-s: #E8F1DC; --violet: #C7B7DC; --violet-s: #EEE8F4; --butter: #EBD89A; --butter-s: #F7F0D5;
  --sky: #A9CFC6; --sky-s: #E0EFEB; --orange: #E9B48A; --orange-s: #F7E5D6; --mint: #A8D8B8; --mint-s: #E0F2E6; --lilac: #D8C3DE; --lilac-s: #F3EAF4;
  color-scheme: light;
}
[data-theme="lavender"] {
  --bg: #F7F3FB; --grid: rgb(45 37 71 / .065); --paper: #FFFEFF; --paper2: #F1ECF7; --paper3: #E6DFEF;
  --ink: #2D2547; --ink2: #4D4566; --ink3: #675F82; --line: #2D2547; --shadow: #2D2547; --hair: #E4DCEC; --inkx: #2D2547; --berry: #A23A7D;
  --pink: #F6B9D6; --pink-s: #FCE6F0; --lime: #CDE58E; --lime-s: #F0F7DC; --violet: #B3A2F2; --violet-s: #ECE6FD; --butter: #F8E28D; --butter-s: #FDF5D3;
  --sky: #A9C8F5; --sky-s: #E3EDFC; --orange: #FFC7A8; --orange-s: #FFEBDF; --mint: #A9E3CF; --mint-s: #E1F6EE; --lilac: #C9B6F0; --lilac-s: #EFE8FB;
  color-scheme: light;
}
[data-theme="citrus"] {
  --bg: #FFF9EC; --grid: rgb(35 48 58 / .065); --paper: #FFFEF9; --paper2: #FBF2DF; --paper3: #F2E6CC; 
  --ink: #23303A; --ink2: #43505B; --ink3: #5E6A74; --line: #23303A; --shadow: #23303A; --hair: #EEE2C8; --inkx: #23303A; --berry: #B5452B;
  --pink: #FFA9A0; --pink-s: #FFE3E0; --lime: #CFE36A; --lime-s: #F1F8D2; --violet: #A6B4F2; --violet-s: #E6EAFC; --butter: #F7DD72; --butter-s: #FCF2C9;
  --sky: #8FD6CF; --sky-s: #DDF4F1; --orange: #FFB07A; --orange-s: #FFE6D4; --mint: #A2E0B0; --mint-s: #E0F5E5; --lilac: #D6B8EE; --lilac-s: #F2E8FA;
  color-scheme: light;
}
[data-theme="nightowl"] {
  --bg: #1B1830; --grid: rgb(244 239 255 / .045); --paper: #262241; --paper2: #2E2A4C; --paper3: #3A3559;
  --ink: #F4EFFF; --ink2: #CFC8E6; --ink3: #A39CBF; --line: #F4EFFF; --shadow: #0D0B19; --hair: #3B3660; --inkx: #1B1830; --berry: #F5A8C8;
  --pink: #F5A8C8; --pink-s: #4A2B47; --lime: #C5D86D; --lime-s: #34391F; --violet: #A99AF0; --violet-s: #34305C; --butter: #F7DD72; --butter-s: #463D20;
  --sky: #8EC5F2; --sky-s: #23395A; --orange: #FFB07A; --orange-s: #4A3122; --mint: #9EDDC4; --mint-s: #1F4036; --lilac: #C9B6F0; --lilac-s: #3B3360;
  --red: #FF8DA1; --green: #8FE0B2; --amber: #F7DD72;
  color-scheme: dark;
}
html { font-size: 16px; } html[data-text="0"] { font-size: 14.5px; } html[data-text="2"] { font-size: 17.5px; } html[data-text="3"] { font-size: 19px; }
.c-pink { --c: var(--pink); --cs: var(--pink-s); } .c-lime { --c: var(--lime); --cs: var(--lime-s); } .c-violet { --c: var(--violet); --cs: var(--violet-s); }
.c-butter { --c: var(--butter); --cs: var(--butter-s); } .c-sky { --c: var(--sky); --cs: var(--sky-s); } .c-orange, .c-tang { --c: var(--orange); --cs: var(--orange-s); }
.c-mint { --c: var(--mint); --cs: var(--mint-s); } .c-lilac { --c: var(--lilac); --cs: var(--lilac-s); } .c-white { --c: var(--paper); --cs: var(--paper2); --ct: var(--ink); }
.t1 { --tc: var(--sky); } .t2 { --tc: var(--pink); } .t3 { --tc: var(--butter); } .t4 { --tc: var(--mint); } .t5 { --tc: var(--lilac); } .t6 { --tc: var(--orange); }
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 .94rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; } h3 { font: 700 .98rem/1.25 var(--sans); }
h1 em, h2 em { font-style: normal; background: var(--c, var(--lime)); color: var(--inkx); padding: 0 .18em; border: var(--b); border-radius: 8px; box-shadow: var(--sh-sm); display: inline-block; transform: rotate(-1.5deg); margin-left: .1em; }
h2 em { padding: 0 .14em; border-radius: 6px; box-shadow: none; border-width: 1.5px; transform: none; }
p { margin: .5rem 0; } a { color: inherit; text-underline-offset: 3px; } img { max-width: 100%; display: block; } small { font-size: .8rem; }
.num { font-variant-numeric: tabular-nums; } .small { font-size: .85rem; } .muted { color: var(--ink2); } .grow { flex: 1; } .right { margin-left: auto; } .center { justify-content: center; }
.pos { color: #1E8A4C; font-weight: 700; } .neg { color: var(--red); font-weight: 700; } .late { color: var(--red); font-weight: 600; }
[data-theme="nightowl"] .pos { color: var(--mint); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
::selection { background: var(--lime); color: var(--inkx); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: currentColor; }
.boot { min-height: 100vh; display: grid; place-items: center; font: 800 4rem var(--display); }
.error-text { color: var(--red); font-weight: 700; }
.kick { display: block; font: 700 .68rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.hl-pink { background: var(--pink); color: var(--inkx); padding: 0 .3em; border-radius: 4px; }
kbd { font: 700 .72rem var(--mono); padding: .12rem .4rem; border-radius: 6px; background: var(--paper); border: 1.5px solid var(--line); box-shadow: 0 2px 0 var(--shadow); }
.amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.calm *, .calm *::before, .calm *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
.empty-note { padding: 1.2rem; border: 2px dashed var(--ink3); border-radius: var(--r); text-align: center; color: var(--ink2); display: grid; gap: .6rem; justify-items: center; background: var(--paper); }
.empty-note p { margin: 0; font-weight: 600; }


/* ---------- Controls ---------- */
.btn { --bb: var(--paper); display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; border-radius: 10px; border: var(--b); background: var(--bb); color: var(--ink); font: 700 .84rem/1.1 var(--sans); text-decoration: none; cursor: pointer; box-shadow: var(--sh-sm); transition: transform .1s, box-shadow .1s; white-space: nowrap; user-select: none; }
.btn[class*="c-"] { --bb: var(--c); color: var(--inkx); } .btn.c-violet { color: #fff; } .btn.c-white { color: var(--ink); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow); }
.btn.solid { --bb: var(--inkx); color: #fff; }
[data-theme="nightowl"] .btn.solid { --bb: var(--lime); color: var(--inkx); border-color: var(--lime); }
.btn.ghost { --bb: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--paper2); border-color: var(--line); }
.btn.danger { color: var(--red) !important; }
.btn.sm { padding: .38rem .7rem; font-size: .78rem; border-radius: 8px; }
.btn.lg { padding: .85rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn.block { width: 100%; padding: .8rem 1rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; cursor: pointer; color: var(--ink2); flex: none; border: 1.5px solid transparent; }
.icon-btn:hover { background: var(--paper2); color: var(--ink); border-color: var(--line); }
.icon-btn .ic { width: 18px; height: 18px; } .icon-btn.sm { width: 28px; height: 28px; border-radius: 7px; } .icon-btn.sm .ic { width: 14px; height: 14px; }
.icon-btn:focus-visible { outline: 3px solid var(--violet); }
.u-link { all: unset; cursor: pointer; font: 700 .76rem var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.u-link:hover { color: var(--violet); } .u-link:focus-visible { outline: 3px solid var(--violet); }
.link-plain { all: unset; cursor: pointer; } .link-plain:hover b, .link-plain:hover { text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; } .link-plain:focus-visible { outline: 3px solid var(--violet); }
.link { all: unset; cursor: pointer; color: var(--violet); font-weight: 700; text-decoration: underline; }
.input { width: 100%; padding: .6rem .8rem; border: var(--b); border-radius: 10px; background: var(--paper); color: var(--ink); font: 400 .94rem/1.3 var(--sans); }
.input::placeholder { color: var(--ink3); }
.input:focus { outline: none; box-shadow: var(--sh-sm); border-color: var(--violet); }
.input.sm { padding: .35rem .55rem; font-size: .85rem; width: auto; border-width: 1.5px; border-radius: 8px; }
.input.big-in { font: 800 2.2rem var(--display); padding: .3rem .7rem; }
select.input, select.ms, .tb-tools select { appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23111' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; background-size: 12px; }
[data-theme="nightowl"] select.input, [data-theme="nightowl"] select.ms { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23F4F1EA' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); }
textarea.input { resize: vertical; }
.field { display: flex; flex-direction: column; gap: .3rem; font: 700 .7rem var(--mono); text-transform: uppercase; letter-spacing: .05em; min-width: 0; }
.field > span:first-child { color: var(--ink2); }
.field .input { font-family: var(--sans); text-transform: none; letter-spacing: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } .form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid .wide, .form-grid .switch.wide { grid-column: 1 / -1; }
.inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; } .stack { display: flex; flex-direction: column; gap: .8rem; } .section-sm { margin-top: .8rem; }
.switch { display: flex; gap: .7rem; align-items: center; cursor: pointer; font-weight: 600; }
.switch input, input.tog { appearance: none; flex: none; width: 46px; height: 26px; border-radius: 99px; background: var(--paper3); position: relative; cursor: pointer; margin: 0; border: var(--b); }
.switch input::after, input.tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--inkx); transition: transform .15s; }
.switch input:checked, input.tog:checked { background: var(--lime); } .switch input:checked::after, input.tog:checked::after { transform: translateX(20px); }
.segs { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 11px; background: var(--paper); border: var(--b); box-shadow: var(--sh-sm); }
.segs button { all: unset; cursor: pointer; padding: .35rem .7rem; border-radius: 7px; font: 700 .72rem var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink2); }
.segs button:hover { color: var(--ink); background: var(--paper2); }
.segs button[aria-pressed="true"] { background: var(--inkx); color: #fff; }
[data-theme="nightowl"] .segs button[aria-pressed="true"] { background: var(--lime); color: var(--inkx); }
.segs button:focus-visible { outline: 3px solid var(--violet); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; border-radius: 99px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 700 .72rem var(--mono); }
.chip[class*="c-"] { background: var(--c); color: var(--inkx); } .chip.c-white { color: var(--ink); }
.chip.on, .chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--inkx); color: #fff; }
.chip input { display: none; } .chip .ic { width: 13px; height: 13px; }
.tag { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .5rem; border-radius: 6px; font: 700 .66rem var(--mono); text-transform: uppercase; letter-spacing: .04em; background: var(--paper2); color: var(--ink2); white-space: nowrap; border: 1.5px solid var(--hair); }
.tag.doing { background: var(--butter); color: var(--inkx); border-color: var(--inkx); }
.pill { display: inline-flex; align-items: center; padding: .3rem .8rem; border-radius: 99px; background: var(--paper); border: var(--b); font: 700 .78rem var(--mono); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; } .filters p { margin: 0; }
.row-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.meter { display: block; height: 10px; border-radius: 99px; background: var(--paper3); border: 1.5px solid var(--line); overflow: hidden; margin: .45rem 0; }
.meter i { display: block; height: 100%; background: var(--mc, var(--violet)); border-right: 1.5px solid var(--line); transition: width .4s; }
.meter i[style="width:0.0%"] { border: 0; }
.m-violet { --mc: var(--violet); } .m-lime { --mc: var(--lime); } .m-pink { --mc: var(--pink); } .m-butter { --mc: var(--butter); } .m-sky { --mc: var(--sky); }
.stars { display: inline-flex; gap: 1px; color: var(--paper3); } .stars .ic { width: 13px; height: 13px; } .stars i.on { color: #F5A524; }
.scale, .rating { display: flex; gap: .35rem; flex-wrap: wrap; }
.rate { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 9px; border: var(--b); cursor: pointer; font-weight: 700; }
.rate input { position: absolute; opacity: 0; } .rate:has(input:checked) { background: var(--lime); color: var(--inkx); }
.when { display: flex; gap: .4rem; }
.cb, .td-cb, .req-cb { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--line); color: transparent; background: var(--paper); }
.cb .ic, .td-cb .ic, .req-cb .ic { width: 13px; height: 13px; }


/* ---------- Pieces ---------- */
.card { position: relative; background: var(--paper); border: var(--b); border-radius: var(--r); padding: 1.1rem 1.2rem 1.2rem; box-shadow: var(--sh); min-width: 0; }
.card.flat { padding: .3rem .6rem; }
.card.has-strip { padding-top: 1.55rem; }
.card.has-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--c); border-bottom: var(--b); border-radius: calc(var(--r) - 2px) calc(var(--r) - 2px) 0 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .7rem; }
.card-head h2 small { font: 700 .72rem var(--mono); }
.sub-h { font: 700 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); margin: 1rem 0 .4rem; }
.sec-h { font-size: 1.3rem; }
.win { position: relative; background: var(--paper); border: var(--b); border-radius: 12px; box-shadow: var(--sh); overflow: hidden; min-width: 0; }
.win-bar { display: flex; align-items: center; gap: .6rem; padding: .4rem .7rem; background: var(--c); border-bottom: var(--b); color: var(--ct, var(--inkx)); }
.win-bar b { font: 700 .74rem var(--mono); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-dots { display: flex; gap: 5px; } .win-dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--inkx); background: #fff; }
.win-x { display: grid; place-items: center; width: 20px; height: 18px; border: 1.5px solid var(--inkx); border-radius: 5px; background: #fff; color: var(--inkx); font: 700 .8rem/1 var(--sans); }
.win-body { padding: 1rem 1.1rem 1.1rem; }
.sticker { position: absolute; z-index: 4; top: -12px; right: 14px; padding: .35rem .7rem; border-radius: 8px; border: var(--b); font: 700 .74rem var(--mono); text-transform: uppercase; transform: rotate(var(--rot)); box-shadow: var(--sh-sm); background: var(--c); color: var(--inkx); }
.spark4 { width: 26px; height: 26px; fill: var(--violet); }
.pdrop { position: relative; display: grid; place-content: center; justify-items: center; gap: .25rem; text-align: center; padding: .9rem; min-height: 110px; border: 2px dashed var(--line); border-radius: 12px; background: repeating-linear-gradient(45deg, var(--paper) 0 10px, var(--paper2) 10px 20px); color: var(--ink); cursor: pointer; }
.pdrop:hover, .pdrop.drag { background: var(--lime-s); }
.pdrop b { font-size: .82rem; } .pdrop small { color: var(--ink2); }
.pd-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--butter); border: var(--b); color: var(--inkx); } .pd-ic .ic { width: 18px; height: 18px; }
.pdrop.mini { min-height: 0; padding: .4rem .7rem; grid-auto-flow: column; justify-content: start; gap: .5rem; border-width: 1.5px; } .pdrop.mini .pd-ic { width: 26px; height: 26px; border-width: 1.5px; } .pdrop.mini b { font-size: .76rem; }
.pdrop:focus-within { outline: 3px solid var(--violet); }
.polaroid { position: relative; margin: 0; padding: 8px 8px 0; background: #fff; border: 1.5px solid var(--inkx); box-shadow: 3px 4px 0 rgb(0 0 0 / .85); transform: rotate(var(--tilt, -2deg)); color: var(--inkx); }
.pol-img { aspect-ratio: 1; overflow: hidden; background: #EEE; display: grid; } .pol-img img { width: 100%; height: 100%; object-fit: cover; }
.pol-open { all: unset; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--c); color: var(--inkx); background-image: radial-gradient(rgb(0 0 0 / .12) 1.2px, transparent 1.6px); background-size: 12px 12px; }
.cover-ph b { font: 800 1.5rem var(--display); background: #fff; border: var(--b); border-radius: 8px; padding: .1rem .5rem; box-shadow: var(--sh-sm); max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-pill { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 8px; border: 1.5px solid var(--line); background: var(--orange-s); font: 700 .72rem var(--mono); }
.pdf-pill.sm { padding: .12rem .45rem; font-size: .66rem; } .pdf-pill:hover { background: var(--orange); color: var(--inkx); }
.faces { display: flex; gap: .3rem; flex-wrap: wrap; }
.face { all: unset; cursor: pointer; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid transparent; color: var(--ink3); }
.face .ic { width: 26px; height: 26px; } .face:hover { border-color: var(--line); color: var(--ink); }
.face[aria-pressed="true"] { background: var(--lime); color: var(--inkx); border-color: var(--inkx); box-shadow: var(--sh-sm); }
.face:focus-visible { outline: 3px solid var(--violet); }
.note-band { display: flex; gap: .8rem; align-items: center; padding: .7rem 1rem; border-radius: 12px; border: var(--b); background: var(--c, var(--butter)); color: var(--inkx); box-shadow: var(--sh-sm); }
.note-band span { display: grid; } .note-band small { opacity: .8; }
.warn { display: flex; gap: .35rem; align-items: center; color: var(--red); font-weight: 600; font-size: .8rem; margin: .2rem 0; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rows li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1.5px dashed var(--hair); }
.rows li:last-child { border-bottom: 0; }
.r-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--violet-s); color: var(--ink); border: 1.5px solid var(--line); } .r-ic .ic { width: 16px; height: 16px; }
.r-ic.in { background: var(--lime); color: var(--inkx); } .r-ic.out { background: var(--pink-s); }
.r-t { flex: 1; min-width: 0; display: grid; } .r-t b { font-weight: 700; } .r-t small { color: var(--ink2); }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; font: 700 .66rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); padding: .55rem .6rem; border-bottom: var(--b); white-space: nowrap; }
.tbl td { padding: .5rem .6rem; border-bottom: 1.5px dashed var(--hair); vertical-align: middle; }
.tbl tfoot td { border-top: var(--b); border-bottom: 0; font-weight: 700; } .tbl .r { text-align: right; }
.kb-course, .tag-code { display: inline-flex; align-items: center; padding: .1rem .45rem; border-radius: 6px; border: 1.5px solid var(--inkx); background: var(--c, var(--violet)); color: var(--ct, var(--inkx)); font: 700 .64rem var(--mono); text-transform: uppercase; white-space: nowrap; }
.kb-course.c-violet, .tag-code.c-violet { color: #fff; }
.receipt { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 12px; }
.receipt::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -12px; height: 12px; background: linear-gradient(-45deg, transparent 8px, var(--line) 0) 0 0 / 16px 12px repeat-x; }
.receipt::before { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; z-index: 1; background: linear-gradient(-45deg, transparent 7px, var(--paper) 0) 0 0 / 16px 10px repeat-x, linear-gradient(45deg, transparent 7px, var(--paper) 0) 0 0 / 16px 10px repeat-x; }
.receipt.has-strip::before { all: unset; }


/* ---------- Course Command ---------- */
.ov-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.ovs, .gpa-big, .mt, .gl { display: grid; gap: .1rem; padding: .8rem 1rem; border: var(--b); border-radius: 12px; background: var(--c); color: var(--inkx); box-shadow: var(--sh-sm); text-decoration: none; }
.ovs b, .mt b, .gl b { font: 800 1.9rem/1 var(--display); } .ovs span, .mt > span, .gl span { font: 700 .66rem var(--mono); text-transform: uppercase; } .mt small { opacity: .75; }
.ovs.c-violet, .gpa-big.c-violet, .mt.c-violet, .gl.c-violet { color: #fff; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.2rem; }
.course { display: flex; flex-direction: column; background: var(--paper); border: var(--b); border-radius: 14px; box-shadow: var(--sh); overflow: hidden; }
.cr-cover { position: relative; aspect-ratio: 16 / 9; background: var(--c); border-bottom: var(--b); display: grid; }
.cr-cover img { width: 100%; height: 100%; object-fit: cover; }
.cr-cover .pdrop { border: 0; border-radius: 0; background: var(--c); background-image: radial-gradient(rgb(0 0 0 / .1) 1.2px, transparent 1.6px); background-size: 12px 12px; }
.cr-code { position: absolute; left: 10px; bottom: -14px; z-index: 2; padding: .2rem .6rem; border: var(--b); border-radius: 8px; background: var(--c); color: var(--ct, var(--inkx)); font: 700 .78rem var(--mono); box-shadow: var(--sh-sm); }
.course.c-violet .cr-code { color: #fff; }
.cr-body { padding: 1.3rem 1rem 1rem; display: grid; gap: .3rem; }
.cr-body h3 { font: 800 1.2rem/1.1 var(--display); }
.cr-meta { margin: 0; font-size: .8rem; color: var(--ink2); }
.cr-grade { display: flex; gap: .7rem; align-items: center; margin-top: .4rem; }
.cr-letter { display: grid; place-items: center; width: 50px; height: 50px; border: var(--b); border-radius: 12px; background: var(--c); color: var(--ct, var(--inkx)); font: 800 1.5rem var(--display); box-shadow: var(--sh-sm); flex: none; }
.course.c-violet .cr-letter { color: #fff; }
.cr-grade span:last-child { display: grid; } .cr-grade small { color: var(--ink2); }
.cr-facts { list-style: none; margin: .3rem 0 0; padding: .5rem 0 0; border-top: 1.5px dashed var(--hair); display: grid; gap: .25rem; font-size: .8rem; }
.cr-facts li { display: block; } .cr-facts li > .ic { margin-right: .35rem; } .cr-facts .ic { color: var(--ink2); }
.course.new, .club.new { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center; padding: 1.4rem; border: 2px dashed var(--line); border-radius: 14px; background: var(--paper); min-height: 240px; }
.course.new:hover, .club.new:hover { background: var(--lime-s); } .course.new .ic { width: 28px; height: 28px; } .course.new b { font: 800 1.2rem var(--display); }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.dir-card { background: var(--paper); border: var(--b); border-radius: 14px; box-shadow: var(--sh); padding: 1rem; display: grid; gap: .7rem; border-top: 12px solid var(--c); }
.dir-card header { display: flex; align-items: center; gap: .5rem; } .dir-card h3 { flex: 1; font: 800 1.1rem var(--display); }
.dir-dl { margin: 0; display: grid; gap: .45rem; } .dir-dl div { display: grid; grid-template-columns: 130px 1fr; gap: .5rem; } .dir-dl dt { display: flex; gap: .35rem; align-items: center; font: 700 .68rem var(--mono); text-transform: uppercase; color: var(--ink2); } .dir-dl dd { margin: 0; font-size: .88rem; }
.dir-files { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; border-top: 1.5px dashed var(--hair); padding-top: .6rem; } .dir-files .kick { width: 100%; }
.gpa-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gpa-big b { font: 800 3rem/1 var(--display); } .gpa-big small { opacity: .8; }
.gpa-tbl td .input.sm { width: 5rem; } .gpa-tbl select.input.sm { width: 7.5rem; }


/* ---------- Deadlines & Planners ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: .9rem; overflow-x: auto; padding-bottom: .4rem; align-items: start; }
.kb-col { border: var(--b); border-radius: 14px; padding: .7rem; background: var(--paper); box-shadow: var(--sh-sm); min-height: 260px; display: flex; flex-direction: column; gap: .5rem; }
.kb-col header { display: flex; justify-content: space-between; align-items: center; padding: .1rem .2rem .4rem; border-bottom: var(--b); }
.kb-col h3 { font: 800 1.05rem var(--display); }
.kc-0 header { --hc: var(--paper3); } .kc-1 header { --hc: var(--butter); } .kc-2 header { --hc: var(--pink); } .kc-3 header { --hc: var(--lime); }
.kb-col header h3::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--inkx); background: var(--hc); margin-right: .4rem; vertical-align: -1px; }
.kb-n { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line); font: 700 .72rem var(--mono); }
.kb-list { display: grid; gap: .55rem; }
.kb-card { position: relative; display: grid; gap: .3rem; padding: .65rem .7rem .4rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--sh-sm); cursor: grab; }
.kb-card.u-late { background: var(--pink-s); } .kb-card.u-today, .kb-card.u-soon { background: var(--butter-s); } .kb-card.u-done { background: var(--lime-s); }
.kb-card .grip { position: absolute; top: 6px; right: 6px; color: var(--ink3); } .kb-card .grip .ic { width: 14px; height: 14px; }
.kb-top { display: flex; gap: .3rem; align-items: center; } .kb-type { font: 700 .62rem var(--mono); text-transform: uppercase; color: var(--ink2); }
.kb-t b { font-weight: 700; font-size: .9rem; }
.kb-meta { display: flex; justify-content: space-between; align-items: center; font: 700 .68rem var(--mono); } .kb-meta .due { display: flex; gap: .25rem; align-items: center; } .kb-card.u-late .due { color: var(--red); }
.wt { padding: .05rem .35rem; border-radius: 5px; background: var(--violet); color: #fff; }
.kb-score { display: flex; align-items: center; gap: .35rem; font: 700 .68rem var(--mono); } .kb-score .input { width: 4.4rem; }
.kb-move { display: flex; justify-content: space-between; margin: 0 -.3rem; }
.kb-empty { margin: 0; padding: 1rem; text-align: center; border: 2px dashed var(--hair); border-radius: 10px; font: 700 .7rem var(--mono); color: var(--ink3); text-transform: uppercase; }
.kb-col.drop-over { background: var(--lime-s); }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; }
.exam { display: grid; grid-template-columns: 110px 1fr; background: var(--paper); border: var(--b); border-radius: 14px; box-shadow: var(--sh); overflow: hidden; }
.ex-count { display: grid; place-content: center; text-align: center; background: var(--c); border-right: 2px dashed var(--inkx); color: var(--ct, var(--inkx)); }
.exam.c-violet .ex-count { color: #fff; } .ex-count b { font: 800 3.4rem/1 var(--display); } .ex-count span { font: 700 .7rem var(--mono); text-transform: uppercase; }
.ex-body { padding: .9rem 1rem; display: grid; gap: .3rem; } .ex-body h3 { font: 800 1.15rem var(--display); }
.ex-facts { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; font-size: .78rem; color: var(--ink2); margin: 0; }
.ex-body .btn { justify-self: start; }
.tb-nav { display: flex; gap: .5rem; align-items: center; } .tb-nav .pill { font-size: .85rem; }
.tb-day { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 1.2rem; align-items: start; }
.tb-side { display: grid; gap: 1rem; }
.tbg { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: repeat(var(--rows), 26px); position: relative; }
.tbg .tb-b { grid-column: 2; }
.tbg-h, .wkg-h { grid-column: 1; font: 700 .64rem var(--mono); color: var(--ink3); border-top: 1.5px solid var(--hair); padding-top: 3px; }
.tbg-slot, .wkg-slot { all: unset; grid-column: 2; border-top: 1.5px solid var(--hair); cursor: copy; } .tbg-slot:hover, .wkg-slot:hover { background: var(--lime-s); } .tbg-slot:focus-visible, .wkg-slot:focus-visible { outline: 2px solid var(--violet); }
.tb-b { all: unset; box-sizing: border-box; z-index: 1; margin: 2px 3px; padding: .3rem .55rem; border: 1.5px solid var(--inkx); border-radius: 8px; background: var(--c); color: var(--ct, var(--inkx)); box-shadow: 2px 2px 0 var(--inkx); cursor: pointer; display: grid; align-content: start; overflow: hidden; font-size: .78rem; }
.tb-b.c-violet { color: #fff; } .tb-b b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tb-b small { opacity: .8; font-size: .68rem; }
.tb-b.k-class { background-image: repeating-linear-gradient(-45deg, transparent 0 8px, rgb(255 255 255 / .3) 8px 12px); }
.tb-b:focus-visible { outline: 3px solid var(--violet); }
.tb-grid-card { padding: .8rem; }
.tb-adds { display: flex; flex-wrap: wrap; gap: .4rem; }
.tb-legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font: 700 .66rem var(--mono); text-transform: uppercase; color: var(--ink2); }
.tb-legend span { display: inline-flex; align-items: center; gap: .3rem; } .tb-legend i { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--inkx); background: var(--c); }
.due-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; } .due-l li { display: flex; gap: .4rem; align-items: center; font-size: .86rem; }
.tpl-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.tpl { display: inline-flex; align-items: center; }
.wk-scroll { overflow-x: auto; background: var(--paper); border: var(--b); border-radius: 14px; box-shadow: var(--sh); padding: .7rem; }
.wkg { display: grid; grid-template-columns: 44px repeat(7, minmax(110px, 1fr)); grid-template-rows: 34px repeat(var(--rows), 22px); min-width: 860px; }
.wkg-d { grid-row: 1; text-align: center; font: 700 .7rem var(--mono); text-transform: uppercase; padding-top: .3rem; } .wkg-d b { font: 800 1rem var(--display); }
.wkg-d.today { background: var(--lime); border: 1.5px solid var(--inkx); border-radius: 8px; }
.wkg-slot { grid-column: auto; } .wkg .tb-b { font-size: .7rem; padding: .2rem .4rem; } .wkg .tb-b small { display: none; }


/* ---------- The Study Room ---------- */
.notebooks { display: flex; gap: .8rem; overflow-x: auto; padding: .3rem .2rem .7rem; }
.notebook { all: unset; box-sizing: border-box; cursor: pointer; position: relative; flex: none; width: 140px; height: 170px; padding: 1rem .8rem .8rem 1.5rem; border: var(--b); border-radius: 6px 14px 14px 6px; background: var(--c); color: var(--ct, var(--inkx)); box-shadow: 4px 4px 0 var(--inkx); display: flex; flex-direction: column; justify-content: flex-end; transition: transform .15s; }
.notebook.c-violet { color: #fff; } .notebook.c-white { background: var(--paper); color: var(--ink); }
.notebook:hover { transform: translateY(-4px) rotate(-1deg); } .notebook.on { transform: translateY(-6px); box-shadow: 4px 8px 0 var(--inkx); outline: 3px solid var(--ink); outline-offset: 3px; }
.nb-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; border-right: var(--b); background: repeating-linear-gradient(transparent 0 10px, rgb(0 0 0 / .25) 10px 13px); }
.notebook b { font: 800 1.15rem/1.05 var(--display); } .notebook small { font: 700 .64rem var(--mono); text-transform: uppercase; opacity: .8; }
.nb-week { display: grid; gap: .6rem; }
.nw-h { display: flex; align-items: center; gap: .7rem; font: 800 1.1rem var(--display); } .nw-h::after { content: ""; flex: 1; border-top: 2px dashed rgb(0 0 0 / .3); }
.nb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.note-card { all: unset; box-sizing: border-box; cursor: pointer; display: grid; align-content: start; gap: .35rem; min-height: 170px; padding: .9rem 1rem 1rem 2.2rem; border: var(--b); border-radius: 6px; background-color: var(--paper); box-shadow: var(--sh-sm); background-image: linear-gradient(90deg, transparent 1.6rem, var(--pink) 1.6rem calc(1.6rem + 2px), transparent calc(1.6rem + 2px)), repeating-linear-gradient(transparent 0 calc(1.55rem - 1px), #D9E4F5 calc(1.55rem - 1px) 1.55rem); background-position: 0 0, 0 .55rem; }
.note-card:hover { transform: translate(-1px, -1px); box-shadow: var(--sh); } .note-card:focus-visible { outline: 3px solid var(--violet); }
.note-card b { font-weight: 800; } .note-card p { margin: 0; font-size: .84rem; line-height: 1.55rem; color: var(--ink2); }
.nc-top { display: flex; justify-content: space-between; align-items: center; } .nc-att { display: inline-flex; gap: .2rem; align-items: center; font: 700 .66rem var(--mono); }
.nc-tags { font: 700 .66rem var(--mono); color: var(--violet); }
[data-theme="nightowl"] .note-card, [data-theme="nightowl"] .pc-todo { background-image: none; }
.fc-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.4rem; align-items: center; padding: 1.4rem; background: var(--paper); border: var(--b); border-radius: 16px; box-shadow: var(--sh); }
.fc-hero h2 { font-size: 2.2rem; margin: .3rem 0; }
.leitner { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; align-items: end; }
.lb-box { display: grid; justify-items: center; gap: .1rem; padding: .7rem .3rem; border: var(--b); border-radius: 10px 10px 4px 4px; background: var(--lb); color: var(--inkx); text-align: center; box-shadow: var(--sh-sm); }
.lb-box b { font: 800 1.7rem/1 var(--display); } .lb-box span { font: 700 .66rem var(--mono); text-transform: uppercase; } .lb-box small { font-size: .64rem; opacity: .75; }
.lb-1 { --lb: var(--pink); min-height: 90px; } .lb-2 { --lb: var(--orange); min-height: 105px; } .lb-3 { --lb: var(--butter); min-height: 120px; } .lb-4 { --lb: var(--lime); min-height: 135px; } .lb-5 { --lb: var(--mint); min-height: 150px; }
.lb-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--inkx); background: var(--lb); color: var(--inkx); font: 700 .72rem var(--mono); flex: none; }
.fc-study { display: grid; gap: 1rem; justify-items: center; padding: 1.2rem; background: var(--paper); border: var(--b); border-radius: 16px; box-shadow: var(--sh); }
.fc-prog { display: flex; align-items: center; gap: .8rem; width: min(600px, 100%); font: 700 .74rem var(--mono); } .fc-prog .meter { flex: 1; }
.fc-card { all: unset; box-sizing: border-box; cursor: pointer; position: relative; width: min(600px, 100%); aspect-ratio: 5 / 3; perspective: 1200px; }
.fc-face { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 1.5rem; text-align: center; border: var(--b); border-radius: 16px; box-shadow: 6px 6px 0 var(--inkx); backface-visibility: hidden; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); background: var(--butter-s); color: var(--inkx); background-image: repeating-linear-gradient(transparent 0 29px, #E7D9A6 29px 30px); }
.fc-face b { font: 800 clamp(1.2rem, 2.6vw, 1.8rem)/1.2 var(--display); } .fc-face small { font: 700 .68rem var(--mono); text-transform: uppercase; opacity: .6; } .fc-face .kick { color: #333; }
.fc-back { transform: rotateY(180deg); background: var(--lime-s); background-image: none; } .fc-card.flipped .fc-front { transform: rotateY(-180deg); } .fc-card.flipped .fc-back { transform: rotateY(0); }
.fc-card:focus-visible .fc-face { outline: 3px solid var(--violet); outline-offset: 3px; }
.fc-btns { display: flex; gap: .8rem; } .fc-btns kbd { margin-left: .3rem; }
.fc-done { position: relative; text-align: center; padding: 2rem 1rem; background: var(--paper); border: var(--b); border-radius: 16px; box-shadow: var(--sh); }
.fc-score { font: 700 1.1rem var(--mono); } .fc-score b { font: 800 2.4rem var(--display); }
.fc-done .sticker { position: static; display: inline-block; }
.fc-add { display: grid; gap: .7rem; }
.fc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; max-height: 340px; overflow-y: auto; }
.fc-list li { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 1.5px dashed var(--hair); }
.fc-list .link-plain { flex: 1; min-width: 0; display: grid; } .fc-list small { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-block; padding: .1rem .45rem; border-radius: 6px; border: 1.5px solid var(--inkx); font: 700 .64rem var(--mono); text-transform: uppercase; background: var(--paper2); color: var(--inkx); }
.s-owned, .s-pdf { background: var(--lime); } .s-rented, .s-library { background: var(--sky); } .s-need { background: var(--pink); } .s-ordered { background: var(--butter); }
.reading-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.rn { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; }
.rn-cover { aspect-ratio: 2 / 3; border: var(--b); border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: var(--sh-sm); display: grid; } .rn-cover img { width: 100%; height: 100%; object-fit: cover; }
.rn-cover .cover-ph b { font-size: .9rem; }
.rn-t h3 { font: 800 1.2rem var(--display); margin: .2rem 0; } .rn-page { display: flex; align-items: center; gap: .4rem; font-size: .8rem; } .rn-page .input { width: 5rem; }
.rn-stat { display: grid; place-content: center; text-align: center; background: var(--c); color: var(--inkx); } .rn-stat b { font: 800 3.2rem/1 var(--display); } .rn-stat .kick { color: #333; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.4rem 1rem; }
.book { position: relative; display: grid; gap: .3rem; align-content: start; }
.bk-cover { all: unset; cursor: pointer; aspect-ratio: 2 / 3; border: var(--b); border-radius: 3px 10px 10px 3px; overflow: hidden; display: grid; box-shadow: 4px 4px 0 var(--inkx), inset 5px 0 0 rgb(0 0 0 / .15); transition: transform .15s; }
.bk-cover:hover { transform: translateY(-4px) rotate(-1.5deg); } .bk-cover img { width: 100%; height: 100%; object-fit: cover; } .bk-cover:focus-visible { outline: 3px solid var(--violet); }
.bk-cover .cover-ph b { white-space: normal; font-size: .95rem; text-align: center; }
.bk-st { position: absolute; top: 8px; right: -6px; padding: .12rem .45rem; border: 1.5px solid var(--inkx); border-radius: 5px; background: #fff; color: var(--inkx); font: 700 .58rem var(--mono); text-transform: uppercase; transform: rotate(4deg); }
.st-reading { background: var(--butter); } .st-read { background: var(--lime); } .st-dnf { background: var(--paper3); }
.bk-t { display: grid; } .bk-t b { font-weight: 700; font-size: .86rem; } .bk-t small { color: var(--ink2); }


/* ---------- Digital Archive ---------- */
.arch-now { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; }
.arch-now li { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .45rem .5rem; border: 1.5px solid var(--line); border-radius: 10px; }
.arch-now li b { flex: 1; min-width: 140px; }
.term { display: grid; gap: .8rem; } .term-h { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; } .term-h h2 { font-size: 1.6rem; }
.arch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.arch { display: grid; grid-template-columns: 100px 1fr; background: var(--paper); border: var(--b); border-radius: 12px; box-shadow: var(--sh-sm); overflow: hidden; }
.arch-cover { position: relative; border-right: var(--b); display: grid; background: var(--c); } .arch-cover img { width: 100%; height: 100%; object-fit: cover; } .arch-cover .cover-ph b { font-size: .8rem; }
.arch-grade { position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: var(--b); background: #fff; color: var(--inkx); font: 800 1.1rem var(--display); box-shadow: var(--sh-sm); }
.arch-b { padding: .7rem .8rem; display: grid; gap: .2rem; } .arch-b small { color: var(--ink2); } .arch-f { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: .2rem 0; font-size: .78rem; }
.vault { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.6rem 1.2rem; padding-top: .8rem; }
.vdoc { position: relative; background: var(--fc); border: var(--b); border-radius: 0 12px 12px 12px; box-shadow: var(--sh); padding: .9rem; display: grid; gap: .7rem; color: var(--inkx); }
.vd-tab { position: absolute; left: -2px; top: -26px; padding: .25rem .8rem; border: var(--b); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--fc); font: 700 .66rem var(--mono); text-transform: uppercase; }
.vd-body { display: flex; gap: .8rem; align-items: center; } .vd-body > div { display: grid; } .vd-body small { opacity: .75; }
.vd-ic { flex: none; display: grid; place-items: center; width: 52px; height: 64px; border: var(--b); border-radius: 6px; background: #fff; overflow: hidden; } .vd-ic img { width: 100%; height: 100%; object-fit: cover; } .vd-ic .ic { width: 24px; height: 24px; }
.vd-files { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; } .vd-files .pdrop { background: rgb(255 255 255 / .6); }
[data-theme="nightowl"] .vdoc .link-plain b { color: var(--inkx); }
.aud-hero { display: grid; grid-template-columns: 180px 1fr; gap: 1.4rem; align-items: center; }
.aud-ring { position: relative; width: 170px; aspect-ratio: 1; border-radius: 50%; border: var(--b); background: conic-gradient(var(--lime) calc(var(--p) * 1%), var(--butter) 0 calc(var(--p2) * 1%), var(--paper3) 0); display: grid; place-content: center; text-align: center; box-shadow: var(--sh); }
.aud-ring::before { content: ""; position: absolute; inset: 24px; border-radius: 50%; background: var(--paper); border: var(--b); }
.aud-ring b, .aud-ring small { position: relative; } .aud-ring b { font: 800 2.2rem/1 var(--display); } .aud-ring small { font: 700 .62rem var(--mono); text-transform: uppercase; }
.aud-t h2 { font-size: 1.8rem; } .aud-in { display: flex; flex-wrap: wrap; gap: 1rem; margin: .6rem 0; } .aud-in label { display: grid; gap: .2rem; font: 700 .66rem var(--mono); text-transform: uppercase; } .aud-in .input { width: 6rem; }
.aud-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.req-l { list-style: none; margin: .4rem 0 .6rem; padding: 0; display: grid; gap: .3rem; }
.req-l li { display: flex; gap: .6rem; align-items: center; padding: .35rem 0; border-bottom: 1.5px dashed var(--hair); }
.req-l .link-plain { flex: 1; display: grid; } .req-l small { color: var(--ink2); }
.req-cb { all: unset; box-sizing: border-box; cursor: pointer; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line); color: transparent; }
.req-l li.done .req-cb { background: var(--lime); color: var(--inkx); } .req-l li.done b { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .6; } .req-l li.doing .req-cb { background: var(--butter-s); }


/* ---------- Student ID & Career ---------- */
.id-layout { display: grid; grid-template-columns: minmax(340px, 520px) 1fr; gap: 1.6rem; align-items: start; }
.sid-wrap { display: grid; gap: .9rem; }
.sid { position: relative; aspect-ratio: 1.586; border: 2.5px solid var(--inkx); border-radius: 22px; box-shadow: 8px 8px 0 var(--inkx); overflow: hidden; color: var(--inkx); container-type: inline-size; }
.sid-face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 5cqi 5.5cqi 4cqi;
  background: radial-gradient(circle at 92% 8%, var(--butter) 0 13%, transparent 13.5%), radial-gradient(circle at 105% 105%, var(--pink) 0 30%, transparent 30.5%), linear-gradient(135deg, var(--lilac) 0%, #E8DEFF 55%, #FFE2EB 100%); }
.sid-face::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(17 17 17 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(17 17 17 / .06) 1px, transparent 1px); background-size: 4.5cqi 4.5cqi; pointer-events: none; }
.sid-top { position: relative; display: flex; justify-content: space-between; align-items: center; }
.sid-uni { font: 800 4.2cqi/1 var(--display); letter-spacing: -.02em; padding: 1cqi 2.2cqi; background: #fff; border: 2px solid var(--inkx); border-radius: 2cqi; box-shadow: 2px 2px 0 var(--inkx); max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sid-chip { width: 11cqi; height: 8.5cqi; border-radius: 1.8cqi; border: 2px solid var(--inkx); background: linear-gradient(90deg, transparent 32%, var(--inkx) 32% 36%, transparent 36% 64%, var(--inkx) 64% 68%, transparent 68%), linear-gradient(transparent 45%, var(--inkx) 45% 55%, transparent 55%), linear-gradient(135deg, #F5D06A, #E0A93B); }
.sid-main { position: relative; flex: 1; display: grid; grid-template-columns: 26cqi 1fr; gap: 4.5cqi; align-items: center; margin-top: 2.5cqi; min-height: 0; }
.sid-photo { position: relative; aspect-ratio: 4 / 5; border: 2.5px solid var(--inkx); border-radius: 3cqi; overflow: hidden; background: #fff; cursor: pointer; box-shadow: 3px 3px 0 var(--inkx); display: grid; }
.sid-photo img { width: 100%; height: 100%; object-fit: cover; }
.sid-ph { display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center; background: repeating-linear-gradient(45deg, #fff 0 8px, #F4F1EA 8px 16px); } .sid-ph .ic { width: 12cqi; height: 12cqi; } .sid-ph small { font: 700 2.6cqi var(--mono); text-transform: uppercase; }
.sid-cam { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 7.5cqi; height: 7.5cqi; border-radius: 50%; background: var(--lime); border: 2px solid var(--inkx); } .sid-cam .ic { width: 4cqi; height: 4cqi; }
.sid-photo:hover .sid-cam { background: var(--butter); } .sid-photo:focus-within { outline: 3px solid var(--violet); }
.sid-info { display: grid; align-content: center; gap: .2rem; min-width: 0; }
.sid-label { justify-self: start; font: 700 2.4cqi var(--mono); text-transform: uppercase; letter-spacing: .12em; padding: .5cqi 1.6cqi; background: var(--inkx); color: #fff; border-radius: 1.2cqi; }
.sid-name { font: 800 6.4cqi/1 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.sid-pro { font: 700 2.6cqi var(--mono); }
.sid-info dl { margin: 1.5cqi 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqi 2cqi; }
.sid-info dt { font: 700 2.1cqi var(--mono); text-transform: uppercase; opacity: .65; } .sid-info dd { margin: 0; font: 700 3cqi/1.15 var(--sans); overflow-wrap: anywhere; }
.sid-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 3cqi; margin-top: 2cqi; font: 700 2.6cqi var(--mono); }
.barcode { height: 5.5cqi; width: 36cqi; fill: var(--inkx); background: #fff; padding: 2px 4px; border: 1.5px solid var(--inkx); border-radius: 4px; }
.sid-back { background: linear-gradient(135deg, var(--inkx) 0 100%); color: #fff; justify-content: center; gap: 3cqi; }
.sid-back::before { background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px); }
.sid-back .sid-label { background: var(--lime); color: var(--inkx); position: relative; }
.sid-stats { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqi; }
.sid-stats li { display: grid; padding: 2cqi; border: 2px solid #fff; border-radius: 2cqi; } .sid-stats b { font: 800 6cqi/1 var(--display); color: var(--lime); } .sid-stats span { font: 700 2.2cqi var(--mono); text-transform: uppercase; }
.sid-back p { position: relative; margin: 0; font-size: 3cqi; } .sid-brand { font: 700 2.4cqi var(--mono) !important; text-transform: uppercase; opacity: .6; }
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.glance-l { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .4rem; } .glance-l li { display: flex; gap: .4rem; align-items: center; font-size: .86rem; }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: .9rem; overflow-x: auto; align-items: start; }
.ap-col { border: var(--b); border-radius: 14px; padding: .7rem; background: var(--paper); box-shadow: var(--sh-sm); min-height: 260px; display: grid; align-content: start; gap: .55rem; }
.ap-col header { display: flex; justify-content: space-between; align-items: center; padding-bottom: .4rem; border-bottom: var(--b); } .ap-col h3 { font: 800 1.05rem var(--display); }
.pc-0 header h3::before, .pc-1 header h3::before, .pc-2 header h3::before, .pc-3 header h3::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--inkx); margin-right: .4rem; vertical-align: -1px; background: var(--sky); }
.pc-1 header h3::before { background: var(--butter); } .pc-2 header h3::before { background: var(--lime); } .pc-3 header h3::before { background: var(--paper3); }
.ap-col.drop-over { background: var(--lime-s); }
.ap-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .2rem .6rem; padding: .65rem .7rem .4rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--sh-sm); cursor: grab; }
.ap-card .grip { position: absolute; top: 6px; right: 6px; color: var(--ink3); } .ap-card .grip .ic { width: 14px; height: 14px; }
.ap-logo { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid var(--inkx); background: var(--orange); color: var(--inkx); font: 800 1.1rem var(--display); }
.ap-t { display: grid; } .ap-t b { font-weight: 800; } .ap-t span { font-size: .8rem; color: var(--ink2); }
.ap-meta, .ap-next { grid-column: 1 / -1; font: 700 .64rem var(--mono); text-transform: uppercase; color: var(--ink2); display: flex; gap: .25rem; align-items: center; } .ap-next.late { color: var(--red); }
.ap-card .kb-move { grid-column: 1 / -1; }
.docs { display: grid; grid-template-columns: 260px 1fr; gap: 1.2rem; align-items: start; }
.doc-list { background: var(--paper); border: var(--b); border-radius: 14px; box-shadow: var(--sh-sm); padding: .8rem; display: grid; gap: .8rem; }
.doc-new { display: flex; flex-wrap: wrap; gap: .35rem; } .doc-new .kick { width: 100%; }
.doc-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.doc-li { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: .55rem; align-items: center; width: 100%; padding: .5rem .55rem; border-radius: 9px; border: 1.5px solid transparent; }
.doc-li span { display: grid; min-width: 0; } .doc-li b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .doc-li small { color: var(--ink2); font-size: .72rem; }
.doc-li:hover { background: var(--paper2); } .doc-li.on { background: var(--lime-s); border-color: var(--line); } .doc-li:focus-visible { outline: 3px solid var(--violet); }
.doc-ed { background: var(--paper2); border: var(--b); border-radius: 14px; box-shadow: var(--sh); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
.doc-ed.empty { padding: 2rem; }
.doc-bar { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; background: var(--paper); border-bottom: var(--b); }
.doc-title { all: unset; font: 800 1.15rem var(--display); min-width: 0; flex: 1; }
.doc-title:focus { box-shadow: 0 2px 0 var(--violet); }
.doc-status { font: 700 .64rem var(--mono); text-transform: uppercase; color: var(--ink3); }
.doc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: .35rem .6rem; background: var(--paper); border-bottom: 1.5px solid var(--hair); }
.doc-tools button { all: unset; cursor: pointer; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 .35rem; border-radius: 7px; color: var(--ink); font-size: .92rem; }
.doc-tools button:hover { background: var(--lime-s); } .doc-tools button:focus-visible { outline: 2px solid var(--violet); }
.doc-tools .tl { font: 700 .74rem var(--mono); } .doc-tools .tl.h { font: 800 .86rem var(--display); } .doc-tools .ic { width: 16px; height: 16px; }
.doc-tools .sep { width: 1.5px; height: 20px; background: var(--hair); margin: 0 .3rem; }
.doc-words { font: 700 .64rem var(--mono); text-transform: uppercase; color: var(--ink3); }
.doc-desk { padding: 1.6rem 1rem 2.4rem; overflow: auto; max-height: 76vh; background: var(--paper3); }
.doc-page { box-sizing: border-box; width: min(760px, 100%); min-height: 900px; margin: 0 auto; padding: 64px 72px; background: #fff; color: #1d1d1f; box-shadow: 0 1px 3px rgb(0 0 0 / .15), 0 10px 30px -10px rgb(0 0 0 / .25); border-radius: 3px; font: 400 15px/1.6 "Inter", Arial, sans-serif; outline: none; }
.doc-page:focus { box-shadow: 0 0 0 3px var(--violet), 0 10px 30px -10px rgb(0 0 0 / .25); }
.doc-page h1 { font: 700 26px/1.2 "Inter", Arial, sans-serif; letter-spacing: -.01em; margin: 0 0 6px; } .doc-page h2 { font: 700 13px/1.3 "Inter", Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; margin: 22px 0 6px; padding-bottom: 4px; border-bottom: 1.5px solid #ddd; }
.doc-page h3 { font: 700 15px "Inter", Arial, sans-serif; margin: 14px 0 4px; } .doc-page p { margin: 0 0 8px; } .doc-page ul, .doc-page ol { margin: 0 0 8px; padding-left: 22px; } .doc-page blockquote { margin: 8px 0; padding-left: 14px; border-left: 3px solid #ccc; color: #555; }
body.doc-zen .topbar, body.doc-zen .hub-head, body.doc-zen .ftabs, body.doc-zen .doc-list, body.doc-zen .foot, body.doc-zen .demo-band { display: none; }
body.doc-zen .tab-body { background: var(--paper3); border: 0; box-shadow: none; padding: 0; } body.doc-zen .docs { grid-template-columns: 1fr; } body.doc-zen .doc-desk { max-height: none; min-height: 100vh; } body.doc-zen .hub { padding: 0; max-width: none; }
.crm td { white-space: nowrap; } .crm td:first-child { display: flex; align-items: center; gap: .5rem; }
.av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--inkx); background: var(--c); color: var(--inkx); font: 800 .8rem var(--display); flex: none; }


/* ---------- Focus & Flow ---------- */
.pomo-layout { display: grid; grid-template-columns: minmax(320px, 440px) 1fr; gap: 1.4rem; align-items: start; }
.pomo { display: grid; gap: 1.1rem; justify-items: center; padding: 1.4rem; background: var(--paper); border: var(--b); border-radius: 18px; box-shadow: var(--sh); }
.pomo-ring { --rc: var(--violet); width: min(280px, 80%); aspect-ratio: 1; border-radius: 50%; border: var(--b); background: conic-gradient(var(--rc) calc(var(--p) * 1%), var(--paper3) 0); display: grid; place-items: center; box-shadow: 6px 6px 0 var(--inkx); }
.pomo.m-short .pomo-ring, .pomo.m-long .pomo-ring { --rc: var(--mint); }
.pomo-face { width: 78%; aspect-ratio: 1; border-radius: 50%; border: var(--b); background: var(--paper); display: grid; place-content: center; text-align: center; }
.pomo-face b { font: 800 clamp(2.6rem, 6vw, 3.6rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .pomo-face small { font: 700 .66rem var(--mono); text-transform: uppercase; color: var(--ink2); }
.pomo-btns { display: flex; gap: .5rem; align-items: center; }
.pomo-what { display: grid; grid-template-columns: 1.4fr 1fr; gap: .6rem; width: 100%; }
.pomo-set { width: 100%; font: 700 .7rem var(--mono); text-transform: uppercase; } .pomo-set summary { cursor: pointer; } .pomo-set .inline { margin-top: .5rem; } .pomo-set .input { width: 5rem; }
.pomo-side { display: grid; gap: 1.2rem; }
.dw-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-bottom: .6rem; font-size: .84rem; } .dw-stats b { font: 800 1.4rem var(--display); }
.by-course { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; } .by-course li { display: grid; grid-template-columns: 90px 1fr 50px; gap: .6rem; align-items: center; font-size: .82rem; } .by-course .meter { margin: 0; }
.playlists { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.2rem; }
.pl-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.pl-embed { width: 100%; height: 352px; border: 0; border-radius: 12px; background: var(--paper3); display: block; }
.checkin { display: grid; gap: .9rem; } .checkin h2 { font-size: 1.6rem; }
.ci-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .4rem 0; border-bottom: 1.5px dashed var(--hair); }
.ci-row > span { font: 700 .72rem var(--mono); text-transform: uppercase; }
.ci-sleep { display: flex; align-items: center; gap: .4rem; } .ci-sleep .input { width: 5rem; }
.lvl { display: flex; align-items: center; gap: 4px; } .lv { all: unset; cursor: pointer; width: 26px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); background: var(--paper); }
.lv.on { background: var(--violet); } .lv:focus-visible { outline: 2px solid var(--violet); } .lvl small { min-width: 5.5rem; text-align: right; font: 700 .68rem var(--mono); text-transform: uppercase; color: var(--ink2); }
.burn-g { display: flex; gap: 1rem; align-items: center; margin: .6rem 0; } .burn-g h2 { font-size: 1.4rem; }
.gauge { flex: none; width: 110px; aspect-ratio: 1; border-radius: 50%; border: var(--b); background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--paper3) 0); display: grid; place-items: center; position: relative; box-shadow: var(--sh-sm); }
.gauge::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--paper); border: var(--b); } .gauge b { position: relative; font: 800 1.8rem var(--display); }


/* ---------- Settings and the guide ---------- */
.set-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.box { margin-bottom: 1.2rem; } .box h2 { margin-bottom: .6rem; } .box-head { display: flex; justify-content: space-between; align-items: center; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1.5px dashed var(--hair); flex-wrap: wrap; }
.sr-t { display: grid; } .sr-t small { color: var(--ink2); } .set-in { width: min(240px, 100%); } .set-save { display: flex; justify-content: flex-end; margin-top: .8rem; }
.tsizes { display: flex; gap: 4px; } .tsizes button { all: unset; cursor: pointer; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; border: var(--b); font-family: var(--display); font-weight: 800; }
.tsizes button[aria-pressed="true"] { background: var(--inkx); color: #fff; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.guide-card { position: relative; display: grid; gap: .3rem; align-content: start; padding: 1rem; border: var(--b); border-radius: 14px; background: var(--paper); box-shadow: var(--sh); text-decoration: none; border-top: 12px solid var(--c); transition: transform .12s; }
.guide-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.g-n { position: absolute; top: .6rem; right: .8rem; font: 700 .72rem var(--mono); color: var(--ink3); }
.g-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c); border: var(--b); color: var(--inkx); } .g-ic .ic { width: 20px; height: 20px; }
.guide-card b { font: 800 1.15rem var(--display); } .guide-card p { margin: 0; color: var(--ink2); }
.flows, .keys-l { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; } .flows li { padding-left: 1.2rem; position: relative; font-size: .88rem; } .flows li::before { content: "→"; position: absolute; left: 0; font-weight: 800; color: var(--violet); }
.keys-l li { display: flex; gap: .6rem; align-items: center; font-size: .86rem; }


/* ---------- Charts ---------- */
.chart { margin: 0; } .chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--hair); stroke-width: 1.5; stroke-dasharray: 3 4; } .chart .base { stroke: var(--line); stroke-width: 2; }
.chart .axis { fill: var(--ink2); font: 700 11px var(--mono); }
.chart .hit { fill: transparent; } .chart .mark:focus { outline: none; } .chart .mark:hover .bar-mark { opacity: .8; }
.c1 { --c: var(--violet); } .c2 { --c: var(--lime); } .c3 { --c: var(--sky); } .c4 { --c: var(--pink); } .c5 { --c: var(--butter); } .c6 { --c: var(--orange); }
.bar-mark { fill: var(--c, var(--violet)); stroke: var(--line); stroke-width: 1.5; } .line-mark { fill: none; stroke: var(--c, var(--violet)); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; } .dot-mark { fill: var(--paper); stroke: var(--line); stroke-width: 2; }
.donut-seg { fill: var(--c); stroke: var(--line); stroke-width: 1.5; } .donut-empty { fill: none; stroke: var(--paper3); }
.donut { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; } .donut-wrap { position: relative; width: 170px; flex: none; } .donut-wrap svg { width: 100%; }
.donut-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .donut-mid b { font: 800 1.3rem var(--display); } .donut-mid span { font: 700 .62rem var(--mono); text-transform: uppercase; color: var(--ink2); }
.donut-key { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .84rem; } .donut-key li { display: flex; gap: .5rem; align-items: center; } .donut-key b { margin-left: auto; padding-left: .8rem; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .6rem; font: 700 .68rem var(--mono); text-transform: uppercase; color: var(--ink2); }
.legend span { display: flex; align-items: center; gap: .35rem; } .key { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--c); border: 1.5px solid var(--line); }
.tip { position: fixed; z-index: 4500; transform: translate(-50%, -100%); background: var(--inkx); color: #fff; padding: .35rem .6rem; border-radius: 7px; font: 700 .74rem var(--mono); pointer-events: none; white-space: nowrap; }


/* ---------- Modal, toasts, photos, feedback ---------- */
dialog#modal { border: var(--b); border-radius: 18px; padding: 0; background: var(--paper); color: var(--ink); width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); box-shadow: 8px 8px 0 var(--inkx); }
dialog#modal.narrow { width: min(460px, calc(100vw - 24px)); } dialog#modal.photo { width: min(1100px, calc(100vw - 16px)); background: #15151C; color: #fff; }
dialog#modal::backdrop { background: rgb(17 17 17 / .45); backdrop-filter: blur(3px); }
.modal-inner { position: relative; display: flex; flex-direction: column; max-height: calc(100dvh - 36px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1rem .4rem 1.4rem; border-bottom: var(--b); background: var(--lime); color: var(--inkx); }
.modal-head h2 { font-size: 1.4rem; } .modal-head .icon-btn { color: var(--inkx); }
.modal-body { padding: 1.1rem 1.4rem; overflow-y: auto; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .9rem 1.4rem 1.2rem; border-top: 1.5px dashed var(--hair); } .modal-foot .right { display: flex; gap: .5rem; margin-left: auto; }
.quick-modal { padding: 1.3rem 1.4rem 1.4rem; overflow-y: auto; gap: .9rem; } .q-h { font-size: 1.7rem; } .lm-close { position: absolute; top: .7rem; right: .7rem; }
.q-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border: var(--b); border-radius: 12px; }
.q-tab { all: unset; cursor: pointer; display: grid; justify-items: center; gap: .15rem; padding: .45rem .2rem; border-radius: 8px; font: 700 .62rem var(--mono); text-transform: uppercase; color: var(--ink2); text-align: center; } .q-tab .ic { width: 18px; height: 18px; }
.q-tab[aria-selected="true"] { background: var(--inkx); color: #fff; }
.q-form { display: grid; gap: .8rem; } .dump-in { font-size: 1rem; min-height: 8rem; }
#toasts { position: fixed; z-index: 3000; left: 50%; bottom: 1.4rem; transform: translateX(-50%); display: flex; flex-direction: column-reverse; gap: .5rem; align-items: center; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .7rem; align-items: center; background: var(--inkx); color: #fff; padding: .75rem 1rem; border-radius: 12px; border: 2px solid var(--inkx); box-shadow: 4px 4px 0 var(--violet); font-weight: 600; font-size: .88rem; width: 100%; animation: toastIn .3s cubic-bezier(.2, 1.4, .4, 1); }
.toast::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--lime); color: var(--inkx); font-weight: 800; }
.toast.err::before { content: "!"; background: var(--pink); } .toast button { all: unset; cursor: pointer; color: var(--lime); font-weight: 800; margin-left: auto; }
@keyframes toastIn { from { transform: translateY(16px) scale(.96); opacity: 0; } }
img.missing { background: repeating-linear-gradient(45deg, var(--paper2) 0 8px, var(--hair) 8px 16px); }
.ed-photos { display: flex; flex-wrap: wrap; gap: .6rem; }
.ed-ph { position: relative; margin: 0; width: 100px; height: 100px; border-radius: 10px; overflow: hidden; border: var(--b); } .ed-ph img { width: 100%; height: 100%; object-fit: cover; }
.ed-ph .icon-btn { position: absolute; top: 4px; right: 4px; background: #fff; width: 26px; height: 26px; color: var(--inkx); }
.ed-ph .pdf-chip { display: grid; place-content: center; height: 100%; background: var(--orange-s); font: 700 .7rem var(--mono); }
.ed-add { width: 100px; height: 100px; border: 2px dashed var(--line); border-radius: 10px; display: grid; place-content: center; justify-items: center; gap: .3rem; text-align: center; cursor: pointer; font: 700 .64rem var(--mono); text-transform: uppercase; padding: .4rem; background: var(--butter-s); }
.ed-add .ic { width: 22px; height: 22px; } .ed-add.busy { opacity: .6; }
.pdf-chip { display: inline-flex; gap: .3rem; align-items: center; }
.lightbox { position: relative; padding: 2.8rem 3.2rem 1.2rem; } .lightbox figure { margin: 0; }
.lightbox img { max-height: calc(100dvh - 200px); width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; border: 3px solid #fff; border-radius: 6px; }
.lightbox figcaption { display: flex; gap: 1rem; justify-content: center; align-items: baseline; padding: .8rem 0 0; flex-wrap: wrap; } .lightbox .hand { font: 800 1.2rem var(--display); }
.lightbox .icon-btn { color: #fff; } .lightbox .icon-btn:hover { background: rgb(255 255 255 / .12); }
.lb-close { position: absolute; top: .6rem; right: .6rem; } .lb-prev, .lb-next { position: absolute; top: 45%; } .lb-prev { left: .4rem; } .lb-next { right: .4rem; }
.lb-tools { display: flex; justify-content: center; gap: .5rem; margin-top: .8rem; } .lb-tools .btn { --bb: #fff; color: var(--inkx); } .lb-tools .btn.ghost { --bb: transparent; color: #fff; }
.pop { position: fixed; z-index: 4000; pointer-events: none; width: 0; height: 0; } .pop i { position: absolute; width: 9px; height: 9px; border-radius: 2px; border: 1px solid var(--inkx); animation: popOut .9s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes popOut { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 30px)) rotate(var(--r)) scale(.6); opacity: 0; } }
.confetti { position: fixed; inset: 0; z-index: 4000; pointer-events: none; overflow: hidden; } .confetti i { position: absolute; top: -20px; width: 11px; height: 15px; border-radius: 3px; border: 1px solid var(--inkx); animation: fall var(--d) cubic-bezier(.25, .6, .45, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x), 108vh) rotate(var(--r)); } }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 5000; pointer-events: none; box-shadow: 8px 8px 0 var(--inkx) !important; opacity: .95; }
body.is-dragging { cursor: grabbing; user-select: none; } .dragging { opacity: .35; } .drop-over { outline: 3px dashed var(--violet) !important; outline-offset: 2px; }
:root { --yellow: var(--butter); --lav: var(--violet); --mint2: var(--mint); --peach: var(--orange); }


/* ---------- Sign in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.auth-art { position: relative; overflow: hidden; display: grid; align-content: end; padding: clamp(1.6rem, 4vw, 3.4rem); border-right: var(--b); background: #C99863; background-image: radial-gradient(circle at 70% 60%, rgb(90 55 25 / .35) 0 1.4px, transparent 2px), radial-gradient(circle at 20% 30%, rgb(255 255 255 / .14) 0 1.5px, transparent 2px); background-size: 13px 7px, 9px 11px; box-shadow: inset 0 0 0 14px #B98552; }
.aa-board { position: absolute; inset: 0; }
.aa-note { position: absolute; padding: 1.2rem 1rem; width: 170px; background: var(--butter); border: 1.5px solid var(--inkx); font: 700 .95rem var(--sans); box-shadow: 3px 6px 0 rgb(0 0 0 / .5); color: var(--inkx); }
.aa-note.n1 { top: 12%; left: 10%; transform: rotate(-5deg); } .aa-note.n2 { top: 16%; right: 12%; background: var(--pink); transform: rotate(4deg); } .aa-note.n3 { top: 44%; left: 46%; background: var(--lime); transform: rotate(-2deg); }
.aa-pol { position: absolute; top: 36%; left: 12%; width: 150px; padding: 8px 8px 0; background: #fff; border: 1.5px solid var(--inkx); transform: rotate(6deg); box-shadow: 3px 6px 0 rgb(0 0 0 / .5); } .aa-pol i { display: block; aspect-ratio: 1; background: radial-gradient(circle at 30% 30%, #FFD84D 0 18%, transparent 19%), linear-gradient(#63B3FF 55%, #6FD6A0 55%); } .aa-pol b { display: block; padding: .4rem 0 .5rem; text-align: center; font: 700 .72rem var(--mono); color: var(--inkx); }
.aa-over { position: relative; z-index: 2; padding: 1.4rem; background: var(--paper); border: var(--b); border-radius: 18px; box-shadow: 8px 8px 0 var(--inkx); max-width: 520px; }
.aa-lede { margin: .9rem 0; font-size: 1.02rem; color: var(--ink2); }
.aa-keys { display: flex; flex-wrap: wrap; gap: .4rem; }
.auth-form { display: grid; place-items: center; padding: 2rem 1.2rem; }
.auth-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 1rem; background: var(--paper); border: var(--b); border-radius: 18px; padding: 1.8rem; box-shadow: var(--sh); }
.auth-card h2 { font-size: 2.2rem; } .key-input { letter-spacing: .08em; text-transform: uppercase; font-family: var(--mono) !important; }


/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .search { width: 140px; }
}
@media (max-width: 1100px) {
  .home-grid { grid-template-columns: 1fr; } .hg-side { grid-template-columns: 1fr 1fr; } .hg-side .semcover, .hg-side .mini-stats { grid-column: auto; }
  .two-col, .two-col.wide-left, .two-col.wide-right, .three-col, .tb-day, .pomo-layout, .id-layout, .set-cols, .aud-groups { grid-template-columns: 1fr; }
  .fc-hero { grid-template-columns: 1fr; } .ov-stats, .aid-top { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-art { min-height: 60vh; border-right: 0; border-bottom: var(--b); }
}
@media (max-width: 720px) {
  body { font-size: .92rem; }
  .tb-row { flex-wrap: wrap; gap: .5rem; padding: .5rem .7rem .4rem; }
  .hk { flex: none; padding: .42rem .6rem .4rem; } .search { display: none; } .tb-date { display: none; }
  .hub { padding: 1rem .7rem 2rem; } .tab-body { padding: 1rem .6rem 1.1rem; border-radius: 0 14px 14px 14px; gap: 1rem; }
  .card { padding: 1rem; } .card.has-strip { padding-top: 1.45rem; } .hh-title { font-size: 2.2rem; }
  .hg-side { grid-template-columns: 1fr; }
  .board { min-height: 0; } .board-help { font-size: .62rem; }
  .ov-stats, .gpa-top, .money-tiles, .aid-top, .glance { grid-template-columns: 1fr 1fr; } .money-tiles .mt:last-child { grid-column: 1 / -1; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .dir-dl div { grid-template-columns: 1fr; gap: .1rem; }
  .exam { grid-template-columns: 84px 1fr; } .ex-count b { font-size: 2.4rem; }
  .docs { grid-template-columns: minmax(0, 1fr); } .docs > * { min-width: 0; } .mp-grid { grid-template-columns: 48px repeat(3, 170px); } .doc-page { padding: 28px 22px; min-height: 600px; font-size: 14px; } .doc-title { max-width: none; flex: 1; } .doc-desk { padding: .8rem .4rem 1.4rem; }
  .groc-list { columns: 1; } .pomo-what { grid-template-columns: 1fr; }
  .aud-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .aud-in { justify-content: center; }
  .cal-d { min-height: 58px; } .cal-e { font-size: .56rem; }
  .arch { grid-template-columns: 84px 1fr; }
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .leitner { gap: .3rem; } .lb-box small { display: none; }
  .playlists { grid-template-columns: 1fr; }
  .lightbox { padding: 2.6rem .6rem 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; } }
@media (max-width: 1240px) and (min-width: 721px) { .hk { padding: .45rem .5rem .42rem; font-size: .64rem; gap: .3rem; } .hkeys { gap: .35rem; } .hk .ic { width: 14px; height: 14px; } }
.ci-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; align-items: start; }
.board .pc:hover, .board .pc:focus-within, .board .pc:focus { z-index: 900 !important; }

label.btn.busy { opacity: .6; pointer-events: none; }

.link-strong { all: unset; cursor: pointer; font-weight: 600; }
 .link-strong:hover { text-decoration: underline; text-underline-offset: 3px; }
 .link-strong:focus-visible { outline: 2.5px solid var(--ink); }

.seg { display: inline-flex; padding: 3px; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); gap: 2px; flex-wrap: wrap; }

.seg button { all: unset; cursor: pointer; display: inline-flex; gap: .35rem; align-items: center; padding: .38rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ink2); }

.seg button .ic { width: 15px; height: 15px; }

.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.seg button:focus-visible { outline: 2.5px solid var(--ink); }

.seg button[disabled] { opacity: .35; pointer-events: none; }

.t1 { --tc: var(--sky-s); }
 .t2 { --tc: var(--pink-s); }
 .t3 { --tc: var(--butter-s); }
 .t4 { --tc: var(--mint-s); }
 .t5 { --tc: var(--lilac-s); }
 .t6 { --tc: var(--orange-s); }

.hash { font-size: .76rem; color: var(--ink); font-weight: 600; }

/* The scalloped cloud label */
.cloud { --tc: var(--sky-s); position: relative; display: inline-grid; place-items: center; padding: .38rem .95rem; font: 600 .74rem/1.1 var(--display); letter-spacing: .01em; color: var(--inkx); isolation: isolate; white-space: nowrap; }

.cloud::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--tc); border: 2px solid var(--line); border-radius: 999px;
  border-radius: 40% 60% 55% 45% / 60% 45% 55% 40%; }

.plain .cloud::before { border-radius: 999px; }

textarea.input { resize: vertical; line-height: 1.55; }

select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }

@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.quick { display: flex; gap: .35rem; align-items: center; padding: .2rem .2rem .2rem .2rem; margin-top: .4rem; }

.quick .input { padding: .5rem .75rem; border-style: dashed; }

.quick .icon-btn { background: var(--paper2); border-color: var(--hair); }

.toolbar { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }

.search { max-width: 320px; border-radius: 999px; }

.sets { display: grid; gap: .35rem; }



/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 1.2rem; align-content: start; }

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.grid.main-side { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }

.grid.side-main { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }

.grid.three-one { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); margin-bottom: 1.2rem; }

.grid.home-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }

@media (max-width: 960px) { .grid.two, .grid.three, .grid.main-side, .grid.side-main, .grid.three-one, .grid.home-grid { grid-template-columns: minmax(0, 1fr); } }

.card-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

.empty { display: grid; justify-items: center; gap: .6rem; padding: 2.2rem 1.2rem; text-align: center; border: 2px dashed color-mix(in srgb, var(--line) 35%, var(--hair)); border-radius: var(--r); background: color-mix(in srgb, var(--paper) 70%, transparent); }

.empty p { margin: 0; max-width: 46ch; color: var(--ink2); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; margin-bottom: 1.2rem; }

.stats.two { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 0; }

.stat { display: grid; gap: .1rem; padding: 1rem 1.1rem; border: 2px solid var(--hair); border-radius: var(--r-sm); background: var(--paper); }

.stat b { font: 600 1.7rem/1.05 var(--display); letter-spacing: -.02em; }

.stat span { font-size: .78rem; color: var(--ink2); font-weight: 500; }

.stat.good b { color: var(--green); }
 .stat.warn b { color: var(--amber); }

.plain-list { list-style: none; margin: 0; padding: 0; display: grid; }

.plain-list li { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--hair); }

.plain-list li > span:first-of-type, .plain-list li > .t-title { flex: 1; min-width: 0; }

.plain-list li.done .t-title { text-decoration: line-through; color: var(--ink2); }

.plain-list .ic { width: 16px; height: 16px; color: var(--green); }

.ledger { list-style: none; margin: 0; padding: 0; }

.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--hair); font-size: .9rem; }

.ledger li small { display: block; font-size: .76rem; }

.mini-list { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .3rem; }

.mini-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .55rem; align-items: center; font-size: .86rem; }

.mini-list .ic { width: 16px; height: 16px; color: var(--ink2); }


/* Progress */
.bar { position: relative; height: 9px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, var(--paper2)); overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 22%, transparent); }

.bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: 999px; transition: width .4s ease; }

.bar.near i { background: var(--amber); }
 .bar.over i { background: var(--red); }

.tone .bar { background: color-mix(in srgb, var(--paper) 70%, transparent); }

.ring { position: relative; display: inline-grid; place-items: center; width: 68px; height: 68px; flex: none; vertical-align: middle; }

.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.ring .r-bg { fill: none; stroke: color-mix(in srgb, var(--ink) 9%, transparent); stroke-width: 7; }

.ring .r-fg { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .5s; }

.ring b { position: relative; font: 600 .95rem/1 var(--display); }



/* ---------- Photos: frames, the vision board, the lightbox ---------- */
img[data-photo] { background: color-mix(in srgb, var(--sky-s) 40%, var(--paper2)); object-fit: cover; }

img[data-photo]:not([src]) { animation: shimmer 1.4s ease-in-out infinite alternate; }

@keyframes shimmer { to { opacity: .55; } }

img.missing { opacity: .3; }

.vdrop { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; margin-bottom: 1.4rem; border: 2px dashed color-mix(in srgb, var(--line) 40%, var(--hair)); border-radius: var(--r); background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--sky-s) 45%, transparent) 0 14px, transparent 14px 28px), var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }

.plain .vdrop { background: var(--paper); }

.vdrop:hover, .vdrop.drag, [data-drop].drag { border-color: var(--ink); outline: 3px solid color-mix(in srgb, var(--ink) 25%, transparent); }

.vdrop > .ic { width: 34px; height: 34px; padding: 6px; border-radius: 12px; background: var(--ink); color: var(--paper); box-sizing: content-box; }

.vdrop b { display: block; font: 600 1.1rem/1.2 var(--display); }

.vdrop small { color: var(--ink2); }

.vdrop:focus-within { outline: 2.5px solid var(--ink); outline-offset: 2px; }

.masonry { columns: 4 230px; column-gap: 1.1rem; }

.vtile { position: relative; break-inside: avoid; margin: 0 0 1.1rem; padding: .55rem .55rem .7rem; background: #FFFEFB; border-radius: 6px; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 14px 26px -16px rgb(0 0 0 / .4); transform: rotate(var(--tilt)); transition: transform .2s; color: #2A2530; }

.vtile:hover { transform: rotate(0) translateY(-2px); z-index: 2; }

.plain .vtile { transform: none; padding: 0; background: none; box-shadow: none; }

.vt-img { all: unset; cursor: zoom-in; display: block; width: 100%; }

.vt-img img { width: 100%; height: auto; border-radius: 3px; }

.plain .vt-img img { border-radius: var(--r-sm); }

.vt-img:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }

.vtile figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .6rem; padding: .5rem .2rem 0; min-height: 1.6rem; }

.vtile figcaption .hand { font-size: 1.15rem; line-height: 1.1; color: #9B3768; }

.plain .vtile figcaption .hand { color: var(--ink); font-size: .95rem; }

.vtile .cloud { font-size: .66rem; padding: .25rem .65rem; }

.vt-tools { position: absolute; top: .9rem; right: .9rem; opacity: 0; transition: opacity .15s; }

.vtile:hover .vt-tools, .vtile:focus-within .vt-tools { opacity: 1; }

.vt-tools .icon-btn { background: #FFFEFB; color: #2A2530; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px -12px rgb(0 0 0 / .18); }

@media (hover: none) { .vt-tools { opacity: 1; } }

.slides { display: grid; gap: .8rem; }

.slide-stage { position: relative; border-radius: var(--r); overflow: hidden; border: 2px solid var(--line); background: #0F0E12; aspect-ratio: 16 / 9; }

.slide-stage img { width: 100%; height: 100%; object-fit: cover; }

.slide-cap { position: absolute; left: 1.2rem; bottom: 1rem; margin: 0; padding: .45rem 1rem; border-radius: 999px; background: rgb(255 253 249 / .92); }

.slide-cap .hand { font-size: 1.35rem; color: #9B3768; }

.slide-nav { display: flex; justify-content: center; align-items: center; gap: 1rem; }

.slide-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }

.slide-thumbs button { all: unset; cursor: pointer; flex: none; width: 76px; height: 56px; border-radius: 8px; overflow: hidden; opacity: .55; border: 2px solid transparent; }

.slide-thumbs button img { width: 100%; height: 100%; }

.slide-thumbs [aria-current="true"] { opacity: 1; border-color: var(--ink); }

.slide-thumbs button:focus-visible { outline: 2.5px solid var(--ink); }


/* Home: the Grand Vision Board widget */
.vision-hero { position: relative; margin: 0 0 1.6rem; padding: 1.1rem; border: 2px solid var(--line); border-radius: 26px;
  background: repeating-linear-gradient(90deg, var(--sky-s) 0 18px, var(--paper2) 18px 36px); box-shadow: var(--sh-sm); }

.plain .vision-hero { background: var(--paper); box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px -12px rgb(0 0 0 / .18); border-color: var(--hair); }

.vh-bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 .2rem 1rem; }

.vh-bar .kicker { margin: 0; }

.vh-bar .btn:not(.solid) { background: var(--paper); }

.vh-bar .btn.ghost { background: transparent; }

.collage { display: grid; gap: .9rem; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 120px; }

.collage .cl { all: unset; cursor: zoom-in; position: relative; display: block; overflow: hidden; border-radius: 6px; background: #FFFEFB; padding: 7px; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 14px 28px -16px rgb(0 0 0 / .45); transition: transform .2s; }

.collage .cl img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }

.collage .cl:hover { transform: translateY(-3px) rotate(0deg) !important; z-index: 2; }

.collage .cl:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.collage .cap { position: absolute; left: 14px; bottom: 12px; padding: .2rem .7rem; border-radius: 999px; background: rgb(255 254 251 / .93); font-size: 1.05rem; line-height: 1.2; color: #9B3768; max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.plain .collage .cap { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: #2A2530; }

.collage .c0 { grid-column: span 3; grid-row: span 3; transform: rotate(-1deg); }

.collage .c1 { grid-column: span 2; grid-row: span 2; transform: rotate(1.4deg); }

.collage .c2 { grid-column: span 1; grid-row: span 2; transform: rotate(-1.2deg); }

.collage .c3 { grid-column: span 1; grid-row: span 1; transform: rotate(1deg); }

.collage .c4 { grid-column: span 2; grid-row: span 1; transform: rotate(-.6deg); }

.collage .c5, .collage .c6, .collage .c7, .collage .c8 { grid-column: span 1; grid-row: span 1; transform: rotate(.8deg); }

.collage .c6 { transform: rotate(-1deg); }
 .collage .c8 { transform: rotate(-.5deg); }

.plain .collage .cl { transform: none; padding: 0; background: none; border-radius: var(--r-sm); }

.collage.n1 .c0 { grid-column: 1 / -1; }

.collage.n2 .c0, .collage.n2 .c1 { grid-column: span 3; grid-row: span 3; }

.collage.n3 .c1, .collage.n3 .c2 { grid-column: span 3; grid-row: span 3; }

.collage.n3 .c1 { grid-row: span 2; }
 .collage.n3 .c2 { grid-row: span 1; }

@media (max-width: 760px) { .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; } .collage .cl { grid-column: span 1 !important; grid-row: span 1 !important; } .collage .c0 { grid-column: 1 / -1 !important; grid-row: span 2 !important; } .collage .c5, .collage .c6, .collage .c7, .collage .c8 { display: none; } }

.aff-card { position: absolute; right: 2rem; bottom: -1.2rem; z-index: 3; max-width: 360px; margin: 0; padding: .9rem 1.2rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--sh-sm); font: 500 1.1rem/1.35 var(--display); font-style: italic; transform: rotate(1.2deg); }

.aff-card .label { display: block; font-style: normal; margin-bottom: .3rem; }

.plain .aff-card { transform: none; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px -12px rgb(0 0 0 / .18); }

@media (max-width: 760px) { .aff-card { position: relative; right: auto; bottom: auto; margin-top: .9rem; transform: none; max-width: none; } }

.empty-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1.4rem; padding: 2rem; }

.empty-hero .vh-copy { background: var(--paper); padding: 1.4rem; border-radius: var(--r); border: 2px solid var(--line); }

.empty-hero .vdrop { margin: 0; min-height: 160px; }

@media (max-width: 760px) { .empty-hero { grid-template-columns: minmax(0, 1fr); padding: 1rem; } }

.hero-slides .slide-stage { aspect-ratio: 21 / 9; }

.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin: 2.4rem 0 1.4rem; }

.hello h1 em { color: var(--berry); }

.now-strip { display: flex; gap: 1.4rem; padding: .7rem 1.1rem; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; box-shadow: var(--sh-sm); font-size: .9rem; }

.now-strip.quiet { color: var(--ink2); box-shadow: none; border-color: var(--hair); align-items: center; gap: .5rem; }

.now-strip > span { display: grid; }
 .now-strip small.label { font-size: .62rem; }
 .now-strip b { font-weight: 600; }

.plain .now-strip { box-shadow: none; }

.money-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: .8rem; }

.money-mini b { display: block; font: 600 1.55rem/1.1 var(--display); }

.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }

.up-list a { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: .7rem; align-items: center; padding: .45rem .3rem; border-radius: 10px; text-decoration: none; }

.up-list a:hover { background: var(--paper2); }

.up-list a > .ic { width: 16px; height: 16px; color: var(--ink2); }

.up-list small { display: block; font-size: .75rem; }

.date-chip { display: grid; place-items: center; width: 44px; height: 46px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); line-height: 1; flex: none; }

.date-chip b { font: 600 1.15rem/1 var(--display); }
 .date-chip small { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); }

.nudge-list { display: grid; gap: .2rem; }

.nudge-list a { display: flex; gap: .6rem; align-items: center; padding: .45rem .3rem; text-decoration: none; font-size: .88rem; border-radius: 8px; }

.nudge-list a:hover { background: color-mix(in srgb, var(--paper) 55%, transparent); }

.pillars-wrap > summary { display: flex; align-items: center; gap: .8rem; cursor: pointer; list-style: none; margin-bottom: 1rem; }

.pillars-wrap > summary::-webkit-details-marker { display: none; }

.pillars-wrap .chev { transition: transform .2s; }
 .pillars-wrap[open] .chev { transform: rotate(180deg); }

.pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .9rem; }

.pillar-tile { display: grid; gap: .35rem; padding: 1rem 1.1rem 1.1rem; border: 2px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--tc) calc(40% * 1), var(--paper)); text-decoration: none; transition: transform .15s, box-shadow .15s; }

.pillar-tile:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }

.pillar-tile b { font: 600 1.1rem/1.15 var(--display); }

.pillar-tile small { color: var(--ink2); font-size: .8rem; }

.pt-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--paper); border: 2px solid var(--line); }

.tour-offer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }

.tour-offer > div:not(.head-actions) { flex: 1 1 16rem; }

.tour-offer b { font: 600 1.15rem/1.1 var(--display); }


/* Folders: a tabbed card, with photos peeking out */
.folders, .course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 3.6rem 1.4rem; padding-top: 3.2rem; }

.folder { --tc: var(--sky-s); position: relative; display: flex; flex-direction: column; }

.folder .peek { position: absolute; left: 14%; right: 14%; top: -3.4rem; height: 4.8rem; z-index: 0; }

.folder .pk { position: absolute; width: 46%; height: 100%; border-radius: 6px; overflow: hidden; background: #FFFEFB; padding: 4px; box-shadow: 0 6px 14px -8px rgb(0 0 0 / .45); }

.folder .pk img { width: 100%; height: 100%; border-radius: 3px; }

.folder .pk0 { left: 0; transform: rotate(-8deg); }
 .folder .pk1 { left: 27%; transform: rotate(3deg); top: -6px; }
 .folder .pk2 { right: 0; transform: rotate(10deg); }

.folder .pk.cert { left: 25%; width: 50%; transform: rotate(-3deg); }

.folder-body { position: relative; z-index: 1; flex: 1; display: grid; gap: .45rem; align-content: start; padding: 1.2rem 1.2rem 1rem; border: 2px solid var(--line); border-radius: 0 var(--r) var(--r) var(--r); background: var(--tc); color: var(--inkx); box-shadow: var(--sh-sm); }

.folder-body::before { content: ""; position: absolute; left: -1.5px; top: -1.25rem; width: 42%; height: 1.4rem; background: var(--tc); border: 2px solid var(--line); border-bottom: 0; border-radius: 12px 16px 0 0; }

.folder-body::after { content: ""; position: absolute; left: 0; right: 58%; top: -1px; height: 3px; background: var(--tc); }

.plain .folder-body { box-shadow: none; }

.folder h3 { font-size: 1.2rem; }

.folder .label, .folder .muted, .folder .small { color: inherit; }

.folder .ring b { color: var(--inkx); }
 .folder .ring .r-fg { stroke: var(--inkx); }
 .folder .ring .r-bg { stroke: color-mix(in srgb, var(--inkx) 15%, transparent); }

.f-top { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: center; }

.f-top .tag { background: var(--paper); color: var(--ink); }

.f-foot { display: flex; gap: .4rem .8rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }

.folder .link { color: var(--inkx); }

.folder .btn { background: var(--paper); color: var(--ink); }

.folder.is-done .folder-body { background: color-mix(in srgb, var(--tc) calc(60% * 1), var(--paper)); }

.ph-empty { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; color: color-mix(in srgb, var(--ink) 35%, transparent); background: repeating-linear-gradient(135deg, var(--paper2) 0 10px, color-mix(in srgb, var(--paper2) 60%, var(--paper)) 10px 20px); }

.ph-empty .ic { width: 34px; height: 34px; }

.ph-empty.sm { min-height: 0; width: 48px; height: 48px; border-radius: 10px; }
 .ph-empty.sm .ic { width: 20px; height: 20px; }



/* ---------- Design your life ---------- */
.matrix { display: grid; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--sh-sm); }

.mx-row { display: grid; grid-template-columns: minmax(200px, 1.4fr) repeat(4, minmax(140px, 1fr)); border-top: 1px solid var(--hair); }

.mx-head { border-top: 0; background: var(--paper2); }

.mx-head span { padding: .7rem .9rem; font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }

.mx-head span.now { color: var(--inkx); background: var(--butter-s); }

.mx-goal { display: grid; gap: .45rem; padding: 1rem; align-content: start; border-right: 1px solid var(--hair); }

.mx-goal .cloud { justify-self: start; font-size: .64rem; padding: .22rem .65rem; }

.mx-cell { padding: .7rem; display: grid; gap: .4rem; align-content: start; border-right: 1px solid var(--hair); }

.mx-cell:last-child { border-right: 0; }

.mx-cell.now { background: color-mix(in srgb, var(--butter-s) calc(25% * 1), var(--paper)); }

.ms { display: flex; gap: .45rem; align-items: flex-start; font-size: .85rem; }

.ms.done .ms-t { text-decoration: line-through; color: var(--ink2); }

.ms-t { all: unset; cursor: pointer; line-height: 1.35; }
 .ms-t:focus-visible { outline: 2px solid var(--ink); }

.mini-add { all: unset; cursor: pointer; display: grid; place-items: center; height: 28px; border: 1.5px dashed var(--hair); border-radius: 8px; color: var(--ink2); }

.mini-add:hover { border-color: var(--line); color: var(--ink); }
 .mini-add:focus-visible { outline: 2px solid var(--ink); }

.mini-add .ic { width: 14px; height: 14px; }

@media (max-width: 900px) { .matrix { overflow-x: auto; } .mx-row { min-width: 760px; } }

.tick { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); color: transparent; cursor: pointer; }

.tick .ic { width: 14px; height: 14px; }

.tick[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.tick:hover { color: var(--ink2); }
 .tick[aria-pressed="true"]:hover { color: var(--paper); }

.bucket-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: .7rem; margin-bottom: .5rem; }

.bc { all: unset; cursor: pointer; display: grid; gap: .3rem; padding: .8rem .9rem; border: 2px solid var(--line); border-radius: var(--r-sm); background: color-mix(in srgb, var(--tc, var(--paper2)) 50%, var(--paper)); }

.bc.all { --tc: var(--paper2); }

.bc[aria-pressed="true"] { box-shadow: var(--sh-sm); background: var(--tc, var(--paper2)); }

.bc b { font: 600 1rem/1.1 var(--display); }
 .bc span { font-size: .8rem; }

.bc:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }

.affirm-hero { position: relative; padding: clamp(2rem, 6vw, 4rem) clamp(1.4rem, 6vw, 4rem); border: 2px solid var(--line); border-radius: 26px; text-align: center; background: repeating-linear-gradient(90deg, var(--sky-s) 0 18px, var(--paper2) 18px 36px); box-shadow: var(--sh-sm); }

.plain .affirm-hero { background: var(--paper); }

.affirm-hero blockquote { margin: .8rem auto 0; max-width: 34ch; padding: 1.4rem 1.6rem; background: var(--paper); border-radius: 16px; border: 2px solid var(--line); font: 500 clamp(1.4rem, 3.4vw, 2.2rem)/1.25 var(--display); font-style: italic; letter-spacing: -.01em; }

.affirm-hero .label { background: var(--paper); padding: .3rem .7rem; border-radius: 999px; border: 2px solid var(--line); }

.affirm-hero .spk { position: absolute; width: 34px; height: 34px; }
 .affirm-hero .spk.a { top: 1.4rem; left: 2rem; fill: var(--pink-s); }
 .affirm-hero .spk.b { bottom: 1.6rem; right: 2.4rem; width: 26px; height: 26px; }

.star-btn { all: unset; cursor: pointer; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink2); flex: none; }

.star-btn[aria-pressed="true"] { color: var(--amber); }

.star-btn:hover { background: var(--paper2); }
 .star-btn:focus-visible { outline: 2px solid var(--ink); }

.log-entry { padding: .8rem 0; border-top: 1px solid var(--hair); }

.log-entry p { margin: .3rem 0 0; font-family: var(--display); font-style: italic; }

.future-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }

.future-meta p { margin: 0; }

.letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.2rem; }

.letter { display: grid; gap: .6rem; padding: 1.3rem 1.4rem 1rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--sh-sm); }

.plain .letter { box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px -12px rgb(0 0 0 / .18); border-color: var(--hair); }

.letter h3 { font-weight: 500; font-style: italic; font-size: 1.15rem; }

.lined { border: 0; border-radius: 0; padding: .2rem 0; background: repeating-linear-gradient(transparent 0 1.54rem, var(--hair) 1.54rem 1.6rem); line-height: 1.6rem; font-size: .95rem; }

.lined:focus { outline: none; box-shadow: 0 2px 0 var(--ink); }

.letter-foot { display: flex; justify-content: space-between; align-items: center; }



/* ---------- Time ---------- */
.day-nav { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 1.2rem; }

.day-nav b { font: 600 1.45rem/1 var(--display); }

.top3, .tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }

.task { display: flex; gap: .65rem; align-items: center; padding: .55rem .7rem; border: 1px solid var(--hair); border-radius: 12px; background: var(--paper); }

.task.done .t-title { text-decoration: line-through; color: var(--ink2); }

.t-title { all: unset; cursor: pointer; flex: 1; min-width: 0; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }

.t-title:focus-visible { outline: 2px solid var(--ink); }

.top3 { counter-reset: top; }

.top3 > li { counter-increment: top; position: relative; padding-left: 2.2rem; }

.top3 > li::before { content: counter(top); position: absolute; left: .4rem; top: 50%; transform: translateY(-50%); font: italic 600 1.3rem/1 var(--display); color: var(--berry); }

.top3 > li.slot { padding: .2rem 0 .2rem 2.2rem; border: 0; }

.top3 .task { background: var(--paper); }

.timeline { position: relative; margin-left: 4.2rem; border-left: 2px solid var(--hair); }

.tl-hour { all: unset; position: absolute; left: 0; right: 0; border-top: 1px dashed var(--hair); cursor: copy; box-sizing: border-box; }

.tl-hour:hover { background: color-mix(in srgb, var(--sky-s) 25%, transparent); }

.tl-hour:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.tl-hour span { position: absolute; left: -4.2rem; top: -.55rem; width: 3.8rem; text-align: right; font-size: .7rem; color: var(--ink2); white-space: nowrap; }

.blk { all: unset; box-sizing: border-box; position: absolute; left: .5rem; right: .3rem; z-index: 1; padding: .35rem .7rem; border: 2px solid var(--line); border-radius: 10px; background: var(--tc, var(--sky-s)); color: var(--inkx); cursor: pointer; overflow: hidden; display: flex; flex-direction: column; gap: 1px; }

.blk.k-focus { --tc: var(--sky-s); }
 .blk.k-meeting { --tc: var(--pink-s); }
 .blk.k-admin { --tc: var(--butter-s); }
 .blk.k-personal { --tc: var(--mint-s); }
 .blk.k-break { --tc: var(--lilac-s); background: repeating-linear-gradient(135deg, var(--lilac-s) 0 8px, color-mix(in srgb, var(--lilac-s) 55%, #fff) 8px 16px); }

.blk b { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.blk small { font-size: .72rem; opacity: .85; white-space: nowrap; }

.blk.short { flex-direction: row; align-items: center; gap: .6rem; padding-block: 0; }

.blk:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }

.tl-now { position: absolute; left: -6px; right: 0; height: 0; border-top: 2px solid var(--red); z-index: 2; pointer-events: none; }

.tl-now::before { content: ""; position: absolute; left: -1px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.tl-now span { position: absolute; right: 0; top: -1.2rem; font-size: .66rem; font-weight: 700; background: #A31F2B; color: #fff; padding: .05rem .45rem; border-radius: 6px; }

.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x proximity; }

.kcol { display: grid; align-content: start; gap: .5rem; padding: .8rem; border: 2px solid var(--hair); border-radius: var(--r); background: color-mix(in srgb, var(--paper) 80%, transparent); min-height: 220px; scroll-snap-align: start; }

.kcol.is-today { border-color: var(--line); background: color-mix(in srgb, var(--sky-s) calc(30% * 1), var(--paper)); }

.kcol.someday { background: var(--paper2); }

.kcol.over { outline: 2.5px dashed var(--ink); }

.kcol header { display: flex; justify-content: space-between; align-items: baseline; }

.kcol header .link-strong { font: 600 1rem/1 var(--display); }
 .kcol header .link-strong span { color: var(--ink2); }

.kcol .task { padding: .45rem .55rem; font-size: .86rem; cursor: grab; }

.kcol .task.dragging { opacity: .4; }

.kcol .quick { margin: 0; }
 .kcol .quick .input { font-size: .82rem; padding: .35rem .6rem; }

.hab-mini { display: grid; gap: .55rem; margin-bottom: .6rem; }

.hab-mini > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: .6rem; align-items: center; font-size: .85rem; }

.cal { border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--sh-sm); }

.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }

.cal-head span { padding: .6rem; font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); background: var(--paper2); }

.cal-day { all: unset; cursor: pointer; box-sizing: border-box; display: flex; flex-direction: column; gap: .2rem; min-height: 106px; padding: .45rem; border-top: 1px solid var(--hair); border-right: 1px solid var(--hair); overflow: hidden; }

.cal-day:nth-child(7n) { border-right: 0; }

.cal-day:hover { background: var(--paper2); }
 .cal-day:focus-visible { outline: 2.5px solid var(--ink); outline-offset: -3px; }

.cal-day.out { color: var(--ink2); background: color-mix(in srgb, var(--paper2) 40%, var(--paper)); }

.cal-day.is-today .cd-n { background: var(--ink); color: var(--paper); }

.cd-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 600 .9rem/1 var(--display); }

.cal-ev { display: flex; gap: .25rem; align-items: center; font-size: .7rem; font-weight: 600; padding: .1rem .35rem; border-radius: 5px; background: color-mix(in srgb, var(--pink-s) calc(55% * 1), var(--paper)); color: var(--inkx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.cal-ev .ic { width: 11px; height: 11px; }

.cal-more { font-size: .7rem; color: var(--ink2); }

.cal-dots { display: flex; gap: 3px; margin-top: auto; }
 .cal-dots i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--line); }
 .cal-dots i.on { background: var(--ink); }

@media (max-width: 700px) { .cal-day { min-height: 64px; padding: .25rem; } .cal-ev { font-size: 0; padding: 2px; width: 8px; height: 8px; border-radius: 50%; } .cal-ev .ic { display: none; } }

.year-bar { display: grid; gap: .5rem; margin-bottom: 1.4rem; }

.yb-months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .68rem; color: var(--ink2); }

.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }

.mcard { padding: 1rem 1.1rem; border: 2px solid var(--hair); border-radius: var(--r); background: var(--paper); min-height: 150px; }

.mcard.is-now { border-color: var(--line); background: color-mix(in srgb, var(--tc) calc(40% * 1), var(--paper)); box-shadow: var(--sh-sm); }

.mcard header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }

.mcard h3 { font-size: 1.2rem; }

.mcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .84rem; }

.mcard li { display: flex; gap: .45rem; align-items: flex-start; }
 .mcard li .ic { width: 14px; height: 14px; margin-top: .2rem; color: var(--ink2); }

.dump-hero { max-width: 640px; margin-bottom: 1.4rem; }
 .dump-hero .dumpbox { padding: .45rem .45rem .45rem 1rem; box-shadow: var(--sh-sm); }
 .dump-hero .input { font-size: 1.05rem; }

.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }

.ib { display: grid; gap: .7rem; padding: 1rem 1.1rem; border: 2px solid var(--hair); border-radius: var(--r); background: var(--paper); }

.ib > div:first-child { display: grid; gap: .15rem; }
 .ib b { font-weight: 600; }
 .ib a { display: inline-flex; gap: .3rem; align-items: center; color: var(--ink); }

.ib-acts { display: flex; gap: .35rem; flex-wrap: wrap; }

.focus-card { display: grid; justify-items: center; gap: 1rem; text-align: center; }

.focus-card .face { display: grid; justify-items: center; gap: .4rem; }

.focus-card .ring { width: 210px; height: 210px; }

.focus-card .ring .r-bg, .focus-card .ring .r-fg { stroke-width: 5; }

.focus-card .ring b { font: 600 2.6rem/1 var(--display); letter-spacing: -.02em; }

.focus-card .input { max-width: 360px; text-align: center; background: var(--paper); }

.presets { display: flex; gap: .4rem; }



/* ---------- Wellness ---------- */
.hab-card { overflow-x: auto; }

.hab-table { display: grid; gap: .45rem; min-width: 520px; }

.hab-row { display: grid; grid-template-columns: minmax(150px, 1.6fr) repeat(7, minmax(34px, 46px)) minmax(56px, 70px); gap: .4rem; align-items: center; }

.hab-row.head span { font: 600 .66rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); text-align: center; }

.hab-row.head span:first-child { text-align: left; }

.hab-row.head small { display: block; font-size: .75rem; color: var(--ink2); }

.hab-row.head .is-today small { background: var(--ink); color: var(--paper); border-radius: 999px; }

.hab-name { all: unset; cursor: pointer; display: flex; gap: .45rem; align-items: center; font-size: .9rem; font-weight: 500; }

.hab-name .ic { width: 16px; height: 16px; color: var(--ink); }

.cbox { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; aspect-ratio: 1; max-height: 44px; display: grid; place-items: center; border: 2px solid color-mix(in srgb, var(--line) 30%, var(--hair)); border-radius: 10px; background: var(--paper); }

.cbox[aria-pressed="true"] { background: var(--mint-s); border-color: var(--line); color: var(--inkx); }

.cbox[disabled] { opacity: .3; cursor: default; }

.cbox:focus-visible { outline: 2.5px solid var(--ink); }

.hab-pct { display: grid; justify-items: end; }
 .hab-pct b { font: 600 1rem/1 var(--display); }
 .hab-pct small { font-size: .7rem; color: var(--ink2); }

.hab-pct.hit b { color: var(--green); }

.hab-ticks { display: grid; gap: .45rem; }

.hab-tick { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .55rem .8rem; border: 2px solid var(--hair); border-radius: 999px; font-size: .88rem; background: var(--paper); }

.hab-tick .ic { width: 18px; height: 18px; color: var(--ink2); }

.hab-tick[aria-pressed="true"] { background: color-mix(in srgb, var(--mint-s) calc(70% * 1), var(--paper)); border-color: var(--line); }

.hab-tick[aria-pressed="true"] .ic { color: var(--inkx); }

.hab-tick small { color: var(--ink2); }

.hab-tick:focus-visible { outline: 2.5px solid var(--ink); }

.meal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .6rem; }

@media (max-width: 1100px) { .meal-week { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }

.meal-day { display: grid; gap: .5rem; align-content: start; padding: .8rem; border: 2px solid var(--hair); border-radius: var(--r); background: var(--paper); }

.meal-day.is-today { border-color: var(--line); background: color-mix(in srgb, var(--butter-s) calc(40% * 1), var(--paper)); }

.meal-day header { display: flex; justify-content: space-between; align-items: baseline; }
 .meal-day header b { font: 600 1.1rem/1 var(--display); }
 .meal-day header small { color: var(--ink2); font-size: .72rem; }

.meal-day .slot { display: grid; gap: .25rem; }
 .meal-day .slot .label { font-size: .6rem; }

.meal { all: unset; cursor: pointer; box-sizing: border-box; display: grid; overflow: hidden; border: 1px solid var(--hair); border-radius: 10px; background: var(--paper); font-size: .8rem; font-weight: 600; }

.meal span { padding: .35rem .5rem; }
 .meal img { height: 64px; width: 100%; }

.meal:focus-visible, .meal-add:focus-visible { outline: 2px solid var(--ink); }

.meal-add { all: unset; cursor: pointer; display: grid; place-items: center; height: 32px; border: 1.5px dashed var(--hair); border-radius: 10px; color: var(--ink2); }

.meal-add:hover { border-color: var(--line); color: var(--ink); }
 .meal-add .ic { width: 15px; height: 15px; }

.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1.1rem; }

.recipe { display: grid; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; background: color-mix(in srgb, var(--tc) calc(30% * 1), var(--paper)); box-shadow: var(--sh-sm); }

.rc-ph { all: unset; cursor: pointer; display: block; height: 170px; }
 .rc-ph img { width: 100%; height: 100%; }
 .rc-ph:focus-visible { outline: 2.5px solid var(--ink); outline-offset: -3px; }

.rc-body { display: grid; gap: .3rem; padding: .9rem 1rem 1rem; }
 .rc-body h3 { font-size: 1.1rem; }
 .rc-body p { margin: 0; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; }

.checklist li { display: flex; gap: .4rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--hair); }

.checklist label { flex: 1; display: flex; gap: .65rem; align-items: center; cursor: pointer; font-size: .9rem; min-width: 0; }

.checklist input[type=checkbox] { appearance: none; width: 20px; height: 20px; flex: none; border: 2px solid var(--line); border-radius: 6px; background: var(--paper); cursor: pointer; display: grid; place-items: center; }

.checklist input[type=checkbox]:checked { background: var(--ink); }

.checklist input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

.checklist input:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }

.checklist input:checked + span { text-decoration: line-through; color: var(--ink2); }

.checklist.done li { opacity: .7; }

h3.aisle { font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); margin: 1rem 0 .3rem; }

.routine { padding: .3rem 0 1rem; }
 .routine + .routine { border-top: 1px solid var(--hair); padding-top: 1rem; }

.routine header { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; }
 .routine header b { flex: 1; font: 600 1.05rem/1.2 var(--display); }

.routine .bar { margin-bottom: .3rem; }

.pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.pr-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .5rem .7rem; border-radius: 12px; background: color-mix(in srgb, var(--paper) 70%, transparent); }

.pr-list .ic { color: var(--amber); }



/* ---------- Mind ---------- */
.mood-pick { display: grid; gap: .7rem; }

.mp-row { display: grid; grid-template-columns: 4.5rem repeat(5, minmax(0, 1fr)); gap: .4rem; align-items: center; }

.mp { all: unset; cursor: pointer; box-sizing: border-box; display: grid; justify-items: center; gap: .2rem; padding: .5rem .2rem; border: 2px solid var(--hair); border-radius: 14px; background: var(--paper); font-size: .72rem; font-weight: 600; color: var(--ink2); text-align: center; }

.mp .ic { width: 24px; height: 24px; }

.mp[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.mp:focus-visible { outline: 2.5px solid var(--ink); }

.mp.en i { display: block; width: 26px; height: 14px; border: 2px solid currentColor; border-radius: 4px; background: linear-gradient(90deg, currentColor calc(var(--n) * 20%), transparent 0); }

@media (max-width: 520px) { .mp-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } .mp-row > .label { grid-column: 1 / -1; } .mp span { font-size: .64rem; } }

.mood-tags { margin: 1rem 0 .4rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }

.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.1rem; }

.intensity { letter-spacing: .1em; color: var(--berry); font-size: .8rem; }

.grat-form { display: grid; gap: .7rem; }

.grat-line { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; gap: .4rem; }

.grat-line .num { font: italic 600 1.5rem/1 var(--display); color: var(--berry); }

.grat-line .input { background: var(--paper); }

.grat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .9rem; }

.grat { padding: .9rem 1rem; border: 1px solid var(--hair); border-radius: var(--r-sm); background: var(--paper); }

.grat ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .9rem; display: grid; gap: .2rem; }

.bars-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }

.bars-list li { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 2rem; gap: .7rem; align-items: center; font-size: .88rem; }

.cover { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: grid; align-content: space-between; aspect-ratio: 2 / 3; padding: .9rem .75rem; border: 2px solid var(--line); border-radius: 4px 10px 10px 4px; background: var(--tc); color: var(--inkx); overflow: hidden; box-shadow: inset 7px 0 0 rgb(0 0 0 / .08), var(--sh-sm); }

.cover.has-img { padding: 0; }
 .cover img { width: 100%; height: 100%; }

.cover .ct { font: 600 1rem/1.15 var(--display); }
 .cover .ca { font-size: .72rem; }

.cover.sm { width: 92px; flex: none; }
 .cover.sm span { font: 600 .8rem/1.1 var(--display); }

.cover:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; }

.now-reading { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1rem; }

.nr { display: flex; gap: 1rem; padding: 1rem; border: 2px solid var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--sh-sm); }

.nr > div { display: grid; gap: .35rem; align-content: start; flex: 1; }
 .nr p { margin: 0; }
 .nr form { margin-top: .3rem; }

.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem; }

.idea { display: grid; gap: .5rem; align-content: start; padding: 1.1rem 1.2rem; border: 2px solid var(--hair); border-radius: var(--r); background: var(--paper); }

.idea header { display: flex; justify-content: space-between; align-items: center; }
 .idea header .ic { width: 13px; height: 13px; vertical-align: -2px; }

.idea p { margin: 0; }
 .idea footer { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; margin-top: .2rem; }

.idea footer .link { display: inline-flex; gap: .3rem; align-items: center; }
 .idea footer .ic { width: 14px; height: 14px; }

.roadmap { margin-bottom: 1.2rem; }

.path { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; position: relative; }

.path li { position: relative; display: flex; gap: .8rem; align-items: center; padding: .45rem 0; }

.path li::before { content: ""; position: absolute; left: 17px; top: -50%; bottom: 50%; width: 2px; background: var(--hair); z-index: 0; }

.path li:first-child::before { display: none; }

.path li.done::before, .path li.next::before { background: var(--ink); }

.node { all: unset; cursor: pointer; position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); font: 600 .9rem/1 var(--display); }

.path li.done .node { background: var(--ink); color: var(--paper); }

.path li.next .node { background: var(--butter-s); color: var(--inkx); box-shadow: 0 0 0 4px color-mix(in srgb, var(--butter-s) 50%, transparent); }

.path li.add .node { border-style: dashed; color: var(--ink2); }

.node:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }

.p-title { all: unset; cursor: pointer; font-weight: 500; }
 .path li.done .p-title { color: var(--ink2); text-decoration: line-through; }



/* ---------- People ---------- */
.avatar { --tc: var(--sky-s); display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid var(--line); background: var(--tc); color: var(--inkx); font: 600 .95rem/1 var(--display); }

.avatar img { width: 100%; height: 100%; }

.avatar.sm { width: 34px; height: 34px; font-size: .78rem; }
 .avatar.sm .ic { width: 16px; height: 16px; }

.avatar.lg { width: 78px; height: 78px; font-size: 1.4rem; }

.nudges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .8rem; margin-bottom: 1.4rem; }

.nudge { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--pink-s) calc(40% * 1), var(--paper)); }

.nudge p { flex: 1 1 12rem; margin: 0; font-family: var(--display); font-style: italic; font-size: 1.02rem; line-height: 1.3; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }

.person { display: flex; gap: 1rem; padding: 1.1rem; border: 2px solid var(--hair); border-radius: var(--r); background: var(--paper); }

.pp { all: unset; cursor: pointer; border-radius: 50%; }
 .pp:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2px; }

.pbody { display: grid; gap: .3rem; flex: 1; min-width: 0; align-content: start; }
 .pbody p { margin: 0; }
 .pbody .ic { width: 13px; height: 13px; vertical-align: -2px; }

.p-acts { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .2rem; margin-left: -.6rem; }

.timeline-months { display: grid; gap: 1.6rem; max-width: 820px; }

.tm h3 { font-size: 1.35rem; margin-bottom: .6rem; }

.tm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.tm li { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: .6rem .8rem; border: 1px solid var(--hair); border-radius: 14px; background: var(--paper); }

.tm li > span:nth-child(3) { flex: 1 1 10rem; display: grid; }
 .tm li small { font-size: .78rem; }

.tm li.soon { border-color: var(--line); background: color-mix(in srgb, var(--pink-s) calc(30% * 1), var(--paper)); }

.gift-group { margin-bottom: 1.6rem; }

.gift-group > header { display: flex; gap: .7rem; align-items: center; margin-bottom: .7rem; }
 .gift-group h3 { font-size: 1.25rem; }
 .gift-group header .ic { width: 13px; height: 13px; }

.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .8rem; }

.gift-card { display: grid; gap: .35rem; align-content: start; padding: .9rem 1rem; border: 2px solid var(--hair); border-radius: var(--r-sm); background: var(--paper); }

.gift-card h4 { font: 600 1.05rem/1.2 var(--display); }
 .gift-card p { margin: 0; }
 .gift-card .tag { justify-self: start; }

.gift-card footer { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .2rem; }

.gift-card.given { opacity: .7; }

.event-list, .trip-list { display: grid; gap: .5rem; align-content: start; }

.ev, .trip { all: unset; cursor: pointer; box-sizing: border-box; display: flex; gap: .7rem; align-items: center; padding: .6rem .7rem; border: 2px solid var(--hair); border-radius: 14px; background: var(--paper); }

.ev > span:last-child, .trip > span:last-child { display: grid; min-width: 0; }
 .ev small, .trip small { font-size: .76rem; }

.ev.on, .trip.on { border-color: var(--line); box-shadow: var(--sh-sm); background: color-mix(in srgb, var(--sky-s) calc(30% * 1), var(--paper)); }

.ev.past { opacity: .65; }

.ev:focus-visible, .trip:focus-visible { outline: 2.5px solid var(--ink); }

.trip img { width: 48px; height: 48px; border-radius: 10px; flex: none; }

.guest { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex: 1; font-size: .9rem; }

.rsvp { all: unset; cursor: pointer; font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--hair); }

.rsvp.yes { background: var(--mint-s); color: var(--inkx); }
 .rsvp.no { background: var(--paper2); color: var(--ink2); text-decoration: line-through; }
 .rsvp.maybe { background: var(--butter-s); color: var(--inkx); }

.rsvp:focus-visible { outline: 2px solid var(--ink); }



/* ---------- Admin ---------- */
.vault-setup { max-width: 640px; }

.vault-setup h2 { margin: .3rem 0 .8rem; }

.vault-lock { display: grid; justify-items: center; gap: .6rem; padding: 2.6rem 1.2rem; max-width: 560px; margin: 0 auto; text-align: center; }

.lock-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--lilac-s); border: 2px solid var(--line); color: var(--inkx); }
 .lock-ic .ic { width: 32px; height: 32px; }

.vault-lock .inline { justify-content: center; }
 .vault-lock .input { max-width: 280px; }

.vt-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) minmax(0, 1.2fr) auto; }

.vt-row > span:first-child { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .84rem; display: flex; align-items: center; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 760px) { .vt-row { grid-template-columns: minmax(0, 1fr) auto; } .vt-row > span:nth-child(2), .vt-row > span:nth-child(3) { grid-column: 1 / -1; } .vt-head { display: none; } }

.chores { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.2rem; }

.chore-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }

.chore-list li { display: flex; gap: .6rem; align-items: center; padding: .5rem .7rem; border: 1px solid var(--hair); border-radius: 12px; background: var(--paper); }

.chore-list li.late { border-color: var(--amber); background: color-mix(in srgb, var(--butter-s) calc(25% * 1), var(--paper)); }

.chore-list li.today { border-color: var(--line); }

.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: .8rem; }

.inv { display: flex; gap: .8rem; align-items: center; padding: .6rem; border: 1px solid var(--hair); border-radius: 14px; background: var(--paper); }

.inv > div:nth-child(2) { flex: 1; display: grid; min-width: 0; }
 .inv small { font-size: .76rem; }

.inv-ph { width: 76px; height: 76px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--paper2); }

.inv-ph > button { all: unset; cursor: zoom-in; width: 100%; height: 100%; }
 .inv-ph img { width: 100%; height: 100%; }

.inv-ph .btn { padding: .3rem .5rem; font-size: .7rem; }

.vehicle { margin-bottom: 1.2rem; }

.vh-head { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1rem; }
 .vh-head > div:nth-child(2) { flex: 1 1 16rem; display: grid; gap: .3rem; }

.vh-ph { width: 150px; height: 110px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--paper2); border: 2px solid var(--hair); flex: none; }
 .vh-ph img { width: 100%; height: 100%; }

.dues { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }

.due { font-size: .76rem; padding: .25rem .6rem; border-radius: 999px; background: var(--paper2); border: 1px solid var(--hair); }

.due.soon { background: color-mix(in srgb, var(--butter-s) calc(60% * 1), var(--paper)); color: var(--inkx); border-color: var(--line); }

.due.late { background: color-mix(in srgb, var(--pink-s) calc(70% * 1), var(--paper)); color: var(--inkx); border-color: var(--line); font-weight: 600; }

.pets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1.2rem; }

.pet { display: grid; gap: .8rem; align-content: start; }

.pet-head { display: flex; gap: 1rem; align-items: center; }
 .pet-head > div:nth-child(2) { flex: 1; display: grid; gap: .25rem; justify-items: start; }

.pet-ph { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; border: 2px solid var(--line); background: var(--tc); flex: none; }
 .pet-ph img { width: 100%; height: 100%; }
 .pet-ph .ic { width: 34px; height: 34px; }

.feed { padding: .7rem .9rem; border-radius: 12px; background: var(--paper2); }
 .feed p { margin: .2rem 0 0; }

.pet .btn { justify-self: start; }



/* ---------- The vision board canvas: drag, overlap, resize ---------- */
.vb-tools { display: flex; justify-content: flex-end; margin-bottom: .4rem; }

.vwrap { overflow-x: auto; padding: 6px 10px 14px 4px; margin: 0 -10px 0 -4px; }

.vwrap.mini { overflow: hidden; padding: 0; margin: 0; }

.vboard { position: relative; aspect-ratio: 16 / 10; width: 100%; min-width: 620px; container-type: inline-size; isolation: isolate; background: transparent; }

.vboard.mini { min-width: 0; box-shadow: none; }

.surf-cork { background-color: #C8955F; border: 12px solid #7A4A25; background-image: radial-gradient(circle at 20% 30%, rgb(90 50 20 / .35) 0 1px, transparent 1.6px), radial-gradient(circle at 70% 60%, rgb(255 230 190 / .35) 0 1px, transparent 1.6px), radial-gradient(circle at 40% 80%, rgb(80 45 15 / .3) 0 1.2px, transparent 1.8px); background-size: 9px 11px, 13px 7px, 17px 15px; }

.surf-whiteboard { background: linear-gradient(115deg, #FFFFFF 0%, #F4F6F8 40%, #FFFFFF 46%, #EEF1F4 100%); border: 12px solid #C3C9D1; }

.surf-grid { background-color: #ECE7DF; background-image: linear-gradient(#1E1E22 2px, transparent 2px), linear-gradient(90deg, #1E1E22 2px, transparent 2px); background-size: 12.5% 20%; background-position: -1px -1px; border: 6px solid #1E1E22; }

.surf-linen { background-color: #EFE6D6; background-image: repeating-linear-gradient(0deg, rgb(120 90 60 / .06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgb(120 90 60 / .06) 0 1px, transparent 1px 3px); border: 10px solid #D9C7AA; }

.vboard.mini.surf-cork, .vboard.mini.surf-whiteboard, .vboard.mini.surf-linen { border-width: 6px; }

.vi { position: absolute; margin: 0; transform: rotate(var(--r)); transform-origin: 50% 20%; cursor: grab; touch-action: none; user-select: none; container-type: inline-size; transition: transform .18s, filter .18s; filter: drop-shadow(0 3px 2px rgb(0 0 0 / .25)) drop-shadow(0 10px 14px rgb(0 0 0 / .18)); }

.vi:hover { transform: rotate(var(--r)) scale(1.02); }

.vi.lift { cursor: grabbing; transform: rotate(calc(var(--r) * .4)) scale(1.06); filter: drop-shadow(0 8px 6px rgb(0 0 0 / .25)) drop-shadow(0 26px 30px rgb(0 0 0 / .3)); transition: none; }

.vi.sel { outline: 3px dashed var(--ink); outline-offset: 6px; border-radius: 4px; }

.vi:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }

.vboard.mini .vi { pointer-events: none; }

.vi-ph { overflow: hidden; background: #ddd; }

.vi-ph img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.s-polaroid { background: #FFFEFA; }

.s-polaroid .vi-ph { margin: 5cqi 5cqi 0; }

.s-polaroid .vi-cap { display: block; min-height: 15cqi; padding: 2.5cqi 2cqi 3cqi; text-align: center; font: 400 10cqi/1.05 var(--hand); color: #2A2A2A; overflow-wrap: anywhere; }

.s-pin .vi-ph, .s-tape .vi-ph, .s-clip .vi-ph { border: 2.4cqi solid #FFFEFA; }

.s-plain .vi-ph { border-radius: 2cqi; }

.d-pin { position: absolute; z-index: 3; left: 50%; top: -3.5cqi; width: 10cqi; height: 10cqi; max-width: 22px; max-height: 22px; min-width: 9px; min-height: 9px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFB3A0 0 12%, #F0442C 30%, #A91D0D 100%); box-shadow: 1px 3px 3px rgb(0 0 0 / .4); }

.d-tape { position: absolute; z-index: 3; left: 50%; top: -4cqi; width: 42cqi; height: 11cqi; transform: translateX(-50%) rotate(-4deg); background: rgb(240 228 196 / .82); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }

.d-clip { position: absolute; z-index: 3; left: 50%; top: -7cqi; width: 22cqi; height: 12cqi; transform: translateX(-50%); background: #1C1C20; border-radius: 2cqi 2cqi 1cqi 1cqi; box-shadow: 0 2px 3px rgb(0 0 0 / .35); }

.vi-size { position: absolute; right: -14px; bottom: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 2px solid #fff; cursor: nwse-resize; z-index: 5; touch-action: none; box-shadow: 0 2px 6px rgb(0 0 0 / .35); }

.vsel-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .4rem 0 1rem; min-height: 46px; padding: .5rem .7rem; border-radius: var(--r-sm); border: 2px dashed var(--hair); }

.vsel-bar.on { border-style: solid; border-color: var(--line); background: var(--paper); box-shadow: var(--sh-sm); }

.hero-board { display: block; }


/* Preview banner: the buy button */
.demo-band .demo-cta { margin-left: .5rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
/* =====================================================================
   VIVID LAYER: shell, page heads, home and the finishing touches
   ===================================================================== */
body { font-family: var(--sans); font-size: .95rem; background-size: 24px 24px; }
.plain body { background-image: none; }
h1, h2, h3 { font-family: var(--display); }
h1, h2 { font-weight: 800; letter-spacing: -.035em; }
h3 { font-weight: 700; letter-spacing: -.01em; }
/* Highlighter headings instead of boxed words */
h1 em, h2 em, .hl { font-style: normal; background: linear-gradient(transparent 56%, var(--hlc, var(--pink)) 56%, var(--hlc, var(--pink)) 92%, transparent 92%); color: inherit; padding: 0 .12em; border: 0; border-radius: 0; box-shadow: none; transform: none; display: inline; margin: 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl.lime { --hlc: var(--lime); } .hl.sky { --hlc: var(--sky); } .hl.butter { --hlc: var(--butter); }
[data-theme="nightowl"] h1 em, [data-theme="nightowl"] h2 em, [data-theme="nightowl"] .hl { --hlc: color-mix(in srgb, var(--pink) 45%, transparent); }
.hand { font-family: var(--hand); font-weight: 700; color: var(--berry); letter-spacing: 0; font-size: 1.35em; line-height: 1.1; }
.plain .hand { font-family: var(--hand); }
.kick { font: 700 .66rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.label { font: 700 .64rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); display: block; margin: .9rem 0 .4rem; }
.stk { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .55rem; font: 700 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--inkx); background: var(--c, var(--butter)); }
.stk.pink { --c: var(--pink); } .stk.lime { --c: var(--lime); } .stk.sky { --c: var(--sky); } .stk.butter { --c: var(--butter); } .stk.lilac { --c: var(--lilac); }
.tape { position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; margin-left: -46px; transform: rotate(-4deg); z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--pink) 85%, transparent) 0 7px, rgb(255 255 255 / .55) 7px 14px);
  clip-path: polygon(3% 0, 97% 0, 100% 20%, 97% 40%, 100% 60%, 97% 80%, 100% 100%, 3% 100%, 0 80%, 3% 60%, 0 40%, 3% 20%); }
.pin { position: absolute; top: -11px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; z-index: 3; background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--pink) 20% 62%, rgb(0 0 0 / .25) 100%); box-shadow: 0 5px 6px -3px rgb(0 0 0 / .45); }
.plain .tape, .plain .pin { display: none; }
.tilt-l { transform: rotate(-1.2deg); } .tilt-r { transform: rotate(1deg); } .plain .tilt-l, .plain .tilt-r { transform: none; }
.card { border-radius: var(--r); box-shadow: var(--sh); }
.btn { border-radius: 11px; font-family: var(--sans); font-weight: 700; box-shadow: var(--sh-sm); }
.btn.solid, .btn.ink { --bb: var(--ink); color: var(--paper); border-color: var(--ink); }
[data-theme="nightowl"] .btn.solid, [data-theme="nightowl"] .btn.ink { --bb: var(--pink); color: var(--inkx); border-color: var(--pink); }
.btn.ghost { box-shadow: none; }
.segs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
[data-theme="nightowl"] .segs button[aria-pressed="true"] { background: var(--pink); color: var(--inkx); }
.chip.on, .chip[aria-pressed="true"], .chip:has(input:checked) { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; }
::selection { background: var(--pink); color: var(--inkx); }
.boot { font: 800 4rem var(--display); letter-spacing: -.04em; }

/* ---------- Shell: sidebar ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; display: flex; flex-direction: column; gap: .8rem; padding: 1.1rem .9rem 1rem; background: var(--paper); border-right: var(--b); overflow-y: auto; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); padding: .2rem .3rem .4rem; }
.brand b { display: block; font: 800 1.35rem/1 var(--display); letter-spacing: -.04em; }
.brand small { display: block; font: 700 .58rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); margin-top: .25rem; }
.logo { position: relative; flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--pink); border: var(--b); box-shadow: 2px 3px 0 var(--shadow); font: 800 1.45rem/1 var(--display); color: var(--inkx); transform: rotate(-4deg); }
.logo::after { content: ""; position: absolute; right: -6px; top: -6px; width: 13px; height: 13px; border-radius: 50%; background: var(--lime); border: 2px solid var(--line); }
.logo.sm { width: 32px; height: 32px; font-size: 1.1rem; border-radius: 9px; } .logo.sm::after { width: 10px; height: 10px; right: -5px; top: -5px; }
.side-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.side-btns .btn { padding: .5rem .5rem; }
.side-nav { display: grid; gap: .15rem; }
.side-link, .pillar > summary { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 10px; border: 2px solid transparent; text-decoration: none; color: var(--ink); font: 600 .9rem/1.2 var(--sans); cursor: pointer; }
.side-link .ic, .pillar > summary .ic { width: 18px; height: 18px; }
.side-link:hover, .pillar > summary:hover { background: var(--paper2); }
.side-link.on, .side-link[aria-current="page"] { background: var(--butter); border-color: var(--line); box-shadow: var(--sh-sm); color: var(--inkx); }
.pillar > summary { list-style: none; } .pillar > summary::-webkit-details-marker { display: none; }
.pillar > summary span { flex: 1; min-width: 0; }
.pillar > summary .chev { width: 14px; height: 14px; transition: transform .2s; color: var(--ink2); }
.pillar[open] > summary .chev { transform: rotate(180deg); }
.pillar > summary[aria-current="true"] { background: var(--c); border-color: var(--line); box-shadow: var(--sh-sm); color: var(--inkx); }
.pillar > summary[aria-current="true"] .chev { color: var(--inkx); }
.subs { display: grid; gap: 1px; margin: .3rem 0 .45rem 1.45rem; padding-left: .7rem; border-left: 2px dashed var(--hair); }
.subs a { padding: .32rem .55rem; border-radius: 8px; font-size: .84rem; text-decoration: none; color: var(--ink2); }
.subs a:hover { background: var(--paper2); color: var(--ink); }
.subs a[aria-current="page"] { color: var(--ink); font-weight: 700; background: var(--cs); }
[data-theme="nightowl"] .subs a[aria-current="page"] { background: var(--paper3); }
.nbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--pink); color: var(--inkx); border: 1.5px solid var(--line); font: 700 .66rem var(--mono); font-style: normal; }
.side-foot { margin-top: auto; padding-top: .7rem; border-top: 2px dashed var(--hair); display: grid; gap: .15rem; }
.main-col { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 1.2rem 2rem 4rem; flex: 1; }
.foot { text-align: center; padding: 1.2rem; font: 700 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); }
.demo-band { background: var(--ink); color: var(--paper); text-align: center; padding: .45rem 1rem; font: 700 .7rem/1.3 var(--mono); letter-spacing: .06em; }
.demo-band a { color: var(--butter); margin-left: .5rem; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .6rem; padding: .55rem 2rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--hair); }
.top .menu, .top-brand { display: none; }
.top-brand { align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); } .top-brand b { font: 800 1.15rem var(--display); letter-spacing: -.03em; }
.tb-tools { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.search { position: relative; display: flex; align-items: center; }
.search > .ic { position: absolute; left: .7rem; width: 16px; height: 16px; color: var(--ink2); pointer-events: none; }
.search input { width: 240px; padding: .48rem .8rem .48rem 2.1rem; border: var(--b); border-radius: 99px; background: var(--paper); color: var(--ink); font: 500 .86rem var(--sans); }
.search input:focus { outline: none; box-shadow: var(--sh-sm); }
.search-res { position: absolute; right: 0; top: calc(100% + 6px); width: min(380px, 90vw); display: none; padding: .4rem; background: var(--paper); border: var(--b); border-radius: 12px; box-shadow: var(--sh); z-index: 50; }
.search-res.on { display: grid; gap: 2px; }
.search-res button { all: unset; cursor: pointer; display: flex; gap: .5rem; align-items: center; padding: .45rem .5rem; border-radius: 8px; }
.search-res button:hover, .search-res button:focus-visible { background: var(--paper2); }
.top .icon-btn { border: 2px solid var(--line); background: var(--paper); box-shadow: var(--sh-sm); color: var(--ink); }
.scrim { display: none; }
.tabbar { display: none; }

/* ---------- Section bar and page heads ---------- */
.pillar-bar { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; margin: .3rem 0 .2rem; }
.pb-name { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .6rem; background: var(--c); color: var(--inkx); border: var(--b); border-radius: 8px; box-shadow: var(--sh-sm); font: 700 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-1.5deg); }
.pb-name .ic { width: 14px; height: 14px; }
.pillar-bar .tabs { display: flex; gap: .4rem; flex-wrap: wrap; border: 0; margin: 0; padding: 0; overflow: visible; }
.pillar-bar .tabs a { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .75rem; border: 2px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--ink); text-decoration: none; font: 600 .82rem var(--sans); white-space: nowrap; }
.pillar-bar .tabs a .ic { width: 15px; height: 15px; }
.pillar-bar .tabs a:hover { background: var(--paper2); }
.pillar-bar .tabs a[aria-current="page"] { background: var(--c); color: var(--inkx); box-shadow: var(--sh-sm); transform: translate(-1px, -1px); }
.pillar-bar .nbadge { min-width: 18px; height: 18px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.4rem 0 1.3rem; }
.page-head > div:first-child { max-width: 48rem; }
.script-kicker, .kicker { display: block; font: 700 1.45rem/1 var(--hand); color: var(--berry); margin-bottom: .3rem; }
.kicker .spk { display: none; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); line-height: 1; letter-spacing: -.045em; }
.lede { margin: .7rem 0 0; color: var(--ink2); max-width: 62ch; font-size: .98rem; }
.head-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.tab-body { display: block; }

/* ---------- Home ---------- */
.page-home main, main.page-home { padding-top: 1.6rem; }
.home-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.6rem 2.4rem; align-items: center; margin: .6rem 0 1.6rem; }
.hello-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.hello-tags .stk:nth-child(2) { transform: rotate(2deg); }
.hello-h { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .95; letter-spacing: -.05em; margin: 0; }
.hello .hand { margin: .5rem 0 0; font-size: 1.7rem; }
.dump-card { padding-top: 1.5rem; }
.hand-h { font: 700 1.7rem/1.05 var(--hand); letter-spacing: 0; color: var(--ink); margin-bottom: .7rem; }
.dumpbox { display: flex; gap: .5rem; }
.dumpbox .input { flex: 1; }
.dumpbox .icon-btn { width: 42px; height: 42px; background: var(--ink); color: var(--paper); border: var(--b); border-radius: 10px; }
.dump-card p { margin: .7rem 0 0; } .dump-card a { font-weight: 600; }
.exams-strip { display: flex; gap: .8rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.exam-chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .55rem; align-items: baseline; padding: .55rem .9rem .6rem; background: var(--c); color: var(--inkx); border: var(--b); border-radius: 12px; box-shadow: var(--sh-sm); text-decoration: none; }
.exam-chip:nth-child(odd) { transform: rotate(-1deg); } .exam-chip:nth-child(even) { transform: rotate(1deg); }
.exam-chip b { grid-row: span 2; font: 800 2rem/1 var(--display); letter-spacing: -.04em; }
.exam-chip span { font: 700 .62rem var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.exam-chip small { font-weight: 600; font-size: .78rem; }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; margin-bottom: 1.3rem; align-items: start; }
.home-grid.two-one { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.home-grid .card-head { display: block; margin-bottom: .8rem; }
.home-grid .card-head .kick { margin-bottom: .3rem; }
.home-grid .card-head h2 { font-size: 1.45rem; }
.vision-peek .card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.tasks { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; }
.agenda, .dues { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: .4rem; }
.ag { display: flex; align-items: center; gap: .7rem; padding: .5rem .65rem; border: 2px solid var(--line); border-radius: 10px; background: var(--cs, var(--paper2)); }
.ag.now { background: var(--c); color: var(--inkx); box-shadow: var(--sh-sm); }
.ag > span:nth-child(2) { flex: 1; min-width: 0; display: grid; } .ag small { color: inherit; opacity: .8; }
.ag-t { font: 700 .72rem var(--mono); min-width: 3.1rem; }
.link-row { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: .7rem; padding: .45rem .55rem; border-radius: 10px; border: 2px solid transparent; }
.link-row:hover { background: var(--paper2); border-color: var(--line); }
.link-row > span:nth-child(2) { display: grid; min-width: 0; } .link-row small { color: var(--ink2); }
.due-n { flex: none; min-width: 3.4rem; text-align: center; padding: .25rem .35rem; border-radius: 7px; border: 1.5px solid var(--line); background: var(--paper2); font: 700 .66rem var(--mono); text-transform: uppercase; }
.due.u-late .due-n { background: var(--red); color: #fff; border-color: var(--red); } .due.u-today .due-n { background: var(--pink); color: var(--inkx); } .due.u-soon .due-n { background: var(--butter); color: var(--inkx); }
.note-card { background: var(--c, var(--butter)); color: var(--inkx); padding-top: 1.5rem; }
.note-card.butter { --c: var(--butter); } .note-card .kick { color: var(--inkx); opacity: .75; }
.note-card a { color: var(--inkx); font-weight: 700; }
.affirm { font: 700 2rem/1.1 var(--hand); margin: .6rem 0 .8rem; }
.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; }
.vp-grid .vt-tools { display: none; }
[data-theme="nightowl"] .note-card { --c: color-mix(in srgb, var(--butter) 85%, var(--bg)); }

/* Settings palettes */
.set-row.col { flex-direction: column; align-items: stretch; }
.pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin-top: .6rem; }
.pal { all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .3rem; padding: .6rem; border: var(--b); border-radius: 12px; background: var(--paper); }
.pal:hover { background: var(--paper2); }
.pal[aria-pressed="true"] { box-shadow: var(--sh); background: var(--butter-s); }
.pal-sw { display: flex; height: 26px; border: 2px solid var(--line); border-radius: 7px; overflow: hidden; } .pal-sw i { flex: 1; }
.pal b { font-size: .92rem; } .pal small { color: var(--ink2); font-size: .74rem; }
.pal:focus-visible { outline: 3px solid var(--berry); }

/* ---------- Responsive shell ---------- */
@media (max-width: 1100px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .search input { width: 180px; } }
@media (max-width: 960px) {
  .side { transform: translateX(-102%); transition: transform .25s ease; box-shadow: none; }
  body.nav-on .side { transform: none; box-shadow: 8px 0 0 rgb(0 0 0 / .08); }
  body.nav-on .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgb(20 16 40 / .35); }
  .main-col { margin-left: 0; }
  .top { padding: .5rem 1rem; } .top .menu { display: inline-grid; } .top-brand { display: inline-flex; }
  main { padding: 1rem 1rem 6.5rem; }
  .home-top, .home-grid, .home-grid.two-one { grid-template-columns: minmax(0, 1fr); }
  .tabbar { display: flex; position: fixed; left: .6rem; right: .6rem; bottom: .6rem; z-index: 30; justify-content: space-around; align-items: center; padding: .35rem .3rem calc(.35rem + env(safe-area-inset-bottom) * .5); background: var(--paper); border: var(--b); border-radius: 16px; box-shadow: var(--sh); }
  .tabbar a, .tabbar button { all: unset; cursor: pointer; display: grid; justify-items: center; gap: 1px; padding: .3rem .5rem; border-radius: 10px; font: 700 .58rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
  .tabbar .ic { width: 21px; height: 21px; }
  .tabbar [aria-current="page"] { color: var(--inkx); background: var(--butter); }
  .tabbar .fab { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border-radius: 13px; background: var(--pink); color: var(--inkx); border: var(--b); box-shadow: var(--sh-sm); margin-top: -18px; }
  .foot { padding-bottom: 6rem; }
}
@media (max-width: 600px) {
  .search { display: none; }
  .pillar-bar .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding: 2px 4px 6px; margin: 0 -4px; }
  .pillar-bar .tabs::-webkit-scrollbar { display: none; }
  .page-head { padding: 1rem 0 1rem; }
  .hello-h { font-size: 2.6rem; }
}

/* ---------- Sign in ---------- */
.auth-art { background-color: var(--pink-s); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; align-content: center; }
.aa-notes { position: absolute; inset: 0; }
.aa-note { color: var(--inkx); font-family: var(--hand); font-size: 1.5rem; box-shadow: var(--sh); border: var(--b); border-radius: 4px; }
.aa-note.n1 { background: var(--butter); } .aa-note.n2 { background: var(--sky); } .aa-note.n3 { top: auto; bottom: 10%; left: auto; right: 10%; background: var(--lime); transform: rotate(-3deg); }
.aa-over { box-shadow: 8px 8px 0 var(--shadow); }
.logo.big { width: 64px; height: 64px; font-size: 2.2rem; border-radius: 16px; margin-bottom: .9rem; }
.aa-title { font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; letter-spacing: -.05em; } .aa-dot { color: var(--berry); }
.aa-hand { font-size: 1.8rem; margin: .4rem 0 0; }
.section { margin-top: 2rem; } .section-sm { margin-top: 1rem; }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.blk.k-lecture { --tc: var(--sky-s); } .blk.k-study, .blk.k-focus { --tc: var(--lime-s); } .blk.k-extra { --tc: var(--violet-s); } .blk.k-work { --tc: var(--orange-s); }
.blk.k-meeting { --tc: var(--sky-s); } .blk.k-admin { --tc: var(--butter-s); } .blk.k-personal { --tc: var(--pink-s); }
.pal-grid { align-items: start; width: 100%; } .pal { align-self: start; align-content: start; height: auto; min-height: 0; }
