/* Shared, generic stylesheet — identical across every site running this app. Nothing here names a
   concrete color or font: every var(--x) below is set by that site's theme.php, injected as an
   inline <style> block after this file loads (see inc/bootstrap.php's theme_css_vars()). Five of
   those variables — --on-dab, --on-flash, --on-hot, --on-good, --on-alarm — are the text color
   paired with each background, so a very different palette can still keep readable contrast
   without editing this file. Font files are site-owned too: they live in the site's private
   folder and their @font-face rules are generated from theme.php (see inc/bootstrap.php). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.45;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--flash); outline-offset: 2px; }

.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .9rem; max-width: 62ch; }

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 12vw, 4.2rem);
  line-height: .95;
  letter-spacing: .01em;
  color: var(--stock);
  text-shadow: 3px 3px 0 var(--hot);
}
.wordmark.small { font-size: 1.5rem; text-shadow: 2px 2px 0 var(--hot); }
.muted-title { font-family: var(--body); font-size: .9rem; text-shadow: none; color: var(--muted); margin-left: .35rem; }

/* ---------- forms & buttons ---------- */
label { display: grid; gap: .3rem; font-weight: 700; font-size: .95rem; }
input, textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: color-mix(in srgb, var(--night) 65%, black);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: .7rem .8rem;
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 65%, var(--night)); }
input:focus, textarea:focus { border-color: var(--flash); outline: none; }
textarea { resize: vertical; }

.btn {
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--night-3);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: .6rem 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--hot); border-color: var(--hot); color: var(--on-hot); }
.btn.primary:hover { background: #57d6ff; }
.btn.good { background: var(--good); border-color: var(--good); color: var(--on-good); }
.btn.good:hover { background: #3fe89c; }
.btn.danger { background: transparent; border-color: var(--alarm); color: var(--alarm); }
.btn.ghost { background: transparent; }
.btn.small { padding: .3rem .65rem; font-size: .85rem; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.big { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.25rem; padding: .7rem 1.2rem; width: 100%; letter-spacing: .04em; }
.linklike { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; padding: .3rem; }

.stack { display: grid; gap: 1rem; }
.notice { padding: .7rem .9rem; border-radius: 10px; font-weight: 700; }
.notice.bad { background: color-mix(in srgb, var(--alarm) 22%, var(--night)); color: color-mix(in srgb, var(--alarm) 35%, white); border: 2px solid var(--alarm); }

/* ---------- gate (join / admin login) ---------- */
.gate {
  max-width: 26rem;
  margin: 0 auto;
  padding: max(2.5rem, env(safe-area-inset-top)) 1.25rem 3rem;
  display: grid;
  gap: 1.2rem;
}
.lede { color: var(--muted); font-size: 1.05rem; }

/* ---------- player game ---------- */
.game {
  max-width: 34rem;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(.7rem, env(safe-area-inset-top)) .9rem max(.8rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.game-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.game-meta { display: grid; justify-items: end; font-size: .85rem; line-height: 1.25; }
.who { font-weight: 700; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.banner {
  border-radius: 12px;
  padding: .55rem .9rem;
  background: var(--flash);
  color: var(--on-flash);
  display: grid;
  gap: .15rem;
  animation: banner-in .28s ease-out;
}
.banner strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 1.1rem; line-height: 1.1; }
.banner.win { background: var(--good); color: var(--on-good); }
.banner.info { background: var(--night-3); color: var(--text); border: 2px solid var(--line); }
@keyframes banner-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

.card {
  background: var(--stock);
  color: var(--stock-ink);
  border-radius: 16px;
  padding: .55rem .6rem .65rem;
  box-shadow: 0 5px 0 #05070a;
  /* takes whatever height the screen has left, so the page never needs to scroll */
  flex: 1 1 auto;
  min-height: 17.5rem;
  max-height: 44rem;
  display: flex;
  flex-direction: column;
}
.letters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.4rem, 7vw, 2.1rem);
  line-height: 1;
  padding: .05rem 0 .4rem;
}
.letters span:nth-child(odd) { color: var(--hot-deep); }
.letters span:nth-child(even) { color: var(--stock-ink); }

.grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 2px;
  background: var(--stock-ink);
  border: 2px solid var(--stock-ink);
  border-radius: 6px;
  overflow: hidden;
}
.cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 3px;
  border: 0;
  border-radius: 0;
  background: var(--stock);
  color: var(--square-text);
  font: inherit;
  font-weight: var(--square-text-weight);
  font-size: clamp(.58rem, 2.6vw, .82rem);
  line-height: 1.12;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-wrap: break-word;
  hyphens: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}
.cell > .cell-text { position: relative; z-index: 2; }
.cell::after {
  content: "";
  position: absolute;
  inset: 4%;
  z-index: 1;
  border-radius: 40%;
  background: radial-gradient(circle at 42% 38%, color-mix(in srgb, var(--dab) 85%, transparent), color-mix(in srgb, var(--dab-deep) 92%, transparent) 70%);
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0deg)) scale(0);
  opacity: 0;
}
.cell.marked { font-weight: 700; letter-spacing: -.005em; }
.cell.marked::after { transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0deg)) scale(1); opacity: 1; }
.cell.marked > .cell-text { color: var(--on-dab); }
.cell.dab-in::after { animation: dab .18s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes dab {
  from { transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0deg)) scale(1.5); opacity: .2; }
  to   { transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0deg)) scale(1); opacity: 1; }
}
.cell.free {
  background: var(--flash);
  color: var(--on-flash);
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(.8rem, 4vw, 1.2rem);
  cursor: default;
}
.cell.free::after { display: none; }
.cell.win { box-shadow: inset 0 0 0 3px var(--hot-deep); }
.cell.locked { cursor: not-allowed; }

