:root {
  --bg: #0d0e10;
  --stage: #08090a;
  --panel: #141619;
  --panel-2: #1a1d21;
  --panel-3: #22262b;
  --line: #24282d;
  --line-2: #323840;
  --text: #e9ebee;
  --text-2: #a4aab3;
  --text-3: #6d747e;
  --accent: #ff7a45;
  --accent-2: #ff935f;
  --accent-ink: #1a0c05;
  --open: #ffb020;
  --done: #3ecf8e;
  --danger: #ff6b6b;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Segoe UI', sans-serif;
  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
}

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

html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 13px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: 0.38; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
h1, h2, p { margin: 0; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--panel-3); padding: 1px 5px; border-radius: 4px; }
.icon { flex: none; display: block; }
.grow { flex: 1; }
.muted { color: var(--text-3); }

/* ── 레이아웃 ───────────────────────────── */
.app {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr) 348px;
  grid-template-rows: 46px minmax(0, 1fr);
  height: 100vh;
}
.app.no-sidebar { grid-template-columns: 0 minmax(0, 1fr) 348px; }
.app.no-sidebar .sidebar { display: none; }
.sidebar { grid-row: 1 / 3; }
.topbar { grid-column: 2 / 4; }
.center { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.feedback { grid-column: 3; grid-row: 2; }
@media (max-width: 980px) {
  .app, .app.no-sidebar { grid-template-columns: 0 minmax(0, 1fr) 292px; }
  .app .sidebar { display: none; }
}

/* ── 공통 버튼 ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 32px; padding: 0 13px; border-radius: 7px;
  background: var(--panel-3); color: var(--text); font-weight: 550; white-space: nowrap;
  border: 1px solid var(--line-2);
  transition: background 0.12s, border-color 0.12s;
}
.btn:hover:not(:disabled) { background: #2a2f35; border-color: #3d444d; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 650; }
.btn.primary:hover:not(:disabled) { background: var(--accent-2); border-color: transparent; }
.btn.ghost { background: none; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover:not(:disabled) { background: var(--panel-3); color: var(--text); border-color: transparent; }
.icon-btn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--text-2);
}
.icon-btn:hover { background: var(--panel-3); color: var(--text); }
.chip {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 5px;
  background: var(--panel-3); color: var(--text-2); font-size: 11.5px; white-space: nowrap;
}
.chip.tc { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: 0.01em; }
.hint { color: var(--text-3); font-size: 12px; }
.link { color: var(--accent); text-underline-offset: 3px; }
a.add { text-decoration: none; }
.err { color: var(--danger); }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-2); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 사이드바 ───────────────────────────── */
.sidebar { display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); min-height: 0; }
.brand { display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.brand-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.brand-name { font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.side-label { padding: 14px 14px 6px; font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: 0.04em; }
.proj-list { flex: 1; overflow-y: auto; padding: 0 8px; min-height: 0; }
.proj-empty { padding: 4px 6px; color: var(--text-3); font-size: 12px; }
.proj, .node { display: flex; align-items: center; border-radius: 7px; margin-bottom: 1px; padding: 0 4px 0 2px; }
.proj:hover, .node:hover { background: var(--panel-2); }
.proj.on, .node.on { background: var(--panel-3); }
.proj-open, .node-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 4px; color: var(--text-2); text-align: left; border-radius: 7px; }
.proj-open { height: 32px; }
.proj.active .proj-open { color: var(--text); font-weight: 600; }
.node.on .node-open { color: var(--text); font-weight: 600; }
.node-open .icon { color: var(--text-3); }
.node.on .node-open .icon { color: var(--accent); }
.proj-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.twist { flex: none; display: grid; place-items: center; width: 18px; height: 22px; border-radius: 4px; color: var(--text-3); }
.twist.none { visibility: hidden; }
button.twist:hover { background: var(--line-2); color: var(--text); }
.twist .icon { transition: transform 0.12s; }
.twist.open .icon { transform: rotate(90deg); }
.row-btn { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; color: var(--text-3); opacity: 0; }
.proj:hover .row-btn, .node:hover .row-btn, .row-btn:focus-visible { opacity: 1; }
.row-btn:hover { background: var(--line-2); color: var(--text); }
.tree { margin-bottom: 4px; }
.side-add { padding: 8px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.add { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: 7px; color: var(--text-2); text-align: left; }
.add:hover { background: var(--panel-2); color: var(--text); }
.user { display: flex; align-items: center; gap: 9px; height: 48px; padding: 0 14px; border-top: 1px solid var(--line); color: var(--text-2); text-align: left; }
.user:hover { background: var(--panel-2); color: var(--text); }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--panel-3); }
.user-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 550; }
.user-name.unset { color: var(--text-3); font-weight: 400; }

