/* ───────────────────────────── Good Vibes Notes ─────────────────────────────
   Warm, soft, mobile-first. Light + dark. Built to feel like a hug.
----------------------------------------------------------------------------- */
:root {
  --peach: #ffb3a7;
  --rose: #ff8fb1;
  --gold: #ffd27d;
  --lav: #c9b6ff;
  --mint: #9fe3c5;

  --bg: #fff6f1;
  --bg2: #ffeef4;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --ink: #43303a;
  --ink-soft: #8a7480;
  --line: rgba(120, 80, 100, 0.12);
  --shadow: 0 10px 30px -12px rgba(180, 90, 120, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17121c;
    --bg2: #1d1622;
    --surface: rgba(44, 34, 50, 0.66);
    --surface-solid: #271e2e;
    --ink: #f3e9ef;
    --ink-soft: #b6a3b6;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #17121c; --bg2: #1d1622; --surface: rgba(44, 34, 50, 0.66); --surface-solid: #271e2e;
  --ink: #f3e9ef; --ink-soft: #b6a3b6; --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.6);
}
:root[data-theme="light"] {
  --bg: #fff6f1; --bg2: #ffeef4; --surface: rgba(255, 255, 255, 0.72); --surface-solid: #fff;
  --ink: #43303a; --ink-soft: #8a7480; --line: rgba(120, 80, 100, 0.12);
  --shadow: 0 10px 30px -12px rgba(180, 90, 120, 0.35);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg), var(--bg2));
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea { font-family: inherit; color: inherit; }
h1 { font-size: 1.6rem; margin: 0 0 .4rem; letter-spacing: -0.02em; }
.muted { color: var(--ink-soft); line-height: 1.5; }
.error { color: #e0466e; font-size: .9rem; margin: .2rem 0 0; }

/* ── animated aurora background ── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; filter: blur(60px); opacity: .8; }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; mix-blend-mode: multiply; opacity: .55; animation: drift 26s ease-in-out infinite; }
@media (prefers-color-scheme: dark) { .blob { mix-blend-mode: screen; opacity: .35; } }
.b1 { background: var(--peach); top: -12%; left: -8%; }
.b2 { background: var(--lav); bottom: -16%; right: -10%; animation-delay: -8s; }
.b3 { background: var(--gold); top: 30%; left: 40%; animation-delay: -16s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6vw, 4vh) scale(1.12); }
  66% { transform: translate(-5vw, -3vh) scale(.94); }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

/* ── overlays ── */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  padding: calc(24px + var(--safe-t)) 22px calc(24px + var(--safe-b));
  animation: fade .4s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.card {
  background: var(--surface); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 30px 26px; width: 100%; max-width: 400px; text-align: center;
}
.login-card .big-heart { font-size: 3rem; animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.18); } 28% { transform: scale(1); } 42% { transform: scale(1.12); } }
.login-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
input[type=password], input[type=text], #display-name {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-solid); font-size: 1rem; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(255, 143, 177, 0.18); }

/* ── buttons ── */
.btn { border: none; border-radius: 999px; padding: 13px 20px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform .12s, filter .15s, background .15s; }
.btn:active { transform: scale(.96); }
.btn.primary { background: linear-gradient(120deg, var(--rose), var(--peach)); color: #4a2336; box-shadow: 0 8px 18px -8px rgba(255, 120, 160, 0.7); }
.btn.primary:hover { filter: brightness(1.04); }
.btn.ghost { background: transparent; color: var(--ink-soft); }
.btn.big { padding: 15px 30px; font-size: 1.05rem; }

.color-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 4px 0; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: transform .12s; }
.swatch:active { transform: scale(.9); }
.swatch[aria-checked="true"] { border-color: var(--ink); transform: scale(1.12); }

/* ── welcome vibe ── */
.vibe { background: radial-gradient(120% 90% at 50% 0%, rgba(255, 200, 170, .5), transparent 70%); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vibe-inner { max-width: 460px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vibe-emoji { font-size: 4.4rem; animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.vibe h1 { font-size: 2rem; line-height: 1.15; }
.vibe-sub { font-size: 1.12rem; line-height: 1.6; color: var(--ink); opacity: .82; max-width: 30ch; }
.vibe .btn.primary { margin-top: 8px; }
#vibe-shuffle { font-size: .92rem; }
.vibe-inner > * { animation: rise .5s ease both; }
.vibe-inner > *:nth-child(2) { animation-delay: .05s; }
.vibe-inner > *:nth-child(3) { animation-delay: .1s; }
.vibe-inner > *:nth-child(4) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ── app shell ── */
#app { display: flex; flex-direction: column; min-height: 100dvh; padding-bottom: calc(120px + var(--safe-b)); }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(12px + var(--safe-t)) 18px 12px;
  background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 70%, transparent));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.02em; }
