/* main — app shell: rail, day header, status bar, shared controls, banners, gate.
 * Board internals live in board.css; pages in workspace.css; dialogs in modals.css.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../lib/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-window);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
input, textarea { user-select: text; }
html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.85);
  cursor: pointer;
}
a { color: var(--accent-2); text-decoration: none; }

.hidden { display: none !important; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-3); }
.app-icon-sm { width: 16px; height: 16px; }
.app-icon-md { width: 20px; height: 20px; }

::-webkit-scrollbar { width: 10px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: var(--r-pill);
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: content-box; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--r-sm); }

/* ── SHELL ──────────────────────────────────────────────────── */
#shell { display: flex; flex-direction: column; height: 100vh; background: var(--bg-canvas); }
#app { flex: 1; display: flex; min-height: 0; }
#main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg-canvas); }
#panes { flex: 1; display: flex; min-height: 0; }
#main.page-mode #panes { display: none; }
/* · the rail sits under the title bar, so its own logo block is gone */
#rail { padding-top: 8px; }

/* ── NAV RAIL ───────────────────────────────────────────────── */
#rail {
  width: var(--rail-w);
  flex: 0 0 var(--rail-w);
  background: var(--bg-rail);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 8px;
  gap: 3px;
}
.rail-grow { flex: 1; }
.rail-sep { width: 26px; border: 0; border-top: 1px solid var(--line); margin: 7px 0; }

.rnav {
  width: 44px; height: 40px;
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  color: var(--text-3);
  position: relative;
  transition: background var(--t-fast), color var(--t-fast);
}
.rnav svg { width: 19px; height: 19px; }
.rnav:hover { background: var(--bg-hover); color: var(--text); }
.rnav.is-active { background: var(--bg-active); color: var(--accent-2); }
.rnav.is-active::before {
  content: ""; position: absolute; left: -9px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-2);
}
.rnav .rlbl {
  position: absolute; left: 52px;
  background: var(--bg-raised); border: 1px solid var(--line-2);
  padding: 4px 9px; border-radius: var(--r-sm);
  font-size: var(--font-size-xs); white-space: nowrap; color: var(--text);
  box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transition: opacity var(--t-fast);
  z-index: 30;
}
.rnav:hover .rlbl { opacity: 1; }
.rnav.has-alert::after {
  content: ""; position: absolute; top: 7px; right: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warn); box-shadow: 0 0 0 2px var(--bg-rail);
}

/* ── TITLE BAR / DAY HEADER ─────────────────────────────────────
 * One row, full window width. The OS paints the real caption buttons over its right
 * end (Windows/Linux) or its left end (macOS traffic lights), so the whole strip is a
 * drag region and every control inside it opts back out with `no-drag`.
 */
#dayhead {
  flex: 0 0 var(--titlebar-h, 48px);
  height: var(--titlebar-h, 48px);
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
  -webkit-app-region: drag;
  user-select: none;
}
/* · anything clickable has to opt out, or the OS eats the click as a window drag */
#dayhead button,
#dayhead input,
#dayhead select,
#dayhead label,
#dayhead .seg,
#dayhead .popmenu,
#dayhead #day-menu { -webkit-app-region: no-drag; }

#app-identity {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--font-size-sm); font-weight: 650; color: var(--text-2);
  letter-spacing: -0.005em; flex: 0 0 auto; padding-right: 4px;
}
/* · macOS puts its traffic lights at the top-left, so the identity moves clear of them */
html[data-platform="darwin"] #app-identity { margin-left: 68px; }

#dayhead-board { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
#main.page-mode ~ * #dayhead-board,
#dayhead.page-mode #dayhead-board { display: none; }
#dayhead.page-mode #dayhead-page { display: flex; }
#dayhead-page {
  display: none; align-items: center; flex: 1; min-width: 0;
  font-size: var(--font-size-md); font-weight: 640; letter-spacing: -0.012em; color: var(--text);
}

