/* ============================================================
   Gear Wire — studio console / editorial stylesheet v2
   Lacquer black, warm amber, VU green · motion-first, calm glow
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #0c0c0f;
  --bg-2: #121217;
  --panel: #17171d;
  --panel-2: #1d1d25;
  --line: #26262f;
  --line-2: #34343f;
  --ink: #edeae2;
  --ink-dim: #a5a196;
  --ink-faint: #6d6a62;
  --amber: #ffb454;
  --amber-deep: #e8913a;
  --accent-rgb: 255,180,84;
  --green: #7ad2a5;
  --red: #e5715f;
  --blue: #7fb4e0;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 16px;
  --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px rgba(0,0,0,.35);
  --glow-amber: 0 0 0 1px rgba(var(--accent-rgb),.35), 0 4px 24px rgba(var(--accent-rgb),.12);
  --ease: cubic-bezier(.22,.9,.28,1);
}

/* ---------- accent themes (Settings → Look) ---------- */
:root[data-theme="violet"] {
  --amber: #b79bff; --amber-deep: #8b6bff; --accent-rgb: 167,139,250;
  --glow-amber: 0 0 0 1px rgba(167,139,250,.35), 0 4px 24px rgba(167,139,250,.12);
}
:root[data-theme="cyan"] {
  --amber: #6fe7f7; --amber-deep: #22d3ee; --accent-rgb: 103,232,249;
  --glow-amber: 0 0 0 1px rgba(103,232,249,.35), 0 4px 24px rgba(103,232,249,.12);
}
:root[data-theme="rose"] {
  --amber: #ffaab6; --amber-deep: #fb7185; --accent-rgb: 253,164,175;
  --glow-amber: 0 0 0 1px rgba(253,164,175,.35), 0 4px 24px rgba(253,164,175,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-y: contain;  /* the app owns the pull gesture */
}
::selection { background: rgba(var(--accent-rgb),.3); }
h1,h2,h3,h4 { font-family: var(--serif); margin: 0; }
a { color: inherit; }
button { font-family: var(--sans); cursor: pointer; }
svg { display: block; }

/* ---------- ambient background ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.aurora-blob.b1 { width: 640px; height: 640px; top: -220px; right: -120px;  background: radial-gradient(circle, rgba(var(--accent-rgb),.14), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.aurora-blob.b2 { width: 560px; height: 560px; top: 30vh; left: -220px; background: radial-gradient(circle, rgba(127,180,224,.10), transparent 65%); animation: drift2 32s ease-in-out infinite alternate; }
.aurora-blob.b3 { width: 500px; height: 500px; bottom: -180px; left: 35vw; background: radial-gradient(circle, rgba(122,210,165,.07), transparent 65%); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-90px, 60px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(110px, -50px) scale(1.08); } }
@keyframes drift3 { to { transform: translate(-60px, -80px) scale(1.15); } }
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  z-index: 90; transition: width .12s linear; box-shadow: 0 0 12px rgba(var(--accent-rgb),.5);
}

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 9px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 11px 15px; font-size: 13px; color: var(--ink);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  animation: toast-in .3s var(--ease);
}
.toast .t-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.toast.err .t-dot { background: var(--red); }
.toast.warn .t-dot { background: var(--amber); }
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  padding: 8px 15px; transition: all .18s var(--ease);
  text-decoration: none; position: relative; overflow: hidden;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120px 40px at var(--mx,50%) -20%, rgba(var(--accent-rgb),.18), transparent);
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.btn:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-1px); }
.btn:hover::after { opacity: 1; }
.btn.solid { background: var(--amber); border-color: var(--amber); color: #1a1208; box-shadow: 0 4px 18px rgba(var(--accent-rgb),.22); }
.btn.solid:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #1a1208; box-shadow: 0 6px 24px rgba(var(--accent-rgb),.32); }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: wait; transform: none !important; }
.iconbtn {
  background: none; border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--ink-dim); padding: 7px; display: grid; place-items: center;
  transition: all .15s var(--ease);
}
.iconbtn:hover { color: var(--ink); border-color: var(--ink-faint); transform: scale(1.05); }

/* ---------- star buttons ---------- */
.star-btn {
  background: none; border: 1px solid var(--line-2); border-radius: 999px;
  width: 30px; height: 30px; display: inline-grid; place-items: center;
  color: var(--ink-faint); transition: all .18s var(--ease); flex-shrink: 0;
}
.star-btn:hover { color: var(--amber); border-color: var(--amber); transform: scale(1.1); }
.star-btn.on { color: var(--amber); border-color: rgba(var(--accent-rgb),.6); background: rgba(var(--accent-rgb),.1); }
.star-btn.on svg path { fill: var(--amber); }
.star-btn.lg { width: 38px; height: 38px; }
.star-btn svg { width: 16px; height: 16px; }
.star-btn.pop { animation: star-pop .35s var(--ease); }
@keyframes star-pop { 40% { transform: scale(1.35) rotate(12deg); } }

#app { max-width: 1180px; margin: 0 auto; padding: 0 22px 60px; position: relative; }

/* ============================================================
   Masthead
   ============================================================ */
.masthead {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 22px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  scroll-padding-top: 80px;
}
.logo-lockup { display: flex; align-items: center; gap: 12px; }
.logo-ring { fill: none; stroke: var(--amber); stroke-width: 2.5; }
.logo-needle line { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; transition: transform 1s var(--ease); transform-origin: 20px 20px; }
.logo-needle circle { fill: var(--amber); }
.logo-ticks line { stroke: var(--line-2); stroke-width: 2; }
.logo-type { display: flex; flex-direction: column; line-height: 1.05; }
.logo-word { font-family: var(--serif); font-weight: 900; font-size: 24px; letter-spacing: .01em; }
.logo-sub { font-family: var(--mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
body.loaded .logo-needle { animation: needle-sweep 1.6s var(--ease) .2s; }
@keyframes needle-sweep { from { transform: rotate(-140deg); } }

.searchwrap { position: relative; display: flex; align-items: center; max-width: 440px; width: 100%; justify-self: center; }
.search-ico { position: absolute; left: 13px; color: var(--ink-faint); pointer-events: none; }

/* ---------- search results overlay (one search, right where you type) ---------- */
.search-pop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(560px, calc(100vw - 28px)); max-height: min(66vh, 560px); overflow-y: auto;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0,0,0,.6); z-index: 80; padding: 6px;
  animation: pop-in .16s var(--ease);
  overscroll-behavior: contain;
}
.search-pop::-webkit-scrollbar { width: 8px; }
.search-pop::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.search-pop[hidden] { display: none; }
.sp-item {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 11px; align-items: center;
  width: 100%; text-align: left; background: none; border: none; border-radius: 12px;
  padding: 9px 10px; cursor: pointer; transition: background .12s;
}
.sp-item.sel, .sp-item:hover { background: rgba(var(--accent-rgb),.09); }
.sp-item.sel { box-shadow: inset 2px 0 0 var(--amber); }
.sp-thumb {
  width: 52px; height: 40px; border-radius: 9px; overflow: hidden; background: var(--bg-2);
  display: grid; place-items: center; border: 1px solid var(--line); flex-shrink: 0;
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-noimg { color: var(--ink-faint); font-size: 13px; }
.sp-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-title {
  font: 600 13.5px var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; direction: rtl; text-align: left;
}
.sp-title i { font-style: normal; color: var(--amber); margin-right: 6px; }
.sp-sub { font: 500 10.5px var(--mono); color: var(--ink-faint); }
.sp-when { font: 500 10.5px var(--mono); color: var(--ink-faint); flex-shrink: 0; }
.sp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line); margin-top: 4px; padding: 9px 12px 7px;
}
.sp-count { font: 500 11px var(--mono); color: var(--ink-faint); }
.sp-all {
  background: none; border: none; color: var(--amber); font: 600 12.5px var(--sans);
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 2px 4px;
}
.sp-all:hover { text-decoration: underline; }
.sp-all kbd { font: 600 9.5px var(--mono); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; color: var(--ink-faint); }
.sp-loading, .sp-empty { padding: 18px 14px; font: 500 13px var(--sans); color: var(--ink-dim); }

/* ---------- live sync pill ---------- */
.sync-pill {
  margin-left: auto; align-self: center;
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 13px; font: 500 11px var(--mono); color: var(--ink-dim);
  cursor: pointer; transition: border .16s, color .16s; white-space: nowrap;
}
.sync-pill:hover { border-color: rgba(var(--accent-rgb),.5); color: var(--ink); }
.sync-pill:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(122,210,165,.8); animation: sp-pulse 2.6s ease infinite; flex-shrink: 0; }
.sp-dot.err { background: var(--red); box-shadow: 0 0 8px rgba(229,113,95,.7); }
.sp-dot.wait { background: var(--ink-faint); box-shadow: none; }
@keyframes sp-pulse { 50% { opacity: .45; } }

