/* ═══════════════════════════════════════════════════════════════
   HOTSPOT_HOPPER — neon CRT (green / orange)
   Dark only. No external fonts: the system monospace stack, uppercase
   labels, glow and scanlines do the work.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #040a05;
  --panel:     rgba(8, 20, 9, 0.9);
  --panel2:    #0a1a0c;
  --ink:       #d8e8d8;
  --faint:     #7a967a;
  --rule:      #1c3d1c;
  --primary:      #6fd66a;
  --primary-dim:  #3f7a44;
  --secondary:   #d98a4a;
  --secondary-dim:#7a5236;
  --green:     #6fd66a;
  --amber:     #d9c46a;
  --red:       #d96a7a;
  --well:      #020803;   /* input / map wells */
  --placeholder: #2f5a30;
  /* channel triplets for rgba() glows; theme.js keeps them in step */
  --bg-rgb:        4, 10, 5;
  --primary-rgb:   111, 214, 106;
  --secondary-rgb: 217, 138, 74;
  --amber-rgb:     217, 196, 106;
  --red-rgb:       217, 106, 122;

  /* aliases the app was written against */
  --paper:     var(--bg);
  --paper2:    var(--panel2);
  --accent:    var(--primary);
  --accent2:   var(--green);
  --warn:      var(--amber);
  --mono:      ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --title-font: var(--mono);
  --sans:      var(--mono);
  color-scheme: dark;
}

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

html { background: var(--bg); }

body {
  margin: 0;
  padding: 28px 16px 80px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(var(--secondary-rgb), 0.096), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(var(--primary-rgb), 0.072), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

/* CRT scanlines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.16) 0px, rgba(0, 0, 0, 0.16) 1px,
    transparent 1px, transparent 3px
  );
  mix-blend-mode: multiply;
}

/* synthwave floor */
body::after {
  content: '';
  position: fixed;
  left: -20vw; right: -20vw; bottom: 0;
  height: 42vh;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(var(--bg-rgb), 1) 0%, rgba(var(--bg-rgb), 0) 35%),
    repeating-linear-gradient(90deg, rgba(var(--primary-rgb), 0.084) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(var(--secondary-rgb), 0.096) 0 1px, transparent 1px 40px);
  transform: perspective(420px) rotateX(62deg);
  transform-origin: 50% 0;
  mask-image: linear-gradient(to bottom, transparent, black 30%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

/* ── Type ───────────────────────────────────────────────────── */

h1 {
  font-family: var(--title-font);
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 .t-hot {
  color: var(--primary);
  text-shadow: 0 0 3px var(--primary), 0 0 8px rgba(var(--primary-rgb), 0.5);
}
h1 .t-sep { color: var(--faint); }
h1 .t-hop {
  color: var(--secondary);
  text-shadow: 0 0 3px var(--secondary), 0 0 8px rgba(var(--secondary-rgb), 0.5);
}
h1::after {
  content: '_';
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
  animation: blink 1.1s steps(1) infinite;
}

h2 {
  font-family: var(--title-font);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.36);
}
h2::before { content: '> '; color: var(--secondary); text-shadow: 0 0 6px var(--secondary); }

.dim   { color: var(--faint); font-weight: 400; }
.small { font-size: 12px; }
.mono  { font-family: var(--mono); }
.ok-text   { color: var(--green);  text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.36); }
.warn-text { color: var(--amber);  text-shadow: 0 0 6px rgba(var(--amber-rgb), 0.3); }

a { color: var(--primary); }
a:hover { color: #fff; text-shadow: 0 0 8px var(--primary); }

/* ── Controls ───────────────────────────────────────────────── */

button, a.button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 0 0 rgba(var(--primary-rgb), 0);
  transition: box-shadow 120ms, background 120ms, color 120ms, transform 60ms;
}
button:hover, a.button:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.42);
  text-shadow: none;
}
button:active, a.button:active { transform: translate(1px, 1px); }

button.primary, a.button.primary {
  color: var(--secondary);
  border-color: var(--secondary);
  background: rgba(var(--secondary-rgb), 0.06);
}
button.primary:hover, a.button.primary:hover {
  background: var(--secondary);
  color: #000;
  box-shadow: 0 0 16px rgba(var(--secondary-rgb), 0.48);
}
button:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
button:disabled:hover { background: transparent; color: var(--primary); }
button.ghost { border: none; background: none; color: var(--faint); padding: 2px 6px; }
button.ghost:hover { color: var(--secondary); box-shadow: none; background: none; }

input[type="text"], input[type="search"], input[type="tel"], input[type="password"], input[type="number"], input[type="url"], textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 11px;
  background: var(--well);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0;
  caret-color: var(--green);
}
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.21), 0 0 12px rgba(var(--primary-rgb), 0.15);
}
input[readonly] { color: var(--faint); }
textarea { resize: vertical; min-height: 88px; }