/* ---------- photo mode: a square is filled by uploading a photo, not tapping it ---------- */
.photo-mode .cell::after { display: none; } /* no ink dab — the photo itself is the mark */
.cell-photo {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.photo-mode .cell.uploading > .cell-text,
.photo-mode .cell.photo-submitted > .cell-text,
.photo-mode .cell.photo-verified > .cell-text,
.photo-mode .cell.photo-rejected > .cell-text { visibility: hidden; } /* the photo covers it; prompt is still in the detail view */
.cell.uploading .cell-photo { opacity: .55; }
.cell.uploading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 3px solid color-mix(in srgb, var(--hot) 70%, transparent);
  border-top-color: transparent;
  border-radius: 50%;
  width: 28%;
  height: 28%;
  margin: auto;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 4;
  width: 1.1rem;
  height: 1.1rem;
  line-height: 1.1rem;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 700;
  text-align: center;
}
.cell.photo-verified .photo-badge { background: var(--good); color: var(--on-good); }
.cell.photo-rejected .photo-badge { background: var(--alarm); color: var(--on-alarm); }
.cell.photo-rejected { box-shadow: inset 0 0 0 3px var(--alarm); }

.photo-detail { display: grid; gap: .6rem; margin: .8rem 0; }
.photo-detail img { width: 100%; border-radius: 10px; display: block; background: var(--night-3); }
.photo-detail-prompt { color: var(--muted); font-size: .9rem; }
.photo-detail-status { font-weight: 700; }
.photo-detail-status.rejected { color: var(--alarm); }
.photo-detail-status.verified { color: var(--good); }

.chip-photo { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0; width: 11rem; flex: 0 0 auto; }
.chip-photo-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.chip-photo-caption { padding: .4rem .6rem 0; font-size: .85rem; }
.chip-photo .chip-note { padding: 0 .6rem .5rem; }
.chip-photo.flagged .chip-photo-img { opacity: .4; }
.chip-photo.flagged .chip-note { display: block; }

.qr-box { background: #fff; padding: 1rem; border-radius: 10px; width: fit-content; margin: 0 auto; }
.qr-box svg { display: block; width: 100%; max-width: 16rem; height: auto; }

.palette-preview { margin-top: .75rem; }
.palette-card { border-radius: 12px; padding: 1rem; max-width: 16rem; }
.palette-cell { padding: .6rem; border-radius: 8px; font-weight: 700; text-align: center; margin-bottom: .4rem; border: 1px solid rgba(0,0,0,.1); }
.palette-code { width: 100%; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8rem; margin-top: .4rem; box-sizing: border-box; }

.review-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.review-card {
  width: 13rem; border: 2px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--night-3); outline: none;
}
.review-card:focus-visible { border-color: var(--hot); }
.review-card.locked { opacity: .6; }
.review-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.review-card-body { padding: .5rem .6rem .6rem; display: grid; gap: .3rem; }
.review-card-caption { font-weight: 700; font-size: .9rem; }
.review-card-body .actions-inline { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.review-wall-check { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--muted); }

.mini-cell-photo { padding: 0; overflow: hidden; }
.mini-cell-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-cell-photo.rejected { outline: 2px solid var(--alarm); }