/* ---------- feed crumbs (where am I / how is this list filtered) ---------- */
.feed-crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 2px 0 12px; padding: 8px 12px;
  background: rgba(var(--accent-rgb),.05); border: 1px dashed rgba(var(--accent-rgb),.3);
  border-radius: 12px;
}
.fc-label { font: 600 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.fc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--amber); font: 600 12px var(--sans); padding: 4px 6px 4px 11px; cursor: pointer;
  transition: all .15s;
}
.fc-chip:hover { border-color: var(--amber); }
.fc-x { color: var(--ink-faint); font-size: 13px; padding: 0 3px; }
.fc-count { margin-left: auto; font: 600 11px var(--mono); color: var(--ink-dim); }
#search {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  color: var(--ink); border-radius: 999px; padding: 9px 38px 9px 36px;
  font: 500 13.5px var(--sans); outline: none; transition: border .18s, box-shadow .18s;
}
#search:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.12); }
#search::placeholder { color: var(--ink-faint); }
.searchwrap kbd { position: absolute; right: 12px; font: 600 10.5px var(--mono); color: var(--ink-faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.masthead-right { display: flex; gap: 8px; align-items: center; }
.masthead-right .btn-label { display: inline; }
.wl-count {
  min-width: 17px; height: 17px; border-radius: 999px; background: var(--amber); color: #1a1208;
  font: 700 10px var(--mono); display: inline-grid; place-items: center; padding: 0 4px;
}

/* ---------- install button ---------- */
.btn.install { border-color: rgba(var(--accent-rgb),.45); color: var(--amber); }
.btn.install:hover { color: var(--amber); border-color: var(--amber); }

/* ---------- popovers (bell + user) ---------- */
.anchorwrap { position: relative; }
.popover {
  position: absolute; top: calc(100% + 10px); right: 0; width: 300px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); z-index: 70; padding: 13px;
  animation: pop-in .18s var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.pop-head { font: 600 10.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 9px; }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); }
.pop-row:first-of-type { border-top: none; }
.pop-row-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pop-row-txt b { font: 600 13px var(--sans); color: var(--ink); }
.pop-sub { font-size: 11px; color: var(--ink-faint); }
.pop-status { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); font: 500 10.5px var(--mono); letter-spacing: .05em; color: var(--ink-faint); }
.pop-status.warn { color: var(--amber); }
.pop-btn {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: none; border: none; border-top: 1px solid var(--line);
  color: var(--ink); font: 600 13px var(--sans); padding: 11px 4px; cursor: pointer;
  transition: color .15s;
}
.pop-btn:first-of-type { border-top: none; }
.pop-btn:hover { color: var(--amber); }
.pop-user { display: flex; flex-direction: column; gap: 1px; padding: 2px 4px 10px; }
.pop-user b { font: 600 14px var(--sans); }
.pop-user span { font: 500 11.5px var(--mono); color: var(--ink-faint); }

/* ---------- switches ---------- */
.switch {
  position: relative; width: 40px; height: 23px; border-radius: 999px;
  background: var(--line-2); border: 1px solid var(--line-2); cursor: pointer;
  transition: background .2s var(--ease); flex-shrink: 0; padding: 0;
}
.switch .knob {
  position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--ink-dim); transition: all .2s var(--ease);
}
.switch.on { background: rgba(122,210,165,.25); border-color: var(--green); }
.switch.on .knob { left: 19px; background: var(--green); box-shadow: 0 0 10px rgba(122,210,165,.5); }

/* ---------- bell badge ---------- */
.icononly { padding: 8px 10px; }
.bell-badge {
  position: absolute; top: -3px; right: -3px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(122,210,165,.7);
  animation: newpulse 2.4s ease infinite;
}
.bell-badge.count {
  width: auto; min-width: 16px; height: 16px; top: -5px; right: -5px;
  background: var(--amber); color: #1a1208;
  font: 700 9.5px var(--mono); display: inline-grid; place-items: center; padding: 0 4px;
  animation: star-pop .35s var(--ease);
}
.bell-badge.live { animation: newpulse 2.4s ease infinite; }
#btn-bell.active, #btn-user.active { border-color: var(--amber); color: var(--amber); }

/* ---------- user chip ---------- */
.userchip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink); padding: 4px 12px 4px 4px; cursor: pointer; transition: all .16s var(--ease);
}
.userchip:hover { border-color: var(--amber); }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep)); color: #1a1208;
  font: 700 12px var(--sans); background-size: cover; background-position: center; flex-shrink: 0;
}
.user-avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.user-avatar.hasimg { color: transparent; }
.user-name { font: 600 12.5px var(--sans); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- follow button ---------- */
.follow-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink-faint); font: 600 10px var(--mono); letter-spacing: .06em;
  padding: 4px 10px; cursor: pointer; transition: all .16s var(--ease); flex-shrink: 0;
}
.follow-btn svg { width: 12px; height: 12px; }
.follow-btn:hover { color: var(--blue); border-color: var(--blue); }
.follow-btn.on { color: var(--blue); border-color: rgba(127,180,224,.55); background: rgba(127,180,224,.08); }
.follow-btn.compact { padding: 4px 7px; }
.follow-btn.compact span { display: none; }
.follow-btn.compact svg { width: 13px; height: 13px; }

/* ---------- offline pill ---------- */
.offline-pill {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--amber); color: var(--amber);
  border-radius: 999px; padding: 7px 16px; font: 600 12px var(--sans); z-index: 95;
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}

/* ---------- settings modal ---------- */
.settings-modal { width: min(560px, 92vw); }
.settings-body { overflow-y: auto; padding: 6px 19px 19px; max-height: 62vh; }
.set-tabs { display: flex; gap: 2px; padding: 12px 19px 0; border-bottom: 1px solid var(--line); }
.set-tabs .seg { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; font-size: 12px; }
.set-tabs .seg.active { background: rgba(var(--accent-rgb),.1); }
.set-pane { display: flex; flex-direction: column; gap: 6px; animation: pop-in .22s var(--ease); }
.set-h { font: 600 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin: 16px 0 8px; display: flex; align-items: center; gap: 9px; }
.set-pane > .set-h:first-child { margin-top: 12px; }
.set-h::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.set-user { display: flex; align-items: center; gap: 12px; }
.set-user-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.set-user-txt b { font: 600 14.5px var(--sans); }
.set-user-txt span { font: 500 11.5px var(--mono); color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-note { font-size: 12px; color: var(--ink-faint); line-height: 1.5; margin: 4px 0 0; }
.set-hint { font: 500 11px var(--mono); color: var(--ink-faint); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; }
.set-row.col { flex-direction: column; align-items: stretch; gap: 9px; }

/* push status hero in the Alerts pane */
.set-hero {
  display: flex; align-items: center; gap: 12px; margin: 12px 0 6px;
  background: rgba(var(--accent-rgb),.06); border: 1px solid rgba(var(--accent-rgb),.25);
  border-radius: 13px; padding: 12px 14px;
}
.set-hero.warn { background: rgba(229,113,95,.06); border-color: rgba(229,113,95,.3); }
.set-hero-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(122,210,165,.6); flex-shrink: 0; }
.set-hero.warn .set-hero-dot { background: var(--red); box-shadow: 0 0 10px rgba(229,113,95,.5); }
.set-hero div { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.set-hero b { font: 600 13px var(--sans); }
.set-hero span { font-size: 11.5px; color: var(--ink-faint); }

/* segmented selector rows (verdict floor, category, sort) */
.segsel { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segsel .seg { font-size: 11.5px; padding: 6px 12px; }

/* topic tag cloud (Alerts pane) */
.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 2px; max-height: 180px; overflow-y: auto; }
.tagchip.cloud { font-size: 11.5px; padding: 6px 12px; }
.tagchip.cloud em { color: var(--ink-faint); }
.tagchip.cloud.picked { background: rgba(var(--accent-rgb),.14); border-color: var(--amber); color: var(--amber); }
.tagchip.cloud.picked em { color: var(--amber); }
.tagchip.cloud.muted { opacity: .5; text-decoration: line-through; }

/* focus rings for settings controls (keyboard a11y) */
.modal input:focus-visible, .modal button:focus-visible,
.popover button:focus-visible, .switch:focus-visible,
.tagchip:focus-visible, .theme-card:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb),.55); outline-offset: 2px; border-radius: 8px;
}
.switch:focus-visible { border-radius: 999px; }

/* disabled switch while a toggle request is in flight */
.switch:disabled { opacity: .55; cursor: wait; }

/* compact quick-toggle switches (notification center footer) */
.switch.sm { width: 34px; height: 20px; }
.switch.sm .knob { width: 14px; height: 14px; top: 2px; left: 2px; }
.switch.sm.on .knob { left: 16px; }

/* quick-toggle footer row in the notification center */
.nc-quick {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding: 8px 14px; border-top: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.nc-quick-label {
  margin-right: auto; font-size: 9.5px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-faint);
}
.nc-toggle { display: inline-flex; align-items: center; gap: 7px; }
.nc-toggle .sw-lbl { font-size: 10.5px; letter-spacing: .02em; color: var(--ink-dim); white-space: nowrap; }
.nc-toggle:hover .sw-lbl { color: var(--ink); }

