/* Text sizes (2026-11): only .75, .875, 1, 1.125, 1.375, 1.75 and 2.25 rem (12 to 36 px). Pick one of these.
   Kanopy — design tokens, light + dark. Nature palette from the logo: sunrise peach, mint, forest green. */

/* The font is served by Kanopy itself (public/fonts, SIL Open Font License in fonts/OFL.txt), not by Google Fonts:
   one less outside server on the first load, and index.html can preload the Latin file. One variable file per
   alphabet covers weights 400 to 800; a browser only downloads the ones a page actually uses. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/plus-jakarta-sans-v12-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/plus-jakarta-sans-v12-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/plus-jakarta-sans-v12-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/plus-jakarta-sans-v12-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #f7f5ef;
  --bg-glow: radial-gradient(1200px 600px at 10% -10%, #ffe6c7 0%, transparent 60%),
             radial-gradient(900px 500px at 110% 0%, #dcf2e5 0%, transparent 55%);
  --surface: #fffdf8;
  --surface-2: #efede4;
  --text: #17221c;
  --muted: #586459;
  --faint: #5f6d61;
  --line: #e4e1d5;
  --accent: #2d6a3e;
  --accent-2: #e9a765;
  --accent-text: #ffffff;
  --grad: linear-gradient(135deg, #3a9b6c 0%, #1f7a52 55%, #0f5a40 100%);
  --sunrise: rgb(255 207 154 / .5);
  --red: #c02a39;  --red-soft: #fbe7e8;
  --orange: #a84f06; --orange-soft: #fdeedd;
  --amber: #7d5b00; --amber-soft: #fbf1d3;
  --green: #2d6a3e;
  --shadow: 0 1px 2px rgb(20 40 30 / .05), 0 8px 24px rgb(20 40 30 / .07);
  --shadow-lg: 0 20px 50px rgb(15 80 55 / .24);
  --course-l: 44%;
  --leaf-amt: 14%; /* how strongly the corner leaves show against the page (see "Canopy look") */
  --radius: 18px;
  /* The plan card: the logo's own colours, forest green with cream text (7.3 : 1), the same in the light and
     dark looks. --card-2 is a block inside it; --sun is for progress only. Midnight, Sunset and Blossom set their own. */
  --card: #335638; --card-2: #284530; --card-ink: #f6f0dd; --card-line: rgb(246 240 221 / .2); --sun: #f0b46e;
  /* --card-btn: dark text on a cream button or block. --primary: the main button (forest on light looks, the
     bright accent on dark ones, so it stands out from a dark page). */
  --card-btn: #1d3423; --primary: var(--card); --primary-ink: var(--card-ink);
  color-scheme: light;
}
/* Dark: when the device is dark and no theme is picked ("System"), or "Dark" is picked. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0d1511;
    --bg-glow: radial-gradient(1200px 600px at 10% -10%, #3a2a17 0%, transparent 60%),
               radial-gradient(900px 500px at 110% 0%, #123526 0%, transparent 55%);
    --surface: #152019;
    --surface-2: #1d2b23;
    --text: #edf3ee;
    --muted: #a5b3aa;
    --faint: #8a9a90;
    --line: #243229;
    --accent: #6fd3a0;
    --accent-2: #f2b97a;
    --accent-text: #0d1511;
    --grad: linear-gradient(135deg, #2f8f63 0%, #1b6b4b 55%, #0f4e38 100%);
    --sunrise: rgb(255 196 130 / .38);
    --red: #ff7a86;  --red-soft: #3a1b1f;
    --orange: #ffab66; --orange-soft: #392514;
    --amber: #f0c552; --amber-soft: #342b12;
    --green: #6fd3a0; --primary: var(--accent); --primary-ink: var(--accent-text);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .28);
    --shadow-lg: 0 20px 60px rgb(0 0 0 / .45);
    --course-l: 66%; --leaf-amt: 26%;
    color-scheme: dark;
  }
}

/* ---------- Themes (Settings → Appearance), picked per device ---------- */
:root[data-theme="dark"], :root[data-theme="forest"], :root[data-theme="midnight"], :root[data-theme="sunset"] {
  --leaf-amt: 26%;
  --bg: #0d1511;
  --bg-glow: radial-gradient(1200px 600px at 10% -10%, #3a2a17 0%, transparent 60%),
             radial-gradient(900px 500px at 110% 0%, #123526 0%, transparent 55%);
  --surface: #152019; --surface-2: #1d2b23;
  --text: #edf3ee; --muted: #a5b3aa; --faint: #8a9a90; --line: #243229;
  --accent: #6fd3a0; --accent-2: #f2b97a; --accent-text: #0d1511;
  --grad: linear-gradient(135deg, #2f8f63 0%, #1b6b4b 55%, #0f4e38 100%);
  --sunrise: rgb(255 196 130 / .38);
  --red: #ff7a86; --red-soft: #3a1b1f; --orange: #ffab66; --orange-soft: #392514; --amber: #f0c552; --amber-soft: #342b12;
  --green: #6fd3a0; --primary: var(--accent); --primary-ink: var(--accent-text);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px rgb(0 0 0 / .28);
  --shadow-lg: 0 20px 60px rgb(0 0 0 / .45);
  --course-l: 66%;
  color-scheme: dark;
}
/* Forest: deeper, mossier greens with a warm sunrise glow. */
:root[data-theme="forest"] {
  --bg: #0a120c;
  --bg-glow: radial-gradient(1200px 700px at 0% -10%, #4a3415 0%, transparent 60%),
             radial-gradient(900px 600px at 110% 10%, #1b4a2c 0%, transparent 55%);
  --surface: #122016; --surface-2: #1a2d1f; --line: #23382a;
  --accent: #8fdc8a; --grad: linear-gradient(135deg, #3f8f4a 0%, #2a6b39 55%, #17482a 100%);
}
/* Midnight: deep navy with electric blue. */
:root[data-theme="midnight"] {
  --bg: #070b18;
  --bg-glow: radial-gradient(1200px 600px at 10% -10%, #14205a 0%, transparent 60%),
             radial-gradient(900px 500px at 110% 0%, #0b3a5c 0%, transparent 55%);
  --surface: #0f1530; --surface-2: #161e40; --text: #e8edff; --muted: #a3acd0; --faint: #8a94bd; --line: #222b52;
  --accent: #5cc8ff; --accent-2: #a78bfa; --accent-text: #070b18; --green: #5cc8ff;
  --grad: linear-gradient(135deg, #3b6cff 0%, #2747c9 55%, #182a86 100%);
  --sunrise: rgb(92 200 255 / .3);
  --card: #2a41b0; --card-2: #22368f; --card-ink: #ffffff; --card-btn: #16235f; --card-line: rgb(255 255 255 / .2); --sun: #8fd8ff;
}
/* Sunset: warm purple and orange. */
:root[data-theme="sunset"] {
  --bg: #140b16;
  --bg-glow: radial-gradient(1200px 600px at 10% -10%, #5a2a14 0%, transparent 60%),
             radial-gradient(900px 500px at 110% 0%, #4a1a4a 0%, transparent 55%);
  --surface: #1f1222; --surface-2: #2a182d; --text: #fbeef2; --muted: #d0a9b8; --faint: #ab8a9b; --line: #3a2340;
  --accent: #ff9f6b; --accent-2: #ff6fa8; --accent-text: #140b16; --green: #ff9f6b;
  --grad: linear-gradient(135deg, #ff7a59 0%, #d4457a 55%, #7a2a8f 100%);
  --sunrise: rgb(255 200 120 / .45);
  --card: #a8346b; --card-2: #8c2a59; --card-ink: #ffffff; --card-btn: #6d1f45; --card-line: rgb(255 255 255 / .2); --sun: #ffc38a;
}
/* Blossom: soft pink and lavender, light. */
:root[data-theme="blossom"] {
  --bg: #fdf4f7;
  --bg-glow: radial-gradient(1200px 600px at 10% -10%, #ffd6e4 0%, transparent 60%),
             radial-gradient(900px 500px at 110% 0%, #e7dcff 0%, transparent 55%);
  --surface: #fffafc; --surface-2: #f7e9ef; --text: #2b1a24; --muted: #6e5563; --faint: #7a5f6c; --line: #f0dce5;
  --accent: #c2356f; --accent-2: #9b6bff; --accent-text: #ffffff; --green: #b8366f;
  --grad: linear-gradient(135deg, #f27aa8 0%, #d6457f 55%, #9b4fc4 100%);
  --sunrise: rgb(255 214 228 / .6);
  --card: #b03a6e; --card-2: #96305d; --card-ink: #ffffff; --card-btn: #74233f; --card-line: rgb(255 255 255 / .22); --sun: #ffd9a8;
  --shadow: 0 1px 2px rgb(80 20 50 / .05), 0 8px 24px rgb(80 20 50 / .08);
  --shadow-lg: 0 20px 50px rgb(160 40 100 / .24);
  --course-l: 46%;
  color-scheme: light;
}

/* Appearance picker */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.theme-opt {
  border: 2px solid var(--line); border-radius: 14px; padding: 6px; background: var(--surface);
  display: grid; gap: 6px; font-size: .75rem; font-weight: 700; color: var(--text);
}
.theme-opt[aria-pressed="true"] { border-color: var(--accent); }
.theme-opt i { display: block; height: 34px; border-radius: 9px; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* The glow stays put while the page scrolls. A fixed layer instead of `background-attachment: fixed`,
   which makes phones repaint the whole background on every scroll frame. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--bg-glow), var(--bg);
}
.app {
  max-width: 560px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 16px 120px;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input {
  font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid transparent; border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0;
  transition: border-color .15s, background .15s;
}
input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
textarea {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid transparent;
  border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; resize: vertical;
}
textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.seg.rating button { font-size: 1.375rem; padding: 6px 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.icon { display: inline-flex; width: 20px; height: 20px; }
.icon svg { width: 100%; height: 100%; }

/* Header */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.today { margin: 0 0 2px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.top h1 { font-size: 1.75rem; font-weight: 800; }
.top-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); box-shadow: var(--shadow); transition: transform .15s, color .15s;
}
.icon-btn:hover { color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.spinning .icon { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Buttons */
.btn {
  border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s, filter .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow); }
.btn.soft { background: rgb(255 255 255 / .14); color: var(--card-ink); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.tonal { background: var(--surface-2); color: var(--text); }
.btn.wide { width: 100%; }
.btn.danger-link { background: none; color: var(--red); font-weight: 600; padding: 8px 0; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Setup: the steps and the Paste button fit on a phone's first screen (no logo tile above them). */
.setup { text-align: center; padding: 8px 4px 24px; }
.brand-logo { width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 6px; }
.setup h2 { font-size: 1.75rem; font-weight: 800; }
.today .brand-mark { font-weight: 800; color: var(--accent); }
.setup .muted { max-width: 34ch; margin: 6px auto 12px; }
.setup-note { max-width: 420px; margin: 10px auto 4px; font-size: .875rem; color: var(--muted); }
/* Inside Instagram, Snapchat and the like: offer the real browser first (never a dead end: "Stay here"). */
.inapp { max-width: 420px; margin: 0 auto 18px; padding: 16px; border-radius: var(--radius); background: var(--card-ink); color: #1d3423; text-align: left; }
.inapp b { display: block; font-size: 1.125rem; font-weight: 800; line-height: 1.25; }
.inapp p { margin: 6px 0 12px; font-size: .875rem; color: #33473a; }
.inapp .inapp-go { display: flex; justify-content: center; min-height: 48px; background: var(--card); color: var(--card-ink); text-decoration: none; }
.inapp .inapp-how { margin: 10px 0 0; font-size: .875rem; }
/* iPhone inside Instagram/Facebook: no button can open Safari, so the two taps in the app's menu are the main line. */
.inapp .inapp-how.steps { margin: 0 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--card); color: var(--card-ink); font-size: 1rem; font-weight: 800; line-height: 1.35; }
.inapp-stay { display: block; margin: 4px auto 0; min-height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-weight: 700; color: #1d3423; text-decoration: underline; text-underline-offset: 3px; }
/* Phones: an optional "rather use a laptop?" card under the phone steps. */
.phone-card { max-width: 420px; margin: 18px auto 8px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.phone-card b { display: block; font-size: 1.125rem; font-weight: 800; line-height: 1.25; }
.phone-card p { margin: 6px 0 12px; font-size: .875rem; color: var(--muted); }
.phone-card .btn { min-height: 48px; }
.phone-card .gbtn { margin: 0 0 4px; }
.phone-card .phone-or { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.steps { text-align: left; max-width: 360px; margin: 0 auto 14px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; padding: 6px 0; color: var(--muted); }
.steps li::before {
  content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); font-size: .875rem; font-weight: 700; color: var(--accent);
}
.steps strong { color: var(--text); }
.feed-form { display: flex; gap: 8px; max-width: 420px; margin: 0 auto 8px; }
/* Paste (the easy way) on its own line, then the box for pasting by hand; Connect shows once the box has text. */
.setup .feed-form { flex-wrap: wrap; }
.setup .feed-form input { flex: 1 1 60%; }
.setup .feed-form #feed-paste { flex: 1 1 100%; min-height: 54px; font-size: 1rem; border-radius: 16px; }
/* In-app browsers: no Paste button (clipboard is blocked there), so the box is the big main target. */
.setup .feed-form.box-main label { flex: 1 1 100%; font-weight: 800; color: var(--text); text-align: center; }
.setup .feed-form.box-main input { flex: 1 1 100%; min-height: 64px; font-size: 1.0625rem; border: 2px dashed var(--accent); border-radius: 16px; text-align: center; }
.canvas-link { font-weight: 800; color: var(--accent); }
/* Paste pressed with nothing copied: say so under the button and light up step 1. */
.feed-help { max-width: 420px; margin: 0 auto 8px; font-size: .9375rem; font-weight: 700; color: var(--text); }
.steps li.nudge { color: var(--text); background: var(--surface-2); border-radius: 10px; margin: 0 -10px; padding: 6px 10px; outline: 2px solid var(--accent);
  /* the card style ".nudge" (below) shares this class name: undo its wrap, border and shadow, or the number sits alone above the text */
  flex-wrap: nowrap; justify-content: flex-start; align-items: baseline; border: 0; box-shadow: none; }
.canvas-other { display: block; font-size: .875rem; color: var(--faint); margin-top: 2px; }
.feed-pics { display: flex; justify-content: center; gap: 10px; margin: 0 auto 16px; max-width: 420px; }
.feed-pics svg { flex: 1 1 0; min-width: 0; height: auto; max-width: 160px; }
.trust-line { margin: 10px 0 0; font-size: .75rem; color: var(--faint); text-align: center; }
/* The sign-in card right after a real list loads: the student's own number first. */
.nudge.hook #save-title { font-size: 1.125rem; line-height: 1.3; margin-bottom: 4px; }
/* One-line "what it asks" under a plan block. */
.day-about { display: block; font-size: .875rem; opacity: .88; margin-top: 4px; line-height: 1.35; }

/* First visit (intro): one line, a live preview from the sample data, one big button. */
.intro { display: grid; gap: 18px; padding: 4px 0 8px; }
.intro-head { font-size: 1.75rem; font-weight: 800; line-height: 1.15; }
.intro-head .grad { display: block; color: var(--accent); } /* the second sentence starts its own line */
.intro-preview { position: relative; pointer-events: none; user-select: none; }
/* The preview is the sample day in three rows: short, so the button stays on a small phone's first screen. */
.intro-day { background: var(--card); color: var(--card-ink); border-radius: var(--radius); padding: 14px 16px 12px; box-shadow: var(--shadow); }
.intro-day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 2px; font-size: .875rem; }
.intro-day-head b { font-weight: 700; }
.intro-day-head span { opacity: .88; }
.intro-day ol { list-style: none; margin: 0; padding: 0; }
.intro-day li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--card-line); }
.intro-day li:first-child { border-top: 0; }
.intro-day .t { flex: none; width: 4.7em; opacity: .88; font-variant-numeric: tabular-nums; }
.intro-day li b { flex: 1; min-width: 0; font-weight: 700; }
.intro-day .d { flex: none; opacity: .88; }
.intro-day .intro-note { margin: 4px 0 0; font-size: .75rem; color: inherit; opacity: .88; }
.intro-hours { display: inline-flex; align-items: center; gap: 3px; margin-right: 4px; color: var(--accent); font-weight: 700; white-space: nowrap; }
.intro-hours .icon { width: 13px; height: 13px; }
.intro-cta { display: grid; gap: 4px; }
.intro-go { font-size: 1.125rem; padding: 17px 18px; border-radius: 16px; }
.intro-own { justify-self: center; min-height: 44px; }
.intro-cta .trust-line { margin: 0; font-size: .875rem; color: var(--muted); }
.intro-privacy { margin: 8px 0 0; font-size: .75rem; line-height: 1.45; color: var(--faint); text-align: center; }
.intro-privacy a { color: var(--muted); }
.setup-privacy { max-width: 420px; margin: 6px auto; font-size: .75rem; line-height: 1.45; color: var(--faint); text-align: center; }
.setup-privacy a { color: var(--muted); }
/* No greeting above the intro or the Canvas setup: their own heading says it all. */
body:has(#intro:not([hidden])) #greeting, body:has(#setup:not([hidden])) #greeting { display: none; }
/* A brand-new visitor: index.html marks the page "first" before app.js has loaded, and the first screen shows
   straight from the page (this beats the [hidden] rule). app.js removes the mark on its first draw. */
html.first #intro { display: grid !important; }
html.first #greeting { display: none; }
@media (max-width: 420px) {
  .intro-head { font-size: 1.375rem; }
}
@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-areas: "head preview" "cta preview"; align-content: center; column-gap: 48px; min-height: 60vh; max-width: 1000px; margin: 0 auto; }
  .intro-head { grid-area: head; align-self: end; font-size: 2.25rem; }
  .intro-preview { grid-area: preview; align-self: center; }
  .intro-cta { grid-area: cta; align-self: start; max-width: 420px; }
  .intro-own { justify-self: start; padding-left: 0; }
  .intro-privacy, .intro-cta .trust-line { text-align: left; }
}

/* Summary + hero */
.summary { margin: 0 0 14px; color: var(--muted); font-weight: 500; }
.summary b { color: var(--text); }
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 22px 20px 20px; margin-bottom: 26px;
  background: var(--card); color: var(--card-ink); box-shadow: var(--shadow);
}
/* (No glow on the card any more: it washed out the text in the top corner.) */
.hero .eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .875rem; font-weight: 700; }
.hero h2 { font-size: 1.75rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.hero .course { margin: 6px 0 0; opacity: .85; font-weight: 500; }
.hero .why { margin: 14px 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.hero .why li { font-size: .875rem; font-weight: 600; background: rgb(255 255 255 / .16); padding: 5px 10px; border-radius: 999px; }
.hero .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .btn.light { background: var(--card-ink); color: var(--card-btn); }
.hero .plan-btn.wide { margin-bottom: 8px; font-size: 1rem; padding: 14px 18px; }
.btn.small { padding: 8px 12px; font-size: .875rem; border-radius: 11px; }

/* Plan my day: the day view in the big card */
.hero.day h2 { font-size: 1.375rem; }
.hero.day .eyebrow .day-sum { margin-left: auto; font-weight: 600; opacity: .9; }
.day-allday { margin: 8px 0 0; font-size: .875rem; opacity: .85; }
.day-alert, .day-nudge { margin: 14px 0 0; padding: 10px 12px; border-radius: 14px; background: rgb(255 255 255 / .14); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .875rem; font-weight: 600; }
.day-alert span { flex: 1 1 160px; }
.day-nudge { display: grid; gap: 8px; }
.day-nudge p { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.day-nudge p .icon { flex: none; margin-top: 1px; }
.day-nudge-btns { display: flex; gap: 12px; align-items: center; }
.day-nudge .link-btn { border: 0; background: none; padding: 0; font: inherit; font-size: .875rem; font-weight: 600; color: inherit; opacity: .9; text-decoration: underline; cursor: pointer; }
.day-nudge-x { margin-left: auto; border: 0; background: none; color: inherit; opacity: .9; padding: 6px; line-height: 0; cursor: pointer; }
.day-nudge-x svg { width: 16px; height: 16px; }
.day-line { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.day-line + .day-line { margin-top: 8px; }
.day-line li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-radius: 14px; padding: 9px 10px 9px 12px; }
.hero:not(.timed) .day-slot { grid-template-columns: 52px minmax(0, 1fr) auto; }
.day-time { font-size: .875rem; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.day-time span { display: block; font-weight: 500; opacity: .8; }
.day-what { min-width: 0; }
.day-what b { display: flex; align-items: center; gap: 6px; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.day-note { display: block; font-size: .875rem; opacity: .88; margin-top: 2px; overflow-wrap: anywhere; }
.day-tag { flex: none; font-size: .75rem; font-weight: 700; background: var(--card-ink); color: var(--card-btn); border-radius: 999px; padding: 2px 9px; }
.day-slot { background: var(--card-2); border-left: 4px solid hsl(var(--h) 75% 72%); }
/* The block to do next is the logo turned inside out: dark text on cream. Nothing else on the card looks like it. */
.day-slot.now, .day-slot.next { background: var(--card-ink); color: var(--card-btn); }
.hero .day-slot.now .btn, .hero .day-slot.next .btn { background: var(--card); color: var(--card-ink); }
.day-slot.now .day-tag, .day-slot.next .day-tag { background: var(--card-btn); color: var(--card-ink); }
.day-slot.now .day-note, .day-slot.next .day-note, .day-slot.now .day-about, .day-slot.next .day-about, .day-slot.now .day-time span, .day-slot.next .day-time span { opacity: 1; }
.day-slot.missed .day-time { text-decoration: line-through; opacity: .75; }
.day-slot.done { opacity: .6; }
.day-slot.done .day-what b { text-decoration: line-through; }
.day-event { border: 1.5px dashed rgb(255 255 255 / .35); grid-template-columns: 72px minmax(0, 1fr) !important; padding-top: 7px !important; padding-bottom: 7px !important; }
.day-event .day-what b { font-size: .875rem; font-weight: 600; opacity: .9; }
.day-event.free { border-style: dotted; opacity: .75; }
.day-event.past { opacity: .5; }
.day-due { grid-template-columns: 72px minmax(0, 1fr) !important; padding-top: 4px !important; padding-bottom: 4px !important; }
.day-due .day-what b { font-size: .875rem; font-weight: 700; color: var(--sun); }
.day-due .day-time { color: var(--sun); }
.day-check { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--card-ink); color: var(--card-btn); display: grid; place-items: center; cursor: pointer; }
.day-check svg { width: 16px; height: 16px; }
.day-msg { margin: 14px 0 0; font-size: .875rem; font-weight: 600; opacity: .95; }
.day-tip { margin: 14px 0 0; font-size: .875rem; opacity: .9; border-left: 3px solid rgb(255 255 255 / .6); padding-left: 10px; }
.hero.day .actions { margin-top: 16px; }
.day-shimmer { margin-top: 14px; }
.day-shimmer div, .day-shimmer div:first-child { height: 46px; width: auto; background: linear-gradient(90deg, rgb(255 255 255 / .12), rgb(255 255 255 / .28), rgb(255 255 255 / .12)); background-size: 200% 100%; }
@media (prefers-reduced-motion: reduce) { .day-shimmer div { animation: none; } }
.hero.clear { background: var(--surface); color: var(--text); box-shadow: var(--shadow); text-align: center; padding: 30px 20px; }
.hero.clear::before { display: none; }
.hero.clear .big { font-size: 2.25rem; }

/* Groups + rows */
.group { margin-bottom: 22px; }
.group h3 { font-size: .875rem; font-weight: 700; color: var(--muted); margin: 0 0 10px 4px; display: flex; gap: 8px; align-items: center; }
.group.overdue h3 { color: var(--red); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.row {
  --course: hsl(var(--h, 250) 70% var(--course-l));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, opacity .3s;
}
.row-main { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; }
.check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--faint); background: none;
  display: grid; place-items: center; padding: 0; color: transparent; transition: all .2s;
}
.check:hover { border-color: var(--green); color: var(--green); }
.check .icon { width: 14px; height: 14px; }
.row.is-done .check, .row.completing .check { background: var(--green); border-color: var(--green); color: var(--accent-text); }
.row.completing { opacity: 0; transform: translateX(24px); }
.row.is-done .title { text-decoration: line-through; color: var(--muted); }
.row-body { flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; }
.title { font-weight: 650; font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.row.open .title { white-space: normal; }
.sub { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; font-size: .875rem; color: var(--muted); margin-top: 2px; min-width: 0; }
.sub .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--course); }
.sub .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub .name { max-width: 100%; }
.sub .doing { color: var(--accent); font-weight: 600; white-space: nowrap; }
.sub .row-hours { white-space: nowrap; }
/* The "·" between the parts is drawn just left of each part. On a phone the parts wrap, and a part that starts a
   new line pushes its dot past the left edge, where .sub cuts it off (no line starts with a stray dot). */
.sub { overflow: hidden; column-gap: 12px; }
.sub .dot { margin-right: -6px; }
.sub .sep { position: relative; white-space: nowrap; }
.sub .sep::before { content: "·"; position: absolute; left: -8px; width: 4px; text-align: center; color: var(--muted); font-weight: 400; }
.hero.day > .day-nudge { margin-top: 14px; }
.due-box { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.15; }
.due-box b {
  font-size: .875rem; font-weight: 800; padding: 4px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.due-box small { font-size: .75rem; color: var(--faint); margin-top: 4px; white-space: nowrap; }
.due-box.red b { background: var(--red-soft); color: var(--red); }
.due-box.orange b { background: var(--orange-soft); color: var(--orange); }
.due-box.amber b { background: var(--amber-soft); color: var(--amber); }
.chip { flex: none; font-size: .75rem; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.orange { background: var(--orange-soft); color: var(--orange); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }

/* Expanded detail */
.detail { padding: 2px 14px 14px 50px; display: grid; gap: 14px; }
.detail.anim { animation: open .2s ease-out; }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } }
.field-label { font-size: .875rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 12px; }
.stepper button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.125rem; font-weight: 700; color: var(--muted); }
.stepper span { min-width: 46px; text-align: center; font-weight: 700; }
.dots { display: inline-flex; gap: 4px; }
.dots button { width: 26px; height: 26px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.dots button::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: transparent; border: 2px solid var(--faint); transition: all .15s; }
.dots button.on::before { background: var(--course); border-color: var(--course); }
.ai-link { border: 0; background: none; padding: 4px 0; font-size: .875rem; font-weight: 700; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }
.ai-link[disabled] { color: var(--faint); cursor: progress; }
.suggest { font-size: .875rem; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; color: var(--muted); }
.suggest b { color: var(--text); }
.suggest .btn { padding: 6px 12px; font-size: .875rem; margin-top: 8px; }
.substeps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.substeps label { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; cursor: pointer; }
.substeps input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; padding: 0; }
.substeps .mins { margin-left: auto; color: var(--faint); font-size: .875rem; white-space: nowrap; }
.substeps .done-step span:first-of-type { text-decoration: line-through; color: var(--faint); }
.links { display: flex; gap: 16px; font-size: .875rem; }
.links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.links .del { border: 0; background: none; padding: 0; color: var(--red); font-weight: 600; }

/* Done */
.done-wrap { margin-top: 8px; }
.done-wrap summary { cursor: pointer; list-style: none; color: var(--muted); font-weight: 700; padding: 8px 4px; }
.done-wrap summary::-webkit-details-marker { display: none; }
.done-wrap summary::before { content: "›"; display: inline-block; margin-right: 8px; transition: transform .2s; }
.done-wrap[open] summary::before { transform: rotate(90deg); }
.count { background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-size: .875rem; margin-left: 4px; }
.done-wrap .row { box-shadow: none; opacity: .75; }
.done-hint { font-weight: 500; font-size: .875rem; color: var(--faint); margin-left: 6px; }
.started-tag { margin-left: auto; letter-spacing: .04em; background: rgb(255 255 255 / .2); padding: 3px 9px; border-radius: 999px; }

/* Add task: a plain button in the list's bar (it used to float over the page and cover things) */
.add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: .875rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--accent); }
.add-btn[hidden] { display: none; }
.add-btn .icon { width: 16px; height: 16px; }

/* First-open preview bar (/?preview=first): first thing on the page, stays at the top while scrolling */
.preview-bar {
  position: sticky; top: 0; z-index: 70; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; background: var(--accent); color: var(--accent-text);
  font-weight: 700; font-size: .875rem; box-shadow: var(--shadow);
}
.preview-bar[hidden] { display: none; }
.preview-bar span { flex: 1 1 200px; }
.preview-bar .btn { padding: 6px 12px; font-size: .875rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: max(96px, calc(env(safe-area-inset-bottom) + 80px));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: .875rem;
  box-shadow: var(--shadow-lg); transition: opacity .25s, transform .25s; width: max-content; max-width: calc(100vw - 32px);
}
.toast[popover] { inset: auto auto max(96px, calc(env(safe-area-inset-bottom) + 80px)) 50%; margin: 0; border: 0; overflow: visible; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.has-action { display: flex; align-items: center; gap: 14px; pointer-events: auto; padding-right: 8px; }
.toast-btn { flex: none; border: 0; border-radius: 10px; padding: 6px 12px; min-height: 36px; font-weight: 800; white-space: nowrap; background: var(--accent); color: var(--accent-text); }
.toast.error { background: var(--red); color: var(--accent-text); }

/* Sheets (dialogs) */
.sheet {
  border: 0; padding: 20px; border-radius: 26px; width: min(560px, calc(100vw - 24px)); max-height: 86dvh;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.sheet::backdrop { background: rgb(8 8 20 / .45); backdrop-filter: blur(3px); }
.sheet[open] { animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 600px) {
  .sheet { margin: auto auto 0; width: 100vw; max-width: 100vw; border-radius: 26px 26px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-head h2 { font-size: 1.375rem; font-weight: 800; }
.close { width: 34px; height: 34px; box-shadow: none; }
.spark { color: var(--accent); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.form .opt { font-weight: 500; color: var(--faint); }
.form .two { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.hint { margin: -4px 0 4px; font-size: .875rem; color: var(--faint); }

/* Plan */
.plan-headline { font-size: 1rem; font-weight: 600; margin: 0 0 16px; }
.timeline { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.timeline .mins { font-weight: 800; font-size: 1rem; color: var(--accent); padding-top: 2px; }
.timeline .what { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }
.timeline .what b { display: block; }
.timeline .what span { font-size: .875rem; color: var(--muted); }
/* Study blocks in Google Calendar (preview) */
.calplan-modes { margin: 0 0 12px; }
.calplan-notice { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 600; }
.calplan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.calplan-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: start; }
.calplan-time { padding-top: 10px; font-size: .875rem; font-weight: 700; color: var(--accent); }
.calplan-row .what { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; overflow-wrap: anywhere; }
.calplan-row .what > b { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.calplan-row .what > span { font-size: .875rem; color: var(--muted); }
.calplan-tag { flex: none; padding: 1px 8px; border-radius: 99px; border: 1px solid currentColor; font-size: .75rem; font-weight: 700; color: var(--accent); }
.calplan-row.gone .what > b { color: var(--muted); text-decoration: line-through; }
.calplan-row.gone .calplan-time, .calplan-row.gone .calplan-tag { color: var(--red); }
.calplan-row.gone .calplan-tag { display: inline-block; text-decoration: none; }
.calplan-kept { margin: 0 0 14px; font-size: .875rem; color: var(--muted); }
.calplan-kept summary { cursor: pointer; padding: 6px 0; font-weight: 600; }
.calplan-kept ul { margin: 4px 0 0; padding-left: 18px; }
/* Always in view, so a long preview doesn't hide the button. */
.calplan-foot { display: flex; gap: 8px; flex-wrap: wrap; position: sticky; bottom: -20px; padding: 12px 0; background: var(--surface); }
.calplan-foot a.btn { text-decoration: none; }
.tip { font-size: .875rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 12px; margin: 0 0 16px; }
/* Privacy policy notice: part of the page, so it can't cover a button. It keeps its space while the tour or a popup is open, so nothing jumps. */
.policy-note { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 4px 4px 4px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); font-size: .875rem; }
.policy-note p { margin: 0; flex: 1; padding: 6px 0; }
.policy-note a { color: var(--accent); font-weight: 600; }
.policy-note button { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--muted); line-height: 0; cursor: pointer; }
.policy-note button svg { width: 18px; height: 18px; }
body:has(dialog[open]) .policy-note, body:has(.tour:not([hidden])) .policy-note { visibility: hidden; }
/* "Caught up?" (once, after the first Canvas load). Its Undo bar looks like the notice above. */
.catchup-bar:focus, #catchup-title:focus { outline: none; }
.policy-note .catchup-undo { width: auto; padding: 0 12px; color: var(--accent); font-weight: 800; line-height: inherit; }
.catchup-text { margin: 0 0 16px; color: var(--muted); }
.catchup-list { display: grid; gap: 8px; padding-bottom: 6px; }
.catchup-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-2); cursor: pointer; }
.catchup-row:has(:checked) { border-color: var(--accent); }
.catchup-row:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.catchup-row input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.catchup-what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.catchup-what > b, .catchup-what > span { display: block; }
.catchup-what > span { font-size: .875rem; color: var(--muted); }
.catchup-tag { flex: none; font-size: .875rem; color: var(--muted); }
.catchup-tag::before { content: "Check off"; }
.catchup-row:has(:checked) .catchup-tag { color: var(--accent); font-weight: 700; }
.catchup-row:has(:checked) .catchup-tag::before { content: "Still to do"; }
/* The buttons stay in view under a long list. */
#catchup-sheet { padding-bottom: 0; scroll-padding: 12px 0 150px; }
.catchup-btns { display: grid; gap: 8px; position: sticky; bottom: 0; margin: 0 -20px; padding: 14px 20px max(20px, env(safe-area-inset-bottom)); background: var(--surface); }
.share-nudge { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); margin: 0 0 16px; }
.share-nudge .link-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; text-decoration: underline; }
.share-nudge .share-x { margin-left: auto; border: 0; background: none; color: var(--muted); padding: 4px; line-height: 0; cursor: pointer; }
.share-nudge .share-x svg { width: 16px; height: 16px; display: block; }
.plan-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-foot .muted { font-size: .875rem; }
.shimmer { display: grid; gap: 10px; }
.shimmer div { height: 52px; border-radius: 14px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sh 1.2s infinite; }
.shimmer div:first-child { height: 22px; width: 70%; }
@keyframes sh { to { background-position: -200% 0; } }

/* Accounts, nudge, privacy */
.small { font-size: .875rem; }
.setup-signin { margin-top: 22px; display: grid; justify-items: center; gap: 8px; }
.gbtn { min-height: 44px; display: flex; justify-content: center; }
.nudge {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.nudge b { display: block; }
/* One nudge at a time, under the plan: only the first card that applies is shown. */
.nudges { margin-top: 14px; }
.nudges .nudge:not([hidden]) ~ .nudge { display: none; }
.install-text { font-size: .875rem; color: var(--muted); }
.install-steps { margin: 6px 0 6px; padding-left: 20px; display: grid; gap: 4px; color: var(--text); }
.install-note { display: block; color: var(--faint); font-size: .75rem; }
.nudge span { font-size: .875rem; color: var(--muted); }
.account { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; display: grid; gap: 8px; }
.account .who { margin: 0; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
a.btn { text-decoration: none; }
.hint a { color: var(--accent); }
.privacy-short { font-size: 1rem; color: var(--muted); margin-bottom: 16px; }
.privacy-short ul { padding-left: 18px; display: grid; gap: 8px; }
.privacy-short b { color: var(--text); }
.privacy-short a { color: var(--accent); font-weight: 600; }

/* Guided tour */
.tour { position: fixed; inset: 0; z-index: 50; }
.tour-spot {
  position: absolute; border-radius: 20px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgb(8 8 20 / .62), 0 0 0 3px var(--accent);
  transition: all .3s ease;
}
.tour-card {
  position: absolute; left: 16px; width: min(360px, calc(100vw - 32px)); /* app.js moves it next to the target */
  background: var(--surface); color: var(--text); border-radius: 20px; padding: 18px;
  box-shadow: var(--shadow-lg); transition: top .3s ease, left .3s ease;
}
.tour-step { margin: 0 0 4px; font-size: .75rem; font-weight: 700; color: var(--accent); }
.tour-card h3 { font-size: 1.125rem; font-weight: 800; margin: 0 0 6px; }
.tour-card p:not(.tour-step) { margin: 0 0 14px; color: var(--muted); }
.tour-btns { display: flex; justify-content: space-between; gap: 8px; }
/* While a step waits for a tap, the page under the spotlight takes taps (app.js lets only the target through). */
.tour.waiting { pointer-events: none; }
.tour.waiting .tour-card { pointer-events: auto; }
.tour-card::before { /* speech-bubble tail pointing at Sprout */
  content: ""; position: absolute; left: calc(var(--tail, 50%) - 9px); width: 18px; height: 18px;
  background: var(--surface); transform: rotate(45deg); border-radius: 3px;
}
.tour-card[data-tail="up"]::before { top: -7px; }
.tour-card[data-tail="down"]::before { bottom: -7px; }
.tour-card p.tour-do { margin: -6px 0 14px; font-weight: 800; color: var(--accent); }
.tour-card p.tour-do.yay { color: var(--green); }

/* Sprout, the tour guide: hops between spots, blinks, bobs and points (drawing in app.js, PET_SVG) */
.pet {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; z-index: 2; pointer-events: none;
  transition: left .6s cubic-bezier(.45, 0, .3, 1), top .6s cubic-bezier(.45, 0, .3, 1), opacity .25s;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / .28));
}
.pet svg { display: block; overflow: visible; transform: scaleX(var(--face, 1)); transition: transform .2s; }
.pet svg g { transform-box: view-box; }
.pet-body.hop { animation: pet-hop .6s cubic-bezier(.3, 0, .4, 1); }
.pet-body.yay { animation: pet-yay .7s ease; }
.pet-bob { transform-origin: 32px 60px; animation: pet-bob 2.4s ease-in-out infinite; }
.pet-eyes { transform-origin: 32px 38px; animation: pet-blink 4.2s infinite; }
.pet-leaves { transform-origin: 32px 24px; animation: pet-sway 3.2s ease-in-out infinite; }
.pet-arm { transform-origin: 46px 40px; transform: rotate(var(--arm, -35deg)); transition: transform .4s ease; }
.pet-wave { transform-origin: 46px 40px; animation: pet-wave 1.3s ease-in-out infinite; }
@keyframes pet-hop {
  0% { transform: translateY(0) scale(1.1, .88); }
  15% { transform: translateY(-6px) scale(.92, 1.1); }
  50% { transform: translateY(-48px) scale(1); }
  85% { transform: translateY(0) scale(1.12, .86); }
  100% { transform: none; }
}
@keyframes pet-yay {
  0%, 100% { transform: none; }
  20% { transform: translateY(-14px) rotate(-8deg); }
  40% { transform: translateY(0) scale(1.08, .9); }
  60% { transform: translateY(-10px) rotate(8deg); }
  80% { transform: translateY(0); }
}
@keyframes pet-bob { 50% { transform: translateY(-1.5px) scale(1.02, .97); } }
@keyframes pet-blink { 0%, 93%, 100% { transform: none; } 96% { transform: scaleY(.1); } }
@keyframes pet-sway { 50% { transform: rotate(7deg); } }
@keyframes pet-wave { 50% { transform: rotate(-12deg); } }

/* Sprout's quick cheers (first task done, week cleared). In the top layer (popover) so it shows above sheets. */
.pet-cheer {
  position: fixed; inset: auto auto max(150px, calc(env(safe-area-inset-bottom) + 136px)) 16px; margin: 0;
  padding: 0; border: 0; background: none; color: var(--text); overflow: visible; z-index: 60; pointer-events: none;
  display: none; flex-direction: column; align-items: flex-start; gap: 6px;
}
.pet-cheer.show { display: flex; }
.pet-cheer .pet { position: relative; transition: none; }
.pet-cheer .pet-arm { --arm: -70deg; }
.pet-cheer-bubble {
  position: relative; margin: 0; max-width: min(260px, calc(100vw - 48px)); padding: 9px 13px; border-radius: 14px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-weight: 700; font-size: 1rem;
}
.pet-cheer-bubble::after {
  content: ""; position: absolute; left: 22px; bottom: -6px; width: 12px; height: 12px; background: var(--surface);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg);
}
.pet-cheer.pop .pet { animation: pet-pop .55s cubic-bezier(.2, .9, .3, 1.3) both; }
.pet-cheer.pop .pet-cheer-bubble { animation: pet-fade .3s .2s both; }
.pet-cheer.leave { opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
@keyframes pet-pop { from { opacity: 0; transform: translateY(40px) scale(.6); } }
@keyframes pet-fade { from { opacity: 0; transform: translateY(6px); } }
@media (min-width: 900px) { .pet-cheer { left: 32px; bottom: 40px; } }

/* Sprout's faces, flower and little speech bubble */
.pet-eyes-happy, .pet-oh, .pet-flower { display: none; }
.pet.happy .pet-eyes, .pet.oops .pet-smile { display: none; }
.pet.happy .pet-eyes-happy, .pet.oops .pet-oh { display: inline; }
.pet.bloom .pet-flower { display: inline; transform-origin: 32px 9px; animation: pet-bloom .6s cubic-bezier(.2, .9, .3, 1.4) both; }
@keyframes pet-bloom { from { transform: scale(0) rotate(-90deg); } }
#tour-pet { pointer-events: auto; cursor: pointer; } /* tap Sprout: a spin and a pun */
.tour.waiting #tour-pet { pointer-events: auto; }
.pet-say {
  position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translate(calc(-50% + var(--nx, 0px)), 4px) scale(.9); margin: 0;
  width: max-content; max-width: 170px; padding: 5px 10px; border-radius: 12px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .875rem; font-weight: 800; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; filter: none;
}
.pet-say.show { opacity: 1; transform: translate(calc(-50% + var(--nx, 0px)), 0) scale(1); }
.pet-body.spin { animation: pet-spin .7s cubic-bezier(.3, 0, .3, 1); }

/* Flying: Sprout sprouts two leaf wings, flaps them, and tucks them away when he lands */
.pet.flying { transition-duration: .95s, .95s, .25s; }
.pet-body.fly { animation: pet-fly .95s cubic-bezier(.4, 0, .4, 1); }
.pet-body.loop { animation: pet-loop 1.6s cubic-bezier(.45, 0, .55, 1); }
.pet-body.flyin { animation: pet-flyin 1.1s cubic-bezier(.3, 0, .4, 1); }
.pet-wing { transform: scale(0); }
.pet-wing-l, .pet-wing-l .pet-flap { --s: -1; transform-origin: 18px 36px; }
.pet-wing-r, .pet-wing-r .pet-flap { --s: 1; transform-origin: 46px 36px; }
.pet-body.fly .pet-wing { animation: pet-wing-grow .95s both; }
.pet-body.loop .pet-wing { animation: pet-wing-grow 1.6s both; }
.pet-body.flyin .pet-wing { animation: pet-wing-grow 1.1s both; }
.pet-body:is(.fly, .loop, .flyin) .pet-flap, .pet.winged .pet-flap { animation: pet-flap .24s ease-in-out infinite; }
.pet.winged .pet-wing { transform: none; }
@keyframes pet-wing-grow { 0% { transform: scale(0); } 14% { transform: scale(1.15); } 20%, 82% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes pet-flap { 0%, 100% { transform: rotate(calc(var(--s) * -12deg)); } 50% { transform: rotate(calc(var(--s) * 28deg)); } }
@keyframes pet-fly {
  0% { transform: none; }
  15% { transform: translateY(-16px) rotate(0); }
  50% { transform: translateY(-72px) rotate(var(--tilt, 10deg)); }
  85% { transform: translateY(-12px) rotate(calc(var(--tilt, 10deg) * .4)); }
  100% { transform: none; }
}
@keyframes pet-loop {
  0% { transform: none; }
  15% { transform: translate(0, -28px); }
  35% { transform: translate(46px, -70px) rotate(22deg); }
  55% { transform: translate(0, -104px) rotate(0); }
  75% { transform: translate(-46px, -70px) rotate(-22deg); }
  90% { transform: translate(0, -18px); }
  100% { transform: none; }
}
@keyframes pet-flyin {
  0% { transform: translateY(26px); }
  45% { transform: translateY(-22px) rotate(-6deg); }
  70% { transform: translateY(-8px) rotate(5deg); }
  85% { transform: translateY(0) scale(1.08, .9); }
  100% { transform: none; }
}
.pet-body.shake { animation: pet-shake .45s ease; }
@keyframes pet-spin { 40% { transform: translateY(-18px) rotate(200deg); } 100% { transform: rotate(360deg); } }
@keyframes pet-shake { 20%, 60% { transform: translateX(-5px) rotate(-6deg); } 40%, 80% { transform: translateX(5px) rotate(6deg); } }

/* Sprout easter eggs: naps on "All clear", flies by when the logo is tapped, now and then peeks in */
.pet-eyes-sleep { display: none; }
.pet.sleepy .pet-eyes { display: none; }
.pet.sleepy .pet-eyes-sleep { display: inline; }
.pet.sleepy .pet-wave { animation: none; }
.pet.sleepy .pet-bob { animation-duration: 4.5s; }
.hero-pet {
  position: relative; left: auto; top: auto; display: block; margin: 0 auto 6px; padding: 0; border: 0;
  background: none; pointer-events: auto; transition: none; --arm: 70deg;
}
.hero-pet.sleepy::after {
  content: "z"; position: absolute; right: -8px; top: 0; font-weight: 800; font-size: .875rem; color: var(--muted);
  animation: pet-z 2.6s ease-in-out infinite;
}
.pet-body.flutter { animation: pet-flutter 1.3s ease-in-out; }
.pet-body.flutter .pet-wing { animation: pet-wing-grow 1.3s both; }
.pet-body.flutter .pet-flap { animation: pet-flap .24s ease-in-out infinite; }
@keyframes pet-flutter { 25%, 75% { transform: translateY(-12px) rotate(-4deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
.hero-pet .pet-say {
  left: calc(100% + 10px); bottom: auto; top: 50%; transform: translate(0, -50%) scale(.9);
  max-width: min(170px, calc(50vw - 84px));
}
.hero-pet .pet-say.show { transform: translate(0, -50%) scale(1); }
@keyframes pet-z { 0% { opacity: 0; transform: translate(0, 6px) scale(.7); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -12px) scale(1.15); } }
.pet-fly { position: fixed; top: 22vh; z-index: 60; display: none; transition: none; }
.pet-fly.go { display: block; animation: pet-cruise 3.2s linear both; }
.pet-fly.go .pet-body { animation: pet-cruise-bob .8s ease-in-out infinite; }
@keyframes pet-cruise { from { transform: translateX(-80px); } to { transform: translateX(calc(100vw + 80px)); } }
@keyframes pet-cruise-bob { 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes pet-fade-inout { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }
.pet-peek {
  position: fixed; left: 0; top: 58vh; z-index: 55; transform: translateX(-150%) rotate(30deg);
  transition: transform .6s cubic-bezier(.3, 0, .3, 1), opacity .3s;
}
.pet-peek.in { transform: translateX(-20px) rotate(16deg); pointer-events: auto; cursor: pointer; }
.pet-peek.off { transform: translate(45vw, -70vh) rotate(-8deg); opacity: 0; transition: transform 1.4s ease-in, opacity .6s .8s; }

/* Leaf progress in the tour card: one leaf per step */
.tour-leaves { display: inline-flex; gap: 5px; margin-left: 10px; vertical-align: -1px; }
.tour-leaves i {
  width: 10px; height: 10px; border-radius: 0 100% 0 100%; background: var(--line); transform: rotate(-10deg);
  transition: background .3s;
}
.tour-leaves i.on { background: var(--accent); }
.tour-leaves i.now { background: var(--accent-2); animation: leaf-now 1.2s ease-in-out infinite; }
@keyframes leaf-now { 50% { transform: rotate(-10deg) scale(1.35); } }

/* Finale: leaves and petals rain down (top layer, no taps) */
.pet-confetti {
  position: fixed; inset: 0; width: 100vw; height: 100vh; margin: 0; padding: 0; border: 0; background: none;
  overflow: hidden; pointer-events: none; display: none; z-index: 59;
}
.pet-confetti.show { display: block; }
.pet-confetti i {
  position: absolute; top: -20px; width: 11px; height: 11px; border-radius: 0 100% 0 100%;
  animation: leaf-fall var(--d) var(--delay) cubic-bezier(.3, .1, .6, 1) both;
}
@keyframes leaf-fall {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  80% { opacity: 1; }
  to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: 0; }
}

/* Reduced motion: Sprout doesn't hop or wiggle, it just fades between spots. */
@media (prefers-reduced-motion: reduce) {
  .pet { transition: opacity .25s; }
  .pet svg, .pet-arm, .tour-spot, .tour-card { transition: none; }
  .pet-body.hop, .pet-body.yay, .pet-body.spin, .pet-body.shake, .pet-bob, .pet-eyes, .pet-leaves, .pet-wave,
  .pet-body.fly, .pet-body.loop, .pet-body.flyin, .pet-wing, .pet-flap, .pet-body.fly .pet-wing, .pet-body.loop .pet-wing,
  .pet-body.flyin .pet-wing, .pet-fly.go .pet-body, .hero-pet.sleepy::after,
  .pet.bloom .pet-flower, .tour-leaves i.now { animation: none; }
  .pet.winged .pet-wing { transform: scale(0); }
  .pet-fly.go { left: calc(50% - 28px); animation: pet-fade-inout 2.4s both; } /* no flying: he just appears and fades */
  .pet-peek, .pet-peek.off { transform: translateX(-20px) rotate(16deg); opacity: 0; transition: opacity .4s; }
  .pet-peek.in { opacity: 1; }
  .pet-confetti { display: none !important; }
  .pet-cheer.pop .pet, .pet-cheer.pop .pet-cheer-bubble { animation: pet-fade .3s both; }
  .pet-cheer.leave { transform: none; }
}

/* Sign in to use AI */
.signin-perks { margin: -8px 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.signin-gbtn { margin: 14px 0 6px; }

/* Invite friends (5 free AI plans used) */
#invite-sheet { width: min(440px, calc(100vw - 24px)); }
#invite-sheet h2 { font-size: 1.375rem; font-weight: 800; margin: 0 0 8px; }
#invite-sheet > p { margin: 0 0 16px; }
#invite-sheet .hint { margin: 12px 0 8px; }
#invite-sheet .btn.primary { min-height: 48px; }
.invite-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--green); background: var(--surface-2); }
.invite-icon .icon, .invite-icon .icon svg { width: 28px; height: 28px; display: block; }
.invite-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin: 0 0 8px; }
.invite-bar i { display: block; height: 100%; border-radius: 5px; background: var(--green); }
.invite-why { font-size: .875rem; color: var(--muted); }
.invite-count { font-size: .875rem; font-weight: 700; color: var(--muted); }
@media (max-width: 600px) { #invite-sheet { width: 100vw; } }

/* Private calendar link */
.ical-box { display: grid; gap: 8px; }
.copy-row { display: flex; gap: 8px; }
#ical-copy { flex: none; white-space: nowrap; }
.ical-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.ical-apps .btn { flex: 1 1 200px; justify-content: center; text-align: center; text-decoration: none; }
.ical-steps summary { cursor: pointer; font-size: .875rem; font-weight: 700; color: var(--muted); }
.copy-row input { font-size: .875rem; }
.install-steps.small { font-size: .875rem; color: var(--muted); margin: 0; }
.install-steps.small b { color: var(--text); }

/* Study time settings */
.study-box { display: grid; gap: 10px; }
.week-hours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.form .week-hours label { gap: 4px; text-align: center; font-size: .75rem; }
.week-hours input { padding: 10px 4px; text-align: center; }
.pref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
select {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid transparent;
  border-radius: 12px; padding: 11px 12px; width: 100%; min-width: 0;
}
select:focus { outline: none; border-color: var(--accent); }

/* Settings switch + AI estimate note */
.form label.switch { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1rem; cursor: pointer; }
.switch input { width: 20px; height: 20px; padding: 0; accent-color: var(--accent); flex: none; }
.about { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 1rem; line-height: 1.4; }
.about .icon { width: 14px; height: 14px; color: var(--accent); flex: none; margin-top: 3px; }
.auto-note { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: .875rem; color: var(--muted); }
.auto-note .icon { width: 14px; height: 14px; color: var(--accent); flex: none; margin-top: 2px; }

/* Plan sheet tabs + week plan */
.week-day { margin-bottom: 14px; }
.week-day h3 { font-size: .875rem; font-weight: 700; color: var(--muted); margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.week-day .timeline { margin-bottom: 0; }

/* View switcher */
.view-bar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.group-by { margin-right: auto; }
.group.by-class h3 { color: hsl(var(--h) 60% var(--course-l)); }
.class-dot { width: 10px; height: 10px; border-radius: 50%; background: hsl(var(--h) 70% var(--course-l)); flex: none; }
.class-late { font-size: .75rem; color: var(--red); background: var(--red-soft); border-radius: 999px; padding: 1px 8px; letter-spacing: .04em; }
.view-bar .seg { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.view-bar .seg button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }

/* Calendar chips */
.cal-chip {
  --course: hsl(var(--h, 250) 70% var(--course-l));
  display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; text-align: left;
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 8px;
  font-size: .875rem; box-shadow: var(--shadow);
}
.cal-chip:hover { border-color: var(--course); }
.cal-chip .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--course); }
.cal-chip .chip-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip .chip-meta { flex: none; color: var(--faint); font-size: .75rem; white-space: nowrap; }
.cal-chip.done .chip-title { text-decoration: line-through; color: var(--faint); }
.cal-chip.late { border-color: var(--red); }
.cal-chip.late .chip-meta { color: var(--red); }
.plan-chip {
  display: block; width: 100%; text-align: left; border: 1px dashed var(--accent); background: transparent;
  color: var(--text); border-radius: 10px; padding: 6px 8px; font-size: .875rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.plan-chip b { color: var(--accent); }

/* Calendar events (classes, work…): read-only, quieter than assignments */
.ev-chip {
  display: flex; gap: 6px; align-items: baseline; min-width: 0; font-size: .75rem; color: var(--muted);
  border-left: 3px solid var(--faint); padding: 2px 0 2px 7px;
}
.ev-chip b { flex: none; font-weight: 700; color: var(--text); font-size: .75rem; }
.ev-chip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-chip.free { opacity: .6; border-left-style: dashed; }
.ev-chip.tinted { border-left-color: hsl(var(--h) 65% var(--course-l)); background: hsl(var(--h) 60% var(--course-l) / .08); border-radius: 0 6px 6px 0; }
.day-events { display: grid; gap: 4px; margin: 0 0 12px 4px; }

/* Calendar toolbar: filters + full screen */
.cal-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.filters { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.filter-chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font-size: .875rem; font-weight: 700;
}
.filter-chip[aria-pressed="true"] { background: var(--surface-2); color: var(--text); border-color: var(--accent); }
.filter-chip[aria-pressed="false"] { text-decoration: line-through; opacity: .7; }
.full-btn { padding: 7px 14px; font-size: .875rem; }
.allday-line {
  display: flex; gap: 6px; align-items: baseline; min-width: 0; font-size: .75rem; color: var(--faint);
  background: var(--surface); border-radius: 8px; padding: 4px 7px;
}
.allday-line b { flex: none; color: var(--muted); }
.allday-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Key (bottom right of the calendar views) */
.cal-key {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 14px;
  margin: 14px 0 0 auto; padding: 10px 14px; width: fit-content; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: .75rem; color: var(--muted);
}
.cal-key b { color: var(--text); font-size: .75rem; }
.key-item { display: inline-flex; align-items: center; gap: 6px; }
.key-swatch { width: 18px; height: 12px; border-radius: 4px; display: inline-block; }
.key-swatch.due { border: 1px solid var(--line); background: var(--surface-2); box-shadow: inset 4px 0 0 hsl(150 60% 45%); }
.key-swatch.late { border: 1.5px solid var(--red); }
.key-swatch.event { border-left: 3px solid var(--faint); border-radius: 0; background: transparent; }
.key-swatch.free { border-left: 3px dashed var(--faint); border-radius: 0; opacity: .7; }
.key-swatch.plan { border: 1.5px dashed var(--accent); }
.key-swatch.done { background: linear-gradient(transparent 45%, var(--faint) 45%, var(--faint) 60%, transparent 60%); }

/* Key placement: left column under the plan card on laptops, under the calendar otherwise */
#side-key .cal-key { margin: 16px 0 0; width: auto; flex-direction: column; align-items: flex-start; gap: 8px; }
.calendar .cal-key { margin-left: 0; justify-content: flex-start; }
@media (max-width: 1079px) { #side-key { display: none; } }
@media (min-width: 1080px) { .main:not(.cal-full) .calendar .cal-key { display: none; } }

/* Full screen calendar */
.app.wide { max-width: 1800px; }
.main.cal-full .side { display: none; }
@media (min-width: 1080px) {
  /* .cal-view too: ".main.cal-view" (380px + rest, further down) is just as specific and would win, leaving the
     calendar squeezed into the 380px column once the side is hidden. */
  .main.cal-full:not([hidden]), .main.cal-full.cal-view:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .main.cal-full .wk-day { min-height: 60vh; }
  .main.cal-full .cal-cell { min-height: 120px; }
}

/* Week view */
.wk-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.wk-bar p { margin: 0; }
.wk-overdue { display: grid; gap: 6px; margin-bottom: 14px; padding: 10px; border-radius: var(--radius); background: var(--red-soft); }
.wk-overdue .wk-label { color: var(--red); }
.wk-grid { display: grid; gap: 10px; }
.wk-day { display: grid; gap: 6px; align-content: start; background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-width: 0; }
.wk-day.is-today { outline: 2px solid var(--accent); outline-offset: -2px; }
.wk-day header { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.wk-name { font-weight: 800; }
.wk-date { color: var(--muted); font-size: .875rem; }
.wk-mins { margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--accent); }
.wk-label { font-size: .75rem; font-weight: 700; color: var(--faint); margin-top: 2px; }
.wk-empty { margin: 0; font-size: .875rem; color: var(--faint); }

/* Month view */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cal-head h3 { flex: 1; text-align: center; font-size: 1.125rem; font-weight: 800; }
.cal-head .icon-btn { font-size: 1.375rem; line-height: 1; }
.cal-head .btn { padding: 8px 14px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 20px; }
.cal-wd { text-align: center; font-size: .75rem; font-weight: 700; color: var(--faint); padding: 4px 0; }
.cal-cell {
  min-height: 54px; min-width: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  padding: 4px; cursor: pointer; display: flex; flex-direction: column; gap: 3px;
}
.cal-cell.other { opacity: .45; }
.cal-cell.is-today .num { background: var(--primary); color: var(--primary-ink); }
.cal-cell.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cal-cell .num { align-self: flex-start; font-size: .75rem; font-weight: 700; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }
.cal-items { display: flex; flex-wrap: wrap; gap: 3px; min-width: 0; }
.cal-items .more { font-size: .75rem; color: var(--muted); font-weight: 600; }
/* Phones: each assignment is a coloured dot; tap the day to see them below. */
.cal-items .cal-chip { width: 10px; height: 10px; padding: 0; border: 0; box-shadow: none; background: var(--course); border-radius: 50%; pointer-events: none; }
.cal-items .cal-chip.done { opacity: .35; }
.cal-items .cal-chip .dot, .cal-items .cal-chip .chip-title { display: none; }
.cal-items .more { display: none; }
.item-meta { display: flex; align-items: center; gap: 8px; margin: -6px 0 6px; font-size: .875rem; }
.item-meta .dot { --course: hsl(var(--h, 250) 70% var(--course-l)); width: 9px; height: 9px; border-radius: 50%; background: var(--course); flex: none; }
#item-body .detail { padding: 0; }

/* Tablets and laptops */
@media (min-width: 760px) {
  .app { max-width: 820px; padding-left: 24px; padding-right: 24px; }
  .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-cell { min-height: 96px; }
  .cal-items { flex-direction: column; flex-wrap: nowrap; }
  .cal-items .cal-chip {
    width: 100%; height: auto; padding: 2px 6px; border-radius: 6px; pointer-events: auto; font-size: .75rem;
    background: hsl(var(--h, 250) 70% var(--course-l) / .14); border: 0;
  }
  .cal-items .cal-chip .chip-title { display: block; }
  .cal-items .more { display: inline; }
}

/* Laptops and desktops: plan on the left, your list or calendar on the right */
@media (min-width: 1080px) {
  .app { max-width: 1280px; padding-left: 32px; padding-right: 32px; }
  .top { margin-bottom: 26px; }
  .setup { max-width: 560px; margin: 0 auto; }
  /* The plan is the main thing, so it gets the wider column; a calendar view needs the room instead. */
  .main:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .main.cal-view:not([hidden]) { grid-template-columns: 380px minmax(0, 1fr); }
  .side { position: sticky; top: 24px; }
  .hero { margin-bottom: 0; }
  .view-bar { margin-top: 0; }
  .wk-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .wk-day { padding: 8px; min-height: 220px; }
  .wk-day header { flex-wrap: wrap; gap: 2px 6px; }
  .wk-mins { margin-left: 0; width: 100%; }
  .wk-day .cal-chip { flex-wrap: wrap; align-items: flex-start; padding: 6px; }
  .wk-day .cal-chip .dot { margin-top: 5px; }
  .wk-day .cal-chip .chip-title {
    white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.25;
  }
  .wk-day .cal-chip .chip-meta { width: 100%; padding-left: 14px; }
  .wk-day .plan-chip { white-space: normal; line-height: 1.25; padding: 6px; }
  .wk-day .plan-chip b { display: block; }
  .wk-day .ev-chip { flex-direction: column; gap: 0; padding-top: 1px; padding-bottom: 1px; }
  .wk-day .ev-chip b { font-size: .75rem; }
  .wk-day .ev-chip span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .row:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Simple mode: hide the extras (calendars, week plans, study time, themes). */
[data-simple] .adv { display: none !important; }
.mode-opts { display: grid; gap: 10px; margin: 4px 0 12px; }
.mode-opt {
  display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface-2); color: inherit; font: inherit; cursor: pointer;
}
.mode-opt:hover, .mode-opt:focus-visible { border-color: var(--accent); }
.mode-opt b { font-size: 1rem; }
.mode-opt span { color: var(--muted); font-size: 1rem; line-height: 1.35; }
.day-due.past { opacity: .6; }

/* "Ask about this" in an assignment's detail */

/* The Ask box under "Do this next" (reuses the .ask-* styles below) */
.ask-app { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.ask-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.ask-head b { display: flex; align-items: center; gap: 6px; font-size: .9375rem; }
.ask-head b .icon { width: 15px; height: 15px; color: var(--accent); }
.ask-sub { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.35; margin-top: 2px; }
.ask-app .ask-clear { flex: none; font-size: .8125rem; }
.ask-thread { display: grid; gap: 10px; max-height: 320px; overflow-y: auto; margin-bottom: 10px; font-size: .875rem; line-height: 1.4; overscroll-behavior: contain; }
.ask-turn { display: grid; gap: 6px; }
.ask-me { justify-self: end; max-width: 85%; margin: 0; padding: 7px 11px; border-radius: 14px 14px 4px 14px; background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); font-weight: 600; overflow-wrap: anywhere; }
.ask-reply { justify-self: start; max-width: 92%; padding: 8px 11px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); overflow-wrap: anywhere; }
.ask-reply.is-error { color: var(--muted); }
.ask-reply ul { margin: 4px 0 0; padding-left: 18px; }
.ask-reply .ask-did { padding-left: 0; }
.ask-app .ask-text { margin: 0; }
.ask-app .ask-thinking { margin: 0; }
.ask-did { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-weight: 600; }
.ask-did li { display: flex; gap: 6px; align-items: flex-start; }
.ask-did .icon { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--accent); }
.ask-did.undone { text-decoration: line-through; opacity: .6; }
.ask-answer { font-size: .875rem; line-height: 1.4; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.ask-answer .ask-q { margin: 0 0 4px; font-weight: 700; }
.ask-answer ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
.ask-answer .ask-caveat { margin: 6px 0 0; color: var(--muted); font-size: .875rem; }
/* The AI couldn't answer: what Canvas says instead (calm, not an error colour). */
.ask-missed .ask-caveat { margin: 0 0 6px; }
.ask-missed .ask-canvas { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.ask-thinking { display: flex; gap: 6px; align-items: center; margin: 0 0 8px; color: var(--muted); font-size: .875rem; }
.ask-thinking .icon { width: 14px; height: 14px; color: var(--accent); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ask-chips[hidden] { display: none; }
.ask-chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 11px; font-size: .875rem; font-weight: 600; }
.ask-chip:hover, .ask-chip:focus-visible { border-color: var(--accent); }
.ask-form { display: flex; gap: 10px; align-items: center; }
.ask-field { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
.ask-field .icon { position: absolute; left: 12px; width: 15px; height: 15px; color: var(--accent); pointer-events: none; }
.ask-form input { flex: 1; min-width: 0; font-size: 16px; padding: 9px 12px 9px 34px; border-radius: 12px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

/* Phones and tablets (one column): one section at a time, picked in the bar at the bottom.
   Today = the plan, List = assignments, Calendar = Week / Month, More = Settings. */
.tabs { display: none; }
@media (max-width: 1079px) {
  .tabs:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; gap: 4px;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgb(0 0 0 / .06);
  }
  .tabs button {
    flex: 1 1 0; max-width: 150px; border: 0; background: none; border-radius: 12px; padding: 5px 4px 4px;
    display: grid; justify-items: center; gap: 1px; font-size: .75rem; font-weight: 700; color: var(--muted);
  }
  .tabs button .icon { width: 22px; height: 22px; }
  .tabs button[aria-pressed="true"] { color: var(--accent); }
  body[data-tab="today"] .content,
  body[data-tab="list"] .side, body[data-tab="cal"] .side { display: none; }
  body[data-tab] .view-seg [data-view="list"], body[data-tab="list"] .view-seg { display: none; }
  body[data-tab] #open-settings { display: none; } /* More does that here */
}

/* Settings: short groups, closed until tapped; every change saves by itself. */
.set-group { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.set-group > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.set-group > summary::-webkit-details-marker { display: none; }
.set-group > summary::after { content: "›"; font-size: 1.375rem; line-height: 1; color: var(--faint); transition: transform .15s; }
.set-group[open] > summary::after { transform: rotate(90deg); }
.set-body { display: grid; gap: 10px; padding: 0 16px 16px; }
.set-body > .account:first-child, .set-body > .study-box:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.set-saved { margin-left: 8px; font-size: .875rem; font-weight: 700; color: var(--accent); opacity: 0; transition: opacity .2s; }
.set-saved.show { opacity: 1; }
.day-alert .btn { white-space: nowrap; }
/* Sprout's cheer sits above the toast instead of on it (phones: both are at the bottom left). */
@media (max-width: 899px) { .pet-cheer { bottom: max(230px, calc(env(safe-area-inset-bottom) + 216px)); } }

/* Focus (laptops): Plan, Both or Assignments. The other section shrinks to a one-line bar. */
.focus-seg button { padding: 7px 11px; }
.focus-seg[hidden] { display: none; }
.min-btn {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  display: inline-grid; place-items: center; padding: 0; cursor: pointer; flex: none;
}
.min-btn .icon, .min-btn svg { width: 16px; height: 16px; }
.hero > .min-btn { position: absolute; top: 12px; right: 12px; z-index: 1; border: 0; background: rgb(255 255 255 / .14); color: inherit; }
.mini-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 16px; margin: 0 0 14px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.mini-bar[hidden] { display: none; }
.day-mini { background: var(--card); color: var(--card-ink); border: 0; }
.mini-title { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 800; }
.mini-title .icon, .mini-title svg { width: 16px; height: 16px; }
.mini-text { flex: 1 1 200px; min-width: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-btns { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; }
.day-mini .btn.ghost { color: inherit; }
.day-mini .btn.tonal { background: var(--card-ink); color: var(--card-btn); }
.day-mini .btn.primary { background: var(--card-ink); color: var(--card-btn); box-shadow: none; }
@media (min-width: 1080px) {
  .hero > .min-btn ~ .eyebrow, .hero .eyebrow { padding-right: 34px; }
  .main.focus-day:not([hidden]), .main.focus-list:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .main.focus-day .content, .main.focus-list .side { display: none; }
  .main.focus-day .side { width: 100%; max-width: 760px; margin: 0 auto; }
}
@media (max-width: 1079px) {
  .focus-seg, .mini-bar, .min-btn { display: none !important; } /* phones: the bar at the bottom picks the section */
}
@media (min-width: 1080px) { .main.cal-full.focus-day .content { display: block; } } /* full-screen calendar wins: never both hidden */

/* ---------- Day plan: progress and phone layout (2026-11 polish) ---------- */
/* "Open in Canvas": a text link on the block to work on now, a button on "Do this next" and in the details. */
.day-link { display: inline-flex; align-items: center; min-height: 32px; margin-top: 4px; color: inherit; font-size: .875rem; font-weight: 700; text-underline-offset: 3px; }
.hero a.btn, .detail-btns a.btn { text-decoration: none; }
.hero a.btn { flex: 1 1 auto; padding-left: 10px; padding-right: 10px; } /* fits beside "I've started" on a 360 px phone */
/* How far through today's blocks: only real progress, so the bar starts empty. */
.day-bar { height: 6px; border-radius: 999px; background: var(--card-line); overflow: hidden; margin: -2px 0 12px; }
.day-bar i { display: block; height: 100%; border-radius: 999px; background: var(--sun); transition: width .3s ease; }
/* Three columns left about 165 px for the words on a phone, so titles wrapped and a block was 186 px tall. Now
   the time is on its own line, the words get the full width, and only the block to do next carries a full-width
   button. Laptops keep the three columns. */
@media (max-width: 1079px) {
  .hero .day-line li.day-slot { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "time btn" "what what"; row-gap: 2px; padding: 10px 12px; }
  .day-slot > .day-time { grid-area: time; font-weight: 600; opacity: .9; }
  .day-line .day-time span { display: inline; margin-left: .3em; }
  .day-slot > .day-what { grid-area: what; }
  .day-slot > .btn, .day-slot > .day-check { grid-area: btn; }
  .day-slot .day-what b { font-size: 1.125rem; }
  .hero .day-line li.day-slot.now, .hero .day-line li.day-slot.next { grid-template-areas: "time time" "what what" "btn btn"; row-gap: 4px; padding: 12px; }
  .day-slot.now > .day-time, .day-slot.next > .day-time { opacity: 1; }
  .day-slot.now > .btn, .day-slot.next > .btn { width: 100%; min-height: 48px; margin-top: 8px; font-size: 1rem; }
  .hero .day-line li.day-event, .hero .day-line li.day-due { grid-template-columns: auto minmax(0, 1fr) !important; }
}

/* ---------- Touch targets and form text (2026-11 polish) ---------- */
/* Fingers need about 44 px. The check circles, importance dots and small text links keep their look and get a
   larger invisible tap area instead. */
.check, .dots button, .ai-link { position: relative; }
.check::after, .dots button::after { content: ""; position: absolute; inset: -9px; }
.ai-link::after { content: ""; position: absolute; inset: -8px -4px; }
@media (pointer: coarse) {
  .btn, .seg button, .filter-chip, .stepper button, .icon-btn { min-height: 44px; }
  .icon-btn, .stepper button { min-width: 44px; }
  .day-link { min-height: 44px; }
  .wk-grid .cal-chip, .wk-overdue .cal-chip { min-height: 44px; }
  .more-box summary { min-height: 44px; display: flex; align-items: center; }
  /* iPhones zoom the whole page when a box with text under 16 px gets focus. */
  input, select, textarea { font-size: 16px !important; }
}

/* ---------- Tidy-up (2026-11 polish) ---------- */
/* First screen words by post: "hours" for posts that promise your number (index.html and app.js set data-pitch). */
html:not([data-pitch="hours"]) .pitch-hours, html[data-pitch="hours"] .pitch-default { display: none !important; }
/* The open assignment: two buttons side by side, then hours and importance behind one line. */
.detail-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-btns .btn { flex: 1 1 auto; padding: 10px 12px; font-size: .875rem; white-space: nowrap; }
.detail-btns .btn[aria-pressed="true"] { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.more-box summary { cursor: pointer; font-size: .875rem; font-weight: 700; color: var(--accent); padding: 6px 0; list-style: none; }
.more-box summary::-webkit-details-marker { display: none; }
.more-box summary::after { content: "›"; margin-left: 6px; }
.more-box[open] summary::after { content: "⌄"; }
.more-box .inline { margin-top: 8px; }
.more-hint { margin: 8px 0 0; }
.synced { margin: 14px 4px 0; font-size: .75rem; color: var(--faint); }
body[data-tab="cal"] .synced { display: none; }
.cal-day { scroll-margin: 90px 0; }
@media (max-width: 1079px) {
  /* Phones and tablets: the tabs say where you are, so no greeting; the plan and the lists start higher. */
  #greeting { display: none; }
  .top { margin-bottom: 12px; align-items: center; }
  /* An open assignment uses the full width of its card (the 50 px indent left too little room). */
  .detail { padding-left: 14px; }
  /* Calendar: no Full screen button (it already is), filters on one line that scrolls, no explainer paragraph. */
  .cal-toolbar .full-btn { display: none; }
  .cal-toolbar { margin-bottom: 8px; }
  .cal-toolbar .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .cal-toolbar .filters::-webkit-scrollbar { display: none; }
  .cal-toolbar .filter-chip { flex: none; }
  .wk-bar p { display: none; }
  /* Day plan: what a block asks shows on the block to do next; later blocks stay short. */
  .day-slot:not(.now):not(.next) .day-about { display: none; }
}

/* The sample, after 12 s: one tap back to the student's own Canvas. Sits just above the tab bar on phones. */
.sample-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 39;
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100vw - 32px); padding: 8px 8px 8px 16px;
  border-radius: 16px; background: var(--text); color: var(--bg); font-weight: 700; font-size: .875rem; box-shadow: var(--shadow-lg); }
.sample-bar[hidden] { display: none; }
.sample-bar .btn { flex: none; min-height: 40px; }
@media (max-width: 1079px) { .sample-bar { bottom: calc(env(safe-area-inset-bottom) + 72px); } }
/* Phones only: there the bar sits where toasts show. On a laptop it is below them, and moving the toast made its Undo button jump away from the pointer. */
@media (max-width: 1079px) { body:has(#sample-bar:not([hidden])) .toast { bottom: max(152px, calc(env(safe-area-inset-bottom) + 136px)); } }

/* ---------- Canopy look (2026-11-27; Kien picked it from the mockups in the Polish Log) ----------
   Leaves and dappled light in the top corners of the page, behind everything. The leaves are one flat colour
   (the look's accent mixed into its page colour, so every theme gets its own) cut out by an SVG mask; where
   leaves overlap they get denser. Browsers without color-mix or masks simply show the page as before.
   (A second part, the day plan on a stem with a leaf per block, went live the same day and was taken out again:
   Kien found the leaves awkward and likes the colour bar on each block. Don't bring it back.) */
@supports (background: color-mix(in srgb, red 10%, blue)) and ((mask-image: none) or (-webkit-mask-image: none)) {
  body::before {
    background:
      radial-gradient(220px 160px at 72% 70px, color-mix(in srgb, var(--sunrise) 50%, transparent), transparent 70%),
      radial-gradient(90px 70px at 28% 170px, color-mix(in srgb, var(--sunrise) 32%, transparent), transparent 70%),
      radial-gradient(70px 56px at 86% 250px, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
      var(--bg-glow), var(--bg);
  }
  body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: color-mix(in srgb, var(--accent) var(--leaf-amt), var(--bg));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 300'%3E%3Cg transform='translate(430 -10) rotate(150) scale(1.5)' fill-opacity='0.8'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(400 30) rotate(172) scale(1.25)' fill-opacity='0.7'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(330 -20) rotate(120) scale(1.3)' fill-opacity='0.65'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(420 90) rotate(195) scale(1.1)' fill-opacity='0.6'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(260 -18) rotate(100) scale(1.05)' fill-opacity='0.55'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(360 60) rotate(140) scale(0.9)' fill-opacity='0.7'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(190 -14) rotate(80) scale(0.9)' fill-opacity='0.45'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3C/svg%3E") top right / min(88vw, 520px) auto no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 240'%3E%3Cg transform='translate(-20 20) rotate(20) scale(1.3)' fill-opacity='0.6'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(-10 -10) rotate(48) scale(1.2)' fill-opacity='0.6'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(40 -20) rotate(70) scale(1)' fill-opacity='0.5'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(-24 80) rotate(-8) scale(1)' fill-opacity='0.45'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3C/svg%3E") top left / min(60vw, 360px) auto no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 300'%3E%3Cg transform='translate(430 -10) rotate(150) scale(1.5)' fill-opacity='0.8'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(400 30) rotate(172) scale(1.25)' fill-opacity='0.7'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(330 -20) rotate(120) scale(1.3)' fill-opacity='0.65'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(420 90) rotate(195) scale(1.1)' fill-opacity='0.6'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(260 -18) rotate(100) scale(1.05)' fill-opacity='0.55'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(360 60) rotate(140) scale(0.9)' fill-opacity='0.7'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(190 -14) rotate(80) scale(0.9)' fill-opacity='0.45'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3C/svg%3E") top right / min(88vw, 520px) auto no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 240'%3E%3Cg transform='translate(-20 20) rotate(20) scale(1.3)' fill-opacity='0.6'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(-10 -10) rotate(48) scale(1.2)' fill-opacity='0.6'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(40 -20) rotate(70) scale(1)' fill-opacity='0.5'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3Cg transform='translate(-24 80) rotate(-8) scale(1)' fill-opacity='0.45'%3E%3Cpath d='M0-.9C28-22 76-24 110-.9Z'/%3E%3Cpath d='M0 .9C28 20 76 22 110 .9Z'/%3E%3C/g%3E%3C/svg%3E") top left / min(60vw, 360px) auto no-repeat;
  }
}
