/* ─────────────────────────────────────────────────────────────────
   NOTES — style.css
   pitch black · minimal · nothing.tech · teenage.engineering
   ───────────────────────────────────────────────────────────────── */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --bg:           #000000;
  --bg2:          #0d0d0d;
  --bg3:          #161616;
  --bg4:          #1e1e1e;
  --fg:           #e8e4de;
  --fg2:          #7a7570;
  --fg3:          #383533;
  --accent:       #ff3000;
  --accent-dim:   rgba(255,48,0,0.12);
  --border:       1px solid #181818;
  --border-mid:   1px solid #222;
  --border-hi:    1px solid #303030;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-xs:    5px;
  --font-mono:    'IBM Plex Mono', monospace;
  --font-sans:    'Space Grotesk', sans-serif;
  --shadow:       0 16px 48px rgba(0,0,0,0.9);
  --shadow-sm:    0 4px 20px rgba(0,0,0,0.6);
  --t:            0.16s ease;
  --t-spring:     0.3s cubic-bezier(.34,1.56,.64,1);
  --max-w:        860px;
}

body.light {
  --bg:           #f7f4ef;
  --bg2:          #edeae3;
  --bg3:          #e4e0d8;
  --bg4:          #dad7cf;
  --fg:           #0f0e0c;
  --fg2:          #5c5850;
  --fg3:          #c0bdb5;
  --border:       1px solid #e4e0d8;
  --border-mid:   1px solid #d5d1c8;
  --border-hi:    1px solid #c0bdb5;
  --shadow:       0 16px 48px rgba(0,0,0,0.1);
  --shadow-sm:    0 4px 20px rgba(0,0,0,0.07);
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
textarea, input { font-family: inherit; resize: none; border: none; outline: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* ── Skeleton shimmer ────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -500px 0; }
  100% { background-position:  500px 0; }
}
.skeleton {
  border-radius: 4px;
  background: linear-gradient(90deg,
    var(--bg3)  0%,
    var(--bg4) 45%,
    var(--bg3) 90%
  );
  background-size: 500px 100%;
  animation: shimmer 1.5s infinite linear;
}

/* ── Lock Page ───────────────────────────────────────────────────── */
.lock-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
}

.lock-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 320px;
}

.lock-icon-ring {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: var(--border-hi);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2);
  color: var(--fg3);
  margin-bottom: 0.2rem;
}

.lock-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-family: var(--font-mono);
  color: var(--fg);
}

.lock-sub {
  font-size: 0.7rem;
  color: var(--fg2);
  font-family: var(--font-mono);
  text-transform: lowercase;
  letter-spacing: 0.06em;
}

/* ── PIN dots ────────────────────────────────────────────────────── */
.pin-display {
  display: flex;
  gap: 1.1rem;
  margin: 0.5rem 0 0.1rem;
}
.pin-display.mini { gap: 0.9rem; margin: 0.3rem 0 0; }

.pin-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--fg3);
  background: transparent;
  transition: all 0.14s cubic-bezier(.34,1.56,.64,1);
}
.pin-dot.filled {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255,48,0,0.45);
}

/* ── Numpad ──────────────────────────────────────────────────────── */
.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  width: 100%;
  max-width: 246px;
}
.numpad.mini { max-width: 220px; gap: 0.4rem; }

.num-btn {
  height: 56px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-family: var(--font-mono);
  font-weight: 500;
  background: var(--bg2);
  border: var(--border-mid);
  color: var(--fg);
  transition: background var(--t), transform 0.1s, border-color var(--t);
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.num-btn:hover  { background: var(--bg3); border-color: var(--border-hi); }
.num-btn:active,
.num-btn.pressed { transform: scale(0.9); background: var(--bg4); }
.num-btn.empty  { background: transparent; border-color: transparent; pointer-events: none; }
.num-btn.del-btn { font-size: 0.9rem; color: var(--fg2); }
.numpad.mini .num-btn { height: 48px; font-size: 1rem; }

.pin-error {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  min-height: 1rem;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── Animations ──────────────────────────────────────────────────── */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-7px); }
  35%       { transform: translateX(7px); }
  55%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}