.actions { display: grid; gap: .35rem; }
.actions .hint { text-align: center; margin: 0 auto; font-size: .82rem; line-height: 1.3; }
#claimBtn:not(:disabled) { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--hot) 55%, transparent); }
  50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--hot) 0%, transparent); }
}

.game-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .85rem; margin-top: auto; }
.game-foot .linklike { padding: .45rem .1rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--night-3);
  border: 2px solid var(--flash);
  color: var(--text);
  padding: .7rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  max-width: min(92vw, 28rem);
  z-index: 50;
  animation: banner-in .25s ease-out;
}

/* ---------- admin ---------- */
body.admin { padding-bottom: 3rem; }
.topbar {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between;
  padding: .9rem 1.25rem; border-bottom: 2px solid var(--line); background: var(--night-2);
  position: sticky; top: 0; z-index: 20;
}
.topbar-right { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pill { padding: .25rem .7rem; border-radius: 999px; font-weight: 700; font-size: .9rem; background: var(--night-3); border: 2px solid var(--line); }
.pill.open { background: color-mix(in srgb, var(--dab) 24%, var(--night)); border-color: var(--dab); }
.pill.verifying { background: color-mix(in srgb, var(--flash) 30%, var(--night)); border-color: var(--flash); color: var(--flash); }
.pill.won { background: color-mix(in srgb, var(--good) 22%, var(--night)); border-color: var(--good); }
.pill.closed { background: color-mix(in srgb, var(--muted) 20%, var(--night)); border-color: var(--muted); color: var(--muted); }

.alert-bar { background: var(--alarm); color: var(--on-alarm); font-weight: 700; padding: .6rem 1.25rem; }
.alert-bar.flash { background: var(--flash); color: var(--on-flash); }

.desk { max-width: 72rem; margin: 0 auto; padding: 1.25rem; display: grid; gap: 1.25rem; }
.panel { background: var(--night-2); border: 2px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; display: grid; gap: .8rem; align-content: start; }
.panel h2 { font-size: 1.1rem; }
.panel.claims { border-color: var(--flash); background: color-mix(in srgb, var(--flash) 18%, var(--night)); }
.two-col { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

.stats { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.stat { display: flex; align-items: baseline; gap: .5rem; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); }
.stat.hot b { color: var(--flash); }

.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); }
.tabs button {
  font: inherit; font-weight: 700; color: var(--muted); background: none; border: 0; padding: .6rem 1rem;
  border-bottom: 4px solid transparent; margin-bottom: -2px; cursor: pointer;
}
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--hot); }
.tabpane { display: grid; gap: 1.25rem; }

.list { display: grid; }
.list .empty { color: var(--muted); padding: .6rem 0; }
.item { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.item .count { font-family: var(--display); font-size: 1.2rem; min-width: 2.2rem; text-align: right; color: var(--hot); }
.item.off .grow { color: var(--muted); text-decoration: line-through; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--line); flex: none; }
.dot.on { background: var(--good); }
.tag { font-size: .8rem; font-weight: 700; padding: .1rem .5rem; border-radius: 6px; background: var(--flash); color: var(--on-flash); }
.tag.dim { background: var(--night-3); color: var(--muted); }
.bar { height: .5rem; background: var(--night-3); border-radius: 4px; overflow: hidden; margin-top: .3rem; }
.bar > i { display: block; height: 100%; background: var(--hot); }

.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
label.inline { width: 8rem; }
label.inline.grow { flex: 1; min-width: 12rem; width: auto; }
.codes { display: grid; gap: .5rem; }
.code-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .06em; }

.claim { display: grid; gap: .7rem; padding: .9rem 0; border-top: 1px solid color-mix(in srgb, var(--flash) 35%, var(--night)); }
.claim:first-of-type { border-top: 0; }
.claim-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; }
.claim-head strong { font-size: 1.2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-weight: 700; text-align: left; cursor: pointer;
  color: var(--text); background: var(--night-3); border: 2px solid var(--line); border-radius: 10px; padding: .5rem .75rem;
}
.chip.free { background: var(--flash); color: var(--on-flash); border-color: var(--flash); cursor: default; }
.chip.flagged { border-color: var(--alarm); background: color-mix(in srgb, var(--alarm) 22%, var(--night)); text-decoration: line-through; }
.chip.flagged::before { content: "Not said: "; text-decoration: none; display: inline-block; color: var(--alarm); }