/* · the OS draws its buttons here; nothing of ours may sit under them.
 *   env(titlebar-area-width) is the usable width Electron reports back. */
#caption-gap {
  flex: 0 0 auto;
  /* · env() is only populated once the overlay is actually active. The fallback used to
   *   compute to 0, which slid the ⋯ button underneath the OS close button. A hard
   *   minimum guarantees clearance even before/if env() ever resolves. */
  /* · 100% of the header, not 100vw: a maximised window on Windows is inflated by the
   *   invisible resize border, so viewport units and the client box disagree there */
  width: calc(100% - env(titlebar-area-width, 100%));
  min-width: 140px;
  height: 100%;
  background: none;
  border: 0;
  pointer-events: none;
}
html[data-platform="darwin"] #caption-gap { width: 0; min-width: 0; }
/* · a browser tab has no OS caption buttons to clear, and no draggable titlebar */
html[data-platform="web"] #caption-gap { width: 0; min-width: 0; }
html[data-platform="web"] #dayhead { -webkit-app-region: none; user-select: auto; }

/* · defensive: an empty element in the bar must never paint. A popmenu that loses its
 *   .hidden class would otherwise render as a bare light rectangle in the header. */
#dayhead span:empty:not(.meter):not(.sb-dot) { background: none; border: 0; box-shadow: none; }
#dayhead .popmenu:empty { display: none; }

/* · nothing in the bar may wrap: it is a fixed-height strip, so overflow has to be
 *   solved by dropping items in priority order, not by growing to a second line */
#dayhead > *,
#dayhead-board > * { flex-shrink: 0; white-space: nowrap; }
#dayhead .dh-date,
.seg button { white-space: nowrap; }
#task-filter-wrap { flex-shrink: 1; min-width: 120px; }

/* Progressive collapse. Each step drops the least useful thing at that width. */
@media (max-width: 1500px) {
  #task-filter-wrap { width: 168px; }
}
@media (max-width: 1400px) {
  .dh-sub { display: none; }
}
@media (max-width: 1280px) {
  /* layout switcher moves to the ⋯ menu */
  #layout-seg { display: none; }
  #app-identity span:not(.app-icon-sm) { display: none; }
  #dayhead { gap: 8px; padding: 0 10px; }
}
@media (max-width: 1120px) {
  /* grouping moves to the ⋯ menu (View ▸ Group by is still in the native menu) */
  #group-seg { display: none; }
  #task-filter-wrap { width: 140px; }
}
@media (max-width: 980px) {
  #btn-add-global span { display: none; }
  #btn-add-global { padding: 0 9px; }
}
#daypick { display: flex; align-items: center; gap: 1px; position: relative; }
.dh-arrow {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-3);
  transition: background var(--t-fast), color var(--t-fast);
}
.dh-arrow:hover:not(:disabled) { background: var(--bg-hover); color: var(--text); }
.dh-arrow:disabled { opacity: 0.28; cursor: default; }
.dh-arrow svg { width: 14px; height: 14px; }
.dh-date {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: var(--r-md);
  font-weight: 640; font-size: var(--font-size-md); letter-spacing: -0.012em;
  transition: background var(--t-fast);
}
.dh-date:hover { background: var(--bg-hover); }
.dh-date > svg { width: 11px; height: 11px; color: var(--text-3); }
.dh-sub { font-weight: 500; color: var(--text-3); font-size: var(--font-size-xs); margin-left: 2px; }
.dh-sub.past { color: var(--warn); }

