/* Revix Auth Console — theme lifted from E:\GitHub\revix (App.css / ConsolePage.css) */

:root {
  --primary: #0d9488;
  --primary-light: #14b8a6;
  --primary-dark: #0f766e;
  --primary-bg: rgba(13, 148, 136, 0.08);

  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f4f4f5;
  --bg-dark: #18181b;
  --bg-card: #ffffff;

  --border: #e4e4e7;
  --border-light: #f4f4f5;

  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --text-inverse: #fafafa;

  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;

  --nav-h: 56px;
  --sidebar-w: 216px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
code {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--bg-tertiary);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
}

button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Lock screen ---------- */
.lock {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lock-card {
  width: 100%; max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center;
}
.lock-card h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; }
.lock-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.lock-row { display: flex; gap: 8px; width: 100%; margin-bottom: 10px; }
.lock-row .input { flex: 1; }
.lock-err { font-size: 13px; color: var(--error); background: var(--error-bg); border-radius: var(--radius-md); padding: 8px 12px; width: 100%; margin-top: 10px; }
.logo-mark-lg { width: 52px; height: 52px; border-radius: var(--radius-lg); }

/* ---------- Top nav ---------- */
.modern-nav {
  height: var(--nav-h);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 40;
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.nav-divider { width: 1px; height: 24px; background: var(--border); }
.nav-context { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 12px; }

.session-status {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 12px;
}
.status-indicator { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.session-status.running .status-indicator { background: var(--primary); animation: pulse 1.2s ease-in-out infinite; }
.session-status.ok .status-indicator { background: var(--success); }
.session-status.err .status-indicator { background: var(--error); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Shell + sidebar ---------- */
/* Fixed to the viewport: the sidebar never scrolls (Settings + version stay pinned);
   only the right content pane scrolls. */
.console-body { display: flex; height: calc(100vh - var(--nav-h)); overflow: hidden; }
.console-sidebar {
  width: var(--sidebar-w);
  height: 100%;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  padding: 14px 10px 14px;
  display: flex; flex-direction: column; gap: 2px;
  overflow: hidden;
  transition: width var(--transition-base);
}
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px 10px; min-height: 30px; }
.side-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.side-toggle {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--text-muted);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition-fast);
}
.side-toggle:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.side-toggle svg { transition: transform var(--transition-base); }

/* Collapsed: icons only */
.console-sidebar.collapsed { width: 64px; padding-left: 8px; padding-right: 8px; }
.console-sidebar.collapsed .side-label,
.console-sidebar.collapsed .soon-chip,
.console-sidebar.collapsed .side-version,
.console-sidebar.collapsed .side-item > span { display: none; }
.console-sidebar.collapsed .side-head { justify-content: center; padding: 0 0 8px; }
.console-sidebar.collapsed .side-toggle svg { transform: rotate(180deg); }
.console-sidebar.collapsed .side-item { justify-content: center; padding-left: 0; padding-right: 0; gap: 0; }
.side-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 40px;
  padding: 9px 10px;
  border: none; background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px; font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}
.side-item svg { flex-shrink: 0; }
.side-item span:first-of-type { flex: 1; }
.side-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.side-item.active { background: var(--primary-bg); color: var(--primary-dark); font-weight: 600; }
.soon-chip {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--warning);
  background: var(--warning-bg);
  border-radius: var(--radius-full);
  padding: 2px 8px;
}
.side-spacer { flex: 1; }
.side-version { font-size: 11px; color: var(--text-muted); padding: 10px 10px 0; border-top: 1px solid var(--border-light); margin-top: 8px; }

.console-content { flex: 1; height: 100%; overflow-y: auto; padding: 28px 36px 64px; max-width: 1280px; min-width: 0; }

