/* «Любимая»: раскладка как в VeloDesk, цвета свои. Контраст пар цветов проверяет test/ui.test.js */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-cyrillic.woff2) format("woff2-variations"), url(/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin.woff2) format("woff2-variations"), url(/fonts/manrope-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: #FBF5F2;
  --surface: #FFFFFF;
  --surface-2: #F6ECE8;
  --ink: #2A1420;
  --ink-2: #5C4350;
  --muted: #7A6370;
  --line: rgba(90, 23, 57, 0.12);
  --control: #9A808D;
  --wine: #5A1739;
  --on-wine: #FFFFFF;
  --rose: #E0507A;
  --on-rose: #FFFFFF;
  --rose-ink: #C23A65;
  --rose-soft: #FCE6EE;
  --lav: #6E5BC0;
  --lav-ink: #5F4DB3;
  --lav-soft: #ECE8FA;
  --ok: #2F8F5B;
  --on-ok: #FFFFFF;
  --warn: #C2410C;
  --warn-soft: #FDECE3;
  --grad-a: #C8406C;
  --grad-b: #93305F;
  --grad: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  --pop: 0 10px 15px -3px rgba(42, 20, 32, .12), 0 4px 6px -4px rgba(42, 20, 32, .10);
  --overlay: rgba(20, 6, 14, .22);
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --tab-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --kb: 0px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #160C12;
    --surface: #23141D;
    --surface-2: #2D1A25;
    --ink: #F7EAF0;
    --ink-2: #DCC6D1;
    --muted: #A88F9B;
    --line: rgba(255, 200, 220, 0.12);
    --control: #856575;
    --wine: #FF8DB0;
    --on-wine: #2A1420;
    --rose: #FF7AA2;
    --on-rose: #2A1420;
    --rose-ink: #FF8DB0;
    --rose-soft: #3A1A28;
    --lav: #B4A6F2;
    --lav-ink: #B4A6F2;
    --lav-soft: #2A2340;
    --ok: #5ECB8E;
    --on-ok: #0E2A1A;
    --warn: #FF9A6B;
    --warn-soft: #3A2017;
    --pop: 0 10px 15px -3px rgba(0, 0, 0, .45), 0 4px 6px -4px rgba(0, 0, 0, .35);
    --overlay: rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body { font-family: var(--sans); font-size: 14px; line-height: 20px; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; -webkit-touch-callout: none; }
input, textarea, select { -webkit-appearance: none; appearance: none; margin: 0; }
/* appearance: none убирает стрелку у списка, рисуем свою цветом текста */
select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 15px center, right 10px center; background-size: 5px 5px; background-repeat: no-repeat; text-overflow: ellipsis; }
.select { padding-right: 30px; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
[hidden] { display: none !important; }

.boot { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
.boot-heart { font-size: 44px; color: var(--rose); animation: beat 1s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ---------- каркас ---------- */
.screen { min-height: 100vh; min-height: 100dvh; padding: calc(var(--safe-t) + 8px) 16px calc(var(--tab-h) + var(--safe-b) + 96px); max-width: 640px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 16px; }
.topbar > div { min-width: 0; }
.topbar .eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); text-transform: lowercase; }
.topbar h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.icon-btn { position: relative; width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; }
.icon-btn::after { content: ""; position: absolute; inset: -2px; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:active { transform: translateY(1px); }

.section { margin-top: 24px; }
.section-head { display: flex; align-items: baseline; gap: 4px; margin: 0 2px 8px; }
.section-head h2, .section-head .count { margin: 0; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: var(--muted); }
.section-head .count::before { content: "· "; }
.section-head.warn h2, .section-head.warn .count { color: var(--warn); }

.card { background: var(--surface); border-radius: 14px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.list > * + * { border-top: 1px solid var(--line); }
.rows { display: grid; gap: 8px; }

/* ---------- быстрый ввод ---------- */
.quick { margin-bottom: 12px; }
.quick-line { display: flex; gap: 8px; }
.quick-line .input { flex: 1; }
.quick-add { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--rose); color: var(--on-rose); display: grid; place-items: center; }
.quick-add svg { width: 20px; height: 20px; }
.quick-add:disabled { opacity: .35; }
.quick-card { margin-top: 8px; }
.quick-prev .main, .quick-prev .title, .quick-prev .meta { display: block; }
.quick-prev .meta { display: flex; }
.quick-prev .title.empty-t { color: var(--muted); }

/* ---------- строка напоминания ---------- */
.row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; transition: background .15s; }
.row:active { background: var(--surface-2); }
.row.late { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn-soft) 60%, var(--surface)); }
.row .main { flex: 1; min-width: 0; }
.row .title { font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.row .meta { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; line-height: 20px; color: var(--muted); }
.row.done .title { text-decoration: line-through; color: var(--muted); }
.when { height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.when.late { background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.when.today { background: var(--rose-soft); color: var(--wine); }
.check { flex: none; width: 44px; height: 44px; margin: -12px -6px -12px -12px; display: grid; place-items: center; }
.check .ring { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--control); display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s; }
.check svg { width: 12px; height: 12px; }
.check.on .ring { background: var(--ok); border-color: var(--ok); color: var(--on-ok); }
.check.pop .ring { animation: pop .3s ease; }
/* будущий раз серии в календаре: отметить нельзя */
.check.off .ring { border-style: dashed; opacity: .6; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.lead { flex: none; width: 20px; margin-right: 6px; text-align: center; font-size: 16px; line-height: 20px; }
.chev { flex: none; align-self: center; color: var(--muted); }
.chev svg { width: 16px; height: 16px; }

/* ---------- карточки на «Сегодня» ---------- */
.hero { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 12px 14px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--rose) 45%, transparent); background: color-mix(in srgb, var(--rose-soft) 55%, var(--surface)); text-align: left; }
.hero.lav { border-color: color-mix(in srgb, var(--lav) 45%, transparent); background: color-mix(in srgb, var(--lav-soft) 60%, var(--surface)); }
.hero-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--rose-soft); }
.hero.lav .hero-ic { background: var(--lav-soft); }
.hero-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hero .k { font-size: 12px; font-weight: 500; color: var(--muted); }
.hero .t { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.hero .s { font-size: 12px; color: var(--muted); }
.hero:active { transform: translateY(1px); }

.chip-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); }
.chip-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); flex: none; }