/* slimmer scrollbars inside modal panes */
.settings-body::-webkit-scrollbar, .tagcloud::-webkit-scrollbar,
.nc-list::-webkit-scrollbar, .set-favlist::-webkit-scrollbar { width: 7px; }
.settings-body::-webkit-scrollbar-thumb, .tagcloud::-webkit-scrollbar-thumb,
.nc-list::-webkit-scrollbar-thumb, .set-favlist::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: 99px;
}
.settings-body::-webkit-scrollbar-track, .tagcloud::-webkit-scrollbar-track { background: transparent; }

/* quiet hours */
.quiet-row {
  display: flex; align-items: center; gap: 10px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  transition: opacity .2s;
}
.quiet-row.off { opacity: .45; }
.quiet-moon { color: var(--blue); font-size: 15px; }
.quiet-row input[type="time"] {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px;
  color: var(--ink); font: 600 13px var(--mono); padding: 6px 9px; outline: none;
  transition: border .15s;
}
.quiet-row input[type="time"]:focus { border-color: var(--amber); }
.quiet-row input[type="time"]:disabled { opacity: .5; }
.quiet-sep { color: var(--ink-faint); }
.quiet-hint { margin-left: auto; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

/* theme cards */
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.theme-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--panel); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 14px 8px 11px; cursor: pointer; transition: all .18s var(--ease); color: var(--ink-dim);
}
.theme-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.theme-card.active { border-color: var(--amber); color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.12); }
.theme-swatch { display: flex; gap: 4px; }
.theme-swatch i { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.theme-name { font: 600 11.5px var(--sans); }
.theme-check {
  position: absolute; top: 7px; right: 8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--amber); color: #1a1208; font: 700 10px var(--sans); display: grid; place-items: center;
}

.set-favlist { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.set-fav { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.set-fav-title { flex: 1; font: 500 12.5px var(--sans); color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-fav-remove { padding: 5px; border-radius: 7px; }

/* ---------- notification center ---------- */
.popover.nc { width: 340px; padding: 0; }
.nc-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px 0; }
.nc-head .pop-head { margin-bottom: 0; }
.nc-clear { background: none; border: none; color: var(--ink-faint); font: 600 11.5px var(--sans); cursor: pointer; padding: 3px 7px; border-radius: 7px; transition: all .15s; }
.nc-clear:hover { color: var(--amber); background: rgba(var(--accent-rgb),.08); }
.nc-tabs { display: flex; gap: 2px; padding: 10px 13px 0; }
.nc-tabs .seg { flex: 1; font-size: 11px; padding: 6px 8px; }
.nc-list { display: flex; flex-direction: column; max-height: 320px; overflow-y: auto; padding: 8px 8px 4px; }
.nc-item {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  background: none; border: none; border-radius: 10px; padding: 9px 9px; cursor: pointer;
  transition: background .14s; color: var(--ink);
}
.nc-item:hover { background: rgba(255,255,255,.04); }
.nc-item.unread { background: rgba(var(--accent-rgb),.05); }
.nc-item.unread::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin: 6px 0 0 auto; flex-shrink: 0; box-shadow: 0 0 8px rgba(var(--accent-rgb),.6); }
.nc-ico { font-size: 15px; line-height: 1.3; flex-shrink: 0; }
.nc-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.nc-txt b { font: 600 12.5px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-txt span { font-size: 11.5px; color: var(--ink-faint); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-when { font: 500 9.5px var(--mono); color: var(--ink-faint); flex-shrink: 0; margin-top: 2px; }
.nc-empty { padding: 26px 16px; text-align: center; color: var(--ink-faint); font-family: var(--serif); font-style: italic; font-size: 13px; }
.popover.nc .pop-status { margin: 0; padding: 9px 15px 12px; border-top: 1px solid var(--line); }

/* ---------- density: compact ---------- */
:root.compact { --r: 12px; }
:root.compact .feed { gap: 7px; }
:root.compact .feed-row { padding: 9px 13px; }
:root.compact .feed-title { font-size: 14px; }
:root.compact .feed-teaser { display: none; }
:root.compact .wire-grid { grid-template-columns: repeat(6, 1fr); gap: 9px; }
:root.compact .hero-media { min-height: 240px; }
:root.compact .rail-head { margin: 22px 0 10px; }

/* ---------- ambient off ---------- */
:root.no-ambient .aurora { display: none; }
:root.no-ambient .grain { opacity: .25; }

/* ---------- forced reduced motion (user setting) ---------- */
:root.force-reduced *, :root.force-reduced *::before, :root.force-reduced *::after {
  animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
}
:root.force-reveal-none .reveal { opacity: 1; transform: none; }
:root.force-reduced .reveal { opacity: 1; transform: none; }
:root.force-reduced .ticker-track { animation: none !important; }

/* ---------- auth modal ---------- */
.auth-modal { width: min(430px, 92vw); }
.auth-tabs { display: flex; gap: 2px; padding: 12px 19px 0; }
.auth-tabs .seg { flex: 1; }
.auth-form { display: flex; flex-direction: column; gap: 12px; padding: 15px 19px 19px; }
.google-btn { justify-content: center; background: #fff; color: #1f1f1f; border-color: #fff; }
.google-btn:hover { background: #f1f1f1; color: #1f1f1f; transform: none; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.auth-field input {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px;
  color: var(--ink); padding: 11px 14px; font: 500 13.5px var(--sans); outline: none;
  transition: border .18s, box-shadow .18s;
}
.auth-field input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.auth-error { background: rgba(229,113,95,.1); border: 1px solid rgba(229,113,95,.4); color: var(--red); border-radius: 9px; padding: 9px 12px; font-size: 12.5px; }
.auth-submit { justify-content: center; }
.auth-foot { font-size: 11.5px; color: var(--ink-faint); text-align: center; }

/* ============================================================
   Ticker
   ============================================================ */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; background: rgba(var(--accent-rgb),.045); }
.ticker-track {
  display: inline-flex; gap: 42px; white-space: nowrap;
  padding: 7px 0; font: 500 11.5px var(--mono); letter-spacing: .04em;
  color: var(--ink-dim); animation: ticker 60s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track b { color: var(--amber); font-weight: 600; }
.ticker-track .tk-sep { color: var(--line-2); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Stat strip
   ============================================================ */
.statstrip {
  display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
  padding: 15px 2px 3px;
}
.stat { display: flex; flex-direction: column; gap: 1px; min-width: 66px; }
.stat-num { font-family: var(--serif); font-size: 26px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num.accent { color: var(--amber); }
.stat-label { font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.stat.makers { margin-left: auto; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; min-width: 0; }
.topmakers { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 22px 0 8px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(var(--accent-rgb),.35);
  background: rgba(var(--accent-rgb),.07); border-radius: 999px; padding: 5px 12px;
}
.onair-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.5); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.45); }
  70% { box-shadow: 0 0 0 9px rgba(var(--accent-rgb),0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0); }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; margin-top: 18px; align-items: stretch; }
.hero-media {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: var(--panel); min-height: 330px; border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-img-in 1s var(--ease); }
@keyframes hero-img-in { from { opacity: 0; transform: scale(1.04); } }
.hero-media .media-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-faint); font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,12,15,.55)); pointer-events: none; }
.hero-body { display: flex; flex-direction: column; gap: 13px; padding: 4px 0; }
.hero-kicker { font: 600 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.hero-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; }
.hero-standfirst { margin: 0; font-family: var(--serif); font-style: italic; font-size: 16.5px; color: var(--ink-dim); line-height: 1.5; }
.hero-rationale {
  border-left: 3px solid var(--amber); padding: 2px 0 2px 14px;
  color: var(--ink); font-size: 14px; line-height: 1.55;
}
.hero-rationale:empty, .hero-dial:empty { display: none; }
.hero-dial { display: flex; align-items: center; gap: 14px; }