#day-menu {
  position: absolute; top: 34px; left: 0; z-index: 40;
  min-width: 250px; max-height: 340px; overflow: auto;
  background: var(--bg-raised); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3); padding: 5px;
}
.day-opt {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: var(--r-sm);
  font-size: var(--font-size-sm); color: var(--text-2); text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
}
.day-opt:hover { background: var(--bg-hover); color: var(--text); }
.day-opt.is-active { background: var(--bg-active); color: var(--accent-2); }
.day-opt .d-date { flex: 1; }
.day-opt .d-meta { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.day-opt .d-flag { font-size: 10.5px; font-weight: 650; }
.day-opt .d-flag.sent { color: var(--ok); }
.day-opt .d-flag.na { color: var(--warn); }


/* segmented controls */
.seg {
  display: flex; padding: 2px;
  background: var(--bg-input); border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.seg button {
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: var(--font-size-sm); font-weight: 550; color: var(--text-3);
  white-space: nowrap; transition: background var(--t-fast), color var(--t-fast);
  display: flex; align-items: center; gap: 5px;
}
.seg button svg { width: 14px; height: 14px; }
.seg button:hover { color: var(--text); }
.seg button.is-active { background: var(--accent); color: var(--accent-ink); }

/* search */
.searchbox {
  display: flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 9px;
  background: var(--bg-input); border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
#task-filter-wrap { margin-left: auto; width: 196px; flex: 0 0 auto; }
.searchbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.searchbox > svg { width: 13px; height: 13px; color: var(--text-3); flex: 0 0 13px; }
.searchbox input {
  flex: 1; min-width: 0; border: 0; background: none; outline: 0;
  font-size: var(--font-size-sm);
}
.searchbox input::placeholder { color: var(--text-3); }
.searchbox input::-webkit-search-cancel-button { display: none; }
#task-filter-clear {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  place-items: center; color: var(--text-3); background: var(--bg-hover);
}
#task-filter-wrap.has-value #task-filter-clear { display: grid; }
#task-filter-clear svg { width: 9px; height: 9px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 13px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font-size: var(--font-size-sm); font-weight: 600; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn svg { width: 14px; height: 14px; flex: 0 0 14px; }
.btn-pri { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 8px var(--accent-glow); }
.btn-pri:hover:not(:disabled) { background: var(--accent-2); }
.btn-ghost { color: var(--text-2); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-hover); color: var(--text); }
.btn-quiet { color: var(--text-2); }
.btn-quiet:hover:not(:disabled) { background: var(--bg-hover); color: var(--text); }
.btn-danger { color: var(--danger); border-color: rgba(255, 96, 96, 0.3); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 96, 96, 0.1); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-sm { height: 26px; padding: 0 10px; }
/* · legacy aliases: modals.css and older dialog markup still emit these */
.btn-primary,
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 13px; border: 1px solid transparent; border-radius: var(--r-md);
  font-size: var(--font-size-sm); font-weight: 600; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); }
.btn-secondary { color: var(--text-2); border-color: var(--line-2); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-hover); color: var(--text); }
.btn-primary:disabled, .btn-secondary:disabled { opacity: 0.45; cursor: not-allowed; }

.iconbtn {
  width: 30px; height: 30px; border-radius: var(--r-md);
  display: grid; place-items: center; color: var(--text-3);
  transition: background var(--t-fast), color var(--t-fast);
}
.iconbtn:hover { background: var(--bg-hover); color: var(--text); }
.iconbtn svg { width: 15px; height: 15px; }

#btn-add-global { position: relative; }
/* · sits inside the button: an absolutely-positioned badge hanging off the top-right
 *   overlapped the OS caption strip on a short header */
.draft-badge {
  margin-left: 2px;
  padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--warn); color: #1a1040;
  font-size: 9.5px; font-weight: 750; letter-spacing: 0.03em;
}

/* popup menu */
.popmenu {
  position: absolute; z-index: 60; min-width: 218px; padding: 5px;
  background: var(--bg-raised); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-3);
}
.popmenu button {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: var(--r-sm);
  font-size: var(--font-size-sm); color: var(--text-2); text-align: left;
  transition: background var(--t-fast), color var(--t-fast);
}
.popmenu button:hover { background: var(--bg-hover); color: var(--text); }
.popmenu button.danger { color: var(--danger); }
.popmenu button.danger:hover { background: rgba(255, 96, 96, 0.1); }
.popmenu button svg { width: 14px; height: 14px; flex: 0 0 14px; }
.popmenu button kbd {
  margin-left: auto; font-family: var(--font-mono); font-size: 10px;
  color: var(--text-3); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px;
}
.popmenu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }

/* ── STATUS BAR ─────────────────────────────────────────────── */
#statusbar {
  flex: 0 0 26px; height: 26px;
  background: var(--bg-chrome); border-top: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 4px;
  font-size: var(--font-size-xs); color: var(--text-3);
}
.sb {
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px; height: 20px; border-radius: var(--r-sm);
  color: inherit; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
button.sb:hover { background: var(--bg-hover); color: var(--text-2); }
.sb b { color: var(--text-2); font-weight: 600; }
.sb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); flex: 0 0 6px; }
#sb-slack.is-on .sb-dot { background: var(--ok); }
#sb-slack.is-off .sb-dot { background: var(--danger); }
.sb-sep { width: 1px; height: 12px; background: var(--line); margin: 0 3px; }
.sb-grow { flex: 1; }
#footer-error { display: none; color: var(--danger); }
#footer-error.visible { display: flex; }
#footer-error svg { width: 12px; height: 12px; flex: 0 0 12px; }

/* ── BATCH BAR ──────────────────────────────────────────────── */
#batchbar {
  flex: 0 0 40px; height: 40px;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  font-size: var(--font-size-sm);
}
#batchbar .bb-n { font-weight: 700; }
#batchbar .bb-note { opacity: 0.82; }
#batchbar .bb-grow { flex: 1; }
#batchbar button {
  height: 26px; padding: 0 11px; border-radius: var(--r-sm);
  font-size: var(--font-size-sm); font-weight: 600;
  background: rgba(255, 255, 255, 0.16); color: #fff;
  transition: background var(--t-fast);
}
#batchbar button:hover { background: rgba(255, 255, 255, 0.28); }
#batchbar select {
  height: 26px; border-radius: var(--r-sm); padding: 0 8px;
  background: rgba(255, 255, 255, 0.16); color: #fff;
  border: 0; font-size: var(--font-size-sm); font-weight: 600; cursor: pointer;
}
#batchbar select option { color: #14102b; }

/* ── BANNERS ────────────────────────────────────────────────── */
#error-banner {
  display: none; align-items: center; gap: 9px;
  padding: 8px 14px;
  background: rgba(255, 96, 96, 0.12);
  border-bottom: 1px solid rgba(255, 96, 96, 0.3);
  color: var(--danger); font-size: var(--font-size-sm);
  flex-shrink: 0;
}
#error-banner.visible { display: flex; }
#error-banner > svg { width: 15px; height: 15px; flex: 0 0 15px; }
#error-banner .dismiss { margin-left: auto; color: inherit; opacity: 0.65; display: flex; align-items: center; }
#error-banner .dismiss:hover { opacity: 1; }
#error-banner .dismiss svg { width: 13px; height: 13px; }

.update-banner {
  display: none; align-items: center; gap: 10px;
  padding: 7px 16px; flex-shrink: 0;
  background: var(--bg-active);
  border-bottom: 1px solid var(--line-2);
  color: var(--text); font-size: var(--font-size-sm);
}
.update-banner.visible { display: flex; }
.update-banner svg { width: 15px; height: 15px; flex-shrink: 0; }
.update-banner-text { flex: 1; }
.update-banner-version { color: var(--accent-2); font-weight: 700; }
.update-banner-btn {
  padding: 4px 13px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--font-size-xs); font-weight: 650; white-space: nowrap;
  transition: background var(--t-fast);
}
.update-banner-btn:hover { background: var(--accent-2); }
.update-banner-dismiss { color: var(--text-3); display: flex; align-items: center; padding: 3px; }
.update-banner-dismiss:hover { color: var(--text); }
.update-banner-dismiss svg { width: 13px; height: 13px; }