.empty { padding: 24px 16px; text-align: center; font-size: 14px; color: var(--muted); }
.card > .empty { padding: 16px; }
.empty .big { font-size: 36px; line-height: 1; margin-bottom: 10px; }
.empty p { margin: 4px 0 0; }
.empty b { color: var(--ink); }
.starter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.starter button { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink); }
.starter button:active { background: var(--surface-2); }

.more { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; text-align: center; }
.more:active { background: var(--surface-2); }

/* ---------- календарь ---------- */
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-head .m { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.cal-head .m svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.cal-head .m span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-head .today-btn { height: 40px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.cal-head .today-btn:active { background: var(--surface-2); }
.cal { padding: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0 6px; text-transform: uppercase; }
.cal-day { height: 46px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cal-day.we { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.cal-day.past { color: var(--muted); }
.cal-day.out { opacity: .4; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--rose); color: var(--rose-ink); font-weight: 700; }
.cal-day.sel { background: var(--grad); color: #fff; opacity: 1; font-weight: 700; box-shadow: none; }
.cal-day .dots { display: flex; gap: 3px; height: 5px; }
.cal-day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); display: block; }
.cal-day .dots i.p { background: var(--lav); }
.cal-day.sel .dots i { background: #fff; }
.cal-legend { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--muted); padding: 8px 0 2px; }
.cal-legend span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); margin-right: 6px; vertical-align: 1px; }
.cal-legend span.p::before { background: var(--lav); }

/* ---------- презентации ---------- */
.pres-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { height: 20px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.me { background: var(--rose-soft); color: var(--wine); }
.tag.wife { background: var(--lav-soft); color: var(--lav-ink); }
.tag.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ink-2); }
.quote { margin-top: 6px; font-size: 12px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }

.add-inline { display: flex; gap: 8px; padding: 10px 12px; }
.add-inline input, .add-inline select { height: 44px; border: 1px solid var(--control); background-color: var(--surface); border-radius: 10px; padding: 0 10px; font-size: 16px; min-width: 0; }
.add-inline input { flex: 1; }
.add-inline select { flex: none; max-width: 40%; color: var(--ink-2); padding-right: 28px; }
.add-inline button { height: 44px; flex: none; padding: 0 14px; border-radius: 10px; background: var(--wine); color: var(--on-wine); font-weight: 600; }

.mini-row { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 2px 4px 2px 12px; font-size: 14px; }
.mini-row .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 8px 0; }
.mini-row .act { flex: none; min-height: 44px; padding: 0 8px; font-size: 13px; font-weight: 600; color: var(--rose-ink); }
.mini-row .act.warn { color: var(--warn); }
.mini-row .del { width: 44px; height: 44px; flex: none; display: grid; place-items: center; color: var(--muted); border-radius: 10px; }
.mini-row .del svg { width: 16px; height: 16px; }
.mini-row .tag { margin-left: 8px; vertical-align: 1px; }