/* ---------- Pages ---------- */
.view { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-head { margin-bottom: 22px; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head-actions { display: flex; gap: 8px; flex-shrink: 0; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.page-sub { margin-top: 5px; font-size: 13.5px; color: var(--text-secondary); max-width: 640px; line-height: 1.5; }

/* Segmented tabs */
.segmented { display: inline-flex; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 3px; gap: 2px; }
.seg-btn {
  border: none; background: transparent;
  padding: 7px 16px; min-height: 34px;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.seg-btn:hover { color: var(--text-primary); }
.seg-btn.active { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- Run layout ---------- */
.run-grid { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .run-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field-hint { display: block; font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.input, select.input {
  width: 100%;
  padding: 10px 12px;
  min-height: 42px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.input:focus, select.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.launch-actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; min-height: 40px;
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:not(:disabled):active { transform: scale(0.98); }
.btn-sm { padding: 6px 10px; min-height: 30px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:not(:disabled):hover { filter: brightness(1.05); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-danger-ghost { background: transparent; color: var(--error); border-color: var(--error); }
.btn-danger-ghost:hover { background: var(--error-bg); }

/* ---------- Stepper ---------- */
.stepper { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-light); }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.stepper li .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); flex-shrink: 0; transition: all var(--transition-base); }
.stepper li.active { color: var(--text-primary); font-weight: 600; }
.stepper li.active .dot { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-bg); }
.stepper li.done { color: var(--text-secondary); }
.stepper li.done .dot { background: var(--success); }

/* ---------- Live activity feed ---------- */
.live-card { min-height: 420px; display: flex; flex-direction: column; }
.feed { flex: 1; overflow-y: auto; max-height: 56vh; padding: 2px; display: flex; flex-direction: column; gap: 2px; }
.feed-empty { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; padding: 12px 6px; }
.feed-item { display: flex; gap: 10px; align-items: flex-start; padding: 5px 8px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.feed-item .fi-icon { flex-shrink: 0; width: 18px; display: flex; justify-content: center; margin-top: 1px; color: var(--text-muted); }
.feed-item.milestone { background: var(--primary-bg); color: var(--primary-dark); font-weight: 600; margin-top: 8px; }
.feed-item.milestone .fi-icon { color: var(--primary); }
.feed-item.shot-item { color: var(--text-primary); }
.feed-item.shot-item .fi-icon { color: var(--info); }
.feed-item.error { background: var(--error-bg); color: #b91c1c; }
.feed-item.ok { color: #15803d; }
.feed-item .mono { font-size: 12px; }

.log {
  background: var(--bg-dark);
  color: #e4e4e7;
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.65;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 56vh;
  flex: 1;
}

/* Uniform screenshot grid — every thumbnail is the exact same size and aligned. */
.shots { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 12px; margin-top: 14px; }
.shots-live:empty { display: none; }
.shots .shot-wrap { display: flex; flex-direction: column; gap: 4px; width: 150px; }
.shots img {
  display: block;
  width: 150px; height: 94px;
  object-fit: cover; object-position: top center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: zoom-in;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--bg-tertiary);
}
.shots img:hover { transform: scale(1.04); box-shadow: var(--shadow-md); }
.shots .shot-cap { font-size: 10.5px; color: var(--text-muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Result / markdown ---------- */
.result-card { margin-top: 18px; }
.result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.result-meta { font-size: 12px; color: var(--text-muted); }
.result-actions { margin-left: auto; display: flex; gap: 6px; }
#result-raw { margin-top: 14px; max-height: 420px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 12px; font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary); color: var(--text-secondary);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--success-bg); color: #15803d; }
.badge.warn { background: var(--warning-bg); color: #b45309; }
.badge.err { background: var(--error-bg); color: #b91c1c; }
.badge.info { background: var(--info-bg); color: #1d4ed8; }

.md { font-size: 13.5px; line-height: 1.65; color: var(--text-secondary); }
.md h1 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin: 4px 0 8px; letter-spacing: -0.01em; }
.md h2 {
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin: 16px 0 8px;
}
.md p { margin: 6px 0; }
.md ul { list-style: none; margin: 4px 0; }
.md li { padding: 5px 2px 5px 12px; border-bottom: 1px solid var(--border-light); }
.md li:last-child { border-bottom: none; }
.md strong { color: var(--text-primary); font-weight: 600; }
.md blockquote {
  border-left: 3px solid var(--warning);
  background: var(--warning-bg);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin: 10px 0;
  color: #92400e;
}
.md .md-code { background: var(--bg-dark); color: #fca5a5; border-radius: var(--radius-md); padding: 12px 14px; margin: 8px 0; font-size: 12.5px; overflow-x: auto; font-family: 'JetBrains Mono', monospace; }

/* Key/value details table (built from "- **Key:** value" lines) */
.md table.kv {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 4px;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.md table.kv td { padding: 8px 12px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.md table.kv tr:last-child td { border-bottom: none; }
.md table.kv tr:nth-child(even) td { background: #fcfcfc; }
.md table.kv .kv-k { width: 32%; max-width: 200px; min-width: 96px; color: var(--text-muted); font-weight: 500; border-right: 1px solid var(--border-light); }
.md table.kv .kv-v { color: var(--text-primary); font-weight: 500; word-break: break-word; }

/* ---------- History: chat-style list + detail pane ---------- */
.hist-grid { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .hist-grid { grid-template-columns: 1fr; } }
.hist-list { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 220px); overflow-y: auto; overflow-x: hidden; padding-right: 2px; }
.hist-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; min-height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left; width: 100%;
}
.hist-item:hover { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.hist-item.active { border-color: var(--primary); background: var(--primary-bg); }
.hist-avatar {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--bg-tertiary); color: var(--text-secondary);
}
.hist-avatar.ok { background: var(--success-bg); color: #15803d; }
.hist-avatar.warn { background: var(--warning-bg); color: #b45309; }
.hist-avatar.err { background: var(--error-bg); color: #b91c1c; }
.hist-avatar.info { background: var(--info-bg); color: #1d4ed8; }
.hist-item-main { min-width: 0; flex: 1; }
.hist-item-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-item-sub { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-detail { min-height: 300px; }

/* Collapsible sections in the detail pane */
details.sect { border: 1px solid var(--border); border-radius: var(--radius-md); margin-top: 12px; overflow: hidden; }
details.sect > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; min-height: 40px;
  font-size: 13px; font-weight: 600;
  background: var(--bg-tertiary);
  user-select: none;
}
details.sect > summary::-webkit-details-marker { display: none; }
details.sect > summary::after { content: '▾'; margin-left: auto; color: var(--text-muted); transition: transform var(--transition-fast); }
details.sect:not([open]) > summary::after { transform: rotate(-90deg); }
details.sect > .sect-body { padding: 14px; }

/* ---------- Coming soon ---------- */
.coming-soon { max-width: 560px; text-align: left; }
.coming-soon p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; margin-top: 10px; }
.soon-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--warning); background: var(--warning-bg);
  padding: 4px 12px; border-radius: var(--radius-full);
}

/* ---------- Settings ---------- */
.settings-form { display: flex; flex-direction: column; gap: 16px; }
.settings-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.settings-group.danger { border-color: var(--warning); }
.group-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; min-height: 48px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none;
}
.group-head h2 { font-size: 14px; font-weight: 600; }
.group-head .chev { color: var(--text-muted); transition: transform var(--transition-fast); }
.settings-group.collapsed .chev { transform: rotate(-90deg); }
.settings-group.collapsed .group-body { display: none; }
.group-body { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .group-body { grid-template-columns: 1fr; } }
.group-body .field { margin-bottom: 0; }
.group-body .field.wide { grid-column: 1 / -1; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; width: 100%; min-height: 42px; }
.toggle input { display: none; }
.toggle .toggle-label { font-size: 14px; font-weight: 500; }
.toggle .track { display: inline-block; width: 40px; height: 22px; border-radius: var(--radius-full); background: var(--border); position: relative; transition: background var(--transition-fast); flex-shrink: 0; }
.toggle .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--transition-fast); }
.toggle input:checked + .track { background: var(--primary); }
.toggle input:checked + .track::after { transform: translateX(18px); }

.danger-note { font-size: 12px; color: #b45309; background: var(--warning-bg); padding: 8px 12px; border-radius: var(--radius-md); margin-top: 4px; }
.settings-footer { margin-top: 20px; display: flex; justify-content: flex-end; }

/* ---------- Docs / misc ---------- */
.docs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.docs:empty { display: none; }
.doc-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; min-height: 38px;
  font-size: 13px; font-weight: 500;
  color: var(--primary-dark);
  background: var(--primary-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--transition-fast);
}
.doc-link:hover { border-color: var(--primary); }

.empty-state { padding: 40px 24px; text-align: center; color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }

.toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 18px;
  background: var(--bg-dark); color: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px; font-weight: 500;
  z-index: 600;
  animation: fade .2s ease;
}
.toast.ok { background: #15803d; }
.toast.err { background: #b91c1c; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center;
  z-index: 700; padding: 40px; cursor: zoom-out;
}
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); }

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