:root {
  --bg: #fff8f3;
  --surface: #ffffff;
  --surface-2: #fbefe8;
  --text: #2a1610;
  --muted: #8a6a5e;
  --line: #f1e1d8;
  --brand: #db2777;
  --brand-2: #fb923c;
  --brand-ink: #ffffff;
  --brand-soft: #ffe8ee;
  --accent: #7c2d12;
  --ok: #18a058;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 1px 2px rgba(23, 24, 43, 0.04), 0 8px 24px rgba(23, 24, 43, 0.06);
  --radius: 20px;
  color-scheme: light;
}
  :root[data-theme='dark'] {
  --bg: #140d0b;
  --surface: #1f1613;
  --surface-2: #2a1f1b;
  --text: #ececf6;
  --muted: #9a9cb5;
  --line: #3a2b25;
  --brand: #f472b6;
  --brand-2: #fdba74;
  --brand-soft: #3a1a26;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}
:root[data-theme='dark'] {
  --bg: #140d0b;
  --surface: #1f1613;
  --surface-2: #2a1f1b;
  --text: #ececf6;
  --muted: #9a9cb5;
  --line: #3a2b25;
  --brand: #f472b6;
  --brand-2: #fdba74;
  --brand-soft: #3a1a26;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 18px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.icon-btn:focus:not(:focus-visible) { outline: none; }

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.top { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.hero { display: flex; flex-direction: column; gap: 10px; border: 1.5px solid var(--brand-soft); }
.install { display: flex; gap: 14px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--brand-soft), var(--surface)); }
.install h2 { font-size: 16px; margin-bottom: 2px; }
.install p { font-size: 14px; }

.row { display: flex; gap: 8px; }
.row input { flex: 1; min-width: 0; }
input, textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
input:focus, textarea:focus { border-color: var(--brand); background: var(--surface); }

.btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  border-radius: 14px;
  padding: 11px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.08s, filter 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
a.btn { text-decoration: none; }
.btn-primary { background: linear-gradient(120deg, var(--brand-2), var(--brand)); color: var(--brand-ink); box-shadow: 0 6px 16px rgba(219, 39, 119, 0.28); }
.btn-primary:disabled { filter: grayscale(0.6) opacity(0.6); box-shadow: none; }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost.danger { color: var(--danger); }
.btn svg, .chip-btn svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { border: 0; background: transparent; color: var(--muted); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; font-size: 18px; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

.composer textarea { width: 100%; resize: none; min-height: 84px; background: transparent; padding: 4px 2px; border: 0; font-size: 17px; }
.composer textarea:focus { background: transparent; }
.compose-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.compose-tools { display: flex; gap: 6px; }
.chip-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: var(--surface-2);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.chip-btn svg { width: 16px; height: 16px; }
.file-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.file-chip { font-size: 13px; background: var(--brand-soft); color: var(--brand); padding: 4px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; max-width: 100%; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; font-size: 14px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 6px 4px 8px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 12px; background: var(--surface); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); align-items: flex-start; text-decoration: none; color: inherit; }
.item.new { animation: rise 0.35s ease both; }
.item-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; font-size: 20px; }
.item-icon img { width: 100%; height: 100%; object-fit: cover; }
.item-icon img.fav { width: 22px; height: 22px; object-fit: contain; }
.item-body { min-width: 0; flex: 1; }
.item-title { font-weight: 700; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.item-summary { font-size: 13.5px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-actions { display: flex; gap: 6px; margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tag { font-size: 11.5px; font-weight: 700; background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 999px; }
.pill-warn { color: var(--warn); font-weight: 600; }
.pill-bad { color: var(--danger); font-weight: 600; }

.empty { text-align: center; padding: 30px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty img { opacity: 0.9; border-radius: 14px; margin-bottom: 6px; }

/* Share confirmation: a plain window with a small pill near the bottom */
.sent {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: radial-gradient(70vmax 70vmax at 0% 10%, #FB923C, transparent 70%), radial-gradient(70vmax 70vmax at 100% 100%, #DB2777, transparent 70%), #F26B4F;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px calc(env(safe-area-inset-bottom) + 64px);
}
.pill {
  font: inherit;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: #23232f;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  animation: pillin 0.28s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  text-align: left;
}
.pill-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }
.pill-icon svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pill-check { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.3s 0.12s ease forwards; }
.pill-text { display: flex; flex-direction: column; min-width: 0; }
.pill-text b { font-size: 15px; }
.pill-text span { font-size: 12.5px; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-text span:empty { display: none; }
.pill[data-state='error'] .pill-icon { background: var(--danger); }
.pill[data-state='error'] .pill-check { d: path('M8 8l8 8M16 8l-8 8'); }
.sent .pill { background: rgba(255,255,255,.96); color: #2a1610; animation: pillin 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 0.55s both; }
.sent .pill-text span { color: #8a6a5e; opacity: 1; }
.sent.leaving .pill { transition: opacity 0.16s, transform 0.16s; opacity: 0; transform: translateY(12px); }
@keyframes pillin { 0% { opacity: 0; transform: translateY(30px) scale(0.6); } 60% { opacity: 1; } }
:root[data-theme='dark'] .pill { background: #f0f0f6; color: #17182b; }

/* Sheets */
.sheet {
  border: 0;
  padding: 0;
  width: min(640px, 100vw);
  max-width: 100vw;
  max-height: 92dvh;
  margin: auto auto 0;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  overscroll-behavior: contain; /* reaching the end of the sheet doesn't scroll the page under it */
}
/* While a sheet is open the page underneath stays put (Android and iOS). */
html:has(dialog.sheet[open]) { overflow: hidden; }
html:has(dialog.sheet[open]) body { overflow: hidden; touch-action: none; }
html:has(dialog.sheet[open]) dialog.sheet[open] { touch-action: pan-y; }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 24px; } }
.sheet[open] { animation: slide 0.25s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.sheet::backdrop { background: rgba(10, 10, 20, 0.45); backdrop-filter: blur(2px); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 6px 20px; position: sticky; top: 0; background: var(--surface); z-index: 5; }
.sheet-body { padding: 6px 20px calc(env(safe-area-inset-bottom) + 24px); display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack .btn { justify-content: flex-start; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.toggle > span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toggle input { appearance: none; flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background 0.2s; padding: 0; border: 0; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 0.2s; }
.toggle input:checked { background: var(--brand); }
.toggle input:checked::after { transform: translateX(18px); }
.status-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.status-grid > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; font-size: 13px; }
.status b { display: block; font-size: 14px; color: var(--text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.dot.on { background: var(--ok); }
.dot.off { background: var(--warn); }
.guide .steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.guide .steps ul { padding-left: 18px; margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.copy-box { display: flex; align-items: center; gap: 8px; margin-top: 6px; background: var(--surface-2); border-radius: 12px; padding: 8px 8px 8px 12px; }
.copy-box code { background: none; padding: 0; flex: 1; word-break: break-all; }
.copy-box .chip-btn { background: var(--surface); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 20px);
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  z-index: 30;
  max-width: calc(100vw - 32px);
  animation: rise 0.25s ease both;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0.85); } 100% { transform: scale(1); } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes slide { from { transform: translateY(40px); opacity: 0; } }
.toast { animation-name: toastrise; }
@keyframes toastrise { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition: none !important; } }

/* Onboarding */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.onboard {
  position: fixed; inset: 0; z-index: 15; overflow-y: auto;
  background: radial-gradient(120% 70% at 0% 0%, #ffd9c2 0%, transparent 55%), radial-gradient(110% 70% at 100% 100%, #ffd0e1 0%, transparent 60%), var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 24px) 20px calc(env(safe-area-inset-bottom) + 24px);
}
:root[data-theme='dark'] .onboard { background: radial-gradient(120% 70% at 0% 0%, #3a1f14 0%, transparent 55%), radial-gradient(110% 70% at 100% 100%, #3a1426 0%, transparent 60%), var(--bg); }
.onboard-inner { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.onboard-logo { border-radius: 18px; box-shadow: 0 12px 30px rgba(219, 39, 119, 0.3); }
.ob-step { display: flex; flex-direction: column; gap: 14px; animation: rise 0.3s ease both; }
.ob-step h1 { font-size: 30px; line-height: 1.12; letter-spacing: -0.03em; }
.ob-step p { font-size: 16px; }
.ob-form { display: flex; flex-direction: column; gap: 10px; }
.ob-form input { font-size: 18px; padding: 15px 16px; background: var(--surface); border: 1.5px solid var(--line); }
.code-input { text-align: center; letter-spacing: 0.5em; font-weight: 800; font-size: 26px !important; font-variant-numeric: tabular-nums; }
.btn-block { width: 100%; padding: 15px; font-size: 16px; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; }

/* Settings portal */
.set-group { display: flex; flex-direction: column; gap: 10px; }
.set-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 6px; }
.modes { display: flex; flex-direction: column; gap: 8px; }
.mode { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.mode:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.mode input { accent-color: var(--brand); margin-top: 3px; flex: none; width: 18px; height: 18px; }
.mode span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.mode small { color: var(--muted); font-size: 13px; }
.rec { font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--surface); padding: 1px 7px; border-radius: 99px; margin-left: 4px; }
.subject-preview { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.subject-preview div { font-weight: 700; font-size: 14px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dest { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 14px; padding: 10px 12px; }
.dest-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--surface); }
.dest-body { flex: 1; min-width: 0; font-size: 14px; }
.dest-body b { display: block; }
.dest-body span { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dest .toggle-only { appearance: none; flex: none; width: 42px; height: 26px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background 0.2s; }
.dest .toggle-only::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 0.2s; }
.dest .toggle-only:checked { background: var(--brand); }
.dest .toggle-only:checked::after { transform: translateX(16px); }
.dest-remove { border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px; }
.add-dest { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; }
.add-dest select { font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2); border: 0; border-radius: 12px; padding: 0 10px; max-width: 120px; }
.add-dest input { font-size: 14px; padding: 10px 12px; min-width: 0; }

/* ---------- search, ask and collections ---------- */
.ask { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 4px 6px 4px 12px; margin: 0 0 10px; color: var(--muted); }
.ask input { border: 0; background: transparent; padding: 10px 0; flex: 1; min-width: 0; }
.ask input:focus { background: transparent; }
.ask .chip-btn { background: var(--brand-soft); color: var(--brand); }
.ask-answer { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; margin: 0 0 12px; border-left: 3px solid var(--brand); animation: rise 0.25s ease; }
.ask-answer p { margin: 0 0 6px; font-size: 15px; line-height: 1.5; }
.ask-answer ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.ask-answer a { color: var(--brand); font-weight: 600; text-decoration: none; }
.collections { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.collections::-webkit-scrollbar { display: none; }
.col { flex: none; border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.col small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.col.on { background: var(--brand); color: var(--brand-ink); }
.col.on small { color: inherit; opacity: 0.8; }
.item-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.item-badges span { font-size: 11.5px; font-weight: 600; color: var(--accent); background: var(--surface-2); padding: 2px 8px; border-radius: 999px; }
.none { list-style: none; padding: 12px 4px; }

/* ---------- destinations form ---------- */
.add-dest { display: grid; grid-template-columns: 1fr; gap: 8px; }
.dest-fields { display: grid; gap: 8px; }
.add-dest .btn { justify-self: start; }
#dest-help { margin: 0; }
select { font: inherit; font-size: 15px; color: var(--text); background: var(--surface-2); border: 1.5px solid transparent; border-radius: 12px; padding: 11px 12px; width: 100%; }
select:focus { border-color: var(--brand); outline: none; }
.mode .rec { align-self: flex-start; margin: 2px 0 0; }
.add-dest select { max-width: none; padding: 11px 12px; font-size: 15px; }
.add-dest input { font-size: 15px; }
.toggle input:disabled { opacity: 0.4; cursor: not-allowed; }

/* =====================================================================
   Appy redesign: big colourful tiles, emoji categories, tap feedback,
   fewer words. Category colours come from --c on .c-* classes.
   ===================================================================== */
.c-orange { --c: #f97316; } .c-red { --c: #ef4444; } .c-green { --c: #16a34a; } .c-violet { --c: #8b5cf6; }
.c-blue { --c: #3b82f6; } .c-teal { --c: #0d9488; } .c-yellow { --c: #eab308; } .c-slate { --c: #64748b; }
.c-pink, .c-all { --c: #db2777; }

body[data-plan='flick'] .plus-only { display: none !important; }

body {
  background:
    radial-gradient(600px 300px at 110% -60px, color-mix(in srgb, #fb923c 22%, transparent), transparent 70%),
    radial-gradient(500px 280px at -20% 120px, color-mix(in srgb, #db2777 14%, transparent), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
.brand span { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; }
.brand img { width: 40px; height: 40px; }

/* tap feedback everywhere */
.tool, .send-btn, .item, .col, .hit, .xtile, .plan-card, .ask-btn, .btn, .icon-btn {
  transition: transform 0.12s cubic-bezier(.3,1.6,.6,1), box-shadow 0.15s, background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.tool:active, .send-btn:active, .item:active, .col:active, .hit:active, .xtile:active, .plan-card:active, .ask-btn:active, .btn:active { transform: scale(0.95); }

/* composer */
.composer { border-radius: 28px; padding: 14px; }
.composer textarea { font-size: 17px; min-height: 64px; border-radius: 18px; }
.compose-bar { align-items: center; }
.compose-tools { gap: 10px; }
.tool {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 64px; height: 64px; border: 0; border-radius: 20px; cursor: pointer; font: inherit;
  background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: var(--text);
}
.tool span { font-size: 24px; line-height: 1; }
.tool b { font-size: 11.5px; font-weight: 800; color: color-mix(in srgb, var(--c) 75%, var(--text)); }
.tool-orange { --c: #f97316; } .tool-violet { --c: #8b5cf6; } .tool-pink { --c: #db2777; }
.send-btn { height: 64px; padding: 0 26px; border-radius: 22px; font-size: 18px; font-weight: 800; box-shadow: 0 10px 24px -8px rgba(219, 39, 119, 0.55); }
.send-btn svg { width: 22px; height: 22px; }

/* section head */
.section-head { margin-top: 6px; }
.section-title { font-size: 20px; letter-spacing: -0.01em; text-transform: none; color: var(--text); font-weight: 900; }

/* search + ask */
.ask { height: 56px; border-radius: 999px; padding: 0 6px 0 18px; box-shadow: var(--shadow); }
.ask input { font-size: 17px; }
.ask-btn {
  border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 15px; height: 44px; padding: 0 18px; border-radius: 999px; color: #fff;
  background: linear-gradient(120deg, #8b5cf6, #db2777); box-shadow: 0 8px 18px -8px rgba(139, 92, 246, 0.7);
}
.ask-answer {
  background: none; box-shadow: none; border: 0; border-radius: 0; padding: 4px 6px 12px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; line-height: 1.4;
}
.ask-think { font-size: 20px; animation: pop 0.6s ease infinite alternate; }
.ask-hits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 4px; }
.hit {
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 22px; min-height: 104px; text-decoration: none; color: var(--text);
  background: color-mix(in srgb, var(--c) 16%, var(--surface)); animation: rise 0.3s ease both;
}
.hit:nth-child(2) { animation-delay: 0.05s; } .hit:nth-child(3) { animation-delay: 0.1s; } .hit:nth-child(4) { animation-delay: 0.15s; }
.hit-e { font-size: 28px; }
.hit b { font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* collections: fat emoji chips */
.collections { gap: 8px; padding: 2px 0 14px; }
.col {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 12px; font-size: 15px; font-weight: 800;
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--text); border-radius: 999px;
}
.col span { font-size: 19px; }
.col small { background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: var(--text); border-radius: 999px; padding: 1px 7px; font-size: 12px; margin-left: 2px; }
.col.on { background: var(--c); color: #fff; box-shadow: 0 8px 18px -10px var(--c); }
.col.on small { background: rgba(255, 255, 255, 0.25); color: #fff; }

/* saves list: colourful tiles, title first, no paragraphs */
.list { gap: 10px; }
.item { border-radius: 22px; padding: 12px 14px 12px 12px; gap: 14px; align-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 6px 16px -10px rgba(42, 22, 16, 0.25); }
.item-icon { width: 56px; height: 56px; border-radius: 18px; font-size: 28px; background: color-mix(in srgb, var(--c, #db2777) 18%, var(--surface)); }
.item-title { font-size: 16.5px; font-weight: 800; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { margin-top: 4px; font-size: 13px; align-items: center; }
.item-summary, .tag, .item-badges { display: none; }
.badge { font-size: 15px; margin-left: 2px; }
.empty img { width: 88px; height: 88px; }

/* settings: plan card */
.plan-card {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; cursor: pointer; color: #fff; margin: 4px 0 18px;
  background: linear-gradient(125deg, #fb923c, #db2777 55%, #8b5cf6); box-shadow: 0 14px 30px -14px rgba(219, 39, 119, 0.7);
}
.plan-emoji { font-size: 34px; }
.plan-text { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.plan-text b { font-size: 20px; font-weight: 900; }
.plan-text small { font-size: 13.5px; opacity: 0.92; line-height: 1.35; }
.plan-card input { appearance: none; flex: none; width: 54px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.35); position: relative; cursor: pointer; border: 0; padding: 0; }
.plan-card input::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 0.2s cubic-bezier(.3,1.6,.6,1); }
.plan-card input:checked { background: rgba(255,255,255,.55); }
.plan-card input:checked::after { transform: translateX(22px); }
.plan-card input:disabled { opacity: 1; }
body[data-plan='plus'] .plan-card { background: linear-gradient(125deg, #8b5cf6, #db2777); }

/* settings: extras as tiles */
.xgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xtile {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; min-height: 112px; border-radius: 22px; cursor: pointer;
  background: color-mix(in srgb, var(--c) 10%, var(--surface)); color: var(--text); border: 2px solid transparent;
}
.xtile input { position: absolute; opacity: 0; pointer-events: none; }
.xtile .xe { font-size: 28px; filter: grayscale(0.7); opacity: 0.7; transition: filter 0.15s, opacity 0.15s, transform 0.2s cubic-bezier(.3,1.6,.6,1); }
.xtile b { font-size: 15px; font-weight: 800; line-height: 1.2; }
.xtile small { font-size: 12.5px; color: var(--muted); }
.xtile::after {
  content: ''; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--c) 40%, var(--surface)); background: var(--surface);
}
.xtile:has(input:checked) { background: var(--c); color: #fff; box-shadow: 0 10px 22px -12px var(--c); }
.xtile:has(input:checked) small { color: rgba(255, 255, 255, 0.85); }
.xtile:has(input:checked) .xe { filter: none; opacity: 1; transform: scale(1.12) rotate(-6deg); }
.xtile:has(input:checked)::after { border-color: #fff; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23db2777' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.xtile:has(input:focus-visible) { outline: 3px solid var(--c); outline-offset: 2px; }
.x-red { --c: #ef4444; } .x-violet { --c: #8b5cf6; } .x-orange { --c: #f97316; } .x-green { --c: #16a34a; } .x-blue { --c: #3b82f6; } .x-pink { --c: #db2777; }

/* settings: friendlier section headings and mode cards */
.set-group h3 { font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 900; }
.mode { border-radius: 20px; padding: 14px 16px; }
.toggle { border-radius: 20px; }
.ask-answer > span:nth-child(2) { flex: 1; min-width: 0; }
.hit b { color: var(--text); }
.redeem { display: flex; gap: 8px; margin: -6px 0 16px; }
.redeem input { flex: 1; min-width: 0; height: 48px; border-radius: 999px; padding: 0 16px; }
.redeem .ask-btn { height: 48px; }
.admin-link { display: block; text-align: center; margin: -4px 0 16px; padding: 12px; border-radius: 18px; font-weight: 800; text-decoration: none; color: var(--text); background: color-mix(in srgb, #eab308 18%, var(--surface)); }

/* =====================================================================
   Bright home: a vivid, slowly shifting colour band behind the top
   ===================================================================== */
.home-glow { position: absolute; left: 0; right: 0; top: 0; height: 330px; overflow: hidden; z-index: 0; pointer-events: none;
  background: linear-gradient(120deg, #fb923c, #f43f5e 45%, #db2777 70%, #a21caf);
  border-radius: 0 0 40px 40px; }
.home-glow i { position: absolute; border-radius: 50%; filter: blur(40px) saturate(1.15); opacity: 1; }
.home-glow i:nth-child(1) { width: 260px; height: 260px; left: -60px; top: -80px; background: radial-gradient(closest-side, #fde047, transparent); animation: hg1 9s ease-in-out infinite alternate; }
.home-glow i:nth-child(2) { width: 300px; height: 300px; right: -90px; top: -40px; background: radial-gradient(closest-side, #8b5cf6, transparent); animation: hg2 11s ease-in-out infinite alternate; }
.home-glow i:nth-child(3) { width: 220px; height: 220px; left: 30%; top: 140px; background: radial-gradient(closest-side, #fb7185, transparent); animation: hg3 8s ease-in-out infinite alternate; }
.home-glow i:nth-child(4) { width: 180px; height: 180px; right: 10%; top: 180px; background: radial-gradient(closest-side, #f97316, transparent); animation: hg4 10s ease-in-out infinite alternate; }
@keyframes hg1 { to { transform: translate(140px, 90px) scale(1.25); filter: blur(40px) saturate(1.15) hue-rotate(-30deg); } }
@keyframes hg2 { to { transform: translate(-160px, 80px) scale(0.85); filter: blur(40px) saturate(1.15) hue-rotate(40deg); } }
@keyframes hg3 { to { transform: translate(-120px, -90px) scale(1.3); } }
@keyframes hg4 { to { transform: translate(-90px, -120px) scale(1.2); filter: blur(40px) saturate(1.15) hue-rotate(-40deg); } }
.app { position: relative; z-index: 1; }
.top .brand span { color: #fff; text-shadow: 0 2px 10px rgba(120, 20, 60, 0.25); }
.top .brand img { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); border-radius: 12px; }
.top .icon-btn { color: #fff; background: rgba(255, 255, 255, 0.18); }
.top .icon-btn:hover { background: rgba(255, 255, 255, 0.3); }
.tagline { margin: -4px 4px 2px; color: #fff; font-weight: 900; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; text-shadow: 0 2px 12px rgba(120, 20, 60, 0.25); }
.tagline span { display: block; color: #fff7d6; }
.composer { box-shadow: 0 18px 40px -14px rgba(120, 20, 60, 0.45); }
body[data-has-saves] .tagline { font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .home-glow i { animation: none; } }

/* =====================================================================
   Share-menu setup after sign-up: big, friendly, animated, 3 steps
   ===================================================================== */
.setup { position: fixed; inset: 0; z-index: 60; overflow-y: auto; display: grid; place-items: center; padding: 20px 16px;
  background: radial-gradient(400px 300px at 10% 0%, rgba(253, 224, 71, 0.55), transparent 70%), radial-gradient(420px 320px at 100% 10%, rgba(139, 92, 246, 0.45), transparent 70%), linear-gradient(160deg, #fff4ee, #ffe4ec); }
:root[data-theme='dark'] .setup { background: radial-gradient(400px 300px at 10% 0%, rgba(251, 146, 60, 0.3), transparent 70%), linear-gradient(160deg, #1f1613, #2a1220); }
:root[data-theme='dark'] .setup { background: radial-gradient(400px 300px at 10% 0%, rgba(251, 146, 60, 0.3), transparent 70%), linear-gradient(160deg, #1f1613, #2a1220); }
.setup-inner { width: 100%; max-width: 400px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.setup h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.setup p { margin: 0; font-size: 16px; }
.setup .btn.big { min-height: 58px; font-size: 18px; font-weight: 800; border-radius: 20px; }
.setup .link-btn { font-weight: 700; }
.su-step { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; animation: su-in 0.35s cubic-bezier(.3,1.4,.6,1); }
@keyframes su-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.su-dots { display: flex; gap: 8px; }
.su-dots i { width: 10px; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 25%, transparent); transition: width 0.3s, background 0.3s; }
.su-dots i.on { width: 30px; background: linear-gradient(90deg, #fb923c, #db2777); }
.su-skip { margin-top: 4px; color: var(--muted) !important; font-size: 14px; }
.setup[data-platform='android'] .su-ios, .setup[data-platform='ios'] .su-android { display: none !important; }

/* the little phone */
.su-phone { --T: 4.5s; width: 200px; height: 300px; border-radius: 34px; background: #1b1210; padding: 9px; box-shadow: 0 24px 40px -18px rgba(120, 20, 60, 0.55); }
.su-scr { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; color: #2a1610; font-size: 11px; }
.su-finger { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: rgba(42, 22, 16, 0.25); border: 3px solid rgba(255, 255, 255, 0.95); box-shadow: 0 2px 8px rgba(0,0,0,.25); opacity: 0; z-index: 5; }

/* Android: install banner -> icon lands on the home grid */
.su-url { margin: 14px 10px 0; padding: 6px 10px; border-radius: 99px; background: #f3ece8; color: #8a6a5e; font-weight: 600; }
.su-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 16px; }
.su-grid b { height: 38px; border-radius: 12px; background: #f1e4dd; }
.su-newicon { width: 38px; height: 38px; border-radius: 12px; transform: scale(0); animation: su-pop var(--T) infinite; }
.su-banner { position: absolute; left: 8px; right: 8px; bottom: 10px; display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.15); font-weight: 700; animation: su-banner var(--T) infinite; }
.su-banner img { width: 26px; height: 26px; border-radius: 8px; }
.su-banner span { flex: 1; text-align: left; }
.su-banner em { font-style: normal; color: #fff; background: #db2777; padding: 6px 10px; border-radius: 99px; }
.su-anim-install .su-finger { right: 14px; bottom: 14px; animation: su-tap1 var(--T) infinite; }
@keyframes su-banner { 0%, 8% { transform: translateY(130%); } 16%, 50% { transform: translateY(0); } 58%, 100% { transform: translateY(130%); } }
@keyframes su-tap1 { 0%, 22% { opacity: 0; transform: translate(30px, 30px); } 32% { opacity: 1; transform: none; } 38% { transform: scale(0.75); } 44% { transform: scale(1); opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes su-pop { 0%, 55% { transform: scale(0); } 65% { transform: scale(1.25); } 72%, 92% { transform: scale(1); } 100% { transform: scale(0); } }

/* iPhone: Add Shortcut */
.su-sc-card { margin: 46px 14px 0; padding: 18px 14px; border-radius: 20px; background: linear-gradient(135deg, #fb923c, #db2777); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.su-sc-card img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.su-sc-card b { font-size: 15px; } .su-sc-card small { opacity: 0.85; }
.su-sc-card em { margin-top: 12px; font-style: normal; font-weight: 800; background: #fff; color: #db2777; padding: 8px 16px; border-radius: 99px; }
.su-check { position: absolute; left: 50%; top: 210px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 24px; font-weight: 900; display: grid; place-items: center; transform: scale(0); animation: su-pop var(--T) infinite; }
.su-anim-shortcut .su-finger { left: 50%; top: 158px; margin-left: -18px; animation: su-tap1 var(--T) infinite; }

/* Android: long-press Flick, Pin, it jumps to the front */
.su-sheet { position: absolute; left: 0; right: 0; bottom: 0; top: 70px; padding: 14px 12px; background: #f7f1ee; border-radius: 22px 22px 0 0; }
.su-t { font-weight: 800; color: #8a6a5e; text-align: left; margin-bottom: 12px; }
.su-apps { position: relative; height: 40px; }
.su-app { position: absolute; top: 0; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--c); }
.su-app.a1 { left: 0; animation: su-s1 var(--T) infinite; } .su-app.a2 { left: 40px; animation: su-s1 var(--T) infinite; } .su-app.a3 { left: 80px; animation: su-s1 var(--T) infinite; }
.su-app.su-fl { left: 120px; animation: su-fl var(--T) infinite; }
.su-pinmenu { position: absolute; left: 84px; top: 88px; padding: 8px 14px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); font-weight: 800; font-size: 13px; opacity: 0; transform: scale(0.8); animation: su-menu var(--T) infinite; }
.su-anim-pin .su-finger { left: 131px; top: 110px; animation: su-press var(--T) infinite; }
@keyframes su-press { 0%, 6% { opacity: 0; transform: translate(20px, 40px); } 14% { opacity: 1; transform: none; } 20%, 34% { transform: scale(0.8); opacity: 1; } 38% { transform: none; } 46% { transform: translate(-18px, 46px); } 50% { transform: translate(-18px, 46px) scale(0.75); } 54% { transform: translate(-18px, 46px); opacity: 1; } 60%, 100% { opacity: 0; transform: translate(-18px, 46px); } }
@keyframes su-menu { 0%, 30% { opacity: 0; transform: scale(0.8); } 36%, 54% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; } }
@keyframes su-fl { 0%, 18% { transform: none; } 24%, 34% { transform: scale(1.18); box-shadow: 0 0 0 5px rgba(219,39,119,.3); } 40%, 56% { transform: none; } 70%, 94% { transform: translateX(-120px) scale(1.1); box-shadow: 0 0 0 4px rgba(219,39,119,.35); } 100% { transform: none; } }
@keyframes su-s1 { 0%, 56% { transform: none; } 70%, 94% { transform: translateX(40px); } 100% { transform: none; } }

/* iPhone: Edit Actions -> Save to Flick joins Favorites at the top */
.su-list { position: relative; text-align: left; }
.su-rest { display: flex; flex-direction: column; gap: 6px; animation: su-rest var(--T) infinite; }
.su-row { position: relative; padding: 9px 12px; border-radius: 12px; background: #fff; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.su-row img { width: 22px; height: 22px; border-radius: 6px; }
.su-row i { margin-left: auto; font-style: normal; }
.su-flrow { position: absolute; left: 0; right: 0; top: 0; background: #ffe8ee; opacity: 0; transform: translateY(140px) scale(0.9); animation: su-flrow var(--T) infinite; z-index: 2; }
.su-edit { color: #3b82f6; }
.su-anim-fav .su-finger { left: 34px; top: 76px; animation: su-tap1 var(--T) infinite; }
@keyframes su-flrow { 0%, 46% { opacity: 0; transform: translateY(140px) scale(0.9); } 60%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes su-rest { 0%, 48% { transform: none; } 60%, 92% { transform: translateY(46px); } 100% { transform: none; } }

/* Try it: the app icon takes off and loops */
.su-launch { height: 160px; display: grid; place-items: center; }
.su-bigplane { width: 120px; height: 120px; border-radius: 34px; box-shadow: 0 20px 40px -14px rgba(219,39,119,.6); animation: su-bob 2.4s ease-in-out infinite; }
.su-bigplane.away { animation: none; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.su-bigplane:not(.away) { transition: opacity .3s .1s, transform .45s .1s cubic-bezier(.2,1.5,.4,1); }
#su-try.sent-ok { background: linear-gradient(135deg, #16a34a, #22c55e); animation: act-pop .45s cubic-bezier(.2,1.5,.4,1); }
@keyframes su-bob { 50% { transform: translateY(-10px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .su-phone *, .su-bigplane, .su-step { animation: none !important; } .su-finger { display: none; } .su-newicon, .su-check { transform: none; } }

/* Android: Chrome's share hub -> More -> the system sheet, with Flick up front */
.su-hub, .su-sys { top: 96px; }
.su-hub { animation: su-hub var(--T) infinite; }
.su-sys { opacity: 0; animation: su-sys var(--T) infinite; }
.su-hubrow, .su-sysrow { display: flex; justify-content: space-between; }
.su-hubrow span { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; position: relative; }
.su-hubrow i { position: absolute; top: 40px; font-style: normal; font-size: 9px; font-weight: 700; color: #8a6a5e; white-space: nowrap; }
.su-more { background: #ffe8ee !important; color: #db2777; font-weight: 900; }
.su-sysrow img, .su-sysrow span { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; background: var(--c); }
.su-sysrow img { box-shadow: 0 0 0 4px rgba(219,39,119,.3); animation: su-flglow var(--T) infinite; }
.su-rise { margin-top: 26px; padding: 7px 10px; border-radius: 12px; background: #fff; font-weight: 800; font-size: 10.5px; color: #be185d; text-align: center; }
.su-anim-find .su-finger { left: 124px; top: 108px; animation: su-findtap var(--T) infinite; }
@keyframes su-hub { 0%, 36% { opacity: 1; transform: none; } 42%, 96% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; } }
@keyframes su-sys { 0%, 38% { opacity: 0; transform: translateY(30px); } 46%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes su-findtap { 0%, 8% { opacity: 0; transform: translate(20px, 40px); } 18% { opacity: 1; transform: none; } 24% { transform: scale(0.75); } 30% { transform: none; opacity: 1; } 36% { opacity: 0; } 50% { opacity: 0; transform: translate(-112px, 0); } 58% { opacity: 1; transform: translate(-112px, 0); } 64% { transform: translate(-112px, 0) scale(0.75); } 70% { opacity: 1; transform: translate(-112px, 0); } 78%, 100% { opacity: 0; transform: translate(-112px, 0); } }
@keyframes su-flglow { 0%, 60% { transform: none; } 66% { transform: scale(1.2); } 74%, 100% { transform: none; } }

/* "Simple" and its Default badge stay on one line */
.mode .mode-t { flex-direction: row; align-items: center; gap: 6px; flex-wrap: nowrap; }
.mode .mode-t .rec { align-self: center; margin: 0; white-space: nowrap; }

/* Prefix ideas under the subject prefix field */
.prefix-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: -4px; }
.prefix-pills button { font: 600 13px/1 inherit; font-family: inherit; color: var(--text); background: var(--surface-2); border: 1.5px solid transparent; border-radius: 999px; padding: 8px 12px; min-height: 34px; cursor: pointer; }
.prefix-pills button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.android-only { display: none; }
html.is-android .android-only { display: flex; }

/* Danger zone */
.danger-zone { margin-top: 10px; border: 1.5px solid color-mix(in srgb, var(--danger) 35%, transparent); border-radius: 18px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.danger-zone h3 { margin: 0; color: var(--danger); font-size: 15px; }
.danger-zone p { margin: 0; }
.danger-btn { background: var(--danger); color: #fff; border: 0; }
.danger-btn:disabled { opacity: 0.45; }
.delete-confirm { display: flex; flex-direction: column; gap: 10px; }
.delete-confirm[hidden] { display: none; }
.row-btns { display: flex; gap: 8px; }
.row-btns .btn { flex: 1; }

/* ---------- line icons (one crisp set for Android and iPhone) ---------- */
.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tool .ic { width: 26px; height: 26px; color: color-mix(in srgb, var(--c) 88%, var(--text)); }
.ask-btn { display: inline-flex; align-items: center; gap: 6px; }
.ask-btn .ic { width: 18px; height: 18px; }
.ask-think.ic { width: 20px; height: 20px; color: var(--brand); }
.hit-e.ic { width: 26px; height: 26px; color: var(--c); }
.dest-ic .ic { width: 20px; height: 20px; }
.xtile .xe.ic { width: 26px; height: 26px; color: var(--c); }
.col .ic { width: 17px; height: 17px; color: var(--c); }
.col.on .ic { color: #fff; }
.item-icon .ic { width: 26px; height: 26px; color: var(--c, #db2777); }
.item-icon.has-fav { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.item-icon.has-fav .ic { display: none; }
.item-icon img.fav { width: 30px; height: 30px; border-radius: 8px; object-fit: contain; }

/* the chip row trails off at the edge so it reads as swipeable */
.collections { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; --fl: 0px; --fr: 44px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.collections::-webkit-scrollbar { display: none; }
.collections.at-end { --fr: 0px; }
.collections.scrolled { --fl: 28px; }

/* saves count: one tap cycles today, this week, all time */
.count-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: linear-gradient(120deg, #fb923c, #db2777); box-shadow: 0 6px 14px -8px rgba(219, 39, 119, 0.7); border-radius: 999px; padding: 6px 10px 6px 12px; min-height: 32px; }
.count-btn b { font-weight: 900; }
.count-btn .ic { width: 14px; height: 14px; opacity: 0.8; }
.count-btn:active { transform: scale(0.95); }
.range-empty { list-style: none; text-align: center; color: var(--muted); font-size: 14px; padding: 18px 8px; }
.range-empty button { border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* Read later */
.item-wrap { position: relative; list-style: none; }
.item-wrap .item { padding-right: 52px; }
.item-snooze { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.item-snooze .ic { width: 20px; height: 20px; }
.item-snooze:active { background: var(--brand-soft); color: var(--brand); }
.small-sheet { max-width: 460px; }
.snooze-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.snooze-grid button { border: 0; border-radius: 18px; padding: 16px 12px; background: var(--brand-soft); color: var(--text); font: inherit; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; cursor: pointer; }
.snooze-grid b { font-size: 16px; color: var(--brand); }
.snooze-grid small { color: var(--muted); }
.snooze-grid button:active { transform: scale(0.97); }
/* Gmail labels */
.gmail-only { display: none; }
html.is-gmail .gmail-only { display: flex; }
.gmail-steps { background: var(--surface-2); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.gmail-steps[hidden] { display: none; }
.gmail-steps ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.btn .ic { width: 18px; height: 18px; vertical-align: -4px; }

/* Setup step 1: where your flicks go */
.setup { grid-template-columns: minmax(0, 1fr); }
.su-step, .su-dest, .su-inbox { min-width: 0; max-width: 100%; box-sizing: border-box; }
.su-dest { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin-bottom: 4px; }
.su-inbox { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 20px; background: var(--surface); box-shadow: 0 14px 34px rgba(219, 39, 119, 0.18); animation: su-pop 0.5s cubic-bezier(.3,1.5,.5,1) both; }
.su-inbox > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.su-inbox small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.su-inbox b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-inbox-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #fb923c, #db2777); color: #fff; }
.su-inbox-ic .ic { width: 24px; height: 24px; }
.su-ok { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #18a058; color: #fff; box-sizing: border-box; }
.su-dest-more { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.su-dest-more > span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; color: var(--text); opacity: 0.85; animation: su-pop 0.45s cubic-bezier(.3,1.5,.5,1) both; }
.su-dest-more > span:nth-child(1) { animation-delay: 0.12s; } .su-dest-more > span:nth-child(2) { animation-delay: 0.18s; } .su-dest-more > span:nth-child(3) { animation-delay: 0.24s; } .su-dest-more > span:nth-child(4) { animation-delay: 0.3s; }

.setup:not(.is-gmail) .su-gmail { display: none; }
@keyframes su-pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.plan-emoji .ic { width: 26px; height: 26px; color: #fff; }
.dest-cta { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, transparent); cursor: pointer; color: var(--text); }
.dest-cta::-webkit-details-marker { display: none; }
.dest-cta-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #fb923c, #db2777); color: #fff; font-size: 22px; font-weight: 700; line-height: 1; }
.dest-cta-t { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.dest-cta-t small { color: var(--muted); font-size: 12.5px; }
.add-dest-wrap[open] .dest-cta { margin-bottom: 10px; }

/* ---------- swipe to archive / read later ---------- */
.item-wrap { position: relative; list-style: none; border-radius: 22px; transition: height .2s cubic-bezier(.3,.7,.4,1), margin .2s, opacity .2s; }
.item-wrap.collapsing { overflow: hidden; opacity: 0; margin-top: -10px; }
.item-fg { position: relative; z-index: 1; touch-action: pan-y; will-change: auto; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.item-wrap.swiping .item-fg { will-change: transform; }
.item-wrap.swiping .item { box-shadow: 0 12px 30px -12px rgba(42, 22, 16, 0.45); }
.swipe-bg { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; opacity: 0; display: flex; align-items: center; color: #fff; pointer-events: none; }
.item-wrap.swiping .swipe-bg, .item-wrap.dir-left .swipe-bg, .item-wrap.dir-right .swipe-bg { opacity: 1; }
.swipe-bg .sb { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 22px; font-size: 14px; }
.swipe-bg .sb b { font-weight: 800; }
.swipe-bg .sb .ic { width: 24px; height: 24px; transition: transform .18s cubic-bezier(.2,1.6,.4,1); }
.swipe-bg .sb:first-child { justify-content: flex-start; }
.swipe-bg .sb:last-child { justify-content: flex-start; flex-direction: row-reverse; }
.item-wrap.dir-left .swipe-bg .sb:first-child, .item-wrap.dir-right .swipe-bg .sb:last-child { display: none; }
.sb-archive { background: linear-gradient(90deg, #db2777, #8b5cf6); }
.sb-later { background: linear-gradient(90deg, #0d9488, #14b8a6); }
.sb-restore { background: linear-gradient(90deg, #16a34a, #22c55e); }
.item-wrap:not(.armed) .swipe-bg .sb { filter: saturate(.7) brightness(1.05); }
.item-wrap.armed .swipe-bg .sb .ic { transform: scale(1.3); }
.item-wrap.hint .item-fg { animation: swipe-hint 2s cubic-bezier(.4,0,.2,1) both; }
@keyframes swipe-hint { 0%, 100% { transform: none; } 20%, 45% { transform: translate3d(-72px,0,0); } 60% { transform: none; } 72% { transform: translate3d(-28px,0,0); } 84% { transform: none; } }
.pill-arch { font-size: 11px; font-weight: 700; color: #6d28d9; background: color-mix(in srgb, #8b5cf6 16%, transparent); padding: 1px 7px; border-radius: 99px; }
.c-archived { --c: #8b5cf6; display: inline-flex; align-items: center; gap: 5px; }
.col.c-archived .ic { width: 15px; height: 15px; }
.badge .ic { width: 13px; height: 13px; vertical-align: -2px; color: var(--muted); }

/* ---------- multi-select ---------- */
.sel-check { display: none; }
body.selecting .item-wrap .item-icon { position: relative; }
body.selecting .sel-check { display: grid; place-items: center; position: absolute; inset: 0; border-radius: inherit; background: var(--surface); border: 2px solid var(--line); box-sizing: border-box; transition: background .15s, border-color .15s; }
body.selecting .item-wrap.selected .sel-check { background: var(--brand); border-color: var(--brand); }
body.selecting .item-wrap.selected .sel-check::after { content: ''; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
body.selecting .item-wrap.selected .item { outline: 2px solid var(--brand); outline-offset: -2px; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
body.selecting .item-snooze { visibility: hidden; }
.select-bar { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 25; display: flex; align-items: center; gap: 4px; max-width: 560px; margin: 0 auto; padding: 8px; border-radius: 22px; background: var(--text); color: var(--bg); box-shadow: 0 16px 40px rgba(0,0,0,.3); animation: bar-up .26s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes bar-up { from { transform: translateY(30px); opacity: 0; } }
.select-bar b { flex: 1; min-width: 0; font-size: 14px; padding-left: 4px; white-space: nowrap; }
.select-bar button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; border-radius: 14px; }
.sb-close { width: 40px; height: 40px; display: grid; place-items: center; }
.sb-close .ic { width: 20px; height: 20px; }
.sb-act { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; font-size: 11.5px; font-weight: 700; min-width: 56px; }
.sb-act .ic { width: 20px; height: 20px; }
.sb-act:active, .sb-close:active { background: rgba(255,255,255,.12); }
.sb-danger { color: #fca5a5; }
.sb-danger.confirm { background: #dc2626; color: #fff; }
body.selecting .toast { bottom: calc(env(safe-area-inset-bottom) + 86px); }
.tag-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag-picks button { border: 0; font: inherit; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 999px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.tag-picks button:active { background: var(--brand); color: var(--brand-ink); }
.tag-own { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }

/* Undo and other toast actions: still a floating pill, nothing moves underneath. */
.toast.has-action { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; }
.toast-act { border: 0; background: color-mix(in srgb, var(--bg) 16%, transparent); color: #fdba74; font: inherit; font-weight: 800; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .item-wrap.hint .item-fg { animation: none; } }
/* The toast never blocks the row under it; only its button takes taps. */
.toast { pointer-events: none; }
.toast-act { pointer-events: auto; }
body.selecting .app { padding-bottom: 96px; }

/* First open: new or existing? */
.ob-choices { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 6px; }
.ob-choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 0; font: inherit; cursor: pointer; padding: 16px 18px; border-radius: 22px; color: var(--text); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 24px -14px rgba(42, 22, 16, 0.35); transition: transform .15s; animation: su-pop .45s cubic-bezier(.3,1.5,.5,1) both; }
.ob-choice:active { transform: scale(.98); }
.ob-choice > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-choice b { font-size: 17px; font-weight: 800; }
.ob-choice small { font-size: 13.5px; color: var(--muted); }
.ob-choice-ic { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.ob-choice-ic .ic { width: 24px; height: 24px; }
.ob-new { background: linear-gradient(135deg, #fb923c, #db2777); color: #fff; animation-delay: .05s; }
.ob-new small { color: rgba(255,255,255,.88); }
.ob-new .ob-choice-ic { background: rgba(255,255,255,.22); }
.ob-back { animation-delay: .12s; }
.ob-back .ob-choice-ic { background: linear-gradient(135deg, #8b5cf6, #3b82f6); }

/* Real brand marks: white glyph on the brand's own color, like an app icon. */
.bt { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-style: normal; }
.bt svg { width: 13px; height: 13px; fill: #fff; }
.dest-ic.brand { color: #fff; }
.dest-ic.brand svg { width: 20px; height: 20px; fill: #fff; }
.su-hubrow .ic { width: 16px; height: 16px; color: #5b4037; }

/* Action buttons answer in place */
.act-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .25s, color .25s, transform .15s; }
.stack .act-btn { justify-content: flex-start; }
.act-btn.is-busy { pointer-events: none; opacity: .92; }
.act-spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin .7s linear infinite; flex: none; }
.act-btn.is-done { background: #dcfce7 !important; color: #166534 !important; animation: act-pop .38s cubic-bezier(.2,1.5,.4,1); }
.act-btn.is-err { background: #fee2e2 !important; color: #991b1b !important; animation: act-shake .35s ease; }
.act-btn svg.act-ck, .act-btn svg.act-x { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.act-ck path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .35s .05s ease forwards; }
@keyframes act-pop { 0% { transform: scale(.97); } 60% { transform: scale(1.02); } 100% { transform: none; } }
@keyframes act-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
:root[data-theme='dark'] .act-btn.is-done { background: #14532d !important; color: #bbf7d0 !important; }
:root[data-theme='dark'] .act-btn.is-done { background: #14532d !important; color: #bbf7d0 !important; } :root[data-theme='dark'] .act-btn.is-err { background: #7f1d1d !important; color: #fecaca !important; }
.other-devices summary { cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; color: var(--muted); padding: 8px 4px; }
.other-devices summary::-webkit-details-marker { display: none; }
.other-devices summary::before { content: '+ '; }
.other-devices[open] summary::before { content: '− '; }

/* Row actions: the clock everywhere; Archive and More on hover with a mouse. */
.row-acts { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); z-index: 2; display: flex; align-items: center; gap: 2px; border-radius: 999px; }
.row-acts .item-snooze { position: static; transform: none; }
.ra { width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: none; place-items: center; cursor: pointer; }
.ra .ic { width: 20px; height: 20px; }
.ra:hover, .row-acts .item-snooze:hover { background: var(--brand-soft); color: var(--brand); }
.in-archive .ra-arch { display: grid; }
@media (hover: hover) and (pointer: fine) {
  .row-acts { background: var(--surface); box-shadow: -18px 0 14px -6px var(--surface); padding-left: 4px; }
  .item-wrap:hover .ra, .item-wrap.kfocus .ra, .item-wrap:focus-within .ra { display: grid; }
  .item-wrap.kfocus .item { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
  .item-fg { cursor: default; }
}
.kbd-btn { display: none; margin-left: auto; margin-right: 8px; width: 34px; height: 34px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--muted); place-items: center; cursor: pointer; }
.kbd-btn .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .kbd-btn { display: grid; } }
.kbd-list { margin: 0; display: grid; gap: 10px; }
.kbd-list div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.kbd-list dt { font-weight: 700; } .kbd-list dd { margin: 0; color: var(--muted); text-align: right; }
kbd { display: inline-block; min-width: 22px; padding: 2px 7px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 2px; font: 700 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; color: var(--text); }
.row-menu { position: fixed; z-index: 40; min-width: 200px; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: 0 18px 50px rgba(42, 22, 16, .28), 0 0 0 1px var(--line); animation: menu-in .14s ease-out both; }
@keyframes menu-in { from { opacity: 0; transform: scale(.96); } }
.row-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); padding: 9px 12px; border-radius: 10px; cursor: pointer; text-align: left; }
.row-menu button:hover, .row-menu button:focus-visible { background: var(--brand-soft); color: var(--brand); outline: none; }
.row-menu button .ic { width: 18px; height: 18px; }
.row-menu button kbd { margin-left: auto; }
.row-menu .rm-danger { color: #dc2626; }
.row-menu .rm-danger.confirm { background: #dc2626; color: #fff; }
.row-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }

/* Practice share: the real Share menu, with a coach pointing at Flick */
.su-share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.su-share-btn .ic { width: 22px; height: 22px; }
.su-coach { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 20px calc(env(safe-area-inset-bottom) + 40vh); background: linear-gradient(to bottom, rgba(42,22,16,.15), rgba(42,22,16,.55)); animation: su-in .25s ease both; }
.su-coach-card { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 22px; border-radius: 22px; background: #fff; color: #2a1610; box-shadow: 0 18px 40px rgba(120,20,40,.3); text-align: center; }
.su-coach-card b { font-size: 19px; font-weight: 900; background: linear-gradient(120deg, #F26B4F, #DB2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.su-coach-card span { font-size: 14px; color: #6b4f45; }
.su-coach-arrow { width: 40px; height: 54px; fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); animation: coach-bob 1s ease-in-out infinite; }
@keyframes coach-bob { 50% { transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .su-coach-arrow { animation: none; } }

/* Clipboard catch: one tap to flick the link you just copied */
.clip-offer { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 10px 10px 12px; border-radius: 22px; background: var(--surface); box-shadow: 0 12px 30px -10px rgba(120,20,40,.35), 0 0 0 2px color-mix(in srgb, #DB2777 35%, transparent); animation: pillin .45s cubic-bezier(.2,1.5,.4,1) both; }
.clip-offer img { flex: none; width: 36px; height: 36px; border-radius: 10px; background: #fff; object-fit: contain; }
.clip-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.clip-tx b { font-size: 15px; }
.clip-tx span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-go { flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 800; }
.clip-x { flex: none; }

/* The 5-second loop: an app, Share, Flick, and the email arriving. */
#onboard:has(#ob-step-choice:not([hidden])) .onboard-logo { display: none; }
.ploop { --T: 5.2s; display: grid; place-items: center; margin: 0 0 6px; }
.pl-phone { width: 168px; height: 300px; border-radius: 30px; padding: 7px; background: #1d1412; box-shadow: 0 24px 50px -18px rgba(120,20,40,.55), inset 0 0 0 2px #3a2a26; }
.pl-scr { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; background: #fff; }
.pl-app { position: absolute; inset: 0; padding: 12px 12px 0; display: flex; flex-direction: column; gap: 8px; }
.pl-bar { display: flex; align-items: center; gap: 8px; height: 22px; }
.pl-bar i { width: 18px; height: 18px; border-radius: 6px; background: #22C55E; }
.pl-bar b { flex: 1; height: 8px; border-radius: 4px; background: #eadfdb; }
.pl-share { width: 18px; height: 18px; fill: none; stroke: #5b4037; stroke-width: 2.2; stroke-linecap: round; border-radius: 50%; animation: pl-sharetap var(--T) infinite; }
.pl-img { height: 92px; border-radius: 12px; background: linear-gradient(135deg, #FDBA74, #F97316 50%, #84CC16); }
.pl-l { display: block; height: 8px; border-radius: 4px; background: #eadfdb; } .pl-l.s { width: 70%; }
.pl-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 12px 18px; border-radius: 18px 18px 0 0; background: #f6f1ef; box-shadow: 0 -10px 30px rgba(0,0,0,.18); transform: translateY(105%); animation: pl-sheet var(--T) infinite; }
.pl-st { font: 700 11px/1 system-ui, sans-serif; color: #6b4f45; margin-bottom: 10px; }
.pl-apps { display: flex; gap: 10px; }
.pl-apps span { width: 30px; height: 30px; border-radius: 9px; background: var(--c); }
.pl-flick { background: none !important; animation: pl-ring var(--T) infinite; border-radius: 9px; }
.pl-flick img { width: 30px; height: 30px; border-radius: 9px; display: block; }
.pl-plane { position: absolute; left: 50%; top: 58%; width: 54px; height: 54px; margin: -27px; opacity: 0; filter: drop-shadow(0 6px 8px rgba(120,20,40,.3)); animation: pl-fly var(--T) infinite; }
.pl-pill { position: absolute; left: 50%; bottom: 22px; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 6px; border-radius: 999px; background: #2a1610; color: #fff; font: 800 12px/1 system-ui, sans-serif; transform: translate(-50%, 20px) scale(.7); opacity: 0; animation: pl-pill var(--T) infinite; }
.pl-pill i { width: 16px; height: 16px; border-radius: 50%; background: #18a058; }
.pl-note { position: absolute; left: 6px; right: 6px; top: 6px; display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 10px 24px rgba(42,22,16,.25); transform: translateY(-120%); animation: pl-note var(--T) infinite; text-align: left; }
.pl-g { flex: none; width: 24px; height: 24px; border-radius: 7px; background: #EA4335; display: grid; place-items: center; }
.pl-g svg { width: 14px; height: 14px; fill: #fff; }
.pl-note b { display: block; font: 800 10.5px/1.25 system-ui, sans-serif; color: #2a1610; }
.pl-note small { display: block; font: 500 9px/1.3 system-ui, sans-serif; color: #8a6a5e; }
.pl-finger { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: rgba(42,22,16,.28); box-shadow: 0 0 0 3px rgba(255,255,255,.8); left: 120px; top: 10px; opacity: 0; animation: pl-finger var(--T) infinite; }
@keyframes pl-finger { 0%, 6% { opacity: 0; transform: translate(10px, 30px); } 12% { opacity: 1; transform: none; } 16% { transform: scale(.82); } 20% { opacity: 1; transform: none; } 24% { opacity: 0; } 30% { opacity: 0; left: 14px; top: 240px; transform: translate(14px, 24px); } 36% { opacity: 1; left: 14px; top: 240px; transform: none; } 40% { left: 14px; top: 240px; transform: scale(.82); } 44% { opacity: 1; left: 14px; top: 240px; transform: none; } 48%, 100% { opacity: 0; left: 14px; top: 240px; } }
@keyframes pl-sharetap { 0%, 14% { background: transparent; } 16% { background: #eadfdb; } 22%, 100% { background: transparent; } }
@keyframes pl-sheet { 0%, 20% { transform: translateY(105%); } 27%, 44% { transform: none; } 50%, 100% { transform: translateY(105%); } }
@keyframes pl-ring { 0%, 36% { box-shadow: none; } 40% { box-shadow: 0 0 0 4px #F472B6; } 46%, 100% { box-shadow: none; } }
@keyframes pl-fly { 0%, 44% { opacity: 0; transform: scale(.4) rotate(-10deg); } 48% { opacity: 1; transform: scale(1) rotate(-6deg); } 52% { transform: translate(-6px, 6px) rotate(-12deg); } 62% { opacity: 1; transform: translate(70px, -150px) rotate(10deg) scale(.6); } 64%, 100% { opacity: 0; transform: translate(80px, -170px) scale(.5); } }
@keyframes pl-pill { 0%, 52% { opacity: 0; transform: translate(-50%, 20px) scale(.7); } 57% { opacity: 1; transform: translate(-50%, 0) scale(1.06); } 60%, 72% { opacity: 1; transform: translate(-50%, 0) scale(1); } 77%, 100% { opacity: 0; transform: translate(-50%, 10px) scale(.95); } }
@keyframes pl-note { 0%, 66% { transform: translateY(-120%); } 72%, 93% { transform: none; } 99%, 100% { transform: translateY(-120%); } }
@media (prefers-reduced-motion: reduce) { .ploop * { animation: none !important; } .pl-note { transform: none; } }

/* Arrived from the website's Install button */
.ob-install { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px; border-radius: 26px; background: var(--surface); box-shadow: 0 16px 40px -14px rgba(219,39,119,.4); animation: su-in .35s cubic-bezier(.3,1.4,.6,1); }
.ob-install img { border-radius: 18px; box-shadow: 0 10px 24px rgba(219,39,119,.3); }
.ob-install h2 { margin: 4px 0 0; font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.ob-install p { margin: 6px 0 12px; }
#onboard:has(#ob-install:not([hidden])) .ploop { display: none; }
.su-sysrow span .ic { width: 18px; height: 18px; color: #fff; }
.su-flrow i .ic { width: 16px; height: 16px; color: #F59E0B; }
.file-chip .ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* The save sheet */
.ss-head { display: flex; gap: 14px; align-items: center; }
.ss-head .item-icon { flex: none; }
.ss-site { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.ss-head h2 { margin: 2px 0 0; font-size: 21px; line-height: 1.25; font-weight: 900; letter-spacing: -.01em; }
.ss-gist { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.ss-main { display: flex; gap: 8px; margin: 16px 0 4px; flex-wrap: wrap; }
.ss-main .btn { flex: 1 1 0; min-width: 96px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 16px; font-weight: 800; }
.ss-main .btn .ic { width: 19px; height: 19px; }
.ss-main .btn small { font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #dcfce7; color: #166534; }
.ss-card { margin: 16px 0 0; padding: 16px 18px; border-radius: 20px; }
.ss-card h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; font-size: 12.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.ss-card h3 .ic { width: 18px; height: 18px; }
.ss-card h3 small { font-size: 11.5px; letter-spacing: 0; text-transform: none; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.7); }
.ss-card h4 { margin: 12px 0 6px; font-size: 14px; }
.ss-card p { margin: 4px 0 0; line-height: 1.5; }
.ss-big { display: block; font-size: 17px; }
.k-recipe { background: #FFF1E2; color: #431407; } .k-recipe h3 { color: #EA580C; }
.k-place { background: #DDFBF3; color: #053B33; } .k-place h3 { color: #0D9488; }
.k-event { background: #F1EAFF; color: #2E1065; } .k-event h3 { color: #7C3AED; }
.k-product { background: #E3FBEA; color: #052E16; } .k-product h3 { color: #16A34A; }
.ss-ing { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ss-ing button { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: rgba(255,255,255,.6); color: inherit; font: inherit; font-size: 14.5px; padding: 9px 12px; border-radius: 12px; cursor: pointer; transition: background .2s, opacity .2s; }
.ss-ing button i { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px; border: 2px solid #FB923C; transition: background .2s; }
.ss-ing button.done { opacity: .55; text-decoration: line-through; }
.ss-ing button.done i { background: #FB923C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.ss-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.ss-steps li::marker { font-weight: 900; color: #EA580C; }
.ss-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ss-acts .btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.8); }
.ss-acts .btn .ic { width: 17px; height: 17px; }
.ss-prod { display: flex; gap: 14px; align-items: center; }
.ss-prod img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; background: #fff; }
.ss-price { font-size: 26px; font-weight: 900; color: #15803D; }
.ss-sec { margin: 18px 0 0; }
.ss-sec h4 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; font-size: 13px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ss-note, .ss-imgtext { margin: 0; white-space: pre-wrap; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14.5px; line-height: 1.55; }
.ss-kp { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ss-kp a { font-weight: 800; color: var(--brand); text-decoration: none; }
.ss-hl, .rd-hl-list blockquote { margin: 0 0 8px; padding: 10px 14px; border-left: 4px solid #FACC15; background: #FEF9C3; color: #422006; border-radius: 0 12px 12px 0; font-size: 14.5px; line-height: 1.5; }
/* Reader */
.reader-sheet { max-height: 100dvh; height: 100dvh; border-radius: 0; }
@media (min-width: 700px) { .reader-sheet { height: 94dvh; border-radius: 28px 28px 0 0; } }
.rd-site { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); }
.rd { max-width: 640px; margin: 0 auto; padding: 0 4px 60px; }
.rd h1 { font-size: 28px; line-height: 1.2; font-weight: 900; letter-spacing: -.02em; margin: 4px 0 6px; }
.rd-body { font-family: Charter, 'Iowan Old Style', Georgia, serif; font-size: 19px; line-height: 1.65; color: var(--text); -webkit-user-select: text; user-select: text; }
.rd-body h1, .rd-body h2, .rd-body h3, .rd-body h4 { font-family: inherit; line-height: 1.25; margin: 1.4em 0 .4em; }
.rd-body p { margin: 0 0 1em; }
.rd-body img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 1em auto; }
.rd-body a { color: var(--brand); }
.rd-body blockquote { margin: 1em 0; padding-left: 16px; border-left: 3px solid var(--line); color: var(--muted); }
.rd-body pre { overflow-x: auto; padding: 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.rd-body mark { background: #FDE047; color: inherit; border-radius: 3px; padding: 0 1px; }
.rd-loading, .rd-fail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 50px 10px; text-align: center; color: var(--muted); font-family: inherit; font-size: 15px; }
.rd-loading .act-spin { width: 28px; height: 28px; color: var(--brand); }
.rd-hl-list { margin-top: 28px; }
.rd-hl-list h4 { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rd-hl-list blockquote { position: relative; padding-right: 44px; }
.rd-hl-list .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; }
.rd-hl { position: fixed; z-index: 100; padding: 10px 16px; border: 0; border-radius: 999px; background: #2a1610; color: #FDE047; font: 800 14px/1 inherit; box-shadow: 0 10px 24px rgba(0,0,0,.3); cursor: pointer; animation: pillin .25s cubic-bezier(.2,1.5,.4,1) both; }

/* Resurfacing: one older save on the home screen each day */
.gem { position: relative; display: flex; align-items: center; margin: 0 0 12px; border-radius: 20px; background: linear-gradient(120deg, #FFF1E6, #FDE7F3 60%, #EFE7FF); box-shadow: 0 0 0 1.5px color-mix(in srgb, #DB2777 22%, transparent); animation: pillin .45s cubic-bezier(.2,1.5,.4,1) both; }
.gem[hidden] { display: none; }
.gem-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 20px; }
.gem-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gem-label { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #C2410C; }
.gem-text b { font-size: 15px; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gem-x { flex: none; margin-right: 6px; color: #9A6B5C; }
:root[data-theme='dark'] .gem { background: linear-gradient(120deg, #3A2117, #3A1730 60%, #261B45); } :root[data-theme='dark'] .gem-label { color: #FDBA74; }

/* Import */
.imp-srcs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.imp-src { padding: 14px 12px; border: 0; border-radius: 16px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; text-align: left; transition: transform .12s; }
.imp-src:active { transform: scale(.97); }
.imp-src:nth-child(1) { background: #FFE4EC; color: #9D174D; }
.imp-src:nth-child(2) { background: #E0F2FE; color: #075985; }
.imp-src:nth-child(3) { background: #FEF3C7; color: #92400E; }
.imp-src:nth-child(4) { background: #EDE9FE; color: #5B21B6; }
#import-sheet h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.im-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.im-paste summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: 4px 0; }
.im-paste textarea { width: 100%; margin: 8px 0; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line, #eadfd9); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; resize: vertical; box-sizing: border-box; }
.im-sum { margin: 0; font-weight: 700; color: var(--muted); }
.im-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.im-tags span { padding: 6px 11px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 13.5px; }
.im-tags small { color: var(--muted); font-weight: 600; }
.im-bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.im-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .3s; }
.im-done { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #34D399, #10B981); color: #fff; }
.im-done .ic, .im-done svg { width: 30px; height: 30px; }
  :root[data-theme='dark'] .imp-src:nth-child(1) { background: #4A1D2E; color: #FBCFE8; }
:root[data-theme='dark'] .imp-src:nth-child(2) { background: #0C3049; color: #BAE6FD; }
:root[data-theme='dark'] .imp-src:nth-child(3) { background: #45300A; color: #FDE68A; }
:root[data-theme='dark'] .imp-src:nth-child(4) { background: #2E1F5C; color: #DDD6FE; }

/* Voice */
.tool.listening { color: #fff; background: linear-gradient(135deg, #f43f5e, #db2777); animation: listen 1.2s ease-in-out infinite; }
.tool.listening .ic { stroke: #fff; }
@keyframes listen { 0%, 100% { box-shadow: 0 0 0 0 rgba(219, 39, 119, .45); } 50% { box-shadow: 0 0 0 10px rgba(219, 39, 119, 0); } }
.send-btn.nudge { animation: nudge .5s cubic-bezier(.2,1.5,.4,1) 2; }
@keyframes nudge { 50% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .tool.listening, .send-btn.nudge { animation: none; } }
.tool.listening b { color: #fff; }
/* Four controls on one row on every phone */
@media (max-width: 420px) { .compose-tools { gap: 8px; } .tool { width: 60px; height: 60px; } .send-btn { height: 60px; padding: 0 18px; } }
@media (max-width: 370px) { .compose-tools { gap: 6px; } .tool { width: 54px; height: 56px; border-radius: 18px; } .send-btn { height: 56px; padding: 0 14px; font-size: 16px; } }
@media (max-width: 340px) { .tool { width: 50px; } .send-btn { font-size: 0; gap: 0; padding: 0 16px; } .send-btn svg { margin: 0; } }

/* Your saves header: title, shortcuts, count and More on one centre line */
.section-head { align-items: center; gap: 8px; min-height: 40px; margin: 8px 0 10px; }
.section-head .section-title { margin: 0 4px; line-height: 1.2; }
.section-head .count-btn, .section-head .kbd-btn, .list-more { height: 34px; min-height: 34px; box-sizing: border-box; }
.section-head .section-title { margin-right: auto; }
.section-head .kbd-btn { margin: 0; }
@media (hover: hover) and (pointer: fine) { .section-head .kbd-btn { display: grid; } }
.section-head { position: relative; }
.list-more { width: 34px; padding: 0; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.list-more[hidden] { display: none; }
.list-more .ic { width: 20px; height: 20px; }
.list-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; padding: 6px; border-radius: 18px; background: var(--surface); box-shadow: 0 18px 40px -12px rgba(60, 20, 30, .35), 0 0 0 1px rgba(0,0,0,.05); animation: pillin .22s cubic-bezier(.2,1.5,.4,1) both; }
.list-menu[hidden] { display: none; }
.list-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 12px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.list-menu button:hover, .list-menu button:focus-visible { background: var(--surface-2); }
.list-menu .ic { width: 19px; height: 19px; flex: none; }
#lm-archive.confirm { background: linear-gradient(120deg, #fb923c, #db2777); color: #fff; }
.sb-all { border: 0; background: rgba(255,255,255,.16); color: inherit; font: inherit; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
.sb-all[hidden] { display: none; }
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(env(safe-area-inset-bottom) + 20px); z-index: 40; width: 50px; height: 50px; border: 0; border-radius: 999px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #fb923c, #db2777); box-shadow: 0 12px 26px -10px rgba(219, 39, 119, .7); cursor: pointer; animation: pillin .3s cubic-bezier(.2,1.5,.4,1) both; transition: bottom .25s; }
.to-top[hidden] { display: none; }
.to-top .ic { width: 24px; height: 24px; stroke-width: 2.4; }
body.selecting .to-top { bottom: calc(env(safe-area-inset-bottom) + 96px); }
body.toasting .to-top { bottom: calc(env(safe-area-inset-bottom) + 92px); }

/* Flick to a friend */
#send-sheet h2 { margin: 0; font-size: 22px; }
.fs-what { margin: 4px 0 0; color: var(--muted); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fs-people { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-people[hidden] { display: none; }
.fs-person { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; transition: transform .12s; }
.fs-person:active { transform: scale(.96); }
.fs-av { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: #fff; font-weight: 900; background: linear-gradient(135deg, #8b5cf6, #db2777); }
.fs-person.on { background: linear-gradient(120deg, #fb923c, #db2777); color: #fff; }
.fs-person.on .fs-av { background: rgba(255,255,255,.25); }
.fs-field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; }
.fs-field small { color: var(--muted); font-weight: 600; }
.fs-field input, .fs-field textarea { padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line, #eadfd9); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; font-weight: 500; resize: vertical; }
.fs-field[hidden] { display: none; }
.fs-err { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FEE2E2; color: #991B1B; font-weight: 700; font-size: 14px; }
.fs-err[hidden] { display: none; }
#fs-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#fs-go .ic { width: 19px; height: 19px; }
.ss-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
.ss-main .btn { min-width: 0; }
@media (max-width: 480px) { .ss-main .btn { flex-direction: column; gap: 3px; min-height: 62px; font-size: 13.5px; padding: 6px 4px; } .ss-main .btn { position: relative; } .ss-main .btn small { position: absolute; top: -7px; right: -2px; font-size: 9.5px; padding: 2px 6px; box-shadow: 0 2px 6px rgba(0,0,0,.12); } }

/* Shared lists */
.col.c-us { --c: #7c3aed; background: linear-gradient(120deg, #ede9fe, #fce7f3); color: #5b21b6; }
.col.c-us.on { background: linear-gradient(120deg, #8b5cf6, #db2777); color: #fff; }
.col.c-us .ic { width: 17px; height: 17px; }
.fs-list .fs-av .ic { width: 17px; height: 17px; stroke: #fff; }
.fs-list .fs-av { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.fs-new { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line, #eadfd9); color: var(--muted); }
.fs-new .fs-av { background: var(--surface-2); color: var(--text); }
.item-meta .by { font-weight: 800; color: #7c3aed; }
#recent.in-shared .row-acts, #recent.in-shared .swipe-bg { display: none; }
.lists-set { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.ls-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: var(--surface-2); }
.ls-av { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8b5cf6, #db2777); }
.ls-av .ic { width: 20px; height: 20px; stroke: #fff; }
.ls-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ls-body span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-btn.confirm { background: #dc2626; color: #fff; }
#lists-new { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Share card, invite rewards, plane colors and email themes ---------- */
.sc-wrap { border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px -20px rgba(190, 24, 93, .55); margin-bottom: 12px; aspect-ratio: 4 / 5; max-width: 300px; margin-inline: auto; background: linear-gradient(135deg, #FDBA74, #DB2777 60%, #7C3AED); }
.sc-wrap canvas { display: block; width: 100%; height: 100%; }
#copy-invite { flex: 0 0 auto; }
.miles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px; border-radius: 16px; background: var(--surface-2); font-size: 13px; line-height: 1.2; }
.mile small { color: var(--muted); font-size: 11.5px; }
.mile-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 15px; background: var(--line); color: var(--muted); }
.mile.on .mile-n { background: linear-gradient(135deg, #F97316, #DB2777); color: #fff; box-shadow: 0 6px 14px -6px rgba(219, 39, 119, .7); }
.mile.on .mile-n .ic { width: 18px; height: 18px; }
.mile.on small { color: var(--brand); font-weight: 700; }
.pick-row { margin-top: 14px; }
.pick-row > b { display: block; font-size: 14px; margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 2px solid transparent; background: var(--surface-2); font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text); cursor: pointer; transition: transform .15s, border-color .15s; }
.sw span { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.sw:active { transform: scale(.95); }
.sw.on { border-color: var(--brand); background: var(--surface); }
.nudge { background: linear-gradient(120deg, #FDE7F3, #EFE7FF 55%, #E0F2FE); }
.nudge .gem-label { color: #7C3AED; }
.yr-stats { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 6px; }
.yr-stats li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; }
.yr-stats li span { color: var(--muted); }
.yr-stats li b { text-align: right; }
#open-year { margin-top: 12px; }

/* Settings: one quiet status line under the title instead of a toast per change */
.set-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.set-status { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: color .25s; }
.set-status .ic { width: 14px; height: 14px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.2,1.6,.4,1); stroke: currentColor; }
.set-status.saved { color: #16A34A; }
.set-status.saved .ic { opacity: 1; transform: scale(1); }
.set-status.saved span { animation: set-pulse .5s ease; }
@keyframes set-pulse { 0% { opacity: .3; } 100% { opacity: 1; } }

/* Get Flick on your phone */
.install { position: relative; gap: 12px; padding: 14px 44px 14px 14px; border: 1.5px solid var(--brand-soft); background: linear-gradient(120deg, #FFE4EF, #FFF1E2 60%, #FFF8EC); transition: opacity .2s, transform .2s; animation: install-in .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.install.leaving { opacity: 0; transform: translateY(-6px) scale(.98); }
@keyframes install-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.install-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px -6px var(--brand); }
.install-ic .ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.install-txt { flex: 1; min-width: 0; }
.install .btn { flex: none; }
.install-x { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; opacity: .6; }
.install-x:hover { opacity: 1; }
:root[data-theme='dark'] .install { background: linear-gradient(120deg, #3a1a26, #33221a 60%, var(--surface)); }
:root[data-theme="dark"] .install { background: linear-gradient(120deg, #3a1a26, #33221a 60%, var(--surface)); }
@media (max-width: 420px) { .install { flex-wrap: wrap; } .install-txt { flex-basis: calc(100% - 56px); } .install .btn { margin-left: 56px; } }
#get-phone .gp-desk, #get-phone .gp-ios { display: none; flex-direction: column; gap: 14px; }
#get-phone[data-kind="desktop"] .gp-desk, #get-phone[data-kind="ios"] .gp-ios { display: flex; }
.gp-qr { align-self: center; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px -12px rgba(219, 39, 119, .55), 0 0 0 3px var(--brand-soft); }
.gp-qr img { display: block; width: 196px; height: 196px; }
.gp-lead { text-align: center; font-weight: 700; margin: 0; }
.gp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.gp-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.gp-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-2)); }
.gp-inline { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: #0A84FF; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#gp-copy { align-self: center; display: inline-flex; gap: 6px; align-items: center; }
#gp-copy .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }

/* ---------- Appearance: Light / Dark / System ---------- */
html.theme-fade, html.theme-fade * { transition: background-color .3s ease, color .3s ease, border-color .3s ease, fill .3s ease !important; }
.appearance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.appearance button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ap-prev { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--line); transition: box-shadow .2s, transform .15s; }
.appearance button:active .ap-prev { transform: scale(.96); }
.appearance button[aria-checked="true"] .ap-prev { box-shadow: 0 0 0 2.5px var(--brand), 0 8px 20px -10px var(--brand); }
.appearance button:focus-visible { outline: none; }
.appearance button:focus-visible .ap-prev { box-shadow: 0 0 0 2.5px var(--brand), 0 0 0 6px var(--brand-soft); }
.ap-win { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6%; padding: 0 0 10%; background: #FFF8F3; }
.ap-win i { display: block; height: 30%; background: linear-gradient(120deg, #FB923C, #DB2777 60%, #8B5CF6); }
.ap-win b { display: block; height: 12%; margin: 0 12%; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(42, 22, 16, .12); }
.ap-win b + b { margin-right: 32%; }
.ap-win em { position: absolute; right: 12%; bottom: 10%; width: 26%; height: 14%; border-radius: 999px; background: linear-gradient(120deg, #FB923C, #DB2777); }
.ap-dark .ap-win { background: #140D0B; }
.ap-dark .ap-win i { background: linear-gradient(120deg, #9A3412, #9D174D 60%, #5B21B6); }
.ap-dark .ap-win b { background: #2A1F1B; box-shadow: none; }
.ap-system .ap-win { background: linear-gradient(90deg, #FFF8F3 50%, #140D0B 50%); }
.ap-system .ap-win b { background: linear-gradient(90deg, #fff 50%, #2A1F1B 50%); }
.ap-system .ap-win i { background: linear-gradient(120deg, #FB923C, #DB2777 50%, #9D174D 50%, #5B21B6); }
.ap-name { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); transition: color .2s; }
.ap-name svg, .theme-seg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.appearance button[aria-checked="true"] .ap-name { color: var(--brand); }
.theme-seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, 36px); gap: 0; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.theme-seg::before { content: ''; position: absolute; top: 4px; left: 4px; width: 36px; height: 36px; border-radius: 999px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); transition: transform .28s cubic-bezier(.3, 1.3, .5, 1); }
.theme-seg[data-pref="dark"]::before { transform: translateX(36px); }
.theme-seg[data-pref="system"]::before { transform: translateX(72px); }
.theme-seg button { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; transition: color .2s; }
.theme-seg button[aria-checked="true"] { color: #fff; }
.theme-seg button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.theme-seg svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .theme-seg::before { transition: none; } html.theme-fade, html.theme-fade * { transition: none !important; } }

/* Chrome extension: computers only */
.ext-group { display: none; }
@media (hover: hover) and (pointer: fine) { .ext-group { display: flex; } }
.ext-link { text-decoration: none; color: inherit; }
.ext-cta { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 6px 16px -8px var(--brand); transition: transform .15s; }
.ext-link:hover .ext-cta { transform: translateY(-1px); }
.ext-cta svg { width: 18px; height: 18px; fill: currentColor; }
.toggle > .ext-cta { flex-direction: row; white-space: nowrap; font-size: 14px; }