/* ---------- нижняя панель ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 6px 8px calc(var(--safe-b) + 6px); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tab { flex: 1; max-width: 140px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--muted); transition: color .15s; }
.tab svg { width: 22px; height: 22px; }
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab.on { color: var(--wine); }
.fab { position: fixed; z-index: 21; right: max(16px, calc(50% - 304px)); bottom: calc(var(--tab-h) + var(--safe-b) + 16px); width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--pop); }
.fab svg { width: 22px; height: 22px; }
.fab:active { transform: scale(.96); }

/* ---------- лист ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: var(--overlay); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .15s; }
.sheet-backdrop.in { opacity: 1; }
/* уходящий фон не съедает нажатие по экрану */
.sheet-backdrop:not(.in) { pointer-events: none; }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: var(--kb); max-width: 640px; margin: 0 auto; max-height: calc(100vh - var(--safe-t) - 16px); max-height: calc(var(--vvh, 100dvh) - var(--safe-t) - 16px); display: flex; flex-direction: column; background: var(--surface); border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: var(--pop); opacity: 0; transform: translateY(40px); transition: transform .2s ease-in-out, opacity .2s; }
.sheet.in { opacity: 1; transform: none; }
.sheet.closing { pointer-events: none; }
.sheet-head { position: relative; flex: none; padding: 16px 56px 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.sheet-head .x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.sheet-head .x svg { width: 18px; height: 18px; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px; }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }
.stack > * { min-width: 0; }
.stack:empty { display: none; }
.sheet-foot { flex: none; display: grid; gap: 8px; padding: 12px 16px calc(var(--safe-b) + 12px); border-top: 1px solid var(--line); }
html.kb .sheet-foot { padding-bottom: 12px; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > .lbl { font-size: 13px; font-weight: 500; color: var(--ink); }
.input, .textarea, .select { width: 100%; min-width: 0; height: 44px; border: 1px solid var(--control); background-color: var(--surface); border-radius: 10px; padding: 0 12px; font-size: 16px; }
.textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: 22px; resize: none; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 35%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
input[type="date"].input, input[type="time"].input { min-width: 0; }
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.two > * { min-width: 0; }
.two.even { grid-template-columns: 1fr 1fr; }
.field > .two + .chips { margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; transition: background .15s; }
.chips button.on { border-color: var(--wine); background: var(--rose-soft); box-shadow: 0 0 0 1px var(--wine); color: var(--ink); }
.seg { display: flex; height: 44px; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface-2); }
.seg button { flex: 1; min-width: 0; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }

.btn { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; }
.btn.soft { border: 1px solid var(--line); background: var(--surface); font-weight: 500; }
.btn.danger { background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.btn:disabled { opacity: .55; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.actions-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.actions-top button { min-height: 58px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; text-align: center; }
.actions-top button:active { background: var(--surface-2); }
.actions-top button .e { font-size: 17px; line-height: 22px; }
.hint { font-size: 12px; color: var(--muted); margin: 0 2px; }
.note-box { background: var(--rose-soft); color: var(--wine); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.note-box.lav { background: var(--lav-soft); color: var(--lav-ink); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px; font-size: 14px; }
.kv .v { color: var(--muted); text-align: right; }
.log-row { padding: 10px 12px; font-size: 13px; overflow-wrap: anywhere; }
.log-row .w { color: var(--muted); font-size: 12px; }
.pad { padding: 10px 12px; }

/* ---------- вход ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--safe-t) + 32px) 24px calc(var(--safe-b) + 32px); max-width: 420px; margin: 0 auto; text-align: center; }
.login .logo { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 36px; color: #FF8DB0; background: linear-gradient(135deg, #3A0E26, #7A224E); }
.login h1 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -.025em; margin: 0 0 6px; }
.login p { color: var(--muted); margin: 0 0 20px; }
.login .input { text-align: center; margin-bottom: 10px; }
.err { color: var(--warn); font-size: 13px; min-height: 20px; margin-top: 8px; }

.install { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); }
.install b { color: var(--ink); }
.install .link { color: var(--rose-ink); font-weight: 600; min-height: 44px; margin: -12px 0; }

/* ---------- всплывающее сообщение ---------- */
#toast { position: fixed; z-index: 60; top: calc(var(--safe-t) + 8px); left: 12px; right: 12px; max-width: 616px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--pop); font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.in { opacity: 1; transform: none; pointer-events: auto; }
#toast span { min-width: 0; overflow-wrap: anywhere; }
#toast button { flex: none; min-height: 44px; margin: -6px -6px -6px 0; padding: 0 6px; color: var(--rose-ink); font-weight: 700; white-space: nowrap; }

@media (hover: hover) {
  .row:hover, .more:hover, .chips button:hover, .actions-top button:hover { background: var(--surface-2); }
  .row.late:hover { background: var(--warn-soft); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