input[type="radio"], input[type="checkbox"] { accent-color: var(--secondary); }

/* ── Layout ─────────────────────────────────────────────────── */

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
/* Rows: title + round ?, then the hotspot bar (when there is one), then icons. */
.app-header h1 { order: 1; flex: 1 1 auto; min-width: 0; }
.help-btn { border-radius: 50%; order: 2; margin-left: auto; flex: 0 0 auto; }
.app-header .spot-bar { order: 3; flex-basis: 100%; margin: 0; }
.app-header .share-menu { order: 4; flex-basis: 100%; margin: 0; }
.app-header .spot-about { margin-top: 8px; }
.header-right { order: 5; flex-basis: 100%; display: flex; align-items: center; gap: 12px; margin-top: 2px; }
/* An open panel hangs off its icon: the icon fills and a stem joins the card. */
.app-header.has-panel { margin-bottom: 10px; }
.icon-btn { position: relative; }
.icon-btn.active, .icon-btn.active:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.45); }
.icon-btn.active::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 2px; height: 12px; background: var(--primary); transform: translateX(-50%); }
.help-btn.active::after { display: none; }
.app-header h1 { min-width: 0; }
.header-icons { display: flex; gap: 6px; }
.icon-btn {
  width: 30px; height: 30px; padding: 0;
  font-size: 14px; line-height: 28px; text-align: center;
  letter-spacing: 0;
}
.npub { font-size: 11px; color: var(--green); text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.3); letter-spacing: 0.04em; }
.identity-name { font-weight: 700; color: var(--ink); }

.author-name { font-weight: 700; color: var(--ink); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--primary-dim);
  box-shadow: 4px 4px 0 var(--secondary-dim), 0 0 18px rgba(var(--primary-rgb), 0.048) inset;
  padding: 18px;
  margin-bottom: 20px;
}
.card::before, .card::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 2px solid var(--primary);
  pointer-events: none;
}
.card::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.card::after  { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-color: var(--secondary); }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { margin-bottom: 12px; }

.field { display: block; margin: 12px 0; }
.field-label,
.field > span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dim);
  margin-bottom: 6px;
}

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row input { flex: 1; min-width: 180px; }

.status {
  font-size: 12px;
  margin-top: 10px;
  min-height: 16px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.status::before { content: '» '; color: var(--rule); }
.status:empty::before { content: none; }
.status.ok  { color: var(--green);  text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.3); }
.status.err { color: var(--red);    text-shadow: 0 0 6px rgba(var(--red-rgb), 0.3); }
.status a { color: var(--primary); }

.visibility { display: flex; gap: 18px; margin: 12px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
p.field-label { margin: 0 0 12px; }
.visibility label { display: flex; align-items: center; gap: 6px; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 4px 6px 4px 9px;
  background: var(--well);
  border: 1px solid var(--secondary-dim);
  color: var(--secondary);
  text-shadow: 0 0 6px rgba(var(--secondary-rgb), 0.24);
}
.chip button { padding: 0 3px; font-size: 11px; line-height: 1; border: none; background: none; color: var(--faint); }
.chip button:hover { color: var(--red); box-shadow: none; background: none; }

.location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin: 8px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
}
.location-row > div { min-width: 0; }
.location-row .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dim);
  margin-bottom: 3px;
}

.delivery { margin-top: 10px; }
.delivery-row { font-size: 12px; padding: 4px 0; border-top: 1px dashed var(--rule); }

.install-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 18px;
  font-size: 12px;
  background: rgba(var(--secondary-rgb), 0.048);
  border: 1px solid var(--secondary-dim);
  box-shadow: 3px 3px 0 var(--secondary-dim);
}
.install-banner span { flex: 1; }
.install-banner { transition: opacity 1s ease; }
.install-banner.fading { opacity: 0; }
/* Faded out but still taking up its space, so the page doesn't jump. */
.install-banner.faded { visibility: hidden; pointer-events: none; }

.card-summary {
  font-family: var(--title-font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.36);
  cursor: pointer;
  list-style: none;
}
.card-summary { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.card-summary::before {
  content: '>';
  display: inline-block;
  width: 1em;
  line-height: 1;
  color: var(--secondary);
  transform-origin: 50% 50%;
  transition: transform 120ms;
}
details[open] > .card-summary::before { transform: rotate(90deg); }
.card-summary::-webkit-details-marker { display: none; }

.faq { border-top: 1px dashed var(--rule); padding: 10px 0 2px; }
.faq:first-of-type { border-top: 0; padding-top: 0; }
.faq-q {
  display: flex; gap: 8px; align-items: baseline;
  color: var(--primary); cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 700;
}
.faq-q::before {
  content: '>';
  flex: 0 0 auto; width: 1em; line-height: 1;
  color: var(--secondary); transform-origin: 50% 50%; transition: transform 120ms;
}
.faq[open] > .faq-q::before { transform: rotate(90deg); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.36); }
.faq > p { margin: 8px 0 10px 1.5em; }