/* ── 상단 막대 ───────────────────────────── */
.topbar { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 10px; background: var(--panel); border-bottom: 1px solid var(--line); min-width: 0; }
.crumbs { display: flex; align-items: center; min-width: 0; color: var(--text-3); }
.crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb + .crumb::before { content: '/'; margin: 0 9px; color: var(--line-2); }
.crumb.root { flex: none; }
.crumb.cur { color: var(--text); font-weight: 600; }
.source { font: 600 10.5px/1 var(--mono); letter-spacing: 0.06em; color: var(--text-2); padding: 5px 7px; border: 1px solid var(--line-2); border-radius: 5px; white-space: nowrap; }
.sync { font-size: 12px; color: var(--text-3); white-space: nowrap; padding: 4px 8px; border-radius: 6px; }
.sync:disabled { opacity: 1; }
.sync.ok { color: var(--done); }
.sync.err { color: var(--danger); background: rgba(255, 107, 107, 0.1); }

/* ── 영상 화면 ───────────────────────────── */
.stage { flex: 1; min-height: 0; background: var(--stage); }
.viewport { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; }
.frame { position: relative; background: #000; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }
.frame.empty { visibility: hidden; }
.frame video { display: block; width: 100%; height: 100%; }
.ink { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; overflow: visible; }
.ink[data-tool='pointer'] { cursor: default; }
.ink[data-tool='text'] { cursor: text; }
.ink * { pointer-events: none; }
.ink[data-tool='eraser'] { cursor: default; }
.ink[data-tool='eraser'] .draft, .ink[data-tool='eraser'] .draft * { pointer-events: all; cursor: pointer; }
.ink[data-tool='eraser'] .draft:hover { opacity: 0.45; }
.ink-text {
  position: absolute; margin: -3px 0 0 -7px; min-width: 190px; padding: 2px 6px;
  background: rgba(0, 0, 0, 0.6); border: 1px dashed rgba(255, 255, 255, 0.7); border-radius: 4px;
  font-weight: 700; line-height: 1.2; outline: none;
}
.ink-text::placeholder { color: rgba(255, 255, 255, 0.45); font-weight: 400; font-size: 13px; }

.notice { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--stage); overflow: auto; }
.msg { display: grid; justify-items: center; gap: 12px; max-width: 440px; text-align: center; color: var(--text-2); }
.msg h2 { font-size: 16px; color: var(--text); }
.bar { width: 240px; height: 4px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); transition: width 0.15s; }
.welcome { display: grid; justify-items: center; gap: 14px; max-width: 520px; text-align: center; }
.welcome-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--panel-2); color: var(--accent); border: 1px solid var(--line); }
.welcome h1 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.35; }
.welcome p { color: var(--text-2); font-size: 13.5px; line-height: 1.65; text-wrap: pretty; }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.welcome .btn { height: 36px; }

/* ── 도구 막대 ───────────────────────────── */
.toolbar-wrap { border-top: 1px solid var(--line); background: var(--panel); }
.toolbar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; overflow-x: auto; }
.toolbar-wrap.disabled .toolbar { opacity: 0.4; pointer-events: none; }
.group { display: flex; align-items: center; gap: 2px; }
.sep { width: 1px; height: 18px; background: var(--line-2); flex: none; }
.tool { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--text-2); flex: none; }
.tool:hover:not(:disabled) { background: var(--panel-3); color: var(--text); }
.tool.on { background: var(--accent); color: var(--accent-ink); }
.tool.on:hover { background: var(--accent-2) !important; color: var(--accent-ink) !important; }
.tool.width .dot { border-radius: 50%; background: currentColor; }
.tool.width.on { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.swatch { width: 26px; height: 30px; display: grid; place-items: center; flex: none; }
.swatch::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); transition: transform 0.1s; }
.swatch:hover::before { transform: scale(1.15); }
.swatch.on::before { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--text); }