/* score dial */
.dial { position: relative; width: 74px; height: 74px; flex-shrink: 0; }
.dial svg { transform: rotate(-90deg); }
.dial .track { fill: none; stroke: var(--line-2); stroke-width: 5; }
.dial .fill { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 189; stroke-dashoffset: 189; transition: stroke-dashoffset 1.1s var(--ease) .3s; }
.dial.green .fill { stroke: var(--green); }
.dial.red .fill { stroke: var(--red); }
.dial-num { position: absolute; inset: 0; display: grid; place-items: center; font: 700 19px var(--serif); }
.dial-cap { font: 500 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); line-height: 1.7; }
.dial-cap b { display: block; color: var(--ink); font-size: 11.5px; letter-spacing: .02em; text-transform: none; font-family: var(--sans); }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-actions { display: flex; gap: 10px; margin-top: 4px; align-items: center; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px var(--mono); letter-spacing: .06em;
  border-radius: 7px; padding: 4px 9px; border: 1px solid var(--line-2);
  color: var(--ink-dim); text-transform: uppercase;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.chip.v-game-changer { color: #ffd9a8; border-color: rgba(var(--accent-rgb),.5); background: rgba(var(--accent-rgb),.08); }
.chip.v-game-changer .dot { background: var(--amber); }
.chip.v-strong { color: #b9e6c9; border-color: rgba(122,210,165,.4); background: rgba(122,210,165,.07); }
.chip.v-strong .dot { background: var(--green); }
.chip.v-interesting { color: #bcd7f2; border-color: rgba(127,180,224,.4); background: rgba(127,180,224,.07); }
.chip.v-interesting .dot { background: var(--blue); }
.chip.v-niche { color: var(--ink-dim); }
.chip.v-me-too { color: #f2b8ac; border-color: rgba(229,113,95,.35); background: rgba(229,113,95,.06); }
.chip.v-me-too .dot { background: var(--red); }
.chip.v-skip { color: #f2b8ac; border-color: rgba(229,113,95,.5); background: rgba(229,113,95,.1); }
.chip.v-skip .dot { background: var(--red); }
.chip.cat { color: var(--ink); }
.chip.cat .dot { background: var(--blue); }
.chip.cat.hardware .dot { background: var(--amber); }
.chip.isnew { color: #1a1208; background: var(--green); border-color: var(--green); font-weight: 700; animation: newpulse 2.4s ease infinite; }
.chip.isnew .dot { background: #1a1208; }
@keyframes newpulse { 50% { box-shadow: 0 0 14px rgba(122,210,165,.5); } }
.chip.free { color: var(--green); border-color: rgba(122,210,165,.5); background: rgba(122,210,165,.08); font-weight: 700; }
.chip.free .dot { background: var(--green); }

/* ============================================================
   Rail heads
   ============================================================ */
.rail-head { display: flex; align-items: baseline; gap: 14px; margin: 34px 0 16px; }
.rail-title { font-size: 21px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.rail-bullet { width: 9px; height: 9px; background: var(--amber); border-radius: 2px; display: inline-block; transform: rotate(45deg); box-shadow: 0 0 10px rgba(var(--accent-rgb),.4); }
.rail-sub { color: var(--ink-faint); font-size: 12.5px; }

/* ============================================================
   On the Wire (hot rail)
   ============================================================ */
.wire-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.wire-card {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 13px; padding: 14px 15px 13px; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
  box-shadow: var(--shadow-card);
}
.wire-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(220px 90px at 50% -20%, rgba(var(--accent-rgb),.08), transparent);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.wire-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.wire-card:hover::before { opacity: 1; }
.wire-card .wc-top { display: flex; align-items: center; gap: 8px; }
.wire-card .wc-flame { color: var(--amber); font: 700 12px var(--mono); }
.wire-card .wc-title { font: 600 13.5px/1.35 var(--sans); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wire-card .wc-teaser { font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--ink-dim); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 54px; }
.wire-card .wc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.wire-card .wc-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; font: 500 11px var(--mono); color: var(--ink-faint); }
.wire-card .wc-vu { margin-left: auto; }

/* ============================================================
   Controls
   ============================================================ */
.controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 34px 0 12px; }
.seg-group, .filter-seg, .sort-seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg { border: none; background: transparent; color: var(--ink-dim); font: 600 12.5px var(--sans); padding: 7px 14px; border-radius: 999px; transition: all .16s var(--ease); }
.seg:hover { color: var(--ink); }
.seg.active { background: var(--panel-2); color: var(--amber); }
.archive-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
}
.archive-toggle:hover { border-color: var(--line-2); }
.archive-toggle.active { border-color: var(--amber); background: rgba(var(--accent-rgb), .12); color: var(--amber); }
.arc-count {
  font: 700 9.5px var(--mono); font-style: normal; color: var(--bg);
  background: var(--amber); border-radius: 999px; padding: 1px 5px; min-width: 17px; text-align: center;
}
.makerwrap { display: inline-flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 6px 3px 14px; }
.makerwrap input[type="search"] {
  border: none; background: transparent; outline: none; color: var(--ink);
  font: 500 12.5px var(--sans); width: 190px; padding: 6px 0;
}
.makerwrap input[type="search"]::placeholder { color: var(--ink-faint); }
.maker-label { font: 600 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
#maker-select { background: transparent; border: none; outline: none; color: var(--amber); font: 600 12.5px var(--sans); padding: 7px 6px; cursor: pointer; max-width: 200px; }
#maker-select option { background: var(--bg-2); color: var(--ink); }
.pollstatus { margin-left: auto; font: 500 11.5px var(--mono); color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.pollstatus .st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pollstatus.error .st-dot { background: var(--red); }
.pollstatus.running .st-dot { background: var(--amber); animation: pulse 1.4s infinite; }

/* ============================================================
   Mood + tag bar
   ============================================================ */
.moodrow { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin: 4px 0 18px; }
.moodbar-wrap { display: flex; align-items: center; gap: 11px; }
.mood-label { font: 600 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.moodbar { position: relative; width: 170px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(229,113,95,.5), rgba(var(--accent-rgb),.5), rgba(122,210,165,.6)); }
.mood-fill { position: absolute; top: -3px; width: 2.5px; height: 14px; border-radius: 2px; background: var(--ink); left: 50%; transition: left 1s var(--ease); box-shadow: 0 0 8px rgba(255,255,255,.5); }
.mood-value { font: 600 11px var(--mono); color: var(--ink-dim); min-width: 70px; }
.tagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; }
.tagbar-label { font: 600 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-right: 4px; }

/* ---------- tag chips ---------- */
.tagchip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--ink-dim); font: 500 10.5px var(--mono); letter-spacing: .04em;
  padding: 3px 9px; cursor: pointer; transition: all .14s var(--ease);
}
.tagchip:hover { color: var(--amber); border-color: var(--amber); transform: translateY(-1px); }
.tagchip em { font-style: normal; color: var(--ink-faint); font-size: 9.5px; }
.tagchip.lg { font-size: 11.5px; padding: 5px 12px; }
.tagchip.lg.active { background: rgba(var(--accent-rgb),.12); border-color: var(--amber); color: var(--amber); }
.tagchip.maker { color: var(--ink); }
.tagchip.maker:hover { color: var(--amber); }

/* ============================================================
   Feed
   ============================================================ */
.feed { display: flex; flex-direction: column; gap: 12px; }

/* ---------- archive section ---------- */
.archive-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--line-2);
  border-radius: var(--r); background: linear-gradient(120deg, rgba(var(--accent-rgb), .07), var(--bg-2));
}
.archive-copy { font-size: 12.5px; line-height: 1.5; color: var(--ink-dim); max-width: 62ch; }
.archive-copy b { color: var(--ink); font-weight: 600; }
.archive-kicker {
  display: inline-block; margin-right: 7px; padding: 2px 7px; border-radius: 999px;
  font: 700 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); border: 1px solid var(--amber);
}
.archive-meta {
  display: inline-block; margin-left: 7px; font: 600 10px var(--mono); color: var(--ink-faint);
}
.archive-meta.warn { color: var(--amber); }
.archive-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.archive-import { display: flex; align-items: center; gap: 6px; flex: 1 1 240px; }
.archive-import input {
  flex: 1 1 180px; min-width: 0; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; outline: none;
  font: 500 12px var(--sans); padding: 7px 12px;
}
.archive-import input:focus { border-color: var(--amber); }
.archive-import input::placeholder { color: var(--ink-faint); }
.chip.archive { color: var(--ink); border-color: var(--line-2); }
.chip.archive .dot { background: var(--ink-dim); }

.feed-row {
  display: grid; grid-template-columns: 116px 1fr auto; gap: 17px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 17px; cursor: pointer; align-items: center;
  transition: border-color .18s, transform .18s var(--ease), box-shadow .18s;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.feed-row::after {
  content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 2px;
  background: var(--amber); border-radius: 2px; opacity: 0; transition: opacity .2s;
}
.feed-row:hover { border-color: var(--line-2); transform: translateX(4px); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.feed-row:hover::after { opacity: .8; }
.feed-thumb { width: 116px; height: 76px; border-radius: 10px; overflow: hidden; background: var(--bg-2); position: relative; border: 1px solid var(--line); }
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.feed-row:hover .feed-thumb img { transform: scale(1.07); }
.feed-thumb .noimg { position: absolute; inset: 0; display: grid; place-items: center; font: 600 9px var(--mono); letter-spacing: .16em; color: var(--ink-faint); text-transform: uppercase; }
.feed-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.feed-title { font: 600 15.5px/1.3 var(--sans); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-teaser { font-size: 12.5px; color: var(--ink-dim); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 2px; align-items: center; }
.feed-side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; min-width: 150px; }
.vu { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.vu-lamps { display: flex; gap: 3px; }
.vu-lamps i { width: 5px; height: 12px; border-radius: 2px; background: var(--line); transition: background .3s; }
.vu-lamps i.on1 { background: var(--green); box-shadow: 0 0 6px rgba(122,210,165,.35); }
.vu-lamps i.on2 { background: var(--amber); box-shadow: 0 0 6px rgba(var(--accent-rgb),.35); }
.vu-lamps i.on3 { background: var(--red); box-shadow: 0 0 6px rgba(229,113,95,.35); }
.vu-num { font: 600 10.5px var(--mono); color: var(--ink-faint); }
.replies { font: 500 11px var(--mono); color: var(--ink-faint); display: flex; gap: 12px; }
.replies b { color: var(--ink-dim); font-weight: 600; }
.hot-delta { color: var(--amber); font-weight: 600; }
.feed-date { font: 500 10.5px var(--mono); color: var(--ink-faint); letter-spacing: .04em; }

/* ---------- skeleton loaders ---------- */
.skeleton { border-radius: var(--r); background: linear-gradient(100deg, var(--panel) 40%, var(--panel-2) 50%, var(--panel) 60%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-row { height: 106px; }
.sk-wire { height: 150px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.empty {
  border: 1px dashed var(--line-2); border-radius: var(--r);
  padding: 46px; text-align: center; color: var(--ink-faint);
  font-family: var(--serif); font-style: italic; font-size: 15px;
}

/* ============================================================
   Drawer
   ============================================================ */
.drawer-backdrop, .modal-backdrop {
  position: fixed; inset: 0; background: rgba(8,8,10,.66); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 40;
}
.drawer-backdrop.open, .modal-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(680px, 94vw);
  background: var(--bg-2); border-left: 1px solid var(--line-2);
  transform: translateX(103%); transition: transform .28s var(--ease);
  z-index: 50; display: flex; flex-direction: column;
  box-shadow: -30px 0 70px rgba(0,0,0,.45);
}
.drawer.open { transform: translateX(0); }
.drawer-bar { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.drawer-actions { display: flex; gap: 8px; align-items: center; }
.drawer-scroll { overflow-y: auto; padding: 22px 24px 40px; flex: 1; }
.drawer-scroll::-webkit-scrollbar, .modal-log::-webkit-scrollbar, .dr-press::-webkit-scrollbar { width: 8px; }
.drawer-scroll::-webkit-scrollbar-thumb, .modal-log::-webkit-scrollbar-thumb, .dr-press::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

.dr-thumbwrap { margin-bottom: 14px; }
.dr-thumbwrap.hide { display: none; }
.dr-thumb {
  width: 100%; max-height: 300px; object-fit: cover; object-position: top;
  border-radius: 12px; border: 1px solid var(--line-2); cursor: zoom-in;
  display: block; background: var(--panel); transition: opacity .25s ease, transform .3s var(--ease);
  opacity: 0;
}
.dr-thumb.ready { opacity: 1; animation: hero-img-in .8s var(--ease); }
.dr-thumb:hover { transform: scale(1.015); border-color: var(--amber); }
/* gallery: every image the thread carries */
.dr-thumbs { display: flex; gap: 8px; margin-top: 9px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 3px; }
.dr-thumbchip {
  width: 58px; height: 44px; flex-shrink: 0; border-radius: 9px; overflow: hidden;
  border: 1.5px solid var(--line-2); background: var(--panel); padding: 0;
  cursor: pointer; transition: border .15s, opacity .15s; opacity: .75;
}
.dr-thumbchip:hover { opacity: 1; }
.dr-thumbchip.sel { border-color: var(--amber); opacity: 1; box-shadow: 0 0 10px rgba(var(--accent-rgb),.25); }
.dr-thumbchip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dr-kicker { font: 600 10.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-bottom: 9px; display: flex; align-items: center; gap: 10px; }
.dr-title { font-size: 25px; font-weight: 900; line-height: 1.15; margin-bottom: 12px; }
.dr-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; align-items: center; }
.dr-scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 4px 0 20px; }
.score-cell { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; transition: border-color .2s; }
.score-cell:hover { border-color: var(--line-2); }
.score-cell .sc-label { font: 600 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.score-cell .sc-value { font-family: var(--serif); font-size: 23px; font-weight: 900; margin-top: 3px; }
.score-cell .sc-value.good { color: var(--green); }
.score-cell .sc-value.warn { color: var(--amber); }
.score-cell .sc-value.bad { color: var(--red); }
.dr-section { margin-bottom: 20px; }
.dr-h { font: 600 11px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 9px; display: flex; align-items: center; gap: 9px; }
.dr-h::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.dr-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 10.5px var(--mono); letter-spacing: .04em; color: var(--ink-faint); margin-bottom: 10px; }
.dr-meta b { color: var(--ink-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 9.5px; margin-right: 4px; }
.dr-summary { font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.dr-critique { border-left: 3px solid var(--red); padding: 3px 0 3px 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-dim); }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.plist li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.5; }
.plist li::before { font: 700 12px var(--mono); flex-shrink: 0; }
.plist.pros li::before { content: "+"; color: var(--green); }
.plist.cons li::before { content: "–"; color: var(--red); }
.plist.highlights li::before { content: "▪"; color: var(--amber); font-size: 10px; line-height: 1.7; }
.dr-press { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 15px 17px; font: 400 12.5px/1.65 var(--sans); color: var(--ink-dim); white-space: pre-wrap; max-height: 340px; overflow-y: auto; }
.dr-linkrow { margin-top: 14px; }

/* ---------- quotes ---------- */
.quotes { display: flex; flex-direction: column; gap: 10px; }
.qcard {
  margin: 0; background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--amber); border-radius: 0 11px 11px 0;
  padding: 11px 14px 10px; transition: transform .18s var(--ease);
}
.qcard:hover { transform: translateX(3px); }
.qcard:has(.b-issue) { border-left-color: var(--red); }
.qcard:has(.b-praise) { border-left-color: var(--green); }
.qcard:has(.b-testing) { border-left-color: var(--blue); }
.qcard:has(.b-skeptical), .qcard:has(.b-hype) { border-left-color: var(--amber-deep); }
.q-text { margin: 0 0 8px; font-family: var(--serif); font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.q-text::before { content: "\201C"; color: var(--ink-faint); }
.q-text::after { content: "\201D"; color: var(--ink-faint); }
.q-note { margin: 0 0 7px; font-size: 12px; color: var(--ink-dim); font-style: italic; }
.q-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qbadge {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  border-radius: 5px; padding: 2px 7px; border: 1px solid var(--line-2); color: var(--ink-dim);
}
.qbadge i { font-style: normal; font-size: 10px; }
.qbadge.b-praise { color: var(--green); border-color: rgba(122,210,165,.4); background: rgba(122,210,165,.06); }
.qbadge.b-issue { color: var(--red); border-color: rgba(229,113,95,.4); background: rgba(229,113,95,.06); }
.qbadge.b-testing { color: var(--blue); border-color: rgba(127,180,224,.4); background: rgba(127,180,224,.06); }
.qbadge.b-skeptical { color: var(--amber-deep); border-color: rgba(232,145,58,.4); background: rgba(232,145,58,.06); }
.qbadge.b-value { color: var(--amber); border-color: rgba(var(--accent-rgb),.4); background: rgba(var(--accent-rgb),.06); }
.q-author { font: 600 11.5px var(--mono); color: var(--ink); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.q-author:hover { color: var(--amber); border-color: var(--amber); }
.q-date { font: 500 10px var(--mono); color: var(--ink-faint); }
.q-empty { font-size: 12.5px; color: var(--ink-faint); font-style: italic; border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 14px; }
.q-empty code { font-family: var(--mono); color: var(--amber); font-style: normal; }
.q-refresh { padding: 4px; border-radius: 7px; margin-left: 2px; }

/* ---------- markdown ---------- */
.md p { margin: 0 0 9px; }
.md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 4px 0 9px; padding-left: 20px; }
.md li { margin: 3px 0; }
.md h4 { font: 600 12px var(--sans); margin: 10px 0 5px; color: var(--amber); letter-spacing: .02em; }
.md code { font: 500 11.5px var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.md pre { background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; overflow-x: auto; margin: 8px 0; }
.md pre code { border: none; background: none; padding: 0; }
.md a { color: var(--amber); }
.md strong { color: var(--ink); font-weight: 700; }

/* ---------- ask box ---------- */
.askbox { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.asklog { display: flex; flex-direction: column; gap: 12px; margin-bottom: 13px; }
.askq { font: 600 13px var(--sans); color: var(--amber); }
.askq::before { content: "Q "; font-family: var(--mono); color: var(--ink-faint); }
.ask-a { font-size: 13.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; }
.ask-a::before { content: "A "; font-family: var(--mono); color: var(--ink-faint); font-size: 12px; }
.ask-a.md { white-space: normal; }
.ask-a.md::before { display: block; }
.askform { display: flex; gap: 9px; }
.askform input { flex: 1; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); padding: 10px 14px; font: 500 13.5px var(--sans); outline: none; transition: border .18s, box-shadow .18s; }
.askform input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }
.thinking { font: 500 12px var(--mono); color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
.thinking::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--amber); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Modals
   ============================================================ */
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.97);
  width: min(660px, 92vw); max-height: 80vh;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px;
  z-index: 60; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: all .22s var(--ease);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
}
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 19px 0; }
.modal-title { font-family: var(--serif); font-weight: 900; font-size: 19px; }
.modal-hint { padding: 5px 19px 13px; color: var(--ink-faint); font-size: 12.5px; border-bottom: 1px solid var(--line); }
.modal-log { overflow-y: auto; padding: 15px 19px; display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 120px; }
.modal-form { display: flex; gap: 9px; padding: 13px 17px; border-top: 1px solid var(--line); }
.modal-form input { flex: 1; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink); padding: 11px 15px; font: 500 13.5px var(--sans); outline: none; transition: border .18s, box-shadow .18s; }
.modal-form input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.1); }