.check { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 12px 0; cursor: pointer; }

.nc-box {
  margin: 12px 0;
  padding: 12px;
  background: var(--well);
  border: 1px solid var(--rule);
  box-shadow: 3px 3px 0 var(--rule);
}
.nc-box p { margin: 0 0 10px; }
.nc-uri { margin-top: 10px; font-size: 11px; }

.dev { margin-top: 16px; }
.dev summary {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  cursor: pointer;
}
.dev summary:hover { color: var(--primary); }
.dev p { margin: 8px 0 0; }

/* ── Hotspot bar ────────────────────────────────────────────── */

.spot-bar { margin: -8px 0 18px; font-size: 12px; }
/* The chevron hangs to the left of the title and stays on its first line;
   a wrapped title lines up under its own text rather than under the mark. */
.spot-title { display: block; cursor: pointer; padding-left: 1.1em; text-indent: -1.1em; }
.spot-title > * { text-indent: 0; }
.spot-title .npub { margin-left: 10px; }
.spot-title:hover .spot-name { color: var(--primary); }
.row-end { justify-content: flex-end; }
.follower-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; font-size: 12px; }
.header-icons #signInBtn { padding: 6px 12px; }
.followed-list { display: flex; flex-direction: column; gap: 8px; }
.followed { background: var(--well); border: 1px solid var(--rule); border-left: 3px solid var(--secondary); padding: 8px 12px; font-size: 13px; }
.followed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; list-style: none; }
.followed-head::-webkit-details-marker { display: none; }
.followed-title { font-weight: 700; color: var(--ink); }
.followed[open] .followed-title { color: var(--primary); }
.followed-body { margin-top: 10px; }
.followed .map-stage.mini { margin-bottom: 4px; }
.badge-count {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: #000;
  background: var(--secondary);
  box-shadow: 0 0 6px rgba(var(--secondary-rgb), 0.5);
  vertical-align: middle;
}
.card-summary .badge-count { margin-left: 8px; }
a.button-link { font-size: 12px; color: var(--primary); }
.follower { padding: 4px 0; border-top: 1px dashed var(--rule); }
.spot-name { color: var(--ink); font-weight: 700; font-size: 20px; }

.spot-follow { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.follow-btn { font-size: 10px; padding: 4px 10px; }

.badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 1px 6px;
  border: 1px solid;
  margin-left: 6px;
  vertical-align: 1px;
  white-space: nowrap;
}
.badge-public  { color: var(--secondary); border-color: var(--secondary-dim); }
.badge-private { color: var(--primary);   border-color: var(--primary-dim); }
.msg-public { border-left-color: var(--secondary); }
.msg-public .msg-head { color: var(--secondary); }

/* ── Inbox ──────────────────────────────────────────────────── */