.history-view-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; flex-shrink: 0;
  background: rgba(255, 184, 48, 0.1);
  border-bottom: 1px solid rgba(255, 184, 48, 0.28);
  color: var(--warn); font-size: var(--font-size-sm);
}
.history-view-label { flex: 1; }
.history-view-label strong { color: var(--text); }
.history-view-back { white-space: nowrap; }

/* ── HISTORY ROWS (day menu + workspace history) ────────────── */
.history-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 9px; border-radius: var(--r-sm);
  font-size: var(--font-size-sm); color: var(--text-2);
  transition: background var(--t-fast);
}
.history-row:hover { background: var(--bg-hover); }
.history-row .h-date { flex: 1; }
.history-row .h-count { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.history-row .h-check { color: var(--ok); display: inline-flex; }
.history-row .h-check svg { width: 12px; height: 12px; }
.history-row .h-na { color: var(--warn); font-size: 10.5px; font-weight: 650; }
.history-row .h-archived { color: var(--text-3); font-size: 10.5px; font-style: italic; }
.h-right { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-shrink: 0; }
.h-view-btn {
  font-size: 10px; padding: 2px 7px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); color: var(--text-3);
  opacity: 0.45; transition: opacity var(--t-fast), color var(--t-fast);
}
.history-row:hover .h-view-btn,
.history-row:focus-within .h-view-btn,
.h-view-btn:focus-visible { opacity: 1; }
.h-view-btn:hover { color: var(--accent-2); border-color: var(--accent); }

/* ── AUTH GATE ──────────────────────────────────────────────── */
#auth-gate {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg-window);
  display: grid; place-items: center;
}
#auth-gate-card { width: 340px; text-align: center; padding: 34px 28px; }
#auth-gate-logo { width: 52px; height: 52px; margin: 0 auto 16px; display: block; border-radius: var(--r-xl); }
#auth-gate-title { font-size: 19px; font-weight: 680; letter-spacing: -0.02em; }
#auth-gate-sub { font-size: var(--font-size-sm); color: var(--text-3); margin: 6px 0 20px; }
#btn-slack-signin { width: 100%; height: 38px; font-size: var(--font-size-md); }
#auth-gate-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 10px; }
#auth-gate-actions.hidden { display: none; }
#auth-gate-status { font-size: var(--font-size-sm); color: var(--text-2); margin: 0; font-weight: 500; }
.auth-gate-buttons { display: flex; gap: 8px; width: 100%; }
.auth-gate-buttons .btn { flex: 1; height: 38px; font-size: var(--font-size-sm); }
#auth-gate-error { margin-top: 12px; font-size: var(--font-size-sm); color: var(--danger); }
#auth-gate-hint { margin-top: 14px; font-size: var(--font-size-xs); color: var(--text-3); line-height: 1.6; }

/* ── OVERLAYS ───────────────────────────────────────────────── */
#loading-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: var(--scrim);
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
#loading-overlay.visible { display: flex; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid var(--line-2); border-top-color: var(--accent);
  animation: spin 700ms linear infinite;
}
.spinner-label { font-size: var(--font-size-sm); color: var(--text-2); }
@keyframes spin { to { transform: rotate(360deg); } }

#toast-container {
  position: fixed; bottom: 46px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1100; /* · above the modal overlay so undo stays reachable */
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 15px; max-width: 420px;
  background: var(--bg-raised); border: 1px solid var(--line-2);
  border-radius: var(--r-md); box-shadow: var(--shadow-3);
  color: var(--text); font-size: var(--font-size-sm);
  pointer-events: auto;
  animation: slideUpFade 220ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.toast.toast-leaving { animation: toastOut 180ms ease forwards; }
.toast-action {
  color: var(--accent-2); font-weight: 700; white-space: nowrap;
  padding: 2px 6px; border-radius: var(--r-sm);
}
.toast-action:hover { background: var(--accent-dim); }
.toast-dismiss { color: var(--text-3); display: flex; align-items: center; padding: 2px; }
.toast-dismiss:hover { color: var(--text); }
.toast-dismiss svg { width: 12px; height: 12px; }

@keyframes slideUpFade { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }

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