.brand-heart { animation: beat 2.6s ease-in-out infinite; }
.brand-name { font-size: 1.05rem; }
.presence { display: flex; align-items: center; margin-left: 4px; flex: 1; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; margin-left: -8px;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #2e1a26;
  border: 2px solid var(--bg); box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  position: relative;
}
.avatar.me::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px dashed rgba(0,0,0,.25); }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); border: 2px solid var(--bg); }
.top-actions { display: flex; gap: 8px; }
.icon-btn {
  background: var(--surface); border: 1px solid var(--line); border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.1rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; flex: none;
  transition: transform .12s, background .15s, filter .15s;
}
.icon-btn:active { transform: scale(.9); }
.icon-btn:hover { filter: brightness(1.03); }

.searchbar { display: flex; gap: 10px; padding: 4px 18px 8px; align-items: center; }
#search { flex: 1; padding: 11px 16px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 8px 14px; font-size: .85rem; cursor: pointer; white-space: nowrap; color: var(--ink-soft);
}
.chip[aria-pressed="true"] { background: var(--rose); color: #4a2336; border-color: transparent; font-weight: 600; }

.presence-note { margin: 0 18px 8px; padding: 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }
.presence-note b { color: var(--ink); }

/* ── notes (masonry via columns) ── */
.notes-grid { columns: 2; column-gap: 14px; padding: 4px 16px; }
@media (min-width: 620px) { .notes-grid { columns: 3; } }
@media (min-width: 900px) { .notes-grid { columns: 4; padding: 4px 28px; } }
.note-card {
  break-inside: avoid; margin: 0 0 14px; padding: 12px 14px 14px; border-radius: var(--radius-sm);
  background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
  cursor: pointer; position: relative; overflow: hidden;
  animation: pop .3s ease both;
  border-left: 5px solid var(--accent, var(--rose));
}
.note-card .card-top { display: flex; align-items: center; gap: 6px; min-height: 22px; margin-bottom: 2px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.note-card:active { transform: scale(.985); }
.note-card .pin { font-size: .85rem; opacity: .8; flex: none; }
.note-card h3 { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.25; letter-spacing: -.01em; word-break: break-word; }
.note-card .preview { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; max-height: 7.5em; overflow: hidden; }
.note-card .mini-list { list-style: none; padding: 0; margin: 4px 0 0; }
.note-card .mini-list li { font-size: .88rem; color: var(--ink-soft); padding: 2px 0; display: flex; gap: 7px; align-items: flex-start; }
.note-card .mini-list li.done { text-decoration: line-through; opacity: .55; }
.note-card .mini-list .box { flex: none; }
.note-card .card-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .72rem; color: var(--ink-soft); flex-wrap: nowrap; }
.note-card .react-pills { display: flex; gap: 4px; margin-left: auto; flex-wrap: nowrap; overflow: hidden; }
.react-pill { background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 7px; font-size: .72rem; flex: none; }
.who-tag { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.who-dot { width: 8px; height: 8px; border-radius: 50%; }

.empty { text-align: center; color: var(--ink-soft); padding: 14vh 12% 0; line-height: 1.6; font-size: 1.05rem; }
.empty .ehead { font-size: 2.4rem; display: block; margin-bottom: 10px; }

/* ── FAB ── */
.fab-row { position: fixed; right: 18px; bottom: calc(20px + var(--safe-b)); z-index: 25; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fab { width: 52px; height: 52px; border-radius: 50%; border: none; font-size: 1.5rem; cursor: pointer; box-shadow: 0 10px 22px -8px rgba(255, 110, 150, .7); display: grid; place-items: center; transition: transform .14s; }
.fab:active { transform: scale(.9) rotate(8deg); }
.fab.primary { background: linear-gradient(135deg, var(--rose), var(--peach)); color: #4a2336; }
.fab.secondary { width: 48px; height: 48px; font-size: 1.2rem; background: var(--surface-solid); border: 1px solid var(--line); }

/* ── editor ── */
.editor { position: fixed; inset: 0; z-index: 35; background: linear-gradient(160deg, var(--bg), var(--bg2)); display: flex; flex-direction: column; animation: slideup .28s ease both; }
@keyframes slideup { from { transform: translateY(100%); } to { transform: none; } }
.editor-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: calc(8px + var(--safe-t)) 12px 4px;
}
#editor-back { font-size: 1.7rem; }
.editor-top-actions { display: flex; gap: 8px; }
#editor-pin.on { background: var(--gold); border-color: transparent; }
.editor-meta { text-align: center; margin: 2px 0 16px; font-size: .76rem; color: var(--ink-soft); letter-spacing: .01em; }
.editor-meta:empty { display: none; }
.editing-banner { margin: 0 16px 4px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 40%, var(--surface-solid)); font-size: .82rem; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.editing-banner button { margin-left: auto; background: none; border: none; text-decoration: underline; cursor: pointer; color: var(--ink); font-weight: 600; }
.editor-body { flex: 1; overflow-y: auto; padding: 6px 18px calc(40px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.editor-title { width: 100%; border: none; background: none; font-size: 1.5rem; font-weight: 800; padding: 8px 0; letter-spacing: -.02em; outline: none; }

/* body editor: Quill rich text, themed to match the app */
.editor-rich { margin-top: 2px; }
#editor-quill.ql-container.ql-snow { border: none; font-family: var(--font); font-size: 1.06rem; }
.ql-editor { padding: 12px 0 24px; min-height: 42vh; line-height: 1.6; color: var(--ink); }
.ql-editor.ql-blank::before { left: 0; right: 0; color: var(--ink-soft); font-style: normal; }
.ql-editor a { color: var(--rose); }
.editor-rich .ql-toolbar.ql-snow {
  border: none; border-bottom: 1px solid var(--line); padding: 8px 2px;
  position: sticky; top: 0; z-index: 5;
  background: linear-gradient(var(--bg), color-mix(in srgb, var(--bg) 84%, transparent));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.ql-snow .ql-stroke { stroke: var(--ink-soft); }
.ql-snow .ql-fill { fill: var(--ink-soft); }
.ql-snow .ql-picker { color: var(--ink-soft); }
.ql-snow .ql-picker-options { background: var(--surface-solid); border-color: var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.editor-rich .ql-toolbar button:hover .ql-stroke, .editor-rich .ql-toolbar button.ql-active .ql-stroke, .ql-snow .ql-picker-label:hover .ql-stroke { stroke: var(--rose); }
.editor-rich .ql-toolbar button:hover .ql-fill, .editor-rich .ql-toolbar button.ql-active .ql-fill { fill: var(--rose); }
.editor-rich .ql-toolbar button.ql-active, .ql-snow .ql-picker-label.ql-active { color: var(--rose); }
.ql-snow .ql-tooltip { background: var(--surface-solid); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); border-radius: 10px; }
.ql-snow .ql-tooltip input[type=text] { background: var(--surface-solid); border-color: var(--line); color: var(--ink); border-radius: 8px; }
/* author identity: a soft tint behind each person's words */
.ql-editor .ql-author-maira { background-color: var(--tint-maira, transparent); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ql-editor .ql-author-beni { background-color: var(--tint-beni, transparent); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* checklist */
.list-items { list-style: none; padding: 0; margin: 6px 0; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.list-check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink-soft); background: none; cursor: pointer; flex: none; display: grid; place-items: center; font-size: .9rem; transition: background .15s, border-color .15s; }
.list-check.on { background: var(--mint); border-color: var(--mint); color: #1f3d30; }
.list-item input.li-text { flex: 1; border: none; background: none; font-size: 1.02rem; outline: none; padding: 4px 0; }
.list-item.done input.li-text { text-decoration: line-through; color: var(--ink-soft); }
.li-remove { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 1.1rem; opacity: .5; }
.add-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.add-plus { width: 26px; text-align: center; color: var(--ink-soft); font-size: 1.2rem; }
.add-item input { flex: 1; border: none; background: none; font-size: 1.02rem; outline: none; padding: 4px 0; }

.reactions { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: space-between; margin: 24px 0 8px; }
.react-btn { flex: 1; min-width: 0; justify-content: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 4px; cursor: pointer; font-size: 1.05rem; display: flex; gap: 4px; align-items: center; transition: transform .12s, background .15s; }
.react-btn:active { transform: scale(.88); }
.react-btn.mine { background: var(--rose); border-color: transparent; }
.react-btn .count { font-size: .8rem; color: var(--ink-soft); font-weight: 600; }
.react-btn.mine .count { color: #4a2336; }

.activity { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 8px; }
.activity summary { cursor: pointer; color: var(--ink-soft); font-size: .9rem; }
.activity-list { list-style: none; padding: 0; margin: 10px 0 0; }
.activity-list li { font-size: .82rem; color: var(--ink-soft); padding: 4px 0; display: flex; gap: 8px; }
.activity-list .a-who { font-weight: 600; color: var(--ink); }

/* bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 38; display: flex; align-items: flex-end; background: rgba(20, 10, 18, .35); animation: fade .2s ease both; }
.sheet-inner { width: 100%; background: var(--surface-solid); border-radius: 24px 24px 0 0; padding: 16px 16px calc(20px + var(--safe-b)); box-shadow: var(--shadow); animation: slideup .24s ease both; }
.sheet-colors { display: flex; gap: 12px; justify-content: center; padding: 8px 0 14px; flex-wrap: wrap; }
.sheet-btn { width: 100%; padding: 15px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 1rem; margin-top: 8px; cursor: pointer; font-weight: 600; }
.sheet-btn.danger { color: #e0466e; }

/* toast + connection */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%);
  background: var(--surface-solid); color: var(--ink); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); z-index: 45;
  font-size: .92rem; max-width: 86vw; text-align: center; animation: rise .3s ease both;
}
.conn {
  position: fixed; left: 50%; top: calc(8px + var(--safe-t)); transform: translateX(-50%);
  background: #483042; color: #fff; padding: 7px 16px; border-radius: 999px; z-index: 46;
  font-size: .82rem; box-shadow: var(--shadow);
}
.conn.ok { background: var(--mint); color: #1f3d30; }

/* quick-delete on cards */
.note-card .card-del {
  margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: transparent; color: var(--ink-soft); font-size: 1.25rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; opacity: .55; transition: opacity .15s, background .15s, color .15s;
}
.note-card .card-del:hover { opacity: 1; background: rgba(224, 70, 110, .14); color: #e0466e; }
.note-card .card-del:active { transform: scale(.85); }

/* themed confirm dialog */
.confirm-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(20, 10, 18, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .18s ease both; }
.confirm-card { background: var(--surface-solid); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; width: 100%; max-width: 340px; text-align: center; animation: rise .22s ease both; }
.confirm-emoji { font-size: 2.4rem; }
.confirm-card h2 { margin: 8px 0 6px; font-size: 1.25rem; }
.confirm-card .muted { line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; margin-top: 22px; }
.confirm-actions .btn { flex: 1; }
.btn.danger-btn { background: linear-gradient(120deg, #ef5a7a, #e0466e); color: #fff; box-shadow: 0 8px 18px -8px rgba(224, 70, 110, .7); }

/* your-color button + picker */
.me-color { font-weight: 700; font-size: .82rem; color: #2e1a26; }
.cp-card { max-width: 360px; }
.cp-swatches { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 16px 0 6px; }
.cp-custom { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--ink-soft); font-size: .9rem; margin: 4px 0 2px; }
.cp-custom input[type=color] { width: 46px; height: 32px; border: 1px solid var(--line); border-radius: 9px; background: none; padding: 0; cursor: pointer; }
.cp-previews { display: flex; gap: 10px; margin: 14px 0 2px; }
.cp-prev { flex: 1; border-radius: 12px; padding: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cp-prev-light { background: #fff; }
.cp-prev-dark { background: #271e2e; }
.cp-sample { font-weight: 600; font-size: 1rem; }
.cp-tag { font-size: .66rem; opacity: .6; }
.cp-prev-light .cp-tag { color: #43303a; }
.cp-prev-dark .cp-tag { color: #f3e9ef; }
.cp-adj { font-size: .78rem; margin: 8px 0 0; }

/* what's new (patch notes) */
.info-btn { font-size: 1.2rem; color: var(--ink-soft); }
.pn-card { max-width: 400px; text-align: left; }
.pn-card h2 { text-align: center; margin: 6px 0 14px; }
.pn-list { list-style: none; margin: 0; padding: 0; max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pn-item { display: flex; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); align-items: baseline; }
.pn-item:last-child { border-bottom: none; }
.pn-date { flex: none; width: 64px; font-size: .72rem; color: var(--ink-soft); }
.pn-sum { flex: 1; font-size: .92rem; line-height: 1.4; }
.pn-empty { color: var(--ink-soft); text-align: center; padding: 16px; }
.pn-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.pn-nav { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: filter .15s, opacity .15s; }
.pn-nav:active { filter: brightness(.97); }
.pn-nav:disabled { opacity: .4; cursor: default; }
.pn-page { font-size: .8rem; color: var(--ink-soft); }

[hidden] { display: none !important; }