.inbox { margin-top: 10px; }
.pager { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.pager button { padding: 6px 10px; }
.pager #pagerInfo { margin-left: auto; }
.msg {
  background: var(--well);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.msg-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; margin-bottom: 6px; color: var(--green); }
.msg { cursor: pointer; }
.msg-block:empty { display: none; }
.msg-meta { font-size: 11px; margin: -2px 0 6px; display: none; }
.msg.open > .msg-meta { display: block; }
.msg-actions { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 10px; }
.msg-details { display: none; }
.msg.open > .msg-details, .reply.open > .msg-details { display: block; }
.reply.open > .msg-meta { display: block; }
.msg.open > .msg-actions .msg-hint, .reply.open > .msg-actions .msg-hint { display: none; }
/* Replies are simply indented; the thread is hidden until the bubble is pressed. */
.thread { margin: 8px 0 2px 0; padding-left: 22px; }
.msg.thread-collapsed > .thread { display: none; }
.reply { padding: 6px 0; cursor: pointer; }
.msg-actions button.heart { color: var(--secondary); font-size: 13px; padding: 2px 5px; }
.msg-actions button.heart.liked { color: var(--red); }
.msg-actions button.bubble { color: var(--primary); font-size: 12px; padding: 2px 5px; }
.msg-actions .spacer { flex: 1; }
.msg-actions .reply-btn { color: var(--secondary); }
button.info-btn {
  width: 17px; height: 17px; padding: 0; line-height: 15px; text-align: center;
  border: 1px solid var(--faint); border-radius: 50%; color: var(--faint); background: none;
  font-size: 10px; font-family: var(--mono); font-weight: 700; text-transform: none; letter-spacing: 0;
}
button.info-btn:hover { color: var(--primary); border-color: var(--primary); background: none; box-shadow: none; }
.msg.open > .msg-head .info-btn, .reply.open > .msg-head .info-btn { color: var(--primary); border-color: var(--primary); }
.msg-meta .msg-clue { margin-top: 6px; }
.trail-map { margin: 8px 0; }
.map-stage { position: relative; width: 100%; overflow: hidden; background: var(--well); border: 1px solid var(--rule); }
.map-inner { position: absolute; left: 0; top: 0; width: 600px; height: 320px; transform-origin: 0 0; }
.map-link { display: block; text-decoration: none; }
.map-stage.mini { margin-bottom: 8px; }
.map-link:hover .map-stage { border-color: var(--primary); }
.map-inner svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.map-inner .tile {
  position: absolute; width: 256px; height: 256px; display: block;
  image-rendering: pixelated;
  /* dark, green-tinted street map so it sits in the theme */
  filter: grayscale(1) invert(1) brightness(0.55) contrast(1.1) sepia(1) hue-rotate(60deg) saturate(1.6);
}
.map-credit { font-size: 10px; color: var(--faint); text-align: right; margin-top: 2px; }
.map-credit a { color: var(--faint); }
.trail-map .stop:hover circle { stroke: var(--ink); }
.trail-list { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.stop-row { display: flex; gap: 10px; padding: 6px 8px; cursor: pointer; border: 1px solid transparent; }
.stop-row:hover, .stop-row.selected { border-color: var(--primary-dim); background: rgba(var(--primary-rgb), 0.05); }
.stop-num { flex: 0 0 22px; height: 22px; line-height: 20px; text-align: center; border: 1px solid var(--primary); color: var(--primary); border-radius: 50%; font-size: 11px; font-weight: 700; }
.stop-body { display: flex; flex-direction: column; gap: 2px; }
.stop-body .msg-clue { margin-top: 0; }
.reply .msg-head { margin-bottom: 4px; }
.reply .msg-body { font-size: 13px; }
.subsection { margin-top: 8px; }
.settings-section { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); }
.msg-actions .ghost { padding: 0; font-size: 10px; color: var(--secondary); }
.reply-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12px; padding: 6px 10px; margin-bottom: 8px;
  border: 1px dashed var(--secondary-dim); color: var(--secondary);
}
.msg-head .dim { color: var(--faint); }
.msg-body { font-size: 13px; white-space: pre-wrap; word-break: break-word; color: var(--ink); }
.msg-clue {
  font-size: 13px;
  margin-top: 8px;
  color: var(--secondary);
}
.msg-clue-card { border-left-color: var(--secondary-dim); padding-top: 8px; padding-bottom: 8px; }
.msg-clue-card .msg-clue { margin-top: 4px; }
.msg-loc { font-size: 12px; margin-top: 8px; }
.msg-loc a { color: var(--secondary); }

/* ── Test harness ───────────────────────────────────────────── */

.test-header p { margin: 0 0 16px; font-size: 12px; }
.test-controls { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 12px; }

.summary {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid;
}
.summary.ok  { color: var(--green); border-color: var(--green); background: rgba(var(--primary-rgb), 0.036); box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.15); }
.summary.bad { color: var(--red);   border-color: var(--red);   background: rgba(var(--red-rgb), 0.048); box-shadow: 0 0 14px rgba(var(--red-rgb), 0.18); }

table { width: 100%; border-collapse: collapse; font-size: 12px; }
th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dim);
  padding: 6px 8px;
  border-bottom: 1px solid var(--rule);
}
td { padding: 8px; border-bottom: 1px dashed var(--rule); vertical-align: top; }
td.num, th.num { text-align: right; width: 56px; }
tr.ok  td:first-child { color: var(--green); }
tr.bad td:first-child { color: var(--red); }
tr.bad td { background: rgba(var(--red-rgb), 0.036); }
.failures { font-size: 11px; color: var(--red); margin-top: 6px; line-height: 1.7; word-break: break-word; }

/* ── Motion ─────────────────────────────────────────────────── */

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  h1::after { animation: none; }
  button, a.button { transition: none; }
}

@media (max-width: 480px) {
  body { padding: 18px 12px 80px; }
  .card { padding: 14px; }
  h1 { font-size: 30px; }
  .spot-name { font-size: 19px; }
  .app-header { gap: 10px; }
  /* icon row spreads across the full width; buttons grow to fill it */
  .header-right { gap: 0; }
  .header-icons { width: 100%; display: flex; justify-content: space-between; gap: 6px; }
  .header-icons .icon-btn { flex: 1 1 0; height: 46px; line-height: 44px; font-size: 19px; max-width: 64px; }
  .header-icons .icon-btn .eye { width: 22px; height: 22px; }
}

/* ── Bitcoin mode ─────────────────────────────────────────── */
body:not(.btc) .btc-only { display: none !important; }
body.btc .msg-when { display: none; }
body:not(.btc) .msg-block { display: none; }

.toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.toggle-row input { margin-top: 3px; accent-color: var(--primary); }
.toggle-row .label { display: block; margin-bottom: 4px; }

