













#tutor-home { display: none; }
body.tutor-home-on #tutor-home { display: flex; flex-direction: column; gap: 26px; margin-bottom: 30px; }

body.tutor-home-on .grid-scroll > .hb,
body.tutor-home-on .grid-scroll > .hb-rail,
body.tutor-home-on .grid-scroll > .kpi-strip,
body.tutor-home-on .grid-scroll > .dashboard-row { display: none !important; }
@media (min-width: 900px) {
  
  body.tutor-home-on .grid-scroll > #tutor-home { grid-column: 1 / -1; }
}
body.phone-home .grid-scroll > #tutor-home { order: -2; padding: 0 18px; gap: 22px; }



body.tutor-home-on:not(.folder-view) .grid-scroll > :is(.sec-head, #wb-grid, #empty-state) { display: none !important; }
body.tutor-home-on.folder-view .grid-scroll > #tutor-home { display: none !important; }

body.tutor-home-on.th-tutor-view .grid-scroll > :not(#tutor-home) { display: none !important; }

body.phone-home .grid-scroll > #tutor-home .sec-head h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

#tutor-home, .th-scrim, .th-toast { font-family: var(--font, 'Space Grotesk', system-ui, sans-serif); }

:where(#tutor-home, .th-scrim) button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
:where(#tutor-home, .th-scrim) :is(input, textarea) { font: inherit; }
.th-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }


.th-in { animation: th-rise 360ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes th-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }




.th-home { display: flex; flex-direction: column; gap: 28px; }
.th-head { display: flex; align-items: center; gap: 18px; }

.th-mascot {
  width: 112px; height: 112px; flex: none; border-radius: 28px; display: grid; place-items: center;
  background: var(--gl-card-bg, var(--bg-elevated, var(--card))); box-shadow: var(--gl-card-sh, none);
  transition: background var(--motion, 160ms), transform 90ms ease; overflow: hidden;
}
.th-head .th-mascot:active { transform: scale(.97); }
.th-head .th-mascot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .th-head .th-mascot:hover { background: var(--gl-card-hover, var(--gl-card-bg)); } }

.th-mascot .th-mascot-art { display: block; width: 100%; height: 100%; }



.th-hello { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 2px 0 0; }
.th-hi { margin: 0; }
.th-br { display: none; }

.th-start {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 8px; border-radius: 14px;
  background: var(--gl-lens-bg, var(--accent)); box-shadow: var(--gl-lens-sh, none); color: var(--gl-lens-fg, #1a1500);
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em; transition: transform 90ms ease, filter var(--motion, 160ms);
}
.th-start:hover { filter: brightness(1.04); }
.th-start:active { transform: scale(.98); }
.th-start:disabled { opacity: .6; }
.th-start:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.th-start-chip { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(26, 21, 0, .12); flex: none; }
.th-start-chip svg { width: 18px; height: 18px; }




.th-sessions { display: flex; flex-direction: column; }
.th-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 900px) { .th-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.th-card {
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 12px; text-align: left; border-radius: var(--radius-lg, 16px);
  background: var(--gl-card-bg, var(--bg-elevated, var(--card))); box-shadow: var(--gl-card-sh, none); color: var(--text-1);
  transition: background var(--motion, 160ms), transform 90ms ease;
}
.th-card:active { transform: scale(.99); }
.th-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { .th-card:hover { background: var(--gl-card-hover, var(--gl-card-bg)); } }

.th-thumb {
  width: 80px; aspect-ratio: 8.5 / 11; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: var(--canvas-bg, var(--bg)); box-shadow: var(--gl-in-sh, inset 0 0 0 1px var(--border)); color: var(--text-3);
}
.th-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.th-thumb.empty svg { width: 22px; height: 22px; opacity: .55; }

.th-thumb.mini { place-items: start stretch; }
.th-mini { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; box-sizing: border-box; padding: 8px 7px; overflow: hidden; font-size: 8px; line-height: 1.3; color: var(--text-1); }
.th-mini-line { display: block; white-space: nowrap; overflow: hidden; }
.th-mini-line .katex { font-size: 1.05em; }
.th-mini-line[data-c="yellow"] { color: var(--accent); }
.th-mini-line[data-c="blue"] { color: var(--teal, #7ec8e3); }
.th-mini-line[data-c="green"] { color: var(--green, #9ce37d); }
.th-mini-line[data-c="pink"] { color: var(--th-pink, #f2a6c8); }
.th-mini-plot { display: block; width: 100%; height: auto; flex: none; }
.th-mini-plot * { fill: none; stroke: var(--text-1); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.th-mini-plot [data-c="yellow"] { stroke: var(--accent); }
.th-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.th-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.th-card-title { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 600; line-height: 1.3; color: var(--text-1); overflow-wrap: anywhere; }
.th-card-date { flex: none; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.th-card-recap { font-size: 13.5px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.th-card-recap.meta { color: var(--text-3); }

.th-shim { display: block; height: 0.95em; margin: 0.2em 0; border-radius: 6px; background: rgba(var(--gl-t, 238, 242, 236), .1); animation: th-pulse 1.4s ease-in-out infinite; }
.th-card-title .th-shim { width: 58%; height: 1.05em; }
.th-card-recap .th-shim { width: 86%; }
html[data-theme-mode="light"] .th-shim { background: rgba(20, 40, 60, .08); }
.th-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.th-more { align-self: center; min-height: 44px; margin-top: 8px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.th-more:hover { color: var(--text-1); }
.th-empty {
  padding: 16px 18px; border-radius: var(--radius-lg, 16px); font-size: 14px; line-height: 1.5; color: var(--text-2);
  background: var(--gl-card-bg, var(--bg-elevated, var(--card))); box-shadow: var(--gl-card-sh, none);
}




.th-tutor { width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; }
.th-tutor-head { position: relative; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.th-back, .th-arrow {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--text-2);
  background: var(--gl-in-bg, rgba(255,255,255,.06)); box-shadow: var(--gl-in-sh, none); transition: background var(--motion, 160ms), color var(--motion, 160ms);
}
.th-back { position: absolute; left: 0; top: 0; color: var(--text-1); }
.th-back:hover, .th-arrow:hover { color: var(--text-1); background: var(--gl-on-bg, rgba(255,255,255,.12)); }
.th-back:focus-visible, .th-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.th-arrow:disabled { opacity: .35; }
.th-back svg, .th-arrow svg { width: 20px; height: 20px; }
.th-tutor-name { margin: 0; padding-left: .24em; font-size: 20px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--text-1); }
.th-carousel { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.th-mascot.big { width: 176px; height: 176px; border-radius: 42px; }
.th-tutor-line { margin: 14px 0 0; text-align: center; font-size: 14.5px; line-height: 1.45; color: var(--text-2); text-wrap: balance; }
.th-tag { margin-right: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.th-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.th-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(var(--gl-t, 238, 242, 236), .25); transition: width var(--motion, 160ms), background var(--motion, 160ms); }
.th-dots span.on { width: 18px; background: var(--accent); }
html[data-theme-mode="light"] .th-dots span { background: rgba(20, 40, 60, .2); }
html[data-theme-mode="light"] .th-dots span.on { background: var(--accent); }

.th-notes-sec { margin-top: 30px; display: flex; flex-direction: column; }
.th-notes-sec .sec-head, .th-style-sec .sec-head { margin: 0; min-height: 44px; }
.th-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.th-link:hover { color: var(--text-1); }
.th-link svg { width: 16px; height: 16px; }
.th-sub { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: var(--text-3); }
.th-notes { display: flex; flex-direction: column; gap: 8px; }
.th-note {
  display: flex; align-items: center; gap: 6px; padding: 10px 6px 10px 16px; border-radius: 14px;
  background: var(--gl-card-bg, var(--bg-elevated, var(--card))); box-shadow: var(--gl-card-sh, none);
  transition: opacity 180ms ease, transform 180ms ease;
}
.th-note.faded { opacity: .55; }
.th-note.leaving { opacity: 0; transform: translateX(8px); }
.th-note-main { flex: 1; min-width: 0; }
.th-note-text { font-size: 15px; line-height: 1.45; color: var(--text-1); overflow-wrap: anywhere; }
.th-note-meta { margin-top: 3px; font-size: 12px; color: var(--text-3); }
.th-note-acts { display: flex; gap: 2px; flex: none; }
.th-icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--text-3); transition: background var(--motion, 160ms), color var(--motion, 160ms); }
.th-icon-btn:hover { color: var(--text-1); background: var(--gl-in-bg, rgba(255,255,255,.06)); }
.th-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.th-icon-btn svg { width: 17px; height: 17px; }

.th-note.editing { display: block; padding: 12px; }
.th-note-edit, .th-add form { display: flex; flex-direction: column; gap: 8px; }
.th-note-edit textarea, .th-add textarea {
  width: 100%; box-sizing: border-box; min-height: 64px; padding: 10px 12px; border: none; border-radius: 12px; resize: vertical;
  font-size: 15px; line-height: 1.45; color: var(--text-1); background: var(--gl-in-bg, rgba(255,255,255,.06)); box-shadow: var(--gl-in-sh, none);
}
.th-note-edit textarea:focus, .th-add textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.th-add { display: none; margin-bottom: 10px; }
.th-add.open { display: block; }
.th-edit-row { display: flex; align-items: center; gap: 8px; }
.th-edit-row .count { margin-left: auto; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.th-btn { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text-1); background: var(--gl-in-bg, rgba(255,255,255,.06)); box-shadow: var(--gl-in-sh, none); }
.th-btn.primary { background: var(--gl-lens-bg, var(--accent)); box-shadow: var(--gl-lens-sh, none); color: var(--gl-lens-fg, #1a1500); }
.th-btn:disabled { opacity: .6; }
.th-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.th-style-sec { margin-top: 26px; display: flex; flex-direction: column; gap: 6px; }

#tutor-home .th-seg { display: flex; width: 100%; box-sizing: border-box; padding: 4px; border-radius: 12px; }
#tutor-home .th-seg button { flex: 1; min-height: 44px; padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; }
.th-quiet { min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 600; color: var(--text-3); }
.th-quiet:hover { color: var(--text-1); }
.th-quiet.danger:hover { color: var(--red, #ff6363); }
.th-reset { align-self: center; margin-top: 22px; }




.th-scrim { position: fixed; inset: 0; z-index: 950; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--gl-scrim, rgba(0,0,0,.5)); animation: th-fade 160ms ease-out; }
.th-scrim[data-closing="1"] { opacity: 0; transition: opacity 160ms ease-out; animation: none; }
@keyframes th-fade { from { opacity: 0; } to { opacity: 1; } }
.th-sheet {
  display: flex; flex-direction: column; width: min(760px, 100%); max-height: min(88vh, 100%); border-radius: 22px; overflow: hidden;
  background: var(--gl-dust-bg, var(--bg-elevated)); -webkit-backdrop-filter: var(--gl-dust-fx, none); backdrop-filter: var(--gl-dust-fx, none); box-shadow: var(--gl-dust-sh, var(--shadow-modal));
  animation: th-sheet-in 220ms cubic-bezier(.2,.8,.2,1);
}
@keyframes th-sheet-in { from { transform: translateY(14px) scale(.985); opacity: .6; } to { transform: none; opacity: 1; } }
.th-sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 16px 12px 22px; }
.th-sheet-head .th-eyebrow { margin-bottom: 4px; }
.th-sheet-title { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--text-1); margin: 0; overflow-wrap: anywhere; }
.th-sheet-meta { font-size: 12.5px; color: var(--text-3); margin-top: 4px; font-variant-numeric: tabular-nums; }
.th-close { width: 44px; height: 44px; border-radius: 50%; margin-left: auto; flex: none; display: grid; place-items: center; color: var(--text-2); background: var(--gl-in-bg, rgba(255,255,255,.06)); box-shadow: var(--gl-in-sh, none); }
.th-close:hover { color: var(--text-1); background: var(--gl-on-bg, rgba(255,255,255,.12)); }
.th-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.th-close svg { width: 18px; height: 18px; }
.th-sheet-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.th-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px calc(14px + env(safe-area-inset-bottom, 0px)); box-shadow: inset 0 1px 0 rgba(var(--gl-t, 238, 242, 236), .10); }
.th-sheet-foot .th-btn.primary { min-height: 44px; }
.th-loading { padding: 30px 0; text-align: center; color: var(--text-3); font-size: 14px; }


.th-turn { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.th-turn.student { align-items: flex-end; }
.th-turn-who { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.th-turn-who .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.th-turn-who time { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.th-said { font-size: 15.5px; line-height: 1.5; color: var(--text-1); max-width: 62ch; overflow-wrap: anywhere; }
.th-turn.student .th-said { padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--gl-on-bg, rgba(255,255,255,.12)); box-shadow: var(--gl-on-sh, none); color: var(--gl-on-fg, var(--text-1)); }
.th-turn.tutor .th-said { padding: 0 0 0 18px; position: relative; }
.th-turn.tutor .th-said::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--gl-in-bg, rgba(255,255,255,.1)); }

.th-board { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 18px; }
.th-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 34px; padding: 5px 12px; border-radius: 11px; font-size: 14px; line-height: 1.35; color: var(--text-1);
  background: var(--gl-in-bg, rgba(255,255,255,.06)); box-shadow: var(--gl-in-sh, none); overflow-wrap: anywhere;
}


.th-chip > svg { width: 14px; height: 14px; flex: none; color: var(--text-3); }
.th-chip .katex { font-size: 1.05em; }
.th-chip.text { font-size: 15px; font-weight: 500; }
.th-chip.math .katex-display { margin: 0; }
.th-chip[data-c="yellow"] { color: var(--th-ink); box-shadow: var(--gl-in-sh, none), inset 0 0 0 1px var(--accent-soft, rgba(255,209,102,.2)); }
.th-chip[data-c="blue"] { color: var(--teal, #7ec8e3); }
.th-chip[data-c="green"] { color: var(--green, #9ce37d); }
.th-chip[data-c="pink"] { color: var(--th-pink, #f2a6c8); }
.th-chip.note { background: var(--accent-soft, rgba(255,209,102,.14)); color: var(--text-1); }
.th-chip.note > svg { color: var(--th-ink); }
.th-chip.end { color: var(--text-2); }
.th-clear { width: 100%; display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.th-clear::before, .th-clear::after { content: ""; flex: 1; height: 1px; background: rgba(var(--gl-t, 238, 242, 236), .14); }

.th-figure { width: 100%; max-width: 360px; padding: 10px 12px 8px; border-radius: 14px; background: var(--gl-in-bg, rgba(255,255,255,.06)); box-shadow: var(--gl-in-sh, none); display: flex; flex-direction: column; gap: 6px; }
.th-figure svg { width: 100%; height: auto; display: block; }
.th-figure svg * { fill: none; stroke: var(--text-1); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.th-figure svg [data-c="blue"] { stroke: var(--teal, #7ec8e3); }
.th-figure svg [data-c="green"] { stroke: var(--green, #9ce37d); }
.th-figure svg [data-c="pink"] { stroke: var(--th-pink, #f2a6c8); }
.th-figure svg [data-c="yellow"] { stroke: var(--accent); }
.th-figure svg [data-fill="yellow"] { fill: var(--accent); fill-opacity: .18; }
.th-figure svg [data-fill="pink"] { fill: var(--th-pink, #f2a6c8); fill-opacity: .9; }
.th-figure svg [data-fill="blue"] { fill: var(--teal, #7ec8e3); fill-opacity: .18; }
.th-figure svg [data-fill="green"] { fill: var(--green, #9ce37d); fill-opacity: .18; }





.th-figure svg text:is(*, [data-c], [data-fill]) { fill: var(--text-1); fill-opacity: 1; stroke: none; font-family: var(--font, 'Space Grotesk', system-ui, sans-serif); font-size: 19px; font-weight: 500; }
.th-figure svg tspan:is(*, [data-c], [data-fill]) { fill: inherit; fill-opacity: 1; stroke: none; }
.th-figure svg :is(text, tspan)[data-c="blue"] { fill: var(--teal, #7ec8e3); }
.th-figure svg :is(text, tspan)[data-c="green"] { fill: var(--green, #9ce37d); }
.th-figure svg :is(text, tspan)[data-c="pink"] { fill: var(--th-pink, #f2a6c8); }
.th-figure svg :is(text, tspan)[data-c="yellow"] { fill: var(--accent); }
.th-figure figcaption { font-size: 12.5px; color: var(--text-3); }
:root { --th-pink: #f2a6c8; --th-ink: var(--accent); }



html[data-theme-mode="light"] { --th-pink: #c2427e; --th-ink: #7a5a00; }
@supports (color: color-mix(in oklab, red 50%, black)) { html[data-theme-mode="light"] { --th-ink: color-mix(in oklab, var(--accent) 58%, #000); } }


.th-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(8px); z-index: 960; max-width: min(420px, calc(100% - 32px));
  padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--text-1); text-align: center;
  background: var(--gl-dust-bg, var(--bg-elevated)); -webkit-backdrop-filter: var(--gl-dust-fx, none); backdrop-filter: var(--gl-dust-fx, none); box-shadow: var(--gl-dust-sh, var(--shadow-modal));
  opacity: 0; transition: opacity 180ms ease, transform 180ms ease; pointer-events: none;
}
.th-toast.on { opacity: 1; transform: translateX(-50%); }
.th-toast.bad { color: var(--red, #ff6363); }
body.phone-home .th-toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }


.th-skel { height: 180px; border-radius: 22px; background: var(--gl-card-bg, var(--card)); box-shadow: var(--gl-card-sh, none); animation: th-pulse 1.4s ease-in-out infinite; }
.th-skel.short { height: 120px; }
@keyframes th-pulse { 0%, 100% { opacity: .55; } 50% { opacity: .9; } }




@media (max-width: 640px) {
  .th-head { gap: 14px; }
  .th-mascot { width: 122px; height: 122px; border-radius: 28px; }
  .th-br { display: inline; }
  .th-start { align-self: stretch; justify-content: center; padding: 0 16px 0 8px; }
  .th-thumb { width: 72px; }
  .th-mascot.big { width: 160px; height: 160px; border-radius: 38px; }
  .th-carousel { gap: 14px; }
  .th-scrim { padding: 0; align-items: stretch; }
  .th-sheet { width: 100%; max-height: none; height: 100%; border-radius: 0; animation: th-sheet-up 260ms cubic-bezier(.2,.8,.2,1); }
  @keyframes th-sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
  .th-sheet-head { padding: calc(env(safe-area-inset-top, 0px) + 14px) 14px 10px 18px; }
  .th-sheet-body { padding: 4px 18px 22px; }
  .th-sheet-foot { padding-left: 18px; padding-right: 18px; }
  .th-said { max-width: 100%; }
}




@media (prefers-reduced-motion: reduce) {
  .th-in, .th-scrim, .th-sheet, .th-skel, .th-shim { animation: none; }
  .th-mascot, .th-start, .th-card, .th-note, .th-toast, .th-dots span { transition: none; }
}




.th-streak { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin: -14px 0 0; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.th-streak svg { width: 15px; height: 15px; flex: none; }
.th-streak.due { color: var(--text-2, inherit); }
.th-streak.due svg { color: var(--accent); }
.th-cheer {
  display: flex; align-items: center; gap: 12px; margin: -6px 0 0; padding: 12px 8px 12px 14px; border-radius: 16px;
  background: var(--gl-card-bg, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  animation: th-cheer-in 420ms cubic-bezier(.2, 1.4, .4, 1) both;
}
.th-cheer-flame { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent); animation: th-flame 1.6s ease-in-out 420ms 2; }
.th-cheer-flame svg { width: 20px; height: 20px; }
.th-cheer-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.th-cheer-text b { font-size: 15px; }
.th-cheer-text span { font-size: 13px; color: var(--text-2, inherit); }
@keyframes th-cheer-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes th-flame { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .th-cheer, .th-cheer-flame { animation: none; } }