/* ── 타임라인과 재생 조작 ─────────────────── */
.transport { background: var(--panel); border-top: 1px solid var(--line); }
.transport.disabled { opacity: 0.45; pointer-events: none; }
.timeline { position: relative; height: 30px; padding: 0 14px; cursor: pointer; touch-action: none; outline-offset: -2px; }
.tl-track { position: relative; top: 12px; height: 6px; border-radius: 3px; background: var(--panel-3); }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #4a5059; }
.tl-head { position: absolute; top: -7px; width: 2px; height: 20px; margin-left: -1px; background: var(--accent); border-radius: 1px; pointer-events: none; }
.tl-head::before { content: ''; position: absolute; left: -4px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tl-marks { position: absolute; inset: 0; }
.tl-mark {
  position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: var(--open); border: 2px solid var(--panel); padding: 0;
}
.tl-mark.done { background: var(--done); }
.tl-mark.draft { background: transparent; border: 2px dashed var(--text); }
.tl-mark:hover, .tl-mark.sel { transform: scale(1.35); z-index: 1; }
.tl-mark.sel { box-shadow: 0 0 0 2px var(--text); }
.tl-tip {
  position: absolute; bottom: 26px; transform: translateX(-50%); padding: 2px 6px; border-radius: 4px;
  background: #000; border: 1px solid var(--line-2); font: 11px var(--mono); pointer-events: none; white-space: nowrap; z-index: 2;
}
.controls { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 12px 4px; }
.ctl { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: var(--text-2); flex: none; }
.ctl:hover { background: var(--panel-3); color: var(--text); }
.ctl.play { background: var(--text); color: #0d0e10; border-radius: 50%; margin: 0 4px; }
.ctl.play:hover { background: #fff; color: #000; }
.time { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.tc { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.time .tc.now { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.time .tc.dur, .time .slash { color: var(--text-3); font-size: 12.5px; }
.frame-no { margin-left: 4px; color: var(--text-3); font: 11.5px var(--mono); }
.fps-wrap { display: flex; align-items: center; gap: 5px; color: var(--text-3); font-size: 12px; }
.fps { height: 26px; padding: 0 4px; border-radius: 6px; background: var(--panel-3); border: 1px solid var(--line-2); font: 12px var(--mono); }
.fps.guess { color: var(--text-3); }
.group-label { color: var(--text-3); font-size: 12px; padding: 0 2px; }
.vol { width: 72px; accent-color: var(--text-2); }
.controls { min-width: 0; overflow: hidden; }
@media (max-width: 1240px) { .vol, .group-label { display: none; } }
@media (max-width: 1100px) { .time .tc.dur, .time .slash, .frame-no, .fps-wrap span { display: none; } .controls { gap: 8px; } }

/* ── 영상 목록 ───────────────────────────── */
.strip { background: var(--panel); border-top: 1px solid var(--line); padding: 8px 12px 10px; }
.strip-head { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 11.5px; font-weight: 600; margin-bottom: 7px; }
.strip-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.card { flex: none; width: 128px; text-align: left; border-radius: 8px; padding: 3px; border: 1px solid transparent; }
.card:hover { background: var(--panel-2); }
.card.on { border-color: var(--accent); background: var(--panel-2); }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 5px; background: var(--panel-3); display: grid; place-items: center; color: var(--text-3); overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.badge.open { background: var(--open); color: #2a1a00; }
.badge.done { background: var(--done); color: #06281a; padding: 0; }
.card-name { display: flex; gap: 5px; padding: 5px 3px 2px; font-size: 11.5px; color: var(--text-2); }
.card.on .card-name { color: var(--text); }
.card-name .idx { color: var(--text-3); font-family: var(--mono); flex: none; }
.card-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 피드백 패널 ─────────────────────────── */
.feedback { display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line); min-height: 0; }
.fb-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 8px 14px; }
.fb-head h2 { font-size: 14px; display: flex; align-items: center; gap: 7px; }
.count { font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--panel-3); border-radius: 9px; padding: 0 7px; line-height: 18px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 12px 8px; padding: 2px; background: var(--bg); border-radius: 8px; }
.tab { height: 26px; border-radius: 6px; color: var(--text-3); font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--panel-3); color: var(--text); font-weight: 600; }
.tab .n { font-family: var(--mono); font-size: 11px; opacity: 0.75; }
.fb-list { flex: 1; overflow-y: auto; min-height: 0; padding: 0 8px 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.fb-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; color: var(--text-3); }
.fb-empty strong { color: var(--text-2); font-weight: 600; }
.fb-empty p { font-size: 12.5px; line-height: 1.6; text-wrap: pretty; }
.fb { position: relative; display: flex; gap: 9px; padding: 10px 8px 10px 9px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; }
.fb + .fb { margin-top: 2px; }
.fb:hover { background: var(--panel-2); }
.fb.here { background: var(--panel-2); }
.fb.sel { background: var(--panel-2); border-color: var(--line-2); }
.fb.editing { border-color: var(--accent); }
.check { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--open); display: grid; place-items: center; color: #06281a; }
.check:hover { background: rgba(255, 176, 32, 0.18); }
.check.on { background: var(--done); border-color: var(--done); }
.fb-body { flex: 1; min-width: 0; }
.fb-meta { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--text-3); font-size: 11.5px; }
.fb-meta .author { color: var(--text-2); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-meta .ago { white-space: nowrap; flex: none; }
.has-ink { color: var(--accent); flex: none; }
.fb-text { margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.fb-text.muted { color: var(--text-3); }
.fb.done .fb-text { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.fb-actions { position: absolute; top: 6px; right: 6px; display: none; gap: 1px; background: var(--panel-3); border-radius: 7px; padding: 1px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.fb:hover .fb-actions, .fb:focus-within .fb-actions { display: flex; }
.fb-actions .icon-btn { width: 26px; height: 26px; }
.fb-actions .icon-btn:hover { background: var(--line-2); }

.composer { border-top: 1px solid var(--line); padding: 10px 12px 12px; display: grid; gap: 8px; background: var(--panel); }
.composer.disabled { opacity: 0.45; }
.composer-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
button.chip.tc:hover { background: var(--line-2); }
.ink-chip { color: var(--accent); background: rgba(255, 122, 69, 0.13); }
.edit-chip { color: var(--accent-ink); background: var(--accent); font-weight: 650; }
.fb-input {
  width: 100%; min-height: 68px; max-height: 180px; resize: vertical; padding: 9px 10px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line-2); line-height: 1.55; outline: none;
}
.fb-input:focus { border-color: var(--accent); }
.fb-input::placeholder { color: var(--text-3); }
.composer-row { display: flex; align-items: center; gap: 6px; }

/* ── 대화상자 ───────────────────────────── */
.modal {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--panel-2); color: var(--text); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.modal.wide { width: min(560px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(0, 0, 0, 0.6); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 4px 18px; }
.modal-head h2 { font-size: 15px; }
.modal-body { padding: 8px 18px 16px; display: grid; gap: 12px; }
.modal-body > p { color: var(--text-2); line-height: 1.65; text-wrap: pretty; }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 4px; }
.field { width: 100%; height: 34px; padding: 0 10px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line-2); outline: none; min-width: 0; }
.field:focus { border-color: var(--accent); }
.field.mono { font: 12px var(--mono); }
.row { display: grid; gap: 6px; }
.row.inline { display: flex; align-items: center; gap: 10px; }
.row-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 7px; color: var(--text-2); line-height: 1.6; }
.picker-crumbs { display: flex; flex-wrap: wrap; align-items: center; }
.crumb-btn { color: var(--text-2); padding: 2px 4px; border-radius: 4px; }
.crumb-btn:hover { color: var(--text); background: var(--panel-3); }
.crumb-btn + .crumb-btn::before { content: '/'; margin-right: 8px; color: var(--text-3); }
.crumb-btn:last-child { color: var(--text); font-weight: 600; }
.picker-list { height: 250px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); padding: 4px; }
.picker-item { width: 100%; display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 9px; border-radius: 6px; text-align: left; color: var(--text); }
.picker-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-item:hover { background: var(--panel-3); }
.picker-item .icon { color: var(--text-3); }
.picker-msg { height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--text-3); }
.picker-url { display: flex; gap: 8px; }

/* ── 알림 ───────────────────────────────── */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; z-index: 100; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 32px));
  padding: 9px 14px; border-radius: 9px; background: #2b3037; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: rise 0.18s ease-out; line-height: 1.5;
}
.toast.error { border-color: rgba(255, 107, 107, 0.6); }
.toast.out { opacity: 0; transition: opacity 0.2s; }
.toast-action { color: var(--accent); font-weight: 650; white-space: nowrap; }
.toast-action:hover { text-decoration: underline; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

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