.shake { animation: shake 0.38s ease; }

@keyframes fadeOut {
  to { opacity: 0; transform: scale(0.97); }
}
body.unlock-anim { animation: fadeOut 0.3s ease forwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* ── App Header ──────────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.4rem;
  height: 54px;
  background: var(--bg);
  border-bottom: var(--border);
}

@supports (backdrop-filter: blur(1px)) {
  .app-header {
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
  }
  body.light .app-header {
    background: rgba(247,244,239,0.9);
  }
}

.app-title {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  color: var(--fg);
}

.header-actions { display: flex; gap: 0.1rem; align-items: center; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg2);
  transition: background var(--t), color var(--t), transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  border: none;
}
.icon-btn:hover  { background: var(--bg3); color: var(--fg); }
.icon-btn:active { transform: scale(0.88); }

/* ── Notes Layout ────────────────────────────────────────────────── */
.notes-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1.4rem;
  padding-bottom: max(7rem, calc(6rem + env(safe-area-inset-bottom)));
}

@media (min-width: 640px) {
  .notes-main { padding: 2rem 2rem; padding-bottom: 7rem; }
}
@media (min-width: 900px) {
  .notes-main { padding: 2.5rem 0; padding-bottom: 7rem; }
  .app-header { padding: 0 max(1.4rem, calc((100vw - var(--max-w)) / 2)); }
}

/* ── Section label ───────────────────────────────────────────────── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--fg3);
  padding: 0 0 0.7rem;
}

/* ── Notes Grid ──────────────────────────────────────────────────── */
.notes-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.8rem;
}

@media (min-width: 520px) {
  .notes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 780px) {
  .notes-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Note Card ───────────────────────────────────────────────────── */
.note-card {
  border-radius: var(--radius);
  background: var(--bg2);
  border: var(--border-mid);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  animation: fadeUp 0.28s ease both;
  position: relative;
}
.note-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}
.note-card:active { transform: scale(0.985); }
.note-card.is-pinned { border-color: rgba(255,48,0,0.22); }

/* stagger */
.note-card:nth-child(1) { animation-delay: 0.03s; }
.note-card:nth-child(2) { animation-delay: 0.07s; }
.note-card:nth-child(3) { animation-delay: 0.11s; }
.note-card:nth-child(4) { animation-delay: 0.15s; }
.note-card:nth-child(5) { animation-delay: 0.19s; }
.note-card:nth-child(6) { animation-delay: 0.23s; }

.card-body {
  flex: 1;
  padding: 0.95rem 1rem 0.8rem;
  cursor: pointer;
  min-width: 0;
}

.card-title {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
  color: var(--fg);
}

/* Locked skeleton lines */
.card-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.skel-line {
  height: 9px;
  border-radius: 3px;
}
.skel-line.w100 { width: 100%; }
.skel-line.w75  { width: 75%; }
.skel-line.w50  { width: 50%; }

.card-preview {
  font-size: 0.76rem;
  color: var(--fg2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.03em;
}

.meta-badge {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--fg3);
}
.meta-badge.pinned-badge { color: var(--accent); opacity: 0.65; }

.card-footer {
  display: flex;
  border-top: var(--border);
}

.card-action-btn {
  flex: 1;
  height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg3);
  transition: background var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
  border-right: var(--border);
}
.card-action-btn:last-child { border-right: none; }
.card-action-btn:hover  { background: var(--bg3); color: var(--fg2); }
.card-action-btn:active { background: var(--bg4); }
.card-action-btn.danger:hover  { color: var(--accent); background: var(--accent-dim); }