/* ---------- digest modal ---------- */
.digest-body { gap: 18px; }
.dg-intro { font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.dg-trend { font-size: 12.5px; color: var(--ink-dim); font-style: italic; border-left: 3px solid var(--blue); padding-left: 12px; }
.dg-pick {
  display: flex; gap: 13px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px;
  background: var(--panel); cursor: pointer; transition: all .18s var(--ease);
}
.dg-pick:hover { border-color: var(--amber); transform: translateY(-2px); }
.dg-thumb {
  flex: 0 0 92px; width: 92px; height: 66px; border-radius: 9px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-2); display: grid; place-items: center;
}
.dg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dg-thumb .noimg { font: 500 10px var(--mono); color: var(--ink-faint); }
.dg-main { flex: 1; min-width: 0; }
.dg-picktop { display: flex; align-items: baseline; gap: 8px; }
.dg-pick .dg-n { font: 700 11px var(--mono); color: var(--amber); }
.dg-pick .dg-headline { font: 600 14.5px/1.35 var(--sans); flex: 1; min-width: 0; }
.dg-brandline { margin-top: 3px; font: 600 10.5px var(--mono); color: var(--ink-dim); text-transform: uppercase; letter-spacing: .04em; }
.dg-chips { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dg-pick .dg-why { margin-top: 7px; font-size: 12.5px; color: var(--ink-dim); line-height: 1.5; }
.dg-reply { font: 500 10.5px var(--mono); color: var(--ink-faint); }
.digest-foot { padding: 11px 17px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.digest-status { font: 500 11px var(--mono); color: var(--ink-faint); }
.digest-status.warn { color: var(--amber); }
/* Brief stays visible (dimmed) behind the thread drawer */
.digest-modal.dimmed { filter: blur(4px) brightness(.6); transition: filter .25s ease; }
.digest-modal.behind { z-index: 45; }  /* below .drawer (50) so the brief panel shows over it */

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(8,8,10,.9); backdrop-filter: blur(5px); cursor: zoom-out; }
.lightbox.open { display: grid; place-items: center; animation: fade-in .2s ease; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 40px 120px rgba(0,0,0,.6); animation: zoom-in .25s var(--ease); }
@keyframes fade-in { from { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } }

/* ============================================================
   Colophon
   ============================================================ */
.colophon { margin-top: 46px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font: 500 11px var(--mono); color: var(--ink-faint); letter-spacing: .05em; }

/* ============================================================
   Card artwork · verdict accents · small beauties
   ============================================================ */

/* On the Wire cards carry the product shot (magazine, not spreadsheet) */
.wire-card .wc-media {
  position: relative; margin: -14px -15px 2px; aspect-ratio: 16 / 10;
  overflow: hidden; border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(var(--accent-rgb),.12), var(--bg-2) 62%);
}
.wire-card .wc-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease), opacity .4s;
}
.wire-card:hover .wc-media img { transform: scale(1.06); }
.wire-card .wc-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(12,12,15,.72));
}
.wire-card .wc-media .noimg {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 9px var(--mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-faint);
}
.wc-badges {
  position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 1;
  display: flex; gap: 5px; flex-wrap: wrap; overflow: hidden; max-height: 48px;
}
.wc-badges .chip, .wc-badges .tagchip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-badges .chip { backdrop-filter: blur(6px); }

