/* NotePico — montage look, always light: white hand-made paper, cream cards, and deep slate/plum/moss plates carrying
   the user's real photos, classical print cutouts, coral crayon lines, teal dry brush and gold stars. */
@font-face { font-family: 'Young Serif'; src: url(fonts/young-serif-latin.woff2) format('woff2'); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Mulish'; src: url(fonts/mulish-latin.woff2) format('woff2'); font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
:root {
  --bg: #fbfaf7; --card: #fcf9f3; --surface: #ffffff; --surface-2: #f1eee7; --ink: #1e2526; --ink-2: #5f6665; --line: #e4e0d7;
  --brand: #1e2526; --primary: #26393a; --on-primary: #ffffff; --emboss: inset 0 -4px 8px #142223, inset 0 2px 8px #ffffff40;
  --accent: #e57a5a; --teal: #7fa8ae; --kw: #ffe39a; --speak: #26393a; --focus: #d4643f;
  --d-slate: #2e3b3c; --d-plum: #3a3240; --d-moss: #3a4128; --d-rust: #4a3026; --d-ochre: #463b1f;
  --good: #4f7a3c; --again: #c0472f; --hard: #9a6a17; --easy: #3f7780; --danger: #b8432b; --gold: #d9a63a;
  --n-yellow: #ffe08a; --n-pink: #ffc4b0; --n-blue: #bcdde2; --n-green: #cfdc9c; --n-lilac: #d6cbe0; --note-ink: #21201c;
  --pool: #6e5a3e; --w-sky: #ddecee; --w-sage: #e3e9c4; --w-peach: #ffe0d2; --w-lilac: #e5dfe9; --w-butter: #fff2c7; --brush: #ffffffc0;
  --grain: url(assets/tex/grain.png);
  --scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c30-5 62-6 96-4s70 3 98-2M10 12c40-4 90-5 150-3' fill='none' stroke='%23e57a5a' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --radius: 18px; --shadow: 0 1px 2px #21201c14, 0 4px 16px #21201c1a;
  --body: 'Mulish', system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR", "PingFang SC", "Noto Sans SC", "Noto Sans TC", sans-serif;
  --display: 'Young Serif', "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "AppleMyungjo", "Noto Serif KR", "Songti SC", "Noto Serif SC", "Noto Serif CJK JP", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background-color: var(--bg); color: var(--ink); font-family: var(--body); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; background-image: var(--grain); background-size: 240px 240px; }
body.sheet-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.app { max-width: 540px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; min-height: 58px; padding: 6px 12px; background-color: color-mix(in srgb, var(--bg) 92%, transparent); background-image: var(--grain); backdrop-filter: blur(10px); }
.top h1 { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: -.01em; margin: 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; gap: 4px; justify-content: flex-end; min-width: 44px; }
.brand { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; padding-left: 6px; color: var(--brand); }
.view { flex: 1; padding: 6px 16px 28px; display: flex; flex-direction: column; gap: 14px; }
body.has-nav .view { padding-bottom: 104px; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; gap: 4px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.nav button { flex: 1; max-width: 170px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; border: 0; border-radius: 14px; background: none; color: var(--ink-2); font-size: 12px; font-weight: 700; }
.nav button.active { color: var(--ink); background: var(--surface-2); }
.nav .icon { stroke-width: 2.2; }
.icon { width: 22px; height: 22px; flex: none; }

h2 { font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; word-break: auto-phrase; }
h3 { font-size: 16px; font-weight: 700; margin: 8px 0 0; letter-spacing: -.01em; }
h4 { font-size: 11.5px; margin: 14px 0 4px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .12em; }
p { margin: 0; line-height: 1.6; }
.muted { color: var(--ink-2); }
.fine { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.center { text-align: center; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.form-error { color: var(--danger); font-size: 13.5px; min-height: 0; }
.form-error:empty { display: none; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

/* Montage pieces: gold star sticker and dry-brush stroke */
.star { width: 20px; height: 20px; flex: none; fill: var(--gold); filter: drop-shadow(0 1px 1px #0000002e); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px; transition: transform .12s ease, background .15s; text-align: center; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); box-shadow: var(--emboss); }
.btn.accent { background: var(--surface); color: var(--ink); border: 1.5px dashed color-mix(in srgb, var(--ink-2) 55%, transparent); }
.btn.accent .icon { color: var(--accent); stroke-width: 2.6; }
.btn.big { width: 100%; min-height: 54px; font-size: 16px; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.btn.quiet { background: none; border-color: transparent; color: var(--ink-2); box-shadow: none; }
.btn.danger { color: var(--danger); }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.round { width: 58px; height: 58px; min-height: 58px; padding: 0; border-radius: 50%; flex: none; }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--ink); vertical-align: middle; }
.icon-btn:active { background: var(--surface-2); }
.link { border: 0; background: none; color: var(--ink-2); font-weight: 700; font-size: 13.5px; padding: 8px; min-height: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 38px; min-width: 50px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; }
.chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; }
.field.inline { flex-direction: row; align-items: center; gap: 12px; }
.field.inline select { flex: 1; }
label, .field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="search"], input:not([type]), select { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 16px; }
input:focus, select:focus { border-color: var(--ink-2); outline: none; }
.toggle { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; color: var(--ink); font-weight: 600; font-size: 15px; }
.toggle input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--primary); flex: none; }
.toggle small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; font-weight: 400; }
details.manual { border-top: 1px dashed var(--line); padding-top: 6px; }
details.manual summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--ink-2); cursor: pointer; }
details.manual[open] { display: flex; flex-direction: column; gap: 10px; }