input.amount, .row input.amount { width: 84px; min-width: 0; flex: 0 0 auto; -moz-appearance: textfield; }
input.amount::-webkit-outer-spin-button, input.amount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.location-row > .row { flex: 0 0 auto; flex-wrap: nowrap; }

.wallet-balance {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary);
  margin: 6px 0 14px;
  text-shadow: 0 0 8px rgba(var(--secondary-rgb), 0.35);
}
button.wallet-balance { background: none; border: none; box-shadow: none; padding: 0; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; font-family: inherit; }
button.wallet-balance:hover { color: var(--primary); box-shadow: none; background: none; }

.msg-actions button.zap { font-size: 12px; color: var(--secondary); }
.msg-actions button.zap.zapped { font-weight: 700; }
.msg-actions button.zap[disabled] { opacity: 0.35; }

.zap-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
}
.zap-row .status { flex-basis: 100%; margin: 0; }

.stash-box {
  margin: 8px 0 4px;
  padding: 8px 10px;
  font-size: 12px;
  border: 1px dashed var(--secondary-dim);
  background: rgba(var(--secondary-rgb), 0.048);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.stash-box strong { color: var(--secondary); }
.stash-box .stash-claim { margin-left: auto; border: 1px solid var(--secondary-dim); padding: 2px 10px; }

/* iOS Safari zooms the page when a focused field's text is under 16px.
   On touch devices every text field gets 16px so the layout stays put. */
@media (pointer: coarse) {
  input[type="text"], input[type="search"], input[type="tel"], input[type="password"], input[type="number"], input[type="url"],
  input[type="search"], input[type="email"], textarea, select { font-size: 16px; }
}

button.copied { color: var(--primary); border-color: var(--primary); }

select {
  width: 100%;
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 11px;
  background: var(--well);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.21); }

.icon-btn .eye { display: block; margin: 0 auto; }

.near-dist { color: var(--secondary); font-weight: 700; }

.person-link { cursor: pointer; }
.person-link:hover { color: var(--primary); }
.follower { display: flex; align-items: center; gap: 6px; }
.follower .spacer { flex: 1; }
.small-btn { font-size: 11px; padding: 2px 8px; border: 1px solid var(--rule); }

#personNpub { word-break: break-all; margin-bottom: 6px; }

.qr-box { display: inline-block; background: #fff; padding: 8px; margin: 8px 0; max-width: 100%; }
.qr-box svg { display: block; width: 220px; max-width: 100%; height: auto; }
#createQr svg, #spotQr svg { width: 280px; }
.scan-stage { position: relative; width: 100%; background: var(--well); border: 1px solid var(--rule); min-height: 40px; }
.scan-stage video { display: block; width: 100%; max-height: 60vh; object-fit: cover; }
.button-like { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--primary-dim); color: var(--primary); cursor: pointer; }
.button-like:hover { border-color: var(--primary); }

/* on/off switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: 0 0 auto; margin-top: 1px; }
.switch input { opacity: 0; width: 0; height: 0; margin: 0; position: absolute; }
.switch .slider { position: absolute; inset: 0; background: var(--well); border: 1px solid var(--rule); transition: background 0.15s, border-color 0.15s; }
.switch .slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: var(--faint); transition: transform 0.15s, background 0.15s; }
.switch input:checked + .slider { background: rgba(var(--primary-rgb), 0.18); border-color: var(--primary); box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.35); }
.switch input:checked + .slider::before { transform: translateX(18px); background: var(--primary); }
.switch input:focus-visible + .slider { outline: 1px solid var(--primary); }
.toggle-row { align-items: center; }

.danger-zone { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--red); }
.confirm-box { margin: 10px 0; padding: 10px 12px; background: var(--panel2); border: 1px solid var(--rule); border-left: 3px solid var(--primary); border-radius: 6px; }
.confirm-box > .label { margin-bottom: 6px; }
.confirm-box p { margin: 0 0 10px; }
button.danger { color: var(--red); border-color: var(--red); }
button.danger:hover { box-shadow: 0 0 12px rgba(var(--red-rgb), 0.4); }



.share-menu { margin: -8px 0 16px; padding: 10px 12px; border: 1px solid var(--rule); background: var(--well); }
.follow-btn.active, .follow-btn.active:hover { background: var(--primary); color: var(--bg); border-color: var(--primary); box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.45); }

/* items */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.item-tile { border: 1px solid var(--rule); background: var(--well); padding: 8px 6px; text-align: center; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--ink); }
.item-tile svg { display: block; margin: 0 auto 6px; width: 60px; height: 60px; image-rendering: pixelated; }
.item-tile:hover, .item-tile.selected { border-color: var(--primary); }
.item-tile .dim { display: block; }
.item-detail { margin-top: 10px; padding: 10px; border: 1px solid var(--rule); background: var(--well); }
.item-detail-head { display: flex; align-items: center; gap: 12px; }
.item-detail-head svg { width: 96px; height: 96px; image-rendering: pixelated; flex: 0 0 auto; }
.mint-box { margin-top: 10px; padding: 10px; border: 1px dashed var(--rule); }
#itemTagQr svg { width: 220px; }