/* ── Empty State ─────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--fg3);
  animation: fadeIn 0.4s ease;
}
.empty-line {
  width: 28px; height: 1px;
  background: var(--fg3);
  margin: 0 auto 1.2rem;
  opacity: 0.35;
}
.empty-state p {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

/* ── FAB ─────────────────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: max(1.5rem, calc(1rem + env(safe-area-inset-bottom)));
  right: 1.5rem;
  z-index: 20;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(255,48,0,0.4), 0 1px 4px rgba(0,0,0,0.6);
  transition: transform var(--t-spring), box-shadow var(--t);
  -webkit-tap-highlight-color: transparent;
  border: none;
}
.fab:hover  { transform: scale(1.07); box-shadow: 0 6px 28px rgba(255,48,0,0.5); }
.fab:active { transform: scale(0.9); }
.mode-fab {
  background: var(--bg3);
  color: var(--fg);
  border: var(--border-hi);
  box-shadow: var(--shadow-sm);
}
.mode-fab:hover { background: var(--bg4); transform: scale(1.04); }

/* ── Bottom Sheet ────────────────────────────────────────────────── */
.sheet-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 30;
}
.sheet-overlay.active {
  display: block;
  animation: fadeIn 0.2s ease forwards;
}

.bottom-sheet {
  position: fixed;
  bottom: -110%;
  left: 0; right: 0;
  z-index: 40;
  background: var(--bg2);
  border-radius: 18px 18px 0 0;
  border-top: var(--border-hi);
  padding: 0.9rem 1.4rem max(2rem, calc(1.5rem + env(safe-area-inset-bottom)));
  transition: bottom 0.3s cubic-bezier(.32,.72,0,1);
  max-height: 90dvh;
  overflow-y: auto;
}
.bottom-sheet.open { bottom: 0; }

@media (min-width: 600px) {
  .bottom-sheet {
    left: 50%; right: auto;
    transform: translateX(-50%);
    width: 420px;
    border-radius: 18px;
    border: var(--border-hi);
  }
  .bottom-sheet.open { bottom: 2rem; }
}

.sheet-handle {
  width: 30px; height: 3px;
  border-radius: 2px;
  background: var(--fg3);
  margin: 0 auto 1.4rem;
  opacity: 0.4;
}

.sheet-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg3);
  margin-bottom: 1.2rem;
}

.sheet-sub {
  font-size: 0.76rem;
  color: var(--fg2);
  text-align: center;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* ── Sort Options ────────────────────────────────────────────────── */
.sort-options { display: flex; flex-direction: column; }

.sort-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: var(--border);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  text-transform: lowercase;
  cursor: pointer;
  color: var(--fg2);
  transition: color var(--t);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.03em;
}
.sort-opt:last-child { border-bottom: none; }
.sort-opt:hover { color: var(--fg); }
.sort-opt input[type="radio"] { display: none; }

.radio-ring {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1.5px solid var(--fg3);
  transition: all var(--t);
  flex-shrink: 0;
}
.sort-opt:has(input:checked) { color: var(--fg); }
.sort-opt:has(input:checked) .radio-ring {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg2);
}

/* ── Settings ────────────────────────────────────────────────────── */
.settings-group { display: flex; flex-direction: column; }

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: var(--border);
  font-size: 0.82rem;
  color: var(--fg2);
}
.settings-row:last-child { border-bottom: none; }

.theme-toggle {
  display: flex;
  background: var(--bg3);
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
}
.theme-btn {
  padding: 0.26rem 0.72rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--fg3);
  transition: all var(--t);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.04em;
}
.theme-btn.active {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.theme-btn:not(.active):hover { color: var(--fg2); }

.ghost-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.35rem 0.8rem;
  border: var(--border-hi);
  border-radius: var(--radius-xs);
  color: var(--fg3);
  transition: all var(--t);
  letter-spacing: 0.04em;
  -webkit-tap-highlight-color: transparent;
}
.ghost-btn:hover  { background: var(--bg3); color: var(--fg); }
.ghost-btn:active { background: var(--bg4); }
.ghost-btn.danger { color: #ff5540; border-color: rgba(255,48,0,0.2); }
.ghost-btn.danger:hover { background: var(--accent-dim); color: var(--accent); }

/* ── Action List ─────────────────────────────────────────────────── */
.action-list { display: flex; flex-direction: column; gap: 0.2rem; }

.action-item {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  text-align: left;
  color: var(--fg2);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: all var(--t);
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.01em;
}
.action-item:hover  { background: var(--bg3); color: var(--fg); }
.action-item:active { background: var(--bg4); transform: scale(0.98); }
.action-item.danger { color: #ff5540; }
.action-item.danger:hover  { background: var(--accent-dim); color: var(--accent); }

/* ── PIN Flow ────────────────────────────────────────────────────── */
.pin-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0 0.25rem;
}

/* ── Note Header ─────────────────────────────────────────────────── */
.note-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 50px;
  background: var(--bg);
  border-bottom: var(--border);
  gap: 0.5rem;
}

