All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 30s
Generation - Every quiz is NCLEX style; "Practice exam" writes 50 questions. - Calculation questions only when the material involves calculations (max 5 per exam). - Broad topics: the class's topics are listed in the prompt, a quick grouping call maps narrow labels onto broad ones, and leftover variants are merged. - Exact select-all count per batch; option order shuffled. - Python check: at most 3 runs, fixed problems count as passed, cosmetic remarks ignored. Assistant - Text, tool steps and cards appear in the order they happen, with paragraph breaks between steps. - Optional thinking box: fixed height, follows the newest text, can be scrolled back. - "+" opens a material picker listing recent items; items can be dragged in from class pages; shorter placeholder. MCP servers - Streamable HTTP client; encrypted headers. - Per-server instructions and switches for chat, Explain, generation and the quiz check. - Settings UI. Share links - Optional "Explain this" and "Ask about this material" per link, off by default. - Items are loaded on the server and checked against the share; no tools; rate-limited. - Migration 4 stores the switches. Study and documents - Standard flashcard mode (optionally repeat missed cards until known) next to spaced repetition. - Streak visuals restyled in the app palette. - Side by side / Original document views, with sandboxed previews of Word and PowerPoint files. Other - Built-in embedding model baked into the image; sharp stubbed if it cannot load; real load error shown in Settings. - Python runner blocks network and process modules in JavaScript too. - "View questions and answers" removed from the quiz start screen. - Docs updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
631 lines
14 KiB
CSS
631 lines
14 KiB
CSS
@import 'tailwindcss';
|
|
@custom-variant dark (&:where([data-theme='dark'], [data-theme='dark'] *));
|
|
@source inline("tab-{cobalt,teal,moss,amber,coral,rose,plum,slate}");
|
|
@import '@fontsource-variable/instrument-sans';
|
|
@import '@fontsource-variable/newsreader';
|
|
@import '@fontsource-variable/newsreader/wght-italic.css';
|
|
@import '@fontsource-variable/jetbrains-mono';
|
|
|
|
/*
|
|
* Study Desk design language: "paper, ink and highlighter".
|
|
* Warm paper surfaces, near-black ink, one cobalt accent for anything interactive,
|
|
* and a highlighter yellow reserved for the few things that deserve emphasis.
|
|
* Serif (Newsreader) carries content you read and think about; sans carries controls.
|
|
*/
|
|
|
|
:root {
|
|
--paper: #fbfaf7;
|
|
--surface: #ffffff;
|
|
--sunken: #f3f1eb;
|
|
--line: #e7e3d9;
|
|
--line-strong: #d3cec1;
|
|
--ink: #1b1a17;
|
|
--ink-2: #57534a;
|
|
--ink-3: #6f6a60;
|
|
--accent: #2747d8;
|
|
--accent-hover: #1c37b5;
|
|
--accent-ink: #ffffff;
|
|
--accent-soft: #e9edfc;
|
|
--marker: #ffe36e;
|
|
--marker-ink: #1b1a17;
|
|
--good: #1c7a4b;
|
|
--good-soft: #e2f3e9;
|
|
--bad: #c0362c;
|
|
--bad-soft: #fbe8e5;
|
|
--warn: #9a5b07;
|
|
--warn-soft: #fbefd9;
|
|
--shadow-1: 0 1px 2px rgb(27 26 23 / 0.05), 0 1px 1px rgb(27 26 23 / 0.03);
|
|
--shadow-2: 0 4px 14px -4px rgb(27 26 23 / 0.1), 0 2px 4px -2px rgb(27 26 23 / 0.06);
|
|
--shadow-3: 0 24px 60px -16px rgb(27 26 23 / 0.28), 0 8px 20px -8px rgb(27 26 23 / 0.14);
|
|
|
|
--c-cobalt: #2747d8;
|
|
--c-teal: #0d7f86;
|
|
--c-moss: #4f7a28;
|
|
--c-amber: #b7790b;
|
|
--c-coral: #d6552f;
|
|
--c-rose: #c2386e;
|
|
--c-plum: #7a45c2;
|
|
--c-slate: #5d6673;
|
|
color-scheme: light;
|
|
}
|
|
|
|
:root[data-theme='dark'] {
|
|
--paper: #151412;
|
|
--surface: #1d1c19;
|
|
--sunken: #100f0e;
|
|
--line: #2f2d28;
|
|
--line-strong: #46423a;
|
|
--ink: #f3f0e9;
|
|
--ink-2: #bcb7ab;
|
|
--ink-3: #aaa496;
|
|
--accent: #91a6ff;
|
|
--accent-hover: #adbdff;
|
|
--accent-ink: #0f1430;
|
|
--accent-soft: #222949;
|
|
--marker: #e9cb4b;
|
|
--marker-ink: #1b1a17;
|
|
--good: #5fc795;
|
|
--good-soft: #15301f;
|
|
--bad: #f1867d;
|
|
--bad-soft: #3a1c19;
|
|
--warn: #e5a94f;
|
|
--warn-soft: #382911;
|
|
--shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
|
|
--shadow-2: 0 6px 18px -6px rgb(0 0 0 / 0.6);
|
|
--shadow-3: 0 28px 70px -18px rgb(0 0 0 / 0.8);
|
|
|
|
--c-cobalt: #91a6ff;
|
|
--c-teal: #4cc3c9;
|
|
--c-moss: #9cc76d;
|
|
--c-amber: #e8b44e;
|
|
--c-coral: #f58a66;
|
|
--c-rose: #f07ea9;
|
|
--c-plum: #b893f2;
|
|
--c-slate: #a0a9b6;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
@theme inline {
|
|
--color-paper: var(--paper);
|
|
--color-surface: var(--surface);
|
|
--color-sunken: var(--sunken);
|
|
--color-line: var(--line);
|
|
--color-line-strong: var(--line-strong);
|
|
--color-ink: var(--ink);
|
|
--color-ink-2: var(--ink-2);
|
|
--color-ink-3: var(--ink-3);
|
|
--color-accent: var(--accent);
|
|
--color-accent-hover: var(--accent-hover);
|
|
--color-accent-ink: var(--accent-ink);
|
|
--color-accent-soft: var(--accent-soft);
|
|
--color-marker: var(--marker);
|
|
--color-marker-ink: var(--marker-ink);
|
|
--color-good: var(--good);
|
|
--color-good-soft: var(--good-soft);
|
|
--color-bad: var(--bad);
|
|
--color-bad-soft: var(--bad-soft);
|
|
--color-warn: var(--warn);
|
|
--color-warn-soft: var(--warn-soft);
|
|
--color-tab: var(--tab, var(--c-cobalt));
|
|
|
|
--font-sans: 'Instrument Sans Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
|
|
--font-serif: 'Newsreader Variable', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
|
|
--font-mono: 'JetBrains Mono Variable', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
|
|
|
|
--shadow-1: var(--shadow-1);
|
|
--shadow-2: var(--shadow-2);
|
|
--shadow-3: var(--shadow-3);
|
|
|
|
--radius-card: 14px;
|
|
--radius-control: 9px;
|
|
|
|
--animate-in: sd-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
--animate-pop: sd-pop 160ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
|
|
--animate-fade: sd-fade 140ms ease-out;
|
|
--animate-sheet: sd-sheet 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
--animate-drawer: sd-drawer 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
--animate-shimmer: sd-shimmer 1.4s linear infinite;
|
|
}
|
|
|
|
@keyframes sd-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(6px);
|
|
}
|
|
}
|
|
@keyframes sd-pop {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.96);
|
|
}
|
|
}
|
|
@keyframes sd-fade {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
@keyframes sd-sheet {
|
|
from {
|
|
transform: translateY(100%);
|
|
}
|
|
}
|
|
@keyframes sd-drawer {
|
|
from {
|
|
transform: translateX(100%);
|
|
}
|
|
}
|
|
@keyframes sd-shimmer {
|
|
to {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
@layer base {
|
|
html {
|
|
font-family: var(--font-sans);
|
|
background: var(--paper);
|
|
color: var(--ink);
|
|
-webkit-text-size-adjust: 100%;
|
|
text-rendering: optimizeLegibility;
|
|
-webkit-font-smoothing: antialiased;
|
|
font-feature-settings: 'ss01', 'cv05';
|
|
scrollbar-gutter: stable;
|
|
}
|
|
body {
|
|
min-height: 100dvh;
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
#root {
|
|
min-height: 100dvh;
|
|
}
|
|
::selection {
|
|
background: var(--marker);
|
|
color: var(--marker-ink);
|
|
}
|
|
:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 2px;
|
|
border-radius: 6px;
|
|
}
|
|
button,
|
|
[role='button'],
|
|
summary,
|
|
label[for],
|
|
select {
|
|
cursor: pointer;
|
|
}
|
|
button:disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
h1,
|
|
h2,
|
|
h3 {
|
|
text-wrap: balance;
|
|
}
|
|
p {
|
|
text-wrap: pretty;
|
|
}
|
|
input::placeholder,
|
|
textarea::placeholder {
|
|
color: var(--ink-3);
|
|
}
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--line-strong) transparent;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
*,
|
|
::before,
|
|
::after {
|
|
animation-duration: 0.001ms !important;
|
|
transition-duration: 0.001ms !important;
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
/* Display type: serif, tight, slightly optical-size aware. */
|
|
.display {
|
|
font-family: var(--font-serif);
|
|
font-weight: 500;
|
|
letter-spacing: -0.015em;
|
|
line-height: 1.12;
|
|
font-variation-settings: 'opsz' 40;
|
|
}
|
|
.reading {
|
|
font-family: var(--font-serif);
|
|
font-size: 1.125rem;
|
|
line-height: 1.6;
|
|
font-variation-settings: 'opsz' 16;
|
|
}
|
|
.eyebrow {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.09em;
|
|
text-transform: uppercase;
|
|
color: var(--ink-3);
|
|
}
|
|
.num {
|
|
font-family: var(--font-mono);
|
|
font-variant-numeric: tabular-nums;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
/* Highlighter swipe behind a word or number. */
|
|
.marker {
|
|
background: linear-gradient(transparent 52%, var(--marker) 52%, var(--marker) 92%, transparent 92%);
|
|
color: inherit;
|
|
padding: 0 0.12em;
|
|
margin: 0 -0.12em;
|
|
border-radius: 2px;
|
|
}
|
|
:root[data-theme='dark'] .marker {
|
|
background: linear-gradient(transparent 58%, color-mix(in srgb, var(--marker) 42%, transparent) 58%, color-mix(in srgb, var(--marker) 42%, transparent) 94%, transparent 94%);
|
|
}
|
|
.card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--line);
|
|
border-radius: var(--radius-card);
|
|
box-shadow: var(--shadow-1);
|
|
}
|
|
.skeleton {
|
|
border-radius: 8px;
|
|
background: linear-gradient(90deg, var(--sunken) 0%, color-mix(in srgb, var(--sunken) 55%, var(--surface)) 50%, var(--sunken) 100%);
|
|
background-size: 200% 100%;
|
|
animation: var(--animate-shimmer);
|
|
}
|
|
.kbd {
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
line-height: 1;
|
|
padding: 3px 5px;
|
|
border-radius: 5px;
|
|
border: 1px solid var(--line-strong);
|
|
border-bottom-width: 2px;
|
|
background: var(--surface);
|
|
color: var(--ink-2);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Rendered Markdown (questions, cards, notes, assistant). */
|
|
.md {
|
|
line-height: 1.6;
|
|
}
|
|
.md > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
.md > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
.md p {
|
|
margin: 0.65em 0;
|
|
}
|
|
.md h1,
|
|
.md h2,
|
|
.md h3,
|
|
.md h4 {
|
|
font-family: var(--font-serif);
|
|
font-weight: 600;
|
|
line-height: 1.25;
|
|
margin: 1.4em 0 0.5em;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
.md h1 {
|
|
font-size: 1.6em;
|
|
}
|
|
.md h2 {
|
|
font-size: 1.32em;
|
|
padding-bottom: 0.25em;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
.md h3 {
|
|
font-size: 1.14em;
|
|
}
|
|
.md h4 {
|
|
font-size: 1em;
|
|
}
|
|
.md ul,
|
|
.md ol {
|
|
margin: 0.6em 0;
|
|
padding-left: 1.4em;
|
|
}
|
|
.md ul {
|
|
list-style: disc;
|
|
}
|
|
.md ol {
|
|
list-style: decimal;
|
|
}
|
|
.md li {
|
|
margin: 0.22em 0;
|
|
}
|
|
.md li::marker {
|
|
color: var(--ink-3);
|
|
}
|
|
.md strong {
|
|
font-weight: 650;
|
|
}
|
|
.md a {
|
|
color: var(--accent);
|
|
text-decoration: underline;
|
|
text-underline-offset: 2px;
|
|
}
|
|
.md code {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.88em;
|
|
background: var(--sunken);
|
|
padding: 0.12em 0.36em;
|
|
border-radius: 5px;
|
|
}
|
|
.md pre {
|
|
background: var(--sunken);
|
|
border: 1px solid var(--line);
|
|
padding: 0.8em 1em;
|
|
border-radius: 10px;
|
|
overflow-x: auto;
|
|
margin: 0.8em 0;
|
|
}
|
|
.md pre code {
|
|
background: none;
|
|
padding: 0;
|
|
}
|
|
.md blockquote {
|
|
border-left: 3px solid var(--line-strong);
|
|
padding-left: 0.9em;
|
|
color: var(--ink-2);
|
|
margin: 0.8em 0;
|
|
}
|
|
.md hr {
|
|
border: 0;
|
|
border-top: 1px solid var(--line);
|
|
margin: 1.4em 0;
|
|
}
|
|
.md img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 8px;
|
|
margin: 0.5em 0;
|
|
}
|
|
.md .table-wrap {
|
|
overflow-x: auto;
|
|
margin: 0.8em 0;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
}
|
|
.md table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.9em;
|
|
}
|
|
.md th,
|
|
.md td {
|
|
text-align: left;
|
|
padding: 0.5em 0.75em;
|
|
border-bottom: 1px solid var(--line);
|
|
vertical-align: top;
|
|
}
|
|
.md tr:last-child td {
|
|
border-bottom: 0;
|
|
}
|
|
.md th {
|
|
background: var(--sunken);
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
}
|
|
.md mark {
|
|
background: var(--marker);
|
|
color: var(--marker-ink);
|
|
padding: 0 0.15em;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* Flashcard: a real two-sided card that turns over its horizontal axis. Both faces share
|
|
one grid cell, so the card is always as tall as its taller side. */
|
|
.flip-scene {
|
|
perspective: 2000px;
|
|
}
|
|
.flip-card {
|
|
display: grid;
|
|
cursor: pointer;
|
|
transform-style: preserve-3d;
|
|
transition: transform 420ms cubic-bezier(0.3, 0.75, 0.25, 1);
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.flip-card[data-flipped='true'] {
|
|
transform: rotateX(180deg);
|
|
}
|
|
.flip-face {
|
|
grid-area: 1 / 1;
|
|
backface-visibility: hidden;
|
|
-webkit-backface-visibility: hidden;
|
|
}
|
|
.flip-back {
|
|
transform: rotateX(180deg);
|
|
}
|
|
.swipe-left {
|
|
animation: sd-swipe-left 260ms cubic-bezier(0.4, 0, 0.9, 0.6) forwards;
|
|
}
|
|
.swipe-right {
|
|
animation: sd-swipe-right 260ms cubic-bezier(0.4, 0, 0.9, 0.6) forwards;
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.flip-card {
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
/* Streaks, in the app's own palette: accent ink with a highlighter (marker) sheen. */
|
|
.streak-bar {
|
|
background-color: var(--accent);
|
|
background-image: linear-gradient(100deg, transparent 0 38%, color-mix(in srgb, var(--marker) 85%, transparent) 50%, transparent 62% 100%);
|
|
background-size: 260% 100%;
|
|
animation: sd-flame-flow 2.4s linear infinite;
|
|
}
|
|
.streak-chip {
|
|
animation: sd-pop 280ms cubic-bezier(0.2, 0.9, 0.3, 1.3);
|
|
}
|
|
.streak-chip-hot {
|
|
color: var(--marker-ink);
|
|
background: var(--marker);
|
|
}
|
|
.streak-scrim {
|
|
background: radial-gradient(circle at 50% 46%, var(--surface) 0%, var(--surface) 34%, color-mix(in srgb, var(--surface) 88%, transparent) 52%, transparent 80%);
|
|
animation: sd-streak-scrim var(--streak-ms, 1800ms) ease-out forwards;
|
|
}
|
|
.streak-pop {
|
|
animation: sd-streak-pop var(--streak-ms, 1800ms) cubic-bezier(0.2, 0.9, 0.3, 1.1) forwards;
|
|
}
|
|
.streak-flame {
|
|
animation: sd-flicker 0.9s ease-in-out infinite;
|
|
transform-origin: 50% 85%;
|
|
}
|
|
/* A highlighter stroke drawn behind the number. */
|
|
.streak-mark {
|
|
--streak-marker: var(--marker);
|
|
background-image: linear-gradient(var(--streak-marker), var(--streak-marker));
|
|
background-repeat: no-repeat;
|
|
background-position: 0 82%;
|
|
background-size: 0% 46%;
|
|
border-radius: 4px;
|
|
animation: sd-streak-mark var(--streak-ms, 1800ms) cubic-bezier(0.3, 0.7, 0.2, 1) forwards;
|
|
}
|
|
/* Same softened highlighter as .marker in dark mode, so light text stays readable on it. */
|
|
:root[data-theme='dark'] .streak-mark {
|
|
--streak-marker: color-mix(in srgb, var(--marker) 42%, transparent);
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.streak-bar,
|
|
.streak-flame {
|
|
animation: none;
|
|
}
|
|
.streak-mark {
|
|
animation: none;
|
|
background-size: 100% 46%;
|
|
}
|
|
}
|
|
}
|
|
|
|
@keyframes sd-swipe-left {
|
|
to {
|
|
transform: translateX(-70px) rotate(-6deg);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
@keyframes sd-swipe-right {
|
|
to {
|
|
transform: translateX(70px) rotate(6deg);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
@keyframes sd-flame-flow {
|
|
to {
|
|
background-position: -200% 50%;
|
|
}
|
|
}
|
|
@keyframes sd-flicker {
|
|
0%,
|
|
100% {
|
|
transform: scale(1) rotate(0);
|
|
}
|
|
25% {
|
|
transform: scale(1.07) rotate(-2.5deg);
|
|
}
|
|
60% {
|
|
transform: scale(0.96) rotate(2deg);
|
|
}
|
|
}
|
|
@keyframes sd-streak-pop {
|
|
0% {
|
|
opacity: 0;
|
|
transform: translateY(26px) scale(0.55);
|
|
}
|
|
28% {
|
|
opacity: 1;
|
|
transform: translateY(-2px) scale(1.1);
|
|
}
|
|
40% {
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
78% {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
transform: translateY(-14px) scale(0.96);
|
|
}
|
|
}
|
|
@keyframes sd-streak-mark {
|
|
0%,
|
|
16% {
|
|
background-size: 0% 46%;
|
|
}
|
|
42%,
|
|
100% {
|
|
background-size: 100% 46%;
|
|
}
|
|
}
|
|
@keyframes sd-streak-scrim {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
14% {
|
|
opacity: 1;
|
|
}
|
|
76% {
|
|
opacity: 1;
|
|
}
|
|
100% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@utility tab-cobalt {
|
|
--tab: var(--c-cobalt);
|
|
}
|
|
@utility tab-teal {
|
|
--tab: var(--c-teal);
|
|
}
|
|
@utility tab-moss {
|
|
--tab: var(--c-moss);
|
|
}
|
|
@utility tab-amber {
|
|
--tab: var(--c-amber);
|
|
}
|
|
@utility tab-coral {
|
|
--tab: var(--c-coral);
|
|
}
|
|
@utility tab-rose {
|
|
--tab: var(--c-rose);
|
|
}
|
|
@utility tab-plum {
|
|
--tab: var(--c-plum);
|
|
}
|
|
@utility tab-slate {
|
|
--tab: var(--c-slate);
|
|
}
|
|
/* For bars with no bottom padding of their own (fixed-height footers and nav). */
|
|
@utility safe-bottom {
|
|
padding-bottom: max(env(safe-area-inset-bottom), 0px);
|
|
}
|
|
|
|
/*
|
|
* Bottom padding of 0.75rem plus the home-indicator inset. Use this instead of combining
|
|
* `safe-bottom` with `pb-3`/`py-3`: safe-bottom replaces the padding (to 0 on desktop),
|
|
* which left dialog footer buttons sitting on the bottom edge.
|
|
*/
|
|
@utility safe-pb-3 {
|
|
padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
|
|
}
|
|
|
|
@media print {
|
|
.no-print {
|
|
display: none !important;
|
|
}
|
|
html,
|
|
body {
|
|
background: #fff;
|
|
}
|
|
}
|