.stat-sliders { display: grid; grid-template-columns: 1fr; gap: 6px; }
.stat-row { display: grid; grid-template-columns: 96px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; }
.stat-row input[type="range"] { width: 100%; accent-color: var(--primary); margin: 0; }
.stat-row .stat-val { text-align: right; color: var(--secondary); font-weight: 700; }
.stat-bars { display: grid; grid-template-columns: 96px 1fr 30px; gap: 4px 8px; font-size: 11px; align-items: center; margin-top: 6px; }
.stat-bars .bar { height: 6px; background: var(--well); border: 1px solid var(--rule); }
.stat-bars .bar i { display: block; height: 100%; background: var(--primary); }
.item-skill { margin-top: 6px; font-size: 12px; color: var(--secondary); }

.item-tile:disabled { opacity: 1; cursor: default; }

.item-file { margin-top: 8px; }
.item-file audio { width: 100%; }
.item-file img { max-width: 100%; display: block; border: 1px solid var(--rule); }
.item-file pre { white-space: pre-wrap; font-size: 12px; background: var(--well); padding: 10px; border: 1px solid var(--rule); max-height: 50vh; overflow: auto; }
.item-file iframe { width: 100%; height: 60vh; border: 1px solid var(--rule); background: #fff; }

.panel-title { cursor: pointer; }
.panel-title::before { content: '∨ '; color: var(--secondary); }
.panel-title:hover { color: var(--primary); }

.card-summary .spacer { flex: 1; }
.refresh-btn { width: 28px; height: 28px; line-height: 26px; border: 1px solid var(--rule); margin: -4px 0; }
.refresh-btn svg { display: block; margin: 0 auto; }
.refresh-btn.spinning svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.last-treasure { margin-top: 8px; font-size: 13px; }
.last-treasure .item-grid { margin-top: 6px; }

.update-list { display: flex; flex-direction: column; gap: 4px; font-size: 12px; margin-top: 4px; }
.update { padding: 4px 0; border-top: 1px dashed var(--rule); }
.update.unseen { color: var(--primary); }

.dm-messages { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; padding: 8px; background: var(--well); border: 1px solid var(--rule); }
.dm { max-width: 85%; padding: 6px 10px; border: 1px solid var(--rule); font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.dm.mine { align-self: flex-end; border-color: var(--primary-dim); }
.dm .dim { display: block; font-size: 10px; margin-top: 2px; }
.dm-row.unread .author-name { color: var(--primary); }
.icon-btn .badge-count { position: absolute; top: -7px; right: -7px; font-size: 10px; width: 18px; height: 18px; min-width: 0; padding: 0; border-radius: 50%; line-height: 18px; }

.row select { flex: 1; min-width: 150px; width: auto; }

/* ── Friend search dropdown (private message recipients) ── */
.suggest-wrap { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  display: flex; flex-direction: column;
  background: var(--panel2); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); margin-top: 4px; overflow: hidden;
}
.suggest-item {
  text-align: left; border: none; border-radius: 0; background: none; box-shadow: none;
  padding: 8px 10px; font-size: 13px; color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover, .suggest-item:focus { background: var(--well); }

/* ── Hotspot types ── */
.type-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; }
.type-list label {
  display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--well); font-size: 13px;
}
.type-list label:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.25); }
.type-list input { margin-top: 3px; }
.type-list .type-name { color: var(--ink); }
.type-list .type-blurb { display: block; color: var(--faint); font-size: 12px; margin-top: 2px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.info-grid .field.wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .info-grid { grid-template-columns: 1fr; } }
.contact-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 6px; }
@media (max-width: 480px) { .contact-row { grid-template-columns: 1fr; } }
.info-view { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; margin: 8px 0; }
.info-view dt { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 3px; }
.info-view dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.info-view dd.big { font-size: 18px; color: var(--primary); }
.contact-card {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; margin-bottom: 6px;
  border: 1px solid var(--rule); background: var(--well);
}
.contact-card .name { flex: 1 1 120px; }
.contact-card a { text-decoration: none; }
.alert-banner {
  padding: 10px 12px; margin-bottom: 10px; font-size: 14px;
  border: 1px solid var(--red); background: rgba(var(--red-rgb), 0.12); color: var(--ink);
}