dialog { background: var(--night-2); color: var(--text); border: 2px solid var(--line); border-radius: 14px; padding: 1rem; width: min(30rem, 94vw); }
dialog::backdrop { background: rgba(6, 8, 11, .78); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.mini-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.mini-cell { aspect-ratio: 1; padding: 3px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .68rem; line-height: 1.1; background: var(--night-3); border-radius: 6px; overflow-wrap: break-word; color: var(--muted); }
.mini-cell.marked { background: var(--dab); color: var(--on-dab); font-weight: 700; }
.mini-cell.win { outline: 3px solid var(--flash); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- admin additions ---------- */
.badge { display: inline-block; min-width: 1.35rem; padding: 0 .4rem; border-radius: 999px; background: var(--hot); color: var(--on-hot); font-size: .8rem; text-align: center; margin-left: .25rem; }
.panel-head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.inline-select { display: flex; align-items: center; gap: .5rem; font-weight: 400; color: var(--muted); }
select { font: inherit; color: var(--text); background: color-mix(in srgb, var(--night) 65%, black); border: 2px solid var(--line); border-radius: 8px; padding: .35rem .5rem; }
.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; color: var(--muted); }
.check input { width: auto; }
.check-row { display: flex; align-items: flex-start; gap: .6rem; font-weight: 400; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.check-row input { width: auto; margin-top: .2rem; flex-shrink: 0; }
input[type="search"] { max-width: 22rem; }

.item.stack-item { align-items: flex-start; }
.statline { display: flex; flex-wrap: wrap; gap: .1rem .9rem; margin-top: .15rem; font-size: .85rem; color: var(--muted); }
.statline b { color: var(--text); font-weight: 700; }
.tag.paused { background: var(--flash); }
.tag.never { background: var(--night-3); color: var(--flash); border: 1px solid var(--flash); }
.item .actions-inline { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.item.paused .grow { color: var(--flash); }

.tally { display: flex; align-items: center; gap: .5rem; }
.tally .n { font-family: var(--display); font-size: 1.4rem; min-width: 2rem; text-align: center; color: var(--muted); }
.tally .n.hit { color: var(--good); }
.tally .btn { min-width: 2.6rem; padding: .4rem .7rem; font-size: 1.1rem; line-height: 1; }

.sug-meta { font-size: .85rem; color: var(--muted); margin-top: .1rem; }
.votes { font-family: var(--display); font-size: 1.1rem; min-width: 2.6rem; text-align: center; color: var(--hot); }
.chip .chip-note { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.chip .chip-note.ok { color: #7ef0b8; }
.chip .chip-note.warn { color: var(--flash); }
.chip.flagged .chip-note { display: none; }

/* ---------- player popups (suggest / bug) ---------- */
dialog.modal { margin: 7vh auto auto; }       /* near the top so the phone keyboard doesn't cover it */
dialog.modal.wide { width: min(40rem, 94vw); }
dialog.modal h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 1.3rem; color: var(--text); }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; }
dialog.modal .hint:empty { display: none; }

/* ---------- add-to-home-screen sheet ---------- */
.a2hs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  max-width: 34rem; margin: 0 auto;
  background: var(--night-2);
  border: 2px solid var(--hot); border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
  display: grid; gap: .7rem;
  box-shadow: 0 -10px 30px rgba(4, 6, 9, .6);
  animation: sheet-in .3s ease-out;
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.a2hs-head { display: flex; gap: .8rem; align-items: center; }
.a2hs-head img { border-radius: 11px; flex: none; }
.a2hs h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: 1.1rem; line-height: 1.15; color: var(--text); }
.a2hs-sub { color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.a2hs-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
.a2hs-steps li::marker { font-weight: 700; color: var(--hot); }
.a2hs-glyph { vertical-align: -4px; color: var(--flash); }
.a2hs-note { color: var(--muted); font-size: .85rem; }
.a2hs-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.a2hs-actions .btn { flex: 1 1 auto; }

.bug-msg { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- version + diagnostics ---------- */
.version { text-align: center; color: var(--muted); font-size: .8rem; margin-top: .5rem; }
.ver { font-family: var(--body); font-size: .8rem; text-shadow: none; color: var(--flash); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .5rem; margin-left: .3rem; vertical-align: middle; }
.admin-foot { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.tag.ok { background: var(--good); color: var(--on-good); }
.tag.bad { background: var(--alarm); color: var(--on-alarm); }
.wall-connection.ok { color: var(--good); font-weight: 600; }
.wall-connection.dim { color: var(--muted); }
.about-body { display: grid; gap: .1rem; }
.about-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.about-row:first-child { border-top: 0; }
.about-label { color: var(--muted); }
.about-value { overflow-wrap: anywhere; display: grid; gap: .3rem; align-content: start; justify-items: start; }
#aboutDialog { width: min(38rem, 94vw); }