/* verdict drives the feed accent bar, so the eye sorts the wire instantly */
.feed-row::after { background: var(--amber); }
.feed-row:has(.v-game-changer)::after { background: var(--amber); }
.feed-row:has(.v-strong)::after { background: var(--green); }
.feed-row:has(.v-interesting)::after { background: var(--blue); }
.feed-row:has(.v-me-too)::after,
.feed-row:has(.v-skip)::after { background: var(--red); }

/* hero artwork sits on a soft accent halo instead of a flat frame */
.hero-media { box-shadow: var(--shadow-card), 0 0 90px rgba(var(--accent-rgb),.06); }

/* empty states get a radar illustration, not a "no data" string */
.empty::before {
  content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 12px; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23ffb454' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='32' cy='32' r='24' opacity='.45'/%3E%3Ccircle cx='32' cy='32' r='14' opacity='.75'/%3E%3Ccircle cx='32' cy='32' r='3.5' fill='%23ffb454' stroke='none'/%3E%3Cpath d='M32 8v5M56 32h-5M32 56v-5M8 32h5' opacity='.55'/%3E%3Cpath d='M32 32 50 17' stroke-width='2.4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* touch discipline: no 300ms delay, no grey flash, honest press states */
a, button, .wire-card, .feed-row, .tab, .dchip, .tagchip, .star-btn { -webkit-tap-highlight-color: transparent; }
button, .btn, .tab, .dchip { touch-action: manipulation; }
.btn:active, .iconbtn:active, .star-btn:active, .tagchip:active { transform: scale(.96); }

/* ============================================================
   Phone app shell — tab bar, sheets, gestures (hidden ≥ tablet)
   ============================================================ */

.deskbar, .tabbar, .ptr, .sheet, .sheet-backdrop { display: none; }
.search-cancel, .search-suggest { display: none; }
.sheet-grab { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheet-in { from { transform: translateY(100%); } }

/* ============================================================
   Responsive + reduced motion
   ============================================================ */
@media (max-width: 980px) {
  #app { padding: 0 16px 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .wire-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-media { min-height: 300px; }
  /* search stays visible: it becomes a full-width row under the logo bar */
  .masthead { grid-template-columns: 1fr auto; }
  .masthead-center { order: 3; grid-column: 1 / -1; }
  .searchwrap { max-width: none; }
  .stat.makers { display: none; }
  .user-name { display: none; }
  .masthead-right .btn-label { display: none; }
  .masthead-right .btn { padding: 8px 11px; }
  .sync-pill .sp-txt { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; }
  .rail-head { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  /* ============================================================
     Phone: an app, not a website in a small window.
     Bottom tab bar + bottom sheets + pull-to-refresh + snap rails.
     ============================================================ */
  :root { --mh-h: 62px; --app-gutter: 14px; }
  #app {
    padding: 0 var(--app-gutter) calc(96px + env(safe-area-inset-bottom));
    padding-left: max(var(--app-gutter), env(safe-area-inset-left));
    padding-right: max(var(--app-gutter), env(safe-area-inset-right));
  }

  /* ---------- top app bar: logo · search pill · bell · you ---------- */
  .masthead {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px; padding: 9px 0 8px; min-height: var(--mh-h);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
  }
  .masthead-center { order: 0; grid-column: auto; }
  .logo-lockup { gap: 7px; }
  .logo-mark svg { width: 27px; height: 27px; }
  .logo-word { font-size: 18px; }
  .logo-sub { display: none; }
  .masthead-right { gap: 5px; }
  .btn.desk-only { display: none; }
  .btn.icononly { padding: 9px 10px; }
  .userchip { padding: 2px 3px; }
  .user-name { display: none; }
  .user-avatar { width: 30px; height: 30px; font-size: 12.5px; }
  .searchwrap { max-width: none; justify-self: stretch; }
  #search {
    padding: 10px 40px 10px 34px; font-size: 16px;
    background: var(--panel); border-color: var(--line-2);
  }
  .searchwrap kbd { display: none; }

  /* ---------- search takes the screen (native search sheet) ---------- */
  .searchwrap:focus-within {
    position: fixed; inset: 0; z-index: 88; max-width: none;
    display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr;
    gap: 10px; align-content: start;
    padding: calc(9px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 97%, transparent);
  }
  .searchwrap:focus-within .search-ico { left: 27px; top: calc(9px + env(safe-area-inset-top) + 16px); }
  .searchwrap:focus-within #search { grid-column: 1; grid-row: 1; background: var(--bg-2); }
  .searchwrap:focus-within .search-cancel { grid-column: 2; grid-row: 1; }
  .searchwrap:focus-within .search-pop,
  .searchwrap:focus-within .search-suggest {
    grid-column: 1 / -1; grid-row: 2; position: static; transform: none;
    width: auto; max-height: none; margin: 0; overflow-y: auto;
  }
  .search-cancel {
    display: none; align-self: center; background: none; border: none;
    color: var(--amber); font: 600 15px var(--sans); padding: 8px 2px 8px 10px;
  }
  .searchwrap:focus-within .search-cancel { display: block; }
  .sp-item { grid-template-columns: 46px 1fr auto; padding: 11px 8px; }
  .sp-thumb { width: 46px; height: 46px; }
  .sp-title { font-size: 15px; }

  /* suggestions under the empty search field instead of a blank screen */
  .search-suggest { display: block; }
  .search-suggest[hidden] { display: none; }
  .ss-head {
    font: 600 10px var(--mono); letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink-faint); margin: 4px 2px 10px;
  }
  .ss-chips { display: flex; flex-wrap: wrap; gap: 7px; }
  .ss-chip {
    background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px;
    color: var(--ink-dim); font: 500 12px var(--mono); padding: 8px 13px;
  }
  .ss-chip:active { transform: scale(.96); }
  .ss-chip.maker { font-family: var(--sans); color: var(--ink); }
  .ss-chip em { font-style: normal; color: var(--ink-faint); font-size: 9.5px; }
  .searchwrap:focus-within { overscroll-behavior: contain; }

  /* ---------- desk bar: the full feature set in one thumb-reach row ---------- */
  .deskbar {
    display: flex; gap: 8px; align-items: center;
    overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--app-gutter));
    padding: 9px var(--app-gutter) 3px;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 26px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 26px), transparent 100%);
  }
  .deskbar::-webkit-scrollbar { display: none; }
  .dchip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
    min-height: 38px; padding: 8px 14px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--line-2); color: var(--ink-dim);
    font: 600 12.5px var(--sans); transition: transform .15s var(--ease), color .15s, border-color .15s;
  }
  .dchip.solid { background: var(--amber); border-color: var(--amber); color: #1a1208; }
  .dchip.active { color: var(--amber); border-color: var(--amber); background: rgba(var(--accent-rgb),.1); }
  .dchip-count {
    min-width: 17px; height: 17px; border-radius: 999px; background: var(--amber); color: #1a1208;
    font: 700 10px var(--mono); display: inline-grid; place-items: center; padding: 0 4px;
  }

  /* ---------- pull to refresh ---------- */
  .ptr {
    position: fixed; top: var(--mh-h); left: 0; right: 0; z-index: 58;
    display: flex; align-items: center; justify-content: center; gap: 9px; height: 40px;
    transform: translateY(-130%); transition: transform .22s var(--ease);
    font: 600 10px var(--mono); letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink-faint); pointer-events: none;
  }
  .ptr.show { transform: none; }
  .ptr-spinner {
    width: 15px; height: 15px; border-radius: 50%;
    border: 2px solid var(--line-2); border-top-color: var(--amber);
    transform: rotate(var(--ptr-turn, 0deg));
  }
  .ptr.spinning .ptr-spinner { animation: spin .7s linear infinite; }
  .ptr.ready { color: var(--amber); }

  /* ---------- bottom tab bar ---------- */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border-top: 1px solid var(--line);
    transition: transform .3s var(--ease);
  }
  body.overlay-open .tabbar { transform: translateY(120%); }
  .tab {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-height: 50px; padding: 8px 2px 4px; border: none; background: none;
    color: var(--ink-faint); font: 600 10px var(--sans); border-radius: 14px;
    transition: color .18s, transform .18s var(--ease);
  }
  .tab svg { width: 21px; height: 21px; }
  .tab.active { color: var(--amber); }
  .tab.active svg { filter: drop-shadow(0 0 9px rgba(var(--accent-rgb),.5)); }
  .tab::before {
    content: ""; position: absolute; top: 1px; width: 24px; height: 3px; border-radius: 2px;
    background: var(--amber); opacity: 0; transform: translateY(-4px);
    transition: opacity .2s, transform .2s var(--ease);
  }
  .tab.active::before { opacity: 1; transform: none; }
  .tab-avatar {
    width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center;
    background: var(--panel-2); border: 1px solid var(--line-2);
    font: 700 10px var(--mono); color: var(--ink-dim);
    background-size: cover; background-position: center;
  }
  .tab-badge {
    position: absolute; top: 3px; left: calc(50% + 5px); min-width: 16px; height: 16px;
    border-radius: 999px; background: var(--amber); color: #1a1208;
    font: 700 9.5px var(--mono); display: grid; place-items: center; padding: 0 4px;
  }

  /* ---------- bottom sheets ---------- */
  .sheet-backdrop {
    display: block; position: fixed; inset: 0; z-index: 74;
    background: rgba(8,8,10,.68); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity .24s ease;
  }
  .sheet-backdrop.open { opacity: 1; pointer-events: auto; }
  .sheet {
    display: flex; flex-direction: column;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 75;
    max-height: 88dvh; background: var(--bg-2);
    border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0;
    box-shadow: 0 -30px 80px rgba(0,0,0,.55);
    transform: translateY(102%); transition: transform .34s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sheet.open { transform: none; }
  .sheet.dragging, .drawer.dragging { transition: none; }
  .sheet-grab {
    display: flex; justify-content: center; padding: 9px 0 4px;
    touch-action: none; cursor: grab; flex-shrink: 0;
  }
  .sheet-grab span { width: 38px; height: 4px; border-radius: 999px; background: var(--line-2); }
  .sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 4px 16px 10px; border-bottom: 1px solid var(--line);
  }
  .sheet-title { font-family: var(--serif); font-weight: 900; font-size: 19px; }
  .sheet-scroll { overflow-y: auto; padding: 6px 16px 22px; overscroll-behavior: contain; }
  .sheet-scroll::-webkit-scrollbar { width: 8px; }
  .sheet-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

  /* topics browser inside the sheet */
  .browse-h {
    font: 600 11px var(--mono); letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink-faint); margin: 18px 0 10px; display: flex; align-items: center; gap: 9px;
  }
  .browse-h::after { content: ""; height: 1px; background: var(--line); flex: 1; }
  .browse-chips { display: flex; flex-wrap: wrap; gap: 7px; }
  .browse-chips .tagchip {
    font-size: 11.5px; padding: 8px 13px; min-height: 38px; align-items: center;
  }
  .browse-chips .tagchip.active { background: rgba(var(--accent-rgb),.12); border-color: var(--amber); color: var(--amber); }
  .maker-rows { display: flex; flex-direction: column; }
  .maker-row {
    display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
    background: none; border: none; border-bottom: 1px solid var(--line);
    color: var(--ink); font: 600 14px var(--sans); padding: 13px 2px;
  }
  .maker-row:last-child { border-bottom: none; }
  .maker-row .mr-ava {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center;
    background: linear-gradient(140deg, rgba(var(--accent-rgb),.2), rgba(var(--accent-rgb),.05));
    border: 1px solid rgba(var(--accent-rgb),.3); color: var(--amber);
    font: 700 12px var(--mono);
  }
  .maker-row .mr-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .maker-row .mr-c { font: 600 11px var(--mono); color: var(--ink-faint); }
  .maker-row.on .mr-n { color: var(--amber); }

  /* ---------- stat strip: a tidy 3-up with makers on their own row ---------- */
  .statstrip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 10px;
    padding: 13px 2px 2px;
  }
  .stat { min-width: 0; }
  .stat-num { font-size: 23px; }
  .stat-label { font-size: 9px; letter-spacing: .12em; }
  .stat.makers { display: flex; grid-column: 1 / -1; margin-left: 0; align-items: flex-start; }
  .topmakers { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
  .topmakers::-webkit-scrollbar { display: none; }
  .topmakers .tagchip { flex: 0 0 auto; }

  /* ---------- hero ---------- */
  .hero { padding: 14px 0 2px; }
  .hero-badge { font-size: 9.5px; letter-spacing: .16em; padding: 5px 11px; }
  .hero-grid { gap: 15px; margin-top: 13px; }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; border-radius: 18px; }
  .hero-title { font-size: 27px; }
  .hero-standfirst { font-size: 15.5px; }
  .hero-rationale { font-size: 13.5px; padding-left: 12px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; font-size: 14px; }
  .hero-actions .star-btn.lg { flex: 0 0 auto; width: 44px; height: 44px; }

  /* ---------- rail: horizontal snap, like a native carousel ---------- */
  .rail-head { margin: 24px 0 10px; gap: 10px; flex-wrap: wrap; }
  .rail-title { font-size: 18px; }
  .rail-sub { font-size: 11.5px; width: 100%; order: 3; }
  .sync-pill { padding: 5px 11px; }
  .sync-pill .sp-txt { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wire-grid {
    display: flex; gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--app-gutter)); padding: 3px var(--app-gutter) 10px;
    -webkit-overflow-scrolling: touch;
  }
  .wire-grid::-webkit-scrollbar { display: none; }
  :root.compact .wire-grid { display: flex; }
  .wire-card { flex: 0 0 82%; scroll-snap-align: center; padding: 12px 13px 11px; }
  .wire-card .wc-media { margin: -12px -13px 2px; }
  .wire-card .wc-teaser { min-height: 0; }

  /* ---------- feed: compact news list with a square thumb ---------- */
  .controls { margin: 20px 0 10px; gap: 9px; }
  .filter-seg, .sort-seg { flex: 1 1 100%; }
  .filter-seg .seg, .sort-seg .seg { flex: 1; padding: 9px 6px; font-size: 12.5px; }
  .makerwrap { flex: 1 1 100%; }
  #maker-select { max-width: none; flex: 1; padding: 10px 6px; font-size: 13.5px; }
  .archive-toggle { padding: 9px 14px; }
  .archive-panel { align-items: flex-start; }
  .archive-actions { width: 100%; }
  .archive-import { flex: 1 1 100%; }
  .archive-import input { padding: 10px 12px; }
  .pollstatus { margin-left: 0; width: 100%; }
  .moodrow { gap: 12px; margin: 2px 0 12px; }
  .moodbar { width: 100%; max-width: 200px; }
  .tagbar { gap: 7px; }
  .tagchip.lg { font-size: 11.5px; padding: 7px 12px; }
  .feed { gap: 10px; }
  .feed-row {
    grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px;
    align-items: start;
  }
  :root.compact .feed-row { padding: 11px 12px; }
  .feed-thumb { width: 84px; height: 84px; border-radius: 12px; }
  .feed-title { font-size: 14.5px; }
  .feed-teaser { -webkit-line-clamp: 2; }
  .feed-side {
    grid-column: 1 / -1; flex-direction: row; align-items: center;
    justify-content: space-between; gap: 8px; min-width: 0;
  }
  .feed-side > div { flex-wrap: wrap; }
  .feed-side .vu { flex-direction: row; align-items: center; gap: 7px; }
  .replies { gap: 9px; }
  .feed-crumbs { padding: 9px 11px; }
  .empty { padding: 34px 18px; }

  /* ---------- ticker: fade the edges so it reads as a live strip ---------- */
  .ticker {
    margin: 0 calc(-1 * var(--app-gutter));
    mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  }
  .ticker-track { gap: 30px; font-size: 11px; animation-duration: 42s; }

  /* ---------- drawer becomes a bottom sheet ---------- */
  .drawer-backdrop { z-index: 74; }
  .drawer {
    top: auto; bottom: 0; left: 0; right: 0; width: 100vw; height: 96dvh; z-index: 76;
    border-left: none; border-top: 1px solid var(--line-2);
    border-radius: 22px 22px 0 0; transform: translateY(102%);
    box-shadow: 0 -30px 80px rgba(0,0,0,.55);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .drawer.open { transform: none; }
  .drawer-bar { padding: 10px 14px; }
  .drawer-actions .btn { padding: 9px 12px; font-size: 12.5px; }
  .drawer-scroll { padding: 16px 15px 70px; }
  :root.compact .drawer-scroll { padding: 14px 14px 70px; }
  .dr-title { font-size: 22px; }
  .dr-chips { gap: 6px; margin-bottom: 14px; }
  .dr-scores { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
  .score-cell { padding: 10px 12px; }
  .score-cell .sc-value { font-size: 20px; }
  .dr-section { margin-bottom: 16px; }
  .dr-press { padding: 13px 14px; max-height: 46vh; }
  .quotes .qcard { padding: 12px 14px 11px; }

  /* ---------- modals become bottom sheets ---------- */
  .modal-backdrop { z-index: 73; }
  .modal {
    left: 0; right: 0; bottom: 0; top: auto; width: 100vw; z-index: 76;
    max-height: 96dvh; height: auto; border-radius: 22px 22px 0 0;
    border-left: none; border-right: none; border-bottom: none;
    transform: translateY(102%); opacity: 1;
    transition: transform .34s var(--ease);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modal.open { transform: none; }
  .modal::before {
    content: ""; display: block; width: 38px; height: 4px; border-radius: 999px;
    background: var(--line-2); margin: 9px auto 2px; flex-shrink: 0;
  }
  .settings-modal, .auth-modal { max-height: 96dvh; }
  .modal.digest-modal { height: 94dvh; }
  .modal-head { padding: 8px 15px 0; }
  .modal-hint { padding: 5px 15px 11px; }
  .modal-log { padding: 13px 15px; }
  .modal-form { padding: 11px 13px; }
  .settings-body { padding: 6px 15px 18px; max-height: none; flex: 1; }
  .set-tabs { padding: 10px 15px 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .set-tabs::-webkit-scrollbar { display: none; }
  .set-tabs .seg { padding: 10px 9px; }
  .auth-form { padding: 13px 15px 18px; }
  .auth-tabs { padding: 12px 15px 0; }
  .digest-foot { padding: 11px 13px; flex-wrap: wrap; }
  .dg-pick { padding: 12px; }
  .dg-thumb { flex-basis: 76px; width: 76px; height: 58px; }
  .toasts { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toast { width: 100%; box-sizing: border-box; }

  /* ---------- popovers become anchored sheets ---------- */
  .popover { width: min(300px, calc(100vw - 24px)); position: fixed; top: calc(var(--mh-h) + 4px); right: 12px; }
  .popover.nc { width: min(360px, calc(100vw - 20px)); }

  /* ---------- colophon + settings grid ---------- */
  .colophon { margin-top: 34px; flex-direction: column; gap: 6px; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .wire-card { flex: 0 0 88%; }
  .logo-word { font-size: 16.5px; }
  .stat-num { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- native app entry points (/download) ---------- */
.dchip[href] { text-decoration: none; }
.colophon .foot-right { display: inline-flex; align-items: center; gap: 14px; }
.colophon .foot-app {
  color: var(--amber); text-decoration: none; font-size: 12px;
  border-bottom: 1px solid rgba(var(--accent-rgb), .35); padding-bottom: 1px;
  transition: border-color .2s, color .2s;
}
.colophon .foot-app:hover { color: var(--amber-deep); border-color: var(--amber-deep); }
.set-app {
  display: flex; align-items: center; gap: 11px; margin: 10px 0 4px;
  padding: 11px 13px; border-radius: 12px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line-2);
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s;
}
.set-app:hover { border-color: var(--amber); background: rgba(var(--accent-rgb),.06); transform: translateY(-1px); }
.set-app-ico { color: var(--amber); display: flex; }
.set-app-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.set-app-txt b { font-size: 13px; color: var(--ink); }
.set-app-txt span { font-size: 10.5px; color: var(--ink-faint); }
.set-app-ar { margin-left: auto; color: var(--amber); font-size: 13px; }

/* ============================================================
   Native app banner — device-aware install prompt
   Floats above the tab bar on phones, bottom-centre on desktop.
   ============================================================ */

.appbanner {
  position: fixed; z-index: 92; left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(620px, calc(100vw - 28px));
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px 11px 13px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 26, 33, .96), rgba(14, 14, 19, .98));
  border: 1px solid var(--line-2);
  box-shadow:
    0 32px 64px -28px rgba(0, 0, 0, .94),
    0 0 0 1px rgba(var(--accent-rgb), .08),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  opacity: 0; transform: translate(-50%, 16px) scale(.985);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.appbanner[hidden] { display: none; }
.appbanner.is-in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.appbanner::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .6), transparent);
}
.appbanner-glyph {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; color: var(--amber);
  background: radial-gradient(120% 120% at 30% 0%, rgba(var(--accent-rgb), .22), rgba(var(--accent-rgb), .07));
  border: 1px solid rgba(var(--accent-rgb), .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.appbanner-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.appbanner-kicker {
  display: flex; align-items: center; gap: 6px;
  font: 600 8.5px var(--mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint);
}
.appbanner-kicker i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px rgba(122, 210, 165, .8);
}
.appbanner-title {
  font-family: var(--serif); font-size: 15px; line-height: 1.2; letter-spacing: -.015em;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appbanner-meta {
  font: 500 9.5px var(--mono); letter-spacing: .04em; color: var(--ink-faint);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appbanner-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--amber); color: #1a1208;
  font: 700 11.5px var(--sans); letter-spacing: .01em;
  box-shadow: 0 6px 18px -8px rgba(var(--accent-rgb), .65);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.appbanner-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(var(--accent-rgb), .8); }
.appbanner-ar { transition: transform .18s var(--ease); }
.appbanner-cta:hover .appbanner-ar { transform: translateX(2px); }
.appbanner-all {
  font: 600 9.5px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); white-space: nowrap;
}
.appbanner-all:hover { color: var(--amber); }
.appbanner-close {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--ink-faint);
  background: transparent; border: 1px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.appbanner-close:hover { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, .05); }

@media (max-width: 720px) {
  .appbanner {
    bottom: calc(66px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px); flex-wrap: wrap; row-gap: 9px;
    padding: 11px 12px; border-radius: 16px;
  }
  .appbanner-copy { flex: 1 1 0; }
  .appbanner-title { font-size: 14px; }
  .appbanner-cta { order: 5; flex: 1 0 100%; justify-content: center; padding: 10px 14px; }
  .appbanner-all { display: none; }
  .appbanner-close { position: absolute; top: 5px; right: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .appbanner { transition: opacity .2s linear; transform: translate(-50%, 0) scale(1); }
}