@supports (backdrop-filter: blur(1px)) {
  .note-header {
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
  }
  body.light .note-header {
    background: rgba(247,244,239,0.9);
  }
}

.note-meta-header {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.note-dates {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--fg3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  letter-spacing: 0.03em;
}

/* ── Note Main ───────────────────────────────────────────────────── */
.note-main {
  padding: 1.4rem 1.4rem;
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: max(7rem, calc(6rem + env(safe-area-inset-bottom)));
}
@media (min-width: 720px) {
  .note-main { padding-left: 0; padding-right: 0; }
}

.note-title-wrap { margin-bottom: 1.4rem; }

.note-title-input {
  width: 100%;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: var(--fg);
  background: transparent;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--accent);
}
.note-title-input::placeholder { color: var(--fg3); }

/* ── Note View ───────────────────────────────────────────────────── */
.note-view {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--fg);
}
.note-view h1 { font-size: 1.3rem;  font-weight: 700; margin: 1.4rem 0 0.6rem; letter-spacing: -0.03em; }
.note-view h2 { font-size: 1.05rem; font-weight: 600; margin: 1.1rem 0 0.5rem; letter-spacing: -0.02em; }
.note-view h3 { font-size: 0.92rem; font-weight: 600; margin: 0.9rem 0 0.4rem; }
.note-view p  { margin: 0.6rem 0; }
.note-view strong { font-weight: 700; }
.note-view em { font-style: italic; color: var(--fg2); }
.note-view code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--bg3);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #ff7a5c;
  border: var(--border-mid);
}
.note-view pre {
  background: var(--bg2);
  border: var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  margin: 1rem 0;
}
.note-view pre code { background: none; padding: 0; color: var(--fg2); border: none; font-size: 0.8rem; }
.note-view blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  color: var(--fg2);
  margin: 0.9rem 0;
  font-style: italic;
}
.note-view ul, .note-view ol { padding-left: 1.4rem; margin: 0.6rem 0; }
.note-view li { margin: 0.25rem 0; }
.note-view hr { border: none; border-top: var(--border-mid); margin: 1.5rem 0; }
.note-view a { color: #ff7a5c; text-decoration: underline; text-underline-offset: 3px; }
.note-view a:hover { color: var(--accent); }

/* ── Checkboxes ──────────────────────────────────────────────────── */
.md-checkbox {
  width: 16px; height: 16px;
  border-radius: 4px;
  border: 1.5px solid var(--fg3);
  background: transparent;
  cursor: pointer;
  margin-right: 0.4rem;
  vertical-align: middle;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  transition: all var(--t);
  flex-shrink: 0;
  display: inline-block;
  top: -1px;
}
.md-checkbox:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.md-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 2px; left: 4px;
  width: 4px; height: 8px;
  border: 1.5px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* ── Images ──────────────────────────────────────────────────────── */
.md-img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: var(--border-mid);
  margin: 1rem 0;
  display: block;
}

/* ── Note Editor ─────────────────────────────────────────────────── */
.note-edit { width: 100%; }

.note-editor {
  width: 100%;
  min-height: calc(100dvh - 180px);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--fg);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--accent);
}
.note-editor::placeholder { color: var(--fg3); }

/* ── Toast ───────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.42rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
  transition: all 0.22s cubic-bezier(.34,1.56,.64,1);
  letter-spacing: 0.04em;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--fg3); border-radius: 2px; }