/* hotspot title: chevron opens the about/followers drop-down */
.spot-chev { display: inline-block; width: 1.1em; color: var(--primary); font-weight: 700; font-size: 18px; line-height: 1; transition: transform 0.15s; transform-origin: 45% 50%; }
.spot-chev.open { transform: rotate(90deg); }
.spot-about p { margin: 0 0 6px; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* profile head + sub-panels */
.profile-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 56px; border: 1px solid var(--rule); background: var(--well); }
.avatar-fallback { display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: var(--primary); font-family: var(--title-font); }
.profile-who { min-width: 0; }
.profile-name { font-size: 18px; font-weight: 700; color: var(--ink); word-break: break-word; }
#profileAbout { margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.profile-tabs button.active { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.25); }
.profile-sub { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--rule); }
.profile-sub > .label { margin-bottom: 6px; }
#myNpub { font-size: 12px; }

.icon-pair { display: inline-flex; align-items: center; gap: 4px; padding-left: 10px; padding-right: 10px; }
.icon-pair svg { display: block; }

/* ── Loading: a rabbit hopping across a field ── */
.hop-load { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--bg, #040a05); color: var(--faint, #7a967a); font: 13px var(--mono, ui-monospace, Menlo, monospace); transition: opacity 0.35s; }
.hop-load.done { opacity: 0; pointer-events: none; }
.hop-field { position: relative; width: min(320px, 80vw); height: 84px; overflow: visible; }
/* 11px above the ground + a 50px sprite + a 16px hop + room for the tilt */
.hop-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background:
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(111,214,106,0.55) 7px 9px, transparent 9px 16px, rgba(111,214,106,0.35) 16px 18px, transparent 18px 23px) 0 0 / 23px 6px no-repeat,
    linear-gradient(var(--primary-dim, #3f7a44), var(--primary-dim, #3f7a44)) 0 6px / 100% 2px no-repeat,
    linear-gradient(rgba(63,122,68,0.35), rgba(63,122,68,0.35)) 0 8px / 100% 4px no-repeat;
  background-repeat: repeat-x, no-repeat, no-repeat; }
.hop-fill { position: absolute; left: 0; bottom: 6px; height: 2px; width: 0; background: var(--primary, #6fd66a); box-shadow: 0 0 8px rgba(111,214,106,0.8); animation: hop-fill 2.6s ease-in-out infinite; }
.hop-runner { position: absolute; left: 0; bottom: 11px; width: 44px; height: 50px; color: var(--secondary, #d98a4a); animation: hop-run 2.6s ease-in-out infinite; }
.hop-rabbit { display: block; animation: hop-jump 0.55s ease-in-out infinite; transform-origin: 50% 100%; }
.hop-text { letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
@keyframes hop-fill { 0% { width: 0; } 92%, 100% { width: 100%; } }
@keyframes hop-run { 0% { transform: translateX(0); } 92%, 100% { transform: translateX(calc(min(320px, 80vw) - 44px)); } }
@keyframes hop-jump { 0% { transform: translateY(0) scaleY(0.85) rotate(0deg); } 15% { transform: translateY(-4px) scaleY(1.08) rotate(-10deg); } 45% { transform: translateY(-16px) scaleY(1) rotate(-6deg); } 75% { transform: translateY(-6px) scaleY(1) rotate(6deg); } 100% { transform: translateY(0) scaleY(0.85) rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .hop-fill, .hop-runner, .hop-rabbit { animation-duration: 6s; } .hop-rabbit { animation: none; } }
.mint-row { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.mint-info { min-width: 0; flex: 1 1 auto; overflow: hidden; }
.mint-info strong { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.mint-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mint-info .small:not(.mint-url) { overflow-wrap: anywhere; }
.mint-actions { display: flex; gap: 4px; flex: 0 0 auto; align-items: center; }
.mint-actions .small { white-space: nowrap; }
.mint-rating { display: inline-block; margin-left: 8px; font-size: 11px; color: var(--ink); white-space: nowrap; }
.mint-rating .stars { color: var(--amber); letter-spacing: 1px; }
.mint-rating .off { color: var(--rule); }

/* mint picker (cashu.me style chip + list) */
.mint-picker { position: relative; margin: 6px 0 4px; }
.mint-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--well); color: var(--ink); font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.mint-chip:hover, .mint-chip.open { border-color: var(--primary); box-shadow: none; }
.mint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 6px rgba(var(--secondary-rgb), 0.7); }
.mint-caret { color: var(--faint); font-size: 10px; }
.mint-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: min(340px, 100%); background: var(--panel2); border: 1px solid var(--rule); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.mint-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: none; border-bottom: 1px solid var(--rule); background: none; box-shadow: none; text-align: left; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 13px; }
.mint-item:last-child { border-bottom: none; }
.mint-item:hover, .mint-item.active { background: var(--well); box-shadow: none; }
.mint-item.active .mint-name { color: var(--primary); }
.mint-item.add { color: var(--faint); }
.mint-tick { width: 14px; color: var(--primary); text-align: center; flex: 0 0 14px; }
.mint-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mint-meta .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mint-name { font-weight: 600; }
.mint-bal { white-space: nowrap; color: var(--secondary); font-weight: 700; }
#dmTab { position: relative; }
#dmTab .badge-count { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; min-width: 0; padding: 0; border-radius: 50%; line-height: 18px; font-size: 10px; }
.profile-logout { align-self: flex-start; flex: 0 0 auto; margin-left: auto; }
/* the sign-in card nested under the profile icon loses its own frame */
#profileLoginHost .card { border: none; box-shadow: none; padding: 0; margin: 0; background: none; }
#profileLoginHost .card::before, #profileLoginHost .card::after { display: none; }

/* clear button beside the private key box */
.key-row { flex-wrap: nowrap; gap: 6px; align-items: center; }
.key-row input { min-width: 0; flex: 1 1 auto; }
.clear-btn { flex: 0 0 35px; width: 35px; height: 35px; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; color: var(--red); border-color: var(--red); font-size: 14px; line-height: 1; border-radius: 0; }
.clear-btn:hover { background: rgba(var(--red-rgb), 0.15); box-shadow: 0 0 10px rgba(var(--red-rgb), 0.35); }
/* under the profile icon the sign-in box needs no title of its own */
#profileLoginHost #loginDetails > .card-summary { display: none; }
#loginIntro p { margin: 0 0 16px; }
#loginIntro p:last-child { margin-bottom: 10px; }
.follow-person.on { color: var(--primary); border-color: var(--primary); }

/* footer */
.app-footer { margin: 28px 0 24px; padding-top: 14px; border-top: 1px dashed var(--rule); color: var(--faint); font-size: 12px; }
.app-footer a { color: var(--secondary); text-decoration: none; }
.app-footer a:hover { text-decoration: underline; }
.app-footer .zap-btn:hover { box-shadow: 0 0 10px rgba(var(--amber-rgb), 0.45); }
.app-footer #devZapBox { text-align: left; }
.app-footer #devZapBox .row { justify-content: flex-start; }
.app-footer #devZapPr { width: 100%; font-size: 11px; margin: 6px 0; }
.follow-person.on { color: var(--primary); border-color: var(--primary); }

/* font picker: a drop-down whose rows are drawn in their own font */
.picker { position: relative; margin-top: 6px; }
.picker-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px; border: 1px solid var(--rule); background: var(--well); color: var(--ink);
  font-size: 15px; text-transform: none; letter-spacing: 0; font-weight: 400; text-align: left; border-radius: 0; }
.picker-btn:hover, .picker-btn.open { border-color: var(--primary); box-shadow: none; }
.picker-menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30;
  max-height: 300px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--panel2); border: 1px solid var(--rule); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.picker-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 11px;
  border: none; border-bottom: 1px solid var(--rule); background: none; box-shadow: none;
  text-align: left; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 16px; color: var(--ink); }
.picker-item:last-child { border-bottom: none; }
.picker-item:hover, .picker-item.active { background: var(--well); box-shadow: none; }
.picker-item.active .picker-label { color: var(--primary); }
.picker-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* footer: credit line, then one row of buttons at the very bottom */
.footer-credit { text-align: center; margin: 0 0 12px; }
.footer-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.footer-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  font-size: 10px; border: 1px solid var(--primary-dim); background: none; color: var(--primary); }
.footer-btn:hover { border-color: var(--primary); box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.35); }
.footer-btn svg { flex: 0 0 auto; }
.footer-btn.on { color: var(--primary); border-color: var(--primary); }
.footer-btn.support { color: var(--amber); border-color: var(--amber); }
.footer-btn.support:hover, .footer-btn.support.open { box-shadow: 0 0 10px rgba(var(--amber-rgb), 0.45); }
.app-footer #devZapBox { text-align: left; margin-bottom: 12px; }
.app-footer #devZapBox .row { justify-content: flex-start; }

/* appearance: a titled section per thing, each with ‹ menu › Random */
.look-section { margin-bottom: 16px; }
.look-section .field-label { margin: 2px 0 6px; }
.picker-row { display: flex; align-items: stretch; gap: 6px; }
.picker-row .picker { flex: 1 1 auto; min-width: 0; margin-top: 0; }
.step-btn { flex: 0 0 auto; padding: 0 10px; font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.step-btn.wide { font-size: 10px; letter-spacing: 0.1em; }
.picker-btn .pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-swatch { display: inline-flex; gap: 2px; margin-left: auto; flex: 0 0 auto; }
.theme-swatch i { width: 12px; height: 12px; border: 1px solid var(--rule); }
.pick-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.picker-item .picker-label { flex: 1 1 auto; }

/* a line that says what just happened, then gets out of the way */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(8px);
  z-index: 200; max-width: min(90vw, 420px); padding: 10px 16px;
  border: 1px solid var(--primary); background: var(--panel2); color: var(--primary);
  font-size: 13px; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
