@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root, .site-header {
  --black: #08090b;
  --panel: #101216;
  --panel-2: #171a20;
  --line: #2a2e36;
  --chrome: #c9ced6;
  --muted: #8d95a3;
  --text: #e9e6df;
  --scanner: #ff2a2a;
  --scanner-dark: #2a0a0a;
  --scanner-hover: #ff4a4a;
  --strong: #fff;
  --danger: #ff7b7b;
  --tag-ok: #2c6b4b;
  --tag-low: #7a5710;
  --tag-out: #7a2a2a;
  --glow: rgba(255, 42, 42, 0.6);
  --amber: #ffb21e;
  --ok: #4fd18b;
  --r-btn: 10px;
  --r-field: 8px;
  --r-card: 10px;
  --r-photo: 10px;
  --r-tag: 6px;
  --r-pill: 99px;
  --r-switch: 99px;
  --r-table: 10px;
  --r-chat: 10px;
  --r-notice: 10px;
  --r-scanner: 3px;
  --head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font: 400 17px/1.55 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--chrome); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--strong); text-decoration-color: var(--scanner); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: 1.9rem; margin-top: 1.6em; }
h3 { font-size: 1.35rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; padding-block: 2.5rem 4rem; }
.narrow-lg { width: min(900px, 100% - 2.5rem); margin-inline: auto; padding-block: 2.5rem 4rem; }
/* single-column pages: centred column instead of a left-aligned one */
.wrap.page-col { width: min(880px, 100% - 2.5rem); }
.wrap.page-col-sm { width: min(760px, 100% - 2.5rem); }
.page-col .hub-post, .page-col .hub-threads, .page-col .hub-notice, .page-col .dm-chat, .page-col .lede, .page-col .form.wide, .page-col-sm .form.wide, .page-col-sm .lede { max-width: none; }
.narrow-sm { width: min(420px, 100% - 2.5rem); margin-inline: auto; padding-block: 3rem 4rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--amber); color: #000; padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header { border-bottom: 2px solid var(--scanner); background: var(--black); position: sticky; top: 0; z-index: 100; }
html { scroll-padding-top: 5rem; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .9rem; }
.site-header .bar { padding-block: .5rem; }
.brand { display: block; line-height: 0; }
.brand-logo { height: 56px; width: auto; mix-blend-mode: lighten; } /* lighten drops the logo's black box onto the header colour */
.nav { display: flex; gap: 1.4em; flex-wrap: wrap; }   /* (em: shrinks with the menu when it has to fit, js/app.js) */
.nav-toggle {
  display: none; align-items: center; gap: .6rem; background: transparent; color: var(--chrome);
  border: 1px solid var(--line); border-radius: var(--r-btn); padding: .6rem .9rem; font: 600 1rem var(--body); cursor: pointer;
}
.nav-toggle:hover { color: var(--strong); border-color: var(--chrome); }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 1px; transition: transform .2s, opacity .2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
.nav a { text-decoration: none; color: var(--chrome); padding-block: .25rem; border-bottom: 2px solid transparent; }
.nav > a, .nav > .nav-item > a { white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--strong); border-bottom-color: var(--scanner); }

/* Scanner: the one showpiece */
.scanner {
  --d: 110ms; --p: 1760ms;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px;
  height: clamp(18px, 3.2vw, 34px); margin-bottom: 2.2rem;
}
.scanner i { position: relative; background: var(--scn-off, var(--scanner-dark)); border-radius: var(--r-scanner); }
.scanner i::before, .scanner i::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-scanner); opacity: 0;
  background: linear-gradient(var(--scn-hi, #ff7a66), var(--scn, var(--scanner)) 40%, var(--scn-lo, #b00000));
  box-shadow: 0 0 16px 2px var(--scn-glow, var(--glow));
  animation: sweep var(--p) linear infinite;
}
.scanner i::before { animation-delay: calc(var(--i) * var(--d)); }
.scanner i::after { animation-delay: calc((15 - var(--i)) * var(--d)); }
@keyframes sweep {
  0% { opacity: 1; }
  8% { opacity: .55; }
  22% { opacity: .14; }
  30%, 100% { opacity: 0; }
}

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 3rem 3.5rem; border-bottom: 1px solid var(--line); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.has-image { padding-block: 4rem 5rem; min-height: min(72vh, 560px); }
.hero.has-image::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--black) 0%, rgba(8, 9, 11, .9) 35%, rgba(8, 9, 11, .3) 100%);
}
.hero.has-image .lede { color: var(--text); }
.hero.has-image h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
.lede { font-size: 1.2rem; max-width: 40em; color: var(--chrome); }
.lede.small { font-size: 1.05rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* Buttons */
.btn, button.btn {
  display: inline-block; font: 700 1.05rem/1 var(--head); letter-spacing: .03em;
  background: var(--btn-bg, var(--scanner)); color: var(--btn-text, #fff); border: 1px solid var(--btn-bg, var(--scanner));
  padding: .8rem 1.4rem; border-radius: var(--r-btn); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--btn-hover, var(--scanner-hover)); color: var(--btn-text, #fff); }
.btn.ghost { background: transparent; color: var(--chrome); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--chrome); color: var(--strong); }
.btn.small { padding: .55rem .9rem; font-size: .95rem; }
button.linklike { background: none; border: 0; padding: 0; color: var(--chrome); font: inherit; text-decoration: underline; text-decoration-color: var(--line); cursor: pointer; }
button.linklike:hover { color: var(--strong); }
button.danger { color: var(--danger); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.25rem; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; color: var(--text); overflow: hidden; }
.card:hover { border-color: var(--scanner); }
.card-img { aspect-ratio: 4 / 3; background: var(--panel-2); display: grid; place-items: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { color: var(--muted); font-size: .95rem; }
.card-body { padding: 1rem 1.1rem 1.1rem; }
.card h3 { margin: 0 0 .15rem; font-size: 1.4rem; }
.card-meta { color: var(--muted); font-size: .95rem; margin-bottom: .7rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.price { font: 600 1.4rem/1 var(--head); color: var(--strong); }
.price.big { font-size: 2.2rem; margin-bottom: .6rem; }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; padding: .15rem .55rem; border: 1px solid; border-radius: var(--r-tag); }
.tag.ok { color: var(--ok); border-color: var(--tag-ok); }
.tag.low { color: var(--amber); border-color: var(--tag-low); }
.tag.out { color: var(--danger); border-color: var(--tag-out); }

/* Featured blocks: two across, photo left, title + ticked dot points + button right */
.features { padding-top: 2.5rem; padding-bottom: .5rem; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.feature {
  display: grid; align-content: center; gap: 1.5rem; padding: 1.5rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r-card);
}
.feature.has-image { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
.feature-img { aspect-ratio: 4 / 5; border-radius: var(--r-photo); overflow: hidden; background: var(--panel-2); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { margin: 0 0 .8rem; font-size: 1.9rem; }
.ticks { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 2rem; font-size: 1.05rem; color: var(--chrome); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.15rem; height: 1.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2a2a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.feature-body p { margin: 0; }
.feature h3 a { text-decoration: none; color: inherit; }
.feature h3 a:hover { color: var(--strong); }
.feature-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.product-ticks { margin: 1.2rem 0 1.4rem; }

/* Categories */
.categories { padding-top: 2.5rem; }
.categories h2 { margin-top: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.cat-tile {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem;
  min-height: 150px; padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--scanner);
  border-radius: var(--r-card); text-decoration: none; color: var(--text);
}
.cat-tile:hover { border-color: var(--scanner); color: var(--text); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .3s; }
.cat-tile.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 11, .1) 20%, rgba(8, 9, 11, .88) 100%); }
.cat-tile:hover img { transform: scale(1.04); }
.cat-name { font: 700 1.6rem/1.05 var(--head); color: #fff; }
.cat-tile:not(.has-image) .cat-name { color: var(--strong); }
.cat-count { font-size: .92rem; color: var(--chrome); }
.cat-tile.has-image .cat-count { color: #dfe3ea; }
.cat-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.6rem; }
.cat-chips a { text-decoration: none; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .95rem; }
.cat-chips a:hover { border-color: var(--scanner); color: var(--strong); }
.cat-chips a.on { background: var(--scanner); border-color: var(--scanner); color: #fff; }
.category-grid { margin-bottom: 4rem; }
.sub-heading { font-size: 1.5rem; margin-top: 1.4rem; }
.sub-grid { margin-bottom: 1rem; }
.sub-grid .cat-tile { min-height: 110px; }
.sub-row td:nth-child(2) { padding-left: 1.6rem; }
.sub-mark { color: var(--muted); }

/* Product page */
.crumb { margin: 1.5rem 0 1rem; font-size: .95rem; }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.product-img { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-photo); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: flex; gap: 1rem; align-items: end; margin: 1.2rem 0 1.6rem; flex-wrap: wrap; }
.buy .opts { flex: 1 0 100%; }
.buy input[type=number] { width: 5.5rem; }
.prose, .lede { white-space: pre-line; }
.prose { max-width: 42em; }
.ctr { display: block; text-align: center; }
.guide { margin-top: 3rem; padding-bottom: 4rem; }

/* FAQ accordions */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--scanner); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details .prose { padding: 0 0 1.2rem; color: var(--chrome); }

/* Photos on FAQ answers */
.faq-photos { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.faq-photos li { display: grid; gap: .35rem; align-content: start; }
.faq-photos a { display: block; border: 1px solid var(--line); border-radius: var(--r-photo); overflow: hidden; background: var(--panel-2); }
.faq-photos a:hover { border-color: var(--scanner); }
.faq-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.faq-photos .cap { font-size: .88rem; color: var(--muted); }
.photo-edit { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.photo-edit li { display: grid; grid-template-columns: 120px 1fr; gap: .4rem 1rem; align-items: start; }
.photo-edit img { grid-row: span 2; width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }

/* Suppliers */
.suppliers { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.supplier { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--ok); padding: 1rem 1.2rem; border-radius: var(--r-card); }
.supplier.avoid { border-left-color: var(--scanner); }
.supplier h3 { margin: 0 0 .4rem; }
.meta { color: var(--muted); font-size: .9rem; margin: .4rem 0 0; }
.hint { color: var(--muted); font-size: .9rem; margin-top: -.4rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form.wide { max-width: 640px; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .98rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url],
input[type=date], input[type=search], input[type=tel], input[type=datetime-local], input[type=time], select, textarea {
  width: 100%; background: #fff; color: #14171c; border: 1px solid #b9c0cb;
  border-radius: var(--r-field); padding: .65rem .75rem; font: 400 1rem var(--body);
}
/* Photo pickers: a big, easy-to-hit button. */
input[type=file] { width: 100%; padding: .6rem; border: 1px dashed #8c95a3; border-radius: var(--r-field); background: #fff; color: #14171c; font: 400 1rem var(--body); cursor: pointer; }
input[type=file]::file-selector-button {
  margin-right: 1rem; padding: .85rem 1.6rem; min-height: 3rem; background: var(--scanner); color: #fff; border: 0; border-radius: var(--r-btn);
  font: 700 1.1rem var(--body); letter-spacing: .02em; cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--scanner-hover); }
input[type=file]:focus-visible { outline: 2px solid var(--scanner); outline-offset: 2px; }

/* All fill-in boxes are white with dark text, so the up/down arrows on number boxes and date pickers use the light (dark-on-white) look. */
input, select, textarea { color-scheme: light; }
input::placeholder, textarea::placeholder { color: #6b7280; opacity: 1; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { opacity: 1; cursor: pointer; width: 1.6rem; height: 2.4rem; margin-left: .3rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--scanner); outline: none; box-shadow: 0 0 0 2px rgba(255, 42, 42, .25); }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 400; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--scanner); }
fieldset { border: 1px solid var(--line); padding: 1rem; display: grid; gap: .8rem; }
legend { padding: 0 .4rem; font-weight: 600; }
.preview { max-width: 220px; border: 1px solid var(--line); }
.preview.wide-preview { max-width: min(360px, 100%); height: auto; }
form.inline { display: inline-flex; gap: .6rem; align-items: end; flex-wrap: wrap; }
form.inline input[type=number] { width: 5.5rem; }

/* Tables and cart */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 600 1.05rem var(--head); color: var(--muted); padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.table td { padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.num { text-align: right; }
.thumb img { width: 56px; height: 42px; object-fit: cover; border: 1px solid var(--line); }
.row-actions { white-space: nowrap; }
.row-actions > * { display: inline-block; margin-right: 1rem; vertical-align: middle; }
.row-actions > form { display: inline-block; }
.row-actions > :last-child { margin-right: 0; }
.summary { display: grid; gap: 1.2rem; justify-items: end; margin-top: 1.5rem; }
.totals { display: grid; grid-template-columns: auto auto; gap: .35rem 2rem; margin: 0; min-width: 300px; }
.totals dd { margin: 0; text-align: right; }
.totals .grand { font: 700 1.5rem var(--head); border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .3rem; }

/* Messages */
.flash { margin: 1rem 0 0; padding: .8rem 1rem; background: var(--panel-2); border-left: 4px solid var(--amber); }
.flash.error { border-left-color: var(--scanner); }
.empty { color: var(--muted); }

/* Admin: light theme. The site header stays dark so the logo sits on black. */
body.admin {
  --black: #f2f4f7; --panel: #fff; --panel-2: #e9edf2; --line: #cfd5de;
  --chrome: #2c333d; --muted: #596273; --text: #14171c; --strong: #000;
  --scanner: #d4141c; --scanner-hover: #b50f16; --amber: #8a5600; --ok: #17794a;
  --danger: #b3261e; --tag-ok: #8fcfae; --tag-low: #e0bd7c; --tag-out: #e6a39e;
  --glow: rgba(212, 20, 28, .4);
}
body.admin input:focus, body.admin select:focus, body.admin textarea:focus { box-shadow: 0 0 0 2px rgba(212, 20, 28, .2); }
body.admin .btn.ghost { color: var(--chrome); }
body.admin .btn.ghost:hover { border-color: var(--chrome); }

/* Customer account bar */
.admin-bar { background: var(--panel); border-bottom: 1px solid var(--line); }
.admin-bar .bar { padding-block: .6rem; }
.admin-bar nav { display: flex; gap: .5rem 1rem; flex-wrap: wrap; }
.admin-bar nav a { text-decoration: none; padding-block: .2rem; border-bottom: 2px solid transparent; }
.admin-bar nav a.on, .admin-bar nav a:hover { border-bottom-color: var(--scanner); color: var(--strong); }
body.admin .admin-bar { box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }

/* Admin: black side menu running down the left edge of the screen */
.admin-shell { display: flex; align-items: stretch; min-height: 70vh; min-height: calc(100vh - var(--hdr-h, 74px)); }
.admin-main { flex: 1 1 0; min-width: 0; }
.admin-wrap { padding-block: 1.5rem 4rem; }
.admin h1 { font-size: 2.4rem; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin: 1.2rem 0 2rem; }
.stats > div { background: var(--panel); border: 1px solid var(--line); padding: 1rem 1.2rem; border-radius: var(--r-card); }
.stats dt { color: var(--muted); font-size: .95rem; }
.stats dd { margin: 0; font: 700 2.3rem/1.1 var(--head); }
.order { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.order.paid { border-left: 4px solid var(--amber); }
.order.review { border-left: 4px solid var(--scanner); }
.order h2 { margin: 0; font-size: 1.5rem; display: flex; gap: .8rem; align-items: center; }
.order h3 { margin-top: .6rem; font-size: 1.1rem; color: var(--muted); }
.order ul { margin: 0; padding-left: 1.1rem; }
.order-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1rem; }

/* About */
.about { padding-block: 2.5rem 4rem; }
.about.has-image .about-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.about:not(.has-image) .about-text { max-width: 760px; }
.about h1 { margin-top: 0; }
.about-photo { margin: 0; border: 1px solid var(--line); border-radius: var(--r-photo); overflow: hidden; background: var(--panel-2); }
.about-photo img { width: 100%; height: auto; }
/* Our Story */
.story-page { --glow-red: rgba(255, 42, 42, .55); background: radial-gradient(1200px 500px at 85% 0%, rgba(255, 42, 42, .08), transparent 60%), radial-gradient(900px 400px at 0% 100%, rgba(255, 42, 42, .06), transparent 60%); margin-bottom: -4rem; }
.story-hero { position: relative; overflow: hidden; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--scanner) 30%, var(--scanner) 70%, transparent) 1; box-shadow: 0 14px 30px -18px var(--glow-red); }
.story-hero-in { position: relative; z-index: 1; padding-block: 2.6rem 2.8rem; }
.story-hero-text { max-width: 760px; }
.story-hero.has-photo .story-hero-text { max-width: 54%; }
.story-hero-photo { position: absolute; inset: 0 0 0 auto; width: 58%; margin: 0; }
.story-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(0deg, transparent 0%, #000 22%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 32%), linear-gradient(0deg, transparent 0%, #000 22%); mask-composite: intersect; }
.story-hero h1 { margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.story-eyebrow, .story-name { font-family: var(--head); font-weight: 700; text-transform: uppercase; font-style: italic; transform: skewX(-8deg); transform-origin: left bottom; background: linear-gradient(180deg, #fff 0%, #e4e7ec 40%, #8b919b 52%, #d9dde3 72%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.story-eyebrow { font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: .06em; }
.story-name { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: .92; letter-spacing: .01em; }
.story-tagline { margin: .7rem 0 1rem; font-family: var(--head); font-weight: 700; font-style: italic; transform: skewX(-8deg); transform-origin: left bottom; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; color: var(--scanner); text-shadow: 0 0 18px rgba(255, 42, 42, .35); }
.story-intro { font-size: 1.05rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.story-intro p { margin-bottom: .8rem; }
.story-main { padding-top: 2.2rem; }
.story-lead { max-width: 860px; margin: 0 0 1.8rem; padding-left: 1.1rem; border-left: 3px solid var(--scanner); }
.story-lead h2 { margin: 0 0 .8rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.12; color: var(--strong); }
.story-lead h2 span { display: inline-block; }
.story-lead .prose p:last-child { margin-bottom: 0; }
.story-sections { display: grid; gap: .9rem; }
.story { border: 1px solid var(--glow-red); border-radius: 12px; background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%); box-shadow: 0 0 14px -2px rgba(255, 42, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.story:hover { border-color: var(--scanner); box-shadow: 0 0 20px 0 rgba(255, 42, 42, .4), inset 0 1px 0 rgba(255, 255, 255, .08); }
.story > summary { padding: .65rem 1.4rem .65rem .65rem; align-items: center; gap: 1.2rem; font-weight: 400; }
.story > summary:focus-visible { outline: 2px solid var(--scanner); outline-offset: -2px; }
.story > summary::after { content: ""; flex: none; width: .85rem; height: .85rem; border-right: 3px solid var(--chrome); border-bottom: 3px solid var(--chrome); transform: rotate(45deg); margin: -.4rem .2rem 0 0; transition: transform .2s; }
.story[open] > summary::after { transform: rotate(-135deg); margin-top: .4rem; }
.story-thumb { flex: none; width: 150px; height: 84px; border-radius: 8px; display: grid; place-items: center; color: var(--chrome); background: radial-gradient(circle at 50% 40%, #2a2d35, #121318 75%); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-icon { width: 54px; height: 54px; }
.story-icon .glow { stroke: var(--scanner); filter: drop-shadow(0 0 3px var(--scanner)); }
.story-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.story-h { font-family: var(--head); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.05; text-transform: uppercase; letter-spacing: .03em; color: #f2f3f5; text-shadow: 0 1px 0 rgba(0, 0, 0, .8); }
.story-sub { font-size: 1rem; color: var(--chrome); line-height: 1.35; }
.story-body { padding: .4rem 1.6rem 1.5rem calc(150px + 1.85rem); max-width: 980px; }
.story-body .prose p:last-child { margin-bottom: 0; }
.story-body .actions { margin: 1rem 0 0; }
.story.featured { border-color: var(--amber); box-shadow: 0 0 22px -2px rgba(255, 178, 30, .45), inset 0 1px 0 rgba(255, 255, 255, .08); background: linear-gradient(180deg, #24201a 0%, #111014 100%); }
.story.featured > summary::after { border-color: var(--amber); }
.story.featured .story-thumb { color: var(--amber); }
.story-badge { align-self: flex-start; font-family: var(--body); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #1a1200; background: var(--amber); border-radius: var(--r-pill); padding: .12rem .55rem; }
.story-ctas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin: 2.6rem 0 3rem; }
.story-cta { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; min-height: 6.5rem; border: 1.5px solid var(--scanner); border-radius: 12px; background: linear-gradient(180deg, #1d1f25, #101115); box-shadow: 0 0 18px -2px rgba(255, 42, 42, .45), inset 0 0 12px rgba(255, 42, 42, .12); color: #f2f3f5; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.35rem; line-height: 1.05; text-transform: uppercase; letter-spacing: .03em; transition: transform .15s, box-shadow .15s; }
.story-cta .story-icon { width: 46px; height: 46px; flex: none; color: var(--chrome); }
.story-cta:hover { transform: translateY(-2px); box-shadow: 0 0 26px 0 rgba(255, 42, 42, .6), inset 0 0 16px rgba(255, 42, 42, .18); color: #fff; }
.story-band { border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--scanner) 30%, var(--scanner) 70%, transparent) 1; background: linear-gradient(180deg, rgba(255, 42, 42, .05), transparent); }
.story-band-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.4rem; }
.story-band-line { margin: 0; font-family: var(--head); font-weight: 600; font-style: italic; transform: skewX(-6deg); font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--text); }
.story-credit { margin: 0; display: flex; align-items: center; gap: .7rem; color: var(--chrome); font-weight: 600; max-width: 18rem; line-height: 1.3; }
.story-credit .story-icon { width: 36px; height: 36px; flex: none; }
@media (max-width: 900px) {
  .story-hero.has-photo { display: flex; flex-direction: column; }
  .story-hero-photo { position: relative; width: 100%; height: min(70vw, 420px); }
  .story-hero-photo img { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 35%); mask-image: linear-gradient(0deg, transparent 0%, #000 35%); -webkit-mask-composite: source-over; mask-composite: add; }
  .story-hero.has-photo .story-hero-text { max-width: none; }
  .story-hero.has-photo .story-hero-in { margin-top: -3.5rem; padding-top: 0; }
  .story-ctas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-band-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .story > summary { padding: .55rem .9rem .55rem .55rem; gap: .8rem; }
  .story-thumb { width: 64px; height: 64px; }
  .story-icon { width: 40px; height: 40px; }
  .story-sub { font-size: .92rem; }
  .story-body { padding: .3rem 1rem 1.2rem; }
  .story-cta { font-size: 1.1rem; min-height: 5rem; padding: .9rem; gap: .7rem; }
  .story-cta .story-icon { width: 34px; height: 34px; }
}
@media (max-width: 380px) { .story-ctas { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .story, .story-cta, .story > summary::after { transition: none; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding-block: 2rem; color: var(--muted); font-size: .92rem; }
.site-footer p { margin-bottom: .5rem; }
.site-footer a { margin-right: 1rem; }

/* Shop drop-down */
.nav-item { position: relative; display: flex; align-items: center; gap: .15rem; }
.sub { display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 15rem; margin: 0; padding: .4rem 0; list-style: none;
  background: var(--black); border: 1px solid var(--line); border-top: 2px solid var(--scanner); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.nav-item:hover > .sub, .nav-item:focus-within > .sub { display: block; }
.nav .sub a { display: block; padding: .5rem 1rem; border-bottom: 0; white-space: nowrap; }
.nav .sub a:hover { background: var(--panel); }
.sub-sub { list-style: none; margin: 0; padding: 0 0 .3rem; }
.nav .sub-sub a { padding: .3rem 1rem .3rem 2rem; font-size: .95rem; color: var(--muted); }
.nav .sub-sub .sub-sub a { padding-left: 3rem; }
.nav .sub-sub .sub-sub .sub-sub a { padding-left: 4rem; }
.nav .sub-sub .sub-sub .sub-sub .sub-sub a { padding-left: 5rem; }
.shop-all { text-align: center; padding-block: 2rem 0; }

/* Hamburger menus. They only collapse when JavaScript is running (init.js adds .js), so the links never get stuck hidden. */
@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; }
  .site-header .bar { flex-wrap: wrap; }
  .js .nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; padding-bottom: .6rem; border-top: 1px solid var(--line); }
  .js .nav.open { display: flex; }
  .js .nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .js .nav a:hover, .js .nav a.on { border-bottom-color: var(--scanner); }
  .js .nav .sub a:hover { background: transparent; }
  .js .admin-bar .bar { flex-wrap: wrap; }
  .js .admin-bar nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; padding-top: .4rem; }
  .js .admin-bar nav.open { display: flex; }
  .js .admin-bar nav a { padding: .8rem .2rem; border-bottom: 1px solid var(--line); }
  .js .admin-bar nav a.on, .js .admin-bar nav a:hover { border-bottom-color: var(--scanner); }
  .admin-shell { flex-direction: column; }
  .about.has-image .about-cols { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .cat-tile { min-height: 120px; }
  .photo-edit li { grid-template-columns: 90px 1fr; }
  .photo-edit img { width: 90px; }
}

@media (max-width: 520px) {
  .feature.has-image { grid-template-columns: 1fr; }
  .feature-img { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .product, .order-cols, .two { grid-template-columns: 1fr; }
  .summary { justify-items: stretch; }
  .totals { min-width: 0; }
  .scanner { gap: 4px; }
  .brand-logo { height: 48px; }
  .hero.has-image::before { background: linear-gradient(180deg, rgba(8, 9, 11, .55) 0%, rgba(8, 9, 11, .93) 70%); }
}

@media (prefers-reduced-motion: reduce) {
  .scanner i::before, .scanner i::after { animation: none; }
  .scanner i:nth-child(n+4):nth-child(-n+5)::before { opacity: 1; }
}

/* Customer account */
.steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 1.2rem 0; counter-reset: step; flex-wrap: wrap; }
.steps li { flex: 1 1 5.5rem; padding: .6rem .8rem; border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: var(--r-card); background: var(--panel); color: var(--muted); font-weight: 600; }
.steps li.done { border-top-color: var(--scanner); color: var(--strong); }
ul.events { list-style: none; padding: 0; margin: .6rem 0 0; }   /* (an order's tracking steps; not the community's Events room) */
ul.events > li { padding: .45rem 0; border-top: 1px solid var(--line); }
.order.shipped-card { border-left: 4px solid var(--scanner); }
.order p.meta, .meta { color: var(--muted); }
.table td .hint { margin: 0; }
.form + .hint { margin-top: 1.2rem; }
.shipped-card p .btn + .btn { margin-left: .4rem; }
.totals .sub { display: block; position: static; min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; color: var(--muted); font-size: .95rem; }
.shipment { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.shipment:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.shipment h3 { margin: 0 0 .3rem; }
.addr-form { margin: .8rem 0 1rem; }
.addr-form summary { cursor: pointer; font-weight: 600; margin-bottom: .8rem; }
.addr-form[open] summary { margin-bottom: 1rem; }
.deliver h2 { font-size: 1.2rem; margin: 0 0 .3rem; }
.summary { width: min(440px, 100%); margin-left: auto; justify-items: stretch; }
.summary .totals { justify-self: end; }
.summary .btn { justify-self: end; }
.summary > form { justify-self: end; }

/* In the hamburger menu the categories are simply listed under Shop. */
@media (max-width: 820px) {
  .nav-item { display: block; }
  .nav-item > a { display: block; }
  .sub { display: block; position: static; min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
  .nav .sub a { padding: .7rem .2rem .7rem 1.2rem; border-bottom: 1px solid var(--line); font-size: 1rem; white-space: normal; }
  .nav .sub-sub a { padding-left: 2.4rem; font-size: .95rem; }
  .nav .sub-sub .sub-sub a { padding-left: 3.4rem; }
  .nav .sub-sub .sub-sub .sub-sub a { padding-left: 4.4rem; }
  .nav .sub-sub .sub-sub .sub-sub .sub-sub a { padding-left: 5.4rem; }
  .js .nav .sub a { font-size: 1rem; }
  /* Phone menu: only the main title shows; tapping it opens its list. Without JavaScript the lists stay open. */
  .js .nav-item.has-sub:not(.open) > .sub { display: none; }
}

/* Sticky header: keep a long open mobile menu scrollable inside the screen. */
@media (max-width: 820px) { .js .site-header { max-height: 100vh; overflow-y: auto; } }

/* Replica Owners page */
.owners { padding-block: 2rem 4rem; }
.owners .lede { max-width: 760px; }
.map-frame { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-photo); overflow: hidden; background: var(--panel-2); }
.map-frame iframe { display: block; width: 100%; height: 640px; border: 0; }
.owners h2 { margin-top: 2.5rem; }
.owners-form { max-width: 820px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash.error ul { margin: 0; padding-left: 1.2rem; }
.entry { border: 1px solid var(--line); padding: 1.2rem; margin: 1.5rem 0; display: grid; gap: 1rem; }
.entry h2 { margin: 0; }
.entry-list { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; margin: 0; }
.entry-list dt { font-weight: 600; }
.entry-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 820px) { .map-frame iframe { height: 460px; } }

.faq-intro { margin-bottom: 2rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.faq-intro p { max-width: none; }

/* Cookie banner and the Google Maps placeholder */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: var(--panel); border-top: 2px solid var(--scanner); box-shadow: 0 -6px 24px rgba(0, 0, 0, .45); padding-block: 1rem; }
.cookie-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; justify-content: space-between; }
.cookie-banner p { margin: 0; max-width: 60em; font-size: .95rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookies-page .cookie-actions { margin-bottom: 1rem; }
.map-blocked { display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; min-height: 360px; padding: 2rem; }
.map-blocked p { margin: 0; max-width: 34em; }
.recaptcha-box { min-height: 78px; }
@media (max-width: 560px) { .cookie-actions .btn { flex: 1 1 100%; } }

/* FAQ page is as wide as the About page */
.faq-page { padding-block: 2.5rem 4rem; }
.faq-page .prose { max-width: none; }

/* Support pages */
.support-tiles { margin-top: 1.5rem; }
.support-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.support-list li { border: 1px solid var(--line); background: var(--panel); padding: 1rem 1.2rem; }
.support-list h3 { margin: 0 0 .3rem; font-size: 1.4rem; }
.support-list .prose { max-width: none; }
.support-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
@media (max-width: 560px) { .support-tiles { grid-template-columns: 1fr; } }

/* Cart icon in the menu */
.nav a.cart-link { display: inline-flex; align-items: center; gap: .35rem; position: relative; }
.cart-icon { display: block; }
.cart-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: var(--r-pill); background: var(--scanner); color: #fff; font-size: .8rem; font-weight: 700; line-height: 1; }
.cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 820px) { .cart-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }

/* Articles and FAQ search */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-form { display: flex; gap: .6rem; margin: 1rem 0 0; max-width: 760px; }
.search-form input[type=search] { flex: 1; min-width: 0; }
.faq-page .cat-chips a.on { border-color: var(--scanner); color: var(--strong); }
.article-cats { margin: .4rem 0 1rem; }
.article-cats a.on { background: var(--scanner); color: #fff; }
.cat-chips .count { opacity: .7; font-size: .85em; margin-left: .15rem; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.results-head .meta { font-size: 1rem; font-family: var(--body); font-weight: 400; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 1rem 0 1.5rem; }
.article-card .card-body h3 { font-size: 1.5rem; }
.article-blurb { margin: 0 0 .6rem; color: var(--chrome); font-size: .98rem; overflow-wrap: anywhere; }
.article-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.article-tags span, .article-tags a { font-size: .82rem; padding: .1rem .6rem; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--muted); text-decoration: none; }
.article-tags a:hover { border-color: var(--scanner); color: var(--strong); }
mark { background: rgba(255, 42, 42, .35); color: inherit; padding: 0 .1em; border-radius: var(--r-tag); }
.faq-for { margin: 1rem 0 .2rem; color: var(--muted); font-size: .95rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1rem 0 2rem; }
.article { padding-block: 2rem 4rem; }
.article h1 { margin-bottom: .2rem; }
.article-body { max-width: 46em; font-size: 1.08rem; }
.article-text { min-width: 0; }
.article-text .article-body + .article-body { margin-top: 0; }
.article-pic.inline { margin: 1.4rem 0; max-width: 34em; }
.article-pic.inline a { display: block; border: 1px solid var(--line); border-radius: var(--r-photo); overflow: hidden; background: var(--panel-2); }
.article-pic.inline img { display: block; width: 100%; height: auto; }
.article-pic.inline .cap { display: block; margin-top: .35rem; font-size: .88rem; color: var(--muted); }
.article-pic.inline .num { display: inline-block; min-width: 1.6em; padding: 0 .35em; margin-right: .3em; text-align: center; font-weight: 700; color: #fff; background: var(--scanner); border-radius: var(--r-tag); }
.article-cols { margin-top: 1.5rem; }
.article-cols.has-pics { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.article-cols.has-pics .article-body, .article-cols.has-pics .article-pic.inline { max-width: none; }
.article-pics { display: grid; gap: 1rem; }
.article-pics figure { margin: 0; }
.article-pics a { display: block; border: 1px solid var(--line); border-radius: var(--r-photo); overflow: hidden; background: var(--panel-2); }
.article-pics a:hover { border-color: var(--scanner); }
.article-pics img { display: block; width: 100%; height: auto; }
.article-pics .num { display: inline-block; min-width: 1.6em; padding: 0 .35em; margin-right: .3em; text-align: center; font-weight: 700; color: #fff; background: var(--scanner); border-radius: var(--r-tag); }
.article-pics .cap { display: block; margin-top: .35rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .article-cols.has-pics { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .article-grid { grid-template-columns: 1fr; } .search-form { flex-direction: column; } }
.faq-intro { white-space: normal; }

/* keep the search bar in view (below the sticky menu) after searching or choosing a topic */
#faq-find { scroll-margin-top: 90px; }

/* links written inside article text */
.article-body a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* two or three photos on one line inside an article */
.article-row { display: grid; gap: .8rem; margin: 1.4rem 0; max-width: 46em; }
.article-row.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-row.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-row .article-pic.inline { margin: 0; max-width: none; }
.article-row .article-pic.inline img { aspect-ratio: 4 / 3; object-fit: cover; }
.article-cols.has-pics .article-row { max-width: none; }
@media (max-width: 560px) { .article-row.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .article-row.n2 { grid-template-columns: 1fr; } }

/* Community hub */
.hub { padding-block: 2rem 4rem; }
.hub h1 .meta { font-size: 1.1rem; font-weight: 400; margin-left: .4rem; }
.hub-notice { border: 1px solid var(--line); border-left: 3px solid var(--scanner); background: var(--panel); padding: .9rem 1.1rem; margin: 1rem 0 1.4rem; max-width: 46em; }
.hub-notice p { margin: 0 0 .6rem; }
.hub-notice p:last-child, .hub-notice form:last-child { margin-bottom: 0; }
.hub-me { margin: 0 0 1rem; color: var(--chrome); }
.hub-topics { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hub-topics li { border: 1px solid var(--line); background: var(--panel); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.hub-topics h3 { margin: 0; font-size: 1.45rem; }
.hub-topics p { margin: 0; color: var(--chrome); }
.hub-topics .hub-links { margin-top: auto; padding-top: .6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.hub-rules { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 46em; }
.hub-rules li { margin-bottom: .35rem; }
.hub-rules-box { max-width: 46em; }
.hub-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; }
.hub-tabs a { padding: .35rem .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); text-decoration: none; color: var(--chrome); }
.hub-tabs a.on, .hub-tabs a:hover { border-color: var(--scanner); color: var(--strong); }
.hub-join { max-width: 46em; }

.hub-log { list-style: none; margin: 0; padding: .6rem .8rem; height: 56vh; min-height: 300px; overflow-y: auto; border: 1px solid var(--line); background: var(--panel); }
.hub-msg { position: relative; padding: .45rem .2rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.hub-msg:last-child { border-bottom: 0; }
.hub-msg .who { font-weight: 700; color: var(--strong); }
.hub-msg.mine .who { color: var(--scanner); }
.hub-msg time, .hub-post time { color: var(--muted); font-size: .85rem; margin-left: .4rem; }
.hub-msg .txt { white-space: pre-line; }
.hub-msg .acts { position: absolute; right: .3rem; top: .4rem; font-size: .82rem; opacity: 0; transition: opacity .12s; background: var(--panel); padding-left: .4rem; }
.hub-msg:hover .acts, .hub-msg:focus-within .acts { opacity: 1; }
@media (any-hover: none) { .hub-msg .acts { opacity: 1; } }
#hub-new { margin: .5rem 0 0; }
.hub-err { color: var(--danger); margin: .5rem 0 0; }
.hub-form { display: flex; gap: .6rem; margin-top: .8rem; align-items: stretch; }
.hub-form textarea { flex: 1; resize: vertical; min-height: 3rem; }

.hub-threads { list-style: none; margin: 0 0 1.4rem; padding: 0; max-width: 56em; }
.hub-threads li { padding: .75rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline; }
.hub-threads .title { font-size: 1.15rem; font-weight: 600; }
.hub-threads .meta { flex-basis: 100%; }
.hub-post { border: 1px solid var(--line); background: var(--panel); padding: .9rem 1.1rem; margin: 0 0 .9rem; max-width: 50em; }
.hub-post.op { border-left: 3px solid var(--scanner); }
.hub-post header { margin-bottom: .4rem; }
.hub-post .who { font-weight: 700; color: var(--strong); }
.hub-post .txt { white-space: pre-line; overflow-wrap: anywhere; }
.hub-post .acts { margin: .5rem 0 0; font-size: .85rem; }
.pager { display: flex; gap: .8rem; align-items: center; margin: 1rem 0; }
@media (max-width: 560px) { .hub-form { flex-direction: column; } .hub-log { height: 50vh; } }
.hub [hidden] { display: none !important; }

/* small private-chat windows in the corner */
#hub-dock { position: fixed; right: 12px; bottom: 0; z-index: 60; display: flex; flex-direction: row-reverse; gap: .6rem; align-items: flex-end; max-width: calc(100vw - 24px); pointer-events: none; }
.dm-win { pointer-events: auto; width: 300px; max-width: calc(100vw - 24px); background: var(--panel); border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -4px 18px rgba(0,0,0,.45); display: flex; flex-direction: column; }
.dm-head { display: flex; align-items: center; gap: .3rem; padding: .35rem .5rem; border-bottom: 1px solid var(--line); background: #1a0000; }
.dm-win.has-new .dm-head { background: #5a0000; }
.dm-title { flex: 1; text-align: left; background: none; border: 0; color: inherit; font: inherit; font-weight: 700; cursor: pointer; padding: .2rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-badge { background: #e00; color: #fff; border-radius: var(--r-pill); font-size: .75rem; padding: 0 .45rem; min-width: 1.2rem; text-align: center; }
.dm-icon { background: none; border: 0; color: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; text-decoration: none; }
.dm-icon:hover { color: #fff; }
.dm-body { display: flex; flex-direction: column; }
.dm-win.min .dm-body { display: none; }
.dm-win .hub-log { height: 220px; min-height: 0; border: 0; padding: .4rem .6rem; font-size: .92rem; }
.dm-err { margin: 0; padding: .3rem .6rem; font-size: .85rem; }
.dm-form { display: flex; gap: .4rem; padding: .4rem; border-top: 1px solid var(--line); }
.dm-form textarea { flex: 1; min-width: 0; resize: none; min-height: 2.6rem; }
.dm-win [hidden], #hub-dock [hidden] { display: none !important; }
.dm-menu { position: fixed; z-index: 70; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.5); padding: .2rem; }
.dm-menu button { display: block; width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; padding: .45rem .8rem; cursor: pointer; white-space: nowrap; }
.dm-menu button:hover, .dm-menu button:focus { background: #3a0000; outline: none; }
@media (max-width: 560px) { .dm-win { width: calc(100vw - 24px); } #hub-dock { flex-direction: column-reverse; align-items: stretch; } .dm-win .hub-log { height: 160px; } }

/* photos in chat */
.hub-pic { display: block; margin-top: .3rem; line-height: 0; }
.hub-pic img { max-width: 100%; height: auto; max-height: 240px; width: auto; border: 1px solid var(--line); background: #000; object-fit: contain; }
.attach-btn { background: none; border: 1px solid var(--line); color: inherit; cursor: pointer; padding: 0 .6rem; font-size: 1.1rem; }
.attach-btn:hover { border-color: #e00; }
.photo-chip { display: block; font-size: .85rem; margin: .4rem 0 0; }
.dm-win .photo-chip { padding: .2rem .5rem 0; margin: 0; }
/* a photo or video waiting to be sent: a thumbnail card inside the box, above the text (x takes it off) */
.has-att { flex-wrap: wrap; }
.att-cards { display: flex; flex-wrap: wrap; gap: .6rem; flex: 0 0 100%; width: 100%; padding: .45rem .3rem .2rem; }
.att-cards[hidden] { display: none; }
.att-card { position: relative; width: 104px; height: 104px; flex: none; border-radius: 14px; background: #0b0c0f; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.att-card img, .att-card video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.att-x { position: absolute; top: -8px; right: -8px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 2px solid var(--panel, #15171c); border-radius: 50%; background: #2b2e36; color: #fff; font: 700 17px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.att-x:hover, .att-x:focus-visible { background: #e01b1b; outline: none; }
.att-play { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(0, 0, 0, .55); pointer-events: none; }
.att-play::after { content: ""; position: absolute; left: 13px; top: 10px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; }
.att-prog { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 0; border-radius: 0 0 13px 13px; background: rgba(0, 0, 0, .72); color: #fff; font: 700 .68rem/1.3 var(--body); text-align: center; pointer-events: none; }
.att-dur { position: absolute; left: 6px; bottom: 6px; padding: 1px 5px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font: 600 .7rem/1.3 var(--body); pointer-events: none; }
.att-card .att-name { position: absolute; left: 0; right: 0; bottom: -1.25rem; overflow: hidden; font-size: .68rem; color: var(--muted); text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.dm-win .hub-pic img { max-height: 160px; }
.dm-form .attach-btn { padding: 0 .4rem; }

/* coming soon mode */
.bare-main { max-width: 640px; margin: 0 auto; padding: 2.5rem 1rem 1rem; text-align: center; }
.bare-main .brand-logo { width: 160px; height: auto; margin: 0 auto 1.5rem; display: block; }
.bare-main h1 { margin-bottom: 1rem; }
.bare-text { font-size: 1.1rem; text-align: left; }
.bare-form { display: flex; gap: .6rem; margin: 1.6rem 0 .6rem; flex-wrap: wrap; }
.bare-form input[type=email] { flex: 1 1 240px; min-width: 0; }
.bare-form .btn { flex: 0 0 auto; }
.bare-main .hint { text-align: center; }
.bare-main .flash { text-align: left; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bare-foot { text-align: center; padding: 2rem 1rem; font-size: .85rem; }
.bare-foot a { color: var(--muted); }
.maint-banner { background: #5a0000; color: #fff; text-align: center; padding: .5rem 1rem; font-size: .95rem; position: relative; z-index: 120; }
.maint-banner a { color: #fff; }
.mode-card { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #2a8f2a; padding: 1rem 1.2rem; margin: 1rem 0 1.5rem; border-radius: var(--r-card); }
.mode-card.on { border-left-color: var(--scanner); }
.mode-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.mode-head h2 { margin: 0; }
.mode-form { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin: .6rem 0; }
.mode-form .check { display: flex; gap: .5rem; align-items: center; }
.mode-links { margin: .4rem 0; }
.mode-edit { margin-top: .6rem; }
.bare-main .flash { margin-bottom: 1.2rem; }

/* choosing a carrier at the cart */
.ship-choice { margin: 1rem 0; }
.ship-choice p { margin: 0 0 .4rem; }
.ship-opt { display: flex; align-items: center; gap: .8rem; padding: .5rem .7rem; border: 1px solid var(--line); margin-bottom: .4rem; background: var(--panel); }
.ship-opt.on { border-color: var(--scanner); }
.ship-name { flex: 1; }
.ship-price { font-weight: 700; }
.ship-chosen { font-size: .85rem; color: var(--muted); min-width: 4.5rem; text-align: right; }

/* corner roundness: each kind of element has its own setting (Admin dashboard, Appearance) */
.flash { border-radius: var(--r-notice); }
.cookie-banner { border-radius: calc(var(--r-notice) + 6px) calc(var(--r-notice) + 6px) 0 0; }
.maint-banner { border-radius: 0 0 var(--r-notice) var(--r-notice); }
fieldset, .hub-post, .hub-topics li, .ship-opt, .mode-card, .hub-status { border-radius: var(--r-card); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-table); }
.table-wrap .table { margin: 0; }
.table-wrap .table tr:last-child td { border-bottom: 0; }
.preview, .hub-pic img, .article-pic img, .article-pics img, .faq-photos img, .product-img img, .card img, .about-photo img, .preview img { border-radius: var(--r-photo); }
.hub-log, .dm-menu { border-radius: var(--r-chat); }
.dm-win { border-radius: calc(var(--r-chat) + 4px) calc(var(--r-chat) + 4px) 0 0; overflow: hidden; }
.dm-win .hub-log { border-radius: 0; }
.hero-photo { border-radius: 0; }
.btn, .nav-toggle { border-radius: var(--r-btn); }
.bare-form input[type=email], .search-form input[type=search] { border-radius: var(--r-field); }

/* appearance editor (admin dashboard popup) */
.radius-dialog { max-width: 920px; width: calc(100% - 2rem); padding: 1.2rem; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-card); }
.radius-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.radius-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; }
.radius-row { display: grid; grid-template-columns: 1fr 120px 64px auto; gap: .5rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.radius-row label small { display: block; color: var(--muted); font-size: .78rem; }
.radius-row input[type=number] { width: 64px; }
.radius-preview { background: var(--black); border: 1px solid var(--line); padding: .8rem; align-self: start; max-height: 70vh; overflow: auto; }
.radius-preview > p, .radius-preview > div { margin: 0 0 .6rem; }
.pv-photo { height: 46px; background: var(--panel-2); border-radius: var(--r-photo); margin-bottom: .4rem; }
.pv-pill, .pv-badge { display: inline-block; padding: .1rem .7rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-pill); }
.pv-badge { padding: .1rem .5rem; }
.pv-chat { padding: .5rem; min-height: 0; height: auto; }
.pv-scanner i { border-radius: var(--r-scanner); }
.radius-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
@media (max-width: 760px) { .radius-grid { grid-template-columns: 1fr; } .radius-row { grid-template-columns: 1fr 90px 60px auto; } }

/* generated password box (admin user page) */
.gen-pw { background: var(--panel-2); border: 1px solid var(--scanner); border-radius: var(--r-card); padding: .8rem 1rem; margin: 0 0 1rem; }
.gen-row { display: flex; gap: .6rem; align-items: center; }
.gen-row input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: .05em; }
.hub-online { display: inline-block; margin-left: .5rem; padding: .05rem .6rem; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .9rem; color: var(--ok); white-space: nowrap; }
.hub-online::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .4rem; border-radius: 50%; background: var(--ok); }

/* friends */
.friend-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.friend-list li { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.friend-list .meta { flex: 1; min-width: 8rem; }
.friend-list .dot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--line); flex: none; }
.friend-list .dot.on { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.friend-list form.inline { margin: 0; }
.hub-friendbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: .4rem 0; }

@media (max-width: 900px) { .hub-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hub-topics { grid-template-columns: minmax(0, 1fr); } }
.hub-here { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--ok); }
.hub-here::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); }
.hub-here.none { color: var(--muted); }
.hub-here.none::before { background: var(--line); }

/* ---- private chat: speech bubbles, like a messenger app ---- */
.dm-log, .dm-chat .hub-log { background: var(--panel); display: flex; flex-direction: column; gap: .15rem; }
.dm-log .hub-msg, .dm-chat .hub-msg { display: flex; flex-direction: column; align-items: flex-start; padding: .1rem 0; border: 0; max-width: 100%; }
.dm-log .hub-msg.mine, .dm-chat .hub-msg.mine { align-items: flex-end; }
.dm-log .hub-msg .who, .dm-chat .hub-msg .who { display: none; }
.dm-log .hub-msg .txt, .dm-chat .hub-msg .txt { order: 1; max-width: 82%; padding: .5rem .85rem; background: linear-gradient(180deg, #1d3f8a, #12285c); color: #fff; border-radius: calc(var(--r-chat) + 8px); border-bottom-left-radius: 4px; line-height: 1.35; }
.dm-log .hub-msg.mine .txt, .dm-chat .hub-msg.mine .txt { background: linear-gradient(180deg, #e0242b, #b3141b); color: #fff; border-bottom-left-radius: calc(var(--r-chat) + 8px); border-bottom-right-radius: 4px; }
.dm-log .hub-msg .txt a, .dm-chat .hub-msg .txt a, .dm-chat .hub-msg.mine .txt a { color: inherit; text-decoration: underline; }
.dm-log .hub-pic, .dm-chat .hub-pic { order: 2; margin-top: .2rem; }
.dm-log .hub-msg time, .dm-chat .hub-msg time { order: 3; margin: .1rem .5rem 0; font-size: .7rem; color: var(--muted); }
.dm-log .hub-msg .acts, .dm-chat .hub-msg .acts { order: 4; position: static; background: none; padding: 0 .5rem; font-size: .75rem; }
.dm-pagehead { display: flex; align-items: center; gap: .7rem; margin: 0 0 .6rem; }
.dm-avatar { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.05rem; }
.dm-head .dm-avatar { width: 1.8rem; height: 1.8rem; font-size: .9rem; }
.dm-head { padding: .45rem .6rem; }
.dm-form, .dm-chat .hub-form { align-items: flex-end; gap: .5rem; }
.dm-form textarea, .dm-chat .hub-form textarea { border-radius: 22px; padding: .6rem 1rem; resize: none; min-height: 2.6rem; max-height: 8rem; font-size: 1rem; line-height: 1.3; }
.send-btn { flex: none; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; line-height: 1; }
.dm-form .attach-btn, .dm-chat .attach-btn { flex: none; width: 2.6rem; height: 2.6rem; padding: 0; border-radius: 50%; }
.dm-chat { display: flex; flex-direction: column; max-width: 760px; }
.dm-chat .hub-log { height: auto; flex: 1 1 auto; min-height: 280px; max-height: calc(100vh - 22rem); border: 1px solid var(--line); border-bottom: 0; border-radius: calc(var(--r-chat) + 4px) calc(var(--r-chat) + 4px) 0 0; padding: .8rem; }
.dm-chat .hub-form { margin: 0; padding: .6rem; border: 1px solid var(--line); background: var(--panel); border-radius: 0 0 calc(var(--r-chat) + 4px) calc(var(--r-chat) + 4px); flex-direction: row; }
.dm-chat .hub-form textarea { flex: 1; min-width: 0; }
.dm-win .hub-log { height: 240px; }

@media (max-width: 560px) {
  /* full-width sheet that fits the screen; the log takes whatever height is left */
  #hub-dock { right: 0; left: 0; max-width: none; gap: 0; }
  .dm-win { width: 100%; max-width: none; border-left: 0; border-right: 0; }
  .dm-win:not(.min) { height: min(78vh, 78dvh, 560px); }
  .dm-win:not(.min) .dm-body { flex: 1 1 auto; min-height: 0; }
  .dm-win .hub-log { height: auto; flex: 1 1 auto; min-height: 0; }
  .dm-form textarea, .dm-chat .hub-form textarea { font-size: 16px; }
  .dm-log .hub-msg .txt, .dm-chat .hub-msg .txt { max-width: 86%; }
  .dm-page .crumb { display: none; }
  .dm-page { padding-inline: 0; }
  .dm-page > h1, .dm-page > .row-actions, .dm-page > .hub-notice { margin-inline: 1rem; }
  .dm-chat { height: calc(100vh - 14rem); height: calc(100dvh - 14rem); min-height: 320px; max-width: none; }
  .dm-chat .hub-log { max-height: none; border-left: 0; border-right: 0; border-radius: 0; }
  .dm-chat .hub-form { flex-direction: row; border-left: 0; border-right: 0; border-radius: 0; }
}
.dm-pagehead { font-size: 1.7rem; }
.dm-pagehead .meta { font-size: .9rem; }
.btn.send-btn { border-radius: 50%; }
.dm-form textarea, .dm-chat .hub-form textarea { field-sizing: content; height: auto; }

/* main room chat: a single line to type in */
.hub-form textarea { min-height: 0; height: 2.7rem; resize: none; overflow-y: auto; }
.hub-form .btn { align-self: stretch; }
/* the "open as full page" arrow is for phones only */
/* the chat window is the main way to read a private chat, so no full-page arrow */
.dm-win a.dm-icon { display: none; }
@media (max-width: 560px) { .hub-form { flex-direction: row; align-items: flex-end; } .hub-form textarea { font-size: 16px; } }

/* main room chat: sized to fit the screen, so the typing box is always in view */
#hub-chat:not(.dm-chat) .hub-log { height: clamp(220px, calc(100vh - 26rem), 380px); min-height: 0; }
.hub-form + .hint { margin-top: 1.6rem; }
@media (max-width: 560px) {
  #hub-chat:not(.dm-chat) .hub-log { height: calc(100vh - 21rem); height: calc(100dvh - 21rem); min-height: 200px; max-height: none; }
  .hub .crumb { margin-bottom: .2rem; }
  .hub h1 { font-size: 2rem; margin: .2rem 0 .4rem; }
  .hub-form + .hint { margin-top: 1.2rem; }
}
.hub-form .attach-btn { align-self: flex-end; flex: none; width: 2.7rem; height: 2.7rem; padding: 0; }
.hub-form .btn { align-self: flex-end; height: 2.7rem; padding-block: 0; }

/* header buttons: drawn shapes so they sit exactly in the middle */
.dm-icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; line-height: 1; flex: none; }
.dm-x { position: relative; }
.dm-x::before, .dm-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; border-radius: 1px; transform: translate(-50%, -50%) rotate(45deg); }
.dm-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.dm-head { align-items: center; }
.dm-title { display: flex; align-items: center; min-height: 2rem; }

/* phones: an open private chat is a full-screen page; minimised it is a bar at the bottom */
@media (max-width: 560px) {
  #hub-dock { z-index: 150; }
  .dm-win:not(.min) { position: fixed; inset: 0 0 auto 0; transform: translateY(var(--vvt, 0px)); width: auto; height: 100vh; height: 100dvh; height: var(--vvh, 100dvh); max-width: none; border: 0; border-radius: 0; z-index: 90; padding-bottom: env(safe-area-inset-bottom); background: var(--panel); }
  .dm-win:not(.min) .dm-head { padding-top: calc(.5rem + env(safe-area-inset-top)); }
  .dm-win:not(.min) .dm-body { flex: 1 1 auto; min-height: 0; }
  .dm-win:not(.min) .hub-log { height: auto; flex: 1 1 auto; min-height: 0; }
  .dm-win.min { border-radius: 0; }
}
.dm-log::before { content: ""; margin-top: auto; }

/* show/hide password */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 4.6rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); background: #e6e9ee; border: 0; color: #2c333d; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: .3rem .55rem; border-radius: var(--r-sm, 6px); }
.pw-toggle:hover, .pw-toggle:focus-visible { color: #000; background: #d4d9e0; }

/* message requests */
.dm-req{padding:.6rem .75rem;border-top:1px solid var(--line,#333);text-align:center}
.dm-req-q{margin:0 0 .5rem;font-size:.9rem}
.dm-req-btns{display:flex;gap:.5rem;justify-content:center}
.dm-req-btns .btn{min-width:5rem}
li.dm-req{list-style:none;margin:.5rem auto;padding:.6rem .9rem;border:1px solid var(--line,#333);border-radius:var(--r-chat,12px);max-width:90%;background:rgba(255,255,255,.04)}

/* colour editor (admin Site page) */
.color-row { display: grid; grid-template-columns: 1fr 56px 5.5rem auto; gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.color-row label small { display: block; color: var(--muted); font-size: .78rem; }
.color-row input[type=color] { width: 56px; height: 38px; padding: 2px; background: none; border: 1px solid var(--line); border-radius: var(--r-field); cursor: pointer; }
.color-row .hex { font-size: .85rem; color: var(--muted); }
.color-preview { --cv-page: #08090b; --cv-header: #08090b; --cv-footer: #08090b; --cv-panel: #101216; --cv-raised: #171a20; padding: 0; overflow: hidden; background: var(--cv-page); }
.color-preview > p.hint { padding: .5rem .8rem; margin: 0; }
.color-preview > .cv-header { background: var(--cv-header); border-bottom: 2px solid #ff2a2a; padding: .7rem .8rem; color: #e9e6df; margin: 0; }
.color-preview > .cv-page { background: var(--cv-page); padding: .9rem .8rem; color: #e9e6df; margin: 0; }
.cv-card { background: var(--cv-panel); border: 1px solid #2a2e36; border-radius: 10px; padding: .7rem; margin-bottom: .7rem; }
.cv-card p { margin: 0 0 .5rem; }
.cv-card input { background: var(--cv-raised); color: #e9e6df; border: 1px solid #2a2e36; border-radius: 8px; padding: .35rem .5rem; width: 100%; }
.color-preview > .cv-footer { background: var(--cv-footer); border-top: 1px solid #2a2e36; padding: .7rem .8rem; color: #8d95a3; margin: 0; }
@media (max-width: 760px) { .color-row { grid-template-columns: 1fr 56px auto; } .color-row .hex { display: none; } }
.color-row + .hint, .radius-controls > .hint { margin-top: .8rem; }

.color-preview { --cv-chat: #101216; --cv-chattext: #e9e6df; --cv-dm: #101216; }
.color-preview > .cv-chat { background: var(--cv-chat); color: var(--cv-chattext); padding: .7rem .8rem; border-top: 1px solid #2a2e36; margin: 0; }
.color-preview > .cv-dm { background: var(--cv-dm); padding: .7rem .8rem; border-top: 1px solid #2a2e36; margin: 0; text-align: right; }
.cv-bub { display: inline-block; background: linear-gradient(180deg, #e0242b, #b3141b); color: #fff; padding: .3rem .8rem; border-radius: 16px; }

/* delivered / seen under my newest private message */
.dm-log .hub-msg .dm-status, .dm-chat .hub-msg .dm-status { order: 3; align-self: flex-end; margin: .1rem .5rem 0; font-size: .7rem; color: var(--muted); }
.dm-log .hub-msg .dm-status.seen, .dm-chat .hub-msg .dm-status.seen { color: var(--ok); }

.color-preview { --cv-btn: #ff2a2a; --cv-btntext: #ffffff; --cv-scn: #ff2a2a; }
.color-preview > .cv-btns { background: var(--cv-page); padding: .7rem .8rem; border-top: 1px solid #2a2e36; margin: 0; }
.cv-btn { display: inline-block; background: var(--cv-btn); color: var(--cv-btntext); border: 1px solid var(--cv-btn); border-radius: 10px; padding: .45rem 1rem; font-weight: 700; margin-bottom: .6rem; }
.cv-scn { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; height: 18px; }
.cv-scn i { background: color-mix(in srgb, var(--cv-scn) 16%, #000); border-radius: 3px; }
.cv-scn i.on { background: linear-gradient(color-mix(in srgb, var(--cv-scn), #fff 45%), var(--cv-scn) 40%, color-mix(in srgb, var(--cv-scn), #000 30%)); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--cv-scn) 60%, transparent); }

/* chat text size editor (admin Site page) */
.chatsize-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; max-width: 460px; }
.chatsize-row input[type=range] { flex: 1; }
.chatsize-row input[type=number] { width: 5rem; }
.chatsize-preview { --cs: 1; max-width: 460px; background: #101216; color: #e9e6df; border: 1px solid #2a2e36; border-radius: 10px; padding: .6rem .8rem; margin-bottom: .8rem; }
.chatsize-preview p { margin: 0 0 .5rem; font-size: calc(1rem * var(--cs)); }
.chatsize-preview .hint { font-size: .8rem; color: #8d95a3; }
.cs-time { color: #8d95a3; font-size: calc(.85rem * var(--cs)); }
.cs-dm { display: flex; justify-content: flex-start; }
.cs-dm:has(.mine) { justify-content: flex-end; }
.cs-bub { display: inline-block; max-width: 85%; padding: .45rem .8rem; border-radius: 16px; background: linear-gradient(180deg, #1d3f8a, #12285c); color: #fff; }
.cs-bub.mine { background: linear-gradient(180deg, #e0242b, #b3141b); }

/* messenger icon + list in the menu bar */
.nav .msg-item { position: relative; display: flex; align-items: center; }
.nav a.msg-link { display: inline-flex; align-items: center; gap: .35rem; position: relative; }
.msg-link .cart-label { display: none; }
.msg-badge { position: absolute; top: -.45rem; right: -.55rem; }
.msg-menu { position: absolute; top: calc(100% + .6rem); right: 0; width: 330px; max-width: calc(100vw - 1.5rem); max-height: 70vh; overflow-y: auto; z-index: 200; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--scanner); border-radius: var(--r-card); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); padding: .3rem; }
.msg-menu[hidden] { display: none; }
.msg-row { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .55rem; border: 0; border-radius: var(--r-card); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.msg-row:hover, .msg-row:focus-visible { background: var(--panel-2); }
.msg-row .dm-avatar { flex: none; width: 2.3rem; height: 2.3rem; }
.msg-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-top { display: flex; justify-content: space-between; gap: .5rem; }
.msg-ago { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.msg-text { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-row.unread .msg-text, .msg-row.unread strong { color: var(--strong); font-weight: 700; }
.msg-dot { flex: none; width: .65rem; height: .65rem; border-radius: 50%; background: var(--scanner); }
.msg-empty { margin: 0; padding: .8rem; color: var(--muted); }
.msg-all { display: block; padding: .6rem; text-align: center; border-top: 1px solid var(--line); margin-top: .2rem; font-size: .9rem; }
.msg-mobile { display: none; }
@media (max-width: 820px) {
  .nav .msg-desk { display: none; }
  .msg-mobile { display: flex; align-items: center; margin-left: auto; position: relative; }
  .msg-mobile .msg-link { padding: .35rem; }
  .msg-mobile .msg-badge { top: -.2rem; right: -.35rem; }
  .msg-mobile .msg-menu { position: fixed; top: 4.3rem; left: .75rem; right: .75rem; width: auto; max-width: none; max-height: calc(100vh - 6rem); }
}

/* photos between the FAQ opening paragraphs: centred, no numbers */
.faq-intro-photo { margin: 1.2rem auto; text-align: center; }
.faq-intro-photo a { display: inline-block; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-photo); overflow: hidden; }
.faq-intro-photo img { display: block; margin: 0 auto; max-width: 100%; max-height: 460px; width: auto; height: auto; }
.faq-intro-photo figcaption { margin-top: .4rem; font-size: .9rem; color: var(--muted); }
.intro-photo-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; }
.intro-photo-list li { display: flex; gap: .9rem; align-items: flex-start; padding: .6rem; border: 1px solid var(--line); border-radius: var(--r-card); }
.intro-photo-list img { flex: none; height: auto; border-radius: var(--r-photo); }
.ip-fields { flex: 1; display: grid; gap: .4rem; }

.faq-intro p.faq-center { text-align: center; }

/* private chat header: readable name, online dot, typing */
.dm-win { color: var(--text, #e9e6df); }
.dm-head .dm-title, .dm-win .dm-title { color: #fff; -webkit-text-fill-color: #fff; opacity: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.15; min-width: 0; }
.dm-title .dm-nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.dm-title .dm-st, .dm-pagehead .dm-st { font-size: .75rem; font-weight: 400; color: var(--muted, #8d95a3); -webkit-text-fill-color: currentColor; }
.dm-title .dm-st:empty { display: none; }
.dm-st.is-online { color: var(--ok); }
.dm-st.is-typing { color: #ff4a4a; font-style: italic; }
.dm-avatar { position: relative; }
.dm-avatar.online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ok); border: 2px solid #1a0000; box-sizing: content-box; }
.dm-pagehead .dm-avatar.online::after { border-color: var(--black); }
.dm-pagehead .dm-who { display: flex; flex-direction: column; line-height: 1.1; }
.dm-pagehead .dm-who .meta { font-size: .9rem; }
li.dm-typing { list-style: none; align-self: flex-start; display: inline-flex; gap: 4px; padding: .6rem .85rem; margin: .1rem 0; border-radius: calc(var(--r-chat) + 8px); border-bottom-left-radius: 4px; background: linear-gradient(180deg, #1d3f8a, #12285c); }
li.dm-typing span { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .4; animation: dmtype 1.1s infinite ease-in-out; }
li.dm-typing span:nth-child(2) { animation-delay: .18s; }
li.dm-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes dmtype { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { li.dm-typing span { animation: none; opacity: .8; } }

/* Double-click menu on private messages */
.msg-pop{position:fixed;z-index:1000;min-width:10rem;background:var(--panel,#10151c);border:1px solid var(--line,#2a3340);border-radius:var(--radius,8px);box-shadow:0 8px 24px rgba(0,0,0,.5);padding:.25rem;display:flex;flex-direction:column}
.msg-pop button{background:none;border:0;color:inherit;font:inherit;text-align:left;padding:.55rem .75rem;border-radius:calc(var(--radius,8px) - 2px);cursor:pointer}
.msg-pop button:hover:not(:disabled),.msg-pop button:focus-visible{background:rgba(255,255,255,.1)}
.msg-pop button:disabled{opacity:.45;cursor:default}

/* Online indicator in the messenger drop-down */
.msg-row .dm-avatar { position: relative; }
.msg-on { position: absolute; right: -1px; bottom: -1px; width: .75rem; height: .75rem; border-radius: 50%; background: var(--ok); border: 2px solid var(--panel); }
.msg-online { color: var(--ok); font-size: .8rem; margin-left: .4rem; }

/* ---- Twitch-style public chat ---- */
/* chat avatars: pictures in /img/av, the member's avatar colour shows as a ring around them */
.av-roadace{background-image:url("../img/av/roadace.svg")}
.av-mechanic{background-image:url("../img/av/mechanic.svg")}
.av-robot{background-image:url("../img/av/robot.svg")}
.av-trucker{background-image:url("../img/av/trucker.svg")}
.av-hacker{background-image:url("../img/av/hacker.svg")}
.av-biker{background-image:url("../img/av/biker.svg")}
.av-agent{background-image:url("../img/av/agent.svg")}
.av-holo{background-image:url("../img/av/holo.svg")}
.av-roaddog{background-image:url("../img/av/roaddog.svg")}
.av-racer{background-image:url("../img/av/racer.svg")}
.av-synthcat{background-image:url("../img/av/synthcat.svg")}
.av-boss{background-image:url("../img/av/boss.svg")}
.av-voltqueen{background-image:url("../img/av/voltqueen.svg")}
.av-skyrocket{background-image:url("../img/av/skyrocket.svg")}
.av-steelsentry{background-image:url("../img/av/steelsentry.svg")}
.av-inferno{background-image:url("../img/av/inferno.svg")}
.av-glacia{background-image:url("../img/av/glacia.svg")}
.av-kitsune{background-image:url("../img/av/kitsune.svg")}
.av-elturbo{background-image:url("../img/av/elturbo.svg")}
.av-mindwave{background-image:url("../img/av/mindwave.svg")}
.av-tidal{background-image:url("../img/av/tidal.svg")}
.av-wildroot{background-image:url("../img/av/wildroot.svg")}
.av-overdrive{background-image:url("../img/av/overdrive.svg")}
.av-moonblade{background-image:url("../img/av/moonblade.svg")}
.av-ta-cruise{background-image:url("../img/av/ta-cruise.svg")}
.av-ta-speed{background-image:url("../img/av/ta-speed.svg")}
.av-ta-jump{background-image:url("../img/av/ta-jump.svg")}
.av-ta-land{background-image:url("../img/av/ta-land.svg")}
.av-ta-burnout{background-image:url("../img/av/ta-burnout.svg")}
.av-ta-drift{background-image:url("../img/av/ta-drift.svg")}
.av-ta-headon{background-image:url("../img/av/ta-headon.svg")}
.av-ta-sunset{background-image:url("../img/av/ta-sunset.svg")}
.av-ta-top{background-image:url("../img/av/ta-top.svg")}
.av-ta-ski{background-image:url("../img/av/ta-ski.svg")}
.av-ta-city{background-image:url("../img/av/ta-city.svg")}
.av-ta-desert{background-image:url("../img/av/ta-desert.svg")}

.av{display:inline-block;flex:none;width:1.4em;height:1.4em;border-radius:50%;vertical-align:-.32em;margin-right:.4em;background-repeat:no-repeat;background-position:center;background-size:82%}
#hub-chat.twitch { position: relative; }
#hub-chat.twitch .hub-log { line-height: 1.5; font-size: .903rem; }   /* 85% of the old 1.0625rem */
@media (max-width: 820px) { #hub-chat.twitch .hub-log { padding-right: 2.6rem; } }
#hub-chat.twitch .hub-msg { display: block; padding: .2rem .35rem; border: 0; border-radius: 4px; }
#hub-chat.twitch .hub-msg:hover { background: rgba(255, 255, 255, .05); }
#hub-chat.twitch .hub-msg time { margin: 0 .5rem 0 0; font-size: .72em; color: var(--muted); }
#hub-chat.twitch .hub-msg .who { color: var(--strong); font-weight: 700; cursor: default; }
#hub-chat.twitch .hub-msg .colon { margin-right: 0; }
#hub-chat.twitch .hub-msg .txt { display: inline; white-space: pre-line; }
#hub-chat.twitch .hub-msg .hub-pic { display: block; margin-top: .25rem; }
#hub-chat.twitch .hub-msg .acts { top: .15rem; }
#hub-chat.twitch.no-time .hub-msg time { display: none; }
#hub-chat.twitch.no-av .av { display: none; }

/* settings gear + dropdown, top-right corner of the chat */
.chat-set { display: none; }
.js .chat-set:not([hidden]) { display: block; position: absolute; top: .45rem; right: .6rem; z-index: 20; }
.chat-gear { width: 2.2rem; height: 2.2rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(16, 18, 22, .88); color: var(--text); cursor: pointer; padding: 0; }
.chat-gear:hover, .chat-gear[aria-expanded="true"] { border-color: var(--scanner); color: var(--strong); }
.chat-gear svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.chat-set-panel { position: absolute; top: 2.7rem; right: 0; width: 290px; max-width: calc(100vw - 2rem); max-height: 70vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--scanner); border-radius: var(--r-card); box-shadow: 0 10px 24px rgba(0, 0, 0, .55); padding: .7rem .8rem; font-size: .92rem; }
.chat-set-panel[hidden] { display: none; }
.chat-set-panel h4 { margin: .7rem 0 .35rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chat-set-panel h4:first-child { margin-top: 0; }
.cs-swatches, .cs-avs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.cs-sw { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.cs-sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--scanner); }
.cs-custom { width: 2.2rem; height: 1.8rem; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.cs-def { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; font: inherit; font-size: .8rem; padding: .15rem .6rem; cursor: pointer; }
.cs-def.on { border-color: var(--scanner); color: var(--strong); }
.cs-av { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid transparent; opacity: .8; cursor: pointer; padding: 0; background-color: var(--panel-2); background-repeat: no-repeat; background-position: center; background-size: 84%; transition: transform .12s, opacity .12s; }
.cs-av:hover { opacity: 1; transform: scale(1.08); }
.cs-avgroup { flex-basis: 100%; margin: .45rem 0 .1rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cs-avgroup:first-child { margin-top: 0; }
.cs-av.on { border-color: #fff; opacity: 1; box-shadow: 0 0 0 2px var(--scanner); }
.cs-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .25rem 0; }
.cs-row input[type=range] { flex: 1; }
.cs-msg { margin: .5rem 0 0; font-size: .82rem; color: var(--muted); min-height: 1.1em; }
.cs-msg.err { color: #ff6b6b; }
.cs-sample { margin: .4rem 0 0; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg, #0b0c0f); }

/* People in this room: 200px column on the right (under the gear); below the chat on a phone */
.chat-cols { display: flex; gap: .8rem; align-items: flex-start; }
.chat-main { flex: 1 1 auto; min-width: 0; }
.chat-side { flex: none; width: 200px; padding-top: 2.9rem; }
.chat-side-h { margin: 0 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.chat-people { list-style: none; margin: 0; padding: .3rem; max-height: 52vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-chat); background: var(--panel); }
.chat-people li { margin: 0; }
.chat-people .pp { display: flex; align-items: center; gap: .45rem; width: 100%; padding: .3rem .4rem; border: 0; border-radius: 6px; background: none; font: inherit; font-size: .92rem; text-align: left; color: var(--text); cursor: pointer; min-width: 0; }
.chat-people button.pp:hover, .chat-people button.pp:focus-visible { background: var(--panel-2); }
.chat-people .pp.me { cursor: default; }
.chat-people .av { margin: 0; width: 1.3rem; height: 1.3rem; vertical-align: 0; }
.chat-people .pn { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chat-people .pme { margin-left: auto; font-size: .72rem; color: var(--muted); }
@media (max-width: 820px) {
  .chat-cols { flex-direction: column; align-items: stretch; }
  .chat-side { width: auto; padding-top: 0; }
  .chat-people { display: flex; flex-wrap: wrap; gap: .2rem; max-height: 9rem; }
  .chat-people .pp { width: auto; }
}

/* Per-topic chat box height set in Admin > Community > Topics (desktop only) */
@media (min-width: 561px) { #hub-chat.twitch.has-h .hub-log { height: var(--chat-h); max-height: none; } #hub-chat.twitch.has-h .chat-people { max-height: var(--chat-h); } }

/* Short videos in chat */
.hub-vid { display: block; margin-top: .3rem; width: 100%; max-width: 320px; max-height: 260px; border-radius: var(--r-chat, 8px); background: #000; }
.dm-win .hub-vid { max-width: 220px; max-height: 200px; }
.dm-log .hub-msg .hub-vid, .dm-chat .hub-msg .hub-vid { order: 2; }

/* phones: page behind a full-screen private chat does not scroll */
html.dm-full, html.dm-full body { overflow: hidden; overscroll-behavior: none; }

/* Friend request pop-up, centre of the screen */
.fr-back { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .65); }
.fr-box { width: 100%; max-width: 360px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--scanner); border-radius: var(--r-card); box-shadow: 0 16px 48px rgba(0, 0, 0, .7); padding: 1.4rem 1.2rem 1.1rem; animation: fr-in .18s ease-out; }
.fr-box .dm-avatar { width: 3.4rem; height: 3.4rem; font-size: 1.5rem; margin: 0 auto .6rem; }
.fr-box h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.fr-text { margin: 0 0 1rem; }
.fr-actions { display: flex; gap: .6rem; justify-content: center; margin-bottom: .7rem; }
.fr-msg { margin: .6rem 0 0; min-height: 1.2em; color: var(--ok); font-size: .9rem; }
@keyframes fr-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fr-box { animation: none; } }

/* Extra categories on the product form */
.extra-cats .check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:.25rem .75rem;max-height:14rem;overflow:auto;padding:.25rem 0}

/* Language switch */
.lang-switch{margin:.2rem 0 .6rem;text-align:right;font-size:.85rem}
.lang-switch a{margin-left:.6rem;text-decoration:none}
.lang-switch a.on{font-weight:700;text-decoration:underline}
.site-footer .lang-switch{text-align:left;margin:.4rem 0}
.site-footer .lang-switch a{margin:0 .6rem 0 0}

/* Suppliers: notes hidden until the arrow is clicked */
.supplier details > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.supplier details > summary::-webkit-details-marker { display: none; }
.supplier details > summary h3 { margin: 0; border: 0; padding: 0; }
.supplier details > summary::after { content: ""; flex: none; box-sizing: content-box; width: .6rem; height: .6rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 .3rem .2rem 0; transition: transform .15s; }
.supplier details[open] > summary::after { content: ""; transform: rotate(225deg); margin: .2rem .3rem 0 0; }
.supplier details { border: 0; }
.supplier details > summary { padding: 0; }
.supplier details[open] > summary { margin-bottom: .5rem; }
.supplier details > summary:focus-visible { outline: 2px solid var(--scanner); outline-offset: 3px; }

.suppliers-head { align-items: flex-start; }
.suppliers-head h1 { margin-bottom: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.2rem 1.4rem; margin-bottom: 1.5rem; }
.panel > h2:first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.approval { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: var(--r-card); padding: 1rem 1.3rem; margin-bottom: 1.5rem; }
.approval h2 { margin-top: 0; }
.approval form.inline { display: inline-flex; gap: .5rem; margin: .3rem .6rem .3rem 0; align-items: center; }
.badge-count { display: inline-block; min-width: 1.4em; padding: 0 .4em; margin-left: .3em; border-radius: 1em; background: var(--amber); color: #000; font-size: .8rem; font-weight: 700; text-align: center; line-height: 1.5; }
.approval ul { margin: .4rem 0 0; padding-left: 1.2rem; }

.kemoji { width: 1.5em; height: 1.5em; vertical-align: -.4em; margin: 0 .05em; }
.has-emoji { position: relative; }
.emoji-btn img { display: block; width: 1.4rem; height: 1.4rem; }
.hub-form .emoji-btn, .dm-form .emoji-btn { align-self: flex-end; flex: none; width: 2.6rem; height: 2.6rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.emoji-pop { position: absolute; right: 0; bottom: calc(100% + .4rem); z-index: 30; width: min(340px, calc(100vw - 1rem)); padding: .4rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
/* the emoji picker (composer, reactions): quick row, section tabs, then the scrolling sections */
.emo-panel { display: flex; flex-direction: column; }
.emo-quick { display: flex; justify-content: space-between; margin-bottom: .35rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.emo-tabs { display: flex; gap: .1rem; margin-bottom: .2rem; padding-bottom: .25rem; border-bottom: 1px solid var(--line); }
.emo-panel .emo-tabs button { flex: 1; width: auto; height: auto; min-height: 2rem; opacity: .5; border-radius: 6px; }
.emo-panel .emo-tabs button.on { opacity: 1; box-shadow: inset 0 -2px 0 #ff2a2a; }
.emo-body { position: relative; max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; }
.emo-h { position: sticky; top: 0; z-index: 1; margin: 0; padding: .35rem .25rem .2rem; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
.emo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.3rem, 1fr)); }
.emo-panel button { display: grid; place-items: center; min-height: 2.3rem; padding: .2rem; border: 0; border-radius: 8px; background: none; line-height: 0; cursor: pointer; }
.emo-panel button:hover, .emo-panel button:focus-visible { background: rgba(255, 42, 42, .18); outline: none; }
.uemoji { display: inline-block; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif; font-style: normal; line-height: 1; vertical-align: middle; }
.emoji-row { position: relative; display: flex; justify-content: flex-end; margin: .2rem 0 .8rem; }
.emoji-row .emoji-btn { width: 2.4rem; height: 2.4rem; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.hub-msg .txt .kemoji { width: 1.7em; height: 1.7em; }
.kemoji, .hub-msg .txt img.kemoji { display: inline-block; }
.affiliate-box { max-width: 1100px; margin: 2rem auto; padding: 1rem 1.3rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.affiliate-box h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
.affiliate-box ul { margin: 0; padding-left: 1.2rem; }
.affiliate-box .hint { margin: .8rem 0 0; }

.garage-link { text-align: right; margin: 0 0 .6rem; }
.garage-link .btn img { vertical-align: -.3em; }
.garage-grid { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.garage-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.garage-card .gc-pic { display: block; aspect-ratio: 4 / 3; background: #0b0c0f; }
.garage-card .gc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.garage-card .gc-none { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.garage-card .gc-none img { width: 48px; height: 48px; object-fit: contain; opacity: .6; }
.garage-card .gc-body { padding: .7rem .9rem .9rem; }
.garage-card h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.garage-card .meta { margin: .15rem 0; }
.gb-head { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1.5rem; }
.gb-head > div { flex: 1 1 320px; min-width: 0; }
.gb-pic img { width: 320px; max-width: 100%; border-radius: var(--r-photo); border: 1px solid var(--line); display: block; }
.garage-post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.garage-post h3 { margin: 0; }
.garage .txt { white-space: pre-line; overflow-wrap: anywhere; }
.garage-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin: .8rem 0; }
.garage-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-photo); border: 1px solid var(--line); display: block; }
.garage-comments { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.gcomment { margin: .4rem 0; overflow-wrap: anywhere; }
.gcomment-form { display: flex; gap: .5rem; align-items: flex-end; margin-top: .6rem; }
.gcomment-form textarea { flex: 1; min-height: 2.6rem; }
.garage-link .btn { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }

@keyframes garage-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 190, 40, 0); border-color: var(--line); } 50% { box-shadow: 0 0 14px 3px rgba(255, 190, 40, .85); border-color: #ffbe28; } }
@keyframes garage-btn-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); filter: none; } 50% { box-shadow: 0 0 16px 4px rgba(255, 190, 40, .9); filter: brightness(1.25); } }
.garage-link .btn.flash { animation: garage-btn-flash 1.2s ease-in-out infinite; }
.garage-card.has-new, .garage-post.is-new { border: 2px solid #ffbe28; animation: garage-flash 1.2s ease-in-out infinite; }
.tag.new { color: #ffbe28; border-color: #ffbe28; }
@media (prefers-reduced-motion: reduce) { .garage-link .btn.flash, .garage-card.has-new, .garage-post.is-new { animation: none; box-shadow: 0 0 10px 2px rgba(255, 190, 40, .8); } }

.btn.danger { background: #7a2a2a; border-color: #a33; color: #fff; }
.btn.danger:hover { background: #962f2f; }

/* Desktop Shop menu: only the main categories show; hovering one opens its subcategories to the right
   (and their subcategories further right). The phone menu above still lists everything under Shop. */
.kids-arrow { display: none; }
@media (min-width: 821px) {
  .sub li { position: relative; }
  .nav .sub .has-kids > a { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
  .kids-arrow { display: inline; color: var(--muted); font-size: 1.15rem; line-height: 1; }
  .sub .has-kids:hover > a .kids-arrow, .sub .has-kids:focus-within > a .kids-arrow { color: var(--scanner); }
  .sub .has-kids:hover > a, .sub .has-kids:focus-within > a { background: var(--panel); }
  .sub .sub-sub { display: none; position: absolute; left: 100%; top: -.4rem; z-index: 21; min-width: 14rem; padding: .4rem 0;
    background: var(--black); border: 1px solid var(--line); border-left: 2px solid var(--scanner); box-shadow: 10px 10px 24px rgba(0, 0, 0, .5); }
  .sub .has-kids:hover > .sub-sub, .sub .has-kids:focus-within > .sub-sub { display: block; }
  .nav .sub .sub-sub a, .nav .sub .sub-sub .sub-sub a, .nav .sub .sub-sub .sub-sub .sub-sub a, .nav .sub .sub-sub .sub-sub .sub-sub .sub-sub a {
    padding: .5rem 1rem; font-size: 1rem; color: var(--text); }
  /* a small invisible bridge so the panel does not close while the mouse moves across to it */
  .sub .has-kids > .sub-sub::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; width: 12px; }
}
@media (min-width: 821px) {
  /* no room on the right: show that level indented underneath, inside the same panel */
  .sub .has-kids.flip > .sub-sub { position: static; display: block; min-width: 0; padding: 0 0 .3rem; border: 0; box-shadow: none; background: transparent; }
  .sub .has-kids.flip > .sub-sub::before { display: none; }
  .nav .sub .has-kids.flip > .sub-sub a { padding-left: 2rem; color: var(--muted); }
  .sub .has-kids.flip > a .kids-arrow { transform: rotate(90deg); }
}

/* Community: news feed / chat rooms switch (like the app) */
.hub-switch { display: flex; max-width: 720px; margin: 1.6rem auto 1.4rem; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-switch); }
.hub-switch a { flex: 1; text-align: center; padding: .55rem 1rem; border-radius: max(0px, calc(var(--r-switch) - 4px)); font-family: var(--head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .03em; color: var(--chrome); text-decoration: none; }
.hub-switch a:hover { color: #fff; }
.hub-switch a.on { background: var(--scanner); color: #fff; }

/* Community news feed */
.feed-wrap { max-width: 720px; margin: 0 auto 2.5rem; }
.feed { display: grid; gap: 1rem; }
.wrap.narrow-feed { width: min(760px, 100% - 2.5rem); }
.feed-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem 1.1rem; }
.feed-card.pinned { border-color: var(--scanner); }
.feed-head { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .6rem; }
.feed-head .av { width: 2.3rem; height: 2.3rem; margin: 0; vertical-align: 0; }
.feed-logo { width: 2.3rem; height: 2.3rem; border-radius: 50%; object-fit: cover; flex: none; }
.feed-who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.feed-who > a, .feed-who > strong { font-weight: 700; text-decoration: none; }
.feed-what { color: var(--text); font-size: .95rem; }
.feed-time { color: var(--muted); font-size: .85rem; }
.feed-text { margin: 0 0 .6rem; white-space: pre-line; overflow-wrap: anywhere; }
.feed-title { margin: 0 0 .3rem; font-size: 1.35rem; }
.feed-title a { color: var(--strong); text-decoration: none; }
.feed-price { color: var(--amber); font-family: var(--body); font-size: 1rem; font-weight: 700; margin-left: .4rem; }
/* Link cards under feed posts (partials/link-card.php): a video that plays in the post, or a web page preview */
.lc-video { position: relative; margin: .2rem 0 .3rem; aspect-ratio: 16 / 9; border-radius: var(--r-photo); overflow: hidden; background: #000; }
.lc-video.portrait { aspect-ratio: 9 / 16; width: min(100%, 340px); margin-left: auto; margin-right: auto; }
.lc-video.lc-instagram.portrait { aspect-ratio: 9 / 15; width: min(100%, 400px); background: #fff; }
.lc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lc-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.lc-play img, .lc-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-blank { background: linear-gradient(160deg, #3a0c0c, #121318 70%); }
.lc-facebook .lc-blank { background: linear-gradient(160deg, #1d4fa3, #121318 75%); }
.lc-instagram .lc-blank { background: linear-gradient(160deg, #b8327a, #5427a0 45%, #121318 90%); }
.lc-play .vid-play { transition: transform .15s, background .15s; }
.lc-play:hover .vid-play, .lc-play:focus-visible .vid-play { transform: scale(1.08); background: rgba(220, 20, 30, .85); }
.lc-badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; }
.lc-youtube .lc-badge { color: #ff6464; }
.lc-facebook .lc-badge { color: #8fb4ff; }
.lc-instagram .lc-badge { color: #ff8cc2; }
.lc-open { margin: .1rem 0 .7rem; font-size: .88rem; }
.lc-video.portrait + .lc-open { text-align: center; }
.lc-open a { color: var(--muted); }
.lc-page { display: block; margin: .2rem 0 .8rem; border: 1px solid var(--line); border-radius: var(--r-photo); overflow: hidden; background: rgba(0, 0, 0, .38); color: inherit; text-decoration: none; }
.lc-page:hover, .lc-page:focus-visible { border-color: var(--scanner, #ff2a2a); }
.lc-img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: #000; }
.lc-body { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .8rem .7rem; }
.lc-site { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lc-title { font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
.lc-price { font-weight: 700; color: var(--amber, #ffb020); }
.lc-text { font-size: .9rem; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) {
  .lc-page.has-img { display: grid; grid-template-columns: 200px 1fr; }
  .lc-page.has-img .lc-img { height: 100%; aspect-ratio: auto; min-height: 120px; }
  .lc-page.has-img .lc-body { justify-content: center; }
}
/* the link card under a chat message, private message, thread or reply (lib/link_cards.php link_msg_card_html):
   smaller than the news feed's, with the picture at the side */
.lc-msg { max-width: 440px; margin: .35rem 0 .15rem; }
.lc-msg .lc-page { margin: 0; display: grid; grid-template-columns: 1fr; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.lc-msg .lc-page.has-img { grid-template-columns: 92px 1fr; }
.lc-msg .lc-page.has-img .lc-img { width: 92px; height: 100%; min-height: 76px; aspect-ratio: auto; }
.lc-msg .lc-body { padding: .5rem .75rem .55rem; justify-content: center; gap: .1rem; min-width: 0; }
.lc-msg .lc-site { font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-msg .lc-title { font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-msg .lc-text { font-size: .84rem; -webkit-line-clamp: 2; }
.lc-msg .lc-video { max-width: 440px; border-radius: 10px; }
.lc-msg .lc-open { margin: .1rem 0 0; }
.dm-log .hub-msg.mine .lc-msg, .dm-chat .hub-msg.mine .lc-msg { align-self: flex-end; }
.dm-log .hub-msg .lc-msg, .dm-chat .hub-msg .lc-msg { order: 2; width: min(82%, 440px); }
.feed-pics { display: grid; gap: .4rem; margin: .4rem 0 .7rem; grid-template-columns: 1fr 1fr; }
.feed-pics.n1 { grid-template-columns: 1fr; }
.feed-pics img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-photo); background: var(--panel-2); }
.feed-pics.n1 img { aspect-ratio: auto; max-height: 520px; object-fit: contain; background: #000; }
.feed-pics.n3 a:first-child { grid-column: 1 / -1; }
.feed-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; border-top: 1px solid var(--line); padding-top: .6rem; font-size: .95rem; }
.feed-like { background: none; border: 1px solid var(--line); color: var(--chrome); border-radius: var(--r-pill); padding: .25rem .8rem; cursor: pointer; font: inherit; }
.feed-like:hover { border-color: var(--scanner); }
.feed-like.on { color: #fff; background: var(--scanner-dark); border-color: var(--scanner); }
.feed-compose { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: .8rem; margin-bottom: 1rem; }
.feed-compose textarea { width: 100%; resize: vertical; }
.feed-compose-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: .6rem; flex-wrap: wrap; }
.feed-compose-row label { flex: 1 1 280px; min-width: 0; }
.feed-compose-row input[type=file] { width: 100%; max-width: 420px; }
.feed-photos-btn { font-size: .95rem; color: var(--chrome); }
.feed-photos-btn input { display: block; margin-top: .3rem; font-size: .9rem; }
.feed-more { text-align: center; margin-top: 1rem; }
.feed-comment-list { display: grid; gap: .8rem; margin-bottom: 1rem; }
.feed-comment { display: flex; gap: .6rem; }
.feed-comment .av { width: 1.9rem; height: 1.9rem; margin: .1rem 0 0; vertical-align: 0; }
.feed-comment-head { margin: 0; font-size: .9rem; }
.feed-comment-head a { font-weight: 700; text-decoration: none; }
.feed-comment .txt { overflow-wrap: anywhere; }
.feed-comment .acts { margin: .2rem 0 0; font-size: .85rem; display: flex; gap: .8rem; }
@media (max-width: 560px) { .feed-card { padding: .9rem; } .feed-pics { gap: .3rem; } }
.feed-compose-row { align-items: flex-end; }
.feed-photos-btn { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
.feed-photos-btn .meta { font-weight: 400; }
.feed-photos-btn input { margin: 0; max-width: 100%; }
.feed-pics.n1 img { max-height: 440px; }

/* Automatic translation of chat and private messages */
.tr-sw { background: none; border: 0; padding: 0 0 0 .3rem; font: inherit; font-size: .72em; color: inherit; opacity: .6; text-decoration: underline; cursor: pointer; white-space: nowrap; }
.tr-sw:hover, .tr-sw:focus-visible { opacity: 1; }

/* Vids: portrait video row in the news feed, the full-screen player and the "Add a Vid" form */
.vids { margin: .3rem 0; min-width: 0; }
.vids-head h2 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .6rem; font-size: 1.5rem; }
.vids-head h2 svg { color: var(--scanner); }
.vids-strip { position: relative; }
.vids-track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.vids-track::-webkit-scrollbar { display: none; }
.vid-tile { position: relative; flex: 0 0 calc((100% - 16px) / 3); aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); padding: 0; cursor: pointer; scroll-snap-align: start; color: #fff; font: inherit; text-align: left; }
.vid-tile img, .vid-tile video, .vid-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.vid-blank { background: linear-gradient(160deg, #3a0c0c, #121318 70%); }
.vid-tile:not(.vid-add)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none; }
.vid-tile:hover, .vid-tile:focus-visible { border-color: var(--scanner); }
.vid-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .85); z-index: 2; }
.vid-play::before { content: ""; position: absolute; left: 20px; top: 14px; border-left: 19px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.vid-by { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 7px; font-size: .95rem; font-weight: 700; z-index: 2; text-shadow: 0 1px 3px #000; min-width: 0; }
.vid-by .av { width: 28px; height: 28px; margin: 0; flex: none; vertical-align: 0; }
.vid-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vid-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; position: static !important; }
.vid-src { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .75rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .65); }
.vid-src-youtube { color: #ff5a5a; }
.vid-src-facebook { color: #7aa7ff; }
.vid-src-instagram { color: #ff7ab8; }
.vid-blank-facebook { background: linear-gradient(160deg, #123a7a, #121318 72%); }
.vid-blank-instagram { background: linear-gradient(160deg, #7a1f5c, #3d1670 45%, #121318 85%); }
.vid-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; border: 2px dashed var(--line); background: var(--panel); text-align: center; padding: .6rem; }
.vid-add-plus { width: 60px; height: 60px; border-radius: 50%; background: var(--scanner); font-size: 2.4rem; line-height: 58px; color: #fff; }
.vid-add-text { font-weight: 700; font-size: 1.15rem; }
.vid-add-note { font-size: .85rem; color: var(--muted); line-height: 1.25; }
.vids-empty { color: var(--muted); align-self: center; margin: 0 1rem; }
.vids-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 10, 12, .88); color: #fff; font-size: 1.9rem; line-height: 34px; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.vids-arrow:hover { background: var(--scanner); border-color: var(--scanner); }
.vids-arrow.prev { left: -14px; }
.vids-arrow.next { right: -14px; }
.vids-arrow[hidden] { display: none; }
@media (max-width: 640px) {
  .vid-tile { flex-basis: calc((100% - 8px) / 1.65); }
  .vids-arrow.prev { left: 4px; }
  .vids-arrow.next { right: 4px; }
}

html.vv-open { overflow: hidden; }
.vid-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .95); display: flex; align-items: center; justify-content: center; gap: 18px; }
.vv-stage { position: relative; height: min(92vh, 92dvh); aspect-ratio: 9 / 16; max-width: calc(100vw - 180px); background: #000; border-radius: 14px; overflow: hidden; }
.vv-media, .vv-media video, .vv-media iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: contain; background: #000; }
.vv-info { position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px 34px; background: linear-gradient(rgba(0, 0, 0, .75), transparent); color: #fff; pointer-events: none; }
.vv-info a { pointer-events: auto; }
.vv-who { display: flex; align-items: center; gap: .5rem; margin: 0; }
.vv-who .av { width: 28px; height: 28px; margin: 0; vertical-align: 0; }
.vv-who .vid-logo { width: 28px; height: 28px; }
.vv-cap { margin: .35rem 0 0; font-size: .95rem; white-space: pre-line; overflow-wrap: anywhere; max-height: 5.5em; overflow: hidden; }
.vv-side { display: flex; flex-direction: column; gap: 16px; align-self: flex-end; margin-bottom: 14vh; }
.vv-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; color: #fff; cursor: pointer; font: inherit; font-size: .78rem; text-decoration: none; padding: 0; }
.vv-btn > span:first-child { width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .13); display: grid; place-items: center; font-size: 1.45rem; }
.vv-btn:hover > span:first-child { background: rgba(255, 255, 255, .25); }
.vv-like.on .vv-heart { background: var(--scanner); }
.vv-btn[hidden] { display: none; }
.vv-nav { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; }
.vv-nav button, .vv-close { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.vv-nav button:hover:not(:disabled), .vv-close:hover { background: var(--scanner); }
.vv-nav button:disabled { opacity: .25; cursor: default; }
.vv-close { position: absolute; top: 16px; left: 18px; z-index: 3; font-size: 2rem; }
@media (max-width: 700px) {
  .vid-viewer { gap: 0; }
  .vv-stage { width: 100vw; height: 100vh; height: 100dvh; max-width: none; aspect-ratio: auto; border-radius: 0; }
  .vv-info { padding: calc(14px + env(safe-area-inset-top)) 16px 34px 74px; }
  .vv-close { top: calc(12px + env(safe-area-inset-top)); left: 12px; width: 44px; height: 44px; }
  .vv-side { position: absolute; right: 10px; bottom: 96px; margin: 0; }
  .vv-nav { display: none; }
}

.vid-dialog { width: min(520px, calc(100% - 2rem)); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem 1.1rem; }
.vid-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.vid-form { display: grid; gap: .8rem; }
.vid-form label { display: grid; gap: .3rem; font-weight: 600; }
.vid-form textarea, .vid-form input[type=url] { width: 100%; }
.vid-form-head { display: flex; justify-content: space-between; align-items: center; }
.vid-form-head h3 { margin: 0; font-size: 1.5rem; }
.vid-x { background: none; border: 0; color: var(--chrome); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.vid-tabs { display: flex; padding: 3px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; }
.vid-tabs button { flex: 1; border: 0; background: none; color: var(--chrome); padding: .45rem .6rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.vid-tabs button.on { background: var(--scanner); color: #fff; }
.vid-drop { border: 2px dashed var(--line); border-radius: 12px; padding: .9rem; text-align: center; cursor: pointer; font-weight: 400 !important; color: var(--chrome); }
.vid-drop input { margin: 0 auto .3rem; max-width: 100%; }
.vid-preview { display: block; max-height: 320px; max-width: 100%; margin: .2rem auto 0; border-radius: 10px; background: #000; }
.vid-msg { margin: 0; color: var(--chrome); }
.vid-msg.bad { color: #ff8080; }
.feed-video-msg { margin: .5rem 0 0; color: var(--chrome); font-size: .95rem; }
.feed-video-msg.bad { color: #ff8080; }
.feed-compose .vid-progress, form[data-video-form] .vid-progress { margin-top: .4rem; }
.feed-video { position: relative; margin: .6rem 0 .2rem; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.feed-video.portrait { margin-left: auto; margin-right: auto; }
.feed-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.vid-progress { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.vid-progress span { display: block; height: 100%; width: 0; background: var(--scanner); transition: width .2s; }
.vid-form [hidden] { display: none !important; }
.vid-admin-form { max-width: 560px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem; margin-bottom: 1rem; }
.vid-admin-form [data-vid-cancel] { display: none; }
.vids-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.vids-menu { position: relative; }
.vids-dots { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: inline-flex; align-items: center; justify-content: center; gap: 4px; cursor: pointer; padding: 0; }
.vids-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--chrome); }
.vids-dots:hover, .vids-dots[aria-expanded="true"] { background: var(--panel-2); border-color: var(--scanner); }
.vids-dots:hover span, .vids-dots[aria-expanded="true"] span { background: #fff; }
.vids-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--scanner); border-radius: var(--r-card); box-shadow: 0 10px 24px rgba(0, 0, 0, .5); padding: .3rem; }
.vids-pop[hidden] { display: none; }
.vids-pop button { display: flex; align-items: center; gap: .55rem; width: 100%; background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; text-align: left; padding: .6rem .75rem; border-radius: 8px; cursor: pointer; }
.vids-pop button:hover, .vids-pop button:focus-visible { background: var(--panel-2); }
.vids-pop button span { width: 24px; height: 24px; border-radius: 50%; background: var(--scanner); color: #fff; display: inline-grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.vids-head { margin-bottom: .6rem; }
.vids-head h2 { margin: 0; }

/* Shipping quotes in the cart */
.quote-note { border: 1px solid var(--line); border-left: 3px solid var(--amber, #ffb21e); background: var(--panel); border-radius: var(--r-card); padding: .8rem 1rem; margin: 1rem 0; }
.quote-note p { margin: 0 0 .4rem; }
.quote-note p:last-child { margin: 0; }
.quote-note.ok { border-left-color: #3ccf7a; }
.quote-note.wait { border-left-color: var(--scanner); }
.quote-form { max-width: 520px; margin-bottom: 1rem; }
.tag.warn { background: rgba(255, 178, 30, .15); color: #ffb21e; border: 1px solid rgba(255, 178, 30, .5); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
@keyframes quote-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 42, 42, .0); background: var(--scanner); } 50% { box-shadow: 0 0 0 6px rgba(255, 42, 42, .35); background: #ff5a3c; } }
.btn.flash { animation: quote-flash 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn.flash { animation: none; } }
.quote-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1rem; align-items: start; }
@media (max-width: 860px) { .quote-cols { grid-template-columns: 1fr; } }
.quote-part { border: 1px solid var(--line); border-radius: var(--r-card); padding: .7rem 1rem; margin: 0 0 .9rem; }
.quote-part.need { border-color: var(--scanner); }
.quote-part legend { font-weight: 700; padding: 0 .3rem; }
.quote-part ul { margin: .2rem 0 .4rem; padding-left: 1.2rem; }
.quote-inputs { display: grid; grid-template-columns: 160px 1fr; gap: .7rem; }
.quote-inputs label { display: grid; gap: .25rem; font-size: .9rem; }
@media (max-width: 560px) { .quote-inputs { grid-template-columns: 1fr; } }
.quote-alert { border-color: var(--scanner); }
.summary .quote-form { justify-self: stretch; max-width: none; }
.summary .quote-form .btn { justify-self: end; }
.summary .quote-note { margin: 0; }
.import-note { font-size: .78rem; color: var(--muted); margin: .6rem 0 0; line-height: 1.4; }
.import-note.box { font-size: .82rem; color: var(--text); border: 1px solid var(--line); border-left: 3px solid var(--amber, #ffb21e); background: var(--panel); border-radius: var(--r-card); padding: .7rem .9rem; margin: 0; }
.cur { font-size: .62em; font-weight: 600; letter-spacing: .03em; opacity: .8; vertical-align: .08em; margin-left: .1em; }
.ship-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.ship-rules .panel h2 { margin-top: 0; font-size: 1.3rem; }
@media (max-width: 760px) { .ship-rules { grid-template-columns: 1fr; } }
.old-rates { border-left: 3px solid var(--amber, #ffb21e); margin: 1rem 0; }
.production { margin: .3rem 0 .6rem; }
.product-media { display: grid; gap: .6rem; align-content: start; min-width: 0; }
.product-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.product-thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel-2); cursor: pointer; }
.product-thumbs button.on, .product-thumbs button:hover { border-color: var(--scanner); }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Instructional YouTube video under the product photos: a cover picture with a play button until it is clicked, so
   nothing loads from YouTube unless the customer chooses to watch. */
.product-video { margin-top: .6rem; min-width: 0; }
.product-video-title { font-size: 1rem; margin: 0 0 .45rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #aaa); }
.product-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.product-video-frame iframe, .product-video-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.product-video-play { padding: 0; margin: 0; background: #000; cursor: pointer; display: block; }
.product-video-play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s; }
.product-video-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); line-height: 0; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); transition: transform .15s; }
.product-video-play:hover img, .product-video-play:focus-visible img { opacity: 1; }
.product-video-play:hover .product-video-btn, .product-video-play:focus-visible .product-video-btn { transform: translate(-50%, -50%) scale(1.1); }
.product-video-play:focus-visible { outline: 3px solid var(--scanner); outline-offset: -3px; }
.product-video-link { margin: .35rem 0 0; font-size: .85rem; }
.photo-zoom { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: 1rem; overscroll-behavior: contain; }
/* sized to the screen itself (a percentage of the box is ignored for height), so a big photo is never cut off or pushed to a corner */
.photo-zoom img { display: block; width: auto; height: auto; max-width: calc(100vw - 2rem); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); object-fit: contain; border-radius: 6px; margin: auto; }
.photo-zoom-close { position: absolute; top: .6rem; right: .6rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.photo-zoom-close:hover, .photo-zoom-close:focus-visible { background: var(--scanner); border-color: var(--scanner); }
html.zoom-open { overflow: hidden; }
.more-photos { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.more-photo { display: grid; gap: .3rem; justify-items: center; font-weight: 400; }
.more-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.name-pop { min-width: 11rem; }
.name-pop .pop-head { margin: 0; padding: .45rem .75rem .35rem; font-weight: 700; font-size: .85rem; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.name-pop button.danger { color: #ff7a7a; }
.hub-msg .who[role="button"] { cursor: context-menu; border-radius: 4px; }
.hub-msg .who[role="button"]:hover, .hub-msg .who[role="button"]:focus-visible { text-decoration: underline; outline-offset: 2px; }
@media (any-hover: none) { .hub-msg .who[role="button"] { cursor: pointer; } }
.cart-actions { display: flex; gap: .7rem; justify-content: flex-end; flex-wrap: wrap; justify-self: end; }
.cart-actions form { margin: 0; }
.btn.danger-outline { color: #ff7a7a; border-color: rgba(255, 90, 90, .6); }
.btn.danger-outline:hover { background: rgba(255, 60, 60, .12); color: #fff; }
/* Declined products list in admin */
.declined-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.declined-list li { margin: .35rem 0; }
.declined-list form.inline { margin-left: .8rem; vertical-align: middle; }
/* Product options on the product page */
.price .from { font-size: .6em; font-weight: 400; color: var(--muted, #aaa); }
.opts { display: grid; gap: .8rem; margin: .4rem 0 1rem; }
.opt-group { border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: .6rem .9rem .7rem; margin: 0; }
.opt-group legend { font-weight: 700; padding: 0 .3rem; }
.opt-group .req { font-weight: 400; font-size: .9em; opacity: .75; }
.opt { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; cursor: pointer; }
.opt input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #e1251b; }
.opt-price { margin-left: auto; opacity: .8; white-space: nowrap; }
.cart-opts { display: block; font-size: .92em; opacity: .85; }
/* Options editor (admin and supplier product forms) */
.opt-editor .og { border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: .8rem 1rem; margin: .8rem 0; display: grid; gap: .6rem; background: rgba(255,255,255,.02); }
.opt-editor .og-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.opt-editor .ov-list { display: grid; gap: .45rem; }
.opt-editor .ov { display: grid; grid-template-columns: minmax(6rem, 1fr) auto 7.5rem auto; gap: .5rem; align-items: center; }
.opt-editor .ov label { margin: 0; }
.opt-editor .ov-price { display: flex; align-items: center; gap: .25rem; }
.opt-editor .ov-cur { opacity: .7; }
.opt-editor .og-adds { display: flex; gap: .6rem; flex-wrap: wrap; }
.opt-editor .og > .btn { justify-self: start; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { .opt-editor .ov { grid-template-columns: 1fr 7rem auto; } .opt-editor .ov-label { grid-column: 1 / -1; } }
.opt-editor .ov-mode select { width: auto; }
/* Add-on descriptions */
.opt .opt-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.opt .opt-desc { font-size: .9em; opacity: .75; line-height: 1.35; }
.opt:has(.opt-desc) { align-items: flex-start; }
.opt:has(.opt-desc) input { margin-top: .2rem; }
.opt-editor .ov-desc { grid-column: 1 / -1; margin: -.15rem 0 .35rem; }
.opt-editor .ov-desc textarea { width: 100%; min-height: 2.6rem; font-size: .95rem; }

/* Cart lines: photo, details and a remove button; cards on phones */
.cart-table .c-item { display: flex; gap: .85rem; align-items: flex-start; min-width: 14rem; }
.cart-table .c-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--panel2, #1a1a1d); border: 1px solid var(--line); }
.cart-table .c-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-table .c-info { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.cart-table .c-name { font-weight: 700; line-height: 1.25; }
.cart-table .c-info .hint { font-size: .9em; }
.cart-table .c-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.cart-table .c-each { display: none; }
.cart-table .c-price, .cart-table .c-total { white-space: nowrap; }
.cart-table .c-qty form { flex-wrap: nowrap; align-items: center; }
.cart-table .c-del { width: 1%; text-align: right; }
.c-remove { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 1px solid transparent; color: var(--muted); padding: .45rem; border-radius: 8px; cursor: pointer; font: inherit; }
.c-remove:hover, .c-remove:focus-visible { color: #ff6b6b; border-color: rgba(255, 90, 90, .5); background: rgba(255, 60, 60, .08); }
.c-remove-text { display: none; }

@media (max-width: 700px) {
  .cart-wrap { border: 0; overflow: visible; }
  .cart-table, .cart-table tbody { display: block; }
  .cart-table thead { display: none; }
  .cart-table tr.cart-line {
    display: grid; grid-template-columns: 1fr auto; grid-template-areas: "item del" "price price" "qty total";
    gap: .35rem 0; align-items: center; padding: .9rem; margin-bottom: .8rem;
    border: 1px solid var(--line); border-radius: var(--r-table, 12px); background: rgba(255,255,255,.02);
  }
  .cart-table tr.cart-line td { display: block; padding: 0; border: 0; }
  .cart-table tr.cart-line td.c-item { grid-area: item; min-width: 0; display: flex; }
  .cart-table .c-del { grid-area: del; align-self: start; width: auto; margin: -.35rem -.35rem 0 .5rem; }
  .cart-table .c-price { grid-area: price; padding-left: calc(64px + .85rem) !important; color: var(--muted); font-size: .95rem; }
  .cart-table .c-each { display: inline; }
  .cart-table .c-qty { grid-area: qty; margin-top: .45rem; padding-top: .7rem !important; border-top: 1px solid var(--line) !important; }
  .cart-table .c-total { grid-area: total; text-align: right; font-weight: 700; font-size: 1.1rem; margin-top: .45rem; padding-top: .7rem !important; border-top: 1px solid var(--line) !important; align-self: stretch; display: flex !important; align-items: center; justify-content: flex-end; }
  .cart-table .c-qty form { gap: .5rem; }
  .cart-table .c-qty input[type=number] { width: 4.5rem; }
  .cart-table .c-remove { color: #ff7a7a; border-color: rgba(255, 90, 90, .35); background: rgba(255, 60, 60, .06); padding: .5rem; }
}

/* On/off switch (admin) */
.feat-switch { margin: 2rem 0; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-table, 12px); }
.feat-switch h2 { margin-top: 0; }
.switch { display: flex; align-items: flex-start; gap: .9rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { flex: 0 0 52px; width: 52px; height: 30px; border-radius: 99px; background: #555b66; position: relative; transition: background .15s; margin-top: .1rem; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .15s; }
.switch input:checked + .switch-track { background: #e1251b; }
.switch input:checked + .switch-track .switch-knob { transform: translateX(22px); }
.switch input:focus-visible + .switch-track { outline: 2px solid #e1251b; outline-offset: 2px; }
.switch-text { display: flex; flex-direction: column; gap: .2rem; }
.switch-text .hint { font-weight: 400; margin: 0; }
.feat-switch form { margin: 0; }
.feat-switch form + p.hint { margin: .9rem 0 0; }
.feat-switch form.feat-bullets { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.feat-bullets label { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin: 0 0 .35rem; }
.feat-bullets select { width: auto; min-width: 9rem; margin: 0; }
.feat-bullets .hint { display: block; }
.hero-more .more-photo img { width: 176px; height: 99px; object-fit: cover; }

/* Vendor Partner popup */
.terms-dialog { width: min(720px, calc(100vw - 32px)); max-height: min(88vh, 900px); padding: 0; display: none; flex-direction: column; overflow: hidden; }
.terms-dialog[open] { display: flex; }
.terms-body { overflow-y: auto; padding: 1.4rem 1.6rem .6rem; flex: 1 1 auto; overscroll-behavior: contain; }
.terms-body:focus { outline: none; }
.terms-body h2 { margin-top: 0; }
.terms-body h3 { margin: 1.6rem 0 .5rem; }
.terms-body h4 { margin: 1rem 0 .3rem; color: #e1251b; }
.terms-body ul { padding-left: 1.2rem; }
.terms-body li { margin: .35rem 0; }
.terms-tag { font-weight: 700; font-size: 1.1rem; opacity: .85; }
.terms-sign { margin-top: 1.6rem; text-align: center; }
.terms-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.6rem 1.1rem; border-top: 1px solid var(--line); background: inherit; }
.terms-foot .hint { margin: 0; }
.terms-btns { display: flex; gap: .6rem; margin-left: auto; }
.terms-btns .btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 560px) { .terms-body { padding: 1.1rem 1.1rem .5rem; } .terms-foot { padding: .8rem 1.1rem 1rem; } .terms-btns { width: 100%; } .terms-btns .btn { flex: 1; } }

/* Paid in steps */
.steps-note { margin: .6rem 0 1rem; padding: .7rem .9rem; border: 1px solid rgba(225, 37, 27, .45); border-radius: 10px; background: rgba(225, 37, 27, .07); line-height: 1.45; }
.steps-box { margin-top: 1rem; }
.steps-box h2 { margin-bottom: .3rem; }
.steps-list { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .45rem; counter-reset: st; }
.steps-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 10px; }
.steps-list li.now, .steps-list li.requested { border-color: rgba(225, 37, 27, .7); background: rgba(225, 37, 27, .07); }
.steps-list li.paid { opacity: .85; }
.steps-list li.waiting, .steps-list li.ship { opacity: .75; }
.steps-name { display: flex; flex-direction: column; gap: .1rem; }
.steps-name .hint { font-size: .88em; }
.steps-amt { white-space: nowrap; font-weight: 700; }
.steps-list.small li { padding: .45rem .7rem; }
.pay-due { padding: 1.1rem 1.2rem; border: 1px solid rgba(225, 37, 27, .6); border-radius: 12px; background: rgba(225, 37, 27, .06); margin: 1rem 0 1.5rem; }
.pay-due .pay-amt { font-size: 2rem; font-weight: 700; margin: .2rem 0 .8rem; }
.plan-panel { margin: .8rem 0 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; }
.plan-panel h3 { margin: 0 0 .3rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.plan-panel form { margin: .5rem 0; }
.plan-ship { align-items: end; }
.plans-section { margin-bottom: 2rem; }
.plan-order { margin: 1rem 0; }
.ps-editor .ps-row { display: grid; grid-template-columns: 1.6rem minmax(8rem, 1fr) 9rem auto; gap: .5rem; align-items: center; margin: .4rem 0; }
.ps-editor .ps-row label { margin: 0; }
.ps-editor .ps-amt { display: flex; align-items: center; gap: .3rem; }
.ps-editor .ps-amt input:disabled { opacity: .7; font-style: italic; }
.ps-btns { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.ps-sum.bad { color: #ff7a7a; font-weight: 700; }
.ps-editor .ps-full { align-items: flex-start; margin: .2rem 0 1rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 10px; }
.ps-editor .ps-full input { margin-top: .25rem; }
.ps-editor .ps-title { margin: .4rem 0 .2rem; font-size: 1rem; }
.ps-editor [hidden] { display: none !important; }

/* Admin test orders */
.admin-test { margin-top: 1.6rem; padding: .9rem 1rem; border: 2px dashed #ffb21e; border-radius: 10px; background: rgba(255, 178, 30, .06); display: grid; gap: .6rem; }
.admin-test p { margin: 0; }
.admin-test .btn { justify-self: start; }
.tag.test { background: #ffb21e; color: #111; border: 1px solid #ffb21e; font-weight: 700; }

/* Price in another currency (admin product form) */
.fx-row { display: flex; gap: .5rem; }
.fx-row input { flex: 1 1 auto; min-width: 0; }
.fx-row select { flex: 0 1 13rem; }
.fx-out { margin-top: .3rem; }
.fx-note { font-size: .9rem; opacity: .8; margin-top: -.4rem; }

/* Order progress line (partials/order-progress.php): across on wide screens, down on phones */
.progress-line { list-style: none; padding: 0; margin: .8rem 0 1.4rem; display: flex; align-items: flex-start; }
.progress-line li { flex: 1 1 0; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; padding: 0 .2rem; }
.progress-line li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 4px; background: var(--line); z-index: 0; }
.progress-line li:first-child::before { display: none; }
.progress-line li.done::before, .progress-line li.current::before { background: var(--scanner, #e1251b); }
.progress-line li.current::before { background: linear-gradient(90deg, var(--scanner, #e1251b), var(--line)); }
.pl-dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); background: var(--panel, #111); display: flex; align-items: center; justify-content: center; font-size: .9rem; font-weight: 700; color: #fff; }
.progress-line li.done .pl-dot { background: var(--scanner, #e1251b); border-color: var(--scanner, #e1251b); box-shadow: 0 0 10px rgba(225, 37, 27, .55); }
.progress-line li.implied .pl-dot { opacity: .75; }
.progress-line li.current .pl-dot { border-color: var(--scanner, #e1251b); animation: pl-pulse 1.6s ease-in-out infinite; }
@keyframes pl-pulse { 50% { box-shadow: 0 0 0 6px rgba(225, 37, 27, .18); } }
@media (prefers-reduced-motion: reduce) { .progress-line li.current .pl-dot { animation: none; } }
.pl-text { display: flex; flex-direction: column; align-items: center; gap: .15rem; margin-top: .45rem; }
.pl-label { font-weight: 700; font-size: .92rem; line-height: 1.2; }
.progress-line li.todo .pl-label { color: var(--muted); font-weight: 600; }
.pl-date { font-size: .8rem; color: var(--muted); }
.pl-tick { margin: .2rem 0 0; }
.pl-tick .btn { padding: .3rem .6rem; font-size: .8rem; }
.pl-auto { font-size: .75rem; color: var(--muted); font-style: italic; }
.progress-line.compact .pl-label { font-size: .8rem; }
.progress-line.compact .pl-dot { width: 24px; height: 24px; font-size: .75rem; }
.progress-line.compact li::before { top: 10px; }
.pl-box { margin: .6rem 0 .9rem; }
.pl-box summary { cursor: pointer; }
.pl-row td { padding-top: 0; }
@media (max-width: 760px) {
  .progress-line { flex-direction: column; gap: 0; }
  .progress-line li { flex-direction: row; align-items: flex-start; text-align: left; gap: .75rem; padding: 0 0 1rem; width: 100%; }
  .progress-line li::before { display: none; }
  .progress-line li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 0; width: 4px; background: var(--line); }
  .progress-line li.done:not(:last-child)::after { background: var(--scanner, #e1251b); }
  .progress-line.compact li:not(:last-child)::after { left: 10px; top: 24px; }
  .pl-text { align-items: flex-start; margin-top: .2rem; }
  .pl-text { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: .6rem; }
  .pl-tick { margin: 0; }
}
.pl-tick .linklike { font-size: .8rem; }
/* My account: orders list */
.orders-table .orders-open { text-align: right; white-space: nowrap; }
@media (max-width: 700px) {
  .orders-table thead { display: none; }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; }
  .orders-table tr { padding: .8rem .9rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; }
  .orders-table td { padding: 0; border: 0; }
  .orders-table td:nth-child(4), .orders-table td:nth-child(5) { grid-column: 1 / -1; }
  .orders-table .orders-open { grid-column: 1 / -1; text-align: left; margin-top: .3rem; }
  .orders-table .orders-open .btn { width: 100%; text-align: center; }
}
.item-acts { white-space: nowrap; } .item-acts form { display: inline; margin-left: .5rem; }
.fx-fee { margin-top: .5rem; } .fx-fee input { max-width: 14rem; } .fx-fee-form { align-items: end; flex-wrap: wrap; }

/* Supplier orders as cards (supplier/_parcels.php) */
.orders-head { margin-top: 2rem; }
.sorders { display: grid; gap: 1rem; }
.sorder { border: 1px solid var(--line); border-radius: var(--r-card, 12px); padding: 1rem 1.1rem .4rem; background: var(--panel, transparent); }
.sorder.to-send { border-left: 4px solid var(--scanner, #e1251b); }
.sorder-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .7rem; }
.sorder-head h3 { margin: 0; }
.sorder-head .tag { margin-left: auto; }
.sorder-grid { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr; gap: 1rem 1.4rem; }
.sorder-grid h4 { margin: 0 0 .3rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sorder-grid p, .sorder-items { margin: 0; }
.sorder-items { list-style: none; padding: 0; }
.sorder-items li { margin: .15rem 0; }
.sorder-addr { line-height: 1.45; }
.sorder-ship { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .9rem 0 .2rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.sorder-ship p { margin: 0; }
.sorder .progress-line { margin-top: 1rem; }
@media (max-width: 700px) {
  .sorder-grid { grid-template-columns: 1fr; gap: .8rem; }
  .sorder-ship .btn { width: 100%; text-align: center; }
}
/* Admin orders: Current / Completed tabs */
.order-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: .4rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.order-tabs a { padding: .55rem .9rem; border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; text-decoration: none; color: var(--muted); font-weight: 600; margin-bottom: -1px; }
.order-tabs a.on { color: var(--strong, inherit); border-color: var(--line); background: var(--panel, transparent); border-bottom: 2px solid var(--scanner, #e1251b); }

/* Details the customer fills in */
.pf-ask { flex: 1 0 100%; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: .6rem .9rem .8rem; margin: 0; display: grid; gap: .55rem; }
.pf-ask legend { font-weight: 700; padding: 0 .3rem; }
.pf-ask label { display: grid; gap: .25rem; margin: 0; }
.pf-ask .req { font-weight: 400; opacity: .75; font-size: .9em; }
.pf-ask .pf-help { margin: -.3rem 0 0; font-size: .85rem; }
.pf-editor .pf-row { display: grid; grid-template-columns: minmax(8rem, 1fr) 7.5rem auto auto; gap: .45rem .6rem; align-items: center; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.pf-editor .pf-row label { margin: 0; }
.pf-editor .pf-hint { grid-column: 1 / 3; }
.pf-editor .pf-max { grid-column: 3 / 5; }
.pf-editor .pf-max input { width: 7rem; }
@media (max-width: 640px) { .pf-editor .pf-row { grid-template-columns: 1fr 1fr; } .pf-editor .pf-label, .pf-editor .pf-hint { grid-column: 1 / -1; } .pf-editor .pf-max { grid-column: auto; } }
.pf-ask .pf-name .hint { font-size: .9em; }
.pf-editor .pf-max { display: flex; align-items: center; gap: .4rem; }
.pf-editor .pf-max-l { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.pf-editor .pf-max input { width: 4.5rem; }
.contact-box { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line); } .contact-box h2 { margin-top: 0; }

/* Social media links: top right of the homepage hero */
.hero { position: relative; }
.hero-social { position: absolute; top: 1rem; right: 1rem; z-index: 3; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; max-width: 60%; }
.hero-social a { display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.hero-social a.has-icon { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: rgba(0,0,0,.35); box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.hero-social a.has-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-social a.no-icon { height: 36px; padding: 0 .85rem; border-radius: 99px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 700; font-size: .85rem; }
.hero-social a:hover, .hero-social a:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--scanner, #e1251b), 0 0 12px rgba(225, 37, 27, .6); }
@media (max-width: 640px) { .hero-social { top: .6rem; right: .6rem; gap: .35rem; } .hero-social a.has-icon { width: 34px; height: 34px; } .hero-social a.no-icon { height: 30px; padding: 0 .6rem; font-size: .78rem; } }
/* admin form */
.social-row { display: grid; grid-template-columns: 44px 10rem minmax(12rem, 1fr) 11rem minmax(10rem, 13rem); gap: .5rem .7rem; align-items: end; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.social-row label { margin: 0; }
.social-prev { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--panel2, #222); border: 1px solid var(--line); font-weight: 700; }
.social-prev img { width: 100%; height: 100%; object-fit: cover; }
.social-acts { grid-column: 2 / -1; display: flex; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 900px) { .social-row { grid-template-columns: 44px 1fr; } .social-row > label, .social-acts { grid-column: 2 / -1; } }
.hero-social a.builtin, .social-prev.builtin { box-shadow: 0 0 0 2px rgba(255,255,255,.3); }
.hero-social a.builtin img { width: 55%; height: 55%; object-fit: contain; }
.social-prev.builtin img { width: 55%; height: 55%; object-fit: contain; }
@media (max-width: 640px) { .hero-social a.builtin img { width: 52%; height: 52%; } }

/* ===== Community classifieds (Marketplace-style) ===== */
.cl-btn img { vertical-align: -.3em; }
.wrap.cl-wrap { width: min(1440px, 100% - 2.5rem); }
.cl-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.cl-side { position: sticky; top: 5.5rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; padding: 1rem 1rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel, #111); }
.cl-side-head h1 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .8rem; font-size: 1.7rem; }
.cl-search input { width: 100%; border-radius: 99px; padding: .6rem 1rem; }
.cl-nav { display: grid; gap: .2rem; margin: .9rem 0; }
.cl-nav a, .cl-cats a { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: 10px; text-decoration: none; color: inherit; font-weight: 600; }
.cl-nav a:hover, .cl-cats a:hover { background: rgba(255,255,255,.06); }
.cl-nav a.on, .cl-cats a.on { background: rgba(225, 37, 27, .14); color: #fff; }
.cl-ico { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; }
.cl-nav a.on .cl-ico { background: var(--scanner, #e1251b); }
.cl-new { display: block; width: 100%; text-align: center; margin: .4rem 0 1rem; }
.cl-filters { border-top: 1px solid var(--line); padding-top: .8rem; }
.cl-filters summary { cursor: pointer; font-weight: 700; }
.cl-filter-form { display: grid; gap: .55rem; margin-top: .6rem; }
.cl-filter-form label { margin: 0; }
.cl-price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: .4rem; align-items: end; }
.cl-price-range span { padding-bottom: .6rem; color: var(--muted); }
.cl-side-sub { font-size: 1.05rem; margin: 1.1rem 0 .3rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.cl-cats { display: grid; gap: .1rem; }
.cl-cats a { font-weight: 500; padding: .45rem .6rem; }
.cl-main-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.cl-main-head h2 { margin: 0; }
.cl-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem .8rem; }
.cl-grid.small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cl-card a { display: flex; flex-direction: column; gap: .15rem; text-decoration: none; color: inherit; }
.cl-pic { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--panel2, #1b1b1e); margin-bottom: .35rem; }
.cl-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.cl-card a:hover .cl-pic img { transform: scale(1.03); }
.cl-price { font-weight: 800; font-size: 1.1rem; color: var(--strong, #fff); }
.cl-price .cur { font-weight: 600; }
.cl-title { line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-place { font-size: .85rem; color: var(--muted); }
.cl-card.sold .cl-pic img { opacity: .5; }
.cl-state { position: absolute; left: .5rem; top: .5rem; padding: .2rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 700; background: rgba(0,0,0,.75); color: #fff; }
.cl-state.cl-waiting-for-approval { background: #ffb21e; color: #111; }
.cl-state.cl-not-approved { background: #c0261d; }
.cl-state.cl-sold { background: #fff; color: #111; }
.cl-state.big { font-size: 1.1rem; padding: .35rem .9rem; left: 1rem; top: 1rem; }
.cl-more { text-align: center; margin: 1.4rem 0; }
.cl-obo { font-size: .7em; font-weight: 600; color: var(--muted); }
/* listing page */
.cl-item { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 1.6rem; align-items: start; margin-bottom: 2rem; }
.cl-media { position: sticky; top: 5.5rem; }
.cl-media-main { position: relative; background: #000; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; }
.cl-media-main img { width: 100%; height: 100%; object-fit: contain; }
.cl-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .3rem; }
.cl-thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; }
.cl-thumbs button.on { border-color: var(--scanner, #e1251b); }
.cl-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cl-info { border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.3rem; background: var(--panel, transparent); }
.cl-info h1 { margin: 0 0 .3rem; font-size: 1.7rem; line-height: 1.15; }
.cl-info h2 { font-size: 1.1rem; margin: 1.3rem 0 .5rem; }
.cl-item-price { font-size: 1.5rem; font-weight: 800; margin: 0 0 .2rem; }
.cl-owner { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0; }
.cl-owner .hint { flex: 1 0 100%; margin: 0; }
.cl-msg { display: grid; gap: .5rem; margin: 1.1rem 0 .4rem; padding: .9rem; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.cl-msg .btn { justify-self: start; }
.cl-msg .hint { margin: 0; }
.cl-details { display: grid; grid-template-columns: 7rem 1fr; gap: .35rem .8rem; margin: 0; }
.cl-details dt { color: var(--muted); }
.cl-details dd { margin: 0; }
.cl-desc { margin-top: .8rem; line-height: 1.55; }
.cl-seller { display: flex; gap: .8rem; align-items: center; }
.cl-seller .av { width: 48px; height: 48px; flex: 0 0 48px; }
.cl-seller div { display: flex; flex-direction: column; gap: .1rem; }
.cl-report { margin-top: 1rem; }
.quote-note.bad { border-color: rgba(255, 90, 90, .6); }
.wrap.cl-wrap.narrowish { width: min(860px, 100% - 2.5rem); }
/* admin */
.admin-cl { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.admin-cl h2 { margin: 0 0 .3rem; font-size: 1.2rem; }
.admin-cl-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; align-content: start; }
.admin-cl-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.admin-cl-desc { max-height: 9rem; overflow: auto; font-size: .95rem; }
.admin-cl-acts { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
.admin-cl-reject { display: inline-flex; gap: .4rem; }
.admin-cl-reject input { width: 16rem; }
@media (max-width: 980px) {
  .cl-layout { grid-template-columns: 1fr; }
  .cl-side { position: static; max-height: none; }
  .cl-cats { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; }
  .cl-cats a { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 99px; padding: .35rem .8rem; white-space: nowrap; }
  .cl-item { grid-template-columns: 1fr; }
  .cl-media { position: static; }
  .admin-cl { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .6rem; }
  .cl-side { padding: .8rem; }
  .cl-side-head h1 { font-size: 1.4rem; }
  .cl-nav { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cl-side { border: 0; background: none; padding: 0; }
  .cl-side-head h1 { font-size: 1.35rem; margin-bottom: .5rem; }
  .cl-side-head h1 img { width: 24px; height: 24px; }
  .cl-search input { padding: .5rem .9rem; }
  .cl-nav { display: flex; gap: .4rem; margin: .6rem 0; }
  .cl-nav a { flex: 1 1 0; justify-content: center; padding: .4rem .5rem; border: 1px solid var(--line); border-radius: 99px; font-size: .92rem; white-space: nowrap; gap: .4rem; }
  .cl-nav .cl-ico { width: 24px; height: 24px; flex-basis: 24px; font-size: .8rem; }
  .cl-nav .cl-ico img { width: 15px; height: 15px; }
  .cl-new { padding: .55rem; margin: 0 0 .5rem; }
  .cl-filters { padding-top: .4rem; }
  .cl-side-sub { display: none; }
  .cl-cats { margin-top: .5rem; }
  .cl-cats a { font-size: .9rem; padding: .3rem .75rem; }
  .cl-main-head h2 { font-size: 1.4rem; }
}

/* Admin > Classifieds > Categories */
.cl-cats-admin { margin: 1rem 0 2rem; }
.cl-cat-row { display: grid; grid-template-columns: 92px minmax(170px, 1.3fr) repeat(3, minmax(120px, 1fr)) 70px; gap: .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.cl-cat-row input { width: 100%; }
.cl-cat-head { font: 600 1rem var(--head); color: var(--muted); padding-top: 0; }
.cl-cat-move { display: flex; gap: .3rem; }
.cl-cat-move .btn { padding: .3rem .6rem; min-width: 0; }
.cl-cat-move .btn[disabled] { opacity: .3; }
.cl-cat-count { text-align: center; color: var(--muted); }
.sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cl-cat-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.cl-cat-tools h2 { margin-top: 0; }
@media (max-width: 900px) {
  .cl-cat-head { display: none; }
  .cl-cat-row { grid-template-columns: 1fr 1fr; gap: .5rem .8rem; padding: .9rem 0; }
  .cl-cat-move { grid-column: 1; }
  .cl-cat-count { grid-column: 2; grid-row: 1; text-align: right; align-self: center; }
  .cl-cat-row label:first-of-type { grid-column: 1 / -1; }
  .cl-cat-row .sr-label { position: static; width: auto; height: auto; clip: auto; display: block; font-size: .85rem; color: var(--muted); }
  .cl-cat-count .sr-label { display: inline; font-size: inherit; }
  .cl-cat-tools { grid-template-columns: 1fr; }
}

/* Production time: a number and days / weeks / months */
.prod-time { border: 0; padding: 0; margin: 0 0 .3rem; }
.prod-time legend { font-weight: 600; padding: 0; margin-bottom: .35rem; }
.prod-time-row { display: flex; gap: .6rem; max-width: 22rem; }
.prod-time-row label { margin: 0; }
.prod-time-row label:first-child { flex: 0 0 7rem; }
.prod-time-row label:last-child { flex: 1; }
.prod-time-row input, .prod-time-row select { width: 100%; }

/* Supplier: read-only details on "My details" */
.readonly-field { margin: 0 0 1rem; }
.readonly-field .label { display: block; font-weight: 600; margin-bottom: .35rem; }
.readonly-field p { margin: 0; }
.readonly-field .hint { margin-top: .25rem; }
.head-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.head-actions form { margin: 0; }


/* cart: an account is needed to check out */
.checkout-login { border: 1px solid var(--line); border-left: 3px solid var(--red, #e61e1e); background: var(--panel); border-radius: var(--r-card); padding: .8rem 1rem; margin: 1rem 0; }
.checkout-login p { margin: 0 0 .7rem; }
.checkout-login .cart-actions { margin: 0; }

/* admin: who is logged in, and the Admins list */
.side-who { font-size: .8rem; color: var(--muted, #999); margin: .6rem 0 .2rem; }
.admins-table .row-actions form { display: inline-block; margin: 0 0 .3rem .3rem; }

/* admin: Updates */
.upd-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin: 1rem 0 1.4rem; }
.upd-status > div { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-card); padding: .7rem .9rem; }
.upd-k { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #999); margin-bottom: .2rem; }
.upd-status .bad { color: var(--danger); }
.upd-pending { border: 1px solid var(--line); border-left: 3px solid var(--red, #e61e1e); background: var(--panel); border-radius: var(--r-card); padding: 1rem 1.2rem; margin: 1rem 0 1.6rem; }
.upd-pending h2 { margin-top: 0; }
.upd-notes { white-space: normal; background: rgba(127,127,127,.08); border-radius: 6px; padding: .6rem .8rem; margin: .5rem 0; }
.upd-counts { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; padding: 0; margin: .8rem 0; }
.upd-files ul { list-style: none; padding: 0; max-height: 320px; overflow: auto; }
.upd-files li { padding: .15rem 0; word-break: break-all; }

/* admin: article categories */
.art-cats { display: grid; gap: .5rem; margin: .6rem 0 1rem; max-width: 760px; }
.art-cat-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; border: 1px solid var(--line); border-radius: var(--r-card); padding: .5rem .7rem; background: var(--panel); }
.art-cat-edit { display: flex; align-items: center; gap: .6rem; flex: 1; flex-wrap: wrap; margin: 0; }
.art-cat-edit input[type=text] { flex: 1; min-width: 10rem; }
.art-cat-edit input.order { width: 5rem; }
.art-cat-add { display: flex; align-items: flex-end; gap: .6rem; flex-wrap: wrap; max-width: 760px; margin-bottom: 1.6rem; }
.art-cat-add label { flex: 1; min-width: 14rem; }
.art-cat-edit .hint { min-width: 10rem; }

.art-cat-pick { border: 1px solid var(--line); border-radius: var(--r-card); padding: .6rem .9rem .3rem; }
.art-cat-boxes { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: .3rem 0 .4rem; }
.art-cat-boxes .check { margin: 0; }

/* wholesale price USD | EUR switch */
.ws-price { margin-bottom: .8rem; }
.ws-price > label { display: block; font-weight: 600; margin-bottom: .3rem; }
.ws-row { display: flex; gap: .5rem; align-items: stretch; }
.ws-row input[name="wholesale"] { flex: 1; min-width: 0; }
.ws-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.ws-switch label { margin: 0; display: flex; }
.ws-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ws-switch span { display: flex; align-items: center; padding: 0 .9rem; font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--muted, #999); }
.ws-switch input:checked + span { background: var(--scanner); color: #fff; }
.ws-switch input:focus-visible + span { outline: 2px solid var(--scanner); outline-offset: -3px; }
.ws-price .hint { margin: .35rem 0 0; }
.two:has(> .ws-price) { align-items: start; }
.two:has(> .readonly-field) { align-items: start; }   /* a field beside a read-only note keeps its own height */
.ws-switch span { min-height: 2.6rem; }

/* a type choice with its own photo */
.opt .opt-thumb { width: 2.4rem; height: 2.4rem; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }

.opt-editor .ov-photo { grid-column: 1 / -1; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: -.1rem 0 .45rem; font-size: .9rem; }
.opt-editor .ov-photo img { width: 3rem; height: 3rem; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.opt-editor .ov-file { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0; font-weight: 400; }
.opt-editor .ov-file span { color: var(--muted, #999); }
.opt-editor .ov-photo .check { margin: 0; }

/* Shop and category pages: category boxes down the left, products 4 to a row on the right */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.8rem; align-items: start; margin-bottom: 4rem; }
.shop-side { position: sticky; top: 5.5rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; scrollbar-width: thin; padding-right: .2rem; }
.side-cats, .side-subs { list-style: none; margin: 0; padding: 0; }
.side-cats { display: grid; gap: .6rem; }
.shop-side .cat-tile { min-height: 84px; padding: .7rem .85rem; }
.shop-side .cat-name { font-size: 1.25rem; }
.shop-side .cat-count { font-size: .82rem; }
.shop-side .cat-tile.on { border-color: var(--scanner); box-shadow: 0 0 0 1px var(--scanner) inset; }
.shop-side .side-all:not(.on) { border-left-color: var(--line); }
.side-subs { display: grid; gap: .3rem; margin: .35rem 0 .2rem; }
.side-sub { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem .7rem; margin-left: calc(.8rem + var(--depth, 0) * .8rem);
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); font-size: .95rem; background: var(--panel); }
.side-sub:hover { border-color: var(--scanner); color: var(--strong); }
.side-sub.on { background: var(--scanner); border-color: var(--scanner); color: #fff; }
.side-sub.on .cat-count { color: #fff; }
.shop-count { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1100px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  /* phones and small tablets: the categories become a row to swipe, products 2 to a row */
  .shop-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .shop-side { position: static; max-height: none; overflow: visible; padding: 0; }
  .side-cats { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x proximity; }
  .side-cats > li { flex: 0 0 auto; width: 9.5rem; scroll-snap-align: start; }
  .side-cats > li:has(.side-subs) { width: auto; display: flex; gap: .5rem; }
  .side-cats > li:has(.side-subs) > .cat-tile { width: 9.5rem; flex: none; }
  .side-subs { display: flex; gap: .4rem; margin: 0; }
  .side-subs li { flex: none; }
  .side-sub { margin-left: 0; height: 100%; white-space: nowrap; }
  .shop-side .cat-tile { min-height: 70px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
}
/* narrower cards in the shop grid: the stock label drops under the price instead of squashing */
.shop-grid .card-foot { flex-wrap: wrap; gap: .35rem .6rem; }
.shop-grid .card-foot .tag { white-space: nowrap; }
.shop-grid .card-body h3 { font-size: 1.15rem; }

/* community games */
.games-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 3rem; }
.game-tile { display: grid; gap: .35rem; padding: 1.1rem; border: 1px solid var(--line); border-left: 3px solid var(--scanner); border-radius: var(--r-card); background: var(--panel); text-decoration: none; color: var(--text); }
.game-tile:hover { border-color: var(--scanner); }
.game-tile .game-name { font-family: var(--display, inherit); font-size: 1.6rem; color: var(--strong); }
.game-tile .btn { justify-self: start; margin-top: .4rem; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; margin-bottom: 1rem; }
.game-frame { display: block; width: 100%; aspect-ratio: 28 / 36; max-height: calc(100vh - 9rem); border: 1px solid var(--line); border-radius: 10px; background: #000; }
.game-frame.wide { aspect-ratio: 16 / 10; }
.game-frame-wrap .hint { margin: .5rem 0 0; }
.game-saved { margin: .6rem 0 0; padding: .55rem .8rem; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.game-saved.top { border-color: #ffd23f; color: #ffd23f; font-weight: 700; }
.game-saved.bad { border-color: var(--danger); color: var(--danger); }
.game-side h2 { margin-top: 0; }
.game-modes { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .7rem; }
.game-modes a { font-size: .82rem; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); }
.game-modes a.on { background: var(--scanner); border-color: var(--scanner); color: #fff; }
.game-board { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.game-board li { display: grid; grid-template-columns: 2rem 1.7rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .35rem .6rem; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.game-board li.first { border-color: #ffd23f; }
.game-board li.me { box-shadow: 0 0 0 1px var(--scanner) inset; }
.game-board .rank { font-weight: 700; color: var(--muted); text-align: center; }
.game-board li.first .rank { color: #ffd23f; }
.game-board .av { width: 1.7rem; height: 1.7rem; }
.game-board .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; font-weight: 600; }
.game-board .pts { font-variant-numeric: tabular-nums; font-weight: 700; }
.game-credit { margin-bottom: 3rem; }
@media (max-width: 900px) {
  .game-layout { grid-template-columns: minmax(0, 1fr); }
  .game-frame { max-height: 78vh; }
}

/* Admin: Our Story sections */
.story-edit-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 1rem; }
.story-edit-cols:has(input[type=number]) { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 640px) { .story-edit-cols { grid-template-columns: 1fr; } }

/* Top menu, styled like the Our Story mockup: uppercase spaced lettering on a dark bar with a red glowing edge,
   and a red glow behind the page you are on. The drop-down lists keep normal lettering. */
.site-header { background: linear-gradient(180deg, #15161b 0%, #08090b 100%); box-shadow: 0 6px 22px -10px rgba(255, 42, 42, .75); }
.site-header::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 42, 42, .55) 25%, rgba(255, 42, 42, .55) 75%, transparent); pointer-events: none; }
.nav > a, .nav-item > a:not(.msg-link) { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 1.12em; color: #e4e6ea; }
.nav .sub a { font-family: var(--body); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1rem; }
.nav .sub-sub a { font-size: .95rem; }
@media (min-width: 821px) {
  .site-header .bar { padding-block: 0; }
  .brand { padding-block: .45rem; }
  .nav { gap: 0; align-self: stretch; align-items: stretch; flex-wrap: nowrap; }
  .nav-item { align-items: stretch; }
  .nav > a, .nav-item > a { position: relative; display: flex; align-items: center; padding: 0 .75rem; border-bottom: 0; transition: color .15s, text-shadow .15s; }
  .nav > a::after, .nav-item > a::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 2px; background: var(--scanner); box-shadow: 0 0 10px 1px var(--scanner); opacity: 0; transition: opacity .15s; }
  .nav > a:hover, .nav-item > a:hover { color: #fff; text-shadow: 0 0 10px rgba(255, 42, 42, .5); }
  .nav > a:hover::after, .nav-item > a:hover::after { opacity: .6; }
  .nav > a.on, .nav-item > a.on { color: #fff; text-shadow: 0 0 12px rgba(255, 42, 42, .7); background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(255, 42, 42, .38), rgba(255, 42, 42, .08) 60%, transparent 80%); }
  .nav > a.on::after, .nav-item > a.on::after { opacity: 1; }
  .nav > a.on::before, .nav-item > a.on::before { content: ""; position: absolute; inset: 15% 0 0; border-left: 1px solid rgba(255, 42, 42, .45); border-right: 1px solid rgba(255, 42, 42, .45); -webkit-mask-image: linear-gradient(0deg, #000, transparent); mask-image: linear-gradient(0deg, #000, transparent); pointer-events: none; }
  .nav a.cart-link, .nav a.msg-link { padding: 0 .55rem; }
  .sub { top: 100%; }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .nav > a, .nav-item > a:not(.msg-link) { padding: 0 .45rem; font-size: 1rem; letter-spacing: .04em; }
}
@media (max-width: 820px) {
  .js .nav > a.on, .js .nav-item > a.on { color: #fff; border-left: 3px solid var(--scanner); padding-left: .7rem; background: linear-gradient(90deg, rgba(255, 42, 42, .22), transparent 70%); text-shadow: 0 0 10px rgba(255, 42, 42, .5); }
}
@media (prefers-reduced-motion: reduce) { .nav > a, .nav-item > a, .nav > a::after, .nav-item > a::after { transition: none; } }

/* Home page in the Our Story style: chrome slanted title, red glowing edges, glowing feature boxes and category tiles,
   the big buttons and the tagline band. Scoped to .home-page so category pages keep their own look. */
.home-page .home-hero { border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--scanner) 30%, var(--scanner) 70%, transparent) 1; box-shadow: 0 14px 30px -18px rgba(255, 42, 42, .55); }
.home-title { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; transform: skewX(-8deg); transform-origin: left bottom; font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: .95; letter-spacing: .01em; max-width: 16ch;
  background: linear-gradient(180deg, #fff 0%, #e4e7ec 40%, #8b919b 52%, #d9dde3 72%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.hero.has-image .home-title { text-shadow: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .7)) drop-shadow(0 4px 18px rgba(0, 0, 0, .6)); }
.home-page .home-hero .lede { font-size: 1.15rem; max-width: 44rem; }
.home-page .btn:not(.ghost) { box-shadow: 0 0 16px -2px rgba(255, 42, 42, .6); }
.home-page .btn.ghost { border-color: rgba(255, 42, 42, .55); box-shadow: inset 0 0 10px rgba(255, 42, 42, .12); }
.home-heading { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.6rem, 3vw, 2.2rem); display: inline-block; transform: skewX(-6deg); transform-origin: left bottom; color: #f2f3f5; padding-bottom: .35rem; margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--scanner); box-shadow: 0 8px 12px -10px var(--scanner); }
.home-page .feature { border: 1px solid rgba(255, 42, 42, .55); border-radius: 12px; background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%); box-shadow: 0 0 14px -2px rgba(255, 42, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .06); transition: box-shadow .2s, border-color .2s; }
.home-page .feature:hover { border-color: var(--scanner); box-shadow: 0 0 22px 0 rgba(255, 42, 42, .42), inset 0 1px 0 rgba(255, 255, 255, .08); }
.home-page .feature h3 { font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.02; color: #f2f3f5; }
.home-page .feature .price { color: var(--strong); }
.home-page .feature-img { border: 1px solid rgba(255, 255, 255, .06); }
.home-page .cat-tile { border: 1px solid rgba(255, 42, 42, .55); border-radius: 12px; background: linear-gradient(180deg, #1d1f25, #101115); box-shadow: 0 0 14px -2px rgba(255, 42, 42, .3), inset 0 0 12px rgba(255, 42, 42, .08); transition: transform .15s, box-shadow .15s, border-color .15s; }
.home-page .cat-tile:hover { border-color: var(--scanner); transform: translateY(-2px); box-shadow: 0 0 24px 0 rgba(255, 42, 42, .55), inset 0 0 14px rgba(255, 42, 42, .14); }
.home-page .cat-name { text-transform: uppercase; letter-spacing: .03em; }
.home-page .shop-all { padding-bottom: 0; }
.home-page .story-ctas { margin-top: 2.6rem; text-align: left; }
@media (prefers-reduced-motion: reduce) { .home-page .feature, .home-page .cat-tile { transition: none; } }

/* Shop, category and product pages in the Our Story style. */
.page-head { margin: 2rem 0 1.6rem; }
.page-title { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; transform: skewX(-8deg); transform-origin: left bottom; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: .95; letter-spacing: .01em; margin: 0;
  background: linear-gradient(180deg, #fff 0%, #e4e7ec 40%, #8b919b 52%, #d9dde3 72%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.page-tagline { margin: .5rem 0 0; font-family: var(--head); font-weight: 700; font-style: italic; transform: skewX(-8deg); transform-origin: left bottom; font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: var(--scanner); text-shadow: 0 0 18px rgba(255, 42, 42, .35); }
.shop-page .crumb + .page-title { margin-bottom: .6rem; }
.shop-page .crumb a, .product-page .crumb a { color: var(--chrome); }
.shop-page .lede.small { margin-top: .4rem; }
.shop-page .shop-layout { margin-bottom: 0; }
.shop-page .shop-side .cat-tile { border: 1px solid rgba(255, 42, 42, .45); border-left: 3px solid rgba(255, 42, 42, .45); border-radius: 10px; background: linear-gradient(180deg, #1b1d23, #0f1014); box-shadow: 0 0 10px -3px rgba(255, 42, 42, .3); transition: box-shadow .15s, border-color .15s; }
.shop-page .shop-side .cat-tile:hover { border-color: var(--scanner); box-shadow: 0 0 16px -2px rgba(255, 42, 42, .5); }
.shop-page .shop-side .cat-tile.on { border-color: var(--scanner); border-left-color: var(--scanner); background: radial-gradient(ellipse 90% 120% at 0% 50%, rgba(255, 42, 42, .28), transparent 70%), linear-gradient(180deg, #1f1214, #0f1014); box-shadow: 0 0 20px -2px rgba(255, 42, 42, .6), inset 0 0 0 1px var(--scanner); }
.shop-page .shop-side .cat-name { text-transform: uppercase; letter-spacing: .03em; font-size: 1.15rem; }
.shop-page .side-sub.on { color: #fff; text-shadow: 0 0 10px rgba(255, 42, 42, .6); }
.shop-page .card { border: 1px solid rgba(255, 42, 42, .45); border-radius: 12px; background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%); box-shadow: 0 0 12px -3px rgba(255, 42, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.shop-page .card:hover { border-color: var(--scanner); transform: translateY(-3px); box-shadow: 0 0 22px 0 rgba(255, 42, 42, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
.shop-page .card-img { position: relative; border-bottom: 1px solid rgba(255, 42, 42, .35); }
.shop-page .card-img::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(0deg, rgba(8, 9, 11, .55), transparent); pointer-events: none; }
.shop-page .card-img img { transition: transform .3s; }
.shop-page .card:hover .card-img img { transform: scale(1.04); }
.shop-page .shop-grid .card-body h3 { text-transform: uppercase; letter-spacing: .03em; font-weight: 700; line-height: 1.05; color: #f2f3f5; }
.shop-page .card .price { color: var(--strong); }
.shop-page .story-ctas, .product-page .story-ctas { margin-top: 3rem; }
.product-page .crumb { margin-top: 1.8rem; }
.product-title { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: .4rem; }
.product-page .product-img { border: 1px solid rgba(255, 42, 42, .5); border-radius: 12px; box-shadow: 0 0 22px -4px rgba(255, 42, 42, .4); }
.product-page .product-thumbs button.on { box-shadow: 0 0 0 2px var(--scanner), 0 0 12px rgba(255, 42, 42, .55); }
.product-page .price.big { color: var(--strong); text-shadow: 0 0 16px rgba(255, 42, 42, .35); }
.product-page .buy .btn { box-shadow: 0 0 16px -2px rgba(255, 42, 42, .6); }
.product-page .opt-group { border-color: rgba(255, 42, 42, .4); border-radius: 10px; background: linear-gradient(180deg, #17191e, #0f1014); }
.product-page .guide h2 { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .03em; display: inline-block; transform: skewX(-6deg); transform-origin: left bottom; padding-bottom: .3rem; border-bottom: 2px solid var(--scanner); box-shadow: 0 8px 12px -10px var(--scanner); }
.product-page .guide { padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .shop-page .card, .shop-page .card-img img, .shop-page .shop-side .cat-tile { transition: none; } }

/* Community pages in the Our Story style: chrome slanted titles, slanted headings with a red underline, and dark
   panels with glowing red edges (topics, feed posts, garage builds, listings, games, chat boxes). Scoped to .hub. */
body:has(.hub) main { background: radial-gradient(1200px 500px at 85% 0%, rgba(255, 42, 42, .08), transparent 60%), radial-gradient(900px 400px at 0% 100%, rgba(255, 42, 42, .06), transparent 60%); }
.hub h1:not(.dm-pagehead) { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; transform: skewX(-8deg); transform-origin: left bottom; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: .95; letter-spacing: .01em;
  background: linear-gradient(180deg, #fff 0%, #e4e7ec 40%, #8b919b 52%, #d9dde3 72%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.hub h1 .meta { -webkit-text-fill-color: var(--scanner); color: var(--scanner); font-size: .45em; letter-spacing: .04em; vertical-align: middle; }
.hub .cl-side-head h1 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.hub > .lede, .hub .head-row + .lede { font-size: 1.1rem; max-width: 46rem; }
.hub > h2, .hub .rooms-wrap > h2, .hub .head-row h2, .hub .garage > h2, .hub .game-side h2, .hub #cl-heading, .hub .cl-wrap > section > h2 { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; letter-spacing: .04em; display: inline-block; transform: skewX(-6deg); transform-origin: left bottom; color: #f2f3f5; padding-bottom: .3rem; border-bottom: 2px solid var(--scanner); box-shadow: 0 8px 12px -10px var(--scanner); }
.hub .crumb a { color: var(--chrome); }

.hub-topics li, .hub-post, .hub-notice, .feed-card, .feed-compose, .garage-card, .garage-post, .game-tile, .cl-side, .hub-switch, .hub .dm-chat .hub-log, .hub > .hub-log, .hub .hub-log:not(.dm-win .hub-log), .hub .hub-form, .vids {
  border: 1px solid rgba(255, 42, 42, .45); border-radius: 12px; background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%); box-shadow: 0 0 12px -3px rgba(255, 42, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .05); }
.vids { padding: .7rem .9rem; }
.hub .hub-form { padding: .6rem; }
.hub-notice { border-left: 3px solid var(--scanner); }
.hub-post.op { border-left: 3px solid var(--scanner); box-shadow: 0 0 18px -2px rgba(255, 42, 42, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
.hub-topics li, .garage-card, .game-tile, .feed-card { transition: transform .15s, box-shadow .15s, border-color .15s; }
.hub-topics li:hover, .garage-card:hover, .game-tile:hover { border-color: var(--scanner); transform: translateY(-2px); box-shadow: 0 0 22px 0 rgba(255, 42, 42, .5), inset 0 1px 0 rgba(255, 255, 255, .08); }
.feed-card:hover { border-color: rgba(255, 42, 42, .75); }
.hub-topics h3, .hub-topics h3 a, .garage-card h3, .garage-card h3 a, .game-tile .game-name, .feed-title, .feed-title a { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #f2f3f5; text-decoration: none; }
.hub-topics h3 a:hover, .garage-card h3 a:hover, .feed-title a:hover { color: #fff; text-shadow: 0 0 10px rgba(255, 42, 42, .6); }
.garage-card .gc-pic { border-bottom: 1px solid rgba(255, 42, 42, .35); overflow: hidden; }
.garage-card .gc-pic img { transition: transform .3s; }
.garage-card:hover .gc-pic img { transform: scale(1.04); }
.garage-card.has-new, .garage-post.is-new { border: 2px solid #ffbe28; }
.cl-card .cl-pic { border: 1px solid rgba(255, 42, 42, .4); box-shadow: 0 0 10px -3px rgba(255, 42, 42, .35); }
.cl-card a:hover .cl-pic { border-color: var(--scanner); box-shadow: 0 0 18px -2px rgba(255, 42, 42, .55); }
.game-tile { border-left: 1px solid rgba(255, 42, 42, .45); }
.game-board li { border-color: rgba(255, 42, 42, .3); background: linear-gradient(180deg, #1b1d23, #0f1014); }
.game-board li.first { border-color: #ffd23f; box-shadow: 0 0 12px -2px rgba(255, 210, 63, .45); }
.hub .game-frame { border-color: rgba(255, 42, 42, .55); box-shadow: 0 0 24px -4px rgba(255, 42, 42, .45); }

.hub-switch { padding: 4px; border-radius: var(--r-switch); }
.hub-switch a { font-weight: 700; letter-spacing: .06em; }
.hub-switch a.on { background: radial-gradient(ellipse 70% 120% at 50% 100%, #ff4a4a, var(--scanner) 60%, #b3141b); box-shadow: 0 0 18px -2px rgba(255, 42, 42, .75); text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.hub-tabs a { background: linear-gradient(180deg, #1b1d23, #0f1014); border-color: rgba(255, 42, 42, .35); text-transform: uppercase; font-family: var(--head); font-weight: 600; letter-spacing: .05em; }
.hub-tabs a.on { border-color: var(--scanner); color: #fff; box-shadow: 0 0 14px -2px rgba(255, 42, 42, .7); text-shadow: 0 0 8px rgba(255, 42, 42, .6); }
.hub .btn:not(.ghost):not(.linklike) { box-shadow: 0 0 14px -3px rgba(255, 42, 42, .6); }
.hub .btn.ghost { border-color: rgba(255, 42, 42, .45); }
.hub .btn.ghost:hover { border-color: var(--scanner); box-shadow: 0 0 12px -3px rgba(255, 42, 42, .6); }
.hub .garage-link .btn { box-shadow: none; }
.hub-threads li { border-bottom-color: rgba(255, 42, 42, .2); }
.hub-threads .title { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.friend-list li, .hub-blocked li { border-bottom-color: rgba(255, 42, 42, .2); }
.story-band.hub-band { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .hub-topics li, .garage-card, .game-tile, .feed-card, .garage-card .gc-pic img { transition: none; } }
.hub .chat-cols + .hint { margin-top: .9rem; }
body:has(.hub) .site-footer { margin-top: 0; }

/* Private chat in the Our Story style: the conversation page, the messages list and the small chat windows. */
.hub-threads li { border: 1px solid rgba(255, 42, 42, .4); border-radius: 12px; padding: .8rem 1rem; margin-bottom: .7rem; background: linear-gradient(180deg, #1b1d23, #0f1014); box-shadow: 0 0 10px -3px rgba(255, 42, 42, .28); transition: border-color .15s, box-shadow .15s; }
.hub-threads li:hover { border-color: var(--scanner); box-shadow: 0 0 18px -2px rgba(255, 42, 42, .5); }
.hub-threads .title { text-decoration: none; color: #f2f3f5; }
.hub-threads .title:hover { color: #fff; text-shadow: 0 0 10px rgba(255, 42, 42, .6); }
.dm-pagehead { gap: .9rem; margin-bottom: .9rem; }
.dm-pagehead .dm-avatar, .dm-head .dm-avatar { box-shadow: 0 0 0 2px #0f1014, 0 0 0 3px rgba(255, 42, 42, .65), 0 0 14px rgba(255, 42, 42, .45); }
.dm-pagehead .dm-avatar.online, .dm-head .dm-avatar.online { box-shadow: 0 0 0 2px #0f1014, 0 0 0 3px var(--ok), 0 0 12px rgba(79, 209, 139, .5); }
.dm-pagehead .dm-nm { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; display: inline-block; transform: skewX(-8deg); transform-origin: left bottom; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff 0%, #e4e7ec 40%, #8b919b 52%, #d9dde3 72%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.dm-pagehead .meta { color: var(--scanner); font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.dm-log .hub-msg .txt, .dm-chat .hub-msg .txt { background: linear-gradient(180deg, #2c2f37, #1b1d23); color: #f2f3f5; border: 1px solid rgba(255, 255, 255, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.dm-log .hub-msg.mine .txt, .dm-chat .hub-msg.mine .txt { background: linear-gradient(180deg, #ff3b3b, #c2141b); border-color: rgba(255, 120, 120, .45); box-shadow: 0 0 14px -3px rgba(255, 42, 42, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.dm-chat .hub-form .btn { box-shadow: 0 0 14px -2px rgba(255, 42, 42, .7); }
.dm-win { background: linear-gradient(180deg, #17191e, #0d0e12); border: 1px solid rgba(255, 42, 42, .55); border-bottom: 0; box-shadow: 0 0 18px -4px rgba(255, 42, 42, .6), 0 -4px 18px rgba(0, 0, 0, .45); }
.dm-win .hub-log, .dm-win .dm-log { background: transparent; }
.dm-head { background: linear-gradient(180deg, #1f2127, #121318); border-bottom: 1px solid rgba(255, 42, 42, .55); box-shadow: 0 6px 14px -10px var(--scanner); }
.dm-win.has-new .dm-head { background: radial-gradient(ellipse 80% 140% at 50% 100%, rgba(255, 42, 42, .55), transparent 70%), linear-gradient(180deg, #3a0a0d, #1a0507); }
.dm-win .dm-title .dm-nm { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; }
.dm-form { border-top-color: rgba(255, 42, 42, .35); }
.dm-menu { border-color: rgba(255, 42, 42, .5); background: linear-gradient(180deg, #1b1d23, #0f1014); box-shadow: 0 0 16px -4px rgba(255, 42, 42, .55); }
@media (prefers-reduced-motion: reduce) { .hub-threads li { transition: none; } }

/* Admin in the Our Story style: dark, chrome slanted headings, glowing red panels and menu.
   body.staff is only on /admin pages; customer account pages keep their own look. */
body.admin.staff {
  --black: #08090b; --panel: #121419; --panel-2: #191c22; --line: #2c3038;
  --chrome: #c9ced6; --muted: #959dab; --text: #e9e6df; --strong: #fff;
  --scanner: #ff2a2a; --scanner-hover: #ff4a4a; --amber: #ffb21e; --ok: #4fd18b;
  --danger: #ff7b7b; --tag-ok: #2c6b4b; --tag-low: #7a5710; --tag-out: #7a2a2a;
  --glow: rgba(255, 42, 42, .6);
}
body.staff main { background: radial-gradient(1100px 520px at 90% -5%, rgba(255, 42, 42, .09), transparent 60%), radial-gradient(900px 420px at 10% 105%, rgba(255, 42, 42, .06), transparent 60%), var(--black); }
body.staff .btn.ghost { color: var(--chrome); border-color: rgba(255, 42, 42, .4); }
body.staff .btn.ghost:hover { border-color: var(--scanner); color: #fff; box-shadow: 0 0 12px -3px rgba(255, 42, 42, .6); }
body.staff .btn:not(.ghost):not(.danger):not(.danger-outline):not(.linklike) { box-shadow: 0 0 14px -3px rgba(255, 42, 42, .65); }
body.staff .btn:not(.ghost):not(.danger):not(.danger-outline):not(.linklike):hover { box-shadow: 0 0 20px -2px rgba(255, 42, 42, .85); }

/* Side menu */

/* Headings: chrome slanted page title, red underlined section headings */
body.staff .admin-wrap h1, body.staff.admin main > .wrap > h1 {
  font-style: italic; text-transform: uppercase; letter-spacing: .02em; transform: skewX(-8deg); transform-origin: left bottom;
  background: linear-gradient(180deg, #fff 0%, #e4e7ec 40%, #8b919b 52%, #d9dde3 72%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); width: fit-content; max-width: 100%; padding-right: .3rem;
}
body.staff .admin-wrap > h2, body.staff .admin-wrap .form > h2, body.staff .admin-wrap section > h2 {
  display: table; text-transform: uppercase; letter-spacing: .03em; font-style: italic; transform: skewX(-8deg); transform-origin: left bottom;
  padding-bottom: .15rem; border-bottom: 2px solid var(--scanner); box-shadow: 0 6px 10px -8px var(--scanner);
}
body.staff .crumb a { color: var(--scanner); }

/* Glowing panels */
body.staff .stats > div, body.staff .order, body.staff .approval, body.staff .mode-card, body.staff .panel,
body.staff .admin-wrap fieldset, body.staff .table-wrap, body.staff .flash, body.staff .upd-status > div, body.staff .upd-pending,
body.staff .quote-note, body.staff .import-note.box, body.staff .art-cat-row, body.staff .hub-post {
  background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%); border-color: rgba(255, 42, 42, .4);
  box-shadow: 0 0 12px -3px rgba(255, 42, 42, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
}
body.staff .approval { border-left-color: var(--amber); }
body.staff .mode-card { border-left-color: #2a8f2a; }
body.staff .mode-card.on, body.staff .order.review, body.staff .flash.error { border-left-color: var(--scanner); }
body.staff .order.paid { border-left-color: var(--amber); }
body.staff .stats > div { transition: transform .15s, box-shadow .15s; }
body.staff .stats > div:hover { transform: translateY(-2px); box-shadow: 0 0 18px -2px rgba(255, 42, 42, .5), inset 0 1px 0 rgba(255, 255, 255, .06); }
body.staff .stats dt { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--scanner); }
body.staff .stats dd { color: #f2f3f5; text-shadow: 0 0 14px rgba(255, 42, 42, .3); }
body.staff .admin-wrap legend { font-family: var(--head); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; color: #f2f3f5; padding: 0 .5rem; }
body.staff .table th { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; color: var(--chrome); border-bottom: 2px solid rgba(255, 42, 42, .55); }
body.staff .table tbody tr { transition: background .12s; }
body.staff .table tbody tr:hover { background: rgba(255, 42, 42, .06); }
body.staff .tabs a.on, body.staff .order-tabs a.on, body.staff .hub-tabs a.on { box-shadow: 0 0 12px -3px rgba(255, 42, 42, .7); }
body.staff .approval h2, body.staff .mode-card h2, body.staff .panel h2, body.staff .order h2 { text-transform: uppercase; letter-spacing: .03em; color: #f2f3f5; }
@media (max-width: 800px) {
}

/* Price boxes (admin product form, supplier item form): currency sign inside the box, USD | EUR switch, the dollar
   amount in a clear box underneath, and a small stock box beside the price instead of a stretched one. */
.price-stock { display: grid; grid-template-columns: minmax(0, 1fr) 10rem; gap: 1rem 1.5rem; align-items: start; margin-bottom: .8rem; }
.price-stock > .fx-price > label[for] { display: block; font-weight: 600; margin-bottom: .3rem; }
.fx-row { align-items: stretch; flex-wrap: wrap; }
.fx-row .money-in { flex: 1 1 9rem; }
.fx-row select[hidden] { display: none; }
.stock-field { align-self: start; }
.stock-field input { max-width: 10rem; text-align: center; font-variant-numeric: tabular-nums; }
.money-in { position: relative; display: flex; flex: 1; min-width: 0; }
.money-in input { flex: 1; min-width: 0; padding-left: 2.3rem; font-variant-numeric: tabular-nums; }
.money-sym { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: #6b7280; font-weight: 700; pointer-events: none; font-size: .95rem; }
.ws-switch[hidden] { display: none; }
.fx-result { margin-top: .55rem; padding: .6rem .85rem; border: 1px solid rgba(255, 42, 42, .45); border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 42, 42, .12), rgba(255, 42, 42, .03)); box-shadow: 0 0 12px -4px rgba(255, 42, 42, .4);
  display: flex; flex-direction: column; gap: .2rem; }
.fx-result[hidden] { display: none; }
.fx-result-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; font-size: 1.3rem; line-height: 1.2; }
.fx-result-main strong { color: var(--strong, #fff); font-variant-numeric: tabular-nums; }
.fx-result-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--scanner); }
.fx-result-sub { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.ws-price .fx-result { margin-top: .45rem; }
@media (max-width: 640px) {
  .price-stock { grid-template-columns: minmax(0, 1fr); }
}
.fx-row .money-in { flex: 1 1 12rem; }
.fx-row select { flex: 1 1 12rem; }
.ws-row { flex-wrap: wrap; }
.ws-row .money-in { flex: 1 1 8rem; }
.ws-switch { min-height: 2.75rem; }
.price-stock, .price-stock > *, .ws-price { min-width: 0; }
.form > *, .form fieldset { min-width: 0; }
@media (max-width: 520px) {
  .ps-editor .ps-row { grid-template-columns: 1.4rem minmax(0, 1fr) 6.5rem; }
  .ps-editor .ps-row > :last-child:not(.ps-amt) { grid-column: 2 / -1; justify-self: start; }
}

/* FAQ page in the Our Story style */
.faq-story .faq-page { padding-block: 2.2rem 0; }
.faq-story .story-intro p strong, .faq-story .story-body strong { color: #f2f3f5; }
.faq-story .faq-intro { margin: 0; padding: 0; border: 0; }
.faq-hero-jump { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0; }
.faq-hero-jump .btn:not(.ghost) { box-shadow: 0 0 14px -3px rgba(255, 42, 42, .65); }
.faq-story .story-thumb { width: 96px; height: 76px; }
.faq-story .story-icon { width: 46px; height: 46px; }
.faq-story .story-body { padding-left: calc(96px + 1.85rem); max-width: 1000px; }
.faq-story .story-body .prose { font-size: 1.05rem; }
.faq-story .story-body h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; font-size: 1.25rem; color: var(--scanner); margin: 1.4rem 0 .4rem; }
.faq-story .story-body h3:first-child { margin-top: .4rem; }
.faq-story .story-body .faq-intro-photo { margin: 1.2rem 0; text-align: left; }
.faq-story .faq-intro-photo a { border-color: rgba(255, 42, 42, .4); box-shadow: 0 0 12px -3px rgba(255, 42, 42, .35); }
.faq-story .story-intro .faq-intro-photo { text-align: left; }

/* headings of the lower parts */
.faq-story .faq-page > h2, .faq-story .faq-find-box h2 {
  display: table; font-style: italic; text-transform: uppercase; letter-spacing: .03em; transform: skewX(-8deg); transform-origin: left bottom;
  margin: 2.6rem 0 1rem; padding-bottom: .15rem; border-bottom: 2px solid var(--scanner); box-shadow: 0 6px 10px -8px var(--scanner);
}
.faq-story .faq-page > h2 .meta { font-style: normal; text-transform: none; letter-spacing: 0; margin-left: .6rem; }
.faq-story .faq-page > h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; color: #f2f3f5; margin: 1.6rem 0 .6rem; }
.faq-story .faq-page > h3 a { color: inherit; }

/* search panel */
.faq-find-box { margin-top: 2.4rem; padding: 1.2rem 1.4rem 1.4rem; border: 1px solid rgba(255, 42, 42, .45); border-radius: 12px;
  background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%); box-shadow: 0 0 14px -2px rgba(255, 42, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .06); }
.faq-story .faq-find-box h2 { margin-top: 0; font-size: 1.5rem; }
.faq-find-box .search-form { max-width: none; }
.faq-find-box .btn { box-shadow: 0 0 14px -3px rgba(255, 42, 42, .65); }

/* article categories and cards */
.faq-story .cat-chips a { border-color: rgba(255, 42, 42, .35); background: #121419; }
.faq-story .cat-chips a.on { box-shadow: 0 0 12px -2px rgba(255, 42, 42, .7); }
.faq-story .article-card { border-color: rgba(255, 42, 42, .4); background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%);
  box-shadow: 0 0 12px -3px rgba(255, 42, 42, .3), inset 0 1px 0 rgba(255, 255, 255, .05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.faq-story .article-card:hover { transform: translateY(-3px); border-color: var(--scanner); box-shadow: 0 0 20px -2px rgba(255, 42, 42, .55); }
.faq-story .article-card .card-body h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; color: #f2f3f5; }
.faq-story .article-card .card-meta { color: var(--scanner); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.faq-story .article-card .card-img { border-bottom: 1px solid rgba(255, 42, 42, .35); }

/* questions and install guides as glowing bars */
.faq-story .faq-page > details { border: 1px solid rgba(255, 42, 42, .4); border-radius: 12px; margin-bottom: .7rem;
  background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%); box-shadow: 0 0 10px -3px rgba(255, 42, 42, .28); transition: box-shadow .15s, border-color .15s; }
.faq-story .faq-page > details:hover { border-color: var(--scanner); box-shadow: 0 0 16px -2px rgba(255, 42, 42, .45); }
.faq-story .faq-page > details > summary { padding: 1rem 1.2rem; font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 1.15rem; color: #f2f3f5; }
.faq-story .faq-page > details > .prose, .faq-story .faq-page > details > .faq-photos { padding: 0 1.2rem 1.1rem; margin: 0; }
.faq-story .faq-for { margin-top: 1.2rem; }
.faq-story .pager .btn.ghost { border-color: rgba(255, 42, 42, .4); }

@media (max-width: 640px) {
  .faq-story .story-thumb { width: 64px; height: 56px; }
  .faq-story .story-icon { width: 34px; height: 34px; }
  .faq-story .story-body { padding: .3rem 1rem 1.2rem; }
  .faq-find-box { padding: 1rem; }
}
.faq-story .story[open] .story-sub { display: none; }
@media (max-width: 640px) { .faq-story .story-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
body.staff .feat-switch { background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%); border-color: rgba(255, 42, 42, .4); box-shadow: 0 0 12px -3px rgba(255, 42, 42, .3), inset 0 1px 0 rgba(255, 255, 255, .05); }

/* FAQ page editor (Admin > FAQ > FAQ page) */
.faq-photos-edit { margin: .2rem 0 1rem; border: 1px dashed var(--line); border-radius: var(--r-card); padding: .5rem .8rem; }
.faq-photos-edit > summary { cursor: pointer; font-weight: 600; }
.faq-photos-edit[open] > summary { margin-bottom: .7rem; }
.md-help-box { margin: 0 0 1rem; }
.md-help-box > summary { cursor: pointer; font-weight: 600; }
.md-help { margin: .4rem 0 0; padding-left: 1.2rem; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; padding: .7rem 0; margin: 0; background: linear-gradient(180deg, transparent, var(--bg) 40%); }
body.staff .faq-photos-edit { border-color: rgba(255,42,42,.35); background: rgba(255,42,42,.03); }
body.staff .sticky-save { background: linear-gradient(180deg, transparent, #0f1014 40%); }
@media (max-width: 640px) { .story-edit-cols, .story-edit-cols:has(input[type=number]) { grid-template-columns: minmax(0, 1fr); } .story-edit-cols > * { min-width: 0; } .faq-photos-edit .ip-fields { min-width: 0; } }
.faq-photos-edit input[type=file] { max-width: 100%; }

/* Admin, light: the same Our Story styling (slanted headings, red lines, glowing panels) on light colours. The side
   menu keeps the dark look. Switched on the admin dashboard (body.staff.light). */
body.admin.staff.light {
  --black: #eef0f4; --panel: #fff; --panel-2: #e9edf2; --line: #d3d8e0;
  --chrome: #2c333d; --muted: #596273; --text: #14171c; --strong: #000;
  --scanner: #d4141c; --scanner-hover: #b50f16; --amber: #a86a00; --ok: #17794a;
  --danger: #b3261e; --tag-ok: #8fcfae; --tag-low: #e0bd7c; --tag-out: #e6a39e;
  --glow: rgba(212, 20, 28, .35);
}
body.staff.light main { background: radial-gradient(1100px 520px at 90% -5%, rgba(212, 20, 28, .07), transparent 60%), radial-gradient(900px 420px at 10% 105%, rgba(212, 20, 28, .05), transparent 60%), var(--black); }
body.staff.light .btn.ghost { color: var(--chrome); border-color: rgba(212, 20, 28, .45); }
body.staff.light .btn.ghost:hover { color: var(--scanner); border-color: var(--scanner); box-shadow: 0 0 12px -3px rgba(212, 20, 28, .45); }
body.staff.light .btn:not(.ghost):not(.danger):not(.danger-outline):not(.linklike) { box-shadow: 0 0 14px -3px rgba(212, 20, 28, .55); }
/* The side menu: the dark colours, the same as dark mode */
body.staff.light .admin-side {
  --scanner: #ff2a2a; --muted: #959dab; --chrome: #c9ced6; --text: #e9e6df; --strong: #fff; --panel: #121419; --panel-2: #191c22; --line: #2c3038;
  color: #e9e6df;
}
body.staff.light .admin-side .nav-toggle { color: #fff; border-color: rgba(255, 42, 42, .45); }
/* Headings: dark chrome page title */
body.staff.light .admin-wrap h1, body.staff.light.admin main > .wrap > h1 {
  background: linear-gradient(180deg, #4a515c 0%, #14171c 42%, #6b727d 54%, #22262d 74%, #3a4049 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .9));
}
/* Glowing panels in white */
body.staff.light .stats > div, body.staff.light .order, body.staff.light .approval, body.staff.light .mode-card, body.staff.light .panel,
body.staff.light .admin-wrap fieldset, body.staff.light .table-wrap, body.staff.light .flash, body.staff.light .upd-status > div, body.staff.light .upd-pending,
body.staff.light .quote-note, body.staff.light .import-note.box, body.staff.light .art-cat-row, body.staff.light .hub-post, body.staff.light .feat-switch {
  background: linear-gradient(180deg, #fff 0%, #f3f4f7 100%); border-color: rgba(212, 20, 28, .32);
  box-shadow: 0 0 12px -3px rgba(212, 20, 28, .22), 0 1px 2px rgba(0, 0, 0, .05), inset 0 1px 0 #fff;
}
body.staff.light .approval { border-left-color: var(--amber); }
body.staff.light .mode-card.on, body.staff.light .order.review, body.staff.light .flash.error { border-left-color: var(--scanner); }
body.staff.light .stats > div:hover { box-shadow: 0 0 18px -2px rgba(212, 20, 28, .38), 0 1px 2px rgba(0, 0, 0, .05); }
body.staff.light .stats dd { color: #14171c; text-shadow: 0 0 14px rgba(212, 20, 28, .18); }
body.staff.light .admin-wrap legend, body.staff.light .approval h2, body.staff.light .mode-card h2, body.staff.light .panel h2, body.staff.light .order h2 { color: #14171c; }
body.staff.light .admin-wrap legend { background: linear-gradient(180deg, #fff, #f3f4f7); border-radius: 4px; }
body.staff.light .table th { border-bottom-color: rgba(212, 20, 28, .5); }
body.staff.light .table tbody tr:hover { background: rgba(212, 20, 28, .04); }
body.staff.light .tabs a.on, body.staff.light .order-tabs a.on, body.staff.light .hub-tabs a.on { box-shadow: 0 0 12px -3px rgba(212, 20, 28, .5); }
body.staff.light .hub-tabs a { background: linear-gradient(180deg, #fff, #f3f4f7); border-color: rgba(212, 20, 28, .3); color: var(--text); }
body.staff.light .faq-photos-edit { border-color: rgba(212, 20, 28, .3); background: rgba(212, 20, 28, .025); }
body.staff.light .sticky-save { background: linear-gradient(180deg, transparent, var(--black) 40%); }
@media (max-width: 800px) {
}

/* Customer account and supplier pages in the same Our Story style (body.staff.portal, light or dark from the switch
   on the admin dashboard). Their menu bar stays dark in both, like the admin side menu. */
body.portal .admin-wrap.narrow-sm, body.portal .admin-wrap.narrow, body.portal .admin-wrap.narrowish { padding-block: 2.5rem 4rem; }
body.staff .admin-bar {
  --scanner: #ff2a2a; --muted: #959dab; --chrome: #c9ced6; --text: #e9e6df; --strong: #fff; --line: #2c3038;
  background: linear-gradient(180deg, #121318 0%, #08090b 100%); color: #d6dae0;
  border-bottom: 1px solid rgba(255, 42, 42, .4); box-shadow: 0 6px 16px -10px rgba(255, 42, 42, .6);
}
body.staff .admin-bar nav a { color: #d6dae0; font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; transition: color .15s, text-shadow .15s; }
body.staff .admin-bar nav a.on, body.staff .admin-bar nav a:hover { color: #fff; border-bottom-color: #ff2a2a; text-shadow: 0 0 10px rgba(255, 42, 42, .5); }
body.staff .admin-bar .linklike { color: #d6dae0; }
body.staff .admin-bar .linklike:hover { color: #fff; }
body.staff .admin-bar .nav-toggle { color: #fff; }
.admin-theme form + form { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
body.staff .admin-wrap > .head-row > h2 {
  display: table; text-transform: uppercase; letter-spacing: .03em; font-style: italic; transform: skewX(-8deg); transform-origin: left bottom;
  padding-bottom: .15rem; border-bottom: 2px solid var(--scanner); box-shadow: 0 6px 10px -8px var(--scanner);
}

/* "Get the app" strip on the community page (partials/get-app.php) */
.get-app { display: flex; align-items: center; gap: 1rem; max-width: 46em; margin: 0 0 1.4rem; padding: .85rem 1rem; border: 1px solid rgba(255, 42, 42, .55); border-radius: 12px;
  background: linear-gradient(135deg, #16181d, #0d0e12); box-shadow: 0 0 22px -8px rgba(255, 42, 42, .7); }
.get-app img { width: 56px; height: 56px; border-radius: 13px; border: 1px solid var(--line); flex: none; }
.get-app div { flex: 1; min-width: 0; }
.get-app strong { display: block; font-family: var(--head, inherit); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .03em; color: #fff; transform: skewX(-8deg); transform-origin: left; }
.get-app span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.35; margin-top: .15rem; }
.get-app .btn { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; flex: none; }
@media (max-width: 560px) {
  .get-app { flex-wrap: wrap; }
  .get-app div { flex-basis: calc(100% - 72px); }
  .get-app .btn { width: 100%; justify-content: center; }
}
/* "Get the app" shows on phones and tablets only, never in a computer's browser */
.phone-only:not(.is-phone) { display: none !important; }
@media (hover: none) and (pointer: coarse) {
  .get-app.phone-only:not(.is-phone) { display: flex !important; }
  a.phone-only:not(.is-phone) { display: inline !important; }
}

/* Admin > Account: 2-step login */
.twostep { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 46rem; }
.twostep .tag { margin-right: .4rem; }
.tfa-steps { padding-left: 1.3rem; }
.tfa-steps > li { margin: 0 0 1.4rem; }
.tfa-qr { width: 220px; height: 220px; margin: .8rem 0; background: #fff; border-radius: 10px; padding: 6px; }
.tfa-qr svg { width: 100%; height: 100%; display: block; }
.tfa-key { font-size: 1.05rem; letter-spacing: .06em; word-break: break-all; }
.tfa-code-input { font-size: 1.4rem; letter-spacing: .2em; max-width: 12rem; font-variant-numeric: tabular-nums; }
.tfa-confirm { margin-top: .6rem; }
.tfa-codes-box { border: 2px solid var(--scanner); border-radius: var(--r-card, 10px); padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; }
.tfa-codes-box h3 { margin-top: 0; }
.tfa-codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .4rem .8rem; }
.tfa-codes code { font-size: 1.1rem; letter-spacing: .05em; }
.tfa-codes-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.tfa-actions { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 1.2rem; }
.tfa-actions .form { margin: 0; display: flex; flex-direction: column; }
.tfa-actions .form > .btn { margin-top: auto; }
.tfa-actions h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.admins-table .inline-toggle + .inline-toggle, .admins-table .tag + .inline-toggle { margin-top: .3rem; }
@media print {
  body.tfa-printing * { visibility: hidden; }
  body.tfa-printing .tfa-codes-box, body.tfa-printing .tfa-codes-box * { visibility: visible; color: #000 !important; }
  body.tfa-printing .tfa-codes-box { position: absolute; left: 0; top: 0; border-color: #000; }
  body.tfa-printing .tfa-codes-actions { display: none; }
}

/* Passkeys: login button and account page list */
.pk-login { margin-top: 1rem; }
.pk-or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .9rem; margin: .4rem 0 1rem; }
.pk-or::before, .pk-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.pk-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.pk-login .pk-btn { width: 100%; }
.pk-icon { flex: none; }
.pk-msg { color: var(--danger); font-weight: 600; margin: .6rem 0 0; }
.passkeys { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 46rem; }
.panel > .passkeys { margin-top: 0; padding-top: 0; border-top: 0; }
.panel > .passkeys > h2:first-child { margin-top: 0; }
.pk-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.pk-list li { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.pk-list .pk-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-list .pk-name small { margin: 0; }
.pk-list form { margin: 0; }
.pk-add { margin-top: 1rem; max-width: 26rem; }
.pk-add label { display: block; margin-bottom: .8rem; }
.pk-add .pk-btn + .hint, .pk-login .pk-btn + .hint { margin-top: .6rem; }

/* Options editor: USD | EUR switch next to each choice's amount, with the converted amount under the choice */
.opt-editor .ov { grid-template-columns: minmax(6rem, 1fr) auto auto auto; }
.opt-editor .ov-amount { display: flex; align-items: center; gap: .4rem; }
.opt-editor .ov-amount .ov-price input { width: 6.5rem; }
.opt-editor .ov-switch { min-height: 0; }
.opt-editor .ov-switch span { min-height: 2.3rem; padding: 0 .6rem; font-size: .8rem; }
.opt-editor .ov-fx { grid-column: 1 / -1; margin: -.15rem 0 .2rem; font-size: .88rem; color: var(--muted); }
.opt-editor .ov-fx strong { color: var(--scanner); }
.opt-editor .ov-fx[hidden] { display: none; }
@media (max-width: 640px) { .opt-editor .ov { grid-template-columns: 1fr auto; } .opt-editor .ov-mode { grid-column: 1 / -1; } .opt-editor .ov-amount .ov-price input { width: 100%; } .opt-editor .ov-amount { min-width: 0; } }

/* Suppliers and Support pages in the Our Story style (views/suppliers.php, support.php, support-section.php) */
.sup-story .story-main { padding-bottom: .5rem; }
.story-head { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; transform: skewX(-8deg); transform-origin: left bottom; font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: .02em; color: #f2f3f5; margin: 0 0 1rem; padding-left: .9rem; border-left: 3px solid var(--scanner); line-height: 1.05; }
.story-sections + .story-head, .empty + .story-head { margin-top: 2.6rem; }
.story-head.avoid { border-left-color: var(--amber); }
.sup-story .story-thumb { width: 96px; height: 72px; }
.sup-story .story-icon { width: 44px; height: 44px; }
.sup-story .story-h { font-size: clamp(1.15rem, 2.2vw, 1.6rem); }
.sup-story .story-sub { font-size: .95rem; }
.sup-story .story-body { padding-left: calc(96px + 1.85rem); }
.story-row { display: flex; align-items: center; gap: 1.2rem; padding: .65rem 1.4rem .65rem .65rem; }
a.story.is-link { display: block; color: inherit; text-decoration: none; }
a.story.is-link .story-row::after { content: ""; flex: none; width: .75rem; height: .75rem; border-right: 3px solid var(--chrome); border-top: 3px solid var(--chrome); transform: rotate(45deg); margin-right: .35rem; transition: transform .15s; }
a.story.is-link:hover .story-row::after { transform: translateX(3px) rotate(45deg); }
a.story.is-link:focus-visible { outline: 2px solid var(--scanner); outline-offset: 2px; }
.story.is-plain:hover { border-color: var(--glow-red); box-shadow: 0 0 14px -2px rgba(255, 42, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .06); }
.sup-bar.trusted .story-thumb { color: #6fdc9a; }
.sup-bar.avoid { border-color: rgba(255, 178, 30, .55); box-shadow: 0 0 14px -2px rgba(255, 178, 30, .25), inset 0 1px 0 rgba(255, 255, 255, .06); }
.sup-bar.avoid:hover { border-color: var(--amber); box-shadow: 0 0 20px 0 rgba(255, 178, 30, .38), inset 0 1px 0 rgba(255, 255, 255, .08); }
.sup-bar.avoid .story-thumb { color: var(--amber); }
.sup-bar.avoid > summary::after { border-color: var(--amber); }
.sup-count { flex: none; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--scanner); border: 1px solid rgba(255, 42, 42, .45); border-radius: var(--r-pill); padding: .2rem .65rem; }
.sup-story .story-body .meta { margin: .8rem 0 0; }
.sup-story .story-hero .crumb { margin: 0 0 .8rem; }
.sup-story .story-hero .cat-chips { margin: 1.2rem 0 0; }
.sup-story .cat-chips a { border-color: rgba(255, 42, 42, .35); background: #121419; }
.sup-story .cat-chips a.on { box-shadow: 0 0 12px -2px rgba(255, 42, 42, .7); }
.story-panel { margin-top: 2.6rem; padding: 1.6rem 1.6rem .6rem; border: 1px solid var(--glow-red); border-radius: 12px; background: linear-gradient(180deg, #17191e 0%, #0e0f13 100%); box-shadow: 0 0 16px -4px rgba(255, 42, 42, .35), inset 0 1px 0 rgba(255, 255, 255, .05); }
.support-story .contact-box { border-top: 1px solid var(--glow-red); }
.story-panel .contact-form { max-width: 760px; }
@media (max-width: 640px) {
  .story-row { padding: .55rem .9rem .55rem .55rem; gap: .8rem; }
  .sup-story .story-thumb { width: 60px; height: 56px; }
  .sup-story .story-icon { width: 34px; height: 34px; }
  .sup-story .story-body { padding: .3rem 1rem 1.2rem; }
  .sup-count { display: none; }
  .story-panel { padding: 1.1rem 1rem .4rem; }
}


/* PayPal's own checkout button (partials/paypal-checkout.php): PayPal draws it in its own frame */
.pp-checkout { margin: 1rem 0 .4rem; max-width: 420px; }
.pp-checkout .pp-target:empty { display: none; }
.pp-checkout.pp-on .pp-target { background: #fff; border-radius: 10px; padding: .7rem .7rem .2rem; color-scheme: light; }
.pp-checkout form[hidden] { display: none; }
.pp-checkout [data-pp-error] { margin-top: .6rem; }
.pay-due .pp-checkout { margin-inline: auto; }
/* Suppliers page: Supplier login / Supplier dashboard at the top right */
.sup-story .story-hero-in:has(> .sup-top-btn) { position: relative; }
.sup-top-btn { position: absolute; top: 1.4rem; right: 0; margin: 0; z-index: 2; }
@media (max-width: 640px) {
  .sup-top-btn { position: static; display: flex; justify-content: flex-end; margin: -1.2rem 0 .8rem; }
  .sup-top-btn .btn { padding: .45rem .9rem; font-size: .9rem; }
}

/* Lightbox for article photos (public/js/app.js, links with data-lb) */
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4rem; overscroll-behavior: contain; animation: lb-in .15s ease-out; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .7rem; max-width: 100%; max-height: 100%; }
.lb-img { display: block; width: auto; height: auto; max-width: min(1400px, calc(100vw - 8rem)); max-height: calc(100vh - 9rem); max-height: calc(100dvh - 9rem); object-fit: contain; border-radius: 8px; box-shadow: 0 0 40px -6px rgba(255, 42, 42, .45); background: #111; }
.lb-cap { color: #e6e7ea; font-size: .98rem; text-align: center; max-width: 60rem; line-height: 1.4; }
.lb-cap .num { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--scanner); color: #fff; font-weight: 700; font-size: .85rem; margin-right: .25rem; }
.lb-count { display: block; margin-top: .25rem; font-size: .82rem; color: #9aa0a8; }
.lb-btn { position: absolute; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 .15rem; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--scanner); border-color: var(--scanner); outline: none; }
.lb-close { top: .8rem; right: .8rem; font-size: 1.6rem; }
.lb-prev { left: .8rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .8rem; top: 50%; transform: translateY(-50%); }
.article-pic a[data-lb] { cursor: zoom-in; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 640px) {
  .lb { padding: 3.6rem .6rem 5.4rem; }
  .lb-img { max-width: calc(100vw - 1.2rem); max-height: calc(100vh - 13rem); max-height: calc(100dvh - 13rem); }
  .lb-prev, .lb-next { top: auto; bottom: .8rem; transform: none; }
  .lb-prev { left: calc(50% - 3.4rem); } .lb-next { right: calc(50% - 3.4rem); }
}
@media (prefers-reduced-motion: reduce) { .lb { animation: none; } }

/* Articles in the Our Story style (views/article.php) */
.art-story .story-hero .crumb { margin: 0 0 .9rem; }
.art-story .story-hero .flash { margin: 0 0 1rem; }
.art-story .story-name.art-title { font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: .98; padding-bottom: .1em; }
.art-story .story-eyebrow { font-size: clamp(1.05rem, 1.8vw, 1.45rem); }
.art-story .art-tagline { font-size: clamp(1.2rem, 2.2vw, 1.65rem); }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .4rem 0 0; color: var(--chrome); }
.art-date { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: var(--scanner); }
.art-story .article-tags a { border-color: rgba(255, 42, 42, .35); background: #121419; color: var(--text); }
.art-story .article { padding-block: 2.4rem 0; }
.art-story .article-cols { margin-top: 0; }
.art-story .article-body { font-size: 1.1rem; line-height: 1.7; }
.art-story .article-body h2, .art-story .article-body h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; color: #f2f3f5; }
.art-story .article-pics a, .art-story .article-pic.inline a { border-color: rgba(255, 42, 42, .4); box-shadow: 0 0 12px -3px rgba(255, 42, 42, .35); transition: box-shadow .15s, border-color .15s; }
.art-story .article-pics a:hover, .art-story .article-pic.inline a:hover { border-color: var(--scanner); box-shadow: 0 0 18px -2px rgba(255, 42, 42, .55); }
.art-story .art-back { margin: 2rem 0 0; }
.art-story .art-related { margin-top: 2.8rem; }
.art-story .story-eyebrow a { color: inherit; text-decoration: none; }
.art-story .story-eyebrow a:hover, .art-story .story-eyebrow a:focus-visible { text-decoration: underline; text-decoration-color: var(--scanner); text-underline-offset: 4px; }
/* the article heading: black behind the text fading to deep red on the right, like the home page hero */
.art-story .art-hero { background:
    radial-gradient(70% 140% at 100% 30%, rgba(255, 42, 42, .38), transparent 70%),
    linear-gradient(90deg, #08090b 0%, rgba(8, 9, 11, .96) 30%, #2a0507 65%, #6e0a0d 100%); }
@media (max-width: 640px) { .art-story .art-hero { background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 42, 42, .35), transparent 70%),
    linear-gradient(160deg, #08090b 0%, #120708 45%, #4a0709 100%); } }

/* FAQ articles: "Show more" adds the next six under the others */
.article-cell { display: flex; min-width: 0; }
.article-cell > * { flex: 1; min-width: 0; }
.show-more { display: flex; justify-content: center; margin: .4rem 0 2rem; }
.show-more .btn { min-width: 12rem; }
.faq-story .show-more .btn.ghost { border-color: rgba(255, 42, 42, .45); }
.article-cell.just-added { animation: cell-in .35s ease-out both; }
@keyframes cell-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .article-cell.just-added { animation: none; } }

/* Community games: the month on the high-score table, and the Monthly winners button and pop-up (partials/game-winners.php) */
.game-month { margin: -.2rem 0 .6rem; font-size: .85rem; color: var(--muted); }
.game-winners-btn { margin: .8rem 0 0; display: flex; justify-content: center; }
.game-winners-btn .btn { min-width: 14rem; }
.winners-dialog { width: min(560px, calc(100% - 1.5rem)); max-height: min(85vh, 760px); padding: 1.1rem 1.2rem 1.3rem; background: linear-gradient(180deg, #17191e 0%, #0e0f13 100%); color: var(--text);
  border: 1px solid rgba(255, 42, 42, .55); border-radius: 14px; box-shadow: 0 0 30px -6px rgba(255, 42, 42, .55); }
.winners-dialog::backdrop { background: rgba(0, 0, 0, .75); }
.winners-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.winners-head h2 { margin: 0; font-family: var(--head); font-style: italic; text-transform: uppercase; letter-spacing: .03em; color: #f2f3f5; }
.winners-dialog > .hint { margin: .5rem 0 1rem; }
.winners-month { margin: 0 0 1.1rem; }
.winners-month h3 { margin: 0 0 .45rem; font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; color: #ffd23f; }
.winners-list li { grid-template-columns: 2rem 1.7rem minmax(0, 1fr) auto; }
.winners-list .rank { font-size: 1.05rem; }
.winners-list .who-wrap { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.winners-list .table-name { font-size: .78rem; color: var(--muted); }
/* Articles: the photo column floats on the right and the text wraps round it, then runs full width below it */
.art-story .article-cols.has-pics { display: flow-root; }
.art-story .article-cols.has-pics .article-pics { float: right; width: 40%; margin: .3rem 0 1.6rem 2.5rem; }
.art-story .article-cols.has-pics .article-text { display: block; }
.art-story .article-cols.has-pics .article-body { max-width: none; }
/* photos placed in the text keep clear of the column instead of running under it */
.art-story .article-cols.has-pics .article-row, .art-story .article-cols.has-pics .article-pic.inline { display: flow-root; overflow: hidden; }
.art-story .article-cols.has-pics .article-row { display: grid; }
@media (max-width: 900px) {
  .art-story .article-cols.has-pics { display: flex; flex-direction: column; }
  .art-story .article-cols.has-pics .article-pics { float: none; width: auto; margin: 1.5rem 0 0; order: 2; }
}

/* News feed: the one-line share box, and the post form in a pop-up (views/partials/feed-compose.php) */
.feed-share { margin-bottom: 1rem; }
.feed-share-line { width: 100%; cursor: pointer; padding: .8rem 1.1rem; border-radius: var(--r-pill); background: var(--panel); border: 1px solid var(--line); color: var(--text); font-size: 1rem; }
.feed-share-line:hover, .feed-share-line:focus-visible { border-color: var(--scanner); box-shadow: 0 0 14px -4px rgba(255, 42, 42, .6); outline: none; }
.feed-compose-dlg { width: min(640px, calc(100% - 1.5rem)); }
.feed-compose-dlg .feed-compose { background: none; border: 0; padding: 0; margin: 0; box-shadow: none; }
.feed-compose-dlg textarea { margin-top: .8rem; min-height: 8rem; }
.feed-compose-dlg .feed-compose-row label { flex: 1 1 220px; }
.feed-compose-send { display: flex; justify-content: flex-end; margin: .8rem 0 0; }
.radius-preview .pv-switch { margin: .4rem 0 .8rem; max-width: 320px; }
.radius-preview .pv-switch a { font-size: .95rem; padding: .4rem .6rem; }

/* Get the app page (views/hub-app.php) and Admin › Community › App download */
.app-get .lead { max-width: 60ch; }
.app-get-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin-top: 1.2rem; }
.app-get-card { padding: 1.1rem 1.2rem; min-width: 0; }
.app-get-card h2 { margin-top: 0; }
.app-get-card.is-mine { border-color: var(--scanner); box-shadow: 0 0 22px -8px rgba(255, 42, 42, .7); }
.app-steps { margin: .8rem 0; padding-left: 1.3rem; display: grid; gap: .4rem; }
.app-steps li { padding-left: .2rem; }
.app-dl-now { padding: .9rem 1.1rem; margin-bottom: 1rem; }

/* digital products: the product form's download box, and the download links on order pages */
.form [data-physical][hidden], .form [data-digital-only][hidden] { display: none !important; }
.digital-box .digital-fields { display: grid; gap: .6rem; margin-top: .6rem; }
.digital-current { margin: 0; overflow-wrap: anywhere; }
.downloads { border: 1px solid var(--line, #ddd); border-radius: var(--r-card, 12px); padding: 1rem 1.2rem; margin: 1rem 0 1.4rem; background: var(--panel, transparent); }
.downloads h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.downloads ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.downloads li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.downloads .dl-name { display: grid; min-width: 0; overflow-wrap: anywhere; }
.downloads .dl-name small { color: var(--muted, #777); }
.downloads .btn { white-space: nowrap; }
.downloads .dl-note { margin: .8rem 0 0; font-size: .9rem; color: var(--muted, #777); }
.tag.dl { background: rgba(60, 130, 255, .14); color: inherit; }
.downloads .dl-items { margin-bottom: .7rem; }

/* ---- Admin side menu: a floating dark panel (views/admin/_layout.php). Always dark, in light mode too. ---- */
.admin-side { --sd-bg: linear-gradient(180deg, #17191f 0%, #0b0c10 100%); --sd-line: #262930; --sd-text: #dfe2e7; --sd-dim: #9199a6; --sd-red: #ff2a2a;
  flex: 0 0 272px; width: 272px; padding: 12px 0 12px 12px; background: none; border: 0; box-shadow: none; color: var(--sd-text); transition: flex-basis .2s, width .2s; }
.admin-side nav { position: sticky; top: calc(var(--hdr-h, 74px) + 12px); display: flex; flex-direction: column; gap: 2px;
  height: calc(100vh - var(--hdr-h, 74px) - 24px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 42, 42, .4) transparent;
  padding: 14px 12px 12px; border-radius: 20px; background: var(--sd-bg); border: 1px solid rgba(255, 42, 42, .32);
  box-shadow: 0 0 24px -10px rgba(255, 42, 42, .6), 0 10px 30px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05); }
@supports (height: 100dvh) { .admin-side nav { height: calc(100dvh - var(--hdr-h, 74px) - 24px); } }
.admin-side nav > * { flex-shrink: 0; }
.admin-side .nav-toggle { display: none; }
.admin-side .side-icon { flex: 0 0 20px; width: 20px; height: 20px; }

.side-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 2px 4px 12px; }
.side-brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--head); font-style: italic; font-weight: 700; font-size: 1.55rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1; }
.side-brand:hover { color: #fff; }
.side-brand-mark { width: 22px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #5a0000, var(--sd-red) 50%, #5a0000); box-shadow: 0 0 10px var(--sd-red); }
.side-mini-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid transparent; background: none; color: var(--sd-dim); cursor: pointer; }
.side-mini-btn:hover { color: #fff; background: rgba(255, 255, 255, .06); border-color: var(--sd-line); }

.side-tabs { display: none; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 4px; margin-bottom: 10px; border-radius: 15px; background: #0a0b0e; border: 1px solid var(--sd-line); }
.js .side-tabs { display: grid; }
.side-tabs button { position: relative; padding: .55rem .2rem; border: 0; border-radius: 11px; background: none; color: var(--sd-dim); font: 600 .92rem var(--body, inherit); cursor: pointer; transition: background .15s, color .15s; }
.side-tabs button:hover { color: #fff; }
.side-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(180deg, #2c2f37, #1e2127); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 12px -5px var(--sd-red); }
.side-dot { position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber, #ffb547); box-shadow: 0 0 6px var(--amber, #ffb547); }

.side-new { position: relative; display: flex; align-items: stretch; margin-bottom: 12px; border: 1px solid var(--sd-line); border-radius: 15px; background: rgba(255, 255, 255, .02); }
.side-new-main { flex: 1; display: flex; align-items: center; gap: .7rem; min-width: 0; padding: 7px 8px; color: #fff; text-decoration: none; font-size: 1.02rem; border-radius: 14px 0 0 14px; }
.side-new-main:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.side-plus { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: linear-gradient(180deg, #ff4a3d, #c90f16); box-shadow: 0 0 12px -2px rgba(255, 42, 42, .8); }
.side-new-more { display: flex; }
.side-new-more > summary { display: grid; place-items: center; width: 46px; list-style: none; cursor: pointer; color: var(--sd-dim); border-left: 1px solid var(--sd-line); border-radius: 0 14px 14px 0; }
.side-new-more > summary::-webkit-details-marker, .side-card > summary::-webkit-details-marker, .side-me > summary::-webkit-details-marker { display: none; }
.side-new-more > summary:hover, .side-new-more[open] > summary { color: #fff; background: rgba(255, 255, 255, .04); }
.side-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: #15171c; border: 1px solid rgba(255, 42, 42, .3); box-shadow: 0 14px 30px -10px #000, 0 0 16px -8px var(--sd-red); }
.side-pop a, .side-pop .side-out { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .65rem; border: 0; border-radius: 10px; background: none; color: var(--sd-text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.side-pop a:hover, .side-pop .side-out:hover { background: rgba(255, 42, 42, .12); color: #fff; }
.side-pop .side-icon { color: var(--sd-dim); }
.side-pop form { margin: 0; }

.side-head { margin: 0 0 4px; padding: 0 12px; font-size: .72rem; font-weight: 700; font-style: italic; letter-spacing: .14em; text-transform: uppercase; color: var(--sd-red); }
.js .side-group .side-head { display: none; }
.js .side-group[data-off] { display: none; }
.side-group { display: grid; gap: 2px; }
.side-link { display: flex; align-items: center; gap: .8rem; padding: .62rem .75rem; border-radius: 12px; color: var(--sd-text); text-decoration: none; font-size: 1rem; transition: background .15s, color .15s; }
.side-link .side-icon { color: var(--sd-dim); transition: color .15s; }
.side-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.side-link:hover .side-icon { color: #fff; }
.side-link.on { color: #fff; font-weight: 600; background: linear-gradient(90deg, rgba(255, 42, 42, .24), rgba(255, 42, 42, .06)); box-shadow: inset 0 0 0 1px rgba(255, 42, 42, .38), 0 0 16px -7px var(--sd-red); text-shadow: 0 0 10px rgba(255, 42, 42, .45); }
.side-link.on .side-icon { color: var(--sd-red); filter: drop-shadow(0 0 4px rgba(255, 42, 42, .7)); }
.side-link .badge-count { margin-left: auto; }
.side-rule { width: auto; margin: 10px 8px; border: 0; border-top: 1px solid var(--sd-line); }

.side-card { margin: 0 0 8px; border-radius: 15px; background: rgba(255, 255, 255, .03); border: 1px solid var(--sd-line); }
.side-card > summary { display: flex; align-items: center; gap: .7rem; padding: 10px; list-style: none; cursor: pointer; font-weight: 600; color: #fff; }
.side-card > summary > .side-icon:last-child { margin-left: auto; color: var(--sd-dim); transform: rotate(180deg); transition: transform .15s; }
.side-card:not([open]) > summary > .side-icon:last-child { transform: none; }
.side-card-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: var(--amber, #ffb547); background: rgba(255, 181, 71, .14); }
.side-card ul { list-style: none; margin: 0; padding: 8px 12px 12px; border-top: 1px solid var(--sd-line); display: grid; gap: .35rem; }
.side-card ul a { color: var(--sd-dim); text-decoration: none; font-size: .92rem; }
.side-card ul a:hover { color: #fff; }

.side-me { position: relative; margin-top: auto; padding-top: 8px; }
.side-me > summary { display: flex; align-items: center; gap: .75rem; padding: 8px; list-style: none; cursor: pointer; border-radius: 14px; }
.side-me > summary:hover, .side-me[open] > summary { background: rgba(255, 255, 255, .05); }
.side-avatar { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: #23262d; border: 1px solid var(--sd-line); color: #fff; font-weight: 700; letter-spacing: .04em; }
.side-me-text { display: grid; min-width: 0; line-height: 1.25; }
.side-me-text strong { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me-text small { color: var(--sd-dim); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-pop-up { top: auto; bottom: calc(100% + 4px); }

/* shrunk to icons only */
@media (min-width: 821px) {
  .side-mini .admin-side { flex-basis: 86px; width: 86px; }
  .side-mini .admin-side nav { padding-inline: 10px; align-items: stretch; }
  .side-mini .side-label, .side-mini .side-tabs, .side-mini .side-new-more, .side-mini .side-card ul, .side-mini .side-card > summary > .side-icon:last-child, .side-mini .side-brand-mark { display: none !important; }
  .side-mini .side-top { flex-direction: column; padding-inline: 0; }
  .side-mini .side-brand { display: none; }
  .side-mini .side-new { border: 0; background: none; justify-content: center; }
  .side-mini .side-new-main { justify-content: center; padding: 6px; border-radius: 12px; }
  .side-mini .side-group[data-off] { display: grid; }
  .side-mini .side-group + .side-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--sd-line); }
  .side-mini .side-link { position: relative; justify-content: center; padding: .7rem 0; }
  .side-mini .side-link .badge-count { position: absolute; top: 3px; right: 6px; min-width: 0; padding: 0 .35em; font-size: .68rem; margin: 0; }
  .side-mini .side-card { background: none; border: 0; }
  .side-mini .side-card > summary { justify-content: center; padding: 4px 0; }
  .side-mini .side-me > summary { justify-content: center; padding: 6px 0; }
  .side-mini .side-pop { left: 0; right: 0; }
  .side-mini .side-pop span { display: none; }
  .side-mini .side-pop a, .side-mini .side-pop .side-out { justify-content: center; }
}

/* phones: the menu opens from the "Admin menu" button and takes the full width */
@media (max-width: 820px) {
  .admin-side { flex: none; width: auto; padding: 8px 10px 0; }
  .js .admin-side .nav-toggle { display: inline-flex; margin: .2rem 0 .4rem; }
  .admin-side nav { position: static; height: auto; max-height: none; }
  .js .admin-side nav { display: none; }
  .js .admin-side nav.open { display: flex; }
  .side-mini-btn { display: none; }
  .side-me { margin-top: 10px; }
}
.admin-side summary::after, .admin-side details[open] summary::after { content: none; display: none; }
.admin-side summary { padding: 0; margin: 0; font-size: inherit; }
.side-new-more > summary { padding: 0; }
.side-card > summary { padding: 10px; font-size: 1rem; }
.side-me > summary { padding: 8px; }
.side-new-more, .side-me { border-bottom: 0; }
.side-me > summary, .side-card > summary { justify-content: flex-start; }
.side-new-more > summary { justify-content: center; }

/* Admin > Arrange the menu */
.menu-arrange { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 0 1.2rem; }
.menu-arrange > .actions { grid-column: 1 / -1; }
.menu-group ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.menu-group li { display: flex; align-items: center; gap: .6rem; padding: .35rem .2rem; border-bottom: 1px solid var(--line); }
.menu-group li:last-child { border-bottom: 0; }
.menu-name { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; font-weight: 600; }
.menu-name .side-icon { color: var(--scanner); flex: none; }
.menu-move-to select { padding: .3rem .5rem; width: 8.5rem; }
.menu-group li > * { min-width: 0; }
.menu-arrows { display: flex; gap: .25rem; }
.menu-arrows .btn { padding: .25rem .55rem; min-width: 0; }

/* Admin messages: a pop-up in the top corner, in the same glowing box, gone after 5 seconds (app.js) */
.toast-wrap { position: fixed; top: calc(var(--hdr-h, 74px) + 14px); right: 18px; z-index: 1200; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.flash.toast { position: relative; margin: 0; display: flex; align-items: flex-start; gap: .8rem; padding: .95rem 2.6rem .95rem 1.1rem; overflow: hidden; pointer-events: auto;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7), 0 0 18px -6px rgba(255, 42, 42, .55); animation: toast-in .28s ease-out both; }
.flash.toast p { margin: 0; }
.flash.toast.out { animation: toast-out .25s ease-in both; }
.toast-x { position: absolute; top: .45rem; right: .5rem; width: 1.9rem; height: 1.9rem; display: none; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.js .toast-x { display: grid; }
.toast-x:hover { color: var(--strong, #fff); background: rgba(255, 255, 255, .08); }
.toast-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--scanner), rgba(255, 42, 42, .4)); transform-origin: left; display: none; }
.js .toast-timer { display: block; animation: toast-time 5s linear both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .flash.toast, .flash.toast.out { animation: none; } }
@media (max-width: 820px) { .toast-wrap { right: 16px; left: 16px; width: auto; top: calc(var(--hdr-h, 64px) + 10px); } }
.support-kind .head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.support-kind h3 { margin-top: 1.6rem; }
.support-kind tr.editing td { background: rgba(255, 42, 42, .08); }
.support-kind > .head-row { margin: 0 0 .8rem; } .support-kind > .head-row h2 { margin: 0; }

/* Admin > Support: the files in a download */
.dl-files { display: grid; gap: .7rem; }
.dl-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.dl-file-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 10px; }
.dl-file-list .grow { flex: 1 1 14rem; margin: 0; }
.dl-file-meta { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.dl-file-order input { width: 4.5rem; }
.dl-file-list .check { margin: 0; }
.dl-new-files { display: grid; gap: .6rem; }
.dl-new-file { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .6rem; padding: .6rem; border: 1px dashed var(--line); border-radius: 10px; }
.dl-new-file label { margin: 0; }
@media (max-width: 760px) { .dl-new-file { grid-template-columns: 1fr; } }
/* Support > Downloads: each file with its own button */
.sup-files { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; }
.sup-files li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .65rem .85rem; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 42, 42, .22); }
.sup-file-name { display: grid; min-width: 0; overflow-wrap: anywhere; }
.sup-file-name small { color: var(--muted); }
.sup-files .btn { white-space: nowrap; }
.dl-new-file input[type="file"] { width: 100%; max-width: 100%; overflow: hidden; min-width: 0; } .dl-new-file > label { min-width: 0; }
.dl-new-file input[type="file"] { font-size: .8rem; padding: .35rem; } .dl-new-file input[type="file"]::file-selector-button { padding: .45rem .7rem; font-size: .85rem; margin-right: .5rem; }
/* Admin > Support: the form as wide as its box, numbered files */
.support-kind form.form.wide { max-width: none; }
.dl-place { display: grid; place-items: center; flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: 50%; font-weight: 700; color: #fff; background: var(--scanner); box-shadow: 0 0 10px -2px rgba(255, 42, 42, .7); }
.dl-file-order { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .85rem; color: var(--muted); }
.dl-file-order input { width: 4.2rem; }

/* a supplier's community account: the tag by their name, and the box on their dashboard */
.sup-tag { display: inline-block; margin-left: .35em; padding: .05em .45em; border-radius: 999px; font-size: .68em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: .15em; color: #1a1206; background: var(--amber, #ffb547); line-height: 1.5; }
.sup-community .actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.sup-community .actions form { margin: 0; }
.sup-community-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.sup-community-ways .form { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.sup-community-ways h3 { margin-top: 0; }
.feed-who .sup-tag { width: max-content; justify-self: start; align-self: start; margin-left: 0; margin-top: 2px; }
.login-history tr.failed td { background: rgba(255, 42, 42, .07); }

/* the language button on the supplier pages */
.sup-lang-row { display: flex; justify-content: flex-end; padding-top: .8rem; padding-bottom: 0; margin-bottom: -.4rem; }
.sup-lang { position: relative; border: 0; }
.sup-lang > summary { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; list-style: none; cursor: pointer; font-weight: 600; font-size: .9rem; }
.sup-lang > summary::-webkit-details-marker { display: none; }
.sup-lang > summary::after, .sup-lang[open] > summary::after { content: none; }
.sup-lang > summary:hover, .sup-lang[open] > summary { border-color: var(--scanner); box-shadow: 0 0 10px -4px var(--scanner); }
.sup-lang .chev { opacity: .7; }
.sup-lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; list-style: none; margin: 0; padding: 6px; min-width: 11rem; border-radius: 12px; background: var(--panel, #15171c); border: 1px solid var(--line); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.sup-lang-list a { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 8px; color: inherit; text-decoration: none; }
.sup-lang-list a:hover { background: rgba(255, 42, 42, .12); }
.sup-lang-list a[aria-current] { font-weight: 700; }
.sup-lang-code { display: inline-grid; place-items: center; width: 1.9rem; height: 1.3rem; border-radius: 4px; font-size: .7rem; font-weight: 700; background: rgba(255, 255, 255, .08); }
.sup-lang-list a[aria-current] .sup-lang-code { background: var(--scanner); color: #fff; }
/* an item a supplier wrote in another language: what they typed, for the admin */
.item-orig > summary { cursor: pointer; font-weight: 700; }
.item-orig-list { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: .6rem 0 0; }
.item-orig-list dt { color: var(--muted); }
.item-orig-list dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .item-orig-list { grid-template-columns: 1fr; } .item-orig-list dd { margin-bottom: .5rem; } }

/* ---- Product page sections: Description (open), Specifications, Reviews (views/partials/product-sections.php) ---- */
.pacc { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.pacc-item { border-bottom: 1px solid var(--line); }
.pacc-item > summary { display: flex; align-items: center; gap: .8rem; padding: 1.05rem .1rem; justify-content: flex-start; font-weight: 700; color: var(--strong); }
.pacc-item > summary::after, .pacc-item[open] > summary::after { content: none; display: none; }
.pacc-item > summary:hover .pacc-title { color: var(--scanner-hover); }
.pacc-item > summary:focus-visible { outline: 2px solid var(--scanner); outline-offset: 2px; border-radius: 4px; }
.pacc-title { font-family: var(--head); font-size: 1.3rem; letter-spacing: .02em; text-transform: uppercase; }
.pacc-rating { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; color: var(--muted); }
.pacc-count { font-size: .95rem; color: var(--muted); }
.pacc-chev { margin-left: auto; flex: none; color: var(--chrome); transition: transform .2s; }
.pacc-item[open] > summary .pacc-chev { transform: rotate(180deg); }
.pacc-body { padding: 0 .1rem 1.3rem; }
.pacc-body > :first-child { margin-top: 0; }
.pacc-body .product-ticks { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .pacc-chev { transition: none; } }

.spec-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.spec-table tr:nth-child(odd) { background: var(--panel); }
.spec-table th { width: 40%; color: var(--muted); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.stars { display: inline-flex; gap: 1px; line-height: 0; vertical-align: middle; }
.stars .star-bg { fill: var(--line); }
.stars .star-fg { fill: var(--amber); }
.stars.big svg { width: 24px; height: 24px; }
.review-avg { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.review-list { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.review { padding: 1rem 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; padding-top: .2rem; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.review-title { color: var(--strong); }
.review-meta { margin: .25rem 0 .5rem; font-size: .9rem; color: var(--muted); }
.review-verified { color: var(--ok); }
.review-body { white-space: normal; }
.review-reply { margin-top: .7rem; padding: .7rem .9rem; background: var(--panel); border-left: 3px solid var(--scanner); border-radius: 0 var(--r-card) var(--r-card) 0; font-size: .95rem; }
.review-cta { margin: .3rem 0 0; }
.review-form { margin-top: .4rem; padding: 1.1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); }
.review-form h3 { margin: 0 0 .6rem; }
.review-form-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .4rem; }
.review-remove { margin-top: .6rem; }
.star-pick { border: 0; padding: 0; margin: 0 0 .8rem; }
.star-pick legend { padding: 0; margin-bottom: .3rem; font-weight: 600; }
.star-pick-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.star-pick-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick-row label { cursor: pointer; margin: 0; line-height: 0; }
.star-pick-row svg { fill: var(--line); transition: fill .1s, transform .1s; }
.star-pick-row label:hover svg, .star-pick-row label:hover ~ label svg,
.star-pick-row input:checked ~ label svg { fill: var(--amber); }
.star-pick-row input:focus-visible + label svg { outline: 2px solid var(--scanner); outline-offset: 2px; border-radius: 4px; }

.admin-review { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.admin-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.admin-review-reply { margin: .6rem 0; }
.admin-review-reply > summary { padding: .3rem 0; font-weight: 600; font-size: .95rem; justify-content: flex-start; }
.admin-review-reply textarea { width: 100%; }
.review-setting { display: block; margin: 0 0 1rem; }

/* ---- Our own Replica Owners map (public/js/owners-map.js) ---------------------------------------------------- */
.owners-map { position: relative; height: clamp(360px, 62vh, 640px); margin: 1.4rem 0 .6rem; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #10141c 0%, #07090d 70%, #040507 100%); touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.owners-map:focus-visible { box-shadow: 0 0 0 2px var(--scanner); }
.owners-map .om-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); }
.om-svg { display: block; width: 100%; height: 100%; cursor: grab; }
.om-drag .om-svg { cursor: grabbing; }
.om-grid { fill: none; stroke: rgba(255, 255, 255, .05); stroke-width: .5; vector-effect: non-scaling-stroke; }
.om-land { fill: #1b1f27; stroke: #3a414d; stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.om-borders { fill: none; stroke: #2f3540; stroke-width: .6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.om-pin { cursor: pointer; outline: none; }
.om-pin .om-dot { fill: #ff2a1f; stroke: #ffd2cc; stroke-width: 1; vector-effect: non-scaling-stroke; }
.om-pin .om-dot.wip { fill: #ff9f1a; stroke: #ffe7c2; }
.om-pin .om-halo { fill: rgba(255, 42, 31, .16); stroke: rgba(255, 42, 31, .45); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .15s; }
.om-pin:hover .om-halo, .om-pin:focus-visible .om-halo, .om-pin.on .om-halo { fill: rgba(255, 42, 31, .38); }
.om-pin:focus-visible .om-halo { stroke: #fff; stroke-width: 2; }
.om-group .om-dot { fill: #c8150d; }
.om-num { fill: #fff; font-family: var(--head); font-weight: 700; text-anchor: middle; pointer-events: none; }
.om-pin.om-new .om-halo { animation: om-pulse 1.4s ease-out 3; transform-box: fill-box; transform-origin: center; }
@keyframes om-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.om-ui { position: absolute; top: .7rem; right: .7rem; display: flex; flex-direction: column; gap: .35rem; }
.om-btn, .om-chip, .om-close { font-family: inherit; }
.om-btn { width: 2.3rem; height: 2.3rem; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: rgba(12, 14, 18, .88); color: var(--strong); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.om-btn:hover { border-color: var(--scanner); color: #fff; }
.om-btn.om-home { font-size: 1.05rem; }
.om-count { position: absolute; left: .8rem; top: .7rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(12, 14, 18, .88); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); pointer-events: none; }
.om-chips { position: absolute; left: .8rem; bottom: 2rem; right: 3.5rem; display: flex; flex-wrap: wrap; gap: .35rem; pointer-events: none; }
.om-chip { pointer-events: auto; padding: .25rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(12, 14, 18, .88); color: var(--muted); font-size: .88rem; cursor: pointer; }
.om-chip:hover { color: var(--strong); }
.om-chip.on { border-color: var(--scanner); color: #fff; background: rgba(200, 21, 13, .35); }
.om-note { position: absolute; left: .8rem; bottom: .45rem; margin: 0; font-size: .72rem; color: rgba(255, 255, 255, .38); pointer-events: none; }
.om-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: .55rem 1rem; border-radius: 8px; background: rgba(0, 0, 0, .78); color: #fff; opacity: 0; transition: opacity .2s; pointer-events: none; }
.om-hint.on { opacity: 1; }
.om-card { position: absolute; z-index: 3; width: min(330px, calc(100% - 1rem)); max-height: calc(100% - 1rem); overflow: auto; padding: .9rem 1rem .8rem; border-radius: var(--r-card);
  background: rgba(14, 16, 21, .97); border: 1px solid var(--line); border-top: 3px solid var(--scanner); box-shadow: 0 10px 40px rgba(0, 0, 0, .6), 0 0 18px rgba(255, 42, 31, .18); user-select: text; -webkit-user-select: text; }
.om-card.sheet { left: .5rem !important; right: .5rem; bottom: .5rem; top: auto !important; width: auto; max-height: 62%; }
.om-close { position: absolute; top: .3rem; right: .4rem; width: 2rem; height: 2rem; padding: 0; border: 0; background: none; color: var(--muted); font-size: 1.5rem; cursor: pointer; }
.om-close:hover { color: #fff; }
.om-item + .om-item { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.om-item h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 2rem .2rem 0; font-size: 1.35rem; }
.om-tag { padding: .05rem .5rem; border-radius: 999px; font-family: var(--body, inherit); font-size: .72rem; letter-spacing: .02em; text-transform: none; color: #ffcf8a; border: 1px solid rgba(255, 159, 26, .5); }
.om-tag.done { color: #ffb3ad; border-color: rgba(255, 42, 31, .55); }
.om-who { margin: 0; font-weight: 700; color: var(--strong); }
.om-place, .om-insp { margin: .1rem 0 0; color: var(--muted); font-size: .93rem; }
.om-photos { display: flex; gap: .35rem; margin: .6rem 0 .2rem; overflow-x: auto; }
.om-photos img { display: block; width: 92px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.om-details { margin: .5rem 0 0; font-size: .93rem; white-space: pre-line; }
.om-links { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .5rem 0 0; font-size: .93rem; }
.om-failed .om-loading { color: var(--scanner); }
.owners-list { margin: .4rem 0 1.6rem; }
.owners-list > summary { justify-content: flex-start; gap: .5rem; padding: .4rem 0; font-weight: 700; }
.owners-list h3 { margin: 1rem 0 .3rem; font-size: 1.1rem; }
.owners-list ul { margin: 0; padding-left: 1.1rem; }
.om-full-page { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #040507; }
.om-full-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line); background: #0a0c10; }
.om-back { color: var(--strong); text-decoration: none; font-family: var(--head); letter-spacing: .03em; text-transform: uppercase; }
.owners-map.om-full { flex: 1; height: auto; margin: 0; border: 0; border-radius: 0; }
@media (max-width: 600px) { .owners-map { height: 56vh; } .om-chips { bottom: 1.6rem; right: .8rem; } .om-count { font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { .om-pin.om-new .om-halo { animation: none; } }
.owners-admin-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .7rem 1rem; margin: 0 0 1.2rem; }
.owners-import { flex-basis: 100%; }
.owners-import > summary { justify-content: flex-start; gap: .5rem; padding: .3rem 0; font-weight: 600; }
.owners-import form { display: grid; gap: .5rem; max-width: 640px; }
.pin-set { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .5rem 0 .2rem; }
.pin-set input { flex: 1 1 240px; }

/* Light look for the owners map (Admin > Owners > Map colours) */
.owners-map.om-light { background: radial-gradient(ellipse at 50% 45%, #f4f8fb 0%, #e3ebf2 75%, #d6e1ea 100%); border-color: #c9d3dc; }
.om-light .om-grid { stroke: rgba(30, 50, 80, .08); }
.om-light .om-land { fill: #ffffff; stroke: #a9b6c3; }
.om-light .om-borders { stroke: #c4ced8; }
.om-light .om-pin .om-dot { stroke: #fff; stroke-width: 1.5; }
.om-light .om-pin .om-halo { fill: rgba(220, 30, 20, .14); stroke: rgba(220, 30, 20, .5); }
.om-light .om-pin:hover .om-halo, .om-light .om-pin.on .om-halo { fill: rgba(220, 30, 20, .3); }
.om-light .om-pin:focus-visible .om-halo { stroke: #111; }
.om-light .om-btn, .om-light .om-count, .om-light .om-chip { background: rgba(255, 255, 255, .94); border-color: #c9d3dc; color: #39434f; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.om-light .om-btn:hover, .om-light .om-chip:hover { color: #111; border-color: var(--scanner); }
.om-light .om-chip.on { background: #d9150c; border-color: #d9150c; color: #fff; }
.om-light .om-note { color: rgba(30, 40, 55, .5); }
.om-light .om-loading { color: #5b6673; }
.om-light .om-card { background: rgba(255, 255, 255, .98); border-color: #c9d3dc; border-top-color: var(--scanner); color: #1d232b; box-shadow: 0 10px 34px rgba(20, 30, 45, .22); }
.om-light .om-card a { color: #b3120a; }
.om-light .om-who, .om-light .om-item h3 { color: #11161c; }
.om-light .om-place, .om-light .om-insp { color: #5b6673; }
.om-light .om-close { color: #6b7682; }
.om-light .om-close:hover { color: #111; }
.om-light .om-item + .om-item { border-top-color: #dde3e9; }
.om-light .om-photos img { border-color: #dde3e9; }
.om-light .om-tag { color: #9a5a00; border-color: rgba(214, 128, 0, .5); }
.om-light .om-tag.done { color: #b3120a; border-color: rgba(214, 20, 10, .45); }
.om-light-page { background: #e3ebf2; }
.om-theme-pick fieldset { display: flex; align-items: center; gap: .9rem; margin: 0; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: var(--r-card); }
.om-theme-pick legend { padding: 0 .3rem; font-size: .85rem; color: var(--muted); }
.om-theme-opt { display: inline-flex; align-items: center; gap: .4rem; margin: 0; cursor: pointer; }
.om-swatch { display: inline-block; width: 1.6rem; height: 1.1rem; border-radius: 4px; border: 1px solid var(--line); }
.om-swatch.dark { background: linear-gradient(135deg, #07090d 50%, #1b1f27 50%); }
.om-swatch.light { background: linear-gradient(135deg, #e3ebf2 50%, #fff 50%); }
.owners-add { max-width: 760px; }
.owners-add .inline-radios { display: flex; gap: 1.2rem; border: 0; padding: 0; margin: 0; }
.owners-add .inline-radios legend { padding: 0; margin-bottom: .2rem; font-weight: 600; }

/* Colourful countries (six groups, neighbours differ). Dark: deep jewel tones on a navy sea. Light: pastels on a blue sea. */
.owners-map { background: radial-gradient(ellipse at 50% 45%, #10284a 0%, #0a1a33 55%, #050d1c 100%); }
.om-grid { stroke: rgba(120, 170, 230, .10); }
.om-land { stroke: rgba(5, 12, 24, .85); stroke-width: .7; }
.om-c0 { fill: #2e5b8a; } .om-c1 { fill: #3d7a4f; } .om-c2 { fill: #8a6a2e; }
.om-c3 { fill: #6a4a8c; } .om-c4 { fill: #2f7f7f; } .om-c5 { fill: #8c5a3c; }
.om-pin .om-dot { fill: #ff2a1f; stroke: #fff; stroke-width: 1.4; }
.om-pin .om-dot.wip { fill: #ffb21e; stroke: #fff; }
.om-pin .om-halo { fill: rgba(255, 42, 31, .25); stroke: rgba(255, 255, 255, .55); }
.owners-map.om-light { background: radial-gradient(ellipse at 50% 45%, #cfe9fb 0%, #a9d5f2 60%, #8cc3e8 100%); border-color: #9cc4df; }
.om-light .om-grid { stroke: rgba(255, 255, 255, .45); }
.om-light .om-land { stroke: #ffffff; stroke-width: .9; }
.om-light .om-c0 { fill: #f7d58b; } .om-light .om-c1 { fill: #b9e0a5; } .om-light .om-c2 { fill: #f4b6a6; }
.om-light .om-c3 { fill: #d3bdf0; } .om-light .om-c4 { fill: #9fdccf; } .om-light .om-c5 { fill: #f9e79a; }
.om-light .om-pin .om-dot { fill: #e0140b; stroke: #fff; stroke-width: 1.6; }
.om-light .om-pin .om-dot.wip { fill: #ff8a00; }
.om-light .om-pin .om-halo { fill: rgba(224, 20, 11, .2); stroke: rgba(160, 10, 5, .55); }
.om-light .om-note { color: rgba(15, 40, 70, .6); }
.om-light-page { background: #a9d5f2; }
.om-swatch.dark { background: linear-gradient(135deg, #0a1a33 33%, #2e5b8a 33% 55%, #3d7a4f 55% 77%, #8a6a2e 77%); }
.om-swatch.light { background: linear-gradient(135deg, #a9d5f2 33%, #f7d58b 33% 55%, #b9e0a5 55% 77%, #d3bdf0 77%); }

/* Garage > Owners Map */
.garage-ownersmap { margin: 1.8rem 0; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); }
.garage-ownersmap .head-row { margin-top: 0; }
.garage-ownersmap h2 { margin: 0; }
.om-claim { margin: .6rem 0 1rem; padding: .8rem 1rem; border-left: 3px solid var(--amber); background: rgba(255, 178, 30, .07); border-radius: 0 var(--r-card) var(--r-card) 0; }
.om-claim p { margin: 0 0 .5rem; }
.om-claim-list { margin: 0 0 .7rem; padding-left: 1.1rem; }
.om-mine { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.om-mine-item { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .6rem; border: 1px solid var(--line); border-radius: var(--r-card); }
.om-mine-item img, .om-mine-noimg { width: 84px; height: 62px; object-fit: cover; border-radius: 6px; flex: none; }
.om-mine-noimg { background: linear-gradient(135deg, #10284a, #2e5b8a); }
.om-mine-text { flex: 1 1 220px; display: flex; flex-direction: column; gap: .15rem; align-items: flex-start; }
.om-mine-item .actions { margin: 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.owner-edit .om-show { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); font-weight: 600; }
.om-edit-photos { list-style: none; margin: 0 0 .4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.om-edit-photos li { display: flex; flex-direction: column; gap: .3rem; }
.om-edit-photos img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.om-delete { margin-top: 1.4rem; }
.om-garage { margin: .5rem 0 0; font-size: .93rem; font-weight: 600; }
.order-invoice { margin: -.4rem 0 .6rem; }
.order-invoice .btn svg { vertical-align: -3px; margin-right: .2rem; }
.orders-open { white-space: nowrap; }
.orders-open .btn + .btn { margin-left: .3rem; }
.invoice-settings { max-width: 720px; }

/* Admin > Dashboard > Website analytics */
.an-card { margin: 1.4rem 0 2rem; padding: 1.2rem 1.3rem 1rem; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--panel); --an-vis: #e8322a; --an-view: #4f8fd8; }
.an-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.an-head h2 { margin: 0; }
.an-tabs { margin: 0; }
.an-now { display: inline-flex; align-items: center; gap: .35rem; margin-left: .4rem; color: var(--strong); font-weight: 600; white-space: nowrap; }
.an-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: an-pulse 2s infinite; }
@keyframes an-pulse { 70% { box-shadow: 0 0 0 7px rgba(46, 204, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); } }
@media (prefers-reduced-motion: reduce) { .an-dot { animation: none; } }
.an-stats { margin: 1rem 0 1.2rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.an-stats > div { background: var(--bg); }
.an-chg { font-size: .8rem; font-weight: 600; vertical-align: middle; }
.an-chg.up { color: #2fbf71; } .an-chg.down { color: #ef6b5f; }
.an-sub { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.an-chart { position: relative; margin: 0; }
.an-chart svg { display: block; width: 100%; height: 240px; overflow: visible; touch-action: pan-y; }
.an-legend { display: flex; gap: 1.2rem; margin-bottom: .4rem; font-size: .9rem; color: var(--muted); }
.an-key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: .25rem; }
.an-key.visitors { background: var(--an-vis); } .an-key.views { background: var(--an-view); }
.an-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.an-axis { fill: var(--muted); font-size: 11px; }
.an-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.an-line.visitors { stroke: var(--an-vis); } .an-line.views { stroke: var(--an-view); }
.an-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.an-mark { stroke: var(--panel); stroke-width: 2; vector-effect: non-scaling-stroke; }
.an-mark.visitors { fill: var(--an-vis); } .an-mark.views { fill: var(--an-view); }
.an-tip { position: absolute; top: 1.6rem; z-index: 2; min-width: 9rem; padding: .5rem .7rem; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); font-size: .88rem; pointer-events: none; color: var(--text); }
.an-tip strong { display: block; margin-bottom: .2rem; color: var(--strong); }
.an-table-view { margin: .5rem 0 1rem; }
.an-table-view > summary { justify-content: flex-start; padding: .3rem 0; font-size: .9rem; color: var(--muted); }
.an-table-view .table-wrap { max-height: 320px; overflow: auto; }
.an-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem 1.4rem; }
.an-list h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.an-list ol { list-style: none; margin: 0; padding: 0; }
.an-list li { position: relative; display: flex; justify-content: space-between; gap: .8rem; padding: .32rem .5rem; font-size: .92rem; }
.an-bar { position: absolute; inset: 2px auto 2px 0; border-radius: 4px; background: rgba(79, 143, 216, .16); }
.an-k, .an-v { position: relative; }
.an-k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-v { font-variant-numeric: tabular-nums; color: var(--strong); font-weight: 600; }
.an-tz { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.an-tz label { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0; }
.an-tz select { width: auto; max-width: 260px; display: inline-block; margin: 0; padding-top: .3rem; padding-bottom: .3rem; }
.an-card > .hint { margin: .5rem 0 0; }

/* ---- Replica Owners page, Our Story style ---- */
.ow-stats { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.ow-stats li { padding: .45rem .9rem; border: 1px solid var(--glow-red); border-radius: 999px; background: rgba(15, 16, 20, .7); color: var(--muted); box-shadow: 0 0 10px -4px rgba(255, 42, 42, .5); }
.ow-stats strong { font-family: var(--head); font-size: 1.25rem; color: #fff; margin-right: .2rem; }
.ow-map-frame { padding: 6px; border: 1px solid var(--glow-red); border-radius: 14px; background: linear-gradient(180deg, #1b1d23, #0f1014); box-shadow: 0 0 22px -6px rgba(255, 42, 42, .45), inset 0 1px 0 rgba(255, 255, 255, .06); }
.ow-map-frame .owners-map { margin: 0; border-radius: 9px; border: 0; }
.ow-map-hint { margin: .6rem 0 0; }
.ow-list { margin-top: 2.6rem; }
.ow-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin: 0 0 1.2rem; }
.ow-search { flex: 1 1 260px; max-width: 420px; margin: 0; }
.ow-search input { width: 100%; color: #f2f3f5; padding-left: 2.3rem; background: #0f1014 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0aa' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .75rem 50% / 18px; border: 1px solid var(--line); border-radius: 999px; }
.ow-search input:focus { border-color: var(--scanner); box-shadow: 0 0 0 3px rgba(255, 42, 42, .2); outline: none; }
.ow-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ow-chip { padding: .35rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: #121318; color: var(--muted); font: inherit; font-size: .92rem; cursor: pointer; }
.ow-chip:hover { color: #fff; border-color: var(--glow-red); }
.ow-chip.on { color: #fff; border-color: var(--scanner); background: rgba(200, 21, 13, .3); box-shadow: 0 0 10px -3px rgba(255, 42, 42, .6); }
.ow-country { margin: 0 0 1.8rem; }
.ow-country[hidden], .ow-card[hidden] { display: none; }
.ow-country-head { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-family: var(--head); text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; color: #e9eaee; }
.ow-country-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--glow-red), transparent); }
.ow-count { min-width: 1.6rem; padding: .05rem .5rem; border-radius: 999px; background: var(--scanner); color: #fff; font-size: .8rem; text-align: center; letter-spacing: 0; }
.ow-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .9rem; }
.ow-card { display: flex; gap: .9rem; padding: .7rem; border: 1px solid var(--glow-red); border-radius: 12px; background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%); box-shadow: 0 0 12px -3px rgba(255, 42, 42, .25), inset 0 1px 0 rgba(255, 255, 255, .06); transition: box-shadow .2s, transform .2s; }
.ow-card:hover { box-shadow: 0 0 18px -2px rgba(255, 42, 42, .5), inset 0 1px 0 rgba(255, 255, 255, .08); transform: translateY(-1px); }
.ow-photo { position: relative; flex: none; width: 112px; height: 112px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; color: var(--chrome); background: radial-gradient(circle at 50% 40%, #2a2d35, #121318 75%); border: 1px solid rgba(255, 255, 255, .06); }
.ow-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ow-card:hover .ow-photo img { transform: scale(1.05); }
.ow-photo svg { width: 46px; height: 46px; opacity: .8; }
.ow-photos-n { position: absolute; left: .3rem; bottom: .3rem; padding: .05rem .4rem; border-radius: 4px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .7rem; }
.ow-body { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ow-body p { margin: 0; }
.ow-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.ow-replica { font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .02em; color: #fff; line-height: 1.1; }
.ow-status { padding: .05rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.ow-status.done { color: #ffb3ad; border: 1px solid rgba(255, 42, 31, .55); }
.ow-status.wip { color: #ffcf8a; border: 1px solid rgba(255, 159, 26, .5); }
.ow-name { font-weight: 700; color: var(--strong); }
.ow-place { display: flex; align-items: flex-start; gap: .25rem; color: var(--muted); font-size: .92rem; }
.ow-place svg { flex: none; color: var(--scanner); margin-top: .22em; }
.ow-insp { color: var(--muted); font-size: .88rem; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-links { display: flex; flex-wrap: wrap; gap: .3rem .5rem; margin-top: auto !important; padding-top: .35rem; font-size: .85rem; }
.ow-links a { padding: .1rem .55rem; border-radius: 6px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ow-links a:hover { border-color: var(--scanner); color: #fff; }
.ow-links .ow-onmap { border-color: var(--glow-red); color: #fff; }
.ow-form-panel .owners-form { max-width: 760px; }
@media (max-width: 520px) { .ow-cards { grid-template-columns: 1fr; } .ow-photo { width: 92px; height: 92px; } }
@media (prefers-reduced-motion: reduce) { .ow-card, .ow-photo img { transition: none; } }
.om-pin .om-hit { fill: transparent; stroke: none; pointer-events: all; }
.om-svg { -webkit-tap-highlight-color: transparent; }
/* The owners list as a closed-by-default glowing bar */
.ow-list.story { margin-top: 2.2rem; }
.ow-list-sum { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; cursor: pointer; list-style: none; justify-content: flex-start; }
.ow-list-sum::-webkit-details-marker { display: none; }
.ow-list-sum::after, .ow-list[open] > .ow-list-sum::after { content: none !important; display: none !important; }
.ow-list-sum .story-thumb { width: 84px; height: 64px; }
.ow-list-sum .story-thumb svg { width: 38px; height: 38px; }
.ow-list-sum .story-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.ow-list-n { min-width: 2.2rem; padding: .15rem .6rem; border-radius: 999px; background: var(--scanner); color: #fff; font-family: var(--head); font-size: 1.05rem; text-align: center; box-shadow: 0 0 10px -2px rgba(255, 42, 42, .7); }
.ow-chev { flex: none; color: var(--chrome); transition: transform .2s; }
.ow-list[open] > .ow-list-sum .ow-chev { transform: rotate(180deg); }
.ow-list:hover { box-shadow: 0 0 18px -2px rgba(255, 42, 42, .45), inset 0 1px 0 rgba(255, 255, 255, .08); }
.ow-list-body { padding: .4rem 1rem 1rem; border-top: 1px solid rgba(255, 42, 42, .25); }
.ow-list-body .ow-tools { margin-top: .8rem; }
@media (max-width: 520px) { .ow-list-sum .story-thumb { display: none; } .ow-list-body { padding: .3rem .6rem .8rem; } }
@media (prefers-reduced-motion: reduce) { .ow-chev { transition: none; } }
.seo-settings { max-width: 720px; }
.seo-preview { display: flex; flex-direction: column; gap: .15rem; margin: .4rem 0 .8rem; padding: .8rem 1rem; border-radius: 8px; background: #fff; font-family: Arial, sans-serif; max-width: 600px; }
.seo-p-url { color: #202124; font-size: .8rem; }
.seo-p-title { color: #1a0dab; font-size: 1.15rem; line-height: 1.3; }
.seo-p-desc { color: #4d5156; font-size: .85rem; line-height: 1.45; }
/* Rotate screen (games.js): the game frame fills the phone screen, turned a quarter turn */
.game-rotate-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: .7rem 0 0; }
.game-rotate-btn { display: inline-flex; align-items: center; gap: .45rem; }
.game-rotate-row .hint { margin: 0; font-size: .88rem; }
html.game-rotated, html.game-rotated body { overflow: hidden !important; height: 100%; }
.game-rot-back { position: fixed; inset: 0; z-index: 9998; background: #000; }
iframe.game-frame.rotated { position: fixed !important; left: 0; top: 0; z-index: 9999; max-height: none !important; aspect-ratio: auto !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform-origin: 0 0; }
.game-rot-bar { position: fixed; z-index: 10000; display: flex; gap: .4rem; }
.game-rot-bar button { width: 2.2rem; height: 2.2rem; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .65); color: #fff; font-size: 1.15rem; line-height: 1; cursor: pointer; }

/* ==== Discord-style chat rooms (hub-room.php, hub.js "dc"): rooms on the left, people on the right, messages grouped
   under one name and avatar, hover buttons, reactions, replies, @mentions and a NEW line. Knight Rider colours. ==== */
#hub-chat.dc { --dc-h: clamp(380px, calc(100vh - 19rem), 760px); position: relative; }
#hub-chat.dc.has-h { --dc-h: var(--chat-h); }
#hub-chat.dc .chat-cols { display: grid; grid-template-columns: 210px minmax(0, 1fr) 210px; gap: 0; align-items: stretch; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-chat); background: var(--panel); box-shadow: 0 0 0 1px rgba(255, 42, 42, .08), 0 18px 40px -20px rgba(0, 0, 0, .8); }
/* rooms column */
.dc-chan { position: relative; min-height: 0; background: linear-gradient(180deg, #0c0d10, var(--black)); border-right: 1px solid var(--line); }
.dc-chan-h, #hub-chat.dc .chat-side-h { margin: 0; padding: .95rem .95rem .45rem; font: 700 .76rem var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.dc-chan-h a { color: inherit; text-decoration: none; }
.dc-chan-h a:hover { color: var(--chrome); }
.dc-chan-list { position: absolute; inset: 2.55rem 0 0; list-style: none; margin: 0; padding: .1rem .5rem .8rem; overflow-y: auto; }
.dc-chan-list li { margin: 0 0 2px; }
.dc-ch { position: relative; display: flex; align-items: center; gap: .45rem; padding: .42rem .55rem; border-radius: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.dc-ch:hover { background: var(--panel-2); color: var(--chrome); }
.dc-ch.on { color: var(--strong); background: linear-gradient(90deg, rgba(255, 42, 42, .2), rgba(255, 42, 42, .04)); box-shadow: inset 3px 0 0 var(--scanner); }
.dc-ch.unread { color: var(--strong); }
.dc-ch.unread::before { content: ""; position: absolute; left: -.5rem; top: 50%; width: 4px; height: 8px; margin-top: -4px; border-radius: 0 4px 4px 0; background: var(--strong); }
.dc-hash { flex: none; width: 1rem; text-align: center; font-size: 1.3rem; line-height: 1; font-weight: 400; color: var(--muted); }
.dc-ch.on .dc-hash { color: var(--scanner); text-shadow: 0 0 8px var(--glow); }
.dc-chn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-badge { flex: none; min-width: 1.3rem; padding: 0 .38rem; border-radius: 99px; background: #3b404b; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.3rem; text-align: center; }
.dc-badge.at { background: var(--scanner); box-shadow: 0 0 10px var(--glow); }
/* middle: header bar, messages, box */
#hub-chat.dc .chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--panel); }
.dc-top { display: flex; align-items: center; gap: .6rem; min-height: 3.1rem; padding: .45rem .9rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.dc-title { display: flex; align-items: center; gap: .4rem; min-width: 0; margin: 0; font: 700 1.2rem var(--head); font-style: normal; letter-spacing: .03em; text-transform: none; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-title::before, .dc-title::after { display: none !important; }
.dc-title .dc-hash { color: var(--scanner); font-size: 1.5rem; text-shadow: 0 0 10px var(--glow); }
.dc-tabs { display: flex; gap: .25rem; margin-left: auto; flex: none; }
.dc-tabs a { padding: .22rem .75rem; border: 1px solid transparent; border-radius: var(--r-pill); color: var(--muted); font-size: .88rem; font-weight: 600; text-decoration: none; }
.dc-tabs a:hover { color: var(--chrome); border-color: var(--line); }
.dc-tabs a.on { color: var(--strong); border-color: var(--scanner); box-shadow: 0 0 10px -4px var(--glow); }
.dc-tog { display: none; position: relative; align-items: center; gap: .3rem; flex: none; height: 2.2rem; min-width: 2.2rem; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--chrome); font: 600 .85rem var(--body); cursor: pointer; }
.dc-tog:hover, .dc-tog[aria-expanded="true"] { border-color: var(--scanner); color: var(--strong); }
.dc-dot { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--scanner); box-shadow: 0 0 8px var(--glow); }
#hub-chat.dc .hub-log { position: relative; flex: none; height: var(--dc-h); max-height: none; min-height: 0; margin: 0; padding: 1.1rem 0 1rem; border: 0; border-radius: 0; background: transparent; font-size: .95rem; line-height: 1.42; }
/* one message: avatar | name, time / text / reactions */
#hub-chat.dc .hub-msg { position: relative; display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); padding: .2rem 4.8rem .2rem 0; margin: .85rem 0 0; border: 0; border-radius: 0; overflow-wrap: anywhere; }
#hub-chat.dc .hub-msg:first-child, #hub-chat.dc .dc-day + .hub-msg, #hub-chat.dc .dc-new + .hub-msg { margin-top: .3rem; }
#hub-chat.dc .hub-msg.cont { margin-top: 0; padding-top: .08rem; padding-bottom: .08rem; }
#hub-chat.dc .hub-msg:hover, #hub-chat.dc .hub-msg.act { background: rgba(255, 255, 255, .035); }
#hub-chat.dc .hub-msg > .av { grid-column: 1; grid-row: 2; justify-self: center; width: 2.5rem; height: 2.5rem; margin: .1rem 0 0; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4); }
#hub-chat.dc .hub-msg.cont > .av, #hub-chat.dc .hub-msg.cont .dc-h { display: none; }
#hub-chat.dc .dc-tm { display: none; grid-column: 1; grid-row: 2; justify-self: center; align-self: start; padding-top: .18rem; }
#hub-chat.dc .hub-msg.cont .dc-tm { display: block; visibility: hidden; }
#hub-chat.dc .hub-msg.cont:hover .dc-tm, #hub-chat.dc .hub-msg.cont.act .dc-tm { visibility: visible; }
#hub-chat.dc .dc-tm time { margin: 0; font-size: .66rem; color: var(--muted); }
#hub-chat.dc .dc-b { grid-column: 2; grid-row: 2; min-width: 0; }
#hub-chat.dc .dc-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .55rem; }
#hub-chat.dc .dc-h .who { font-weight: 700; font-size: 1rem; cursor: pointer; }
#hub-chat.dc .dc-h .who:hover { text-decoration: underline; }
#hub-chat.dc .hub-msg .colon { display: none; }
#hub-chat.dc .dc-when time { margin: 0; font-size: .74rem; color: var(--muted); }
#hub-chat.dc .dc-c .txt { white-space: pre-line; color: var(--text); }
#hub-chat.dc .dc-c .kemoji { vertical-align: -6px; }
#hub-chat.dc .hub-pic, #hub-chat.dc .hub-vid { margin-top: .35rem; }
#hub-chat.dc .hub-pic img { border-radius: 8px; max-height: 300px; }
.dc-ed { font-size: .7rem; color: var(--muted); }
.dc-at { padding: 0 .18rem; border-radius: 4px; background: rgba(255, 42, 42, .16); color: #ff9a9a; font-weight: 600; }
.dc-at.me { background: rgba(255, 178, 30, .2); color: var(--amber); }
#hub-chat.dc .hub-msg.dc-mentioned { background: rgba(255, 178, 30, .07); box-shadow: inset 3px 0 0 var(--amber); }
#hub-chat.dc .hub-msg.dc-mentioned:hover { background: rgba(255, 178, 30, .1); }
#hub-chat.dc .hub-msg.dc-replying-to { background: rgba(255, 42, 42, .09); box-shadow: inset 3px 0 0 var(--scanner); }
#hub-chat.dc .hub-msg.dc-flash { animation: dc-flash 1.6s ease-out; }
@keyframes dc-flash { 0%, 30% { background: rgba(255, 42, 42, .28); } 100% { background: transparent; } }
/* the "replying to" line above a reply, with a curved line from the avatar like Discord */
#hub-chat.dc .dc-ref { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: .35rem; min-width: 0; margin: 0 0 .2rem; font-size: .82rem; color: var(--muted); white-space: nowrap; cursor: pointer; }
#hub-chat.dc .dc-reply::before { content: ""; position: absolute; left: 1.78rem; top: .62rem; width: 1.55rem; height: .7rem; border: 2px solid #464b56; border-right: 0; border-bottom: 0; border-top-left-radius: 7px; }
#hub-chat.dc .dc-ref .av { width: 1.05rem; height: 1.05rem; margin: 0; flex: none; }
#hub-chat.dc .dc-ref-who { flex: none; font-weight: 700; }
#hub-chat.dc .dc-ref-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--chrome); opacity: .72; }
#hub-chat.dc .dc-ref .kemoji { width: 16px; height: 16px; vertical-align: -3px; }
#hub-chat.dc .dc-ref:hover .dc-ref-txt, #hub-chat.dc .dc-ref:focus-visible .dc-ref-txt { opacity: 1; }
#hub-chat.dc .dc-ref.gone { font-style: italic; cursor: default; }
/* reactions */
.dc-rx { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.dc-r { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--chrome); font: 700 .8rem var(--body); line-height: 1.3; cursor: pointer; }
.dc-r img { width: 18px; height: 18px; }
.dc-r:hover { border-color: #5a606c; }
.dc-r.on { border-color: var(--scanner); background: rgba(255, 42, 42, .15); color: #fff; box-shadow: 0 0 8px -3px var(--glow); }
/* hover buttons */
.dc-acts { position: absolute; top: -1.05rem; right: .9rem; z-index: 3; display: none; padding: .12rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); box-shadow: 0 6px 16px rgba(0, 0, 0, .55); }
#hub-chat.dc .hub-msg:hover > .dc-acts, #hub-chat.dc .hub-msg.act > .dc-acts, #hub-chat.dc .hub-msg:focus-within > .dc-acts { display: flex; }
#hub-chat.dc .hub-msg.editing > .dc-acts { display: none; }
.dc-acts button { display: grid; place-items: center; width: 2.05rem; height: 1.95rem; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--chrome); cursor: pointer; }
.dc-acts button:hover, .dc-acts button:focus-visible { background: #262a32; color: #fff; }
.dc-acts button.danger:hover { color: var(--danger); }
/* day lines and the NEW line */
#hub-chat.dc .dc-day { display: flex; align-items: center; margin: 1.3rem .9rem .3rem; color: var(--muted); font-size: .74rem; font-weight: 700; list-style: none; }
#hub-chat.dc .dc-day::before, #hub-chat.dc .dc-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#hub-chat.dc .dc-day span { padding: 0 .65rem; }
#hub-chat.dc .dc-new { position: relative; height: 0; margin: 1rem .9rem 0 3.6rem; border-top: 1px solid var(--scanner); list-style: none; box-shadow: 0 0 8px var(--glow); }
#hub-chat.dc .dc-new span { position: absolute; right: -.9rem; top: -.62rem; padding: .05rem .4rem; border-radius: 4px 0 0 4px; background: var(--scanner); color: #fff; font: 800 .64rem var(--body); letter-spacing: .06em; }
/* editing in place */
.dc-edit textarea { display: block; width: 100%; min-height: 2.6rem; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--black); color: var(--text); font: inherit; resize: vertical; }
.dc-edit textarea:focus { border-color: var(--scanner); outline: none; }
.dc-edit-row { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; }
.dc-edit-hint { margin: 0 auto 0 0; font-size: .74rem; color: var(--muted); }
/* the box: "Replying to" bar, @mention list, message box */
#hub-chat.dc .hub-err, #hub-chat.dc #hub-empty { margin: .4rem .9rem; }
#hub-chat.dc #hub-new { align-self: center; margin: -.4rem 0 .5rem; border-radius: var(--r-pill); }
.dc-replying { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 .9rem; padding: .35rem .5rem .35rem .8rem; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: #13151a; color: var(--muted); font-size: .86rem; }
.dc-x { width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 50%; background: #2a2e36; color: var(--chrome); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.dc-x:hover { background: var(--scanner); color: #fff; }
.dc-ment { margin: 0 .9rem .35rem; padding: .3rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .55); }
.dc-ment-i { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .38rem .55rem; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.dc-ment-i.on, .dc-ment-i:hover { background: rgba(255, 42, 42, .16); }
.dc-ment-i .av { width: 1.45rem; height: 1.45rem; margin: 0; }
.dc-ment-i .pn { font-weight: 700; }
.dc-here { margin-left: auto; font-size: .72rem; color: var(--ok); }
#hub-chat.dc .hub-form { margin: 0 .9rem .9rem; padding: .35rem; border: 1px solid var(--line); border-radius: 10px; background: #15171c; }
#hub-chat.dc .dc-replying:not([hidden]) ~ .hub-form { border-top-left-radius: 0; border-top-right-radius: 0; }
#hub-chat.dc .hub-form textarea { border: 1px solid #c9ced6; border-radius: 8px; background: #fff; color: #14171c; -webkit-text-fill-color: #14171c; caret-color: #14171c; box-shadow: none; }
#hub-chat.dc .hub-form textarea::placeholder { color: #6b7280; -webkit-text-fill-color: #6b7280; }
#hub-chat.dc .hub-form textarea:focus { border-color: var(--scanner); box-shadow: 0 0 0 2px rgba(255, 42, 42, .25); }
#hub-chat.dc .hub-form:focus-within { border-color: rgba(255, 42, 42, .6); box-shadow: 0 0 12px -6px var(--glow); }
/* people column */
#hub-chat.dc .chat-side { position: relative; width: auto; min-height: 0; padding: 0; border-left: 1px solid var(--line); background: linear-gradient(180deg, #0c0d10, var(--black)); }
#hub-chat.dc .chat-people { position: absolute; inset: 2.55rem 0 0; display: block; max-height: none; margin: 0; padding: .1rem .5rem .8rem; overflow-y: auto; border: 0; border-radius: 0; background: none; }
#hub-chat.dc .chat-people .pp { padding: .38rem .5rem; }
#hub-chat.dc .chat-people .av { width: 1.9rem; height: 1.9rem; }
/* the chat-look settings (gear) */
#hub-chat.dc.no-av .hub-msg > .av { visibility: hidden; }
#hub-chat.dc.no-time .dc-when, #hub-chat.dc.no-time .dc-tm { display: none !important; }
/* reaction picker */
.dc-pick { position: fixed; z-index: 1000; width: min(340px, calc(100vw - 12px)); padding: .45rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 12px 34px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 42, 42, .12); }
.dc-pick-q { display: flex; justify-content: space-between; margin-bottom: .4rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.dc-pick-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.3rem, 1fr)); max-height: 12.5rem; overflow-y: auto; }
.dc-pick button { padding: .22rem; border: 0; border-radius: 8px; background: none; line-height: 0; cursor: pointer; }
.dc-pick button:hover, .dc-pick button:focus-visible { background: rgba(255, 42, 42, .18); }
/* narrower screens: rooms and people become drawers, opened from the header bar */
@media (max-width: 1000px) {
  #hub-chat.dc .chat-cols { grid-template-columns: 200px minmax(0, 1fr); }
  #hub-chat.dc .chat-side { position: absolute; top: 0; bottom: 0; right: 0; z-index: 6; width: min(250px, 82%); transform: translateX(105%); transition: transform .2s ease; box-shadow: -10px 0 30px rgba(0, 0, 0, .6); }
  #hub-chat.dc.show-people .chat-side { transform: none; }
  #hub-chat.dc .dc-tog-people { display: inline-flex; }
  .dc-top { padding-right: 3.4rem; }   /* room for the chat-settings gear in the corner */
}
@media (max-width: 760px) {
  #hub-chat.dc { --dc-h: max(300px, calc(100dvh - 18rem)); }
  #hub-chat.dc .chat-cols { grid-template-columns: minmax(0, 1fr); border-radius: 8px; }
  #hub-chat.dc .dc-chan { position: absolute; top: 0; bottom: 0; left: 0; z-index: 6; width: min(300px, 85%); transform: translateX(-105%); transition: transform .2s ease; box-shadow: 10px 0 30px rgba(0, 0, 0, .6); }
  #hub-chat.dc.show-chan .dc-chan { transform: none; }
  #hub-chat.dc .dc-tog-chan { display: inline-flex; }
  .dc-top { padding: .4rem .5rem; gap: .4rem; }
  .dc-title { font-size: 1.05rem; }
  .dc-tabs a { padding: .2rem .5rem; font-size: .8rem; }
  #hub-chat.dc .hub-msg { grid-template-columns: 3.3rem minmax(0, 1fr); padding-right: .6rem; }
  #hub-chat.dc .hub-msg > .av { width: 2.15rem; height: 2.15rem; }
  #hub-chat.dc .dc-reply::before { left: 1.62rem; width: 1.25rem; }
  #hub-chat.dc .dc-new { margin-left: 3.3rem; }
  .dc-acts { right: .4rem; }
  #hub-chat.dc .hub-form, .dc-replying, .dc-ment { margin-left: .5rem; margin-right: .5rem; }
}

/* Discord chat: rooms column with links underneath, and full-window chat on computers */
.dc-chan-in { position: absolute; inset: 0; display: flex; flex-direction: column; }
.dc-chan-in .dc-chan-list { position: static; flex: 1 1 auto; min-height: 0; }
.dc-links { list-style: none; margin: 0; padding: .55rem .5rem .3rem; border-top: 1px solid var(--line); }
.dc-links li { margin: 0 0 1px; }
.dc-links a { display: flex; align-items: center; gap: .55rem; padding: .34rem .55rem; border-radius: 6px; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.dc-links a:hover { background: var(--panel-2); color: var(--strong); }
.dc-links img { flex: none; }
.dc-lang .lang-switch { display: flex; flex-wrap: wrap; gap: .1rem .6rem; justify-content: flex-start; margin: 0; padding: .2rem 1.05rem .75rem; font-size: .78rem; }
.dc-full { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.2rem; height: 2.2rem; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--chrome); cursor: pointer; }
.dc-full[hidden] { display: none; }
.dc-full:hover { border-color: var(--scanner); color: var(--strong); }
.dc-full .dc-full-off, .dc-fs .dc-full .dc-full-on { display: none; }
.dc-fs .dc-full .dc-full-off { display: inline; }
#hub-chat.dc .hub-log, .dc-chan-list, #hub-chat.dc .chat-people { overscroll-behavior: contain; }
/* computers and tablets (anything wider than a phone): the chat fills the window under the site menu */
@media (min-width: 761px) {
  .wrap.hub.dc-page { width: 100%; padding: 0 0 2.5rem; }
  .dc-page > .lang-switch, .dc-page > .hub-lang-row, .dc-page > .garage-link, .dc-page > .crumb, .dc-page > h1 { display: none; }
  .dc-page > .hub-notice { margin: .6rem 1.25rem; max-width: none; }
  .dc-page #hub-chat.dc > .hint, .dc-page .hub-rules-box { margin-inline: 1.25rem; }
  #hub-chat.dc .chat-cols { height: calc(100vh - var(--dc-head, 70px)); height: calc(100dvh - var(--dc-head, 70px)); grid-template-columns: 250px minmax(0, 1fr) 240px;
    border-width: 0 0 1px; border-radius: 0; box-shadow: none; }
  #hub-chat.dc .hub-log, #hub-chat.dc.has-h .hub-log { flex: 1 1 0; height: auto; min-height: 0; }
  .dc-fs .site-header { display: none; }
}

/* the language button on the community pages (same as the supplier pages) */
.hub-lang-row { display: flex; justify-content: flex-end; margin: 0 0 .5rem; }
.sup-lang.up .sup-lang-list { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }
.dc-lang { padding: .3rem .6rem .7rem; }
.dc-lang .sup-lang > summary { padding: .35rem .7rem; font-size: .85rem; color: var(--chrome); }
/* people in each room, in the room list */
.dc-ppl { display: inline-flex; align-items: center; gap: .15rem; flex: none; font-size: .74rem; font-weight: 700; color: var(--ok); opacity: .9; }
.dc-ppl svg { opacity: .85; }

/* alert buttons in the chat's room list, and the hidden Community number */
.cart-count[hidden] { display: none; }
.dc-alert { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .34rem .55rem; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 600 .84rem var(--body); text-align: left; cursor: pointer; }
.dc-alert::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.5-2.5h-5A2.5 2.5 0 0 0 12 22zm7-6V11a7 7 0 0 0-5.5-6.8V3.5a1.5 1.5 0 0 0-3 0v.7A7 7 0 0 0 5 11v5l-2 2v1h18v-1l-2-2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22a2.5 2.5 0 0 0 2.5-2.5h-5A2.5 2.5 0 0 0 12 22zm7-6V11a7 7 0 0 0-5.5-6.8V3.5a1.5 1.5 0 0 0-3 0v.7A7 7 0 0 0 5 11v5l-2 2v1h18v-1l-2-2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.dc-alert:hover { background: var(--panel-2); color: var(--strong); }
.dc-alert.on { color: var(--ok); }
.dc-alert[hidden] { display: none; }

/* YouTube links in chat-room messages: a card like Discord's (red edge, channel, title, then the video) */
.dc-yt { max-width: 460px; margin: .4rem 0 .1rem; padding: .55rem .75rem .75rem; border-left: 4px solid #ff0033; border-radius: 6px; background: #14161b; box-shadow: inset 0 0 0 1px var(--line); }
.dc-yt.portrait { max-width: 300px; }
.dc-yt-site { display: block; margin-bottom: .15rem; font-size: .76rem; color: var(--muted); }
.dc-yt-title { display: block; margin-bottom: .5rem; color: #6fb3ff; font-weight: 700; line-height: 1.3; text-decoration: none; }
.dc-yt-title:hover { text-decoration: underline; }
.dc-yt .lc-video { margin: 0; border-radius: 6px; }
.dc-yt .lc-video.portrait { width: 100%; }

/* ==== Discord layout, part 2: the icon rail on the far left, my name and settings at the bottom of the room list
   (with the affiliate box above it), deep red notice bars in the chat, and the "My settings" popup. ==== */
#hub-chat.dc .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr); }
.dc-rail { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 0; padding: 12px 0; background: #050506; border-right: 1px solid var(--line); }
.dc-rsep { width: 32px; height: 2px; margin: 2px 0; border-radius: 1px; background: var(--line); }
.dc-ri { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #1b1d22; color: var(--chrome); text-decoration: none; transition: border-radius .15s, background .15s, color .15s; }
.dc-ri svg { width: 24px; height: 24px; }
.dc-ri img { width: 28px; height: 28px; }
.dc-ri img.dc-ri-logo { width: 48px; height: 48px; border-radius: inherit; object-fit: cover; }
.dc-ri:hover, .dc-ri:focus-visible, .dc-ri.on { border-radius: 16px; background: var(--scanner); color: #fff; box-shadow: 0 0 14px -2px var(--glow); }
.dc-ri::before { content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 8px; margin-top: -4px; border-radius: 0 4px 4px 0; background: #fff; opacity: 0; transition: height .15s, margin .15s, opacity .15s; }
.dc-ri:hover::before { opacity: 1; height: 20px; margin-top: -10px; }
.dc-ri.on::before { opacity: 1; height: 40px; margin-top: -20px; }
/* the name shows beside the icon on hover, like Discord */
.dc-ri::after { content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; z-index: 50; transform: translate(-4px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  padding: .45rem .75rem; border-radius: 6px; background: #111214; color: #fff; font: 700 .9rem var(--body); box-shadow: 0 6px 18px rgba(0, 0, 0, .6); transition: opacity .12s, transform .12s; }
.dc-ri:hover::after, .dc-ri:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
.dc-rb { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; border: 3px solid #050506; background: #d4141c; color: #fff; font: 800 .7rem var(--body); }
.dc-rb[hidden] { display: none; }
/* affiliate box and my name at the bottom of the room list */
.dc-aff { flex: none; margin: .4rem .55rem .5rem; padding: .55rem .7rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: #101216; }
.dc-aff-h { margin: 0 0 .3rem; font: 700 .7rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dc-aff ul { list-style: none; margin: 0; padding: 0; }
.dc-aff li { margin: 0 0 .15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-aff a { color: var(--chrome); font-size: .86rem; font-weight: 600; }
.dc-aff a:hover { color: var(--strong); }
.dc-aff-note { margin: .3rem 0 0; font-size: .68rem; line-height: 1.3; color: var(--muted); }
.dc-me { flex: none; display: flex; align-items: center; gap: .25rem; padding: .45rem .5rem; border-top: 1px solid var(--line); background: #0a0b0d; }
.dc-me-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: .6rem; padding: .25rem .35rem; border: 0; border-radius: 6px; background: none; color: inherit; text-align: left; cursor: pointer; }
.dc-me-who:hover { background: var(--panel-2); }
.dc-me-av { position: relative; flex: none; }
.dc-me-av .av { display: block; width: 2.2rem; height: 2.2rem; margin: 0; }
.dc-me-dot { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%; border: 3px solid #0a0b0d; background: var(--ok); }
.dc-me-dot.off { background: #80848e; }
.dc-me-n { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dc-me-n strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.dc-me-n small { font-size: .75rem; color: var(--muted); }
.dc-me-gear { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; border: 0; border-radius: 6px; background: none; color: var(--chrome); cursor: pointer; }
.dc-me-gear:hover { background: var(--panel-2); color: #fff; }
.dc-me-gear svg { transition: transform .3s; }
.dc-me-gear:hover svg { transform: rotate(60deg); }
/* deep red notice bars in the chat: "N new messages since ...", replies from other rooms, and "New messages below" */
.dc-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; box-sizing: border-box; padding: .5rem 1rem; border: 0; border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #8f0b11, #6b070b); color: #fff; font: 700 .9rem var(--body); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.dc-bar-go { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; border: 0; background: none; color: #fff; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.dc-bar-go:hover { text-decoration: underline; }
.dc-bar time { color: #fff; font-size: inherit; margin: 0; }
.dc-bar-act { display: inline-flex; align-items: center; gap: .35rem; flex: none; padding: 0; border: 0; background: none; color: #fff; font: inherit; cursor: pointer; }
.dc-bar-act:hover { text-decoration: underline; }
.dc-unread { flex: none; margin: 0 .6rem; }
.dc-notices { flex: none; display: flex; flex-direction: column; gap: 4px; }
.dc-notices:empty { display: none; }
.dc-notice { margin: .35rem .6rem 0; border-radius: 8px; font-weight: 600; }
.dc-notice strong { font-weight: 800; }
#hub-chat.dc #hub-new.dc-below { align-self: stretch; margin: 0 .9rem .45rem; border-radius: 8px; cursor: pointer; }
#hub-chat.dc #hub-new.dc-below[hidden] { display: none; }
/* the "My settings" popup */
.dc-dlg { width: min(780px, 96vw); max-height: 88vh; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); box-shadow: 0 24px 70px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 42, 42, .15); }
.dc-dlg::backdrop { background: rgba(0, 0, 0, .7); }
.dc-dlg-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.dc-dlg-head .av { width: 2.6rem; height: 2.6rem; margin: 0; }
.dc-dlg-head h2 { margin: 0; font-size: 1.45rem; }
.dc-dlg-head h2::after { display: none; }
.dc-dlg-head .dc-x { margin-left: auto; width: 2rem; height: 2rem; font-size: 1.3rem; }
.dc-dlg-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); height: min(560px, calc(88vh - 4.6rem)); }
.dc-dlg-tabs { display: flex; flex-direction: column; gap: 2px; padding: .7rem .5rem; overflow-y: auto; border-right: 1px solid var(--line); background: #0c0d10; }
.dc-dlg-tabs button { padding: .55rem .75rem; border: 0; border-radius: 6px; background: none; color: var(--muted); font: 600 .95rem var(--body); text-align: left; cursor: pointer; }
.dc-dlg-tabs button:hover { background: var(--panel-2); color: var(--chrome); }
.dc-dlg-tabs button[aria-selected="true"] { background: rgba(255, 42, 42, .16); color: #fff; box-shadow: inset 3px 0 0 var(--scanner); }
.dc-dlg-panes { padding: 1rem 1.25rem 1.2rem; overflow-y: auto; }
.dc-dlg-panes section[hidden] { display: none; }
.chat-set-panel.in-dlg { position: static; width: auto; max-width: none; max-height: none; overflow: visible; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.dc-dlg .dc-alert { width: auto; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); font-size: .92rem; }
.dc-dlg .dc-alert.on { border-color: rgba(79, 209, 139, .5); }
.dc-priv .check { display: flex; align-items: center; gap: .55rem; margin: .4rem 0 .1rem; font-weight: 600; }
.dc-priv .hint { margin: 0 0 .7rem 1.75rem; }
.dc-langs, .dc-acct { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .35rem; }
.dc-langs a, .dc-acct a { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); font-weight: 600; text-decoration: none; }
.dc-langs a:hover, .dc-acct a:hover { border-color: var(--scanner); }
.dc-langs a[aria-current] { border-color: var(--scanner); }
.dc-langs a[aria-current] .sup-lang-code { background: var(--scanner); color: #fff; }
@media (min-width: 1001px) {
  #hub-chat.dc .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  #hub-chat.dc .chat-cols { grid-template-columns: 64px var(--dc-rooms) minmax(0, 1fr); }
  .dc-ri { width: 44px; height: 44px; }
  .dc-ri img.dc-ri-logo { width: 44px; height: 44px; }
  .dc-ri::before { left: -10px; }
}
@media (max-width: 760px) {
  #hub-chat.dc .chat-cols { grid-template-columns: minmax(0, 1fr); }
  .dc-rail { position: absolute; top: 0; bottom: 0; left: 0; z-index: 7; width: 64px; overflow-y: auto; transform: translateX(-105%); transition: transform .2s ease; }
  #hub-chat.dc.show-chan .dc-rail { transform: none; }
  #hub-chat.dc .dc-chan { left: 64px; width: min(290px, calc(100% - 64px)); transform: translateX(calc(-100% - 70px)); }
  #hub-chat.dc.show-chan .dc-chan { transform: none; }
  .dc-ri::after { display: none; }
  .dc-dlg-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: calc(88vh - 4.6rem); }
  .dc-dlg-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .dc-dlg-tabs button { flex: none; }
  .dc-dlg-tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--scanner); }
}

/* ==== The chat in the site's own style (as the community pages: dark panels with glowing red edges, Barlow Condensed
   capitals, the chrome slanted title, red gradient for what is selected) ==== */
#hub-chat.dc .chat-cols { border: 1px solid rgba(255, 42, 42, .45); border-radius: 12px; background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%);
  box-shadow: 0 0 16px -3px rgba(255, 42, 42, .32), inset 0 1px 0 rgba(255, 255, 255, .05); }
/* icon rail */
.dc-rail { background: linear-gradient(180deg, #121318, #0a0b0e); border-right: 1px solid rgba(255, 42, 42, .3); }
.dc-rsep { background: rgba(255, 42, 42, .3); }
.dc-ri { background: linear-gradient(180deg, #1f2128, #121318); border: 1px solid rgba(255, 42, 42, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.dc-ri:hover, .dc-ri:focus-visible, .dc-ri.on { border-color: #ff5a5a; background: radial-gradient(ellipse 70% 120% at 50% 100%, #ff4a4a, var(--scanner) 60%, #b3141b); box-shadow: 0 0 16px -2px rgba(255, 42, 42, .75); }
.dc-ri::after { border: 1px solid rgba(255, 42, 42, .5); background: linear-gradient(180deg, #1b1d23, #0f1014); font-family: var(--head); font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 0 14px -3px rgba(255, 42, 42, .5), 0 6px 18px rgba(0, 0, 0, .6); }
.dc-rb { border-color: #0f1014; background: var(--scanner); box-shadow: 0 0 8px rgba(255, 42, 42, .7); }
/* rooms column */
.dc-chan { background: linear-gradient(180deg, #17191f, #0e0f13); border-right: 1px solid rgba(255, 42, 42, .3); }
.dc-chan-h { padding: 1rem 1rem .5rem; }
.dc-chan-h, #hub-chat.dc .dc-chan-h { font-family: var(--head); font-size: 1.15rem; font-weight: 700; font-style: italic; letter-spacing: .06em; color: #f2f3f5; }
.dc-chan-h::after { content: ""; display: block; width: 2.6rem; height: 2px; margin-top: .3rem; background: var(--scanner); box-shadow: 0 0 8px rgba(255, 42, 42, .8); }
.dc-chan-in .dc-chan-list { padding-top: .35rem; }
.dc-ch { font-family: var(--head); font-size: 1.08rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border: 1px solid transparent; }
.dc-ch:hover { background: rgba(255, 42, 42, .08); border-color: rgba(255, 42, 42, .25); }
.dc-ch.on { color: #fff; border-color: #ff5a5a; background: radial-gradient(ellipse 80% 140% at 50% 100%, #ff4a4a, var(--scanner) 55%, #a8121a); box-shadow: 0 0 14px -2px rgba(255, 42, 42, .7); text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.dc-ch.on .dc-hash { color: #fff; text-shadow: none; }
.dc-ch.on .dc-ppl { color: #fff; }
.dc-badge { font-family: var(--body); }
.dc-aff { border-color: rgba(255, 42, 42, .4); background: linear-gradient(180deg, #1b1d23, #111216); box-shadow: 0 0 10px -3px rgba(255, 42, 42, .3); }
.dc-aff-h { font-family: var(--head); font-size: .9rem; font-style: italic; letter-spacing: .06em; color: #f2f3f5; }
.dc-me { border-top: 1px solid rgba(255, 42, 42, .35); background: linear-gradient(180deg, #121318, #0a0b0e); }
.dc-me-n strong { font-family: var(--head); font-size: 1.1rem; letter-spacing: .03em; }
.dc-me-dot { border-color: #0f1014; }
/* header bar: the room name in the chrome slanted title style */
.dc-top { border-bottom: 1px solid rgba(255, 42, 42, .35); background: linear-gradient(180deg, #1f2128, #15171c); }
.dc-title { font-size: 1.55rem; font-style: italic; text-transform: uppercase; letter-spacing: .02em; transform: skewX(-6deg); transform-origin: left bottom;
  background: linear-gradient(180deg, #fff 0%, #e4e7ec 40%, #8b919b 52%, #d9dde3 72%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.dc-title .dc-hash { -webkit-text-fill-color: var(--scanner); font-style: normal; }
.dc-tabs a { font-family: var(--head); font-size: 1rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; border-color: rgba(255, 42, 42, .35); background: linear-gradient(180deg, #1b1d23, #0f1014); color: var(--chrome); }
.dc-tabs a:hover { border-color: var(--scanner); color: #fff; }
.dc-tabs a.on { border-color: var(--scanner); color: #fff; box-shadow: 0 0 14px -2px rgba(255, 42, 42, .7); text-shadow: 0 0 8px rgba(255, 42, 42, .6); }
.dc-full, .dc-tog { border-color: rgba(255, 42, 42, .4); background: linear-gradient(180deg, #1b1d23, #0f1014); }
/* the messages: the page's dark background with its soft red glow */
#hub-chat.dc .chat-main { background: radial-gradient(900px 380px at 85% 0%, rgba(255, 42, 42, .07), transparent 60%), radial-gradient(700px 320px at 0% 100%, rgba(255, 42, 42, .05), transparent 60%), linear-gradient(180deg, #111216, #0b0c0f); }
#hub-chat.dc .hub-msg:hover, #hub-chat.dc .hub-msg.act { background: rgba(255, 42, 42, .05); }
#hub-chat.dc .dc-h .who { font-family: var(--head); font-size: 1.12rem; letter-spacing: .03em; }
#hub-chat.dc .dc-day { font-family: var(--head); font-size: .95rem; font-style: italic; letter-spacing: .06em; text-transform: uppercase; color: #c9ced6; }
#hub-chat.dc .dc-day::before, #hub-chat.dc .dc-day::after { background: linear-gradient(90deg, transparent, rgba(255, 42, 42, .45)); }
#hub-chat.dc .dc-day::after { background: linear-gradient(90deg, rgba(255, 42, 42, .45), transparent); }
.dc-acts { border-color: rgba(255, 42, 42, .45); background: linear-gradient(180deg, #1f2128, #15171c); box-shadow: 0 0 12px -3px rgba(255, 42, 42, .45), 0 6px 16px rgba(0, 0, 0, .55); }
.dc-acts button:hover, .dc-acts button:focus-visible { background: rgba(255, 42, 42, .18); }
.dc-r { border-color: rgba(255, 42, 42, .3); background: linear-gradient(180deg, #1b1d23, #121318); }
.dc-yt { background: linear-gradient(180deg, #1b1d23, #111216); box-shadow: inset 0 0 0 1px rgba(255, 42, 42, .25); }
/* the box at the bottom, as the other community forms */
#hub-chat.dc .hub-form { border-color: rgba(255, 42, 42, .45); background: linear-gradient(180deg, #1b1d23, #0f1014); box-shadow: 0 0 12px -3px rgba(255, 42, 42, .28), inset 0 1px 0 rgba(255, 255, 255, .05); }
.dc-replying, .dc-ment, .dc-pick { border-color: rgba(255, 42, 42, .4); background: linear-gradient(180deg, #1b1d23, #121318); }
/* "My settings" popup */
.dc-dlg { border-color: rgba(255, 42, 42, .5); background: linear-gradient(180deg, #1b1d23 0%, #0f1014 100%); box-shadow: 0 0 26px -4px rgba(255, 42, 42, .45), 0 24px 70px rgba(0, 0, 0, .75); }
.dc-dlg-head { border-bottom-color: rgba(255, 42, 42, .35); background: linear-gradient(180deg, #23252c, #17191e); }
.dc-dlg-head h2 { font-style: italic; text-transform: uppercase; font-size: 1.8rem; transform: skewX(-6deg); transform-origin: left bottom;
  background: linear-gradient(180deg, #fff 0%, #e4e7ec 40%, #8b919b 52%, #d9dde3 72%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dc-dlg-tabs { border-right-color: rgba(255, 42, 42, .3); background: linear-gradient(180deg, #17191f, #0e0f13); }
.dc-dlg-tabs button { font-family: var(--head); font-size: 1.08rem; letter-spacing: .05em; text-transform: uppercase; border: 1px solid transparent; }
.dc-dlg-tabs button[aria-selected="true"] { color: #fff; border-color: #ff5a5a; background: radial-gradient(ellipse 80% 140% at 50% 100%, #ff4a4a, var(--scanner) 55%, #a8121a); box-shadow: 0 0 14px -2px rgba(255, 42, 42, .7); }
.dc-dlg-panes .chat-set-panel h4 { font-family: var(--head); font-size: 1rem; font-style: italic; letter-spacing: .06em; color: #f2f3f5; }
.dc-langs a, .dc-acct a { border-color: rgba(255, 42, 42, .35); background: linear-gradient(180deg, #1b1d23, #121318); }
.dc-langs a:hover, .dc-acct a:hover { box-shadow: 0 0 12px -3px rgba(255, 42, 42, .6); }
.dc-dlg .dc-alert { border-color: rgba(255, 42, 42, .35); background: linear-gradient(180deg, #1b1d23, #121318); }
@media (max-width: 760px) {
  .dc-dlg-tabs button[aria-selected="true"] { box-shadow: 0 0 14px -2px rgba(255, 42, 42, .7); }
}
@media (min-width: 1001px) {
  #hub-chat.dc .chat-cols { border-width: 1px 0; border-radius: 0; }
}

/* avatars fill their whole circle: no coloured ring around them (the old avatar colour showed as that ring) */
.av { background-size: 100%; background-color: transparent !important; }
#hub-chat.dc .hub-msg > .av { box-shadow: none; }
.cs-av { background-size: 100% !important; background-color: transparent !important; }

/* the language button above the affiliate box in the room list */
.dc-chan-in .dc-lang { flex: none; padding: .3rem .55rem .1rem; }
.dc-chan-in .dc-lang .sup-lang > summary { border-color: rgba(255, 42, 42, .4); background: linear-gradient(180deg, #1b1d23, #0f1014); }

/* ==== News feed in a panel on the right of the chat (an iframe of the feed page in its "embed" style) ==== */
.dc-feed { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid rgba(255, 42, 42, .35); background: linear-gradient(180deg, #17191f, #0e0f13); }
.dc-feed[hidden] { display: none; }
.dc-feed-top { display: flex; align-items: center; gap: .5rem; min-height: 3.1rem; padding: .45rem .7rem .45rem 1rem; border-bottom: 1px solid rgba(255, 42, 42, .35); background: linear-gradient(180deg, #1f2128, #15171c); }
.dc-feed-title { flex: 1; margin: 0; font: 700 1.3rem var(--head); font-style: italic; text-transform: uppercase; letter-spacing: .03em; transform: skewX(-6deg); transform-origin: left bottom;
  background: linear-gradient(180deg, #fff 0%, #e4e7ec 40%, #8b919b 52%, #d9dde3 72%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dc-feed-title::after { display: none; }
.dc-feed-open { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 6px; color: var(--chrome); }
.dc-feed-open:hover { background: rgba(255, 42, 42, .15); color: #fff; }
.dc-feed-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: transparent; }
.dc-ri.open { border-radius: 16px; border-color: #ff5a5a; background: radial-gradient(ellipse 70% 120% at 50% 100%, #ff4a4a, var(--scanner) 60%, #b3141b); color: #fff; }
.dc-ri.open::before { opacity: 1; height: 40px; margin-top: -20px; }
#hub-chat.dc.show-feed .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) minmax(360px, 30%); }
@media (min-width: 1001px) {
  #hub-chat.dc.show-feed .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) minmax(380px, 30%); }
}
/* narrower screens: the panel slides over the chat from the right */
@media (max-width: 1200px) {
  #hub-chat.dc.show-feed .chat-cols { grid-template-columns: 64px var(--dc-rooms) minmax(0, 1fr); }
  .dc-feed { position: absolute; top: 0; right: 0; bottom: 0; z-index: 8; width: min(440px, 92%); box-shadow: -12px 0 30px rgba(0, 0, 0, .65); }
}
@media (max-width: 760px) {
  #hub-chat.dc.show-feed .chat-cols { grid-template-columns: minmax(0, 1fr); }
  .dc-feed { width: 100%; }
}
/* the feed page itself when it is inside the panel: no site header, footer or Community page top */
body.embed { background: #0e0f13; }
body.embed .site-header, body.embed .site-footer, body.embed .skip, body.embed .story-band, body.embed .affiliate-box,
body.embed .hub-lang-row, body.embed .garage-link, body.embed .hub > h1, body.embed .hub > .lede, body.embed .get-app,
body.embed .hub-me, body.embed .hub > .actions:not(.gx-add), body.embed .hub-switch, body.embed .narrow-feed > .crumb:not(:has(+ .feed-card)) { display: none !important; }
body.embed main { background: none !important; }
body.embed .wrap.hub { width: auto; padding: .8rem .75rem 2rem; }
body.embed .feed-wrap, body.embed .feed { max-width: none; }
body.embed .flash { margin: .5rem .75rem; }

/* ==== Pages opened from the icons, in the main chat window (an iframe), with a bar back to the room ==== */
.chat-main.viewing > *:not(.dc-view) { display: none !important; }
.dc-view { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.dc-view[hidden] { display: none; }
.dc-view-bar { display: flex; align-items: center; gap: .6rem; min-height: 3.1rem; padding: .45rem .7rem; border-bottom: 1px solid rgba(255, 42, 42, .35); background: linear-gradient(180deg, #1f2128, #15171c); }
.dc-view-back { display: inline-flex; align-items: center; gap: .35rem; flex: none; padding: .3rem .8rem .3rem .55rem; border: 1px solid rgba(255, 42, 42, .45); border-radius: var(--r-pill);
  background: linear-gradient(180deg, #1b1d23, #0f1014); color: var(--chrome); font: 600 1rem var(--head); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.dc-view-back:hover { border-color: var(--scanner); color: #fff; box-shadow: 0 0 12px -3px rgba(255, 42, 42, .6); }
.dc-view-back .dc-hash { color: var(--scanner); font-size: 1.1rem; width: auto; }
.dc-view-title { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1.3rem var(--head); font-style: italic; text-transform: uppercase; letter-spacing: .03em;
  transform: skewX(-6deg); transform-origin: left bottom; background: linear-gradient(180deg, #fff 0%, #e4e7ec 40%, #8b919b 52%, #d9dde3 72%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dc-view-title::after { display: none; }
.dc-view-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #0e0f13; }
/* pages inside the chat: room around them, without the page-wide margins */
body.embed .wrap { width: auto; max-width: none; padding-left: .9rem; padding-right: .9rem; }
body.embed main > .wrap:first-child, body.embed main > section:first-child { padding-top: .9rem; }
body.embed .admin-bar { display: none; }

/* Admin > Orders: "Send order to admin" sits on the same line as the invoice link */
.meta form.inline { display: inline; }
.btn.send-admin { padding: .2rem .65rem; font-size: .85rem; vertical-align: baseline; margin-left: .2rem; }

/* My account pages inside the settings popup */
.dc-acct-page { display: flex; flex-direction: column; height: 100%; min-height: 420px; }
.dc-acct-page[hidden], .dc-acct-home[hidden] { display: none; }
.dc-acct-bar { display: flex; align-items: center; gap: .7rem; margin: 0 0 .6rem; }
.dc-acct-title { font: 700 1.15rem var(--head); font-style: italic; text-transform: uppercase; letter-spacing: .03em; color: #f2f3f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-acct-frame { flex: 1 1 auto; width: 100%; min-height: 380px; border: 1px solid rgba(255, 42, 42, .3); border-radius: 8px; background: #0e0f13; }
.dc-dlg-panes:has(.dc-acct-page:not([hidden])) { display: flex; flex-direction: column; }
.dc-dlg-panes section[data-pane="account"]:has(.dc-acct-page:not([hidden])) { flex: 1; display: flex; flex-direction: column; }

/* narrow order cards (phones, the settings popup): stack View order and Invoice instead of clipping */
@media (max-width: 700px) {
  .orders-table .orders-open { display: flex; flex-direction: column; gap: .4rem; white-space: normal; }
  .orders-table .orders-open .btn + .btn { margin-left: 0; }
}

/* room list: categories, room type icons and emoji (like Discord) */
.dc-chan-list .dc-cat { margin: .9rem 0 .2rem; }
.dc-cat-h { display: flex; align-items: center; gap: .25rem; width: 100%; padding: .2rem .35rem; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 600 .82rem var(--head); letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.dc-cat-h:hover { color: #f2f3f5; }
.dc-cat-h svg { flex: none; transition: transform .15s; }
.dc-cat.shut .dc-cat-h svg { transform: rotate(-90deg); }
.dc-cat-list { list-style: none; margin: .25rem 0 0; padding: 0; }
.dc-cat.shut .dc-cat-list li:not(.keep) { display: none; }
.dc-kind svg { display: block; margin: 0 auto; }
.dc-emo { flex: none; font-size: 1.05rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; letter-spacing: 0; }
.dc-pipe { flex: none; width: 1px; height: 1.05em; background: rgba(255, 255, 255, .22); }
.dc-title .dc-emo { font-size: 1.15rem; margin-right: .1rem; }
.dc-topic-desc { flex: 0 1 auto; min-width: 0; padding-left: .7rem; margin-left: .2rem; border-left: 1px solid rgba(255, 255, 255, .15); color: var(--muted); font-size: .85rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .dc-topic-desc { display: none; } }
/* info / rules rooms: members read only */
.dc-ro { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0; padding: .85rem 1rem; border-top: 1px solid rgba(255, 42, 42, .25);
  background: #15171c; color: var(--muted); font-size: .92rem; }
.dc-ro svg { color: var(--scanner); }
/* forum rooms: the posts are the room's home, so no "back to the chat" there */
.dc-view.home [data-view-close] { display: none; }
/* the bar over pages opened in the main window (Games, forums, Garage...) looks like a chat room's: the slanted chrome
   title, a short description, and the same light mode / members / full screen / help buttons (moved across from the room's bar) */
.dc-view-bar .dc-view-title { flex: 0 1 auto; max-width: 60%; font: 700 1.55rem var(--head); font-style: italic; }
.dc-view-bar .dc-topic-desc { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-view-bar .dc-topic-desc[hidden] { display: block; visibility: hidden; padding: 0; border: 0; }
.dc-view-tools { display: flex; align-items: center; gap: .6rem; margin-left: auto; flex: none; }
.dc-view-tools:empty { display: none; }
.dc-view-bar .dc-feed-open { flex: none; }
@media (max-width: 700px) { .dc-view-tools .dc-theme-btn, .dc-view-tools .dc-help-btn { display: none; } }
.dc.forum .dc-tabs { display: none; }

/* ==== Forum rooms, laid out like Discord's forum channels (post cards, then each post opened like a chat) ==== */
.fp { max-width: 960px; }
.fp-desc { margin: -.3rem 0 1rem; color: var(--muted); }
.fp-bar { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; padding: .45rem .5rem .45rem .9rem; border: 1px solid rgba(255, 42, 42, .35); border-radius: 12px;
  background: linear-gradient(180deg, #1b1d23, #121318); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.fp-bar:focus-within { border-color: var(--scanner); box-shadow: 0 0 14px -4px rgba(255, 42, 42, .6); }
.fp-glass { flex: none; color: var(--muted); }
.fp-bar input[type=search] { flex: 1; min-width: 0; margin: 0; padding: .55rem .2rem; border: 0; background: none; box-shadow: none; color: #f2f3f5; font-size: 1.1rem; }
.fp-bar input[type=search]:focus { outline: none; }
.fp-bar input[type=search]::placeholder { color: var(--muted); }
.fp-newbtn { display: inline-flex; align-items: center; gap: .4rem; flex: none; white-space: nowrap; }
.fp-new { display: grid; gap: .6rem; margin: 0 0 1rem; padding: .9rem; border: 1px solid rgba(255, 42, 42, .35); border-radius: 12px; background: #15171c; }
.fp-new[hidden] { display: none; }
.fp-new input[type=text], .fp-new textarea { margin: 0; }
.fp-new-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fp-new-sp { flex: 1; }
.fp-photo { position: relative; display: inline-flex; align-items: center; gap: .4rem; max-width: 60%; padding: .4rem .8rem; border: 1px dashed rgba(255, 255, 255, .25); border-radius: var(--r-pill, 999px);
  color: var(--chrome); font-size: .92rem; cursor: pointer; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fp-photo:hover, .fp-photo:focus-within { border-color: var(--scanner); color: #fff; }
.fp-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fp-sort { position: relative; display: inline-block; margin: 0 0 1rem; }
.fp-sort > summary { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: var(--r-pill, 999px); background: #15171c;
  color: var(--chrome); font: 600 .95rem var(--body); cursor: pointer; list-style: none; }
.fp-sort > summary::-webkit-details-marker { display: none; }
.fp-sort > summary:hover, .fp-sort[open] > summary { border-color: rgba(255, 42, 42, .6); color: #fff; }
.fp-sort-menu { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; display: grid; min-width: 12rem; padding: .3rem; border: 1px solid rgba(255, 42, 42, .4); border-radius: 10px; background: #15171c; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.fp-sort-menu a { padding: .45rem .7rem; border-radius: 6px; color: var(--chrome); text-decoration: none; }
.fp-sort-menu a:hover { background: rgba(255, 42, 42, .15); color: #fff; }
.fp-sort-menu a[aria-current] { color: #fff; font-weight: 700; }
.fp-sort-menu a[aria-current]::before { content: "\2713  "; color: var(--scanner); }
.fp-found { margin: -.4rem 0 .8rem; color: var(--muted); }
.fp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.fp-older { margin: .9rem 0 .1rem; color: var(--muted); font: 600 .95rem var(--body); }
.fp-card { display: flex; gap: 1rem; align-items: stretch; padding: .85rem .9rem .8rem 1rem; border: 1px solid rgba(255, 42, 42, .22); border-radius: 12px;
  background: linear-gradient(180deg, #1a1c22, #121318); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.fp-card:hover, .fp-card:focus-visible { border-color: rgba(255, 42, 42, .65); box-shadow: 0 0 18px -6px rgba(255, 42, 42, .55); }
.fp-card.on { border-color: var(--scanner); box-shadow: 0 0 0 1px var(--scanner), 0 0 20px -6px rgba(255, 42, 42, .7); }
.fp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; }
.fp-title { font: 700 1.45rem/1.15 var(--head); letter-spacing: .02em; color: #f2f3f5; }
.fp-pin { margin-right: .35rem; font-size: 1rem; }
.fp-ex { color: var(--muted); font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-ex strong { font-weight: 700; }
.fp-meta { display: flex; align-items: center; gap: .55rem; margin-top: .2rem; color: var(--chrome); font-size: .95rem; }
.fp-rx { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border: 1px solid rgba(255, 42, 42, .3); border-radius: 8px; background: #121318; font-weight: 700; }
.fp-rx img { width: 20px; height: 20px; }
.fp-rep { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; }
.fp-rep svg { color: var(--chrome); }
.fp-dot { color: var(--muted); }
.fp-ago { color: var(--muted); }
.fp-thumb { flex: none; width: 108px; height: 108px; align-self: center; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, .08); }
.fp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 560px) {
  .fp-title { font-size: 1.2rem; }
  .fp-thumb { width: 72px; height: 72px; }
  .fp-ex { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .fp-newbtn { padding-left: .7rem; padding-right: .7rem; }
}
body.embed .fp-crumb { display: none; }
body.embed .fp { max-width: none; }

/* a post, opened: big title, the post and its replies as chat messages, and a message box at the bottom */
.fpost { max-width: 900px; }
.fpost-top { padding: .6rem 0 .2rem; }
.fpost-ico { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: .6rem; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a1d20, #17191f); color: #f2f3f5;
  border: 1px solid rgba(255, 42, 42, .35); }
.fpost-top h1 { margin: 0 0 .3rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.fpost-day { display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0 .6rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.fpost-day::before, .fpost-day::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fpm { display: flex; gap: .85rem; padding: .55rem .4rem; border-radius: 8px; }
.fpm:hover { background: rgba(255, 255, 255, .025); }
.fpm:target { background: rgba(255, 42, 42, .1); box-shadow: inset 3px 0 0 var(--scanner); }
.fpm > .av { flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%; }
.fpm-b { flex: 1; min-width: 0; }
.fpm-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; margin: 0 0 .15rem; color: var(--muted); font-size: .8rem; }
.fpm-h strong { font-size: 1.02rem; }
.fpm-op { display: inline-block; padding: .02rem .35rem; border-radius: 4px; background: var(--scanner); color: #fff; font: 800 .68rem var(--body); letter-spacing: .04em; vertical-align: 1px; }
.fpm-t { color: #e6e8ec; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.fpm-t .kemoji { width: 22px; height: 22px; vertical-align: -5px; }
.fpm-pic { margin-top: .5rem; }
.fpm-pic img { max-width: min(100%, 520px); height: auto; border-radius: 10px; }
.fpm-yt { position: relative; max-width: 520px; margin-top: .6rem; }
.fpm-rx { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .5rem; }
.fpm-rx form { margin: 0; display: inline; }
.fpm-rx .dc-r.on { border-color: var(--scanner); background: rgba(255, 42, 42, .18); color: #fff; }
.fpm-add { position: relative; display: inline-block; }
.fpm-add > summary { display: grid; place-items: center; width: 2rem; height: 1.75rem; border: 1px solid var(--line); border-radius: 8px; background: #15171c; color: var(--muted); cursor: pointer; list-style: none; }
.fpm-add > summary::-webkit-details-marker { display: none; }
.fpm-add > summary:hover, .fpm-add[open] > summary { color: #fff; border-color: rgba(255, 42, 42, .6); }
.fpm-picks { position: absolute; z-index: 6; left: 0; top: calc(100% + 4px); width: min(320px, calc(100vw - 2rem)); padding: .4rem;
  border: 1px solid rgba(255, 42, 42, .4); border-radius: 10px; background: #15171c; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.fpm-picks form { margin: 0; }
.fpm-picks .emo-grid button, .fpm-picks .emo-quick button { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.fpm-picks .emo-panel button:hover { background: rgba(255, 42, 42, .18); }
.fpm-acts { margin: .3rem 0 0; font-size: .82rem; color: var(--muted); opacity: .75; }
.fpm:hover .fpm-acts, .fpm:focus-within .fpm-acts { opacity: 1; }
.fpm-acts a, .fpm-acts .linklike { color: var(--muted); font-size: .82rem; }
.fpm-acts:has(.fpm-edit) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .9rem; }
.fpm-acts .fpm-edit { border: 0; }
.fpm-acts .fpm-edit[open] { flex-basis: 100%; }
.fpm-acts .fpm-edit > summary { display: inline; padding: 0; font-weight: 400; cursor: pointer; list-style: none; border: 0; }
.fpm-acts .fpm-edit > summary::after { content: none; }
.fpm-edit > summary::-webkit-details-marker { display: none; }
.fpm-edit[open] > summary { color: var(--text); }
.fpm-edit-f { display: grid; gap: .5rem; margin: .5rem 0 .6rem; max-width: 46rem; font-size: .95rem; color: var(--text); }
.fpm-edit-f label { display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); }
.fpm-edit-f .sr-only-label { font-size: 0; gap: 0; }
.fpm-edit-f input, .fpm-edit-f textarea { width: 100%; font: inherit; font-size: .95rem; }
.fpm-edit-b { margin: 0; }
.fpm:has(.fpm-edit[open]) .fpm-acts { opacity: 1; }
.fpm-edited { color: var(--muted); font-size: .78rem; }
.fpost-count { margin: 1rem 0 .2rem; color: var(--muted); font: 700 .85rem var(--body); text-transform: uppercase; letter-spacing: .06em; }
.fpost-send { position: sticky; bottom: 0; display: flex; align-items: flex-end; gap: .5rem; margin: 1rem 0 0; padding: .6rem 0 .8rem; background: linear-gradient(180deg, rgba(14, 15, 19, 0), #0e0f13 30%); }
.fpost-send textarea { flex: 1; min-height: 2.9rem; max-height: 220px; margin: 0; padding: .7rem .9rem; border-radius: 10px; resize: none; background: #fff; color: #14171c; }
.fpost-send textarea::placeholder { color: #6b7280; }
.fpost-send .btn { flex: none; }
body.embed .fpost { max-width: none; min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 0; }
body.embed .fpost .fpost-log { flex: 1; }
body.embed .fpost .fpost-top { padding-top: .2rem; }

/* the panel a post opens in, on the right of a forum room (in place of the news feed) */
.dc-post-title { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1.15rem var(--head); letter-spacing: .02em; color: #f2f3f5; }
.dc-post-title::after { display: none; }
#hub-chat.dc.show-post .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) minmax(420px, 46%); }
@media (min-width: 1001px) {
  #hub-chat.dc.show-post .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) minmax(460px, 46%); }
}
@media (max-width: 1200px) {
  #hub-chat.dc.show-post .chat-cols { grid-template-columns: 64px var(--dc-rooms) minmax(0, 1fr); }
  .dc-post { width: min(640px, 96%); }
}
@media (max-width: 760px) {
  #hub-chat.dc.show-post .chat-cols { grid-template-columns: minmax(0, 1fr); }
  .dc-post { width: 100%; }
}
.fp-sort > summary::after, .fpm-add > summary::after { display: none !important; content: none !important; }
.fp-list > li { min-width: 0; }
.fp-card { min-width: 0; }
.fp-newbtn svg { margin-right: .1rem; }
.fpm.fpm-new { background: rgba(255, 42, 42, .1); box-shadow: inset 3px 0 0 var(--scanner); }
/* phones: a page shown in the chat window (a forum, Games, Friends...) gets the full chat height, not just its top bar */
@media (max-width: 760px) {
  #hub-chat.dc .chat-main.viewing { min-height: calc(100vh - 9rem); min-height: calc(100dvh - 9rem); display: flex; flex-direction: column; }
  #hub-chat.dc .chat-main.viewing .dc-view { flex: 1 1 auto; }
}
.emoji-pick { max-width: 22rem; font-size: 1.05rem; }

/* "Welcome, NAME!" messages in the welcome room */
#hub-chat.dc .hub-msg.dc-sys { display: flex; align-items: flex-start; margin-top: .35rem; padding-top: .2rem; padding-bottom: .2rem; }
#hub-chat.dc .dc-sys .dc-sys-ico { flex: none; display: grid; place-items: center; width: 3.6rem; height: 1.6rem; color: #3ba55d; }
#hub-chat.dc .dc-sys .dc-b { flex: 1; min-width: 0; }
#hub-chat.dc .dc-sys .dc-c { line-height: 1.6rem; }
#hub-chat.dc .dc-sys .dc-c { color: var(--muted); }
#hub-chat.dc .dc-sys .who { font-weight: 700; cursor: pointer; }
#hub-chat.dc .dc-sys .dc-when { margin-left: .3rem; font-size: .75rem; color: var(--muted); opacity: .8; }
.csv-cols ul { margin: .4rem 0 0; padding-left: 1.2rem; } .csv-cols li { margin: .2rem 0; } .csv-cols summary { cursor: pointer; color: var(--chrome); }
/* the report of the last product CSV upload (Admin > Products) */
.csv-report { margin: 1rem 0 0; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.csv-report.has-errs { border-color: rgba(255, 170, 0, .55); }
.csv-report h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.csv-errs { margin: .5rem 0 0; padding-left: 1.4rem; max-height: 22rem; overflow-y: auto; }
.csv-errs li { margin: .25rem 0; color: #ffd27a; }
.csv-report .ok-note { margin: .4rem 0 0; color: #5fd38a; }
.to-pending { display: flex; align-items: center; gap: .6rem; margin: 0 0 1rem; }
/* forum posts with something I haven't read */
.fp-card.unread { border-color: rgba(255, 42, 42, .55); box-shadow: inset 4px 0 0 var(--scanner); }
.fp-card:not(.unread) .fp-title { color: #c9cdd4; }
.fp-title .fp-new { display: inline-block; margin-right: .5rem; padding: .05rem .45rem; border-radius: 6px; background: var(--scanner); color: #fff;
  font: 800 .72rem/1.5 var(--body); letter-spacing: .06em; text-transform: uppercase; vertical-align: .25em; }
/* unread rooms stand out in the room list: bright name, a white bar at the left edge, the count on the right */
.dc-chan-list .dc-ch { position: relative; }
.dc-ch:not(.on):not(.unread) .dc-chn { color: #8b919c; }
.dc-ch.unread .dc-chn { color: #fff; font-weight: 800; }
.dc-ch.unread::before { left: .2rem; width: 4px; z-index: 1; height: 12px; margin-top: -6px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }

/* community rules (the rules page and the popup new members agree in) */
.rules-list { margin: .6rem 0 1rem; padding-left: 0; list-style: none; counter-reset: rule; display: grid; gap: .55rem; }
.rules-list li { counter-increment: rule; position: relative; padding: .7rem .9rem .7rem 3rem; border: 1px solid rgba(255, 42, 42, .22); border-radius: 10px; background: linear-gradient(180deg, #1a1c22, #121318); line-height: 1.5; }
.rules-list li::before { content: counter(rule); position: absolute; left: .8rem; top: .62rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--scanner); color: #fff; font: 800 .85rem var(--body); }
.rules-list strong { color: #f2f3f5; }
.rules-list span { color: var(--muted); }
.rules-agree { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0; padding: .8rem 0 0; border-top: 1px solid var(--line); }
.rules-agree .check { margin: 0; }
.dc-rules-dlg { width: min(720px, 94vw); max-height: 90vh; }
.dc-rules-dlg .rules-list { max-height: 55vh; overflow-y: auto; padding-right: .3rem; }
.hub-rules-page { max-width: 820px; }
.dc-rules-dlg > .hint { margin: .2rem 1.3rem .4rem; }
.dc-rules-dlg .rules-list { margin: .4rem 1.3rem .8rem; }
.dc-rules-dlg .rules-agree { padding: .9rem 1.3rem 1.1rem; }
.fp-who { cursor: context-menu; } .fpost .fp-who:hover, .fpost .fp-who:focus-visible { text-decoration: underline; outline: none; } .fp-menu { z-index: 2000; }
/* editing a private message in place */
.dm-edited { font-size: .72rem; color: var(--muted); }
.hub-msg .dm-edit { margin-top: .3rem; }
.hub-msg .dm-edit textarea { width: 100%; min-height: 2.6rem; margin: 0; padding: .45rem .6rem; border-radius: 8px; background: #fff; color: #14171c; resize: vertical; font: inherit; }
.dm-edit-row { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 0; }
.dm-edit-hint { font-size: .72rem; color: var(--muted); }
/* emoji suggestions while typing :name (like Discord) */
.emoji-sug { position: fixed; z-index: 3000; display: grid; gap: 1px; padding: .35rem; border: 1px solid rgba(255, 42, 42, .45); border-radius: 10px;
  background: linear-gradient(180deg, #1b1d23, #0f1014); box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 16px -6px rgba(255, 42, 42, .5); }
.emoji-sug-head { margin: 0 0 .2rem; padding: .1rem .45rem; font: 700 .7rem var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.emoji-sug button { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .3rem .45rem; border: 0; border-radius: 6px; background: none; color: #f2f3f5; font: 600 .92rem var(--body); text-align: left; cursor: pointer; }
.emoji-sug button.on { background: rgba(255, 42, 42, .2); }
.emoji-sug button small { margin-left: auto; color: var(--muted); font-weight: 400; }

/* ==== member list (people icon in the top bar), between the chat and the news feed, like Discord ==== */
.dc-mem-btn.on { border-color: var(--scanner); color: #fff; background: rgba(255, 42, 42, .18); }
.dc-members { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-left: 1px solid rgba(255, 42, 42, .25); background: linear-gradient(180deg, #15171c, #0e0f13); }
.dc-members[hidden] { display: none; }
.dc-mem-top { display: flex; align-items: center; gap: .5rem; min-height: 3.1rem; padding: .45rem .6rem .45rem 1rem; border-bottom: 1px solid rgba(255, 42, 42, .35); background: linear-gradient(180deg, #1f2128, #15171c); }
.dc-mem-top h2 { flex: 1; margin: 0; font: 700 1.1rem var(--head); font-style: italic; text-transform: uppercase; letter-spacing: .04em; color: #f2f3f5; }
.dc-mem-top h2::after { display: none; }
.dc-mem-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: .4rem .5rem 1rem; overscroll-behavior: contain; }
.dc-mem-h { margin: .9rem .5rem .3rem; font: 700 .76rem var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dc-mem-list { list-style: none; margin: 0; padding: 0; }
.dc-mem { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .32rem .5rem; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; }
.dc-mem:hover, .dc-mem:focus-visible { outline: none; }
.dc-mem:not(.np):hover, .dc-mem:not(.np):focus-visible { background: rgba(255, 255, 255, .06); }
.dc-mem:not(.on) { opacity: .45; }
.dc-mem:not(.on):hover { opacity: .85; }
.dc-mem-av { position: relative; flex: none; width: 2.1rem; height: 2.1rem; }
.dc-mem-av .av { display: block; width: 100%; height: 100%; border-radius: 50%; }
.dc-mem-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border: 3px solid #121318; border-radius: 50%; background: #747f8d; }
.dc-mem.on .dc-mem-dot { background: #3ba55d; }
.dc-mem-txt { display: flex; flex-direction: column; min-width: 0; }
.dc-mem-name { font: 700 .98rem var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-mem-txt small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-mem-more { margin: .8rem .6rem; color: var(--muted); font-size: .82rem; }
/* columns: rail, rooms, chat, members (and the news feed or a post) */
#hub-chat.dc.show-members .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) var(--dc-mem-w, 240px); }
#hub-chat.dc.show-members.show-feed .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) calc(var(--dc-mem-w, 240px) - 10px) minmax(340px, 28%); }
#hub-chat.dc.show-members.show-post .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) calc(var(--dc-mem-w, 240px) - 10px) minmax(420px, 40%); }
@media (max-width: 1200px) {
  #hub-chat.dc.show-members .chat-cols, #hub-chat.dc.show-members.show-feed .chat-cols, #hub-chat.dc.show-members.show-post .chat-cols { grid-template-columns: 64px var(--dc-rooms) minmax(0, 1fr) min(calc(var(--dc-mem-w, 240px) - 20px), 300px); }
}
@media (max-width: 1000px) {   /* tablets in portrait and phones: the list slides over the chat from the right */
  #hub-chat.dc.show-members .chat-cols, #hub-chat.dc.show-members.show-feed .chat-cols, #hub-chat.dc.show-members.show-post .chat-cols { grid-template-columns: 64px var(--dc-rooms) minmax(0, 1fr); }
  .dc-members { position: absolute; top: 0; right: 0; bottom: 0; z-index: 7; width: min(280px, 85%); box-shadow: -12px 0 30px rgba(0, 0, 0, .65); }
}
@media (max-width: 760px) {
  #hub-chat.dc.show-members .chat-cols, #hub-chat.dc.show-members.show-feed .chat-cols, #hub-chat.dc.show-members.show-post .chat-cols { grid-template-columns: minmax(0, 1fr); }
}
/* member list + full screen buttons sit at the right-hand end of the room's top bar */
.dc-top .dc-mem-btn { margin-left: auto; }
/* light / dark switch, first of the buttons on the right of the top bar */
.dc-top .dc-theme-btn { margin-left: auto; }
.dc-top .dc-theme-btn + .dc-mem-btn { margin-left: 0; }
.dc-theme-btn .lk-moon { display: none; }
.comm-light .dc-theme-btn .lk-sun { display: none; }
.comm-light .dc-theme-btn .lk-moon { display: inline; }

/* ==== status dots (Online green, Idle amber moon, Do Not Disturb red bar, Invisible grey ring), like Discord ==== */
.dc-me-dot.st-idle, .dc-mem.st-idle .dc-mem-dot { background: radial-gradient(circle at 28% 28%, #15171c 0 38%, transparent 40%), #f0b232; }
.dc-me-dot.st-dnd, .dc-mem.st-dnd .dc-mem-dot { background: linear-gradient(#fff, #fff) center / 55% 22% no-repeat, #f23f43; }
.dc-me-dot.st-invisible, .dc-mem.st-invisible .dc-mem-dot { background: radial-gradient(circle, #15171c 0 30%, transparent 32%), #80848e; }

/* ==== the card from your name at the bottom left ==== */
.dc-card { position: fixed; z-index: 60; width: min(330px, calc(100vw - 12px)); padding-bottom: .7rem; border: 1px solid rgba(255, 42, 42, .4); border-radius: 14px; background: #121318; box-shadow: 0 18px 50px rgba(0, 0, 0, .75), 0 0 22px -8px var(--scanner); }
.dc-card[hidden] { display: none; }
.dc-card-banner { height: 92px; border-radius: 13px 13px 0 0; background: radial-gradient(ellipse 70% 120% at 80% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(135deg, var(--me, #d4141c) 40%, color-mix(in srgb, var(--me, #d4141c) 55%, #000)); }
.dc-card-av { position: relative; width: 92px; height: 92px; margin: -50px 0 0 16px; border-radius: 50%; border: 6px solid #121318; background: #121318; }
.dc-card-av .av { display: block; width: 100%; height: 100%; margin: 0; border-radius: 50%; }
.dc-card-av .dc-me-dot { right: 0; bottom: 2px; width: 24px; height: 24px; border-width: 5px; border-color: #121318; }
.dc-card-who { display: flex; flex-direction: column; padding: .35rem 1.1rem .7rem; line-height: 1.25; }
.dc-card-who strong { font: 700 1.45rem var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-card-who small { color: var(--muted); font-size: .85rem; }
.dc-card-box { margin: 0 .7rem .55rem; padding: .3rem; border: 1px solid var(--line); border-radius: 10px; background: #1a1c22; }
.dc-card-box hr { margin: .2rem .5rem; border: 0; border-top: 1px solid var(--line); }
.dc-card-item { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .6rem .65rem; border: 0; border-radius: 7px; background: none; color: var(--chrome); font: 600 1rem var(--body); text-align: left; text-decoration: none; cursor: pointer; }
.dc-card-item:hover, .dc-card-item:focus-visible, .dc-card-item[aria-expanded="true"] { background: rgba(255, 255, 255, .07); color: var(--strong); outline: none; }
.dc-card-item > span:not(.dc-me-dot) { flex: 1; }
.dc-card-item svg { flex: none; color: var(--muted); }
.dc-card-item .dc-me-dot { position: static; flex: none; width: 13px; height: 13px; border: 0; margin: 0 3px; }
.dc-card-chev { color: var(--muted); font-size: 1.35rem; line-height: 1; }
.dc-status-menu { position: absolute; z-index: 2; width: 290px; max-width: calc(100vw - 20px); padding: .35rem; border: 1px solid rgba(255, 42, 42, .4); border-radius: 12px; background: #17191f; box-shadow: 0 14px 40px rgba(0, 0, 0, .7); }
.dc-status-menu[hidden] { display: none; }
.dc-status-menu hr { margin: .25rem .5rem; border: 0; border-top: 1px solid var(--line); }
.dc-status-menu button { display: flex; align-items: flex-start; gap: .8rem; width: 100%; padding: .6rem .7rem; border: 0; border-radius: 7px; background: none; color: var(--chrome); text-align: left; cursor: pointer; }
.dc-status-menu button:hover, .dc-status-menu button:focus-visible { background: rgba(255, 255, 255, .07); color: var(--strong); outline: none; }
.dc-status-menu button[aria-checked="true"] b::after { content: " \2713"; color: var(--ok); }
.dc-status-menu .dc-me-dot { position: static; flex: none; width: 14px; height: 14px; margin-top: .25rem; border: 0; }
.dc-status-menu b { display: block; font: 600 1rem var(--body); }
.dc-status-menu small { display: block; margin-top: .1rem; color: var(--muted); font-size: .8rem; line-height: 1.3; }
/* the rooms column: wider so long room names fit (300px on a computer, a little less on smaller screens) */
#hub-chat.dc { --dc-rooms: 310px; }
@media (max-width: 1400px) { #hub-chat.dc { --dc-rooms: 280px; } }
@media (max-width: 1200px) { #hub-chat.dc { --dc-rooms: 250px; } }
@media (max-width: 1000px) { #hub-chat.dc { --dc-rooms: 230px; } }
/* the status menu slides in a little from the right */
.dc-status-menu.in { animation: dc-st-in .18s cubic-bezier(.2, .8, .3, 1); }
@keyframes dc-st-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dc-status-menu.in { animation: none; } }
/* my profile card: Discord's size and place - 300px wide, lined up with the left of the bar at the bottom, just above it */
.dc-card { width: min(300px, calc(100vw - 12px)); border-radius: 8px; padding-bottom: 1.2rem; }
.dc-card-banner { height: 104px; border-radius: 7px 7px 0 0; }
.dc-card-av { width: 90px; height: 90px; margin: -49px 0 0 11px; border-width: 5px; }
.dc-card-av .dc-me-dot { width: 24px; height: 24px; border-width: 5px; }
.dc-card-who { padding: .45rem 1.05rem .85rem; }
.dc-card-who strong { font-size: 1.4rem; }
.dc-card-box { margin: 0 17px 12px; padding: 0 .35rem; border-radius: 8px; }
.dc-card-box:last-child { margin-bottom: 0; }
.dc-card-item { gap: .8rem; min-height: 49px; padding: .5rem .6rem; font-size: 1rem; }
.dc-card-box hr { margin: 0 .5rem; }
.dc-status-menu { width: 260px; }

/* ==== Invite friends (popup from the profile card) ==== */
.dc-dlg.dc-invite-dlg { width: min(520px, 94vw); }
.dc-invite-body { padding: 1rem 1.2rem 1.3rem; }
.dc-invite-body > p:first-child { margin-top: 0; color: var(--chrome); }
.dc-invite-link { display: flex; gap: .5rem; margin: .8rem 0; }
.dc-invite-link input { flex: 1; min-width: 0; font: 600 1rem var(--body); }
.dc-invite-share { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.dc-fb { display: inline-flex; align-items: center; gap: .4rem; }
.dc-fb svg { color: #1877f2; }
.dc-invite-count { margin: 0; font-weight: 700; color: var(--strong); }
.dc-invite-names { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
/* "X invited you" on the community page */
.hub-invited { display: flex; align-items: center; gap: .9rem; margin: 1rem 0 1.2rem; padding: .9rem 1.1rem; border: 1px solid rgba(255, 42, 42, .45); border-radius: 12px; background: linear-gradient(180deg, #1b1d23, #0f1014); box-shadow: 0 0 22px -10px var(--scanner); }
.hub-invited .av { flex: none; width: 3rem; height: 3rem; margin: 0; border-radius: 50%; }
.hub-invited p { margin: 0; font-size: 1.05rem; }
.hub-invited p span { display: block; margin-top: .15rem; color: var(--muted); font-size: .92rem; }

/* ==== "Join the community" box on the order received page ==== */
.community-join { position: relative; margin: 2.2rem 0 1rem; padding: 1.4rem 1.5rem 1.2rem; overflow: hidden; border: 1px solid rgba(255, 42, 42, .5); border-radius: 14px;
  background: radial-gradient(ellipse 60% 120% at 100% 0%, rgba(255, 42, 42, .16), transparent 60%), linear-gradient(180deg, #1b1d23, #0f1014); box-shadow: 0 0 26px -10px var(--scanner); }
.community-join h2 { margin: .5rem 0 .4rem; }
.community-join p { margin: 0 0 .6rem; color: var(--chrome); }
.community-join .actions { margin: .9rem 0 0; }
.cj-scanner { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: #2a0000; overflow: hidden; }
.cj-scanner span { position: absolute; top: 0; left: 0; width: 22%; height: 100%; background: linear-gradient(90deg, transparent, #ff2a2a 40%, #ff8a8a 50%, #ff2a2a 60%, transparent); box-shadow: 0 0 12px #ff2a2a; animation: cj-scan 2.4s ease-in-out infinite alternate; }
@keyframes cj-scan { from { left: 0; } to { left: 78%; } }
@media (prefers-reduced-motion: reduce) { .cj-scanner span { animation: none; left: 39%; } }

/* ==== share buttons (your own build or forum post) ==== */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .8rem 0 .2rem; }
.share-lbl { color: var(--muted); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-right: .2rem; }
.share-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--chrome); font: 600 .9rem var(--body); text-decoration: none; cursor: pointer; }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--scanner); color: var(--strong); box-shadow: 0 0 10px -4px var(--scanner); }
.share-fb svg { color: #1877f2; }
.share-ig svg { color: #e1306c; }
.share-done { flex-basis: 100%; color: var(--ok); font-size: .88rem; }
.share-done:empty { display: none; }
/* the public preview page */
.share-page { max-width: 760px; padding-top: 2rem; padding-bottom: 3rem; }
.share-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #1b1d23, #0f1014); }
.share-pic img { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.share-b { padding: 1.2rem 1.4rem 1.4rem; }
.share-kind { margin: 0 0 .3rem; color: var(--scanner); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.share-b h1 { margin: 0 0 .3rem; }
.share-txt { margin-top: .9rem; color: var(--chrome); line-height: 1.55; }
/* slanted chrome headings: room for the last letter's lean, so it isn't cut off */
.dc-title, .dc-feed-title, .dc-dlg-head h2 { padding-right: .4em; }
/* the room name always shows in full; the description beside it is what gets shortened ("...") when space is tight */
.dc-top .dc-title { flex: 0 0 auto; max-width: 70%; }
.dc-top .dc-topic-desc { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ==== Virtual Garage build page (2026 redesign): cover, phases, timeline, media, likes, comments ==== */
.gx { --gx-card: linear-gradient(180deg, #17191f, #0e0f13); --gx-line: rgba(255, 255, 255, .08); max-width: 980px; }
.gx .crumb { margin-bottom: .8rem; }
/* cover */
.gx-hero { position: relative; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; border: 1px solid rgba(255, 42, 42, .35); border-radius: 18px; background: radial-gradient(ellipse 80% 120% at 85% 0%, rgba(255, 42, 42, .22), transparent 60%), #0b0c0f; box-shadow: 0 20px 50px -25px #000, 0 0 30px -18px var(--scanner); }
.gx-hero.no-pic { min-height: 220px; }
.gx-hero-pic { position: absolute; inset: 0; display: block; }
.gx-hero-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.gx-hero:hover .gx-hero-pic img { transform: scale(1.04); }
.gx-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(5, 6, 8, .72) 58%, rgba(5, 6, 8, .96)); }
.gx-hero-in { position: relative; z-index: 1; width: 100%; padding: 1.6rem 1.8rem 1.4rem; pointer-events: none; }
.gx-hero-in a, .gx-hero-in button, .gx-hero-in form { pointer-events: auto; }
.gx-kicker { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .3rem; color: #c9ced6; font-size: .95rem; }
.gx-hero h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.gx-by { display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; color: #c9ced6; }
.gx-by a { font-weight: 700; }
.gx-av { flex: none; display: inline-flex; }
.gx-av .av { width: 2.2rem; height: 2.2rem; margin: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0, 0, 0, .6), 0 0 0 3px rgba(255, 42, 42, .45); }
.gx-stats { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.gx-stats li { padding: .3rem .75rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(10, 11, 14, .6); backdrop-filter: blur(6px); color: #c9ced6; font-size: .88rem; }
.gx-stats b { color: #fff; }
.gx-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.gx-like-big { display: inline-flex; align-items: center; gap: .45rem; }
.gx-like-big.on { background: #fff; color: var(--scanner); border-color: #fff; }
.gx-liked-by { margin: .55rem 0 0; min-height: 1em; color: #aab0ba; font-size: .85rem; }
.gx-liked-by:empty { display: none; }
.gx-about { margin: 1.2rem .2rem .4rem; color: var(--chrome); font-size: 1.05rem; line-height: 1.6; max-width: 70ch; }
/* phases */
.gx-phases { margin: 1.6rem 0 1rem; padding: 1.2rem 1.3rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--gx-card); }
.gx-ph-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.gx-ph-head h2 { margin: 0; font-size: 1.5rem; }
.gx-ph-now { margin: .2rem 0 0; color: var(--chrome); }
.gx-ph-own { display: flex; flex-wrap: wrap; gap: .5rem; }
.gx-strip { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .4rem; margin: 0; padding: 0; list-style: none; }
.gx-strip button { display: flex; flex-direction: column; gap: .35rem; width: 100%; padding: .2rem .15rem .4rem; border: 0; border-radius: 8px; background: none; color: var(--muted); text-align: left; cursor: pointer; }
.gx-strip button:hover, .gx-strip button:focus-visible, .gx-strip button[aria-pressed="true"] { background: rgba(255, 255, 255, .05); outline: none; }
.gx-strip button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(255, 42, 42, .6); }
.gx-seg { position: relative; display: block; height: 8px; overflow: hidden; border-radius: 4px; background: #2a2d34; }
.gx-strip .is-done .gx-seg { background: linear-gradient(90deg, #b3141b, #ff2a2a); box-shadow: 0 0 10px rgba(255, 42, 42, .45); }
.gx-strip .is-cur .gx-seg { background: #3a0a0d; box-shadow: 0 0 0 1px rgba(255, 42, 42, .6); }
.gx-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, #ff2a2a 35%, #ffb0b0 50%, #ff2a2a 65%, transparent); box-shadow: 0 0 12px #ff2a2a; animation: gx-scan 1.6s ease-in-out infinite alternate; }
@keyframes gx-scan { from { left: -10%; } to { left: 70%; } }
.gx-pn { font: 700 .75rem var(--body); color: var(--muted); letter-spacing: .05em; }
.gx-pname { color: var(--chrome); font: 600 .9rem/1.2 var(--body); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gx-strip .is-cur .gx-pname { color: #fff; }
.gx-strip .is-cur .gx-pn { color: var(--scanner); }
.gx-strip small { color: var(--muted); font-size: .75rem; }
.gx-filter-note { margin: .8rem 0 0; color: var(--chrome); font-size: .92rem; }
@media (max-width: 760px) {
  .gx-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
  .gx-strip li { flex: 0 0 132px; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .gx-scan { animation: none; left: 30%; } .gx-hero-pic img { transition: none; } }
/* panels: the phase editor and the update box */
.gx-panel { margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--gx-card); }
.gx-panel > summary { display: flex; align-items: center; gap: .7rem; padding: .95rem 1.2rem; cursor: pointer; list-style: none; font: 700 1.05rem var(--body); color: var(--strong); }
.gx-panel > summary::-webkit-details-marker { display: none; }
.gx-panel > summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 1.4rem; line-height: 1; }
.gx-panel[open] > summary::after { content: "\2212"; }
.gx-panel > summary .av { width: 2.2rem; height: 2.2rem; margin: 0; border-radius: 50%; }
.gx-panel > form { padding: 0 1.2rem 1.2rem; }
.gx-compose > summary span:not(.av) { flex: 1; padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--muted); font-weight: 600; }
.gx-compose[open] > summary span:not(.av) { color: var(--strong); background: none; border-color: transparent; padding-left: 0; }
.gx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px) { .gx-row2 { grid-template-columns: 1fr; } }
.gx-drop { position: relative; display: block; padding: 1.3rem; border: 2px dashed rgba(255, 255, 255, .18); border-radius: 14px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.gx-drop:hover, .gx-drop.over { border-color: var(--scanner); background: rgba(255, 42, 42, .06); }
.gx-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gx-drop-in b { display: block; color: var(--strong); }
.gx-drop-in small { color: var(--muted); }
.gx-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .5rem; margin: .7rem 0 0; }
.gx-previews:empty { display: none; }
.gx-pv { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #000; }
.gx-pv img, .gx-pv video { width: 100%; height: 100%; object-fit: cover; }
.gx-pv.vid::after { content: "\25B6"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 1.3rem; text-shadow: 0 0 8px #000; pointer-events: none; }
.gx-pv-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.gx-up-msg { min-height: 1.2em; margin: .5rem 0 0; color: var(--chrome); font-size: .9rem; }
.gx-up-msg.bad { color: #ff8080; }
.gx-edit .hint { color: var(--muted); }
.gx-ed-head, .gx-ed-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) 3rem 3rem 5.5rem; gap: .5rem; align-items: center; }
.gx-ed-head { padding: 0 .3rem .3rem; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.gx-ed-head span:nth-child(3), .gx-ed-head span:nth-child(4) { text-align: center; }
.gx-ed-rows { margin: 0 0 .8rem; padding: 0; list-style: none; display: grid; gap: .35rem; }
.gx-ed-row { padding: .35rem .3rem; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.gx-ed-row.gone { opacity: .45; }
.gx-ed-row.gone input[type=text] { text-decoration: line-through; }
.gx-ed-row input[type=text] { margin: 0; }
.gx-ed-move { display: flex; flex-direction: column; gap: 2px; }
.gx-ed-move button { padding: 0 .4rem; border: 1px solid var(--line); border-radius: 5px; background: none; color: var(--muted); font-size: .65rem; line-height: 1.4; cursor: pointer; }
.gx-ed-move button:hover { color: #fff; border-color: var(--scanner); }
.gx-ed-c { display: flex; justify-content: center; }
.gx-ed-c input { width: 1.2rem; height: 1.2rem; accent-color: var(--scanner); }
.gx-ed-del { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .82rem; cursor: pointer; }
/* the build log: a timeline grouped by phase */
.gx-log { position: relative; margin-top: 1.4rem; }
.gx-group { position: relative; padding-left: 2rem; margin-bottom: 1.4rem; }
.gx-group::before { content: ""; position: absolute; left: .55rem; top: 1.2rem; bottom: -1.4rem; width: 2px; background: linear-gradient(180deg, rgba(255, 42, 42, .5), rgba(255, 255, 255, .08)); }
.gx-group:last-child::before { bottom: 0; }
.gx-gh { position: relative; display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .8rem; font-size: 1.15rem; }
.gx-gh small { color: var(--muted); font: 600 .85rem var(--body); text-transform: none; letter-spacing: 0; }
.gx-gdot { position: absolute; left: -1.95rem; top: .3rem; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #0b0c0f; background: #4a4f58; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.gx-group.is-done .gx-gdot { background: var(--scanner); }
.gx-group.is-cur .gx-gdot { background: var(--scanner); box-shadow: 0 0 0 4px rgba(255, 42, 42, .25), 0 0 14px var(--scanner); animation: gx-pulse 1.8s ease-in-out infinite; }
@keyframes gx-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 42, 42, .08), 0 0 20px var(--scanner); } }
.gx-card { margin: 0 0 1rem; padding: 1rem 1.1rem .9rem; border: 1px solid var(--line); border-radius: 16px; background: var(--gx-card); box-shadow: 0 10px 30px -22px #000; transition: border-color .2s; }
.gx-card:hover { border-color: rgba(255, 42, 42, .35); }
.gx-card.is-new { border-color: rgba(255, 42, 42, .6); box-shadow: 0 0 20px -8px var(--scanner); }
.gx-ch { display: flex; align-items: center; gap: .65rem; }
.gx-cw { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.gx-name { font-weight: 700; text-decoration: none; }
.gx-name:hover { text-decoration: underline; }
.gx-when { color: var(--muted); font-size: .8rem; }
.gx-tags { display: flex; gap: .3rem; margin-left: auto; }
.gx-more { position: relative; }
.gx-more > summary { list-style: none; cursor: pointer; padding: .1rem .5rem; border-radius: 8px; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.gx-more > summary::-webkit-details-marker { display: none; }
.gx-more > summary:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.gx-menu { position: absolute; right: 0; top: 2rem; z-index: 5; width: 240px; padding: .7rem; border: 1px solid rgba(255, 42, 42, .4); border-radius: 12px; background: #17191f; box-shadow: 0 14px 40px rgba(0, 0, 0, .7); display: grid; gap: .6rem; }
.gx-menu label { font-size: .85rem; color: var(--muted); }
.gx-menu select { margin-top: .25rem; }
.gx-title { margin: .75rem 0 .3rem; font-size: 1.25rem; }
.gx-card .txt { color: var(--chrome); line-height: 1.6; }
.gx-media { display: grid; gap: 4px; margin: .8rem 0 .2rem; overflow: hidden; border-radius: 12px; }
.gx-m { position: relative; display: block; overflow: hidden; background: #000; min-height: 0; }
.gx-m img, .gx-m video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gx-m:hover img { transform: scale(1.04); }
.gx-vid video { object-fit: contain; background: #000; }
.gx-media.n1 { grid-template-columns: 1fr; }
.gx-media.n1 .gx-m { max-height: 520px; }
.gx-media.n1 .gx-m img { height: auto; max-height: 520px; object-fit: contain; }
.gx-media.n2 { grid-template-columns: 1fr 1fr; height: 300px; }
.gx-media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; height: 360px; }
.gx-media.n3 .gx-m:first-child { grid-row: span 2; }
.gx-media.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 400px; }
.gx-media.n5 { grid-template-columns: repeat(6, 1fr); grid-template-rows: 1.4fr 1fr; height: 420px; }
.gx-media.n5 .gx-m:nth-child(-n+2) { grid-column: span 3; }
.gx-media.n5 .gx-m:nth-child(n+3) { grid-column: span 2; }
@media (max-width: 560px) { .gx-media.n2 { height: 200px; } .gx-media.n3 { height: 260px; } .gx-media.n4 { height: 280px; } .gx-media.n5 { height: 300px; } }
.gx-plus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; font: 700 1.8rem var(--head); }
.gx-media-extra { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; margin-top: 4px; }
.gx-media-extra .gx-m { aspect-ratio: 16 / 9; border-radius: 10px; }
.gx-yt { margin: .8rem 0 .2rem; border-radius: 12px; overflow: hidden; }
.gx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--gx-line); }
.gx-like, .gx-cbtn { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); color: var(--chrome); font: 600 .9rem var(--body); text-decoration: none; cursor: pointer; }
.gx-like:hover, .gx-cbtn:hover { border-color: var(--scanner); color: #fff; }
.gx-like svg { color: var(--muted); transition: transform .2s; }
.gx-like.on { border-color: rgba(255, 42, 42, .6); color: #fff; background: rgba(255, 42, 42, .14); }
.gx-like.on svg { color: var(--scanner); }
.gx-like.pop svg, .gx-like-big.pop svg { animation: gx-pop .4s ease; }
@keyframes gx-pop { 40% { transform: scale(1.45); } }
.gx-bar .gx-liked-by { margin: 0 0 0 .3rem; font-size: .82rem; color: var(--muted); }
/* comments */
.gx-comments { margin-top: .6rem; display: grid; gap: .5rem; }
.gx-c-all { justify-self: start; font-size: .88rem; }
.gx-hide { display: none; }
.gx-thread { display: grid; gap: .45rem; }
.gx-c { display: flex; gap: .55rem; align-items: flex-start; }
.gx-c.reply { margin-left: 2.6rem; }
.gx-c .gx-av .av { width: 2rem; height: 2rem; box-shadow: none; }
.gx-c.reply .gx-av .av { width: 1.6rem; height: 1.6rem; }
.gx-cb { min-width: 0; }
.gx-bubble { display: inline-block; margin: 0; padding: .5rem .8rem; border-radius: 16px; background: rgba(255, 255, 255, .06); color: var(--text); line-height: 1.45; overflow-wrap: anywhere; }
.gx-bubble .gx-name { margin-right: .3rem; }
.gx-cmeta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin: .2rem 0 0 .8rem; color: var(--muted); font-size: .78rem; }
.gx-cmeta .linklike { font-size: .78rem; font-weight: 700; }
.gx-c.flash-in .gx-bubble { animation: gx-flash 2.4s ease; }
@keyframes gx-flash { 0%, 40% { background: rgba(255, 42, 42, .3); } }
.gx-cform { display: flex; gap: .55rem; align-items: flex-end; }
.gx-cform > .av { flex: none; width: 2rem; height: 2rem; margin: 0 0 .2rem; border-radius: 50%; }
.gx-thread + .gx-cform, .gx-thread .gx-cform { margin-left: 2.6rem; }
.gx-cin { flex: 1; min-width: 0; }
.gx-cin textarea { margin: 0; min-height: 2.5rem; resize: none; border-radius: 20px; padding: .55rem .9rem; }
.gx-replying { margin: 0 0 .25rem .6rem; color: var(--muted); font-size: .8rem; }
.gx-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 90; }
.gx-pv img:not([src]) { visibility: hidden; }
.gx-pv.vid { background: linear-gradient(135deg, #1b1d23, #0b0c0f); }
.gx-pv-t { position: absolute; left: 5px; bottom: 5px; padding: 0 .35rem; border-radius: 4px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .72rem; }
/* build page fixes: comment box as one row (avatar, text with the emoji button inside, send) */
.gx .gx-cform { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .55rem; align-items: end; margin: 0; }
.gx .gx-cform > .av { grid-column: 1; }
.gx .gx-cin { grid-column: 2; position: relative; }
.gx .gx-cform > .btn { grid-column: 3; margin: 0 0 .15rem; }
.gx .gx-cin textarea { width: 100%; padding-right: 2.8rem; }
.gx .gx-cin .emoji-row { position: absolute; right: .3rem; bottom: .3rem; margin: 0; }
.gx .gx-cin .emoji-row .emoji-btn, .gx .gx-cin .emoji-row button { width: 2rem; height: 2rem; }
.gx-more > summary::after { content: none !important; display: none; }
.gx-compose > summary .av { flex: none; padding: 0; border: 0; }
.gx-compose > summary span.av { flex: none; }
.gx-cmeta form.inline { display: inline; margin: 0; }
.gx-hero-pic img[alt]:not([src*="."]) { display: none; }
/* editing an update in its card */
.gx-edit-form { margin: .8rem 0 0; padding: 1rem; border: 1px solid rgba(255, 42, 42, .35); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.gx-card.editing > .gx-title, .gx-card.editing > .txt, .gx-card.editing > .gx-media, .gx-card.editing > .gx-media-extra, .gx-card.editing > .gx-yt { display: none; }
.gx-keep-h { margin: .2rem 0 .4rem; color: var(--muted); font-size: .88rem; }
.gx-keeps { margin: 0 0 .8rem; }
.gx-keep { cursor: pointer; }
.gx-keep input { position: absolute; top: 6px; left: 6px; width: 1.15rem; height: 1.15rem; accent-color: var(--scanner); }
.gx-keep-x { position: absolute; left: 0; right: 0; bottom: 0; padding: .15rem; background: rgba(0, 0, 0, .65); color: #fff; font-size: .72rem; text-align: center; }
.gx-keep.gone img, .gx-keep.gone video { opacity: .3; filter: grayscale(1); }
.gx-keep.gone .gx-keep-x { background: var(--scanner); }
.gx-menu .btn { justify-content: flex-start; }
.gx .gx-edit-form { max-width: none; width: 100%; }

/* ==== cover photo picker on the build form: a dotted box (3:1) over the photo ==== */
.gx-cover-field .hint { color: var(--muted); font-size: .92rem; }
.gx-crop { position: relative; display: inline-block; max-width: 100%; margin: .6rem 0 .3rem; line-height: 0; user-select: none; touch-action: none; border-radius: 8px; overflow: hidden; background: #000; }
.gx-crop[hidden] { display: none; }
.gx-crop img { display: block; max-width: 100%; max-height: 520px; width: auto; }
.gx-crop-box { position: absolute; box-sizing: border-box; border: 2px dashed #fff; outline: 1px dashed rgba(0, 0, 0, .7); outline-offset: -3px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .58); cursor: move; touch-action: none; }
.gx-crop-box:focus-visible { border-color: var(--scanner); }
.gx-crop-box.moving { border-color: var(--scanner); }
.gx-crop-box::before, .gx-crop-box::after { content: ""; position: absolute; pointer-events: none; border: 0 dashed rgba(255, 255, 255, .35); }
.gx-crop-box::before { left: 33.33%; right: 33.33%; top: 0; bottom: 0; border-left-width: 1px; border-right-width: 1px; }
.gx-crop-box::after { top: 33.33%; bottom: 33.33%; left: 0; right: 0; border-top-width: 1px; border-bottom-width: 1px; }
.gx-crop-box i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--scanner); box-shadow: 0 0 6px rgba(0, 0, 0, .6); }
.gx-crop-box i[data-h="nw"] { left: -10px; top: -10px; cursor: nwse-resize; }
.gx-crop-box i[data-h="ne"] { right: -10px; top: -10px; cursor: nesw-resize; }
.gx-crop-box i[data-h="sw"] { left: -10px; bottom: -10px; cursor: nesw-resize; }
.gx-crop-box i[data-h="se"] { right: -10px; bottom: -10px; cursor: nwse-resize; }
@media (pointer: coarse) { .gx-crop-box i { width: 26px; height: 26px; } .gx-crop-box i[data-h="nw"], .gx-crop-box i[data-h="sw"] { left: -14px; } .gx-crop-box i[data-h="ne"], .gx-crop-box i[data-h="se"] { right: -14px; } .gx-crop-box i[data-h="nw"], .gx-crop-box i[data-h="ne"] { top: -14px; } .gx-crop-box i[data-h="sw"], .gx-crop-box i[data-h="se"] { bottom: -14px; } }
.gx-crop-size { position: absolute; left: 6px; top: 6px; padding: .15rem .45rem; border-radius: 5px; background: rgba(0, 0, 0, .7); color: #fff; font: 600 .75rem/1.4 var(--body); pointer-events: none; }
.gx-crop-note { margin: .2rem 0 .6rem; color: var(--ok); font-size: .9rem; }
.gx-crop-note.bad { color: var(--amber); }
.gx-crop-note:empty { display: none; }
/* the cover on the build page has the same shape on wider screens */
@media (min-width: 761px) { .gx-hero:not(.no-pic) { aspect-ratio: 3 / 1; } }
/* garage comment box: the emoji button sits neatly inside the right end of the box */
.gx .gx-cin textarea { min-height: 44px; padding-top: .6rem; padding-bottom: .6rem; padding-right: 3rem; line-height: 1.4; }
.gx .gx-cin .emoji-row { top: auto; bottom: 0; right: .4rem; height: 44px; display: flex; align-items: center; }
.gx .gx-cin .emoji-row .emoji-btn { width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.gx .gx-cin .emoji-row .emoji-btn:hover { background: rgba(0, 0, 0, .06); }
.gx .gx-cin .emoji-row .emoji-btn img { width: 24px; height: 24px; }
.gx .gx-cform > .btn { align-self: end; height: 44px; margin: 0; }
.gx .gx-cform > .av { align-self: end; margin-bottom: 4px; }
.gx .gx-cin textarea { display: block; margin: 0; box-sizing: border-box; padding-top: 10px; padding-bottom: 10px; }
.gx .gx-cin .emoji-row { bottom: 0; height: 44px; }

/* ==== the "Garages" room: every build as a wide cover picture, one after another ==== */
.gs { max-width: 980px; }
.gs-intro { color: var(--chrome); }
.gs-list { display: grid; gap: 1rem; margin: 1rem 0 2rem; padding: 0; list-style: none; }
.gs-card { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 1; min-height: 150px; border: 1px solid rgba(255, 42, 42, .3); border-radius: 16px; background: radial-gradient(ellipse 70% 120% at 85% 0%, rgba(255, 42, 42, .25), transparent 60%), #0b0c0f; color: #fff; text-decoration: none; box-shadow: 0 14px 34px -22px #000; transition: border-color .2s, box-shadow .2s, transform .2s; }
.gs-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gs-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(5, 6, 8, .85)); }
.gs-card:hover, .gs-card:focus-visible { border-color: var(--scanner); box-shadow: 0 0 26px -8px var(--scanner); transform: translateY(-2px); outline: none; }
.gs-card:hover img { transform: scale(1.04); }
.gs-in { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.3rem 1.1rem; }
.gs-title { font: 700 clamp(1.4rem, 3.5vw, 2.2rem)/1.05 var(--head); font-style: italic; text-transform: uppercase; transform: skewX(-6deg); transform-origin: left bottom; padding-right: .3em;
  background: linear-gradient(180deg, #fff 0%, #d9dde3 42%, #8b919b 54%, #e9ecf0 74%, #fff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .6)); }
.gs-sub { color: #c9ced6; font-size: .95rem; text-shadow: 0 1px 3px #000; }
.gs-bar { display: block; width: min(260px, 60%); height: 5px; margin-top: .35rem; border-radius: 3px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.gs-bar span { display: block; height: 100%; background: linear-gradient(90deg, #b3141b, #ff2a2a); box-shadow: 0 0 8px #ff2a2a; }
@media (prefers-reduced-motion: reduce) { .gs-card, .gs-card img { transition: none; } }
/* pages shown inside the chat panel: no "Community / Virtual Garage" trail at the top (the panel's bar has the title and back) */
body.embed .wrap.hub > .crumb { display: none !important; }
/* the phase strip scrolls sideways when the space is narrow (like inside the chat panel) instead of cutting off */
.gx-strip { grid-template-columns: repeat(var(--n), minmax(118px, 1fr)); overflow-x: auto; scrollbar-width: thin; padding-bottom: .35rem; }
/* build cover: the photo shows whole as a 3:1 banner (exactly the part picked with the dotted box), with the title,
   stats and buttons under it, so nothing is cropped or covered at any width */
.gx-hero:not(.no-pic) { flex-direction: column; align-items: stretch; aspect-ratio: auto; min-height: 0; }
.gx-hero:not(.no-pic) .gx-hero-pic { position: relative; inset: auto; aspect-ratio: 3 / 1; overflow: hidden; }
.gx-hero:not(.no-pic) .gx-hero-pic img { display: block; }
.gx-hero:not(.no-pic) .gx-hero-pic::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(11, 12, 15, .85)); pointer-events: none; }
.gx-hero:not(.no-pic)::after { display: none; }
.gx-hero:not(.no-pic) .gx-hero-in { margin-top: -2.2rem; padding-top: 0; }
@media (min-width: 761px) { .gx-hero:not(.no-pic) { aspect-ratio: auto; } }
/* the dotted-box stage is exactly the size of the photo (it was stretching wider than tall photos, so the box ran off it) */
.gx-cover-field .gx-crop { display: block; width: fit-content; max-width: 100%; justify-self: start; align-self: start; }
.gx-cover-field .gx-crop img { max-width: 100%; max-height: 520px; width: auto; height: auto; }
/* corner handles sit just inside the box so they're never cut off at the photo's edge */
.gx-crop-box i[data-h="nw"] { left: -3px; top: -3px; }
.gx-crop-box i[data-h="ne"] { right: -3px; top: -3px; }
.gx-crop-box i[data-h="sw"] { left: -3px; bottom: -3px; }
.gx-crop-box i[data-h="se"] { right: -3px; bottom: -3px; }
.gx-crop-size { left: 22px; }
/* YouTube videos in a garage update's photo grid */
.gx-ytm .product-video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.gx-ytm .product-video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.gx-ytm iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gx-ytb { position: absolute; left: 50%; top: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%); border-radius: 12px; background: #ff0000; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.gx-ytb::after { content: ""; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.gx-ytm:hover .gx-ytb { background: #cc0000; }
.gx-media.n1 .gx-ytm { aspect-ratio: 16 / 9; }
.gx-media-extra .gx-ytm { aspect-ratio: 16 / 9; }
.gx-compose .hint, .gx-edit-form .hint { display: block; margin-top: .25rem; color: var(--muted); font-size: .82rem; font-weight: 400; }
/* photos and videos in an update keep their own shape (rows laid out by js/garage.js; without it, they wrap at a set height) */
.gx-media.gx-just { display: flex; flex-wrap: wrap; gap: 4px; height: auto !important; grid-template-columns: none; overflow: visible; border-radius: 0; }
.gx-just > .gx-m { flex: 0 0 auto; height: 220px; width: calc(220px * var(--ar, 1.5)); max-width: 100%; border-radius: 8px; aspect-ratio: auto; }
.gx-just.laid > .gx-m { max-width: none; }
.gx-just > .gx-m img, .gx-just > .gx-m video { width: 100%; height: 100%; object-fit: cover; }
.gx-just > .gx-vid video { object-fit: contain; }
.gx-media.n1 .gx-m img { max-height: none; }
/* videos in an update open in the lightbox: the tile shows the first frame with a play button */
.gx-just > a.gx-vid video { object-fit: cover; pointer-events: none; }
.gx-playi { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 0 16px rgba(0, 0, 0, .6); transition: background .15s, transform .15s; }
.gx-playi::after { content: ""; position: absolute; left: 22px; top: 16px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.gx-m:hover .gx-playi { background: var(--scanner); transform: translate(-50%, -50%) scale(1.08); }
.gx-just > a.gx-ytm img { width: 100%; height: 100%; object-fit: cover; }
/* the lightbox playing a video */
.lb-vid { background: #000; }
.lb-yt { width: min(1280px, calc(100vw - 8rem)); height: auto; aspect-ratio: 16 / 9; max-height: calc(100vh - 9rem); border: 0; background: #000; }
@media (max-width: 700px) { .lb-yt { width: calc(100vw - 1.2rem); } }
/* the chat fills the window exactly: no space under it, so the page (and full screen) doesn't scroll a little */
.wrap.hub.dc-page { padding-bottom: 0; margin-bottom: 0; }
html:has(.dc-page) body { overflow-x: hidden; }
.lb-img[hidden] { display: none !important; }
.gs-new { position: absolute; top: .8rem; right: .8rem; z-index: 2; }
.gs-card.has-new { border-color: rgba(255, 42, 42, .7); box-shadow: 0 0 22px -8px var(--scanner); }
.wrap.hub.gs { max-width: none; }

/* ---- Trivia rooms (views/hub-trivia.php, js/trivia.js) ---- */
.tv-intro { color: var(--chrome); margin-top: -.3rem; }
.tv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.2rem; align-items: start; margin: 1rem 0 2rem; }
@media (max-width: 860px) { .tv-grid { grid-template-columns: 1fr; } }
.tv-card { position: relative; border: 1px solid rgba(255, 42, 42, .35); border-radius: 16px; padding: 1.2rem 1.3rem 1.1rem; background: radial-gradient(ellipse 80% 120% at 90% -10%, rgba(255, 42, 42, .18), transparent 60%), var(--panel); box-shadow: 0 14px 34px -24px #000; }
.tv-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tv-num { font: 700 1rem/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--chrome); }
.tv-clock { font: 700 1.6rem/1 var(--head); color: var(--strong); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.tv-clock.hurry { color: var(--scanner); text-shadow: 0 0 10px var(--glow); }
.tv-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); margin: .7rem 0 1rem; overflow: hidden; }
.tv-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #b3141b, #ff2a2a); box-shadow: 0 0 10px #ff2a2a; transition: width .25s linear; }
.tv-q { font: 700 clamp(1.3rem, 2.6vw, 1.8rem)/1.2 var(--head); margin: 0 0 1rem; color: var(--strong); text-transform: none; }
.tv-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
@media (max-width: 560px) { .tv-choices { grid-template-columns: 1fr; } }
.tv-choice { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 58px; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--text); font: 600 1.02rem/1.25 var(--body, inherit); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s, opacity .15s; }
.tv-choice:hover:not(:disabled), .tv-choice:focus-visible { border-color: var(--scanner); background: #1d1015; transform: translateY(-1px); outline: none; }
.tv-choice:disabled { cursor: default; opacity: .45; }
.tv-choice.picked, .tv-choice.picked:disabled { opacity: 1; border-color: var(--scanner); background: linear-gradient(180deg, #3a0d10, #24080a); box-shadow: 0 0 18px -6px var(--glow); }
.tv-letter { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #000; border: 1px solid var(--line); font: 700 1rem/1 var(--head); color: var(--scanner); }
.tv-choice.picked .tv-letter { background: var(--scanner); color: #fff; border-color: var(--scanner); }
.tv-hint { margin: .9rem 0 0; color: var(--muted); font-size: .92rem; }
.tv-hint.locked { color: var(--chrome); }
.tv-count { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }
.tv-error { margin: 0 0 .6rem; padding: .5rem .8rem; border-radius: 8px; background: #2a0a0a; color: var(--danger); }
.tv-last { margin: 0 0 .9rem; padding: .7rem 1rem; border-left: 4px solid var(--line); border-radius: 10px; background: var(--panel); }
.tv-last.ok { border-left-color: var(--ok); }
.tv-last.no { border-left-color: var(--scanner); }
.tv-was { margin: 0; color: var(--chrome); }
.tv-was strong { color: var(--strong); }
.tv-was-sub { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.tv-res { font-weight: 700; }
.tv-res.ok { color: var(--ok); }
.tv-res.no { color: var(--danger); }
.tv-wait, .tv-done, .tv-idle { text-align: center; padding: 1.8rem 1.3rem; }
.tv-big-label { margin: 0; font: 700 1rem/1 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--chrome); }
.tv-big-clock { margin: .4rem 0; font: 700 3.4rem/1 var(--head); color: var(--strong); text-shadow: 0 0 18px var(--glow); font-variant-numeric: tabular-nums; }
.tv-sub { margin: .5rem auto 0; max-width: 46ch; color: var(--muted); }
.tv-trophy { font-size: 3rem; line-height: 1; margin-bottom: .4rem; }
.tv-win { font: 700 1.7rem/1.15 var(--head); margin: 0; color: var(--strong); }
.tv-board { border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; background: var(--panel); }
.tv-board h2 { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0 0 .6rem; font-size: 1.15rem; }
.tv-players { color: var(--muted); font: 400 .85rem var(--body, inherit); text-transform: none; letter-spacing: 0; }
.tv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.tv-list li { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 8px; }
.tv-list li.me { background: rgba(255, 42, 42, .1); }
.tv-list li.top .tv-rank { background: var(--amber); color: #000; }
.tv-rank { flex: 0 0 auto; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--panel-2); color: var(--chrome); font: 700 .8rem/1 var(--head); }
.tv-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tv-pts { color: var(--chrome); font-size: .88rem; white-space: nowrap; }
.tv-empty { color: var(--muted); font-size: .9rem; }
.tv-me { margin: .7rem 0 0; color: var(--chrome); font-size: .9rem; }
.tv-admin-room { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; background: var(--panel); }
.tv-admin-room h3 { margin: 0 0 .3rem; }
.tv-import { margin: 1rem 0; }
.tv-import summary { cursor: pointer; font-weight: 600; }
tr.muted td { opacity: .6; }
body.embed .tv h1 { display: none; }
.tv-at[hidden] { display: none !important; }
.tv-prev { margin: 0 0 1rem; padding: .6rem .9rem; border-radius: 10px; background: rgba(255, 178, 30, .1); border: 1px solid rgba(255, 178, 30, .35); color: var(--text); font-size: 1.02rem; }
.tv-wait .tv-num { margin: 0 0 .3rem; }

/* reactions on replies in forum posts: the add button only shows on hover (always on touch screens) until there are some */
.fpm-rx.empty { margin-top: .2rem; min-height: 0; }
.fpm:not(.op) .fpm-rx.empty .fpm-add > summary { opacity: 0; transition: opacity .15s; }
.fpm:hover .fpm-rx.empty .fpm-add > summary, .fpm:focus-within .fpm-rx.empty .fpm-add > summary, .fpm-rx.empty .fpm-add[open] > summary { opacity: 1; }
@media (hover: none) { .fpm:not(.op) .fpm-rx.empty .fpm-add > summary { opacity: .7; } }
.fpm-rx.busy { opacity: .6; pointer-events: none; }
.fpm-add > summary { padding: 0 !important; margin: 0; } .fpm-add > summary svg { display: block; margin: 0; }

/* ---- trivia season (the monthly table under the game's leaderboard) ---- */
.tv-season { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.tv-season h2 { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0 0 .5rem; font-size: 1.05rem; }
.tv-month { color: var(--muted); font: 400 .85rem var(--body, inherit); text-transform: none; letter-spacing: 0; }
.tv-champ { margin: 0 0 .5rem; padding: .45rem .6rem; border-radius: 8px; background: rgba(255, 178, 30, .1); border: 1px solid rgba(255, 178, 30, .3); font-size: .9rem; }
.tv-slist { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.tv-slist li { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem; border-radius: 8px; }
.tv-slist li.me { background: rgba(255, 42, 42, .1); }
.tv-slist li.top .tv-rank { background: var(--amber); color: #000; }
.tv-smine { margin: .5rem 0 0; color: var(--chrome); font-size: .9rem; }

/* ---- member profile and badges (views/hub-profile.php) ---- */
.pf-banner { height: 120px; margin-top: .4rem; border-radius: 14px; background: radial-gradient(ellipse 70% 120% at 80% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(135deg, var(--me, #d4141c) 40%, color-mix(in srgb, var(--me, #d4141c) 55%, #000)); }
.pf-head { display: flex; align-items: center; gap: 1.1rem; margin: .4rem 0 1rem; }
/* with a banner: the avatar sits on the banner's bottom edge and the name goes underneath, lined up on the left */
.pf-banner + .pf-head { display: block; margin-top: -46px; }
.pf-banner + .pf-head .pf-av { display: inline-block; position: relative; z-index: 1; margin-left: 1.1rem; }
.pf-banner + .pf-head > div { padding-top: .45rem; }
.pf-banner + .pf-head .pf-av .av { box-shadow: 0 0 0 6px var(--bg, #08090b); }
.pf-av .av { width: 84px; height: 84px; border-radius: 50%; display: block; background-size: cover; box-shadow: 0 0 0 3px rgba(255, 42, 42, .35); }
.pf-head h1 { margin: 0; padding-right: .15em; color: var(--name); -webkit-text-fill-color: var(--name); background: none !important; -webkit-background-clip: border-box; background-clip: border-box; line-height: 1.05; }
.pf-head h1::after { display: none; }
.pf-head .meta { margin: .2rem 0 .5rem; }
.pf-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.pf-about { margin: 0 0 1.2rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); max-width: 720px; }
.pf-about-h { margin: 0 0 .5rem; font-size: 1.05rem; letter-spacing: .04em; }
.pf-bio { margin: 0 0 .6rem; white-space: normal; overflow-wrap: anywhere; color: var(--strong); line-height: 1.5; }
.pf-facts { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .35rem; }
.pf-facts li { display: flex; align-items: flex-start; gap: .55rem; color: var(--chrome); overflow-wrap: anywhere; }
.pf-facts svg { flex: 0 0 auto; margin-top: .15rem; color: var(--muted); }
.pf-fact-k { color: var(--muted); margin-right: .2rem; }
.pf-about .hint { margin: .2rem 0 .5rem; }
.pf-about-edit { margin-top: .4rem; border-bottom: 0; }
.pf-about-edit > summary { list-style: none; display: inline-block; cursor: pointer; padding: .4rem .8rem; }
.pf-about-edit > summary::after { display: none; }
.pf-about-edit > summary::-webkit-details-marker { display: none; }
.pf-about-edit[open] > summary { margin-bottom: .7rem; }
.about-form label { display: block; margin: 0 0 .7rem; }
.about-form textarea, .about-form input[type=text] { display: block; width: 100%; margin-top: .3rem; box-sizing: border-box; }
.about-form textarea { resize: vertical; min-height: 5.5em; }
.about-count { display: block; margin-top: .2rem; text-align: right; }
.about-acts { display: flex; align-items: center; gap: .7rem; margin: .4rem 0 0; }
.pf-stats { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.4rem; padding: 0; }
.pf-stats li { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--chrome); }
.pf-stats b { color: var(--strong); font: 700 1.2rem var(--head); margin-right: .25rem; }
.pf-badges { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .7rem; }
.pf-badge { display: flex; gap: .8rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); opacity: .45; filter: grayscale(1); }
.pf-badge.on { opacity: 1; filter: none; border-color: rgba(255, 178, 30, .45); background: radial-gradient(ellipse 90% 140% at 0% 0%, rgba(255, 178, 30, .14), transparent 60%), var(--panel); }
.pf-bic { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #000; border: 1px solid var(--line); }
.pf-badge.on .pf-bic { border-color: #ffb21e; box-shadow: 0 0 14px -4px #ffb21e; }
.pf-x { position: absolute; right: -6px; bottom: -4px; padding: 0 .35rem; border-radius: 99px; background: var(--scanner); color: #fff; font: 700 .72rem/1.4 var(--body, inherit); }
.pf-bt { display: grid; gap: .1rem; min-width: 0; }
.pf-bt b { color: var(--strong); }
.pf-bt span { color: var(--muted); font-size: .86rem; }
.pf-when { color: var(--chrome) !important; font-size: .78rem !important; }

/* ---- Build of the Month (partials/garage-botm.php, the vote on a build's page) ---- */
.botm { margin: 1rem 0 1.6rem; padding: 1rem 1.1rem; border: 1px solid rgba(255, 178, 30, .35); border-radius: 14px; background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(255, 178, 30, .1), transparent 60%), var(--panel); }
.botm-head h2 { margin: 0 0 .2rem; }
.botm-head .hint { margin: 0 0 .8rem; }
.botm h3 { margin: 1rem 0 .5rem; font-size: 1rem; }
.botm-last { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3 / 1; min-height: 120px; background: #111; text-decoration: none; }
.botm-last img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.botm-last-in { position: absolute; inset: auto 0 0 0; display: grid; gap: .1rem; padding: .8rem 1rem; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .85)); color: #ddd; }
.botm-last-in b { color: #fff; font: 700 1.5rem var(--head); text-transform: uppercase; }
.botm-kicker { color: #ffb21e; font: 700 .85rem var(--head); text-transform: uppercase; letter-spacing: .06em; }
.botm-board { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.botm-board a { display: flex; align-items: center; gap: .7rem; padding: .4rem .5rem; border-radius: 10px; text-decoration: none; color: var(--text); }
.botm-board a:hover { background: rgba(255, 255, 255, .04); }
.botm-board li.mine a { background: rgba(255, 42, 42, .1); }
.botm-rank { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--panel-2); color: var(--chrome); font: 700 .85rem var(--head); }
.botm-board li:first-child .botm-rank { background: #ffb21e; color: #000; }
.botm-board img, .botm-nopic { flex: 0 0 auto; width: 72px; height: 40px; border-radius: 6px; object-fit: cover; background: #14090a; }
.botm-t { flex: 1 1 auto; min-width: 0; display: grid; }
.botm-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.botm-t span, .botm-v { color: var(--muted); font-size: .86rem; }
.botm-v { white-space: nowrap; }
.gx-botm { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: .8rem; }
.gx-botm-win, .gs-botm { display: inline-block; padding: .2rem .6rem; border-radius: 99px; background: #ffb21e; color: #000; font: 700 .8rem var(--body, inherit); }
.gs-botm { position: absolute; left: 10px; top: 10px; z-index: 2; }
.gx-vote.on { border-color: #ffb21e; color: #ffb21e; box-shadow: 0 0 12px -4px #ffb21e; }
.gx-botm-n { color: var(--chrome); font-size: .9rem; }
.gx-botm-hint { flex-basis: 100%; margin: 0; font-size: .82rem; }

/* ---- photo challenges (views/hub-challenges.php) ---- */
.pc-hero { margin: .4rem 0 1.2rem; padding: 1.2rem 1.3rem; border: 1px solid rgba(255, 42, 42, .35); border-radius: 16px; background: radial-gradient(ellipse 80% 120% at 90% -10%, rgba(255, 42, 42, .2), transparent 60%), var(--panel); }
.pc-hero h1 { margin: .2rem 0 .4rem; }
.pc-kicker { margin: 0; color: #ffb21e; font: 700 .85rem var(--head); text-transform: uppercase; letter-spacing: .08em; }
.pc-desc { margin: 0 0 .4rem; color: var(--chrome); }
.pc-time { margin: 0; color: var(--muted); }
.pc-time strong { color: var(--strong); font-variant-numeric: tabular-nums; }
.pc-enter { margin: 0 0 1.4rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.pc-enter h2 { margin-top: 0; }
.pc-mine { padding: .6rem .9rem; border-left: 4px solid var(--ok); border-radius: 8px; background: var(--panel); }
.pc-grid { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.pc-entry { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.pc-entry.win { border-color: #ffb21e; box-shadow: 0 0 18px -6px #ffb21e; }
.pc-pic { display: block; aspect-ratio: 4 / 3; background: #000; }
.pc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-info { padding: .6rem .75rem .7rem; }
.pc-who { font-weight: 700; text-decoration: none; }
.pc-cap { margin: .2rem 0 0; color: var(--chrome); font-size: .92rem; }
.pc-acts { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.pc-acts form { margin: 0; }
.pc-like { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 99px; background: var(--panel-2); color: var(--chrome); font: 600 .9rem var(--body, inherit); cursor: pointer; }
.pc-like.on { border-color: var(--scanner); color: #fff; background: rgba(255, 42, 42, .2); }
.pc-like.on span { color: var(--scanner); }
.pc-like.static { cursor: default; }
.pc-winner { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr; gap: 1.2rem; align-items: center; margin: 0 0 1.4rem; padding: 1rem; border: 1px solid #ffb21e; border-radius: 14px; background: var(--panel); }
@media (max-width: 700px) { .pc-winner { grid-template-columns: 1fr; } }
.pc-wpic img { width: 100%; border-radius: 10px; display: block; }
.pc-winner h2 { margin: .2rem 0; }
.pc-past { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.pc-past a { display: flex; align-items: center; gap: .7rem; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); text-decoration: none; color: var(--text); }
.pc-past img, .pc-nopic { flex: 0 0 auto; width: 64px; height: 48px; border-radius: 6px; object-fit: cover; display: grid; place-items: center; background: #111; }
.pc-past span { display: grid; min-width: 0; }
.pc-admin-grid { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.pc-admin-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.pc-admin-grid li { display: grid; gap: .2rem; font-size: .85rem; }
.dc-card-item img { flex: 0 0 auto; }
.botm-last { max-height: 230px; }
.feed-what img { display: inline-block; vertical-align: -4px; }
.share-tt svg { color: #25f4ee; filter: drop-shadow(1px 1px 0 #fe2c55); }
.pc-mine p { margin: 0 0 .5rem; }
.pc-mine .share-row { margin: 0; }

/* ---- my alerts: the "i" in the left bar (green dot when there's something new) and the inbox page ---- */
.dc-ri-inbox svg { color: #8fe3a8; }
.dc-rdot { position: absolute; right: 4px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #2ecc71; border: 2px solid #0b0c0f; box-shadow: 0 0 8px #2ecc71; animation: rdot 2s ease-in-out infinite; }
.dc-rdot[hidden] { display: none; }
@keyframes rdot { 50% { box-shadow: 0 0 2px #2ecc71; } }
@media (prefers-reduced-motion: reduce) { .dc-rdot { animation: none; } }
.ib-list { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .5rem; }
.ib-in { display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-decoration: none; }
a.ib-in:hover { border-color: rgba(255, 42, 42, .5); }
.ib-item.unread .ib-in { border-color: rgba(46, 204, 113, .5); background: linear-gradient(90deg, rgba(46, 204, 113, .1), transparent 40%), var(--panel); }
.ib-ic { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #000; border: 1px solid var(--line); }
.ib-t { flex: 1 1 auto; min-width: 0; display: grid; gap: .15rem; }
.ib-t b { color: var(--strong); }
.ib-t span { color: var(--muted); font-size: .92rem; }
.ib-when { flex: 0 0 auto; display: grid; justify-items: end; gap: .25rem; color: var(--muted); font-size: .8rem; text-align: right; }
.ib-new { padding: .05rem .5rem; border-radius: 99px; background: #2ecc71; color: #00140a; font-weight: 700; font-size: .72rem; }
.ib-empty { display: grid; justify-items: center; gap: .6rem; padding: 2rem 1rem; text-align: center; color: var(--muted); }
@media (max-width: 560px) { .ib-in { flex-wrap: wrap; } .ib-when { flex-basis: 100%; justify-items: start; text-align: left; padding-left: calc(46px + .9rem); } }

/* owners map: the quick look when hovering a pin (once zoomed about halfway in) */
.om-hover { position: absolute; z-index: 4; width: 250px; padding: .55rem .6rem; border-radius: 10px; background: rgba(14, 16, 21, .97); border: 1px solid var(--line); border-left: 3px solid var(--scanner); box-shadow: 0 8px 26px rgba(0, 0, 0, .55); pointer-events: none; display: grid; gap: .45rem; }
.om-hover[hidden] { display: none; }
.om-hover-row { display: flex; gap: .55rem; align-items: center; }
.om-hover-row img, .om-hover-nopic { flex: 0 0 auto; width: 64px; height: 48px; border-radius: 6px; object-fit: cover; background: #1b1d22; }
.om-hover-t { display: grid; gap: .1rem; min-width: 0; font-size: .82rem; color: var(--chrome); }
.om-hover-t b { color: #fff; font-size: .9rem; }
.om-hover-t span:not(.om-tag) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-hover-t .om-tag { justify-self: start; }
.om-hover-n, .om-hover-hint { margin: 0; font-size: .75rem; color: var(--muted); }
.om-light .om-hover { background: rgba(255, 255, 255, .98); border-color: #c9d3dc; border-left-color: var(--scanner); }
.om-light .om-hover-t b { color: #1d232b; }
.om-light .om-hover-t { color: #4a5563; }

/* the owners page inside the community chat panel: straight to the map (the intro is on the full page) */
body.embed .owners-story .story-hero { display: none; }
body.embed .owners-story .story-main { padding-top: 1rem; }
.ow-embed-acts { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1.4rem; }

/* ---- privacy settings pop-up (right-click a left-bar icon > Privacy settings) ---- */
.dc-pv { width: min(480px, calc(100vw - 2rem)); padding: 0; border: 1px solid rgba(255, 42, 42, .4); border-radius: 16px; background: #15171c; color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .7); }
.dc-pv::backdrop { background: rgba(0, 0, 0, .7); }
.dc-pv-in { position: relative; display: grid; gap: 1.1rem; padding: 1.6rem 1.6rem 1.4rem; }
.dc-pv h2 { margin: 0 2rem 0 0; font: 700 1.35rem/1.2 var(--body, inherit); text-transform: none; letter-spacing: 0; color: var(--strong); background: none; -webkit-text-fill-color: currentColor; }
.dc-pv .dc-x { position: absolute; top: .9rem; right: .9rem; }
.dc-pv-row { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.dc-pv-row b { display: block; font-size: 1.05rem; color: var(--strong); }
.dc-pv-row p { margin: .2rem 0 0; color: var(--chrome); font-size: .92rem; }
.dc-pv-msg { margin: -.4rem 0 0; min-height: 1em; color: var(--ok); }
.dc-pv-note { margin: 0; color: var(--muted); font-size: .85rem; }
.dc-pv-done { width: 100%; justify-content: center; }
.dc-sw { position: relative; flex: 0 0 auto; display: inline-block; width: 48px; height: 28px; cursor: pointer; margin-top: .1rem; }
.dc-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dc-sw > span[aria-hidden] { position: absolute; inset: 0; border-radius: 99px; background: #4a4d55; transition: background .2s; }
.dc-sw > span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.dc-sw input:checked + span { background: var(--scanner); box-shadow: 0 0 10px -2px var(--glow); }
.dc-sw input:checked + span::after { transform: translateX(20px); }
.dc-sw input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.rail-pop { min-width: 180px; }

/* My profile (Discord-style): settings on the left, a live preview of my profile card on the right; the avatar opens a
   second popup to upload a picture or GIF, or pick one */
#dc-me-dlg { width: min(1000px, 96vw); }
.pf-ed { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 1.4rem; align-items: start; }
.pf-ed-side h4 { margin: 1.05rem 0 .45rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pf-ed-side h4:first-child { margin-top: 0; }
.pf-ed-avrow { display: flex; gap: .5rem; flex-wrap: wrap; }
.pf-ed-avrow [hidden] { display: none; }
.pf-ed-banner { display: grid; gap: .5rem; }
.pf-ed-bar { width: 100%; height: 2.7rem; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.pf-ed-bar::-webkit-color-swatch-wrapper { padding: 0; }
.pf-ed-bar::-webkit-color-swatch { border: 0; border-radius: 7px; }
.pf-ed-bar::-moz-color-swatch { border: 0; border-radius: 7px; }
.pf-ed-prev { position: sticky; top: 0; }
.pf-card { border-radius: 14px; background: #121318; border: 1px solid var(--line); overflow: hidden; padding-bottom: .9rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.pf-card-banner { height: 104px; background: radial-gradient(ellipse 70% 120% at 80% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(135deg, var(--me, #d4141c) 40%, color-mix(in srgb, var(--me, #d4141c) 55%, #000)); transition: background .2s; }
.pf-card-av { position: relative; display: block; width: 104px; height: 104px; margin: -56px 0 0 16px; padding: 0; border: 6px solid #121318; border-radius: 50%; background: #121318; cursor: pointer; }
.pf-card-av .av { display: block; width: 100%; height: 100%; margin: 0; border-radius: 50%; }
.pf-card-av::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .15s; }
.pf-card-av:hover::after, .pf-card-av:focus-visible::after { opacity: 1; }
.pf-card-pen { position: absolute; right: -2px; top: 4px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--scanner, #ff2a2a); color: #fff; box-shadow: 0 0 0 4px #121318; }
.pf-card-who { padding: .55rem 1rem 0; }
.pf-card-who strong { display: block; font: 700 1.35rem/1.2 var(--body); }
.pf-card-who small { color: var(--muted); }
.pf-card-box { margin: .8rem .8rem 0; padding: .6rem .7rem; border-radius: 8px; background: #0b0c0f; border: 1px solid var(--line); }
.pf-card-lbl { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pf-card-sample { border: 0; padding: .35rem 0 0; background: none; }
.pf-avdlg { width: min(640px, 96vw); }
.pf-avdlg-body { max-height: calc(88vh - 4.6rem); overflow-y: auto; padding: 1rem 1.2rem 1.3rem; }
.pf-avdlg-body.busy { opacity: .6; pointer-events: none; }
.pf-avdlg-body h3 { margin: 1.1rem 0 .55rem; font-size: 1rem; }
.pf-avdlg-body h3::after { display: none; }
.pf-avdlg-body h4 { margin: .9rem 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pf-up { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.1rem; border: 2px dashed rgba(255, 42, 42, .45); border-radius: 12px; background: rgba(255, 42, 42, .06); color: var(--strong, #fff); cursor: pointer; transition: background .15s, border-color .15s; }
.pf-up:hover, .pf-up:focus-within { background: rgba(255, 42, 42, .13); border-color: var(--scanner, #ff2a2a); }
.pf-up input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pf-up-t { display: grid; }
.pf-up-t small { color: var(--muted); }
.pf-gifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .6rem; }
.pf-gif { aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 50%; overflow: hidden; background: #0b0c0f; cursor: pointer; transition: transform .12s; }
.pf-gif:hover { transform: scale(1.05); }
.pf-gif.on { border-color: #fff; box-shadow: 0 0 0 2px var(--scanner, #ff2a2a); }
.pf-gif img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .pf-ed { grid-template-columns: 1fr; }
  .pf-ed-prev { position: static; order: -1; }
}
.pf-up.drag { background: rgba(255, 42, 42, .2); border-color: var(--scanner, #ff2a2a); border-style: solid; }
.pf-up * { pointer-events: none; }
.pf-crop { width: min(520px, 96vw); }
.pf-crop-body { padding: 1rem 1.2rem 1.2rem; }
.pf-crop-stage { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 10px; background: #08090b; cursor: grab; touch-action: none; user-select: none; }
.pf-crop-stage.grab { cursor: grabbing; }
.pf-crop-stage:focus-visible { outline: 2px solid var(--scanner, #ff2a2a); outline-offset: 2px; }
.pf-crop-img { position: absolute; max-width: none; transform-origin: 50% 50%; pointer-events: none; }
.pf-crop-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .62); pointer-events: none; }
.pf-crop-ctl { display: flex; align-items: center; gap: .7rem; max-width: 460px; margin: .9rem auto 0; color: var(--muted); }
.pf-crop-ctl input { flex: 1; accent-color: var(--scanner, #ff2a2a); }
.pf-crop-z { display: grid; place-items: center; }
.pf-crop-rot { margin-left: .6rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--strong, #fff); cursor: pointer; }
.pf-crop-rot:hover { border-color: var(--scanner, #ff2a2a); }
.pf-crop-foot { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; }
.pf-crop-foot .btn[disabled] { opacity: .6; cursor: progress; }
.pf-crop.banner { width: min(680px, 96vw); }
.pf-crop.banner .pf-crop-stage { max-width: 620px; aspect-ratio: 16 / 9; }
.pf-crop.banner .pf-crop-ring { border-radius: 12px; }
.pf-crop.banner .pf-crop-ctl { max-width: 620px; }
.pf-card-banner { cursor: pointer; position: relative; }
.pf-card-banner.has-img, .dc-card-banner[style*="background-image"] { background-size: cover; background-position: center; }
.pf-card-banner:hover::after, .pf-card-banner.drag::after { content: attr(title); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); color: #fff; font: 600 .9rem var(--body); }
.pf-ed-banner.drag { outline: 2px dashed var(--scanner, #ff2a2a); outline-offset: 6px; border-radius: 8px; }
.pf-ed-bhint { margin: 0; color: var(--muted); }
.pf-banner.has-img { height: clamp(140px, 22vw, 260px); }
/* product forms: the item's own order progress stages */
.psteps { border: 1px solid var(--line); border-radius: var(--r-card, 10px); padding: .8rem 1rem 1rem; margin: 1rem 0; }
.psteps legend { padding: 0 .4rem; font-weight: 700; }
.psteps-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: .5rem; align-items: center; margin: .4rem 0; }
.psteps-row input, .psteps-row select { width: 100%; min-width: 0; margin: 0; }
@media (max-width: 560px) { .psteps-row { grid-template-columns: minmax(0, 1fr) auto auto; } .psteps-row select { grid-column: 1 / -1; grid-row: 2; } }
.psteps-preview { margin-top: .8rem; padding: .7rem .8rem .2rem; border-radius: 8px; background: rgba(127, 127, 127, .07); overflow-x: auto; }
.psteps-preview-t { margin: 0 0 .3rem; }
.psteps-preview .progress-line { min-width: 560px; }
.progress-line li.psteps-mine .pl-label { color: var(--scanner, #d4141c); }
/* photo challenge: enter your photo in a popup */
.pc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 1rem 0 1.4rem; }
.pc-cta .btn { font-size: 1.05rem; padding: .7rem 1.3rem; }
.pc-cta .hint { margin: 0; }
.pc-dlg { width: min(560px, 96vw); }
.pc-dlg .pc-enter { padding: 1rem 1.2rem 1.2rem; margin: 0; border: 0; background: none; }
.pc-theme { margin: 0 0 .8rem; color: var(--gold, #ffb21e); font: 700 1rem var(--head); text-transform: uppercase; letter-spacing: .06em; }
.pc-drop { position: relative; display: grid; place-items: center; min-height: 220px; margin: 0 0 1rem; border: 2px dashed rgba(255, 42, 42, .45); border-radius: 12px; background: rgba(255, 42, 42, .06); cursor: pointer; overflow: hidden; transition: background .15s, border-color .15s; }
.pc-drop:hover, .pc-drop:focus-within, .pc-drop.drag { background: rgba(255, 42, 42, .13); border-color: var(--scanner, #ff2a2a); }
.pc-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pc-drop img { display: block; width: 100%; max-height: 340px; object-fit: contain; background: #000; pointer-events: none; }
.pc-drop.has { min-height: 0; border-style: solid; }
.pc-drop-t { display: grid; gap: .2rem; text-align: center; pointer-events: none; }
.pc-drop-t strong { font-size: 1.1rem; color: var(--strong, #fff); }
.pc-drop-t small { color: var(--muted); }
.pc-dlg-acts { display: flex; justify-content: flex-end; gap: .6rem; margin: .4rem 0 0; }

/* Community help page */
.hlp { max-width: 980px; }
.hlp .lede { color: var(--muted); }
.hp-toc { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0 1.6rem; }
.hp-toc a { padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; font-size: .92rem; }
.hp-toc a:hover { border-color: var(--scanner, #ff2a2a); color: var(--strong, #fff); }
.hp-sec { padding: 1.2rem 0 .4rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.hp-sec h2 { margin-top: 0; }
.hp-body.has-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.4rem; align-items: start; }
.hp-text ul { padding-left: 1.2rem; }
.hp-text li { margin: .35rem 0; line-height: 1.55; }
.hp-side { display: grid; gap: .9rem; justify-items: center; }
.hp-pics { display: grid; gap: 1rem; margin: .6rem 0; }
.hp-pics.two { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.hp-fig { margin: 0; }
.hp-fig a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }
.hp-fig img { display: block; width: 100%; height: auto; }
.hp-fig.small a { display: inline-block; }
.hp-fig.small img { width: auto; max-width: 100%; max-height: 420px; }
.hp-fig figcaption { margin-top: .35rem; font-size: .88rem; color: var(--muted); }
.hp-top { margin: .4rem 0 0; font-size: .85rem; text-align: right; }
@media (max-width: 700px) { .hp-body.has-side { grid-template-columns: 1fr; } }
/* the "?" at the top right of a room */
.dc-help-btn { display: grid; place-items: center; text-decoration: none; }
.dc-help-btn b { display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid currentColor; border-radius: 50%; font: 800 .8rem/1 var(--body); }
/* a photo being dragged over a chat: drop it anywhere */
.drop-rel { position: relative; }
.drop-on::after { content: attr(data-drop-text); position: absolute; inset: 6px; z-index: 50; display: grid; place-items: center; padding: 1rem; border: 3px dashed var(--scanner, #ff2a2a); border-radius: 14px; background: rgba(10, 10, 14, .78); color: #fff; font: 700 1.2rem var(--body); text-align: center; pointer-events: none; }
.dc-sub { margin: 1.2rem 0 .4rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
/* help desk rooms (Builder's Help Desk): Problem Solved */
.fp-solved { display: inline-block; margin-right: .4rem; padding: .05rem .5rem; border-radius: 999px; background: #1f9d55; color: #fff; font: 700 .72rem/1.6 var(--body); letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.fp-solved.big { font-size: .85rem; padding: .15rem .7rem; }
.fp-open { display: inline-block; padding: .1rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.fp-show { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .3rem; }
.fp-show a { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .9rem; }
.fp-show a[aria-current] { border-color: #1f9d55; background: rgba(31, 157, 85, .15); color: var(--strong, #fff); }
.fp-qa-hint { margin: .2rem 0 .8rem; }
.fp-answer { margin: .6rem 0 1rem; padding: .8rem 1rem; border: 1px solid #1f9d55; border-left-width: 5px; border-radius: 10px; background: rgba(31, 157, 85, .1); }
.fp-answer p { margin: .2rem 0; }
.fp-answer-h { font-weight: 800; color: #3ddc84; }
.fp-answer-tip { margin: .4rem 0 .8rem; }
.fpm.solved { border-left: 4px solid #1f9d55; padding-left: .6rem; background: rgba(31, 157, 85, .07); border-radius: 8px; }
.fpm-solved-tag { margin: .1rem 0 .3rem; color: #3ddc84; font-weight: 800; font-size: .85rem; }
.fpm-solve { display: inline-block; margin: .2rem .6rem .2rem 0; }
.fpm-solve-btn { border-color: #1f9d55 !important; color: #3ddc84 !important; }
.fpost-att { position: relative; flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--text); cursor: pointer; }
.fpost-att input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fpost-att.has { border-color: #1f9d55; color: #3ddc84; box-shadow: 0 0 0 2px rgba(31, 157, 85, .35); }
.fpm-pic { margin: .4rem 0; }
.fpost.drop-on { position: relative; }

/* Spanish, Italian and German menu words are longer: a little tighter so the top menu stays on one line */
@media (min-width: 821px) and (max-width: 1500px) {
  html:not([lang="en"]) .nav > a, html:not([lang="en"]) .nav-item > a { padding: 0 .5rem; }
  html:not([lang="en"]) .nav > a, html:not([lang="en"]) .nav-item > a:not(.msg-link) { font-size: 1rem; letter-spacing: .04em; }
}
@media (min-width: 821px) and (max-width: 1180px) {
  html:not([lang="en"]) .nav > a, html:not([lang="en"]) .nav-item > a { padding: 0 .35rem; }
  html:not([lang="en"]) .nav > a, html:not([lang="en"]) .nav-item > a:not(.msg-link) { font-size: .9rem; letter-spacing: .02em; }
}
body.embed .fp-desc { display: none; }   /* shown in the bar above instead */

/* emoji reactions under a private message (click a message to react) */
.dm-log .dm-rx, .dm-chat .dm-rx { order: 2; margin: .15rem .4rem 0; gap: .25rem; }
.dm-rx .dc-r { padding: .05rem .4rem; font-size: .75rem; border-radius: 999px; }
.dm-rx .dc-r img { width: 16px; height: 16px; }
.dm-log .hub-msg:not(.editing) .txt, .dm-chat .hub-msg:not(.editing) .txt { cursor: pointer; }
/* reactions: no box around the emoji, just a soft pill; your own reaction is a little brighter (no red outline) */
.dc-r, .fpm-rx .dc-r, .dm-rx .dc-r { border: 0; background: rgba(255, 255, 255, .07); box-shadow: none; border-radius: 999px; }
.dc-r:hover { background: rgba(255, 255, 255, .13); }
.dc-r.on, .fpm-rx .dc-r.on, .dm-rx .dc-r.on { border: 0; background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
/* an article linked in a forum answer: a card with its picture, title and summary */
.fpm-arts { display: grid; gap: .5rem; margin: .45rem 0 .2rem; max-width: 34rem; }
.fpm-art { display: flex; gap: .75rem; align-items: stretch; padding: .5rem; border: 1px solid var(--line); border-left: 3px solid var(--scanner); border-radius: 10px; background: rgba(0, 0, 0, .35); color: var(--text); text-decoration: none; }
.fpm-art:hover, .fpm-art:focus-visible { border-color: rgba(255, 42, 42, .55); background: rgba(255, 42, 42, .07); outline: none; }
.fpm-art img, .fpm-art-ic { flex: none; width: 88px; height: 88px; border-radius: 8px; object-fit: cover; }
.fpm-art-ic { display: grid; place-items: center; background: rgba(255, 42, 42, .12); color: var(--scanner); }
.fpm-art-t { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.fpm-art-t small { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--scanner); }
.fpm-art-t strong { font-size: .98rem; line-height: 1.25; }
.fpm-art-t span { font-size: .85rem; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* the team's "Add an article" pick list */
.art-dlg { width: min(440px, 94vw); padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); box-shadow: 0 24px 70px rgba(0, 0, 0, .75); }
.art-dlg::backdrop { background: rgba(0, 0, 0, .6); }
.art-dlg h2 { margin: 0 0 .7rem; font-size: 1.15rem; }
.art-dlg label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.art-dlg select { width: 100%; padding: .5rem; font-size: .95rem; }
.art-dlg-b { display: flex; justify-content: flex-end; gap: .5rem; margin: .9rem 0 0; }
/* profile: the badge sections (Badges, Time in the community, Daily streaks) */
.pf .pf-h { display: flex; align-items: baseline; gap: .5rem; margin-top: 1.6rem; }
.pf .pf-h small { font: 600 .85rem var(--body); font-style: normal; letter-spacing: 0; text-transform: none; color: var(--muted); }
.pf-streak { margin: -.2rem 0 .7rem; font-weight: 600; }
.pf-streak img { display: inline-block; margin-right: .25rem; vertical-align: -5px; }
.dc-mem-total { display: flex; align-items: center; gap: .45rem; margin: .2rem .5rem .6rem; font-size: .85rem; font-weight: 700; color: var(--chrome); }
.dc-mem-dot-on { width: 9px; height: 9px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 6px rgba(59, 165, 93, .7); }
/* a chat message with several photos: a grid of thumbnails */
.hub-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: min(100%, 22rem); margin-top: .35rem; border-radius: 10px; overflow: hidden; }
.hub-pics .hub-pic { display: block; margin: 0; aspect-ratio: 1 / 1; }
.hub-pics .hub-pic img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; border-radius: 0; }
.hub-pics.n3 .hub-pic:first-child { grid-row: span 2; aspect-ratio: auto; }
/* joined but the email address is not confirmed yet */
.hub-verify { padding-top: 1.5rem; padding-bottom: 3rem; }
.hub-verify .actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.2rem 0; }
.hub-verify .actions form { margin: 0; }
/* the Vids row in the news feed: thumbnails half the size (6 across, about 3 on a phone), with the play button,
   names and the add tile scaled down to match */
.vid-tile { flex-basis: calc((100% - 40px) / 6); border-radius: 9px; }
.vid-play { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.vid-play::before { left: 12px; top: 8px; border-left-width: 12px; border-top-width: 7px; border-bottom-width: 7px; }
.vid-by { left: 6px; right: 6px; bottom: 6px; gap: 4px; font-size: .72rem; }
.vid-by .av, .vid-logo { width: 18px; height: 18px; }
.vid-src { top: 6px; left: 6px; font-size: .6rem; padding: 1px 5px; }
.vid-add { gap: .3rem; padding: .35rem; }
.vid-add-plus { width: 34px; height: 34px; font-size: 1.5rem; line-height: 33px; }
.vid-add-text { font-size: .8rem; line-height: 1.15; }
.vid-add-note { font-size: .65rem; }
@media (max-width: 640px) {
  .vid-tile { flex-basis: calc((100% - 16px) / 3.3); }
}
/* the narrow news feed panel beside the chat: about 3 across there too (sized by the row's own width) */
.vids-strip { container-type: inline-size; }
@container (max-width: 560px) { .vid-tile { flex-basis: calc((100% - 16px) / 3.3); } }
.dc-post-back { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-right: .1rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .05); color: #f2f3f5; cursor: pointer; }
.dc-post-back:hover, .dc-post-back:focus-visible { border-color: var(--scanner); background: rgba(255, 42, 42, .15); outline: none; }
.dc-post-back[hidden] { display: none; }
/* article formatting: headings, lists, dividing lines, bold and italic (written as # , - , 1. , ---, **, *) */
.article-body.md { white-space: normal; }
.article-body.md .md-p { white-space: pre-line; margin: 0 0 1em; }
.article-body.md .md-h { margin: 1.6em 0 .5em; font-family: var(--head); line-height: 1.2; color: #f2f3f5; }
.article-body.md h2.md-h { font-size: 1.6rem; }
.article-body.md h3.md-h { font-size: 1.35rem; }
.article-body.md h4.md-h { font-size: 1.15rem; }
.article-body.md .md-h:first-child { margin-top: 0; }
.article-body.md .md-list { margin: 0 0 1em; padding-left: 1.4em; }
.article-body.md .md-list li { margin: .3em 0; }
.article-body.md .md-list li::marker { color: var(--scanner); }
.article-body.md .md-hr { margin: 1.8em 0; border: 0; border-top: 1px solid var(--line); }
/* product descriptions: the same formatting as articles (lib/articles.php product_desc_html) */
.product-desc .md-p { white-space: pre-line; margin: 0 0 1em; }
.product-desc .md-h { margin: 1.4em 0 .5em; font-family: var(--head); line-height: 1.2; color: #f2f3f5; }
.product-desc h3.md-h { font-size: 1.3rem; }
.product-desc h4.md-h { font-size: 1.12rem; letter-spacing: .02em; }
.product-desc .md-h:first-child { margin-top: 0; }
.product-desc .md-list { margin: 0 0 1em; padding-left: 1.3rem; }
.product-desc .md-list li { margin: 0 0 .4em; }
.product-desc .md-list li::marker { color: var(--scanner); }
.product-desc .md-hr { margin: 1.5em 0; border: 0; border-top: 1px solid var(--line); }
.article-body.md strong { color: #fff; }
/* chat rooms: grey placeholder rows while older messages load at the top, and the line at the very start of a room */
.dc-skel { list-style: none; padding: .6rem 1rem .2rem; }
.dc-skel-row { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.1rem; }
.dc-skel-av { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.dc-skel-lines { flex: 1; display: flex; flex-direction: column; gap: .45rem; padding-top: .2rem; }
.dc-skel-line { display: block; height: .7rem; border-radius: 6px; }
.dc-skel-box { display: block; width: min(16rem, 60%); height: 7rem; border-radius: 10px; }
.dc-skel-av, .dc-skel-line, .dc-skel-box { background: linear-gradient(90deg, #22252c 0%, #2e323b 40%, #22252c 80%); background-size: 300% 100%; animation: dcSkel 1.3s ease-in-out infinite; }
@keyframes dcSkel { 0% { background-position: 100% 0; } 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .dc-skel-av, .dc-skel-line, .dc-skel-box { animation: none; } }
.dm-older-wait { list-style: none; text-align: center; color: var(--muted); font-size: .85rem; padding: .5rem; }
.dc-start { list-style: none; margin: .4rem 1rem 1rem; padding: .6rem .8rem; border-left: 3px solid var(--scanner); color: var(--muted); font-size: .9rem; }
/* a member's name written in a message: a link to their profile */
a.dc-name { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 42, 42, .6); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.dc-name:hover, a.dc-name:focus-visible { color: #fff; text-decoration-color: var(--scanner); }
/* ---- Celebrations (Admin > Celebrations): the holiday message bar, logo badge, colours and effect canvas ---- */
.celeb-bar { position: relative; z-index: 60; display: flex; align-items: center; gap: .7rem; padding: .5rem 1rem; background: linear-gradient(90deg, color-mix(in srgb, var(--celeb1) 28%, #0b0c0f), #121318 50%, color-mix(in srgb, var(--celeb2) 28%, #0b0c0f)); border-bottom: 2px solid var(--celeb1); color: #f4f5f7; font-weight: 600; }
.celeb-bar[hidden] { display: none; }
.celeb-bar p { flex: 1; margin: 0; text-align: center; line-height: 1.35; }
.celeb-bar p a { color: inherit; font-weight: 400; font-size: .85em; }
.celeb-emo { font-size: 1.5rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.celeb-fx, .celeb-x { flex: none; border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .3); color: #fff; border-radius: 999px; cursor: pointer; font: 600 .8rem var(--body); }
.celeb-fx { padding: .25rem .7rem; }
.celeb-fx[aria-pressed="false"] { opacity: .55; text-decoration: line-through; }
.celeb-x { width: 28px; height: 28px; padding: 0; font-size: 1.1rem; line-height: 1; }
.celeb-fx:hover, .celeb-x:hover { border-color: var(--celeb1); }
/* in the community chat: a small note over the page (the chat fills the screen, so no bar pushing it down) */
.celeb-bar.celeb-note { position: fixed; z-index: 120; left: 50%; top: calc(var(--hdr-h, 74px) + .6rem); transform: translateX(-50%); width: min(620px, calc(100vw - 1.5rem)); border: 1px solid var(--celeb1); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .55); transition: opacity .6s, transform .6s; }
.celeb-bar.celeb-note.celeb-gone { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }
.brand { position: relative; }
.celeb-badge { position: absolute; right: -6px; bottom: -4px; z-index: 2; font-size: 1.35rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); pointer-events: none; }
body.celeb .site-header { border-bottom-color: var(--celeb1); box-shadow: 0 2px 0 var(--celeb2), 0 6px 22px -6px var(--celeb1); }
.celeb-canvas { position: fixed; inset: 0; z-index: 110; width: 100vw; height: 100vh; pointer-events: none; }
@media (max-width: 640px) { .celeb-bar { font-size: .88rem; padding: .45rem .6rem; gap: .45rem; } .celeb-emo { font-size: 1.25rem; } }
/* admin page */
.celeb-admin .celeb-mode { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.celeb-admin .celeb-mode legend { font-weight: 700; margin-bottom: .4rem; }
.celeb-table { width: 100%; border-collapse: collapse; margin: 1rem 0 .5rem; }
.celeb-table th, .celeb-table td { padding: .5rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.celeb-table td input[type=text] { width: 100%; min-width: 16rem; }
.celeb-sw { display: inline-block; width: 26px; height: 12px; border-radius: 6px; vertical-align: middle; margin-right: .35rem; }
.celeb-table select { min-width: 10.5rem; }
.celeb-table th:nth-child(1) { min-width: 11rem; }
.celeb-table th:nth-child(2) { min-width: 9.5rem; }
.celeb-admin .celeb-mode select { margin-left: .4rem; }
/* Admin > Community > Members > Avatar and banner */
.look-now .look-banner { height: 110px; border-radius: 12px; }
.look-now .look-av { display: flex; align-items: center; gap: .7rem; margin-top: -.2rem; }
.look-now .pf-av .av, .look-now .pf-av { width: 64px; height: 64px; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.look-grid .form { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.look-grid h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.look-gifs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.look-gif { position: relative; cursor: pointer; }
.look-gif input { position: absolute; opacity: 0; }
.look-gif img { display: block; border-radius: 50%; border: 2px solid transparent; object-fit: cover; }
.look-gif input:checked + img { border-color: var(--scanner); box-shadow: 0 0 8px var(--glow); }
.look-gif input:focus-visible + img { outline: 2px solid #fff; }
.look-mini .av { display: inline-block; width: 26px; height: 26px; vertical-align: middle; }
.pf-crop-ctl .pf-crop-bg { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); overflow: hidden; cursor: pointer; }
.pf-crop-ctl .pf-crop-bg input { flex: none; width: 52px; height: 52px; padding: 0; border: 0; background: none; cursor: pointer; }
.name-pop .pop-head.pop-sub { margin-top: .25rem; border-top: 1px solid var(--line); padding-top: .45rem; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--scanner, #ff2a2a); }
.mod-look { padding-top: 1rem; padding-bottom: 2rem; }
.more-pop button { display: flex; align-items: center; gap: .6rem; }
.more-pop button svg { flex: none; opacity: .85; }
/* several photos and videos together (lib/mosaic.php): one big on top, then rows of square tiles */
.mz { display: flex; flex-direction: column; gap: 3px; width: 100%; max-width: 500px; margin: .45rem 0 .15rem; border-radius: 14px; overflow: hidden; background: #000; }
.feed-mz .mz { max-width: none; margin: .8rem 0 .2rem; }
.gx-card .mz { max-width: 680px; margin: .8rem 0 .2rem; }
.mz-hero { position: relative; aspect-ratio: var(--ar, 1.78); min-height: 0; overflow: hidden; }
.mz-row { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 3px; }
.mz-t { position: relative; display: block; overflow: hidden; background: #0b0c0f; }
.mz-row .mz-t { aspect-ratio: 1; }
.mz-hero .mz-t { position: absolute; inset: 0; }
.mz-row .mz-t img, .mz-row .mz-t video { position: absolute; inset: 0; }
.mz-t[hidden] { display: none; }
.mz-t img, .mz-t video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mz-t:hover img, .mz-t:hover video { transform: scale(1.03); }
.mz-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .85); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); pointer-events: none; }
.mz-play::after { content: ''; position: absolute; left: 19px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.mz-row[style*="--n:3"] .mz-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.mz-row[style*="--n:3"] .mz-play::after { left: 14px; top: 10px; border-width: 8px 0 8px 13px; }
.mz-play.yt { background: #e62117; border-color: #e62117; border-radius: 12px; }
.mz-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff; font: 700 .72rem/1.4 var(--body); pointer-events: none; }
.mz-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font: 700 2rem/1 var(--head, var(--body)); pointer-events: none; }
.mz1 .mz-t img { height: auto; max-height: 520px; object-fit: contain; }
.att-card.ready .att-prog { display: none; }
.att-cards .att-card { margin-bottom: .2rem; }
/* editing a message or post: its photos and videos as cards that can be moved, taken off or added to */
.med-edit { margin: .5rem 0; }
.med-edit .med-cards { padding: .5rem .3rem .2rem; }
.med-edit .med-add { margin-top: .35rem; }
.med-mv { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; justify-content: space-between; pointer-events: none; }
.med-mv button { pointer-events: auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .65); color: #fff; font: 700 1.1rem/1 var(--body); cursor: pointer; }
.med-mv button:disabled { opacity: .25; cursor: default; }
.med-mv button:focus-visible { outline: 2px solid var(--scanner, #ff2a2a); outline-offset: 1px; }
.att-card:not(.ready) .med-mv { display: none; }
/* phones: the chat rooms fill the screen under the site menu like the app (no title, buttons or language row: the
   ≡ list has the rooms, the community links and the language) */
@media (max-width: 760px) {
  .wrap.hub.dc-page { width: 100%; padding: 0; margin: 0; }
  .dc-page > .lang-switch, .dc-page > .hub-lang-row, .dc-page > .garage-link, .dc-page > .crumb, .dc-page > h1 { display: none; }
  .dc-page > .hub-notice { margin: .5rem .75rem; max-width: none; }
  .dc-page #hub-chat.dc > .hint, .dc-page .hub-rules-box { margin-inline: .75rem; }
  #hub-chat.dc .chat-cols { height: calc(100vh - var(--dc-head, 64px)); height: calc(100dvh - var(--dc-head, 64px)); border-width: 0; border-radius: 0; box-shadow: none; }
  #hub-chat.dc .hub-log, #hub-chat.dc.has-h .hub-log { flex: 1 1 0; height: auto; min-height: 0; }
  .dc-page ~ .site-footer, body:has(.dc-page) .site-footer { display: none; }
}
/* phones: the strip of round icons stays down the left side next to the chat (the room list still opens with ≡),
   except in the Games room, where the game gets the whole width */
@media (max-width: 760px) {
  #hub-chat.dc:not(.games) .chat-cols { grid-template-columns: 54px minmax(0, 1fr); }
  #hub-chat.dc:not(.games) .dc-rail { position: relative; top: auto; bottom: auto; left: auto; width: 54px; transform: none; transition: none; gap: 7px; padding: 10px 0; }
  #hub-chat.dc:not(.games) .dc-rail .dc-ri, #hub-chat.dc:not(.games) .dc-rail .dc-ri img.dc-ri-logo { width: 40px; height: 40px; }
  #hub-chat.dc:not(.games) .dc-rail .dc-ri::before { left: -7px; }
  #hub-chat.dc:not(.games) .dc-chan { left: 54px; width: min(290px, calc(100% - 54px)); }
  #hub-chat.dc:not(.games) .hub-msg { grid-template-columns: 2.9rem minmax(0, 1fr); }
  #hub-chat.dc:not(.games) .hub-msg > .av { width: 2rem; height: 2rem; }
}
@media (max-width: 760px) {
  #hub-chat.dc:not(.games) .dc-tog-chan { display: none; }   /* (the logo at the top of the strip opens the room list) */
}

/* Rising fan badge (the most active members over the last two weeks) */
.fan-tag { display: inline-block; margin-left: .35em; padding: .05em .5em; border-radius: 999px; font-size: .68em; font-weight: 700; letter-spacing: .04em; vertical-align: .15em; line-height: 1.5; color: #fff; background: linear-gradient(90deg, #e0313b, #ff7a2f); white-space: nowrap; }
.fan-tag::before { content: attr(data-icon); margin-right: .3em; }
.fan-tag.fan-top { background: linear-gradient(90deg, #2563eb, #4f8cff); }
.fan-tag.fan-contributor { background: linear-gradient(90deg, #0f8f6a, #1fc191); }
.fan-tag.fan-champion { color: #2a1a00; background: linear-gradient(90deg, #f5b400, #ffe27a); box-shadow: 0 0 10px rgba(255, 196, 0, .45); }
.fan-prog { margin: 1rem 0 0; max-width: 34rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(127, 127, 127, .06); text-align: left; }
.fan-prog h3 { margin: 0 0 .5rem; font-size: 1rem; }
.fan-steps { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
.fan-steps li { opacity: .38; }
.fan-steps li.got { opacity: 1; }
.fan-steps .fan-tag { margin-left: 0; }
.fan-prog ul.need { margin: .3rem 0 0; padding-left: 1.2rem; font-size: .92rem; }
.fan-prog .meta { margin: 0; }
.feed-who .fan-tag { width: max-content; justify-self: start; align-self: start; margin-left: 0; margin-top: 2px; }
.pf-head h1 .fan-tag { font-family: var(--body); font-style: normal; text-transform: none; letter-spacing: .02em; font-size: .85rem; vertical-align: middle; -webkit-text-fill-color: currentColor; transform: none; }

/* Photo challenges: the like / comment / share bar under each entry, and the Comments and Share popups */
.pc-bar { display: flex; align-items: center; justify-content: space-between; gap: .3rem; margin: .55rem -.35rem 0; padding-top: .45rem; border-top: 1px solid var(--line); }
.pc-bar form { margin: 0; flex: 1; display: flex; }
.pc-b { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; padding: .3rem .5rem; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 1rem var(--body, inherit); cursor: pointer; }
.pc-bar form .pc-b { width: 100%; }
.pc-b:hover, .pc-b:focus-visible { background: var(--panel-2); color: var(--strong); }
.pc-b b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-b.pc-like.on { color: var(--scanner); background: none; border: 0; }
.pc-b.pc-like.on svg path { fill: currentColor; }
.pc-b.static { cursor: default; }
.pc-b.static:hover { background: none; color: var(--muted); }
.pc-b.static.on:hover { color: var(--scanner); }
.pc-acts:empty { display: none; }
.pc-dlg-photo { display: flex; gap: .8rem; align-items: center; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); }
.pc-dlg-photo img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #000; flex: 0 0 auto; }
.pc-dlg-photo strong { display: block; }
.pc-dlg-photo p { margin: .1rem 0 0; color: var(--chrome); font-size: .92rem; }
.pc-cm-dlg[open] { display: flex; flex-direction: column; }
.pc-cm-list { list-style: none; margin: 0; padding: .8rem 1.1rem; overflow-y: auto; min-height: 120px; max-height: 50vh; flex: 1 1 auto; }
.pc-cm-none { color: var(--muted); padding: .6rem 0; text-align: center; }
.pc-cm { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .7rem; }
.pc-cm .av { width: 2.1rem; height: 2.1rem; margin: 0; flex: 0 0 auto; }
.pc-cm-b { min-width: 0; }
.pc-cm-bubble { display: inline-block; max-width: 100%; padding: .45rem .75rem; border-radius: 16px; background: rgba(255, 255, 255, .07); }
.pc-cm-who { font-weight: 700; font-size: .92rem; text-decoration: none; }
.pc-cm-t { white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-cm-meta { margin: .15rem 0 0 .6rem; color: var(--muted); font-size: .8rem; }
.pc-cm-meta .linklike { font-size: .8rem; }
.pc-cm-form { display: flex; gap: .5rem; align-items: flex-end; padding: .7rem 1.1rem .9rem; border-top: 1px solid var(--line); }
.pc-cm-form textarea { flex: 1; resize: none; min-height: 42px; border-radius: 20px; padding: .55rem .9rem; }
.pc-cm-block { margin: 0; padding: .7rem 1.1rem; border-top: 1px solid var(--line); color: var(--muted); }
.pc-sh-body { padding: .2rem 1.1rem 1rem; overflow-y: auto; max-height: 62vh; }
.pc-sh-sec { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.pc-sh-sec:last-child { border-bottom: 0; }
.pc-sh-sec h3 { margin: 0 0 .55rem; font-size: 1rem; }
.pc-sh-sec .hint { margin: .5rem 0 0; }
.pc-sh-sec textarea, .pc-sh-sec input[type=text] { width: 100%; }
.pc-sh-sec .actions { margin: .5rem 0 0; display: flex; justify-content: flex-end; }
.pc-sh-ext { display: flex; flex-wrap: wrap; gap: .5rem; }
.pc-sh-btn { display: inline-flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 76px; padding: .55rem .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--text); font: 600 .82rem var(--body, inherit); text-decoration: none; cursor: pointer; }
.pc-sh-btn:hover, .pc-sh-btn:focus-visible { border-color: var(--chrome); }
.pc-sh-btn.fb svg { color: #1877f2; }
.pc-sh-btn.ig svg { color: #e1306c; }
.pc-sh-btn.tt svg { color: #25f4ee; }
.pc-sh-friends { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .3rem .8rem; max-height: 180px; overflow-y: auto; }
.pc-sh-friends label { display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.pc-sh-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); opacity: .5; }
.pc-sh-dot.on { background: #4fd18b; opacity: 1; }
.pc-sh-done { margin: .5rem 0 0; min-height: 1.2em; color: var(--ok, #4fd18b); font-weight: 600; }
.pc-sh-done:empty { display: none; }
.pc-sh-done.bad { color: var(--scanner); }
/* a news feed post that shares a photo challenge entry */
.feed-shared { display: block; margin: .6rem 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text); background: rgba(255, 255, 255, .045); }
.feed-shared img { display: block; width: 100%; max-height: 520px; object-fit: cover; background: #000; }
.feed-shared-t { display: block; padding: .6rem .8rem .7rem; }
.feed-shared-k { display: block; margin: 0; color: #ffb21e; font: 700 .78rem var(--head); text-transform: uppercase; letter-spacing: .06em; }
.feed-shared-h { display: block; margin: .15rem 0 0; font-weight: 700; }
.feed-shared-c { display: block; margin: .2rem 0 0; color: var(--chrome); font-size: .92rem; }
/* Garages room: like / comment / share down the left of each build, like the side menu */
.gs-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: .6rem; align-items: stretch; }
/* beside the bar the card fills its column: its 3:1 shape would make it wider than the column once the bar makes the row taller */
.gs-row > .gs-card { aspect-ratio: auto; width: 100%; min-width: 0; min-height: max(150px, 33.3cqw); }
.gs-list { container-type: inline-size; }
.sb { display: flex; gap: .3rem; }
.sb form { margin: 0; display: flex; }
.sb-rail { flex-direction: column; justify-content: center; padding: .4rem .3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.sb-rail form, .sb-rail .sb-b { width: 100%; }
.sb-rail .sb-b { flex: 0 0 auto; flex-direction: column; gap: .15rem; min-height: 54px; padding: .35rem 0; border-radius: 12px; font-size: .88rem; }
.sb-b:hover, .sb-b:focus-visible { background: var(--panel-2); color: var(--strong); }
.sb-b.sb-like.on { color: var(--scanner); }
.sb-b.sb-like.on svg path { fill: currentColor; }
@media (max-width: 560px) { .gs-row { grid-template-columns: 50px minmax(0, 1fr); gap: .4rem; } .sb-rail { padding: .3rem .15rem; } .sb-rail .sb-b { min-height: 48px; font-size: .8rem; } .sb-rail svg { width: 21px; height: 21px; } }
/* a build's page: Comments and Share beside Like */
.gx-soc { display: inline-flex; align-items: center; gap: .4rem; }
.gx-soc b { font-variant-numeric: tabular-nums; opacity: .8; }
/* Admin > Community > Daily email: who turned it off */
.dg-off { margin: 1rem 0 1.5rem; } .dg-off summary { cursor: pointer; padding: .4rem 0; } .dg-off table { margin-top: .5rem; }
/* Classifieds opened from the community: the whole width beside the icon strip, like Facebook Marketplace */
@media (min-width: 761px) {
  #hub-chat.dc.wide .chat-cols { grid-template-columns: 72px minmax(0, 1fr) !important; }
  #hub-chat.dc.wide .dc-chan, #hub-chat.dc.wide .dc-feed, #hub-chat.dc.wide .dc-members { display: none !important; }
}
@media (min-width: 761px) and (max-width: 1000px) { #hub-chat.dc.wide .chat-cols { grid-template-columns: 64px minmax(0, 1fr) !important; } }
/* Classifieds, Marketplace look: round icons on every menu row, a location picker, "Just listed", bigger prices */
.cl-ico svg { display: block; }
.cl-nav a.on .cl-ico { color: #fff; }
.cl-nav .cl-chev { margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.cl-nav a { font-size: 1.02rem; }
.cl-new { background: rgba(255, 42, 42, .14); color: #ff6a6a; border: 1px solid rgba(255, 42, 42, .35); box-shadow: none; }
.cl-new:hover { background: rgba(255, 42, 42, .24); color: #fff; }
.cl-cats a { font-weight: 600; padding: .4rem .6rem; gap: .7rem; }
.cl-cats .cl-ico { width: 34px; height: 34px; flex-basis: 34px; }
.cl-loc { margin: .2rem 0 .4rem; }
.cl-loc-l { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--scanner, #ff2a2a); }
.cl-loc-l select { flex: 1; border: 0; background: transparent; color: var(--scanner, #ff4a4a); font-weight: 700; padding: .35rem 0; box-shadow: none; cursor: pointer; }
.cl-loc-l select option { color: #111; }
.cl-where { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; color: var(--scanner, #ff4a4a); font-weight: 700; }
.cl-where svg { width: 18px; height: 18px; }
.cl-main-head h2 { font-size: 1.7rem; }
.cl-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.4rem .9rem; }
.cl-price { font-size: 1.2rem; margin-top: .1rem; }
.cl-title { font-size: 1rem; -webkit-line-clamp: 1; }
.cl-place { font-size: .9rem; }
.cl-just { position: absolute; left: .55rem; top: .55rem; padding: .18rem .55rem; border-radius: 6px; background: rgba(255, 255, 255, .92); color: #111; font-size: .8rem; font-weight: 700; }
/* opened from the community: a full-height menu down the left with a line beside it, the picks filling the rest */
body.embed .wrap.cl-wrap { width: auto; max-width: none; padding: 0; margin: 0; }
body.embed .cl-layout { grid-template-columns: 340px minmax(0, 1fr); gap: 0; }
body.embed .cl-side { position: sticky; top: 0; height: 100vh; max-height: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--panel, #111); padding: 1rem 1rem 2rem; }
body.embed .cl-main { padding: 1.1rem 1.5rem 2rem; min-width: 0; }
@media (max-width: 980px) {
  body.embed .cl-layout { grid-template-columns: 1fr; }
  body.embed .cl-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  body.embed .cl-main { padding: 1rem .9rem 2rem; }
  .cl-cats .cl-ico { display: none; }
}
@media (max-width: 560px) {
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .6rem; }
  .cl-nav { overflow-x: auto; scrollbar-width: none; }
  .cl-nav a { flex: 0 0 auto; }
  .cl-nav .cl-chev { display: none; }
  .cl-price { font-size: 1.05rem; }
}
/* Classifieds, Location: where you are and how far to look */
.cl-near { margin: .1rem 0 .3rem; }
.cl-near summary { display: flex; align-items: center; gap: .45rem; cursor: pointer; padding: .4rem 0; color: var(--scanner, #ff4a4a); font-weight: 700; list-style: none; }
.cl-near summary::-webkit-details-marker { display: none; }
.cl-near summary svg { flex: 0 0 auto; }
.cl-near-form { display: grid; gap: .55rem; margin: .4rem 0 .6rem; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.cl-near-form label { margin: 0; }
.cl-geo { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; }
.cl-geo svg { width: 18px; height: 18px; }
.cl-near-r { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; }
.cl-near-r > label { flex: 1 1 7rem; }
.cl-unit { display: flex; gap: .2rem; margin: 0; padding: .2rem; border: 1px solid var(--line); border-radius: 99px; }
.cl-unit label { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .7rem; border-radius: 99px; cursor: pointer; font-weight: 600; }
.cl-unit input { position: absolute; opacity: 0; pointer-events: none; }
.cl-unit label:has(input:checked) { background: var(--scanner, #e1251b); color: #fff; }
.cl-unit label:has(input:focus-visible) { outline: 2px solid var(--scanner); outline-offset: 2px; }
.cl-near-msg { margin: 0; font-size: .9rem; color: #ffb21e; }
.cl-near-msg:empty { display: none; }
.cl-near-form .actions { margin: 0; }
.cl-near-form .hint { margin: 0; font-size: .82rem; }
.cl-where { border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; padding: 0; }
.cl-near summary span { flex: 1; text-align: left; }
.cl-near-msg.busy { color: var(--muted); }
/* Garages room: the intro with a "Build your own" button beside it */
.gs-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; flex-wrap: wrap; margin: 0 0 1rem; }
.gs-top .gs-intro { margin: 0; flex: 1 1 16rem; }
.gs-build-btn { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }

/* ---- Community events (views/hub-events.php, partials/event-card.php): cards like Discord's events ---- */
.wrap.ev-page { max-width: 820px; }
.ev-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .2rem 0 1rem; }
.ev-head h1 { margin: 0; }
.ev-head .meta { margin: .2rem 0 0; }
/* inside the community (the Events room): the room's own bar already says Events, so like the Garages room there is
   no big title here, just the count beside Create event */
body.embed .ev-head { align-items: center; margin-top: 0; }
body.embed .ev-head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.embed .ev-head .meta { margin: 0; color: var(--chrome); font-size: 1rem; }
.ev-head .btn svg, .ev-acts .btn svg { vertical-align: -3px; margin-right: .3rem; }
.ev-new { margin: 0 0 1.4rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.ev-new h2 { margin: 0 0 .8rem; font-size: 1.25rem; }
.ev-list { display: grid; gap: 1rem; }
.ev-empty { padding: 1.4rem 1.2rem; border: 1px dashed var(--line); border-radius: 14px; text-align: center; }
.ev-empty p { margin: .2rem 0; }
.ev-card { position: relative; padding: 1rem 1.15rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.ev-card.is-live { border-color: rgba(255, 42, 42, .65); box-shadow: 0 0 0 1px rgba(255, 42, 42, .25), 0 0 22px rgba(255, 42, 42, .15); }
.ev-card.is-ended { opacity: .8; }
.ev-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.ev-when { display: flex; align-items: flex-start; gap: .6rem; min-width: 0; }
.ev-when > svg { flex: none; color: #8ea1ff; margin-top: .1rem; }
.ev-when > span { display: grid; gap: .05rem; }
.ev-date { color: var(--strong); font-size: 1rem; }
.ev-rep { color: var(--muted); font-size: .86rem; }
.ev-live { color: #ff5a5a; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.ev-live::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .35rem; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 8px #ff3b3b; vertical-align: 1px; }
.ev-count { flex: none; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem .25rem .3rem; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--chrome); font-size: .92rem; }
.ev-count .av { width: 22px; height: 22px; margin-right: -.55rem; border: 2px solid var(--panel); border-radius: 50%; }
.ev-count .av:last-of-type { margin-right: .15rem; }
.ev-count svg { color: var(--muted); }
.ev-title { margin: .75rem 0 .35rem; font-size: 1.45rem; line-height: 1.2; overflow-wrap: anywhere; }
.ev-title a { color: var(--strong); text-decoration: none; }
.ev-title a:hover { text-decoration: underline; }
.ev-desc { color: var(--text); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.ev-desc.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ev-more { margin-top: .2rem; font-size: .9rem; }
.ev-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem 1rem; flex-wrap: wrap; margin-top: 1rem; }
.ev-info { display: grid; gap: .45rem; min-width: 0; }
.ev-host { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none; }
.ev-host .av { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.ev-host b { font-weight: 700; }
.ev-k { color: var(--muted); font-size: .88rem; }
.ev-where { display: inline-flex; align-items: center; gap: .45rem; color: var(--chrome); min-width: 0; overflow-wrap: anywhere; }
.ev-where svg { flex: none; color: var(--muted); }
.ev-where a { color: var(--chrome); }
.ev-acts { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.btn.ev-int { background: rgba(255, 255, 255, .08); color: var(--strong); border: 1px solid var(--line); box-shadow: none; }
.btn.ev-int:hover { background: rgba(255, 255, 255, .14); }
.btn.ev-int.on { background: var(--scanner); border-color: var(--scanner); color: #fff; }
.ev-menu { position: relative; }
.ev-menu > summary { list-style: none; cursor: pointer; padding-inline: .7rem; font-size: 1.2rem; line-height: 1; }
.ev-menu > summary::-webkit-details-marker { display: none; }
.ev-menu > summary::after { display: none; }
.ev-menu-list { position: absolute; right: 0; bottom: calc(100% + .4rem); z-index: 20; min-width: 200px; padding: .35rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); display: grid; }
.ev-menu-list a, .ev-menu-list button { display: block; width: 100%; padding: .55rem .7rem; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.ev-menu-list a:hover, .ev-menu-list button:hover, .ev-menu-list a:focus-visible, .ev-menu-list button:focus-visible { background: rgba(255, 255, 255, .08); }
.ev-menu-list form { margin: 0; }
.ev-menu-list .danger { color: #ff6b6b; }
.ev-edit { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.ev-edit > summary { list-style: none; display: inline-block; cursor: pointer; }
.ev-edit > summary::after { display: none; }
.ev-edit[open] > summary { margin-bottom: .8rem; }
.ev-past { margin-top: 1.6rem; }
.ev-past > summary { cursor: pointer; font-weight: 700; color: var(--chrome); margin-bottom: .8rem; }
.ev-form label { display: block; margin: 0 0 .8rem; }
.ev-form input[type=text], .ev-form input[type=url], .ev-form input[type=date], .ev-form input[type=time], .ev-form select, .ev-form textarea { display: block; width: 100%; margin-top: .3rem; box-sizing: border-box; }
.ev-form textarea { resize: vertical; }
.ev-row { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: .7rem; }
.ev-form .check, .ev-form .radio { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; }
.ev-where-pick { margin: .4rem 0 .9rem; padding: .7rem .9rem .3rem; border: 1px solid var(--line); border-radius: 10px; }
.ev-where-pick legend { padding: 0 .3rem; font-weight: 700; }
.ev-where-f { margin-top: .6rem; }
.ev-form-acts { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .4rem 0 0; }
.ev-form-msg { color: #ff7b7b; }
.ev-toast { position: sticky; top: .5rem; z-index: 30; }
.dc-evn { flex: none; margin-left: auto; min-width: 1.2rem; padding: 0 .35rem; border-radius: 999px; background: rgba(142, 161, 255, .2); color: #b9c4ff; font-size: .72rem; font-weight: 700; line-height: 1.2rem; text-align: center; }
@media (max-width: 560px) {
  .ev-card { padding: .9rem .9rem; }
  .ev-title { font-size: 1.25rem; }
  .ev-row { grid-template-columns: 1fr 1fr; }
  .ev-row label:last-child { grid-column: 1 / -1; }
  .ev-acts { width: 100%; }
  .ev-acts .ev-int { flex: 1; justify-content: center; }
}
/* events: the picture, the time zone lines, the picture picker */
.ev-img { display: block; width: fit-content; max-width: min(100%, 440px); margin: .8rem 0 0; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.ev-img img { display: block; max-width: 100%; max-height: 300px; width: auto; height: auto; }
.ev-tz, .ev-mine { color: var(--muted); font-size: .84rem; }
.ev-mine { color: var(--chrome); }
.ev-img-pick { display: grid; gap: .45rem; justify-items: start; margin: 0 0 .9rem; }
.ev-img-label { font-weight: 600; }
.ev-img-prev img { display: block; max-width: 260px; max-height: 160px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.ev-img-btn { cursor: pointer; }

/* ---- A build's page (views/hub-garage-build.php, js/garage-build.js): the left column, the main photo with its
   numbered red circles beside the parts list, then each phase across the page with its photo grid and updates ---- */
.wrap.gb { width: calc(100% - 2rem); max-width: none; }   /* edge to edge, whatever the screen's width */
/* full screen: no site menu or footer; the page's own bar with ✕ stays at the top */
body.full-page > .site-header, body.full-page .celeb-bar, body.full-page .maint-banner + .skip { display: none; }
body.full-page main { padding-top: 0; overflow-x: clip; }
body.full-page .wrap.gb { padding-top: 0; }
.gb-fsbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: .9rem; margin: 0 calc(50% - 50vw) 1rem; padding: .55rem 1rem; background: rgba(8, 9, 11, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.gb-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.7rem; line-height: 1; color: var(--strong); text-decoration: none; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); flex: none; }
.gb-close:hover { background: var(--scanner); border-color: var(--scanner); }
.gb-fstitle { font: 700 1.25rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .03em; color: var(--strong); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* four columns along the top: menu | main photo | car details | parts; the phases under the photo and car details,
   the parts list running down the right beside them. (.gb-col and .gb-right only group things for smaller screens.) */
.gb-top { display: grid; grid-template-columns: 240px minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "side stage specs parts" "side own own parts" "side bands bands parts"; grid-template-rows: auto auto 1fr; column-gap: 1.2rem; align-items: start; margin: .4rem 0 1.6rem; }
.gb-col, .gb-right { display: contents; }
.gb-side { grid-area: side; }
.gb-main { grid-area: stage; }
.gb-specs { grid-area: specs; }
.gb-parts { grid-area: parts; position: sticky; top: 72px; max-height: calc(100vh - 86px); overflow: auto; scrollbar-width: thin; }
.gb-ownbar { grid-area: own; margin-top: 1.2rem !important; }
.gb-phasebands { grid-area: bands; margin-top: 1.2rem; min-width: 0; }
.gb-boxhead { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.gb-boxhead .gb-switch { padding: .3rem .6rem; font-size: .85rem; gap: .45rem; }
.gb-boxhead .gb-sw { width: 34px; height: 19px; }
.gb-boxhead .gb-sw::after { width: 13px; height: 13px; }
.gb-boxhead .gb-switch input:checked + .gb-sw::after { transform: translateX(15px); }
.gb-boxhead .gb-switch:has(input:checked) { border-color: var(--scanner); }
.gb-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: grid; gap: .6rem; }
.gb-box h2 { margin: 0; font-size: 1.2rem; }
.gb-dl { margin: 0; display: grid; gap: 0; }
.gb-dl > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.gb-dl > div:last-child { border-bottom: 0; }
.gb-dl dt { color: var(--muted); font-size: .86rem; }
.gb-dl dd { margin: 0; color: var(--strong); font-weight: 600; overflow-wrap: anywhere; }
.gb-dl:empty { display: none; }
.gb.editing .gb-dl, .gb.editing [data-gb-dlnone] { display: none; }   /* Edit mode: the rows to change instead */
.gb-specform { border-top: 1px solid var(--line); padding-top: .8rem; }
.gb-specrows { display: grid; gap: .4rem; }
.gb-specrow { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 30px; gap: .35rem; align-items: center; }
.gb-specrow input { width: 100%; min-width: 0; padding: .45rem .55rem; font-size: .9rem; }
.gb-x { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--chrome); cursor: pointer; padding: 0; }
.gb-x:hover { color: var(--danger); border-color: var(--danger); }
.gb-specform .actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0 0; }
.gb-stagebar { position: absolute; top: 10px; left: 10px; display: flex; gap: .4rem; line-height: 1.2; z-index: 3; }
.gb-chip { border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .65); color: #fff; border-radius: 99px; padding: .35rem .75rem; font: 700 .85rem/1.2 var(--body, inherit); cursor: pointer; }
.gb-chip:hover { background: var(--scanner); border-color: var(--scanner); }
.gb-chip[data-gb-full] { width: 34px; height: 34px; padding: 0; font-size: 1.05rem; }
.gb-tdots { position: absolute; left: 6px; bottom: 6px; z-index: 2; min-width: 24px; height: 24px; padding: 0 .4rem; border-radius: 99px; background: var(--scanner); color: #fff; font: 800 .78rem/24px var(--head); text-align: center; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); pointer-events: none; }
.gb-tile.on-stage { outline: 3px solid var(--scanner); outline-offset: -3px; }
.gb-tile.is-photo > a { cursor: zoom-in; }
.gb-part:not(.here) .gb-pbody b { color: var(--chrome); }
/* the right-hand column: the main photo and parts, then each phase under it */
.gb-side { display: grid; gap: .9rem; padding: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.gb-back { color: var(--muted); text-decoration: none; font-size: .88rem; }
.gb-back:hover { color: var(--strong); }
.gb-name h1 { margin: .2rem 0 .5rem; font-size: 1.7rem; line-height: 1.05; }
.gb-name .gx-kicker { margin: 0; }
.gb-by { display: flex; gap: .55rem; align-items: center; margin: 0; }
.gb-by small { color: var(--muted); }
.gb-by .hub-av, .gb-by img { width: 36px; height: 36px; }
.gb-pen { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); vertical-align: middle; text-decoration: none; }
.gb-pen:hover { color: var(--strong); background: rgba(255, 255, 255, .08); }
.gb-pen svg { width: 15px; height: 15px; }
.gb-acts { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.gb-side .gx-liked-by { margin: -.4rem 0 0; font-size: .8rem; color: var(--muted); }
.gb-side .gx-liked-by:empty { display: none; }
.gb-sec { border-top: 1px solid var(--line); padding-top: .8rem; display: grid; gap: .5rem; }
.gb-sec > p { margin: 0; }
.gb-lab { font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0; display: flex; align-items: center; gap: .3rem; }
.gb-lab b { color: var(--strong); }
.gb-bar { display: flex; gap: 3px; }
.gb-bar i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.gb-bar i.on { background: var(--scanner); border-color: var(--scanner); }
.gb-bar i.now { background: linear-gradient(90deg, var(--scanner) 50%, rgba(255, 255, 255, .08) 50%); border-color: var(--scanner); }
.gb-phases { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.gb-phases a { display: flex; align-items: center; gap: .5rem; padding: .3rem .4rem; border-radius: 7px; color: var(--chrome); text-decoration: none; font-size: .92rem; }
.gb-phases a:hover { background: rgba(255, 255, 255, .06); color: var(--strong); }
.gb-dot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.gb-phases .done a { color: var(--muted); }
.gb-phases .done .gb-dot { background: var(--scanner); border-color: var(--scanner); }
.gb-phases .now a { color: var(--strong); font-weight: 700; }
.gb-phases .now .gb-dot { border-color: var(--scanner); box-shadow: 0 0 0 3px rgba(255, 42, 42, .25); }
.gb-story { font-size: .92rem; color: var(--chrome); max-height: 13em; overflow: auto; }
.gb-small { font-size: .84rem; color: var(--muted); gap: .2rem; }
.gb-side .gx-botm { display: grid; gap: .4rem; justify-items: start; font-size: .85rem; }
.gb-share-own .share-btns { flex-wrap: wrap; }
.gb-switch { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-weight: 700; cursor: pointer; user-select: none; }
.gb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gb-sw { width: 40px; height: 22px; border-radius: 99px; background: #3a3f49; position: relative; flex: none; transition: background .15s; }
.gb-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.gb-switch input:checked + .gb-sw { background: var(--scanner); }
.gb-switch input:checked + .gb-sw::after { transform: translateX(18px); }
.gb-switch input:focus-visible + .gb-sw { outline: 2px solid var(--strong); outline-offset: 2px; }

.gb-edit-only { display: none !important; }
.gb.editing .gb-edit-only { display: revert !important; }
.gb.editing .gb-ownbar.gb-edit-only, .gb.editing .gb-padd.gb-edit-only { display: block !important; }
.gb.editing .gb-tbtns.gb-edit-only, .gb.editing .gb-ptools.gb-edit-only { display: flex !important; }
.gb.editing .gb-hero-change.gb-edit-only { display: inline-flex !important; }
.gb.editing .gb-hero-change.gb-edit-only[hidden] { display: none !important; }

.gb-main { display: block; min-width: 0; }
.gb-hero { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); line-height: 0; text-align: center; }
.gb-pic { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.gb-hero img { display: block; width: auto; max-width: 100%; height: auto; max-height: 72vh; user-select: none; -webkit-user-drag: none; }
.gb-hero:not(.empty) { min-height: 200px; }
.gb-hero.empty { min-height: 280px; display: grid; place-items: center; line-height: 1.4; }
.gb-hero-none { color: var(--muted); padding: 2rem; text-align: center; max-width: 30ch; }
.gb-hero.busy { opacity: .6; }
.gb-dots { position: absolute; inset: 0; pointer-events: none; }
.gb-dot-b { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--scanner); color: #fff; font: 800 .85rem/1 var(--head); display: grid; place-items: center; padding: 0; cursor: pointer; pointer-events: auto; box-shadow: 0 0 0 4px rgba(255, 42, 42, .35), 0 2px 8px rgba(0, 0, 0, .6); transition: transform .12s, box-shadow .12s; touch-action: none; }
.gb-dot-b:hover, .gb-dot-b.on { transform: translate(-50%, -50%) scale(1.2); box-shadow: 0 0 0 6px rgba(255, 42, 42, .45), 0 0 18px var(--glow); }
.gb.editing .gb-dot-b { cursor: grab; }
.gb.editing .gb-hero img { cursor: crosshair; }
.gb-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgba(0, 0, 0, .72); color: #fff; padding: .35rem .75rem; border-radius: 99px; font-size: .82rem; line-height: 1.3; pointer-events: none; white-space: nowrap; }
.gb-hero.placing { outline: 3px solid var(--scanner); outline-offset: -3px; }
.gb-hero.placing .gb-hint { background: var(--scanner); }
.gb-hero-change { position: absolute; top: 10px; right: 10px; line-height: 1.2; background: rgba(0, 0, 0, .65); cursor: pointer; }

.gb-parts h2 { margin: 0; font-size: 1.2rem; }
.gb-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.gb-plist:empty { display: none; }
.gb-part { display: flex; gap: .65rem; align-items: center; padding: .5rem; border-radius: 10px; border: 1px solid transparent; cursor: default; }
.gb-part.on { border-color: var(--scanner); background: var(--scanner-dark); }
.gb-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--scanner); color: #fff; font: 800 .8rem/1 var(--head); display: grid; place-items: center; }
.gb-n.nodot { background: transparent; border: 2px dashed var(--muted); color: var(--muted); }
.gb-pimg { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex: none; background: var(--panel-2); }
.gb-pbody { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.gb-pbody b { color: var(--strong); line-height: 1.2; }
.gb-pnote { color: var(--muted); font-size: .84rem; }
.gb-shop, .gb-ext { font-size: .84rem; font-weight: 700; text-decoration: none; }
.gb-shop { color: var(--scanner-hover); }
.gb-ext { color: var(--chrome); }
.gb-shop:hover, .gb-ext:hover { text-decoration: underline; }
.gb-ptools { gap: .2rem; flex: none; flex-wrap: wrap; width: 60px; justify-content: flex-end; }
.gb-ptools button { width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--chrome); cursor: pointer; padding: 0; font-size: .75rem; }
.gb-ptools button:hover { color: var(--strong); border-color: var(--muted); }
.gb-ptools button.danger:hover { color: var(--danger); border-color: var(--danger); }
.gb-padd { border-top: 1px solid var(--line); padding-top: .8rem; display: grid; gap: .5rem; }
.gb-padd > p { margin: 0; }
.gb-padd input[type=text], .gb-padd input[type=url] { width: 100%; }
.gb-pmore { display: grid; gap: .5rem; }
.gb-padd .actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0; }
.gb-padd .actions .hint { margin: 0; }
.gb-pac { position: relative; }
.gb-pac-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: .3rem; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .55); max-height: 320px; overflow: auto; }
.gb-pac-i { display: flex; gap: .6rem; align-items: center; padding: .45rem .5rem; border-radius: 8px; cursor: pointer; }
.gb-pac-i:hover, .gb-pac-i.on { background: var(--scanner-dark); }
.gb-pac-i img, .gb-pac-noimg { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; flex: none; background: var(--panel); }
.gb-pac-t { display: grid; min-width: 0; }
.gb-pac-t b { color: var(--strong); font-size: .9rem; line-height: 1.2; }
.gb-pac-t small { color: var(--scanner-hover); font-weight: 700; }
.gb-pac-i.own { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.gb-pchosen { margin: 0; font-size: .88rem; color: var(--ok); }

.gb-ownbar { margin: 0 0 1.4rem; }
.gb-ownbar > details { margin: 0 0 .8rem; }

.gb-phasebands { display: grid; gap: 1.4rem; }
.gb-band { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem 1.2rem; display: grid; gap: 1rem; scroll-margin-top: 80px; }
.gb-band.is-cur { border-color: rgba(255, 42, 42, .55); box-shadow: 0 0 0 1px rgba(255, 42, 42, .2); }
.gb-bhead { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.gb-bhead h2 { margin: 0; font-size: 1.45rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.gb-bhead h2 small { font-family: inherit; font-size: .82rem; color: var(--muted); font-weight: 400; }
.gb-bacts { display: flex; gap: .4rem; }
.gb-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: clamp(150px, 9vw, 260px); gap: 6px; border-radius: 12px; overflow: hidden; }
.gb-grid.n1 { grid-template-columns: 1fr; grid-auto-rows: 380px; }
.gb-grid.n2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 300px; }
.gb-grid.n2 .big, .gb-grid.n1 .big { grid-row: auto; grid-column: auto; }
.gb-grid.n3 { grid-template-columns: 2fr 1fr; }
.gb-grid.n3 .big { grid-row: span 2; grid-column: auto; }
.gb-grid.n4, .gb-grid.n5 { grid-template-columns: 2fr 1fr 1fr; }
.gb-grid.n4 .big, .gb-grid.n5 .big { grid-row: span 2; grid-column: auto; }
.gb-grid.n4 .gb-tile:last-child { grid-column: span 2; }
.gb-grid.n6, .gb-grid.n7 { grid-template-columns: repeat(5, 1fr); }
.gb-grid.n8, .gb-grid.n9 { grid-template-columns: repeat(6, 1fr); }
.gb-grid.n6 .gb-tile:nth-child(6), .gb-grid.n8 .gb-tile:nth-child(8) { grid-column: span 2; }
.gb-tile { position: relative; overflow: hidden; background: #000; min-height: 0; }
.gb-tile.big { grid-column: span 2; grid-row: span 2; }
.gb-tile > a { display: block; width: 100%; height: 100%; }
.gb-tile img, .gb-tile video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s, filter .25s; }
.gb-tile:hover img { transform: scale(1.03); filter: brightness(1.08); }
.gb-tile.extra { display: none; }
.gb-band.all .gb-tile.extra { display: block; }
.gb-more { position: absolute; inset: 0; z-index: 1; border: 0; background: rgba(0, 0, 0, .78); color: #fff; font: 800 1.6rem var(--head); cursor: pointer; }
.gb-band.all .gb-more { display: none; }
.gb-tbtns { position: absolute; top: 6px; right: 6px; gap: 4px; z-index: 2; }
.gb-tbtns button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; cursor: pointer; padding: 0; font-size: .9rem; }
.gb-tbtns button[data-gb-star]:hover { color: var(--amber); }
.gb-tbtns button[data-gb-del]:hover { color: var(--danger); }
.gb-posts { display: grid; gap: .8rem; }
.gb-posts > .gx-post { margin: 0; }
/* an update's photos and videos are already in its phase's grid above: not shown twice */
.gb-posts .mz, .gb-posts .gx-media { display: none; }
.gb-band.gx-group { padding-left: 1.2rem; margin: 0; }
.gb-band.gx-group::before { display: none; }
.gb-side .gb-name h1 { font-size: 1.9rem; line-height: 1; margin: .3rem 0 .6rem; overflow-wrap: anywhere; }
.gb-older > summary { cursor: pointer; color: var(--chrome); font-weight: 700; padding: .5rem 0; }
.gb-older[open] > summary { margin-bottom: .6rem; }
.gb-older > .gx-post + .gx-post { margin-top: .8rem; }
.gb-quiet { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.gb-quiet li { background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; padding: .7rem 1rem; color: var(--muted); scroll-margin-top: 80px; }
.gb-quiet li b { color: var(--chrome); }

@media (max-width: 1399px) {
  .gb-top { grid-template-columns: 240px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "side stage stage" "side specs parts" "side own own" "side bands bands"; grid-template-rows: auto auto auto 1fr; }
  .gb-specs, .gb-parts { margin-top: 1.2rem; }
  .gb-parts { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 820px) {
  .gb-top { display: flex; flex-direction: column; align-items: stretch; gap: 1.2rem; }
  .gb-main { order: -3; }
  .gb-specs { order: -2; }
  .gb-parts { order: -1; }
  .gb-specs, .gb-parts, .gb-ownbar, .gb-phasebands { margin-top: 0 !important; }
  .gb-ownbar { order: 1; }
  .gb-phasebands { order: 2; }
  .gb-side { position: static; max-height: none; }
  .gb-phases li:not(.now) { display: none; }
  .gb-story { max-height: 7em; }
  .gb-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 110px; }
  .gb-grid.n4, .gb-grid.n5, .gb-grid.n3 { grid-template-columns: repeat(3, 1fr); }
  .gb-tile.big, .gb-grid.n3 .big, .gb-grid.n4 .big, .gb-grid.n5 .big { grid-column: span 3; grid-row: span 2; }
  .gb-grid.n4 .gb-tile:last-child, .gb-grid.n6 .gb-tile:nth-child(6), .gb-grid.n8 .gb-tile:nth-child(8) { grid-column: auto; }
  .gb-grid.n6, .gb-grid.n7, .gb-grid.n8, .gb-grid.n9 { grid-template-columns: repeat(3, 1fr); }
  .gb-grid.n1, .gb-grid.n2 { grid-auto-rows: 220px; }
  .gb-band { padding: .9rem; border-radius: 12px; }
  .gb-bhead h2 { font-size: 1.25rem; }
  .gb-dot-b { width: 26px; height: 26px; font-size: .78rem; }
}

/* ---- The KIOK Knowledge Base (views/kb.php, views/kb-article.php, partials/kb-side.php): edge to edge, the side menu
   on the left; on an article the downloads and parts on the right ---- */
.kb { width: calc(100% - 2rem); margin: 0 auto; padding: 1.2rem 0 3rem; }
.kb-hidden { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .55rem .9rem; border-radius: 10px; border: 1px solid var(--amber); color: var(--amber); background: rgba(255, 176, 32, .08); font-size: .9rem; }
.kb-hidden a { color: inherit; text-decoration: underline; }
.kb-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.kb-grid-art { grid-template-columns: 250px minmax(0, 1fr) 300px; }
.kb-main { display: grid; gap: 1.2rem; min-width: 0; }
.kb-ico { flex: none; vertical-align: middle; }
.kb-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; min-width: 0; }
.kb-box > h2 { margin: 0 0 .8rem; font-size: 1.25rem; }
.kb-muted { color: var(--muted); }

.kb-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; scrollbar-width: thin; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .9rem; }
.kb-side-fold > summary { display: none; }
.kb-side-h { margin: 1rem 0 .45rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kb-types { display: grid; gap: .3rem; }
.kb-types a { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: 9px; border: 1px solid var(--line); color: var(--chrome); text-decoration: none; font-size: .92rem; }
.kb-types a span { flex: 1; }
.kb-types a b { color: var(--muted); font-weight: 600; font-size: .85rem; }
.kb-types a:hover { border-color: var(--muted); color: var(--strong); }
.kb-types a.on { border-color: var(--scanner); color: var(--strong); background: var(--scanner-dark); }
.kb-side-cats, .kb-side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.kb-side-cats a, .kb-side-list a { display: flex; gap: .5rem; padding: .35rem .45rem; border-radius: 8px; color: var(--chrome); text-decoration: none; font-size: .9rem; line-height: 1.3; }
.kb-side-cats a:hover, .kb-side-list a:hover { background: rgba(255, 255, 255, .05); color: var(--strong); }
.kb-side-cats a.on, .kb-side-list a.on { color: var(--strong); font-weight: 700; background: var(--scanner-dark); }
.kb-num { flex: none; display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--strong); font: 700 .8rem/1 var(--head); }
.kb-ask { display: grid; gap: .35rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.kb-ask strong { color: var(--strong); }
.kb-ask .btn { justify-self: start; display: inline-flex; gap: .4rem; align-items: center; }

.kb-search { display: flex; align-items: center; gap: .5rem; background: var(--black); border: 1px solid var(--line); border-radius: 99px; padding: .3rem .35rem .3rem .9rem; color: var(--muted); }
.kb-search:focus-within { border-color: var(--scanner); }
.kb-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: .4rem 0 !important; box-shadow: none !important; color: var(--text); }
.kb-search .btn { border-radius: 99px; }
.kb-search-side { padding: .15rem .6rem; }
.kb-head { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; }
.kb-head h1 { margin: .15rem 0 .25rem; font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.05; }
.kb-head .kb-search { flex: 0 1 460px; }
.kb-kicker { margin: 0; font-size: .74rem; letter-spacing: .2em; color: var(--scanner-hover); font-weight: 700; }
.kb-sub { margin: 0; color: var(--chrome); }
.kb-typesline { margin: .35rem 0 0; color: var(--muted); font-size: .88rem; }
.kb-cat-title { display: flex; gap: 1rem; align-items: center; }
.kb-crumb { margin: 0 0 .2rem; font-size: .85rem; color: var(--muted); }
.kb-crumb a { color: var(--muted); }
.kb-crumb a:hover { color: var(--strong); }
.kb-sort { display: flex; gap: .3rem; }
.kb-sort a { padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--line); color: var(--chrome); text-decoration: none; font-size: .88rem; }
.kb-sort a.on { border-color: var(--scanner); color: var(--strong); }

.kb-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - 3.2rem) / 5)), 1fr)); gap: .8rem; }   /* at most 5 across */
.kb-tile { display: grid; gap: .35rem; align-content: start; height: 100%; padding: 1rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--chrome); transition: border-color .15s, transform .15s; }
.kb-tile:hover { border-color: var(--scanner); transform: translateY(-2px); }
.kb-tile.lib { border-color: rgba(255, 42, 42, .55); }
.kb-tile strong { color: var(--strong); font-size: 1.02rem; line-height: 1.25; display: flex; gap: .45rem; align-items: baseline; }
.kb-tile-top { display: flex; justify-content: space-between; align-items: center; }
.kb-tile-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--scanner-dark); color: var(--scanner-hover); flex: none; }
.kb-tile-n { font-size: .8rem; color: var(--muted); }
.kb-tile-desc { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.kb-tile-ask { border-style: dashed; }
.kb-twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; align-items: start; }

.kb-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.kb-row + .kb-row { border-top: 1px solid var(--line); }
.kb-row > a { display: flex; gap: .8rem; padding: .75rem .3rem; text-decoration: none; color: var(--chrome); border-radius: 8px; }
.kb-row > a:hover { background: rgba(255, 255, 255, .04); }
.kb-row > a:hover strong { color: var(--scanner-hover); }
.kb-row-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .05); color: var(--scanner-hover); }
.kb-row-body { display: grid; gap: .15rem; min-width: 0; }
.kb-row-body strong { color: var(--strong); font-size: 1.02rem; line-height: 1.3; }
.kb-row-sum { color: var(--muted); font-size: .88rem; }
.kb-row-meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 0; font-size: .8rem; }
.kb-type { display: inline-flex; align-items: center; gap: .3rem; padding: .05rem .5rem; border-radius: 6px; background: rgba(255, 255, 255, .07); color: var(--chrome); font-weight: 600; }
.kb-catnum { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); font: 700 .72rem/1 var(--head); }
.kb-rows-tight .kb-row > a { padding: .55rem .2rem; }
.kb-rows-tight .kb-row-sum { display: none; }
.kb-coming { display: flex; align-items: center; gap: .6rem; margin: 0; color: var(--muted); }

.kb-lib { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.kb-lib-wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .5rem; }
.kb-lib a { display: flex; gap: .65rem; align-items: center; padding: .5rem .55rem; border-radius: 10px; border: 1px solid var(--line); color: var(--chrome); text-decoration: none; }
.kb-lib a:hover { border-color: var(--scanner); }
.kb-lib .kb-ico { color: var(--scanner-hover); }
.kb-lib span { display: grid; min-width: 0; }
.kb-lib strong { color: var(--strong); font-size: .93rem; }
.kb-lib small { color: var(--muted); font-size: .8rem; }
.kb-pfaq { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.kb-pfaq summary { cursor: pointer; font-weight: 600; color: var(--strong); }

.kb-article h1 { margin: .4rem 0 .5rem; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.1; }
.kb-lead { color: var(--chrome); font-size: 1.1rem; margin: 0 0 1rem; max-width: 46rem; }
.kb-text { max-width: 46rem; }
.kb-text img { max-width: 100%; height: auto; border-radius: 10px; }
/* the text at a comfortable reading width, the photos in a column beside it from the top */
.kb-artbody.has-pics { display: grid; grid-template-columns: minmax(0, 46rem) minmax(220px, 1fr); gap: 1.6rem; align-items: start; }
.kb-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; align-content: start; margin-top: .4rem; }
.kb-pics .article-pic { margin: 0; }
.kb-pics img { display: block; width: 100%; height: auto; border-radius: 10px; }
.kb-pics .cap { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
@media (max-width: 1000px) {
  .kb-artbody.has-pics { grid-template-columns: minmax(0, 1fr); }
  .kb-pics { margin-top: 1rem; }
}
.kb-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.kb-foot > a { display: inline-flex; gap: .4rem; align-items: center; }
.kb-helpful { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0; color: var(--chrome); }
.kb-right { display: grid; gap: 1rem; position: sticky; top: 84px; }
.kb-right .kb-box > h2 { font-size: 1.1rem; }
.kb-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.kb-parts a { display: flex; gap: .65rem; align-items: center; text-decoration: none; color: var(--chrome); }
.kb-parts img, .kb-noimg { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; background: rgba(255, 255, 255, .06); }
.kb-parts span { display: grid; }
.kb-parts strong { color: var(--strong); font-size: .93rem; line-height: 1.25; }
.kb-parts small { color: var(--scanner-hover); font-weight: 700; }
.kb-parts a:hover strong { text-decoration: underline; }
.kb-related { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }

@media (max-width: 1200px) {
  .kb-grid-art { grid-template-columns: 250px minmax(0, 1fr); }
  .kb-right { grid-column: 2; position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 820px) {
  .kb { width: calc(100% - 1.4rem); }
  .kb-grid, .kb-grid-art { grid-template-columns: minmax(0, 1fr); }
  .kb-right { grid-column: auto; }
  .kb-side { position: static; max-height: none; padding: 0; }
  .kb-side-fold > summary { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; cursor: pointer; font-weight: 700; color: var(--strong); list-style: none; }
  .kb-side-fold > summary::-webkit-details-marker { display: none; }
  .kb-side-fold > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
  .kb-side-fold[open] { padding-bottom: 1rem; }
  .kb-head { padding: 1rem; }
  .kb-tiles { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* Admin > Knowledge Base */
.kb-admin-cats textarea { width: 100%; margin-top: .35rem; }
.kb-admin-cats td { vertical-align: top; }
.kb-admin-ico { display: inline-grid; place-items: center; margin-right: .35rem; vertical-align: middle; }
.kb-admin-ticks { white-space: nowrap; }
.kb-admin-ticks label { display: inline-flex; align-items: center; gap: .2rem; margin-right: .45rem; font-size: .9rem; }
.kb-admin-none td:first-child::before { content: "Not in the Knowledge Base · "; color: var(--amber); font-size: .8rem; }
.kb-sortnew { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 1rem; padding: .6rem .9rem; border: 1px solid var(--amber); border-radius: 10px; }
.kb-admin-radios { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.kb-admin-radios label { display: inline-flex; align-items: center; gap: .35rem; }
.kb-admin-parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .25rem .8rem; max-height: 22rem; overflow: auto; margin-top: .6rem; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; }
.kb-admin-parts label.on { font-weight: 700; }
.kb-admin-full { max-width: none; width: 100%; }
.kb-admin-cats input[type=text] { width: 100%; min-width: 18rem; }
.kb-admin-cats select, .kb-admin-arts select { min-width: 9rem; }
.kb-admin-cats textarea { min-width: 18rem; }
.kb-admin-arts td:nth-child(5) { white-space: nowrap; }
.kb-helpful .btn.kb-voted { background: var(--scanner); border-color: var(--scanner); color: #fff; }
.kb-helpful small { flex-basis: 100%; }
.kb-admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .8rem; margin: 1rem 0 1.4rem; }
.kb-admin-stats > div { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .15rem; }
.kb-admin-stats b { font-size: 1.4rem; }
.kb-admin-stats span { color: var(--muted); font-size: .85rem; }
.kb-saved { display: block; white-space: nowrap; font-size: .85rem; color: var(--muted); min-height: 1.3em; margin-top: .25rem; }
.kb-admin-arts td:first-child { min-width: 14rem; }
.kb-admin-more a { display: block; white-space: nowrap; line-height: 1.5; }
.kb-admin-more a + a { margin-top: .25rem; }
.kb-admin-arts select { min-width: 7.5rem; }
.kb-admin-ticks { white-space: normal; }
.kb-admin-ticks > div { display: grid; grid-template-columns: repeat(5, auto); gap: .3rem .2rem; }
.kb-admin-ticks label { margin-right: .3rem; }
.kb-admin-arts td:first-child { min-width: 12rem; }
.kb-saved.ok { color: var(--ok); }
.kb-saved.bad { color: var(--danger); }

/* ---- the Podcasts room (members' YouTube podcasts) ---- */
.wrap.pod-page { max-width: 1100px; }
.pod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; margin: 0 0 1.4rem; }
.pod-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.pod-card.is-pending, .pod-card.is-declined { border-style: dashed; }
.pod-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0d0f13; }
.pod-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pod-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: #ff3b3b; }
.pod-kind { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.pod-thumb .pod-kind { position: absolute; left: .55rem; bottom: .55rem; }
.pod-body { display: flex; flex-direction: column; gap: .3rem; padding: .8rem .95rem .95rem; flex: 1; }
.pod-body p { margin: 0; }
.pod-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.pod-author { color: var(--chrome); font-size: .92rem; }
.pod-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; }
.pod-body .meta { font-size: .85rem; }
.pod-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: auto; padding-top: .5rem; }
.pod-acts form { margin: 0; }
.pod-acts .btn svg { vertical-align: -3px; }
.pod-sort { display: flex; gap: .4rem; margin: 0 0 .9rem; }
.pod-sort a { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--chrome); text-decoration: none; font-size: .92rem; }
.pod-sort a.on { border-color: var(--chrome); color: var(--strong); background: var(--panel); }
.pod-mine h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
.pod-preview { display: flex; gap: .8rem; align-items: center; margin: -.3rem 0 .9rem; padding: .55rem; border: 1px solid var(--line); border-radius: 10px; }
.pod-preview img { width: 120px; height: 68px; object-fit: cover; border-radius: 6px; flex: none; }
.pod-preview > div { display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; min-width: 0; }
.pod-preview.bad { color: var(--danger); border-color: var(--tag-out); }
.pod-admin-acts { min-width: 15rem; }
.pod-admin-acts form { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .4rem; }
.pod-admin-acts input[type=text] { flex: 1 1 12rem; min-width: 0; }

/* ---- a build's photos under the main photo: tap one to swap it into the big spot (it keeps its own red circles) ---- */
.gb-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin: .55rem 0 0; }
.gb.editing .gb-strip.gb-edit-only { display: flex !important; }
.gb-thumb { position: relative; width: 104px; height: 70px; flex: none; }
.gb-thumb-b { display: block; width: 100%; height: 100%; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; }
.gb-thumb-b:hover, .gb-thumb-b:focus-visible { border-color: var(--chrome); }
.gb-thumb-b img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-thumb .gb-tdots { left: 4px; bottom: 4px; min-width: 20px; height: 20px; font-size: .7rem; line-height: 20px; }
.gb-thumb .gb-tbtns { top: 3px; right: 3px; gap: 3px; }
.gb-thumb .gb-tbtns button { width: 24px; height: 24px; font-size: .75rem; }
.gb-thumb.is-main .gb-tbtns, .gb.editing .gb-thumb.is-main .gb-tbtns.gb-edit-only { display: none !important; }
.gb-thumb.is-main::after { content: '\2605'; position: absolute; top: 3px; right: 6px; color: var(--amber); font-size: .9rem; text-shadow: 0 0 3px #000; pointer-events: none; }
.gb-thumb-add { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; width: 104px; height: 70px; flex: none; border: 2px dashed var(--line); border-radius: 10px; color: var(--chrome); font-size: .88rem; cursor: pointer; }
.gb-thumb-add:hover { border-color: var(--chrome); color: var(--strong); }
.gb-thumb-add span { font-size: 1.3rem; line-height: 1; }
.gb-strip.busy { opacity: .6; pointer-events: none; }
.gb.editing .gb-thumb-add.gb-edit-only { display: inline-flex !important; }

/* ---- the FAQ page's Knowledge Base panel: a picture of it and a button into the community ---- */
.kb-promo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: center; margin: 2.2rem 0; padding: 1.8rem; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.kb-promo-kicker { margin: 0 0 .4rem; color: var(--scanner, #ff2a2a); font-size: .82rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.kb-promo h2 { margin: 0 0 .8rem; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.15; }
.kb-promo-text p { margin: 0 0 .9rem; }
.kb-promo-list { margin: 0 0 1rem; padding-left: 1.2rem; }
.kb-promo-list li { margin: .3rem 0; }
.kb-promo-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem !important; }
.kb-promo-shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.kb-promo-shot:hover { transform: translateY(-3px); }
.kb-promo-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .kb-promo { grid-template-columns: 1fr; padding: 1.2rem; gap: 1.2rem; }
  .kb-promo-shot { order: -1; }
}

/* ---- the private chat dock, Messenger style: wider windows, round heads on the right (minimised chats), the New
   message button under them and ⋯ (close all / minimise all); hover a message for react, reply and ⋮ ---- */
#hub-dock { z-index: 990; gap: .75rem; }
.dm-win { width: 340px; }
.dm-win .hub-log { height: 360px; }
.dm-win.min { display: none !important; }
.dm-mn::before { content: ""; width: 14px; height: 2px; background: currentColor; border-radius: 1px; }
.dm-heads { pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: .65rem; margin: 0 0 14px; align-self: flex-end; }
.dm-hlist { display: flex; flex-direction: column; gap: .65rem; align-items: center; }
.dm-hlist:empty { display: none; }
.dm-hd { position: relative; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; flex: none; }
.dm-hav { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.25rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .55); }
.dm-hav.online::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #3ccf6e; border: 2px solid var(--panel); }
.dm-hbadge { position: absolute; top: -3px; left: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e00; color: #fff; font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
.dm-hx { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--panel2, #222); color: var(--strong, #fff); border: 1px solid var(--line); font-size: .7rem; line-height: 18px; text-align: center; display: none; }
.dm-hd:hover .dm-hx, .dm-hd:focus-visible .dm-hx { display: block; }
.dm-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--panel); color: var(--strong, #fff); border: 1px solid var(--line); border-radius: 8px; padding: .25rem .6rem; font-size: .88rem; font-weight: 600; pointer-events: none; display: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.dm-hd:hover .dm-tip, .dm-hd:focus-visible .dm-tip { display: block; }
.dm-hnew { background: var(--panel); border: 1px solid var(--line); color: var(--strong, #fff); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .55); }
.dm-hnew:hover, .dm-hnew[aria-expanded="true"] { border-color: var(--scanner, #ff2a2a); color: var(--scanner, #ff2a2a); }
.dm-hmore { position: relative; height: 38px; display: flex; align-items: center; }
.dm-hdots { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--strong, #fff); font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.dm-heads:hover .dm-hdots, .dm-hdots:focus-visible, .dm-hdots[aria-expanded="true"] { opacity: 1; }
.dm-hmenu { position: absolute; right: calc(100% + 12px); top: -10px; min-width: 15rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: .35rem; box-shadow: 0 8px 26px rgba(0, 0, 0, .6); }
.dm-hmenu button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .7rem; border: 0; border-radius: 10px; background: none; color: var(--strong, #fff); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.dm-hmenu button:hover, .dm-hmenu button:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
/* New message */
.dm-newwin { height: 470px; }
.dm-newtitle { flex: 1; font-weight: 700; padding: .3rem .2rem; }
.dm-to { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
.dm-to span { color: var(--muted); }
.dm-to input { flex: 1; min-width: 0; border: 0; background: none; color: var(--strong, #fff); font: inherit; padding: .3rem 0; outline: none; box-shadow: none; }
.dm-people { list-style: none; margin: 0; padding: .3rem 0; overflow-y: auto; flex: 1; }
.dm-person { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .5rem .8rem; border: 0; background: none; color: var(--strong, #fff); font: inherit; font-size: 1rem; text-align: left; cursor: pointer; }
.dm-person:hover, .dm-person:focus-visible { background: rgba(255, 255, 255, .06); outline: none; }
.dm-pav { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.dm-pav .msg-on { position: absolute; right: 0; bottom: 0; }
.dm-pname { flex: 1; font-weight: 600; }
.dm-pnote { color: var(--muted); font-size: .8rem; }
.dm-pempty { padding: .8rem; color: var(--muted); font-size: .92rem; }
/* hover a message: ⋮ ↩ 😊 beside it */
.dm-log .hub-msg { position: relative; }
.dm-acts { position: absolute; top: 50%; transform: translateY(-50%); right: -2px; display: flex; gap: 2px; z-index: 2; }
.dm-log .hub-msg:not(.mine) .dm-acts { right: 4px; }
.dm-log .hub-msg.mine .dm-acts { right: auto; left: 4px; flex-direction: row-reverse; }
.dm-act { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--panel); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.dm-act:hover, .dm-act:focus-visible { color: var(--strong, #fff); background: var(--panel2, #222); outline: none; }
@media (pointer: coarse) { .dm-acts { display: none; } }
.dm-quote { display: block; order: 0; max-width: 86%; margin: .1rem 0 -.3rem; padding: .3rem .7rem .55rem; border: 0; border-radius: 14px 14px 4px 4px; background: rgba(255, 255, 255, .06); color: var(--muted); font: inherit; font-size: .82rem; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-log .hub-msg.mine .dm-quote, .dm-chat .hub-msg.mine .dm-quote { align-self: flex-end; }
.dm-quote b { color: var(--chrome, #c9ced6); margin-right: .25rem; }
.hub-msg.dm-flash .txt { box-shadow: 0 0 0 2px var(--scanner, #ff2a2a); }
.dm-replybar { display: flex; align-items: center; gap: .4rem; padding: .35rem .5rem .35rem .8rem; border-top: 1px solid var(--line); font-size: .85rem; }
.dm-replytext { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.dm-replytext b { font-weight: 700; }
.dm-replytext span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .dm-win { width: 100%; }
  .dm-heads { position: fixed; right: 10px; bottom: calc(88px + env(safe-area-inset-bottom)); margin: 0; }
  .dm-hnew, .dm-hmore { display: none !important; }   /* phones: new messages start from the messages button at the top */
  .dm-hd { width: 48px; height: 48px; }
  .dm-tip { display: none !important; }
  .dm-hmenu { right: calc(100% + 8px); top: auto; bottom: -6px; }
  .dm-hdots { opacity: 1; }
}
/* colours that follow the chat windows' own background (Admin > Look can change it): --dm-ink is the text on it */
.dm-newwin, .dm-newwin .dm-person, .dm-newwin .dm-to input, .dm-replybar, .dm-quote b { color: var(--dm-ink, var(--strong, #fff)); }
.dm-newwin .dm-to span, .dm-newwin .dm-pnote, .dm-newwin .dm-pempty, .dm-replytext span, .dm-quote { color: var(--dm-sub, var(--muted)); }
.dm-newwin .dm-to, .dm-replybar { border-color: var(--dm-soft, var(--line)); }
.dm-newwin .dm-person:hover, .dm-newwin .dm-person:focus-visible, .dm-quote { background: var(--dm-soft, rgba(255, 255, 255, .06)); }
.dm-act { background: var(--dm-bg, var(--panel)); color: var(--dm-sub, var(--muted)); }
.dm-act:hover, .dm-act:focus-visible { background: var(--dm-soft, var(--panel2, #222)); color: var(--dm-ink, var(--strong, #fff)); }
.dm-newwin .dm-pav .msg-on { border-color: var(--dm-bg, var(--panel)); }
.dm-newwin .dm-head { color: #fff; }
.dm-newwin .dm-newtitle { font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: 1.05rem; }
.dm-hnew[aria-expanded="true"] .dm-tip { display: none !important; }

/* the chat shell: the site's page in a full-window frame, the private chats above it */
#kik-shell { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #08090b; }
body:has(> #kik-shell) { overflow: hidden; }

/* the News feed's still picture while the live feed loads after a room change (hub-room.php) */
.dc-feed { position: relative; }
.dc-feed-snap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none; }

/* ---- Messenger-style chat box (dock): photo, sticker, GIF, the Aa pill with the smiley inside, thumbs up / send ---- */
form.mx { position: relative; flex-wrap: wrap; align-items: flex-end; gap: 2px; padding: .45rem .4rem; }
form.mx .att-cards { flex-basis: 100%; }
.mx-tools { display: flex; align-items: center; flex: none; }
form.mx .mx-tool, form.mx .mx-go, form.mx .mx-emo { flex: none; width: 34px; height: 36px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 50%; background: none; box-shadow: none;
  color: var(--accent, #ff2a2a); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
form.mx .mx-tool:hover, form.mx .mx-go:hover, form.mx .mx-emo:hover, form.mx .mx-tool.on { background: var(--dm-soft, rgba(255, 255, 255, .08)); }
.mx-giftxt { font: 800 10px/1 var(--font-body, sans-serif); letter-spacing: .02em; border: 2px solid currentColor; border-radius: 4px; padding: 2px 3px; }
.mx-pill { flex: 1; min-width: 0; display: flex; align-items: flex-end; border-radius: 20px; background: rgba(127, 127, 127, .16); margin: 0 2px; }
form.mx .mx-pill textarea { flex: 1; border: 0; background: none; box-shadow: none; min-height: 36px; padding: .5rem .2rem .5rem .8rem; border-radius: 20px; color: var(--dm-ink, inherit); }
form.mx .mx-pill textarea:focus { outline: none; }
form.mx .mx-pill .mx-emo { width: 34px; height: 36px; }
form.mx .mx-pill .emoji-pop { right: 0; }
form.mx.mx-typing .mx-tools .mx-stk, form.mx.mx-typing .mx-tools .mx-gif { display: none; }   /* like Messenger: more room to type */
.mx-pop { position: absolute; left: .4rem; right: .4rem; bottom: calc(100% + 6px); z-index: 31; max-height: 300px; display: flex; flex-direction: column; background: var(--dm-bg, var(--panel)); color: var(--dm-ink, inherit);
  border: 1px solid var(--dm-soft, var(--line)); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .5); padding: .5rem; }
.mx-head { margin: 0 0 .35rem; font-weight: 700; font-size: .85rem; }
.mx-grid { overflow-y: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mx-stick { border: 0; background: none; padding: 4px; border-radius: 10px; cursor: pointer; }
.mx-stick:hover, .mx-stick:focus-visible { background: var(--dm-soft, rgba(255, 255, 255, .08)); outline: none; }
.mx-stick img { width: 100%; height: auto; display: block; }
.mx-search { width: 100%; border-radius: 18px; padding: .4rem .8rem; margin-bottom: .4rem; }
.mx-gifs { overflow-y: auto; columns: 2; column-gap: 4px; min-height: 120px; }
.mx-gifs[aria-busy] { opacity: .6; }
.mx-gifbtn { display: block; width: 100%; border: 0; padding: 0; margin: 0 0 4px; background: rgba(127, 127, 127, .15); border-radius: 8px; overflow: hidden; cursor: pointer; break-inside: avoid; }
.mx-gifbtn img { width: 100%; height: auto; display: block; }
.mx-gifbtn:focus-visible { outline: 2px solid var(--accent, #ff2a2a); }
.mx-none { column-span: all; margin: 1rem 0; text-align: center; font-size: .85rem; color: var(--dm-sub, var(--muted)); }
.mx-by { margin: .35rem 0 0; font-size: .7rem; text-align: right; color: var(--dm-sub, var(--muted)); font-weight: 700; }
/* stickers, GIFs and the big thumbs up show without a bubble */
.dm-log .hub-msg.dm-special .txt, .dm-chat .hub-msg.dm-special .txt { background: none !important; border: 0 !important; box-shadow: none !important; padding: 2px 0 !important; }
.dm-sticker { width: 120px; height: 120px; display: block; }
.dm-gif { height: auto; max-height: 200px; max-width: 220px; width: auto; display: block; border-radius: 14px; }
.dm-like { width: 56px; height: 56px; display: block; }
/* hover icons sit beside the bubble at its middle (placed by the script); keep bubbles narrow enough for them */
#hub-dock .dm-log .hub-msg .txt { max-width: 74%; }
.dm-log .dm-acts { right: auto; gap: 0; }
.dm-log .dm-act { width: 26px; height: 26px; box-shadow: none; background: none; }
.dm-log .dm-act:hover, .dm-log .dm-act:focus-visible { background: var(--dm-soft, rgba(255, 255, 255, .1)); }
.dm-log .hub-msg:not(.mine) .dm-acts { flex-direction: row-reverse; }
.dm-log .hub-msg.mine .dm-acts { flex-direction: row; }

/* ---- Community popup (Admin > Community > Popups): red border, the occasion's own colours inside ---- */
html.kp-open { overflow: hidden; }
.kp-wrap { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 6, 9, .78); display: flex; align-items: center; justify-content: center; padding: 1.25rem; overflow-y: auto; animation: kp-in .25s ease-out; }
.kp-wrap[hidden] { display: none; }
@keyframes kp-in { from { opacity: 0; } to { opacity: 1; } }
.kp:focus { outline: none; }
.kp { width: min(880px, 100%); max-height: calc(100vh - 2.5rem); overflow-y: auto; background: var(--kp-bg); color: #e8edf0; border: 2px solid var(--kp-border); border-radius: 18px;
  box-shadow: 0 0 22px -2px color-mix(in srgb, var(--kp-border) 70%, transparent), 0 20px 60px rgba(0, 0, 0, .6); font-family: var(--font-body, system-ui, sans-serif); }
.kp-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--kp-bar); color: #fff; padding: .8rem 1.1rem .8rem 1.4rem; font-family: 'Roboto Slab', Rockwell, 'Rockwell Nova', Georgia, serif; font-size: 1.15rem; line-height: 1.3; }
.kp-x { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.kp-x:hover, .kp-x:focus-visible { background: rgba(255, 255, 255, .18); outline: none; }
.kp-body { display: grid; grid-template-columns: minmax(0, 37%) minmax(0, 63%); gap: 1.5rem; padding: 1.5rem; }
.kp-body.no-pic { grid-template-columns: minmax(0, 1fr); }
.kp-pic { align-self: start; border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; background: #140806; }
.kp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-title { margin: 0; font-family: 'Roboto Slab', Rockwell, 'Rockwell Nova', Georgia, serif; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; color: var(--kp-head); text-transform: none; letter-spacing: 0; font-style: normal; background: none; -webkit-text-fill-color: currentColor; }
.kp-intro { margin: .55rem 0 1rem; font-size: 1.05rem; line-height: 1.5; color: #c8d0d6; }
.kp-details { background: var(--kp-panel); border-radius: 10px; padding: .8rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.kp-box { border: 1px solid #8a96a0; border-radius: 8px; padding: .55rem .6rem; text-align: center; display: flex; flex-direction: column; gap: .15rem; }
.kp-box b { font-family: 'Roboto Slab', Rockwell, 'Rockwell Nova', Georgia, serif; font-size: 1.05rem; color: #fff; font-weight: 700; }
.kp-box span { font-size: .98rem; color: #d5dbe0; }
.kp-join { margin: 1.1rem 0 .7rem; text-align: center; font-family: 'Roboto Slab', Rockwell, 'Rockwell Nova', Georgia, serif; font-weight: 700; font-size: 1.3rem; color: #fff; }
.kp-btns { display: flex; flex-direction: column; gap: .65rem; margin-top: .9rem; }
.kp-join + .kp-btns { margin-top: 0; }
.kp-go, .kp-no { display: block; width: 100%; text-align: center; border-radius: 999px; padding: .85rem 1rem; font-size: 1.05rem; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; line-height: 1.2; }
.kp-go { background: var(--kp-bar); color: #fff; border: 1px solid var(--kp-bar); }
.kp-go:hover, .kp-go:focus-visible { filter: brightness(1.15); color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.kp-no { background: transparent; color: #d5dbe0; border: 1px solid #8a96a0; }
.kp-no:hover, .kp-no:focus-visible { background: rgba(255, 255, 255, .07); color: #fff; outline: none; }
@media (max-width: 700px) {
  .kp-wrap { padding: .6rem; align-items: flex-start; }
  .kp { max-height: none; }
  .kp-body { grid-template-columns: minmax(0, 1fr); padding: 0 0 1.1rem; gap: 0; }
  .kp-pic { aspect-ratio: auto; height: 210px; border-radius: 0; background: #0d0605; }
  .kp-pic img { object-fit: contain; }
  .kp-main { padding: 1rem 1.1rem 0; }
  .kp-details { grid-template-columns: minmax(0, 1fr); }
  .kp-box { flex-direction: row; justify-content: space-between; text-align: left; gap: .6rem; }
  .kp-box b { font-size: .98rem; }
  .kp-bar { font-size: 1rem; }
}
.form .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 640px) { .form .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.pop-colours { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; border: 1px solid var(--line); border-radius: 10px; padding: .6rem 1rem 1rem; }
.pop-colours .pop-col { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
.pop-colours input[type=color] { width: 42px; height: 32px; padding: 2px; border-radius: 6px; }

/* ---- Switching rooms in place (computers): the other room sits in the middle of this page, in a frame ---- */
#hub-chat.dc .chat-main { position: relative; }
#hub-chat.dc .dc-pane { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; z-index: 6; background: #0b0c0f; }
#hub-chat.dc.paned .chat-main > :not(.dc-pane) { visibility: hidden; }
/* the room inside that frame shows only its chat */
html.in-pane, html.in-pane body { background: #0b0c0f; overflow: hidden; }
html.in-pane .site-header, html.in-pane .site-footer, html.in-pane .cookie-banner, html.in-pane .hub-lang-row, html.in-pane .garage-link,
html.in-pane .dc-page > .crumb, html.in-pane .dc-page > h1, html.in-pane .dc-page > .hub-status, html.in-pane .skip, html.in-pane [data-celeb-bar],
html.in-pane #hub-chat.dc .dc-rail, html.in-pane #hub-chat.dc .dc-chan, html.in-pane #hub-chat.dc .dc-members, html.in-pane #hub-chat.dc .dc-feed:not(.dc-post),
html.in-pane #hub-chat.dc .dc-tog-chan, html.in-pane #hub-chat.dc .dc-top .dc-full[aria-label="Full screen"] { display: none !important; }
html.in-pane main, html.in-pane .wrap.dc-page { margin: 0 !important; padding: 0 !important; max-width: none !important; width: 100% !important; }
html.in-pane #hub-chat.dc .chat-cols, html.in-pane #hub-chat.dc.show-members .chat-cols, html.in-pane #hub-chat.dc.show-feed .chat-cols, html.in-pane #hub-chat.dc.show-members.show-feed .chat-cols {
  grid-template-columns: minmax(0, 1fr) !important; height: 100vh !important; height: 100dvh !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
html.in-pane #hub-chat.dc.show-post .chat-cols { grid-template-columns: minmax(0, 1fr) minmax(320px, 46%) !important; }
/* a forum post open in the room shown in the middle: Members and News feed step aside, like a post opened in this page */
#hub-chat.dc.pane-post .dc-members, #hub-chat.dc.pane-post .dc-feed:not(.dc-post) { display: none !important; }
#hub-chat.dc.pane-post .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) !important; }
html.in-pane #hub-chat.dc.show-post .chat-cols { grid-template-columns: minmax(0, 1fr) minmax(420px, 52%) !important; }
/* a forum post open in the room shown in the middle: Members and News feed step aside, like a post opened in this page */
#hub-chat.dc.pane-post .dc-members, #hub-chat.dc.pane-post .dc-feed:not(.dc-post) { display: none !important; }
#hub-chat.dc.pane-post .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) !important; }
html.in-pane #hub-chat.dc.show-post .chat-cols { grid-template-columns: minmax(0, 1fr) minmax(420px, 52%) !important; }

/* Knowledge Base: suggestions under the search box as you type */
.kb-search.has-sug { position: relative; }
.kb-sug { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; max-height: min(420px, 70vh); overflow-y: auto; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .55); padding: .35rem; text-align: left; }
.kb-sug-item { display: flex; flex-direction: column; gap: .1rem; padding: .55rem .75rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.kb-sug-item.on, .kb-sug-item:hover { background: rgba(255, 42, 42, .12); color: var(--strong, #fff); }
.kb-sug-t { font-size: .98rem; line-height: 1.3; }
.kb-sug-t b { color: var(--scanner); font-weight: 700; }
.kb-sug-m { font-size: .78rem; color: var(--muted); }
.kb-sug-item.all { border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: .25rem; }
.kb-sug-item.all .kb-sug-t { color: var(--scanner); font-weight: 600; font-size: .9rem; }
.kb-sug-h { margin: .45rem .75rem .15rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kb-sug-none { margin: .5rem .75rem; font-size: .9rem; color: var(--muted); }
.kb-search-side .kb-sug { right: auto; width: max(100%, 340px); }
/* Knowledge Base: the way back to the community, at the top of the side menu (a lit-up dashboard button) */
.kb-back-hub { position: relative; display: flex; align-items: center; gap: .7rem; margin: 0 0 .9rem; padding: .6rem .75rem .6rem .6rem; border-radius: 14px; overflow: hidden; text-decoration: none;
  color: #fff !important; background: linear-gradient(135deg, #ff3b3b 0%, #c2141b 55%, #7a0a0f 100%); border: 1px solid rgba(255, 140, 140, .55);
  box-shadow: 0 0 18px -4px rgba(255, 42, 42, .85), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s ease, box-shadow .15s ease; }
.kb-back-hub::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .22) 45%, transparent 60%); transform: translateX(-120%); transition: transform .6s ease; }
.kb-back-hub:hover::after, .kb-back-hub:focus-visible::after { transform: translateX(120%); }
.kb-back-hub:hover, .kb-back-hub:focus-visible { transform: translateY(-1px); box-shadow: 0 0 26px -2px rgba(255, 42, 42, .95), inset 0 1px 0 rgba(255, 255, 255, .3); outline: none; }
.kbh-arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .35); transition: transform .15s ease; }
.kb-back-hub:hover .kbh-arrow { transform: translateX(-3px); }
.kbh-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.05; }
.kbh-txt small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; font-weight: 700; }
.kbh-txt b { font-family: "Barlow Condensed", var(--font-head, sans-serif); font-weight: 700; font-size: 1.35rem; font-style: italic; text-transform: uppercase; letter-spacing: .03em; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.kbh-icon { flex: none; opacity: .9; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .3)); }
@media (prefers-reduced-motion: reduce) { .kb-back-hub, .kb-back-hub::after, .kbh-arrow { transition: none; } }
.owners-map .om-svg { transform-origin: 0 0; will-change: transform; }

/* ---- Owners map, "colourful countries": bright country colours with shaded mountains on a deep blue ocean ---- */
.owners-map { background: linear-gradient(180deg, #0b3a73 0%, #1565b8 30%, #1a78c9 50%, #1565b8 70%, #0b3a73 100%); }
.om-grid { stroke: rgba(255, 255, 255, .09); }
.om-land { stroke: rgba(255, 255, 255, .8); stroke-width: .8; }
.om-c0 { fill: #ffa726; } .om-c1 { fill: #66bb6a; } .om-c2 { fill: #ffd54f; }
.om-c3 { fill: #7e57c2; } .om-c4 { fill: #26a69a; } .om-c5 { fill: #ec407a; }
.om-relief { mix-blend-mode: overlay; opacity: .75; pointer-events: none; }
.om-light.owners-map { background: linear-gradient(180deg, #4f9be0 0%, #7cc0f2 50%, #4f9be0 100%); }
.om-light .om-relief { opacity: .55; }
.om-pin .om-dot { stroke: #fff; stroke-width: 2; }
/* (no shadow filter on the pins: filters made every redraw slower) */
.om-pin .om-halo { fill: rgba(255, 42, 31, .28); stroke: rgba(255, 255, 255, .7); }
.om-sea-a { stop-color: #0d4486; } .om-sea-b { stop-color: #1b7acb; }
.om-light .om-sea-a { stop-color: #4a95dc; } .om-light .om-sea-b { stop-color: #86c6f4; }
.owners-map { background: #0d4486; } .om-light.owners-map { background: #4a95dc; }
/* pins on the colourful map: bright red with a white ring (white with a red ring while still being built) */
.owners-map .om-pin .om-dot { fill: #e10600; stroke: #fff; stroke-width: 2.4; }
.owners-map .om-pin .om-dot.wip { fill: #fff; stroke: #e10600; stroke-width: 2.6; }
.owners-map .om-pin .om-halo { fill: rgba(10, 14, 22, .35); stroke: rgba(255, 255, 255, .85); stroke-width: 1.2; }
.owners-map .om-pin:hover .om-halo, .owners-map .om-pin.on .om-halo, .owners-map .om-pin:focus-visible .om-halo { fill: rgba(225, 6, 0, .45); }

/* Knowledge Base: "Suggested resources for this article" at the end of the article */
.kb-res-jump { display: inline-flex; align-items: center; gap: .4rem; margin: .2rem 0 .6rem; padding: .3rem .8rem; border-radius: 99px; background: rgba(255, 42, 42, .12); border: 1px solid rgba(255, 42, 42, .4); color: var(--text) !important; font-size: .9rem; font-weight: 600; text-decoration: none; }
.kb-res-jump:hover { background: rgba(255, 42, 42, .22); }
.kb-res { margin: 1.8rem 0 .4rem; padding: 1.1rem 1.2rem 1.2rem; border-radius: 14px; border: 1px solid rgba(255, 42, 42, .45); background: linear-gradient(180deg, rgba(255, 42, 42, .08), rgba(255, 42, 42, .02)); box-shadow: 0 0 18px -8px rgba(255, 42, 42, .7); scroll-margin-top: 90px; }
.kb-res h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .3rem; font-size: 1.35rem; }
.kb-res h2 svg { color: var(--scanner); }
.kb-res-label { margin: .9rem 0 .4rem; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.kb-res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.kb-res-item { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.kb-res-item.mine { border-color: rgba(255, 42, 42, .35); }
.kb-res-ic { flex: none; width: 42px; height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 42, 42, .14); color: var(--scanner); }
.kb-res-t { flex: 1; display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.kb-res-t strong { line-height: 1.25; }
.kb-res-t small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.kb-res-t em { font-style: normal; font-size: .78rem; color: var(--muted); }
.kb-res-more { display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-size: .82rem; margin-top: .15rem; }
.kb-res-go { flex: none; }
@media (max-width: 560px) { .kb-res { padding: .9rem; } .kb-res-item { flex-wrap: wrap; } .kb-res-go { width: 100%; text-align: center; } }

/* Admin › Community › Topics: arrange the rooms list (js/admin-rooms.js) */
.ra-wrap { margin: 1.2rem 0 2rem; }
.ra { max-width: 640px; display: grid; gap: .8rem; }
.ra-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.ra-group { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: .5rem; }
.ra-top { border-style: dashed; }
.ra-gh { margin: .2rem .4rem .4rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ra-gh small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.ra-ch { display: flex; align-items: center; gap: .5rem; padding: .35rem .4rem .45rem; }
.ra-cname { flex: 1; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; }
.ra-rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; min-height: 2.6rem; border-radius: 8px; }
.ra-rooms:empty::after { content: "Drag rooms here"; display: grid; place-items: center; height: 2.6rem; color: var(--muted); font-size: .85rem; border: 1px dashed var(--line); border-radius: 8px; }
.ra-room { display: flex; align-items: center; gap: .55rem; padding: .45rem .5rem; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ra-room.off { opacity: .55; }
.ra-grip { cursor: grab; touch-action: none; user-select: none; font-size: 1.2rem; line-height: 1; padding: .25rem .3rem; color: var(--muted); border-radius: 6px; }
.ra-grip:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.ra-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-emo { margin-right: .4rem; }
.ra-kind { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.ra-btns { display: inline-flex; gap: .2rem; }
.ra-btns button { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: .7rem; }
.ra-btns button:hover, .ra-btns button:focus-visible { border-color: var(--scanner); color: var(--scanner); outline: none; }
.ra-dragging { box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 0 2px var(--scanner); background: var(--panel); cursor: grabbing; }
.ra-ph { border: 2px dashed var(--scanner); border-radius: 9px; background: rgba(255, 42, 42, .06); list-style: none; }
.ra-moved { animation: ra-glow .9s ease-out; }
@keyframes ra-glow { from { box-shadow: 0 0 0 2px var(--scanner); } to { box-shadow: 0 0 0 2px transparent; } }
body.ra-busy { cursor: grabbing; user-select: none; }
@media (max-width: 560px) { .ra-kind { display: none; } }

/* the welcome room: locked (react only), and the getting-started guide under a new member's own welcome */
.dc-ro { flex-wrap: wrap; text-align: center; }
.dc-ro-go { margin-left: .3rem; }
#hub-chat.dc .dc-guide { margin: .55rem 0 .3rem; padding: .9rem 1rem 1rem; max-width: 40rem; background: #121419; border: 1px solid rgba(255, 42, 42, .35);
  border-left: 4px solid var(--scanner); border-radius: 0 10px 10px 0; color: var(--text); line-height: 1.45; }
#hub-chat.dc .dc-guide-h { margin: 0 0 .55rem; font: 700 1.25rem/1 var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--strong); }
#hub-chat.dc .dc-guide ol { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: .5rem; }
#hub-chat.dc .dc-guide li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
#hub-chat.dc .dc-guide-n { flex: none; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--scanner); color: #fff;
  font: 700 .8rem/1 var(--head); margin-top: .05rem; }
#hub-chat.dc .dc-guide a { color: #ff6a6a; font-weight: 600; text-decoration: none; }
#hub-chat.dc .dc-guide a:hover { text-decoration: underline; }
#hub-chat.dc .dc-guide .dc-guide-room { padding: 0 .15rem; border-radius: 4px; background: rgba(255, 42, 42, .12); }
#hub-chat.dc .dc-guide a.dc-guide-go { color: #fff; text-decoration: none; }

/* Admin > Knowledge Base > Article downloads */
.kbd-tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin: 1rem 0 1.2rem; border-bottom: 1px solid var(--line); }
.kbd-tabs a { padding: .55rem .9rem; font: 700 1.05rem var(--head); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.kbd-tabs a:hover { color: var(--strong); }
.kbd-tabs a.on { color: var(--strong); border-bottom-color: var(--scanner); }
.kbd-wrap { display: grid; grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr); gap: 1rem; align-items: start; }
.kbd-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1rem; }
.kbd-list { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; }
.kbd-list ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.kbd-list li a { display: flex; justify-content: space-between; gap: .6rem; align-items: center; padding: .5rem .6rem; border-radius: 6px; color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: .95rem; line-height: 1.3; }
.kbd-list li a:hover { background: rgba(255, 255, 255, .04); }
.kbd-list li a.on { background: rgba(255, 42, 42, .14); box-shadow: inset 3px 0 0 var(--scanner); color: var(--strong); }
.kbd-n { flex: none; min-width: 1.6rem; text-align: center; font-size: .8rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: rgba(79, 209, 139, .14); color: var(--ok); }
.kbd-n.z { background: rgba(255, 90, 90, .14); color: var(--danger); }
.kbd-search { width: 100%; margin-bottom: .6rem; }
.kbd-chips { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .6rem; }
.kbd-chip { font: inherit; font-size: .85rem; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.kbd-chip.on { background: var(--scanner); border-color: var(--scanner); color: #fff; }
.kbd-h { margin: 0 0 .2rem; }
.kbd-sub { margin: 1.3rem 0 .55rem; font: 700 1rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: #ff6a6a; }
.kbd-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 8px; margin-bottom: .4rem; }
.kbd-item > div { flex: 1; min-width: 0; }
.kbd-item small { display: block; color: var(--muted); font-size: .85rem; }
.kbd-item form { margin: 0; }
.kbd-att { border: 1px solid var(--tag-ok); background: rgba(79, 209, 139, .06); }
.kbd-sug { border: 1px dashed var(--tag-low); }
.kbd-ic { flex: none; width: 2rem; height: 2rem; border-radius: 6px; background: var(--panel-2); display: grid; place-items: center; color: #ff6a6a; }
.kbd-sec { margin: .9rem 0 .2rem; font: 700 .9rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kbd-row { display: flex !important; align-items: center; gap: .6rem; padding: .4rem .3rem; border-bottom: 1px solid rgba(255, 255, 255, .05); margin: 0 !important; }
.kbd-row span { flex: 1; }
.kbd-row small { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.kbd-row[hidden], .kbd-sec[hidden], [data-kbd-row][hidden] { display: none !important; }
.kbd-bar { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-bottom: .4rem; }
.kbd-bar .kbd-search { flex: 1; min-width: 14rem; margin: 0; }
.kbd-bar .kbd-chips { margin: 0; }
.kbd-table td { vertical-align: top; }
.kbd-pill { display: inline-flex; align-items: center; gap: .2rem; margin: 0 .3rem .35rem 0; padding: .1rem .2rem .1rem .6rem; border-radius: 999px; background: rgba(255, 42, 42, .12); border: 1px solid rgba(255, 42, 42, .4); font-size: .88rem; }
.kbd-pill a { color: var(--strong); text-decoration: none; }
.kbd-pill form { display: inline; margin: 0; }
.kbd-x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: .1rem .35rem; border-radius: 50%; font-size: .85rem; }
.kbd-x:hover { color: #fff; background: var(--scanner); }
.kbd-not { color: var(--danger); font-size: .88rem; margin-right: .4rem; }
.kbd-add { display: inline-block; vertical-align: top; }
.kbd-add summary { list-style: none; cursor: pointer; display: inline-block; padding: .1rem .6rem; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); font-size: .88rem; }
.kbd-add summary::-webkit-details-marker { display: none; }
.kbd-add summary::after, .kbd-add summary::before { content: none !important; display: none !important; }
.kbd-add[open] summary { color: var(--strong); border-color: var(--scanner); }
.kbd-add form { margin-top: .4rem; }
.kbd-add select { max-width: 22rem; }
@media (max-width: 800px) { .kbd-wrap { grid-template-columns: 1fr; } .kbd-list { position: static; max-height: 22rem; } }
.kbd-status { margin-left: .6rem; font: 600 .9rem var(--body); letter-spacing: 0; text-transform: none; color: var(--ok); }
.kbd-status.bad { color: var(--danger); }
.kbd-csv { margin-top: 1.2rem; }
.kbd-csv-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; }
.kbd-csv-cols .kbd-sub { margin-top: .6rem; }
.kbd-plan { border: 1px solid var(--scanner); border-radius: 10px; padding: .8rem 1rem; background: rgba(255, 42, 42, .05); }
.kbd-changes { margin: .6rem 0; }
.kbd-changes summary { cursor: pointer; font-weight: 700; }
.kbd-changes ul { margin: .4rem 0 0; padding-left: 1.2rem; max-height: 18rem; overflow-y: auto; }
.kbd-changes li { margin: .15rem 0; }
.kbd-plus::marker { content: '+  '; color: var(--ok); font-weight: 700; }
.kbd-minus::marker { content: '−  '; color: var(--danger); font-weight: 700; }
.kbd-errs summary { color: var(--amber); }
.kbd-plan-go { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
@media (max-width: 800px) { .kbd-csv-cols { grid-template-columns: 1fr; } }

/* another room shown in the middle while a post is open in this page's own panel: that panel steps aside until you come
   back to this room (otherwise it has no column left and drops under the page) */
html:not(.in-pane) #hub-chat.dc.paned.show-post .dc-post, html:not(.in-pane) #hub-chat.dc.pane-post .dc-post { display: none !important; }
html:not(.in-pane) #hub-chat.dc.paned.show-post .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) !important; }
/* a forum post open on the right: Members steps aside (like a post opened in another room), so the post keeps its width */
@media (min-width: 1201px) {
  html:not(.in-pane) #hub-chat.dc.show-members.show-post:not(.paned) .dc-members { display: none !important; }
  html:not(.in-pane) #hub-chat.dc.show-members.show-post:not(.paned) .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) minmax(460px, 46%); }
}
/* (this page's own post steps aside while another room is in the middle: Members works there as usual) */
@media (min-width: 1201px) {
  html:not(.in-pane) #hub-chat.dc.paned.show-post.show-members:not(.pane-post):not(.wide) .chat-cols { grid-template-columns: 72px var(--dc-rooms) minmax(0, 1fr) var(--dc-mem-w, 240px) !important; }
}

/* Admin > Orders > Accounts (views/admin/accounts.php) and supplier statements (partials/statement-sheet.php) */
.acc-filters { display: flex; flex-wrap: wrap; gap: .6rem .8rem; align-items: flex-end; margin: 0 0 .6rem; }
.acc-filters label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); gap: .2rem; }
.acc-filters .acc-q { flex: 1; min-width: 12rem; }
.acc-ranges { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: .35rem; }
.acc-ranges .chip { padding: .25rem .75rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .88rem; }
.acc-ranges .chip.on { background: var(--scanner); border-color: var(--scanner); color: #fff; }
.acc-tools { margin-left: auto; display: flex; gap: .4rem; }
.acc-fees { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.acc-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; margin: 1rem 0; }
.acc-tiles > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: .6rem .8rem; }
.acc-tiles small { display: block; color: var(--muted); font-size: .8rem; }
.acc-tiles b { font: 700 1.45rem/1.2 var(--head); color: var(--strong); }
.acc-tiles .red b { color: var(--danger); }
.acc-tiles .grn b { color: var(--ok); }
.acc-table td, .acc-table th { vertical-align: top; }
.acc-table .num, .acc-mini .num, .stmt-t .num, .stmt-tot .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.acc-table .acc-items { max-width: 18rem; }
.acc-open { background: none; border: 0; color: var(--strong); cursor: pointer; font: inherit; padding: 0; white-space: nowrap; }
.acc-open[aria-expanded="true"] span { display: inline-block; transform: rotate(90deg); }
.acc-row.open td { background: rgba(255, 42, 42, .06); }
.acc-detail > td { background: var(--panel); border-left: 3px solid var(--scanner); padding: 1rem 1.1rem !important; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.4rem; }
.acc-h { margin: .9rem 0 .45rem; font: 700 .95rem var(--head); letter-spacing: .08em; text-transform: uppercase; color: #ff6a6a; }
.acc-grid > div > .acc-h:first-child { margin-top: 0; }
.acc-mini { width: 100%; border-collapse: collapse; font-size: .9rem; }
.acc-mini th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: .3rem .35rem; border-bottom: 1px solid var(--line); }
.acc-mini td { padding: .35rem; border-bottom: 1px solid rgba(127, 127, 127, .15); }
.acc-sum tr.b td { font-weight: 700; }
.acc-sup { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; margin-bottom: .5rem; line-height: 1.6; }
.acc-sup form.inline { display: inline; }
.acc-tick { display: inline; }
.acc-box { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-right: .35rem; vertical-align: -.25rem; border: 1px solid var(--muted); border-radius: 4px; background: transparent; color: #fff; font-size: .8rem; cursor: pointer; padding: 0; }
.acc-box.on { background: var(--ok, #2c8a55); border-color: var(--ok, #2c8a55); }
.ok-text { color: var(--ok); }
.tag.blue { color: #8fc1ff; border-color: #2f4f7a; }
.acc-facts { font-size: .92rem; line-height: 1.6; margin: 0; }
.acc-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.acc-stmt { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.acc-stmt-go { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0 1rem; }
.acc-settings { margin-top: 1.2rem; }
.stmt-sheet { background: #f6f6f3; color: #1d1f23; border-radius: 12px; padding: 1.4rem; max-width: 60rem; margin: 1rem 0; }
.stmt-sheet a { color: #b3121a; }
.stmt-hd { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #d81f1f; padding-bottom: .6rem; margin-bottom: .9rem; }
.stmt-brand { font: 700 1.4rem var(--head); font-style: italic; letter-spacing: .03em; text-transform: uppercase; }
.stmt-paid { border: 2px solid #1f8a4c; color: #1f8a4c; font: 700 1.1rem var(--head); letter-spacing: .12em; padding: .1rem .8rem; border-radius: 6px; transform: rotate(-4deg); }
.stmt-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .5rem 1.2rem; margin-bottom: .8rem; font-size: .95rem; }
.stmt-meta small { display: block; font-size: .72rem; color: #777; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stmt-t { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .4rem 0; }
.stmt-t th { text-align: left; font-size: .75rem; color: #666; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid #ccc; padding: .35rem; }
.stmt-t td { padding: .4rem .35rem; border-bottom: 1px solid #e1e1de; vertical-align: top; }
.stmt-t small { color: #777; }
.stmt-tot { margin-left: auto; border-collapse: collapse; font-size: .95rem; }
.stmt-tot td { padding: .15rem .4rem; }
.stmt-tot tr.b td { font-weight: 700; }
.stmt-sheet h3 { margin: 1.2rem 0 .3rem; font-size: 1rem; }
.stmt-foot { font-size: .85rem; color: #666; margin: 1rem 0 0; }
@media (max-width: 1100px) { .acc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .acc-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .acc-tools { margin-left: 0; } }
@media print {
  .acc-filters, .acc-fees, .acc-stmt, .order-tabs, .acc-tick button, .acc-sup form, .site-header, .admin-nav, .admin-side { display: none !important; }
  .acc-detail { display: none !important; }
  .acc-tiles > div, .acc-table td, .acc-table th { color: #000 !important; background: #fff !important; }
}
.acc-table .cur, .acc-tiles .cur, .acc-mini .cur { display: none; }   /* (one currency: said once above the table) */
.acc-table { font-size: .9rem; }

/* the cart: "Ship my order to this address" (unticked opens a separate shipping address, no script needed) */
.addr-h { margin: .4rem 0 .5rem; font: 700 1.05rem var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--strong); padding: 0; }
.ship-same-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ship-same { display: flex !important; flex-direction: row !important; gap: .7rem; align-items: flex-start; margin: .8rem 0; padding: .75rem .9rem; border: 1px solid var(--scanner); border-radius: 10px; background: rgba(255, 42, 42, .07); cursor: pointer; color: var(--text); }
.ship-same-box { flex: none; width: 1.25rem; height: 1.25rem; border: 2px solid var(--muted); border-radius: 4px; display: grid; place-items: center; margin-top: .1rem; }
.ship-same-in:checked + .ship-same .ship-same-box { background: var(--scanner); border-color: var(--scanner); }
.ship-same-in:checked + .ship-same .ship-same-box::after { content: "✓"; color: #fff; font-size: .85rem; font-weight: 700; }
.ship-same-in:focus-visible + .ship-same { outline: 2px solid var(--scanner); outline-offset: 2px; }
.ship-other { border: 0; padding: 0; margin: 0 0 .6rem; min-width: 0; }
.ship-same-in:checked ~ .ship-other { display: none; }
.deliver.two-addr { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
/* My details: saved shipping addresses */
.addr-book { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .7rem; }
.addr-book li { border: 1px solid var(--line); border-radius: var(--r-card); padding: .8rem 1rem; background: var(--panel); }
.addr-book .prose { margin: 0 0 .5rem; }
.addr-book-name { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; margin-right: 1rem; }
.addr-book-name label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.ship-fields[hidden] { display: none; }

/* ---- a member's profile card (click a name in a room's chat or the member list), like Discord's ---- */
.pc-pop { position: fixed; z-index: 900; left: -9999px; top: 0; width: min(340px, calc(100vw - 12px)); }
.pc-pop.pc-sheet { left: 6px !important; right: 6px; top: auto !important; bottom: 6px; width: auto; max-height: calc(100vh - 12px); overflow-y: auto; }
.pc { position: relative; overflow: hidden; border: 1px solid rgba(255, 42, 42, .4); border-radius: 14px; background: #121318; box-shadow: 0 18px 50px rgba(0, 0, 0, .75), 0 0 22px -8px var(--scanner); color: var(--chrome); animation: pc-in .14s ease-out; }
@keyframes pc-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pc { animation: none; } }
.pc-wait { min-height: 220px; }
.pc-err { margin: 0; padding: 1.2rem; color: var(--muted); }
.pc-banner { height: 108px; background: radial-gradient(ellipse 70% 120% at 80% 0%, rgba(255, 255, 255, .16), transparent 60%), linear-gradient(135deg, var(--me, #d4141c) 40%, color-mix(in srgb, var(--me, #d4141c) 55%, #000)); background-size: cover; background-position: center; }
.pc-acts { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; }
.pc-act { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .62); color: #fff; cursor: pointer; }
.pc-act:hover, .pc-act:focus-visible { background: rgba(0, 0, 0, .85); outline: 2px solid rgba(255, 42, 42, .6); outline-offset: 1px; }
.pc-act.on { color: #3ddc84; }
.pc-act[aria-disabled="true"] { cursor: default; }
.pc-av { position: relative; display: block; width: 92px; height: 92px; margin: -52px 0 0 16px; border-radius: 50%; border: 6px solid #121318; background: #121318; }
.pc-av .av { display: block; width: 100%; height: 100%; margin: 0; border-radius: 50%; }
.pc-av .dc-me-dot { right: 0; bottom: 2px; width: 24px; height: 24px; border-width: 5px; border-color: #121318; }
.pc-body { display: flex; flex-direction: column; gap: .7rem; padding: .35rem 1rem 1rem; }
.pc-who { line-height: 1.25; }
.pc-name { font: 700 1.45rem var(--head); text-decoration: none; overflow-wrap: anywhere; }
.pc-name:hover { text-decoration: underline; }
.pc-sub { margin: .25rem 0 0; color: var(--muted); font-size: .85rem; }
.pc-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; align-self: flex-start; padding: .3rem .5rem; border-radius: 9px; background: #1d1f26; color: var(--chrome); text-decoration: none; }
.pc-badges b { margin-left: .15rem; font-size: .9rem; }
.pc-badges:hover { background: #262933; }
.pc-mutual { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--chrome); font-size: .92rem; }
.pc-mutual svg { color: var(--muted); }
.pc-bio { margin: 0; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.pc-facts { margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.pc-facts b { color: var(--muted); font-weight: 600; margin-right: .3rem; }
.pc-box b { white-space: nowrap; }
.pc-box { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .75rem; border-radius: 10px; background: #1d1f26; color: var(--strong); text-decoration: none; }
.pc-box:hover { background: #262933; }
.pc-thumbs { display: flex; align-items: center; gap: .35rem; }
.pc-thumbs img, .pc-thumbs i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #2a2d36; color: var(--muted); }
.pc-thumbs em { font-style: normal; font-weight: 700; color: var(--muted); }
.pc-roles { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.pc-roles li { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; font-weight: 600; }
.pc-roles i { width: 11px; height: 11px; border-radius: 50%; }
.pc-msg input { width: 100%; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #1d1f26; color: var(--strong); font: inherit; }
.pc-msg input:focus { outline: none; border-color: rgba(255, 42, 42, .6); }
.pc-edit { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .65rem; border: 0; border-radius: 10px; background: #2a2d36; color: var(--strong); font: 600 .95rem var(--body); cursor: pointer; }
.pc-edit:hover { background: #343844; }

/* ---- nameplates (lib/nameplates.php): a picture behind a member's name, in the member list and on the profile card ---- */
.np { position: relative; background-size: cover; background-position: center; }
.np .dc-mem-name, .np .pc-name, .np .np-n { text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 8px rgba(0, 0, 0, .5); }
.np .dc-mem-txt small { color: #e6e6ea; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.dc-mem.np { margin: 2px 0; padding-top: .4rem; padding-bottom: .4rem; border-radius: 9px; }
.dc-mem.np:hover, .dc-mem.np:focus-visible { filter: brightness(1.15); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.pc-who.np { margin: 0 -.4rem; padding: .55rem .7rem; border-radius: 10px; }
.pc-who.np .pc-sub { color: #e6e6ea; text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.np-night-patrol { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 85% 25%, #cfe0ff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 72% 45%, #fff, transparent), linear-gradient(90deg, #070b1d, #13204a); }
.np-ocean { background: linear-gradient(90deg, #042f3a, #0a7c8c 60%, #5fd3d0); }
.np-silver-shadow { background: linear-gradient(90deg, #1b1d22, #6b717c 70%, #b9bec6); }
.np-sunset { background: linear-gradient(90deg, #3b0d3b, #c2306b 50%, #ffa34d); }
.np-ice { background: radial-gradient(circle at 85% 30%, rgba(255, 255, 255, .7), transparent 30%), linear-gradient(90deg, #1d4f7a, #7cc4f0); }
.np-carbon { background: repeating-linear-gradient(45deg, #232323 0 4px, #111 4px 8px), #111; }
.np-pinstripe { background: linear-gradient(180deg, transparent 47%, #d4141c 47% 53%, transparent 53%), linear-gradient(90deg, #000, #1b1b20); }
.np-desert-night { background: radial-gradient(circle at 88% 35%, #f4f1d0 0 7%, transparent 8%), radial-gradient(ellipse at 30% 150%, #3a2a4a 0 45%, transparent 46%), linear-gradient(#0c0f2b, #2b1b4a); }
.np-checkered { background: conic-gradient(#eee 25%, #111 0 50%, #eee 0 75%, #111 0) 0 0 / 16px 16px; }
.np-checkered.dc-mem, .np-checkered.pc-who, .np-checkered.np-tile { background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0 45%, rgba(0, 0, 0, .2) 75%, transparent), conic-gradient(#eee 25%, #111 0 50%, #eee 0 75%, #111 0) 0 0 / 16px 16px; }
.np-racing { background: linear-gradient(180deg, transparent 30%, #f3f3f3 30% 40%, transparent 40% 60%, #f3f3f3 60% 70%, transparent 70%) right / 40% 100% no-repeat, linear-gradient(90deg, #8a0a10, #d4141c); }
.np-circuit { background: linear-gradient(90deg, transparent 48%, rgba(80, 255, 140, .45) 48% 50%, transparent 50%) 0 0 / 24px 100%, linear-gradient(0deg, transparent 48%, rgba(80, 255, 140, .45) 48% 52%, transparent 52%) 12px 0 / 48px 50%, #06200f; }
.np-chrome { background: linear-gradient(180deg, #f4f5f7 0%, #9aa0aa 45%, #4b5059 50%, #c9ced6 100%); }
.np-voicebox { background: repeating-linear-gradient(90deg, #ff2a2a 0 4px, transparent 4px 8px) right 8px center / 38% 40% no-repeat, repeating-linear-gradient(90deg, #9a0d12 0 4px, transparent 4px 8px) right 8px center / 38% 78% no-repeat, #0c0c0f; }
.np-dashboard { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px), linear-gradient(90deg, #062b12, #0f6b2f); }
.np-pursuit { background: linear-gradient(90deg, #c4101a 50%, #1c3fd6 50%) 0 0 / 200% 100%; animation: np-flash 1s steps(1) infinite; }
.np-neon-grid { background: repeating-linear-gradient(90deg, rgba(255, 60, 220, .55) 0 1px, transparent 1px 22px), repeating-linear-gradient(0deg, rgba(255, 60, 220, .55) 0 1px, transparent 1px 11px), linear-gradient(#1a0533, #3d0a5c); }
.np-galaxy { background: radial-gradient(1px 1px at 70% 40%, #fff, transparent), radial-gradient(1px 1px at 30% 60%, #fff, transparent), radial-gradient(1px 1px at 90% 75%, #fff, transparent), radial-gradient(ellipse at 75% 50%, rgba(180, 70, 255, .7), transparent 55%), #0e0620; }
.np-gold { background: linear-gradient(110deg, #5e4205, #c99b2c 35%, #fff2b8 50%, #c99b2c 65%, #5e4205); }
.np-aurora { background: radial-gradient(ellipse at 30% 120%, rgba(40, 255, 160, .55), transparent 60%), radial-gradient(ellipse at 75% -20%, rgba(160, 80, 255, .6), transparent 60%), #06121c; }
.np-retro-sun { background: repeating-linear-gradient(0deg, #1a0533 0 3px, transparent 3px 7px) 86% 100% / 22% 55% no-repeat, radial-gradient(circle at 86% 110%, #ffcf3d 0 22%, #ff4f8b 23% 32%, transparent 33%), linear-gradient(#1a0533, #4a0f63); }
.np-scanner { background: linear-gradient(90deg, transparent, rgba(255, 30, 30, .95) 45%, #ffb0b0 50%, rgba(255, 30, 30, .95) 55%, transparent) -60% 0 / 35% 100% no-repeat, linear-gradient(#0b0b0e, #18181d); animation: np-sweep 2.4s ease-in-out infinite; }
.np-desert-highway { background: linear-gradient(180deg, #ff9a3c 0%, #d9423c 45%, #3b1631 46%, #1a0d1f 100%); }
.np-turbo { background: repeating-linear-gradient(100deg, transparent 0 18px, rgba(255, 170, 60, .45) 18px 21px), linear-gradient(90deg, #2a0a00, #b8360a); }
.np-ember { background: radial-gradient(2px 2px at 70% 30%, #ffb347, transparent), radial-gradient(2px 2px at 85% 70%, #ff7a1a, transparent), radial-gradient(1.5px 1.5px at 55% 60%, #ffd27a, transparent), radial-gradient(1.5px 1.5px at 93% 40%, #ffd27a, transparent), linear-gradient(90deg, #120403, #3a0d05); }
.np-red-alert { background: linear-gradient(90deg, #2a0004, #6e0a10); animation: np-pulse 1.6s ease-in-out infinite; }
.np-warp { background: repeating-linear-gradient(90deg, transparent 0 30px, rgba(200, 220, 255, .6) 30px 46px, transparent 46px 70px) 0 30% / 100% 2px no-repeat, repeating-linear-gradient(90deg, transparent 0 50px, rgba(200, 220, 255, .5) 50px 70px) 0 70% / 100% 2px no-repeat, linear-gradient(90deg, #000, #0a1640); animation: np-drift 2s linear infinite; }
.np-hazard { background: repeating-linear-gradient(135deg, #f5c400 0 10px, #151515 10px 20px); }
.np-hazard.dc-mem, .np-hazard.pc-who, .np-hazard.np-tile { background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0 45%, rgba(0, 0, 0, .15) 75%, transparent), repeating-linear-gradient(135deg, #f5c400 0 10px, #151515 10px 20px); }
.np-thunderstorm { background: linear-gradient(115deg, transparent 72%, rgba(220, 230, 255, .9) 73%, transparent 74%), linear-gradient(90deg, #1c2230, #3a4256); }
.np-lava { background: radial-gradient(circle at 80% 60%, #ff7a1a, transparent 40%), radial-gradient(circle at 55% 20%, #c21a0a, transparent 35%), #170303; }
.np-hologram { background: linear-gradient(110deg, #ff5f9e, #ffd35f, #5fffb2, #5fb2ff, #c05fff); animation: np-hue 6s linear infinite; }
@keyframes np-sweep { 0%, 100% { background-position: -60% 0, 0 0; } 50% { background-position: 160% 0, 0 0; } }
@keyframes np-flash { 0%, 49% { background-position: 0 0; } 50%, 100% { background-position: 100% 0; } }
@keyframes np-pulse { 50% { box-shadow: inset 0 0 18px rgba(255, 40, 40, .9); } }
@keyframes np-drift { to { background-position: 200px 30%, 120px 70%, 0 0; } }
@keyframes np-hue { to { filter: hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .np-scanner, .np-pursuit, .np-red-alert, .np-warp, .np-hologram { animation: none; } }
/* the nameplate menu (My settings > My profile > Nameplate) */
.np-set { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.np-preview { display: flex; align-items: center; gap: .6rem; min-width: 220px; flex: 1; padding: .45rem .6rem; border-radius: 9px; background: #1d1f26; }
.np-preview .av { width: 30px; height: 30px; flex: none; margin: 0; border-radius: 50%; }
.np-n { font-weight: 700; }
.np-dlg { width: min(860px, calc(100vw - 16px)); max-height: calc(100vh - 16px); padding: 0; border: 1px solid rgba(255, 42, 42, .4); border-radius: 14px; background: #121318; color: var(--chrome); }
.np-dlg::backdrop { background: rgba(0, 0, 0, .65); }
.np-dlg-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.2rem; padding: 1.3rem; max-height: calc(100vh - 18px); overflow: hidden; }
.np-dlg h2 { margin: 0 0 .8rem; font: 700 1.4rem var(--head); }
.np-dlg h3 { margin: .9rem 0 .5rem; font: 700 .8rem var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.np-pick { overflow-y: auto; max-height: calc(100vh - 140px); padding-right: .3rem; }
.np-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.np-tile { position: relative; display: flex; align-items: center; gap: .55rem; height: 48px; padding: 0 .6rem; border: 2px solid transparent; border-radius: 10px; background-color: #1d1f26; color: #fff; font: 600 .9rem var(--body); text-align: left; cursor: pointer; }
.np-tile .np-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.np-tile .np-bar { flex: 1; max-width: 90px; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .25); }
.np-tile[aria-pressed="true"] { border-color: var(--scanner, #ff2a2a); box-shadow: 0 0 12px -3px var(--scanner, #ff2a2a); }
.np-tile:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.np-tile.np-none { justify-content: center; color: var(--muted); }
.np-tile .np-lock { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #000; color: #fff; box-shadow: 0 0 0 2px #121318; }
.np-tile.locked .np-dot, .np-tile.locked .np-bar { opacity: .5; }
.np-side { display: flex; flex-direction: column; gap: .8rem; }
.np-list { padding: .5rem; border-radius: 10px; background: #1a1c22; }
.np-row { display: flex; align-items: center; gap: .6rem; height: 46px; margin: .3rem 0; padding: 0 .6rem; border-radius: 9px; }
.np-row .np-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #2a2d36; }
.np-row .np-bar { height: 11px; flex: 1; max-width: 140px; border-radius: 6px; background: #2a2d36; }
.np-row .av { width: 30px; height: 30px; flex: none; margin: 0; border-radius: 50%; }
.np-info { padding: .8rem .9rem; border: 1px solid rgba(255, 42, 42, .55); border-radius: 10px; background: #16171c; }
.np-info b { display: block; margin-bottom: .25rem; color: var(--strong); font-size: 1.05rem; }
.np-info p { margin: 0; color: var(--muted); font-size: .92rem; }
.np-info .np-how { margin-top: .45rem; color: #ffcf6e; }
.np-btns { display: flex; justify-content: flex-end; gap: .5rem; margin-top: auto; }
.np-msg { min-height: 1.2em; margin: 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 700px) { .np-dlg-in { grid-template-columns: 1fr; overflow-y: auto; } .np-pick { max-height: none; overflow: visible; } .np-side { order: -1; } }
/* ---- the blended nameplates (lib/nameplates.php NAMEPLATE_ART): artwork that fades in from the right and moves when you
   hover over it (on touch screens it plays for a few seconds when it shows). Made by a script from one description, shared
   with the phone app (src/components/nameplateArt.ts): change them there, not by hand. ---- */
.npa { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 30%, #000 62%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 30%, #000 62%); }
.npa i { position: absolute; display: block; animation-play-state: paused !important; }
.np:hover .npa i, .np.np-live .npa i, .np-tile:hover .npa i { animation-play-state: running !important; }
.np > :not(.npa) { position: relative; z-index: 1; }
.np > .dc-mem-av { position: relative; }
.np > .np-lock { position: absolute; z-index: 2; }
@keyframes npx-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 6px) scale(1.15); } }
@keyframes npx-drift2 { from { transform: translate(0, 0); } to { transform: translate(30px, -8px); } }
@keyframes npx-morph { from { transform: translate(0, 0) scale(1); } to { transform: translate(-25px, 4px) scale(1.2); } }
@keyframes npx-pulse { from { transform: scale(.88); opacity: .55; } to { transform: scale(1.1); opacity: 1; } }
@keyframes npx-shimmer { from { transform: scaleY(1) translateX(0); } to { transform: scaleY(1.2) translateX(-12px); } }
@keyframes npx-twinkle { from { opacity: .25; } to { opacity: 1; } }
@keyframes npx-rise { from { transform: translateY(20px); opacity: .2; } 50% { opacity: 1; } to { transform: translateY(-40px); opacity: 0; } }
@keyframes npx-spin { to { transform: rotate(360deg); } }
@keyframes npx-sweep { from { left: 30%; } to { left: 88%; } }
@keyframes npx-flash { 0%, 86%, 100% { opacity: 0; } 88%, 92% { opacity: 1; } }
@keyframes npx-grid { to { background-position: 0 6px, 22px 0; } }
@keyframes npx-fall { to { transform: translateY(30px); } }
@keyframes npx-warp { to { transform: translateX(-70px); } }
@media (prefers-reduced-motion: reduce) { .npa i { animation: none !important; } }
.npa-nebula-drift { background: linear-gradient(90deg, #1b1d24 0%, #1a1240 60%, #2a1060 100%); }
.npa-nebula-drift .l1 { left: calc(88% - 80px); top: calc(10% - 60px); width: 160px; height: 120px; background: radial-gradient(closest-side, rgba(122,77,255,0.9), transparent); animation: npx-drift 6s ease-in-out infinite alternate; }
.npa-nebula-drift .l2 { left: calc(62% - 70px); top: calc(55% - 55px); width: 140px; height: 110px; background: radial-gradient(closest-side, rgba(255,95,176,0.7), transparent); animation: npx-drift2 7s ease-in-out infinite alternate; }
.npa-nebula-drift .l3 { inset: 0; background: radial-gradient(circle at 86% 20%, #ffffff 0 1.2px, transparent 2.0px), radial-gradient(circle at 66% 52%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 76% 72%, #ffffff 0 1.2px, transparent 2.0px), radial-gradient(circle at 93% 60%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 55% 30%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 48% 75%, #ffffff 0 1px, transparent 1.8px); animation: npx-twinkle 2s ease-in-out infinite alternate; }
.npa-starlight { background: linear-gradient(90deg, #1b1d24 0%, #0a0c1c 50%, #141a3a 100%); }
.npa-starlight .l1 { left: calc(90% - 60px); top: calc(50% - 40px); width: 120px; height: 80px; background: radial-gradient(closest-side, rgba(58,74,160,0.5), transparent); animation: npx-drift 6s ease-in-out infinite alternate; }
.npa-starlight .l2 { inset: 0; background: radial-gradient(circle at 86% 20%, #ffffff 0 1.2px, transparent 2.0px), radial-gradient(circle at 66% 52%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 76% 72%, #ffffff 0 1.2px, transparent 2.0px), radial-gradient(circle at 93% 60%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 55% 30%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 48% 75%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 97% 35%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 72% 30%, #ffffff 0 0.9px, transparent 1.7px); animation: npx-twinkle 2s ease-in-out infinite alternate; }
.npa-starlight .l3 { inset: 0; background: radial-gradient(circle at 60% 40%, #cfe0ff 0 0.9px, transparent 1.7px), radial-gradient(circle at 80% 15%, #cfe0ff 0 1px, transparent 1.8px), radial-gradient(circle at 88% 80%, #cfe0ff 0 1px, transparent 1.8px), radial-gradient(circle at 70% 62%, #cfe0ff 0 0.8px, transparent 1.6px), radial-gradient(circle at 99% 50%, #cfe0ff 0 1px, transparent 1.8px); animation: npx-twinkle 2.7s ease-in-out infinite alternate; }
.npa-ember-smoke { background: linear-gradient(90deg, #1b1d24 0%, #2a0a04 55%, #4a1205 100%); }
.npa-ember-smoke .l1 { left: calc(90% - 80px); top: calc(110% - 60px); width: 160px; height: 120px; background: radial-gradient(closest-side, rgba(255,122,26,0.9), transparent); animation: npx-drift2 4s ease-in-out infinite alternate; }
.npa-ember-smoke .l2 { inset: 0; background: radial-gradient(circle at 70% 85%, #ffd27a 0 2px, transparent 2.8px), radial-gradient(circle at 78% 80%, #ffd27a 0 1.5px, transparent 2.3px), radial-gradient(circle at 86% 90%, #ffd27a 0 2px, transparent 2.8px), radial-gradient(circle at 94% 82%, #ffd27a 0 1.5px, transparent 2.3px), radial-gradient(circle at 62% 88%, #ffd27a 0 1.5px, transparent 2.3px); animation: npx-rise 2.4s ease-in infinite; }
.npa-ember-smoke .l3 { inset: 0; background: radial-gradient(circle at 74% 92%, #ff9a3c 0 1.5px, transparent 2.3px), radial-gradient(circle at 90% 95%, #ff9a3c 0 1.5px, transparent 2.3px), radial-gradient(circle at 82% 88%, #ff9a3c 0 1.2px, transparent 2.0px); animation: npx-rise 3.1s ease-in infinite; }
.npa-ocean-depths { background: linear-gradient(90deg, #1b1d24 0%, #03213d 55%, #063f6e 100%); }
.npa-ocean-depths .l1 { left: calc(85% - 110px); top: calc(0% - 40px); width: 220px; height: 80px; background: radial-gradient(closest-side, rgba(120,220,255,0.55), transparent); animation: npx-drift 5s ease-in-out infinite alternate; }
.npa-ocean-depths .l2 { left: calc(65% - 90px); top: calc(100% - 30px); width: 180px; height: 60px; background: radial-gradient(closest-side, rgba(30,127,192,0.6), transparent); animation: npx-drift2 6s ease-in-out infinite alternate; }
.npa-ocean-depths .l3 { inset: 0; background: radial-gradient(circle at 70% 80%, #bfeaff 0 1.2px, transparent 2.0px), radial-gradient(circle at 80% 90%, #bfeaff 0 1.6px, transparent 2.4px), radial-gradient(circle at 90% 85%, #bfeaff 0 1px, transparent 1.8px), radial-gradient(circle at 60% 95%, #bfeaff 0 1px, transparent 1.8px), radial-gradient(circle at 95% 92%, #bfeaff 0 1.4px, transparent 2.2px); animation: npx-rise 3.5s ease-in infinite; }
.npa-scanner-haze { background: linear-gradient(90deg, #1b1d24 0%, #1a0406 55%, #2a0508 100%); }
.npa-scanner-haze .l1 { left: calc(80% - 140px); top: calc(40% - 40px); width: 280px; height: 80px; background: radial-gradient(closest-side, rgba(255,30,30,0.45), transparent); animation: npx-drift2 5s ease-in-out infinite alternate; }
.npa-scanner-haze .l2 { left: 60%; top: calc(45% - 7.0px); width: 60px; height: 14px; transform: translateX(-50%); background: radial-gradient(closest-side, #ff2020, transparent); animation: npx-sweep 2.2s ease-in-out infinite alternate; }
.npa-aurora-veil { background: linear-gradient(90deg, #1b1d24 0%, #06201c 60%, #062a26 100%); }
.npa-aurora-veil .l1 { left: calc(75% - 140px); top: calc(25% - 16px); width: 280px; height: 32px; background: radial-gradient(closest-side, rgba(42,255,176,0.75), transparent); animation: npx-drift 5s ease-in-out infinite alternate; }
.npa-aurora-veil .l2 { left: calc(85% - 120px); top: calc(70% - 14px); width: 240px; height: 28px; background: radial-gradient(closest-side, rgba(138,91,255,0.6), transparent); animation: npx-drift2 6s ease-in-out infinite alternate; }
.npa-aurora-veil .l3 { left: calc(60% - 90px); top: calc(50% - 12px); width: 180px; height: 24px; background: radial-gradient(closest-side, rgba(48,201,255,0.5), transparent); animation: npx-drift 7s ease-in-out infinite alternate; }
.npa-turbo-trail { background: linear-gradient(90deg, #1b1d24 0%, #200600 55%, #3a0c00 100%); }
.npa-turbo-trail .l1 { left: calc(90% - 60px); top: calc(50% - 30px); width: 120px; height: 60px; background: radial-gradient(closest-side, rgba(255,90,26,0.5), transparent); animation: npx-pulse 1.2s ease-in-out infinite alternate; }
.npa-turbo-trail .l2 { left: 0; top: 0; bottom: 0; width: calc(100% + 70px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='2'%3E%3Crect x='30' width='18' height='2' rx='1' fill='%23ffaa3c'/%3E%3C/svg%3E") repeat-x 0 30%, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='2'%3E%3Crect x='30' width='18' height='2' rx='1' fill='%23ffaa3c'/%3E%3C/svg%3E") repeat-x 0 50%, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='2'%3E%3Crect x='30' width='18' height='2' rx='1' fill='%23ffaa3c'/%3E%3C/svg%3E") repeat-x 0 70%; animation: npx-warp 0.9s linear infinite; }
.npa-twilight-mist { background: linear-gradient(90deg, #1b1d24 0%, #2b2340 55%, #5a4060 100%); }
.npa-twilight-mist .l1 { left: calc(80% - 150px); top: calc(25% - 18px); width: 300px; height: 36px; background: radial-gradient(closest-side, rgba(255,220,240,0.35), transparent); animation: npx-drift 7s ease-in-out infinite alternate; }
.npa-twilight-mist .l2 { left: calc(90% - 150px); top: calc(65% - 16px); width: 300px; height: 32px; background: radial-gradient(closest-side, rgba(200,190,255,0.3), transparent); animation: npx-drift2 8s ease-in-out infinite alternate; }
.npa-twilight-mist .l3 { left: calc(60% - 100px); top: calc(50% - 14px); width: 200px; height: 28px; background: radial-gradient(closest-side, rgba(255,255,255,0.15), transparent); animation: npx-drift 9s ease-in-out infinite alternate; }
.npa-galaxy-swirl { background: linear-gradient(90deg, #1b1d24 0%, #0b0620 55%, #120a30 100%); }
.npa-galaxy-swirl .l1 { left: calc(78% - 75.0px); top: calc(45% - 75.0px); width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 50% 18%, #a05aff 0, transparent 32%), radial-gradient(circle at 82% 70%, #50aaff 0, transparent 32%), radial-gradient(circle at 18% 70%, #ff5ac8 0, transparent 32%), radial-gradient(circle, rgba(255,255,255,.18), transparent 62%); opacity: .8; animation: npx-spin 8s linear infinite; }
.npa-galaxy-swirl .l2 { left: calc(78% - 9px); top: calc(45% - 9px); width: 18px; height: 18px; background: radial-gradient(closest-side, #ffffff, transparent); animation: npx-pulse 2s ease-in-out infinite alternate; }
.npa-northern-glow { background: linear-gradient(90deg, #1b1d24 0%, #071a20 55%, #0a2630 100%); }
.npa-northern-glow .l1 { left: calc(70% - 120px); top: calc(10% - 22px); width: 240px; height: 44px; background: radial-gradient(closest-side, rgba(109,255,138,0.55), transparent); animation: npx-drift 6s ease-in-out infinite alternate; }
.npa-northern-glow .l2 { left: calc(92% - 90px); top: calc(40% - 20px); width: 180px; height: 40px; background: radial-gradient(closest-side, rgba(58,255,213,0.5), transparent); animation: npx-drift2 5s ease-in-out infinite alternate; }
.npa-northern-glow .l3 { inset: 0; background: radial-gradient(circle at 66% 70%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 78% 82%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 88% 66%, #ffffff 0 1.2px, transparent 2.0px), radial-gradient(circle at 96% 85%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 58% 88%, #ffffff 0 0.9px, transparent 1.7px); animation: npx-twinkle 2.4s ease-in-out infinite alternate; }
.npa-liquid-chrome { background: linear-gradient(90deg, #1b1d24 0%, #2b2f37 55%, #4a505a 100%); }
.npa-liquid-chrome .l1 { left: calc(86% - 50px); top: calc(30% - 40px); width: 100px; height: 80px; background: radial-gradient(closest-side, rgba(255,255,255,0.85), transparent); animation: npx-morph 5s ease-in-out infinite alternate; }
.npa-liquid-chrome .l2 { left: calc(66% - 40px); top: calc(60% - 30px); width: 80px; height: 60px; background: radial-gradient(closest-side, rgba(201,206,214,0.7), transparent); animation: npx-morph 6s ease-in-out infinite alternate; }
.npa-liquid-chrome .l3 { left: calc(95% - 30px); top: calc(80% - 24px); width: 60px; height: 48px; background: radial-gradient(closest-side, rgba(138,145,155,0.8), transparent); animation: npx-drift 4s ease-in-out infinite alternate; }
.npa-molten-core { background: linear-gradient(90deg, #1b1d24 0%, #200402 55%, #3a0804 100%); }
.npa-molten-core .l1 { left: calc(88% - 50px); top: calc(60% - 40px); width: 100px; height: 80px; background: radial-gradient(closest-side, rgba(255,106,0,0.95), transparent); animation: npx-morph 4s ease-in-out infinite alternate; }
.npa-molten-core .l2 { left: calc(70% - 40px); top: calc(30% - 30px); width: 80px; height: 60px; background: radial-gradient(closest-side, rgba(255,42,0,0.8), transparent); animation: npx-morph 5s ease-in-out infinite alternate; }
.npa-molten-core .l3 { left: calc(95% - 26px); top: calc(20% - 22px); width: 52px; height: 44px; background: radial-gradient(closest-side, rgba(255,210,61,0.9), transparent); animation: npx-drift2 3s ease-in-out infinite alternate; }
.npa-lagoon { background: linear-gradient(90deg, #1b1d24 0%, #022a2a 55%, #04504a 100%); }
.npa-lagoon .l1 { left: calc(80% - 120px); top: calc(100% - 30px); width: 240px; height: 60px; background: radial-gradient(closest-side, rgba(42,255,213,0.45), transparent); animation: npx-drift 5s ease-in-out infinite alternate; }
.npa-lagoon .l2 { left: calc(92% - 60px); top: calc(20% - 30px); width: 120px; height: 60px; background: radial-gradient(closest-side, rgba(154,255,234,0.45), transparent); animation: npx-drift2 6s ease-in-out infinite alternate; }
.npa-lagoon .l3 { inset: 0; background: radial-gradient(circle at 72% 80%, #d0fff6 0 1.2px, transparent 2.0px), radial-gradient(circle at 84% 90%, #d0fff6 0 1.4px, transparent 2.2px), radial-gradient(circle at 92% 75%, #d0fff6 0 1px, transparent 1.8px), radial-gradient(circle at 64% 92%, #d0fff6 0 1px, transparent 1.8px), radial-gradient(circle at 98% 88%, #d0fff6 0 1.2px, transparent 2.0px); animation: npx-rise 3.2s ease-in infinite; }
.npa-neon-rain { background: linear-gradient(90deg, #1b1d24 0%, #0a0618 55%, #120a26 100%); }
.npa-neon-rain .l1 { left: 40%; right: 0; top: -30px; bottom: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='30'%3E%3Crect x='3' y='2' width='2' height='13' fill='%23ff3cdc'/%3E%3Crect x='15' y='16' width='2' height='11' fill='%233cc8ff'/%3E%3C/svg%3E") repeat; animation: npx-fall 1.6s linear infinite; }
.npa-desert-mirage { background: linear-gradient(180deg, #ffb35a 0%, #e05a2a 55%, #5a2010 100%); }
.npa-desert-mirage .l1 { left: calc(75% - 90px); top: calc(105% - 22px); width: 180px; height: 44px; background: radial-gradient(closest-side, #a83a14, transparent); animation: npx-shimmer 2s ease-in-out infinite alternate; }
.npa-desert-mirage .l2 { left: calc(92% - 70px); top: calc(110% - 26px); width: 140px; height: 52px; background: radial-gradient(closest-side, #7a2a10, transparent); animation: npx-shimmer 2.6s ease-in-out infinite alternate; }
.npa-desert-mirage .l3 { left: calc(70% - 120px); top: calc(40% - 6px); width: 240px; height: 12px; background: radial-gradient(closest-side, rgba(255,230,180,0.4), transparent); animation: npx-shimmer 1.4s ease-in-out infinite alternate; }
.npa-solar-flare { background: linear-gradient(90deg, #1b1d24 0%, #2a1200 55%, #4a2000 100%); }
.npa-solar-flare .l1 { left: calc(86% - 55.0px); top: calc(50% - 55.0px); width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 50% 18%, #ffcf3d 0, transparent 32%), radial-gradient(circle at 82% 70%, #ff7a1a 0, transparent 32%), radial-gradient(circle at 18% 70%, #ff3d1a 0, transparent 32%), radial-gradient(circle, rgba(255,255,255,.18), transparent 62%); opacity: .8; animation: npx-spin 6s linear infinite; }
.npa-solar-flare .l2 { left: calc(86% - 14px); top: calc(50% - 14px); width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(#fff3b0, #ffb020); box-shadow: 0 0 18px #ffb020; }
.npa-storm-front { background: linear-gradient(90deg, #1b1d24 0%, #151b2a 55%, #262f44 100%); }
.npa-storm-front .l1 { left: calc(85% - 100px); top: calc(0% - 34px); width: 200px; height: 68px; background: radial-gradient(closest-side, rgba(74,88,120,0.9), transparent); animation: npx-drift 6s ease-in-out infinite alternate; }
.npa-storm-front .l2 { left: calc(65% - 80px); top: calc(20% - 26px); width: 160px; height: 52px; background: radial-gradient(closest-side, rgba(58,70,95,0.8), transparent); animation: npx-drift2 7s ease-in-out infinite alternate; }
.npa-storm-front .l3 { inset: 0; opacity: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 58' preserveAspectRatio='none'%3E%3Cpolyline points='10,0 4,24 9,24 2,58' fill='none' stroke='%23eaf3ff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat 82% 0 / 16px 100%, radial-gradient(circle at 82% 30%, rgba(220,235,255,.85), transparent 45%); animation: npx-flash 3.5s linear 0s infinite; }
.npa-rose-gold { background: linear-gradient(90deg, #1b1d24 0%, #3a1e22 50%, #b76e79 100%); }
.npa-rose-gold .l1 { left: calc(80% - 80px); top: calc(30% - 30px); width: 160px; height: 60px; background: radial-gradient(closest-side, rgba(255,216,200,0.6), transparent); animation: npx-drift 5s ease-in-out infinite alternate; }
.npa-rose-gold .l2 { left: 60%; top: calc(50% - 40.0px); width: 40px; height: 80px; transform: translateX(-50%); background: radial-gradient(closest-side, #ffffff, transparent); animation: npx-sweep 3s ease-in-out infinite alternate; }
.npa-emerald-haze { background: linear-gradient(90deg, #1b1d24 0%, #04180e 55%, #08301c 100%); }
.npa-emerald-haze .l1 { left: calc(85% - 90px); top: calc(30% - 35px); width: 180px; height: 70px; background: radial-gradient(closest-side, rgba(42,255,160,0.55), transparent); animation: npx-drift 6s ease-in-out infinite alternate; }
.npa-emerald-haze .l2 { left: calc(65% - 80px); top: calc(75% - 25px); width: 160px; height: 50px; background: radial-gradient(closest-side, rgba(16,192,112,0.45), transparent); animation: npx-drift2 7s ease-in-out infinite alternate; }
.npa-emerald-haze .l3 { inset: 0; background: radial-gradient(circle at 70% 90%, #b0ffd8 0 1.2px, transparent 2.0px), radial-gradient(circle at 82% 85%, #b0ffd8 0 1px, transparent 1.8px), radial-gradient(circle at 92% 92%, #b0ffd8 0 1.2px, transparent 2.0px), radial-gradient(circle at 60% 95%, #b0ffd8 0 1px, transparent 1.8px); animation: npx-rise 3s ease-in infinite; }
.npa-synth-horizon { background: linear-gradient(180deg, #2a0b46 0%, #6a1a6e 70%, #ff4f8b 100%); }
.npa-synth-horizon .l1 { left: calc(84% - 22px); top: calc(52% - 22px); width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(#ffd23d, #ff4f8b); box-shadow: 0 0 29px #ff4f8b; }
.npa-synth-horizon .l2 { left: 0; right: 0; bottom: 0; height: 16px; background: linear-gradient(transparent 0 70%, rgba(255,80,220,.8) 70% 82%, transparent 82%) 0 0 / 100% 6px, linear-gradient(90deg, rgba(255,80,220,.8) 0 1.5px, transparent 1.5px) 0 0 / 22px 100%; animation: npx-grid 3s linear infinite; }
.npa-cyber-grid { background: linear-gradient(180deg, #02141a 0%, #053040 100%); }
.npa-cyber-grid .l1 { left: calc(85% - 90px); top: calc(40% - 20px); width: 180px; height: 40px; background: radial-gradient(closest-side, rgba(40,230,255,0.35), transparent); animation: npx-drift 5s ease-in-out infinite alternate; }
.npa-cyber-grid .l2 { left: 0; right: 0; bottom: 0; height: 30px; background: linear-gradient(transparent 0 70%, rgba(40,230,255,.7) 70% 82%, transparent 82%) 0 0 / 100% 6px, linear-gradient(90deg, rgba(40,230,255,.7) 0 1.5px, transparent 1.5px) 0 0 / 22px 100%; animation: npx-grid 2.5s linear infinite; }
.npa-crimson-pulse { background: linear-gradient(90deg, #1b1d24 0%, #2a0004 55%, #4a0008 100%); }
.npa-crimson-pulse .l1 { left: calc(82% - 120px); top: calc(50% - 70px); width: 240px; height: 140px; background: radial-gradient(closest-side, rgba(255,32,64,0.3), transparent); animation: npx-pulse 1.6s ease-in-out infinite alternate; }
.npa-crimson-pulse .l2 { left: calc(82% - 70px); top: calc(50% - 45px); width: 140px; height: 90px; background: radial-gradient(closest-side, rgba(255,32,64,0.8), transparent); animation: npx-pulse 1.6s ease-in-out infinite alternate; }
.npa-frostbite { background: linear-gradient(90deg, #1b1d24 0%, #0a1a2a 55%, #1a3a5a 100%); }
.npa-frostbite .l1 { left: calc(85% - 80px); top: calc(30% - 40px); width: 160px; height: 80px; background: radial-gradient(closest-side, rgba(191,232,255,0.45), transparent); animation: npx-drift 6s ease-in-out infinite alternate; }
.npa-frostbite .l2 { inset: 0; background: radial-gradient(circle at 62% 30%, #ffffff 0 0.9px, transparent 1.7px), radial-gradient(circle at 70% 70%, #ffffff 0 1.1px, transparent 1.9px), radial-gradient(circle at 78% 20%, #ffffff 0 0.9px, transparent 1.7px), radial-gradient(circle at 84% 55%, #ffffff 0 1.2px, transparent 2.0px), radial-gradient(circle at 90% 30%, #ffffff 0 0.9px, transparent 1.7px), radial-gradient(circle at 96% 75%, #ffffff 0 1.1px, transparent 1.9px), radial-gradient(circle at 74% 45%, #ffffff 0 0.8px, transparent 1.6px), radial-gradient(circle at 88% 85%, #ffffff 0 0.9px, transparent 1.7px), radial-gradient(circle at 98% 20%, #ffffff 0 1px, transparent 1.8px), radial-gradient(circle at 66% 88%, #ffffff 0 0.8px, transparent 1.6px); animation: npx-twinkle 1.8s ease-in-out infinite alternate; }
.npa-deep-space { background: linear-gradient(90deg, #1b1d24 0%, #02030a 50%, #060a1e 100%); }
.npa-deep-space .l1 { left: calc(90% - 60px); top: calc(50% - 40px); width: 120px; height: 80px; background: radial-gradient(closest-side, rgba(42,58,138,0.5), transparent); animation: npx-drift 6s ease-in-out infinite alternate; }
.npa-deep-space .l2 { left: 0; top: 0; bottom: 0; width: calc(100% + 70px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='2'%3E%3Crect x='30' width='18' height='2' rx='1' fill='%23c8dcff'/%3E%3C/svg%3E") repeat-x 0 25%, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='2'%3E%3Crect x='30' width='18' height='2' rx='1' fill='%23c8dcff'/%3E%3C/svg%3E") repeat-x 0 55%, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='2'%3E%3Crect x='30' width='18' height='2' rx='1' fill='%23c8dcff'/%3E%3C/svg%3E") repeat-x 0 80%; animation: npx-warp 1.4s linear infinite; }
.npa-velvet-night { background: linear-gradient(90deg, #1b1d24 0%, #1a0a1e 55%, #2e0f34 100%); }
.npa-velvet-night .l1 { left: calc(85% - 90px); top: calc(40% - 45px); width: 180px; height: 90px; background: radial-gradient(closest-side, rgba(138,42,154,0.55), transparent); animation: npx-drift 7s ease-in-out infinite alternate; }
.npa-velvet-night .l2 { left: calc(65% - 70px); top: calc(70% - 25px); width: 140px; height: 50px; background: radial-gradient(closest-side, rgba(192,74,138,0.35), transparent); animation: npx-drift2 8s ease-in-out infinite alternate; }
.npa-velvet-night .l3 { inset: 0; background: radial-gradient(circle at 68% 25%, #ffd6f0 0 1px, transparent 1.8px), radial-gradient(circle at 80% 70%, #ffd6f0 0 1px, transparent 1.8px), radial-gradient(circle at 90% 20%, #ffd6f0 0 1.2px, transparent 2.0px), radial-gradient(circle at 96% 60%, #ffd6f0 0 1px, transparent 1.8px), radial-gradient(circle at 74% 85%, #ffd6f0 0 0.9px, transparent 1.7px), radial-gradient(circle at 58% 40%, #ffd6f0 0 0.9px, transparent 1.7px); animation: npx-twinkle 2.2s ease-in-out infinite alternate; }
.npa-prism { background: linear-gradient(90deg, #1b1d24 0%, #141420 50%, #20202e 100%); }
.npa-prism .l1 { left: calc(70% - 50px); top: calc(50% - 40px); width: 100px; height: 80px; background: radial-gradient(closest-side, rgba(255,95,158,0.6), transparent); animation: npx-drift 5s ease-in-out infinite alternate; }
.npa-prism .l2 { left: calc(80% - 45px); top: calc(40% - 35px); width: 90px; height: 70px; background: radial-gradient(closest-side, rgba(255,211,95,0.55), transparent); animation: npx-drift2 6s ease-in-out infinite alternate; }
.npa-prism .l3 { left: calc(88% - 45px); top: calc(60% - 35px); width: 90px; height: 70px; background: radial-gradient(closest-side, rgba(95,255,178,0.55), transparent); animation: npx-drift 7s ease-in-out infinite alternate; }
.npa-prism .l4 { left: calc(96% - 45px); top: calc(40% - 35px); width: 90px; height: 70px; background: radial-gradient(closest-side, rgba(95,178,255,0.55), transparent); animation: npx-drift2 5s ease-in-out infinite alternate; }
.npa-prism .l5 { left: calc(104% - 45px); top: calc(55% - 35px); width: 90px; height: 70px; background: radial-gradient(closest-side, rgba(192,95,255,0.55), transparent); animation: npx-drift 6s ease-in-out infinite alternate; }
.npa-midnight-tide { background: linear-gradient(90deg, #1b1d24 0%, #050a1e 55%, #0a1640 100%); }
.npa-midnight-tide .l1 { left: calc(85% - 140px); top: calc(100% - 26px); width: 280px; height: 52px; background: radial-gradient(closest-side, rgba(31,79,255,0.5), transparent); animation: npx-drift 5s ease-in-out infinite alternate; }
.npa-midnight-tide .l2 { left: calc(70% - 120px); top: calc(85% - 16px); width: 240px; height: 32px; background: radial-gradient(closest-side, rgba(122,168,255,0.35), transparent); animation: npx-drift2 6s ease-in-out infinite alternate; }
.npa-midnight-tide .l3 { left: calc(90% - 8px); top: calc(26% - 8px); width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(#f4f1d0, #d8d2a8); box-shadow: 0 0 10px #f4f1d0; }
.npa-thunder-neon { background: linear-gradient(90deg, #1b1d24 0%, #0a0420 55%, #1a0640 100%); }
.npa-thunder-neon .l1 { left: calc(85% - 80px); top: calc(50% - 40px); width: 160px; height: 80px; background: radial-gradient(closest-side, rgba(155,77,255,0.5), transparent); animation: npx-drift 5s ease-in-out infinite alternate; }
.npa-thunder-neon .l2 { inset: 0; opacity: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 58' preserveAspectRatio='none'%3E%3Cpolyline points='10,0 4,24 9,24 2,58' fill='none' stroke='%23eaf3ff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat 75% 0 / 16px 100%, radial-gradient(circle at 75% 30%, rgba(220,235,255,.85), transparent 45%); animation: npx-flash 2.8s linear 0s infinite; }
.npa-thunder-neon .l3 { inset: 0; opacity: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 58' preserveAspectRatio='none'%3E%3Cpolyline points='10,0 4,24 9,24 2,58' fill='none' stroke='%23eaf3ff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat 92% 0 / 16px 100%, radial-gradient(circle at 92% 30%, rgba(220,235,255,.85), transparent 45%); animation: npx-flash 3.6s linear 1.2s infinite; }
.npa-phoenix { background: linear-gradient(90deg, #1b1d24 0%, #2a0800 55%, #4a1000 100%); }
.npa-phoenix .l1 { left: calc(85% - 60px); top: calc(60% - 45px); width: 120px; height: 90px; background: radial-gradient(closest-side, rgba(255,90,26,0.9), transparent); animation: npx-shimmer 1.8s ease-in-out infinite alternate; }
.npa-phoenix .l2 { left: calc(75% - 50px); top: calc(30% - 30px); width: 100px; height: 60px; background: radial-gradient(closest-side, rgba(255,176,32,0.8), transparent); animation: npx-shimmer 2.2s ease-in-out infinite alternate; }
.npa-phoenix .l3 { inset: 0; background: radial-gradient(circle at 70% 90%, #ffe08a 0 1.5px, transparent 2.3px), radial-gradient(circle at 80% 85%, #ffe08a 0 1.2px, transparent 2.0px), radial-gradient(circle at 88% 92%, #ffe08a 0 1.5px, transparent 2.3px), radial-gradient(circle at 94% 80%, #ffe08a 0 1.2px, transparent 2.0px), radial-gradient(circle at 62% 95%, #ffe08a 0 1px, transparent 1.8px), radial-gradient(circle at 76% 95%, #ffe08a 0 1px, transparent 1.8px); animation: npx-rise 2s ease-in infinite; }
.npa-dusk-highway { background: linear-gradient(180deg, #ff9a3c 0%, #d9423c 45%, #3b1631 55%, #1a0d1f 100%); }
.npa-dusk-highway .l1 { left: calc(84% - 12px); top: calc(46% - 12px); width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(#ffe07a, #ff7a3c); box-shadow: 0 0 16px #ff9a3c; }
.npa-dusk-highway .l2 { left: 0; top: 0; bottom: 0; width: calc(100% + 70px); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='2'%3E%3Crect x='30' width='18' height='2' rx='1' fill='%23ffd27a'/%3E%3C/svg%3E") repeat-x 0 82%; animation: npx-warp 1.2s linear infinite; }

/* ---- KITT parts members are looking for (lib/hunts.php): Parts Hunt posts, the wishlist, the seller's hint ---- */
.hunt-tag { display: inline-block; margin-right: .4rem; padding: .05rem .5rem; border-radius: 999px; background: #3a2a05; color: #ffcf6e; font: 700 .72rem/1.6 var(--body); letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.hunt-tag.big { font-size: .85rem; padding: .15rem .7rem; }
.hunt-meta { display: block; margin: .15rem 0 .1rem; color: #ffcf6e; font-size: .85rem; }
.hunt-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin: .2rem 0 .6rem; }
.hunt-fields label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
.hunt-budget { display: flex; gap: .4rem; }
.hunt-budget select { flex: 1; min-width: 0; }
.hunt-budget input { width: 7.5em; }
.hunt-box { margin: .4rem 0 1rem; padding: .8rem 1rem; border: 1px solid rgba(255, 207, 110, .35); border-radius: 12px; background: rgba(255, 207, 110, .06); }
.hunt-box dl { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 0 0 .6rem; }
.hunt-box dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.hunt-box dd { margin: .1rem 0 0; color: var(--strong); font-weight: 600; }
.hunt-acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.hunt-acts form { margin: 0; }
.hunt-count { margin: -.2rem 0 .6rem; color: #ffcf6e; }
/* the wishlist: "Still needs" on profile cards, profiles and build pages */
.wish-show { margin: 0; }
.wish-h { margin: 0 0 .3rem; color: var(--muted); font: 700 .78rem var(--body); text-transform: uppercase; letter-spacing: .07em; }
.wish-show ul { margin: 0 0 .5rem; padding-left: 1.1rem; }
.wish-show li { margin: .15rem 0; }
.wish-show li.found { list-style: none; margin-left: -1.1rem; color: #6dd99a; }
.wish-show li.wish-more { list-style: none; margin-left: -1.1rem; color: var(--muted); font-size: .9rem; }
.wish-show a { color: inherit; text-decoration: underline dotted; }
.pf-wish { margin: 0 0 1.2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; }
/* My settings > My profile > Parts I still need */
.wish-edit-list { margin: .3rem 0 .6rem; padding: 0; list-style: none; }
.wish-edit-list li { display: flex; align-items: center; gap: .55rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.wish-edit-list li.found .wish-part { color: var(--muted); text-decoration: line-through; }
.wish-tick { display: grid; place-items: center; width: 22px; height: 22px; flex: none; padding: 0; border: 2px solid var(--line); border-radius: 6px; background: none; color: #3ddc84; font-weight: 700; cursor: pointer; }
.wish-edit-list li.found .wish-tick { border-color: #3ddc84; }
.wish-part { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wish-link { font-size: .85rem; white-space: nowrap; }
.wish-del { padding: 0 .3rem; border: 0; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.wish-del:hover { color: var(--scanner); }
.wish-add { display: flex; gap: .5rem; }
.wish-add input { flex: 1; min-width: 0; }
.wish-msg { min-height: 1em; margin: .3rem 0 0; color: var(--scanner); }
.pc .wish-show ul { margin-bottom: .4rem; }

/* my name bar at the bottom runs the full width, under the icon rail too (like Discord's bottom panel):
   the rail stops just above it and the bar reaches left across the gap */
@media (min-width: 761px) {
  #hub-chat.dc { --dc-railw: 72px; --dc-meh: 59px; }
  #hub-chat.dc .dc-chan-in > .dc-me { box-sizing: border-box; height: var(--dc-meh); margin-left: calc(-1 * var(--dc-railw)); padding-left: .65rem; }
  #hub-chat.dc:not(.wide) .dc-rail { margin-bottom: var(--dc-meh); }
}
/* shorter screens: tighten the rail so every icon still fits above the bar */
@media (min-width: 761px) and (max-height: 880px) {
  #hub-chat.dc .dc-rail { gap: 5px; padding-top: 8px; }
  #hub-chat.dc .dc-ri, #hub-chat.dc .dc-ri img.dc-ri-logo { width: 40px; height: 40px; }
  #hub-chat.dc .dc-ri svg { width: 21px; height: 21px; }
}
@media (min-width: 761px) and (max-height: 720px) {
  #hub-chat.dc .dc-rail { gap: 3px; padding-top: 6px; }
  #hub-chat.dc .dc-ri, #hub-chat.dc .dc-ri img.dc-ri-logo { width: 34px; height: 34px; }
  #hub-chat.dc .dc-ri svg { width: 19px; height: 19px; }
  #hub-chat.dc .dc-rsep { margin: 0; }
}
@media (min-width: 761px) and (max-width: 1000px) {
  #hub-chat.dc { --dc-railw: 64px; }
}