/* Loader: three little notes taking turns to hop. */
.pico-loader { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; color: var(--ink-2); font-size: 14px; font-weight: 700; }
.pl { display: inline-flex; gap: 5px; align-items: flex-end; height: 22px; }
.pl i { width: 12px; height: 12px; border-radius: 3px; background: var(--n-yellow); box-shadow: 0 1px 0 #0000001a; animation: hop 1s ease-in-out infinite; }
.pl i:nth-child(2) { background: var(--n-pink); animation-delay: .15s; }
.pl i:nth-child(3) { background: var(--n-blue); animation-delay: .3s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-9px) rotate(-12deg); } }

/* Welcome: a small montage — wash, brush, the sample photo as a torn print, three notes and a star. */
.welcome { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.welcome-language { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.language-setup { display: grid; gap: 14px; }
.field .fine { margin: 0; }
.welcome-art { position: relative; height: 280px; margin: 0 auto 6px; width: 100%; max-width: 360px; border-radius: 20px; background: url(assets/tex/brush-plum.png) 0 0 / 100% 100% no-repeat, var(--grain) var(--d-slate); overflow: hidden; }
.wa-photo { position: absolute; inset: 40px 34px 34px 92px; padding: 5px; background: #fff; box-shadow: 0 10px 24px #21201c38; transform: rotate(-3deg); clip-path: polygon(0 1%, 24% 0, 52% 1.4%, 80% 0, 100% 1%, 99.4% 52%, 100% 99%, 72% 100%, 46% 98.6%, 20% 100%, 0 99%, .6% 48%); }
.wa-photo img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.15) saturate(.9); }
.wa-note { position: absolute; padding: 6px 11px 7px; border-radius: 10px; font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 16px; color: var(--note-ink); background: color-mix(in srgb, var(--tape) 26%, #fff); box-shadow: 0 6px 14px #21201c2e; }
.wa-note::before { content: ''; position: absolute; left: -5px; top: -7px; width: 12px; height: 16px; border-radius: 2px; background: var(--tape); transform: rotate(-16deg); opacity: .95; }
.wa-note.n1 { left: 104px; top: 62px; transform: rotate(-5deg); }
.wa-note.n2 { right: 14px; top: 120px; transform: rotate(4deg); }
.wa-note.n3 { left: 136px; bottom: 44px; transform: rotate(-2deg); }
.welcome-art > .star { position: absolute; right: 30px; top: 22px; width: 32px; height: 32px; transform: rotate(12deg); }
.wa-print { left: 4px; top: 10px; width: 112px; height: 176px; transform: rotate(-7deg); }
.wa-print img { object-position: 50% 52%; }
.wa-parrot { right: -4px; bottom: 0; width: 112px; height: 80px; transform: rotate(6deg); z-index: 2; }
.wa-parrot img { object-position: 64% 40%; }
.welcome-art .tape { left: 52%; top: 28px; transform: rotate(-6deg); z-index: 3; }
.welcome-title { font-size: 30px; }

/* Home */
/* Layer cards: a cream card holding a deep plate (photo, print, brush) above a serif caption — the montage unit. */
.layer-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 16px; border-radius: 24px; background: var(--card); box-shadow: 0 1px 2px #1e252614, 0 10px 28px #1e25261c; }
.layer-card > .cap, .layer-card > .btn { margin: 0 8px; }
.layer-card > .btn { width: auto; }
.cap { display: flex; flex-direction: column; gap: 4px; }
.cap h2 { font-size: 26px; }
.plate-d { position: relative; overflow: hidden; isolation: isolate; display: grid; place-items: center; min-height: 168px; padding: 20px; border: 0; border-radius: 16px; background-color: var(--d-slate); color: #fff;
  background-image: var(--brush-img, url(assets/tex/brush-slate.png)), var(--grain); background-size: 100% 100%, 240px 240px; background-repeat: no-repeat, repeat; }
.p-slate { background-color: var(--d-slate); --brush-img: url(assets/tex/brush-slate.png); } .p-plum { background-color: var(--d-plum); --brush-img: url(assets/tex/brush-plum.png); }
.p-moss { background-color: var(--d-moss); --brush-img: url(assets/tex/brush-moss.png); } .p-rust { background-color: var(--d-rust); --brush-img: url(assets/tex/brush-rust.png); } .p-ochre { background-color: var(--d-ochre); --brush-img: url(assets/tex/brush-ochre.png); }
.plate-d > .star { position: absolute; right: 18px; bottom: 16px; width: 30px; height: 30px; transform: rotate(10deg); }
.mini-deck { position: relative; display: grid; place-items: center; width: 168px; height: 112px; }
.mini-deck i, .mini-deck b { position: absolute; inset: 0; border-radius: 12px; background: #fcf9f3; box-shadow: 0 8px 18px #0000004d; }
.mini-deck i:nth-child(1) { transform: rotate(-9deg) translate(-10px, 4px); background: #efe7d6; }
.mini-deck i:nth-child(2) { transform: rotate(5deg) translate(8px, 2px); background: #f6efe2; }
.mini-deck b { display: grid; place-items: center; padding: 10px; color: var(--ink); font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 22px; text-align: center; overflow: hidden; transform: rotate(-1.5deg); }
.mini-deck b::before { content: ''; position: absolute; left: 50%; top: -8px; width: 58px; height: 18px; margin-left: -29px; transform: rotate(-4deg);
  background: repeating-linear-gradient(90deg, #ffffff38 0 3px, transparent 3px 8px), color-mix(in srgb, var(--n-pink) 85%, transparent);
  clip-path: polygon(0 0, 100% 0, 97% 22%, 100% 44%, 96% 66%, 100% 86%, 97% 100%, 0 100%, 3% 80%, 0 58%, 4% 36%, 0 16%); }
.due-card { overflow: hidden; }
.capture-art { min-height: 176px; }
.capture-art .cap-print { left: 22px; top: 18px; width: 104px; height: 140px; transform: rotate(-6deg); }
.capture-art .cap-print img { object-position: 50% 52%; }
.cam { position: relative; left: 40px; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fcf9f3; color: var(--d-plum); box-shadow: 0 10px 22px #0000005c; transform: rotate(4deg); }
.cam .icon { width: 40px; height: 40px; stroke-width: 1.8; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 0; counter-reset: none; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 700; text-align: center; box-shadow: 0 1px 2px #1e252614; }
.steps li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; font-family: var(--display); font-size: 15px; }
.steps li.done { color: var(--good); }
.steps li.done span { background: var(--good); border-color: var(--good); color: #fff; }
.steps li.done span .icon { width: 16px; height: 16px; stroke-width: 3; }
.steps li:not(.done):first-of-type, .steps li.done + li:not(.done) { color: var(--ink); background: var(--card); box-shadow: 0 0 0 2px var(--accent); }
.progress-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.streak { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--ink); }
.streak .star { width: 17px; height: 17px; }
.plate { width: 100%; text-align: left; cursor: pointer; }
.plate-photo { position: relative; align-self: center; padding: 6px; background: #fff; box-shadow: 0 12px 26px #00000059; transform: rotate(-1.5deg); }
.plate-photo img { width: 100%; height: 100%; object-fit: cover; }
.mini-note { position: absolute; transform: translate(-50%, -50%) rotate(-2deg); max-width: 44%; padding: 3px 8px 4px; border-radius: 8px; background: color-mix(in srgb, var(--tape) 26%, #fff); color: var(--note-ink); font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 12.5px; line-height: 1.2; box-shadow: 0 4px 10px #21201c33; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-note:nth-of-type(2n) { transform: translate(-50%, -50%) rotate(2deg); }
.nudge { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--w-butter); color: var(--ink); font-size: 14px; }
.section-head { display: flex; align-items: center; justify-content: space-between; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb { position: relative; padding: 4px; border: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 1; background: #fff; box-shadow: 0 4px 12px #21201c24; transform: rotate(-1deg); }
.thumb:nth-child(2n) { transform: rotate(1.2deg); }
.thumb:nth-child(3n) { transform: rotate(-.4deg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb span:not(:empty) { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: #fff; color: var(--note-ink); font-size: 11px; font-weight: 800; box-shadow: 0 2px 6px #0000002e; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 30px 12px; color: var(--ink-2); }
.empty-art { position: relative; width: 180px; height: 150px; --wash-img: url(assets/tex/wash-sage.png); }
.empty-art .art { left: 44px; top: 4px; width: 96px; height: 140px; transform: rotate(-5deg); }
.empty-art .art img { object-position: 50% 40%; }
.empty-art.cards { --wash-img: url(assets/tex/wash-butter.png); } .empty-art.cards .art img { object-position: 50% 30%; }
.empty-art.photos { --wash-img: url(assets/tex/wash-peach.png); } .empty-art.photos .art { left: 20px; top: 34px; width: 140px; height: 96px; transform: rotate(4deg); }
.empty-art .star { position: absolute; right: 18px; top: 6px; width: 28px; height: 28px; z-index: 2; }
/* Add */
.add-art { height: 130px; margin: 4px auto 6px; width: 200px; position: relative; --wash-img: url(assets/tex/wash-peach.png); }
.add-art .art { left: 22px; top: 14px; width: 92px; height: 104px; transform: rotate(-6deg); }
.add-art .art img { object-position: 50% 30%; }
.add-art::after { content: '+'; position: absolute; left: 50%; top: 50%; transform: translate(-10%, -40%) rotate(-5deg); width: 52px; height: 46px; z-index: 2; display: grid; place-items: center; border-radius: 10px; background: #fff; color: var(--accent); font-family: var(--display); font-size: 30px; box-shadow: 0 6px 14px #21201c2e; }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sample { padding: 4px 4px 0; border: 0; border-radius: 4px; overflow: hidden; background: #fff; color: #21201c; font-size: 13px; font-weight: 700; box-shadow: 0 4px 12px #21201c24; }
.sample img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sample span { display: block; padding: 7px 4px 8px; }

/* Photo stage and notes. The stage sits on a wash like a plate; it is never rotated so taps map exactly. */
.stage-wrap { position: relative; display: flex; justify-content: center; padding: 22px 18px; margin: 0 -6px; border-radius: 20px; background: url(assets/tex/brush-slate.png) 0 0 / 100% 100% no-repeat, var(--grain) var(--d-slate); }
.stage { position: relative; max-width: 100%; border: 6px solid #fff; border-radius: 2px; background: var(--surface-2); box-shadow: 0 12px 28px #21201c33; touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.stage > img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.note { position: absolute; transform: translate(-50%, -50%) rotate(-2deg); display: flex; flex-direction: column; align-items: flex-start; max-width: 46%; padding: 6px 10px 7px; border: 0; border-radius: 10px; color: var(--note-ink); background: color-mix(in srgb, var(--tape) 26%, #fff); text-align: left; box-shadow: 0 6px 16px #21201c3d, 0 1px 2px #21201c2e; touch-action: none; cursor: grab; line-height: 1.2; animation: stick .22s ease-out; }
.note::before { content: ''; position: absolute; left: -5px; top: -7px; width: 12px; height: 17px; border-radius: 2px; background: var(--tape); transform: rotate(-16deg); box-shadow: 0 1px 2px #0000001f; }
.note:nth-of-type(3n) { transform: translate(-50%, -50%) rotate(2deg); }
.note:nth-of-type(3n+1) { transform: translate(-50%, -50%) rotate(-1deg); }
.note.dragging { cursor: grabbing; box-shadow: 0 16px 30px #21201c4d; z-index: 3; transform: translate(-50%, -54%) rotate(0) scale(1.05); animation: none; }
.note .term { font-family: var(--display); font-weight: 700; font-synthesis: none; overflow-wrap: anywhere; }
.note .gloss { font-size: .76em; color: #5d584f; margin-top: 2px; overflow-wrap: anywhere; }
.note.s-s { font-size: 12px; padding: 4px 8px; }
.note.s-m { font-size: 14.5px; }
.note.s-l { font-size: 19px; padding: 8px 13px 9px; }
.c-yellow { --tape: var(--n-yellow); } .c-pink { --tape: var(--n-pink); } .c-blue { --tape: var(--n-blue); } .c-green { --tape: var(--n-green); } .c-lilac { --tape: var(--n-lilac); }
@keyframes stick { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
.ghost { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 5px 11px 5px 7px; border-radius: 999px; border: 1.5px dashed #fff; background: #2c1c0eb8; color: #fff; font-weight: 700; font-size: 14px; animation: breathe 2.4s ease-in-out infinite; }
.ghost .icon { width: 16px; height: 16px; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px #ffffff33; } }
.scan-overlay { position: absolute; inset: 0; overflow: hidden; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #2c1c0e80; color: #fff; }
.scan-overlay .pico-loader { color: #fff; }
.scan-beam { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, #ffe08a66, transparent); animation: beam 1.8s ease-in-out infinite alternate; top: -30%; }
@keyframes beam { to { top: 100%; } }
.suggest-bar { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.suggest-bar span { flex: 1; }
.toolbar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.toolbar .btn { flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 13px; min-height: 62px; }

/* Sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 20; background: #1a110866; animation: fade .18s ease-out; }
.sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-width: 540px; margin: 0 auto; max-height: 90dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: var(--bg); box-shadow: 0 -8px 30px #0000002e; animation: rise .24s cubic-bezier(.2, .8, .3, 1); }
.grabber { width: 42px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 2px; }
.sheet-close { position: absolute; right: 8px; top: 8px; }
.sheet h2 { font-size: 22px; padding-right: 44px; }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.results { display: flex; flex-direction: column; gap: 8px; }
.result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; }
.result.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary), var(--shadow); }
.result .term { font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 19px; }
.result .reading { color: var(--ink-2); font-size: 13.5px; }
.result .meaning { flex-basis: 100%; color: var(--ink-2); }
.result .example { flex-basis: 100%; font-size: 14px; font-style: italic; }
.style-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 36px; height: 36px; border-radius: 10px; border: 2px solid transparent; background: var(--tape); box-shadow: inset 0 0 0 1px #00000014; }
.swatch.on { border-color: var(--ink); }
.word-card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.term { font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 24px; letter-spacing: -.01em; }
.term.big { font-size: 36px; line-height: 1.15; }
.reading { color: var(--ink-2); }
.example { font-style: italic; }
mark { background: linear-gradient(transparent 55%, var(--kw) 55%); color: inherit; padding: 0 1px; }

/* Practice sentences */
.story-photo { position: relative; padding: 5px; background: #fff; box-shadow: 0 10px 24px #21201c2e; transform: rotate(-1deg); max-height: 30vh; overflow: hidden; }
.story-photo img { width: 100%; max-height: calc(30vh - 10px); object-fit: cover; }
.sentences { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.sentence { font-size: 22px; line-height: 1.7; }
.translation { color: var(--ink-2); font-size: 14.5px; margin-top: 2px; }
.tok { cursor: pointer; border-radius: 6px; padding: 0 1px; transition: background .12s, color .12s; }
.kw { background: linear-gradient(transparent 58%, var(--kw) 58%); font-weight: 800; }
.tok.speaking { background: var(--speak); color: var(--on-primary); }
.hide-kw .kw:not(.revealed) { color: transparent; background: none; border-bottom: 2.5px solid var(--accent); }
.player { display: flex; align-items: center; gap: 14px; }
.word-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.word-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.word-chip .icon { width: 17px; height: 17px; color: var(--ink-2); }
.word-chip small { color: var(--ink-2); }

/* Cards */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { position: relative; padding: 16px 12px; text-align: center; color: var(--ink); --wash-img: url(assets/tex/wash-sky.png); }
.stats div:nth-child(2) { --wash-img: url(assets/tex/wash-sage.png); } .stats div:nth-child(3) { --wash-img: url(assets/tex/wash-peach.png); }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; font-variant-numeric: tabular-nums; }
.stats span { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.word-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.word-row { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 10px 16px; border-radius: 12px; border: 0; background: var(--card); box-shadow: 0 1px 2px #1e252614, 0 4px 12px #1e252612; text-align: left; }
.word-row b { display: block; font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 17px; }
.word-row small { color: var(--ink-2); font-size: 13.5px; }
.word-row em { font-style: normal; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
.pill { align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--w-butter); font-size: 13px; font-weight: 700; margin-top: 10px; }
.word-detail { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.meaning { font-size: 17px; }

/* Notebooks: iPhone-folder tiles (first cards shrunk onto a deep plate), and a deck of real cards inside. */
.books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.book { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; color: var(--ink); }
.book-cover { aspect-ratio: 1; min-height: 0; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; place-items: stretch; border-radius: 22px; box-shadow: 0 10px 22px #1e252633; }
.mini-card { display: grid; place-items: center; padding: 4px; border-radius: 9px; background: #fcf9f3; color: var(--ink); font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 13px; line-height: 1.1; text-align: center; overflow: hidden; overflow-wrap: anywhere; box-shadow: 0 3px 8px #00000040; }
.mini-card:nth-child(odd) { transform: rotate(-2deg); } .mini-card:nth-child(even) { transform: rotate(1.5deg); }
.book { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; transition: transform .18s ease; }
.book img { -webkit-user-drag: none; pointer-events: none; }
.book.has-photos .book-cover { display: block; padding: 0; }
.book-photos { position: absolute; inset: 10% 14% 30% 12%; }
.bp { position: absolute; inset: 0; padding: 4px; background: #fff; box-shadow: 0 6px 14px #0000004d; }
.bp img { width: 100%; height: 100%; object-fit: cover; }
.book-photos .bp:nth-child(1) { transform: rotate(-3deg); z-index: 3; }
.book-photos .bp:nth-child(2) { transform: rotate(8deg) translate(16%, -7%); z-index: 2; }
.book-photos .bp:nth-child(3) { transform: rotate(-10deg) translate(-14%, -5%); z-index: 1; }
.book.theme .book-photos .bp:nth-child(1) { transform: rotate(-3deg) translate(-4%, 4%); }
.book-photos .bp:first-child::before { content: ''; position: absolute; left: 50%; top: -9px; width: 46px; height: 16px; margin-left: -23px; z-index: 1; transform: rotate(-4deg);
  background: repeating-linear-gradient(90deg, #ffffff38 0 3px, transparent 3px 8px), color-mix(in srgb, var(--n-yellow) 82%, transparent);
  clip-path: polygon(0 0, 100% 0, 97% 22%, 100% 44%, 96% 66%, 100% 86%, 97% 100%, 0 100%, 3% 80%, 0 58%, 4% 36%, 0 16%); }
.book.has-photos .book-cards { position: absolute; left: 6%; right: 6%; bottom: 7%; z-index: 4; display: flex; justify-content: center; }
.book.has-photos .mini-card { flex: 0 1 34%; min-width: 0; padding: 6px 4px; margin: 0 -3%; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; display: block; }
.book:not(.has-photos) .book-cards { display: contents; }
.books.selecting .book:not([disabled]) .book-cover { animation: jiggle .3s ease-in-out infinite alternate; }
.books.selecting .book:nth-child(2n) .book-cover { animation-delay: .15s; }
.books.selecting .book[disabled] { opacity: .4; }
@keyframes jiggle { from { transform: rotate(-1deg); } to { transform: rotate(1deg); } }
.pick-mark { position: absolute; right: 8px; top: 8px; z-index: 5; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: #0000004d; color: #fff; }
.book.picked .pick-mark { background: var(--accent); border-color: var(--accent); }
.book.picked .book-cover { box-shadow: 0 0 0 3px var(--accent), 0 10px 22px #1e252633; }
.pick-mark .icon { width: 16px; height: 16px; stroke-width: 3; }
.book.lifted { position: relative; z-index: 10; transition: none; }
.book.lifted .book-cover { box-shadow: 0 22px 40px #1e25264d; }
.books.dragging .book:not(.lifted) { opacity: .85; }
.book.drop-target .book-cover { box-shadow: 0 0 0 4px var(--accent), 0 10px 22px #1e252633; transform: scale(1.05); }
.select-bar { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 4; padding: 8px 0; }
.group-preview { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; }
.group-preview .bp { position: relative; inset: auto; flex: none; width: 92px; height: 112px; display: flex; flex-direction: column; gap: 4px; transform: rotate(-2deg); }
.group-preview .bp:nth-child(even) { transform: rotate(2deg); }
.group-preview .bp img { height: 76px; }
.group-preview small { font-size: 11.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-name { padding: 0 4px; font-family: var(--display); font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-meta { padding: 0 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.book-meta em { font-style: normal; color: var(--accent); }
.deck { position: relative; height: min(58vh, 460px); margin: 6px 6px 4px; perspective: 1400px; }
.deck-back { position: absolute; inset: 10px 4px 0; border-radius: 22px; background: #efe7d6; box-shadow: 0 6px 16px #1e252626; transform: rotate(-4deg) translateY(10px); }
.deck-back.b1 { background: #f5eee1; transform: rotate(3deg) translateY(6px); }
.shuffled .deck-back { animation: fan .45s ease-out; } .shuffled .flip-card { animation: deal .45s ease-out; }
@keyframes fan { 40% { transform: rotate(-14deg) translateX(-30px); } }
@keyframes deal { from { transform: translateY(30px) rotate(6deg); opacity: 0; } }
.flip-card { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; outline-offset: 4px; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.3, .7, .3, 1); transform-style: preserve-3d; }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 26px 22px; border-radius: 22px; background: var(--card); background-image: var(--grain); box-shadow: 0 2px 4px #1e25261a, 0 16px 34px #1e252629; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); background-color: #fffdf8; }
.face .tape { left: 50%; top: -10px; margin-left: -38px; transform: rotate(-3deg); }
.face .zoom { width: 100%; max-height: 42%; aspect-ratio: 16 / 10; }
.face .term.big { font-size: 40px; }
.face .meaning { font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 30px; line-height: 1.25; }

/* Word study page: cream index cards, one per topic */
.study { display: flex; flex-direction: column; gap: 12px; }
.study-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; border-radius: 18px; background: var(--card); box-shadow: 0 1px 2px #1e252614, 0 6px 18px #1e252614; }
.study-card h4 { margin: 0; color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: -.01em; text-transform: none; }
.study-card h4::after { content: ''; display: block; width: 56px; height: 8px; margin-top: 2px; background: var(--scribble) no-repeat left / 100% 100%; }
.study-card h5 { margin: 6px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.study .ex { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px dashed var(--line); }
.study .ex .example { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 16px; }
.study .ex .icon-btn { width: 36px; height: 36px; }
.rel { display: flex; flex-direction: column; gap: 8px; }
.rel-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); }
.rel-item > p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.rel-item > .btn, .rel-item > .rel-have { grid-column: 1 / -1; justify-self: start; }
.rel-word { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 10px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--n-blue) 40%, #fff); text-align: left; }
.opposite .rel-word { background: color-mix(in srgb, var(--n-pink) 45%, #fff); }
.rel-word b { font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 17px; }
.rel-word small { font-size: 11.5px; color: var(--ink-2); }
.rel-have { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--good); }
.rel-have .icon { width: 15px; height: 15px; stroke-width: 3; }
.points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.55; font-size: 15px; }
.points li::marker { color: var(--teal); }
.points.warn li::marker { color: var(--accent); }
.forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.forms div { padding: 8px 10px; border-radius: 12px; background: var(--surface); }
.forms dt { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.forms dd { margin: 2px 0 0; font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 16px; overflow-wrap: anywhere; }
.phrases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.phrases li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; color: var(--ink-2); }
.face.back .row { flex: none; justify-content: center; align-items: center; gap: 8px; }
.face.back .row > * { flex: none; }

/* Review */
.progress { height: 6px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 9px; transition: width .25s; }
.flash { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 22px; border-radius: 24px; background: var(--card); background-image: var(--grain); box-shadow: var(--shadow); min-height: 300px; cursor: pointer; transition: transform .2s ease, box-shadow .2s; touch-action: pan-y; }
.flash.revealed { cursor: default; }
.review-stack { position: relative; }
.review-stack { margin-bottom: 8px; }
.review-stack .deck-back { inset: 8px 8px 2px; }
.review-stack .deck-back.b2 { transform: rotate(-2deg) translateY(5px); } .review-stack .deck-back.b1 { transform: rotate(1.5deg) translateY(3px); }
.review-stack .flash { z-index: 1; }
.flash[data-lean="good"] { box-shadow: 0 0 0 3px var(--good); }
.flash[data-lean="again"] { box-shadow: 0 0 0 3px var(--again); }
.zoom { position: relative; aspect-ratio: 16 / 10; border: 5px solid #fff; border-radius: 4px; background-color: var(--surface-2); background-size: 260%; background-repeat: no-repeat; box-shadow: 0 8px 20px #21201c2e; transform: rotate(-1deg); }
.zoom-dot { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #0003; opacity: .75; }
.prompt { font-family: var(--display); font-weight: 700; font-synthesis: none; font-size: 26px; text-align: center; padding: 10px 0 4px; }
.answer { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border-top: 1px dashed var(--line); padding-top: 12px; animation: fade .2s; }
.answer .term { font-size: 32px; display: flex; align-items: center; gap: 4px; }
.ratings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; border-radius: 14px; border: 0; color: #fff; font-size: 14px; box-shadow: inset 0 -3px 6px #00000033; }
.rate small { font-size: 11.5px; opacity: .9; }
.r1 { background: var(--again); } .r2 { background: var(--hard); } .r3 { background: var(--good); } .r4 { background: var(--easy); }
.done { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding-top: 30px; }
.done-art { position: relative; width: 230px; height: 170px; --wash-img: url(assets/tex/wash-sky.png); }
.done-art .art { left: 34px; top: 22px; width: 160px; height: 112px; transform: rotate(-4deg); }
.done-art .art img { object-position: 30% 50%; }
.done-art .star { position: absolute; width: 46px; height: 46px; left: 162px; top: 6px; z-index: 2; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.done-art .star:nth-of-type(2) { width: 30px; height: 30px; left: 14px; top: 104px; animation-delay: .12s; transform: rotate(-14deg); }
.done-art .star:nth-of-type(3) { width: 24px; height: 24px; left: 196px; top: 120px; animation-delay: .24s; transform: rotate(16deg); }
@keyframes pop { from { scale: 0; opacity: 0; } }
.done .streak { font-size: 15px; color: var(--ink); }

/* Handmade layer: watercolor washes with ragged, pooled edges; torn prints; washi tape; crayon underline. */
.add-art, .empty-art, .done-art, .stats div { isolation: isolate; }
.add-art::before, .empty-art::before, .done-art::before, .stats div::before {
  content: ''; position: absolute; inset: -4px; z-index: -1; background: var(--wash-img) center / 100% 100% no-repeat; pointer-events: none; }
.art { position: absolute; margin: 0; padding: 0; overflow: hidden; background: #efe6d2; box-shadow: 0 10px 22px #21201c47;
  clip-path: polygon(1% 3%, 12% 0, 27% 2.5%, 41% .5%, 58% 3%, 74% 0, 88% 2%, 100% .5%, 98.5% 18%, 100% 36%, 98% 55%, 100% 72%, 98.6% 88%, 100% 99%, 84% 97.5%, 66% 100%, 49% 98%, 33% 100%, 17% 97.6%, 0 99.5%, 1.6% 82%, 0 64%, 2% 46%, 0 28%); }
.art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.04); }
.tape { position: absolute; display: block; width: 76px; height: 22px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #ffffff38 0 3px, transparent 3px 8px), color-mix(in srgb, var(--n-yellow) 78%, transparent);
  clip-path: polygon(0 0, 100% 0, 97% 22%, 100% 44%, 96% 66%, 100% 86%, 97% 100%, 0 100%, 3% 80%, 0 58%, 4% 36%, 0 16%); box-shadow: 0 1px 2px #0000001a; }
.stage::before, .stage::after, .plate-photo::before { content: ''; position: absolute; z-index: 4; width: 78px; height: 22px; pointer-events: none;
  background: repeating-linear-gradient(90deg, #ffffff38 0 3px, transparent 3px 8px), color-mix(in srgb, var(--n-yellow) 80%, transparent);
  clip-path: polygon(0 0, 100% 0, 97% 22%, 100% 44%, 96% 66%, 100% 86%, 97% 100%, 0 100%, 3% 80%, 0 58%, 4% 36%, 0 16%); }
.stage::before, .plate-photo::before { left: -22px; top: 4px; transform: rotate(-38deg); }
.stage::after { right: -22px; bottom: 4px; transform: rotate(-38deg); background: repeating-linear-gradient(90deg, #ffffff38 0 3px, transparent 3px 8px), color-mix(in srgb, var(--n-pink) 80%, transparent); }
.scribble { background: var(--scribble) no-repeat left bottom / 100% .42em; padding-bottom: .16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Settings */
.group { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px #21201c14; }
.group h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 19px; }
.group.danger h3 { color: var(--danger); }
.group .btn.big { background: var(--surface); }
.group .btn.primary.big { background: var(--primary); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; align-items: center; gap: 12px; transform: translate(-50%, 20px); max-width: min(92vw, 460px); padding: 11px 16px; border-radius: 14px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 8px 24px #0000003a; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.show.has-action { pointer-events: auto; padding-right: 8px; }
.toast.bad { background: var(--danger); color: #fff; }
.toast-action { flex: none; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 10px; background: #ffffff24; color: #ffe08a; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .pl i { animation: pulse 1.6s ease-in-out infinite !important; animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }
  .scan-beam { display: none; }
  @keyframes pulse { 50% { opacity: .35; } }
}
