:root {
  color-scheme: dark;
  --bg: #121511;
  --panel: #1a1f17;
  --panel-deep: #151913;
  --edge: #343e2d;
  --text: #edf0e7;
  --dim: #aeb8a5;
  --green: #c2dc87;
  --olive: #6f803e;
  --amber: #e5c783;
  --red: #f2a89b;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h2 { font-size: clamp(1.65rem,4vw,2.35rem); line-height: 1.1; letter-spacing: -.035em; }
.wrap { width: min(1200px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 1rem; padding: .6rem; transform: translateY(-140%); background: var(--green); color: var(--bg); z-index: 3; }
.skip:focus { transform: none; }
.mast { border-bottom: 1px solid var(--edge); background: #10130f; }
.mast-inner, nav { display: flex; align-items: center; gap: 1.2rem; }
.mast-inner { justify-content: space-between; min-height: 68px; }
nav { font-size: .9rem; color: var(--dim); }
nav a:hover, .quiet:hover { color: var(--green); }
.brand { display: inline-flex; align-items: center; gap: .45rem; font: 800 .9rem var(--mono); letter-spacing: .09em; white-space: nowrap; }
.brand > span:last-child { color: var(--green); }
.brand-icon { position: relative; display: grid; place-items: center; width: 28px; height: 28px; margin-right: .25rem; border: 1px solid var(--olive); color: var(--green); }
.brand-icon::before, .brand-icon::after, .brand-icon i { content: ''; position: absolute; width: 3px; background: currentColor; bottom: 7px; }
.brand-icon::before { height: 5px; left: 6px; }.brand-icon i { height: 9px; left: 11px; }.brand-icon::after { height: 13px; left: 16px; }
.quiet, .primary, .retailer {
  display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: .45rem .85rem;
  border: 1px solid var(--edge); background: transparent; color: var(--text); border-radius: 4px; font-size: .9rem; font-weight: 700;
}
.primary { background: var(--green); border-color: var(--green); color: #192111; padding-inline: 1.05rem; }
.primary:hover { background: #d4eca5; }
.hero {
  overflow: hidden; border-bottom: 1px solid var(--edge);
  background: radial-gradient(ellipse at 80% 50%,#303c22 0%,transparent 65%), #171c15;
}
.hero-inner { position: relative; min-height: 230px; padding: clamp(1.6rem,3.5vw,2.6rem) 0; display: grid; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--green); font: 700 .8rem/1.4 var(--mono); letter-spacing: .13em; }
.eyebrow span { display: inline-block; width: 8px; height: 8px; background: var(--green); margin: 0 .45rem .02rem 0; }
.hero h1 { margin: .5rem 0 .6rem; font-size: clamp(2.2rem,5vw,4.2rem); font-weight: 950; line-height: .9; letter-spacing: -.025em; }
@supports (paint-order: stroke fill) { .hero h1 { -webkit-text-stroke: 4px #000; paint-order: stroke fill; stroke-linejoin: round; } }
.hero h1 em { font-style: normal; color: var(--green); }
.lede { color: #d0d8c9; max-width: 32rem; font-size: 1.05rem; margin: 1rem 0 1.55rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.hero-actions .quiet { color: var(--green); border-color: #627447; background: #192316; }
.hero-actions .quiet:hover { background: #28371f; }
.scope { position: absolute; right: 4%; top: 50%; translate: 0 -50%; width: clamp(170px,24vw,280px); aspect-ratio: 1; opacity: .95; }
.scope svg { display: block; width: 100%; height: 100%; overflow: visible; }
.radar-sweep { transform-origin: 160px 160px; animation: radar-sweep 9s linear infinite; }
.radar-ping { transform-box: fill-box; transform-origin: center; animation: radar-ping 3.2s ease-out infinite; }
.radar-ping.p2 { animation-delay: 1.1s; }
@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes radar-ping { 0% { transform: scale(.6); opacity: .75; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
.summary { display: grid; grid-template-columns: repeat(4,1fr); background: var(--panel-deep); border: 1px solid var(--edge); margin: 1.1rem 0 .8rem; border-radius: 6px; }
.summary div { padding: .85rem 1.15rem; min-width: 0; }.summary div + div { border-left: 1px solid var(--edge); }
.summary dt { font: 600 .82rem/1.35 var(--mono); color: var(--dim); }
.summary dd { font: 750 1.7rem/1.1 var(--mono); margin-top: .35rem; }.summary .small { font-size: .95rem; line-height: 1.4; }.accent { color: var(--green); }
.scan-timing { color: var(--dim); font-size: .9rem; max-width: 84ch; margin-bottom: 2.5rem; }
.scan-timing strong { display: block; color: var(--text); margin-bottom: .2rem; }
#inventory { scroll-margin-top: 1rem; }
.section-line, .result-line, .admin-heading { display: flex; align-items: center; gap: .8rem; justify-content: space-between; }
.inventory-heading { margin-bottom: 1rem; }.inventory-heading .eyebrow, .admin-heading .eyebrow { margin-bottom: .3rem; }
.feed-state { color: var(--dim); font: .83rem/1.3 var(--mono); text-align: right; }
.panel { padding: 1rem; background: var(--panel); border: 1px solid var(--edge); border-radius: 6px; }
label { display: grid; gap: .3rem; font-size: .87rem; color: var(--dim); font-weight: 650; }
input:not([type=checkbox]), select, textarea { color: var(--text); background: #11160f; border: 1px solid #6b7d45; border-radius: 6px; padding: .56rem .65rem; min-height: 44px; width: 100%; }
select { appearance: none; padding-right: 1.8rem; background-image: linear-gradient(45deg,transparent 50%,var(--dim) 50%),linear-gradient(135deg,var(--dim) 50%,transparent 50%); background-position: calc(100% - 14px) 50%,calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder { color: #a0aa98; }
.result-line { margin: .2rem 0 .9rem; color: var(--dim); font: .85rem var(--mono); }
.text-button { background: transparent; border: 0; padding: .4rem .2rem; color: var(--green); text-decoration: underline; font: inherit; }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.card { min-width: 0; display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1.05rem; background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; }
.card:hover { border-color: var(--olive); }
.card-top, .card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.card-kind { display: flex; align-items: center; gap: .55rem; color: var(--dim); font: .82rem var(--mono); }
.tag { display: inline-flex; align-items: center; color: #c6cec1; padding: .22rem .45rem; font: 700 .82rem/1.3 var(--mono); border: 1px solid #535b50; background: #262d25; border-radius: 3px; }
.tag.in_stock { color: var(--green); background: #29371f; border-color: #53693a; }.tag.orderable, .tag.preorder { color: var(--amber); background: #37301d; border-color: #655636; }.tag.out_of_stock { color: var(--red); background: #36241f; border-color: #71453b; }
.card h3 { font-size: 1.2rem; line-height: 1.16; overflow-wrap: anywhere; }
.card .seller { color: var(--dim); font-size: .88rem; margin-top: .25rem; }
.note { color: #c4cdbc; font-size: .9rem; overflow-wrap: anywhere; }
.card-foot { border-top: 1px solid var(--edge); margin-top: auto; padding-top: .65rem; }
.price { font: 800 1.6rem/1 var(--mono); letter-spacing: -.02em; }
.price small { font: .74rem var(--mono); letter-spacing: 0; color: var(--dim); display: block; margin-bottom: .25rem; }
.retailer { color: var(--green); min-height: 40px; background: #192316; border-color: #455437; }
.retailer:hover { background: #28371f; }
.observed { font: .76rem/1.4 var(--mono); color: var(--dim); }
.empty { grid-column: 1 / -1; }
.stock-notes { margin: 1.5rem 0 2.8rem; color: var(--dim); }
summary { cursor: pointer; font-weight: 700; color: var(--text); }
details p { margin-top: .65rem; }
.site-footer { border-top: 1px solid var(--edge); background: #10130f; color: var(--dim); padding: 1.5rem 0 1rem; }
.mesh-tools { margin-bottom: 2.8rem; scroll-margin-top: 1rem; }
.mesh-tools h2 { margin-bottom: .9rem; }
.resource-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; scroll-margin-top: 1rem; }
.resource-panel > div { flex: 1 1 31rem; }
.resource-panel h3 { font-size: 1.22rem; margin-bottom: .35rem; }
.resource-panel p { color: var(--dim); max-width: 68ch; }
.mesh-link-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; margin-top: .85rem; }
.mesh-link-card ul { list-style: none; padding: 0; margin: .5rem 0 0; }
.mesh-link-card li + li { margin-top: .42rem; }
.mesh-link-card a { color: var(--green); text-decoration: underline; text-underline-offset: .18em; overflow-wrap: anywhere; }
.admin-area { padding: 2.2rem 0 3rem; }.admin-heading { margin-bottom: 1.25rem; }.admin-heading h1 { font-size: clamp(2rem,6vw,3.25rem); line-height: 1.1; }
.narrow { max-width: 460px; display: grid; gap: 1rem; }.narrow button { justify-self: start; }
.notice { background: #27331e; color: var(--green); border: 1px solid var(--edge); padding: .8rem; margin: 0 0 1rem; }.danger, .remove { color: var(--red); }
.dim { color: var(--dim); }.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.editor { display: grid; gap: 1rem; }.editor > button { justify-self: start; }.editor details { border-top: 1px solid var(--edge); padding-top: .7rem; }.editor details > .form-grid { margin-block: .6rem; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }.inline input { accent-color: var(--green); width: 1.1rem; height: 1.1rem; }
.admin-list { margin-top: 1rem; }.admin-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--edge); }.admin-row p { font-size: .85rem; }
.editor-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem; }
.editor-actions h2 { font-size: 1.25rem; }.editor-actions p { color: var(--dim); font-size: .9rem; }.editor-actions form { display: flex; flex-wrap: wrap; gap: .5rem; }
.review-queue { margin-bottom: 1rem; scroll-margin-top: 1rem; }
.submission-area { max-width: 790px; }
.inline-link { color: var(--green); text-decoration: underline; }
.preview-submissions { display: none; margin-top: 1rem; }.preview-submissions:target { display: block; }
@media (max-width: 940px) {
  .catalog { grid-template-columns: repeat(2,1fr); }
  .frow, .filter-row { grid-template-columns: minmax(0,1.6fr) repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 1.6rem); }.mast-inner { min-height: 58px; }.mast-inner, nav { gap: .65rem; }.brand { font-size: .78rem; letter-spacing: .04em; gap: .3rem; }
  .hero-inner { min-height: 0; }.scope { right: -26%; opacity: .5; }.hero h1 { font-size: clamp(2.4rem,10vw,4rem); }.lede { font-size: .98rem; }
  .summary { grid-template-columns: repeat(2,minmax(0,1fr)); }.summary div { padding: .75rem; }.summary div:nth-child(3) { border-left: none; }.summary div:nth-child(n+3) { border-top: 1px solid var(--edge); }
  .mast-inner { flex-wrap: wrap; padding-block: .45rem; }.mast-inner nav { flex-wrap: wrap; }
    .catalog, .form-grid, .mesh-link-grid { grid-template-columns: 1fr; }.section-line { align-items: flex-start; }.feed-state { max-width: 42%; }
  .admin-row { grid-template-columns: minmax(0,1fr) auto; }.admin-row .tag { grid-row: 2; }.admin-row .quiet { grid-column: 2; grid-row: 1 / 3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .radar-sweep { animation: none; transform: rotate(28deg); } .radar-ping { animation: none; opacity: .35; transform: none; } }

.row-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.admin-search { display: block; margin-top: 1rem; }
.admin-row[hidden] { display: none; }
.admin-row p.danger { color: var(--red); }
.change-badge { display: inline-block; margin: .5rem 0 0; padding: .15rem .5rem; border: 1px solid var(--green); border-radius: 4px; color: var(--green); font-size: .8rem; }
.event-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.event-list li { padding: .5rem 0; border-top: 1px solid var(--edge); font-size: .9rem; }

.summary .tile-note { margin: .25rem 0 0; font: .78rem var(--mono); color: var(--dim); }
.summary .amber { color: var(--amber); }
.group { margin-bottom: 2rem; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--edge); }
.group-head h3 { margin: 0; font-size: 1.15rem; }
.group-head p { margin: 0; font-size: .88rem; }
.unverified-toggle { display: block; width: 100%; margin: .5rem 0 1.5rem; padding: .8rem 1rem; border: 1px dashed #627447; border-radius: 6px; background: transparent; color: var(--green); font: 650 .95rem var(--mono); cursor: pointer; }
.unverified-toggle:hover { background: #192316; }
.unverified-toggle:focus-visible, .chip:focus-visible, .filters-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.hero-support { margin: 1rem 0 0; font-size: .92rem; color: var(--dim); }
.hero-support a { color: var(--green); text-underline-offset: .18em; }
.asterisk { color: var(--amber); font-weight: 800; cursor: help; }
.manual-note { margin: 1rem 0 0; color: var(--dim); font-size: .88rem; max-width: 80ch; }
.tab-intro { margin: 0 0 1rem; color: var(--dim); font-size: .9rem; }

/* Buttons are always capitals. The text itself stays in normal case for screen readers and copy/paste. */
button, .quiet, .primary, .retailer, .status-tab, .unverified-toggle, .text-button, .chip, .filters-toggle { text-transform: uppercase; letter-spacing: .05em; }
.quiet, .primary, .retailer { font-size: .8rem; }
.unverified-toggle { font-size: .85rem; }
.text-button { font-size: .78rem; }
.coffee { color: var(--green); border-color: #627447; background: #192316; }
.coffee:hover { background: #28371f; }

/* Footer */
.footer-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1.2fr); gap: 1.6rem 2.5rem; align-items: start; }
.footer-head { margin: 0 0 .6rem; color: var(--text); font: 700 .82rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-about, .footer-col { font-size: .87rem; line-height: 1.55; }
.footer-about p, .footer-col p { margin: 0 0 .8rem; }
nav.footer-col { display: block; font-size: .87rem; color: var(--dim); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-about a, .footer-col li a { color: var(--green); text-underline-offset: .18em; text-decoration: underline; overflow-wrap: anywhere; }
.footer-col .quiet { text-decoration: none; }
.footer-bottom { grid-column: 1 / -1; display: grid; gap: .45rem; border-top: 1px solid var(--edge); padding-top: .9rem; }
.footer-pricing, .visitors { margin: 0; font: .76rem/1.5 var(--mono); }
.visitors strong { color: var(--text); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.warehouse { display: inline-block; margin-top: .4rem; padding: .12rem .45rem; font: 700 .78rem/1.3 var(--mono); color: #c6cec1; border: 1px solid #535b50; border-radius: 3px; background: #262d25; }
.warehouse-us { color: var(--green); border-color: #53693a; }
.warehouse-eu { color: var(--amber); border-color: #655636; }
.warehouse-cn { color: var(--red); border-color: #71453b; }

/* Official MeshCore app store badges. Store badge artwork is used unmodified, as Apple and Google require. */
.app-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--edge); }
.app-label { flex-basis: 100%; margin: 0; color: var(--dim); font-size: .85rem; }
.badge-link { display: inline-flex; border-radius: 6px; }
.badge-link img { display: block; height: 40px; width: auto; }
.badge-play img { height: 60px; margin: -10px 0; }
.badge-link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.footer-legal { margin: 0; font: .72rem/1.5 var(--mono); color: var(--dim); }
.credit { margin: 0 0 .9rem; color: var(--dim); font-size: .85rem; line-height: 1.5; }

/* Toolbar: availability tabs, one filter row, quick filters, active filters and sort */
.toolbar { display: grid; gap: .8rem; margin: 0 0 1.1rem; }
.seg { display: flex; border: 1px solid #627447; border-radius: 8px; overflow: hidden; background: var(--panel); }
.status-tab { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .55rem .7rem; border: 0; border-right: 1px solid var(--edge); border-radius: 0; background: transparent; color: var(--text); font: 650 .78rem var(--mono); white-space: nowrap; cursor: pointer; }
.status-tab:last-child { border-right: 0; }
.status-tab:hover { background: #20281b; }
.status-tab.active { background: #29371f; color: var(--green); box-shadow: inset 0 -3px 0 var(--green); }
.status-tab:focus-visible { outline: 2px solid var(--green); outline-offset: -4px; }
.status-tab .tab-count { padding: .05rem .4rem; border-radius: 3px; background: #0000003a; color: var(--dim); font-size: .82rem; }
.status-tab.active .tab-count { color: var(--green); }
.filters { display: grid; gap: .8rem; }
.filter-row { display: grid; grid-template-columns: minmax(0,1.7fr) repeat(4,minmax(0,1fr)); gap: .75rem; align-items: end; }
.filter-selects { display: contents; }
.field { display: grid; gap: .3rem; font-size: .78rem; letter-spacing: .03em; }
.field.search { position: relative; }
.field.search svg { position: absolute; left: .8rem; bottom: .85rem; width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 1.8; pointer-events: none; }
.field.search input { padding-left: 2.5rem; }
.filters-toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; border: 1px solid #6b7d45; border-radius: 6px; background: #11160f; color: var(--text); font: 650 .78rem var(--mono); cursor: pointer; }
.filters-toggle b { background: var(--green); color: #192111; border-radius: 999px; padding: 0 .45rem; font-weight: 800; }
.filters-toggle[aria-expanded="true"] { border-color: var(--green); color: var(--green); }
.quick-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; }
.qlabel { font: 650 .75rem var(--mono); color: var(--dim); letter-spacing: .04em; margin-right: .1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .3rem .8rem; border: 1px solid #627447; border-radius: 999px; background: transparent; color: var(--text); font: 600 .78rem var(--mono); cursor: pointer; }
.chip:hover { background: #20281b; }
.chip[aria-pressed="true"] { background: #29371f; border-color: var(--green); color: var(--green); }
.chip.x::after { content: '\00d7'; font-size: 1.1rem; line-height: 1; color: var(--dim); }
.quick-row .sep { width: 1px; height: 22px; background: var(--edge); margin: 0 .2rem; }
.active-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; }
.active-chips:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 6px; }
.clear-all { margin-left: auto; }
.result-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sort { display: flex; align-items: center; gap: .6rem; font: .85rem var(--mono); color: var(--dim); font-weight: 400; }
.sort select { min-height: 40px; width: auto; padding-top: .3rem; padding-bottom: .3rem; }

/* Cards: type icon, signal bars on the stock tag, facts as pills */
.ico { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border: 1px solid #455437; border-radius: 8px; background: #151913; color: var(--green); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card .tag { gap: .45rem; border-radius: 5px; padding: .25rem .55rem; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.bars i { display: block; width: 3px; background: #ffffff33; border-radius: 1px; }
.bars i:nth-child(1) { height: 4px; }.bars i:nth-child(2) { height: 7px; }.bars i:nth-child(3) { height: 10px; }.bars i:nth-child(4) { height: 12px; }
.bars i.on { background: currentColor; }
.facts { display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin: 0; }
.fact { display: inline-flex; align-items: center; padding: .18rem .6rem; border: 1px solid #3d4a33; border-radius: 999px; color: #cdd5c6; font: .78rem var(--mono); }
.fact.us { color: var(--green); border-color: #53693a; }
.fact.eu { color: var(--amber); border-color: #655636; }
.fact.cn { color: var(--red); border-color: #71453b; }

@media (max-width: 700px) {
  .toolbar { gap: .7rem; }
  .seg { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .seg::-webkit-scrollbar { display: none; }
  .status-tab { flex: 0 0 auto; padding: .55rem .95rem; }
  .filter-row { grid-template-columns: minmax(0,1fr) auto; }
  .filters-toggle { display: inline-flex; }
  .filter-selects { display: none; grid-column: 1 / -1; gap: .7rem; padding: 1rem; background: var(--panel); border: 1px solid #455437; border-radius: 12px; }
  .filter-selects.open { display: grid; }
  .result-line { flex-wrap: wrap; }
}

/* Warehouse flags */
.flag { width: 20px; height: 13.3px; flex: none; margin-right: .45rem; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff2e; }
.group-head h3 { display: flex; align-items: center; }
.group-head h3 .flag { width: 28px; height: 18.7px; margin-right: .6rem; border-radius: 3px; }

/* My picks */
.titlerow { display: flex; justify-content: space-between; align-items: flex-start; gap: .7rem; }
.star { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid #6b7d45; border-radius: 8px; background: #11160f; color: var(--dim); cursor: pointer; }
.star svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.star:hover { border-color: var(--green); color: var(--green); }
.star[aria-pressed="true"] { background: #29371f; border-color: var(--green); color: var(--green); }
.star[aria-pressed="true"] svg { fill: currentColor; }
.picks-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; margin-left: auto; padding: .3rem .85rem; border: 1px solid #627447; border-radius: 999px; background: transparent; color: var(--text); font: 600 .78rem var(--mono); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.picks-btn svg { width: 16px; height: 16px; fill: var(--green); }
.picks-btn b { background: var(--green); color: #192111; border-radius: 999px; padding: 0 .45rem; font-weight: 800; }
.picks-btn:hover { background: #20281b; }
.picks-btn[aria-pressed="true"] { background: #29371f; border-color: var(--green); color: var(--green); }
.picks-mode .pricebox, .picks-mode #status-tabs, .picks-mode .filter-row, .picks-mode .result-line, .picks-mode [data-chip], .picks-mode #chip-sep, .picks-mode #active-chips, .picks-mode #reset, .picks-mode .qlabel { display: none !important; }
.dashhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.4rem; padding-bottom: .8rem; margin-bottom: .9rem; border-bottom: 1px solid var(--edge); }
.dashhead h2 { margin: 0; font-size: 1.7rem; line-height: 1.1; }
.dashhead p { margin: .3rem 0 0; color: var(--dim); font: .88rem var(--mono); }
.dashact { display: flex; flex-wrap: wrap; gap: .5rem; }
.sbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .9rem; border: 1px solid #627447; border-radius: 6px; background: transparent; color: var(--green); font: 650 .78rem var(--mono); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.sbtn:hover { background: #20281b; }
.sbtn.quiet2 { color: var(--dim); border-color: #3d4a33; }
.note2 { margin: 0 0 .9rem; padding: .7rem .9rem; border: 1px dashed #455437; border-radius: 8px; color: var(--dim); font-size: .88rem; }
.copy-status { min-height: 1.2em; margin: 0 0 .5rem; color: var(--green); font: .85rem var(--mono); overflow-wrap: anywhere; }
.change { display: block; margin: 0; padding: .5rem .7rem; border-radius: 6px; font: 700 .8rem/1.3 var(--mono); }
.change.up { background: #29371f; color: var(--green); border: 1px solid #53693a; }
.change.down { background: #29371f; color: var(--green); border: 1px solid #53693a; }
.change.rise { background: #37301d; color: var(--amber); border: 1px solid #655636; }
.change.out { background: #3a2420; color: var(--red); border: 1px solid #71453b; }
.hist { margin: 0; color: var(--dim); font: .76rem/1.4 var(--mono); }
.card.gone { opacity: .8; border-style: dashed; }
.empty-action { margin-top: .9rem; }
@media (max-width: 620px) { .picks-btn { margin-left: 0; } }

/* What's new and version stamp */
.wn { grid-column: 1 / -1; border: 1px solid var(--edge); border-radius: 8px; background: var(--panel); }
.wn > summary { list-style: none; display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; min-height: 48px; cursor: pointer; }
.wn > summary::-webkit-details-marker { display: none; }
.wn > summary:hover { background: #20281b; border-radius: 8px; }
.wn .ver { font: 800 .78rem var(--mono); letter-spacing: .06em; color: #192111; background: var(--green); border-radius: 4px; padding: .12rem .5rem; }
.wn .code { font: 700 .95rem var(--mono); color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.wn .sum { flex: 1; color: var(--dim); font-size: .9rem; }
.wn .chev { width: 18px; height: 18px; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.wn[open] .chev { transform: rotate(180deg); }
.wn .body { padding: .2rem 1rem 1rem; border-top: 1px solid var(--edge); }
.wn .rel { padding: .85rem 0; border-bottom: 1px solid var(--edge); }
.wn .rel-title, .wn .rel h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .5rem; font-size: 1rem; }
.wn .rel ul { margin: 0; padding-left: 1.1rem; font-size: .92rem; line-height: 1.55; }
.wn .rel li::marker { color: #627447; }
.wn .newtag { font: 800 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: .05rem .45rem; }
.wn .more { margin: .7rem 0 0; color: var(--dim); font: .8rem/1.5 var(--mono); }
.stamp { margin: 0; color: #8d987f; font: .72rem/1.5 var(--mono); letter-spacing: .03em; }
.stamp .call { color: var(--dim); }
@media (prefers-reduced-motion: reduce) { .wn .chev { transition: none; } }

/* Roll-up groups */
.count-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.fold { display: inline-flex; align-items: center; gap: .55rem; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-transform: none; letter-spacing: 0; cursor: pointer; text-align: left; }
.fold:hover { color: var(--green); }
.fold .chev { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.fold .chev svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.group.folded .fold .chev svg { transform: rotate(-90deg); }
.group.folded { margin-bottom: 1rem; }
.group.folded .group-head { margin-bottom: 0; border-bottom-color: transparent; }
@media (prefers-reduced-motion: reduce) { .fold .chev svg { transition: none; } }

/* Card titles: balance the lines and keep model names such as T1000-E together */
.card h3 { text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
.titlerow > div:first-child { flex: 1; min-width: 0; }

/* Admin: Add a listing by link */
.steps { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; font: 700 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.steps li { padding: .25rem .7rem; border: 1px solid var(--edge); border-radius: 999px; }
.steps li.on { background: #29371f; border-color: var(--green); color: var(--green); }
.urlrow { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.urlrow label { flex: 1 1 22rem; }
.addurl .hint { margin: 0; color: var(--dim); font-size: .85rem; }
.addurl .prod { display: grid; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--edge); border-radius: 8px; background: #11160f; }
.addurl .prod b { font-size: 1.05rem; }
.addurl .prod span { color: var(--dim); font: .82rem var(--mono); }
.anote { margin: 0; padding: .6rem .85rem; border: 1px dashed #455437; border-radius: 8px; color: var(--dim); font-size: .88rem; }
.anote b { color: var(--text); }
.anote.fail { border-color: #71453b; }
.varlist { display: grid; gap: .5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.varlist legend { padding: 0 0 .4rem; font-size: .87rem; color: var(--dim); font-weight: 650; }
.var { display: grid; grid-template-columns: auto 1fr auto auto; gap: .9rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--edge); border-radius: 8px; background: #11160f; font-size: .95rem; color: var(--text); font-weight: 400; cursor: pointer; }
.var:has(input:checked) { border-color: var(--green); background: #1b2616; }
.var.taken { opacity: .55; cursor: default; }
.var input { width: 18px; height: 18px; accent-color: #c2dc87; }
.var .p { font: 700 1rem var(--mono); }
.var .from-link { color: var(--green); font: 600 .74rem var(--mono); }
.stk { font: 700 .78rem var(--mono); padding: .15rem .55rem; border-radius: 4px; border: 1px solid; }
.stk.out { color: var(--red); border-color: #71453b; background: #3a2420; }
.stk.in { color: var(--green); border-color: #53693a; background: #29371f; }
.acts { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.why { font: .74rem/1.35 var(--mono); color: #8d987f; font-weight: 400; }
.why i { color: var(--green); font-style: normal; }
@media (max-width: 620px) { .var { grid-template-columns: auto 1fr; } .var .p, .var .stk { grid-column: 2; justify-self: start; } }

/* Price filter and card badges */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pricebox { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: .15rem .7rem; border: 1px solid #627447; border-radius: 999px; color: var(--green); font: 600 .78rem var(--mono); letter-spacing: .04em; }
.pricebox:focus-within { border-color: var(--green); outline: 2px solid var(--green); outline-offset: 2px; }
.pricebox .plabel { text-transform: uppercase; }
.pricebox input { width: 4.2rem; min-height: 28px; padding: .1rem .3rem; border: 0; border-bottom: 1px solid #455437; border-radius: 0; background: transparent; color: var(--text); font: 650 .85rem var(--mono); text-align: center; -moz-appearance: textfield; appearance: textfield; }
.pricebox input:focus { outline: none; border-bottom-color: var(--green); }
.pricebox input::-webkit-outer-spin-button, .pricebox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.badge { font: 800 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 4px; border: 1px solid; }
.badge.low { color: var(--green); border-color: var(--green); background: #1b2616; }
.badge.ltd { color: var(--amber); border-color: #655636; background: #37301d; }
.badge.mute { color: var(--dim); border-color: var(--edge); }

/* Price history page */
.pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .8rem 1.5rem; margin: 1.6rem 0 1rem; }
.pagehead h1 { margin: 0; font-size: 2rem; line-height: 1.1; }
.pagehead p { margin: .3rem 0 0; }
.pcontrols { display: flex; flex-wrap: wrap; gap: .7rem; }
.seg2 { display: inline-flex; border: 1px solid #627447; border-radius: 8px; overflow: hidden; }
.seg2 button { min-height: 40px; padding: 0 .9rem; border: 0; border-left: 1px solid #3d4a33; border-radius: 0; background: transparent; color: var(--dim); font: 700 .78rem var(--mono); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.seg2 button:first-child { border-left: 0; }
.seg2 button:hover { background: #20281b; }
.seg2 button[aria-pressed="true"] { background: #29371f; color: var(--green); }
.cbox { padding: 1rem; border: 1px solid var(--edge); border-radius: 8px; background: var(--panel); }
.cbox svg { display: block; max-width: 100%; height: auto; }
.emptyc { display: grid; place-items: center; min-height: 210px; border: 1px dashed #455437; border-radius: 8px; color: var(--dim); text-align: center; padding: 1.2rem; }
.emptyc strong { color: var(--text); }
.btnlink { display: inline-block; margin-top: .9rem; padding: .7rem 1.1rem; border-radius: 6px; text-decoration: none; }
.ptable { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .92rem; }
.ptable th { font: 700 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--edge); }
.ptable td { padding: .55rem .6rem; border-bottom: 1px solid var(--edge); vertical-align: middle; }
.ptable .num { font: 700 .95rem var(--mono); white-space: nowrap; }
.pick { display: inline-flex; align-items: center; gap: .6rem; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; text-transform: none; letter-spacing: 0; cursor: pointer; }
.pick:hover b { color: var(--green); }
.pick[aria-pressed="false"] b { font-weight: 500; color: var(--dim); }
.pick .dot { display: inline-block; width: 11px; height: 11px; flex: none; border-radius: 50%; }
.ptable .ext { display: block; margin-left: 1.3rem; color: var(--dim); font: .76rem var(--mono); }
.ptable .ext:hover { color: var(--green); }
nav a[aria-current="page"] { color: var(--green); }
@media (max-width: 620px) { .ptable .wide { display: none; } .pagehead h1 { font-size: 1.6rem; } }
#tablewrap { overflow-x: auto; }
.ptable .marks { display: block; margin: .35rem 0 0 1.3rem; }
@media (max-width: 620px) { .ptable th, .ptable td { padding: .5rem .35rem; } .ptable .num { font-size: .88rem; } }
.cbox + .note2 { margin-top: 1rem; }

/* ntfy phone alerts */
.ntfy-radio { color: var(--green); font: .78rem var(--mono); text-decoration: underline; text-underline-offset: .18em; }
/* Staging copy marker */
.staging-bar { padding: .45rem 1rem; background: #6b3b1c; color: #ffe9d1; text-align: center; font: 800 .78rem var(--mono); letter-spacing: .08em; }

/* Phone alerts page */
.guide { max-width: 880px; }
.guide .lead { margin: .6rem 0 0; max-width: 62ch; color: var(--text); font-size: 1.05rem; line-height: 1.55; }
.guide-steps { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 1rem; }
.guide-step { display: grid; gap: .8rem; margin-bottom: 1rem; }
.guide-steps .guide-step { margin-bottom: 0; }
.guide-step h2 { display: flex; align-items: center; gap: .7rem; margin: 0; font-size: 1.35rem; }
.guide-step p { margin: 0; line-height: 1.55; }
.guide-step ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; line-height: 1.55; }
.guide-step li::marker { color: #627447; }
.guide-step a { color: var(--green); text-underline-offset: .18em; }
.guide-step h2 .num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: var(--green); color: #192111; font: 800 .95rem var(--mono); }
.badges-row { margin: 0; padding-bottom: 0; border-bottom: 0; }
.topicbox { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .8rem; border: 1px solid #455437; border-radius: 8px; background: #11160f; }
.topic { flex: 1 1 16rem; min-width: 0; padding: .5rem .7rem; border-radius: 6px; background: #0b0f0a; color: var(--green); font: 700 1rem var(--mono); overflow-wrap: anywhere; user-select: all; }
.radio-box { border-color: var(--green); }
.radio-name { flex-basis: 100%; margin: 0; font-weight: 700; }
.sample { padding: .9rem 1rem; border: 1px solid var(--edge); border-radius: 12px; background: #11160f; max-width: 34rem; }
.sample p { margin: 0; }
.sample-top { color: var(--dim); font: .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.sample-app { color: var(--green); font-weight: 800; }
.sample-title { margin-top: .35rem !important; font-weight: 700; }
.sample-body { margin-top: .2rem !important; color: var(--dim); font-size: .9rem; }
@media (max-width: 620px) { .guide .lead { font-size: 1rem; } .topic { flex-basis: 100%; } }
.guide-step .copy-status:empty { display: none; }

/* Plain-list link and the footer labels that are no longer headings */
.plain-link { margin: 0 0 .9rem; font-size: .9rem; }
.plain-link a { color: var(--green); text-underline-offset: .18em; }
p.footer-head { display: block; }

/* Plain radio list */
.rgroup { margin: 1.4rem 0 2rem; }
.rgroup h2 { margin: 0 0 .2rem; font-size: 1.35rem; }
.rtable-wrap { position: relative; overflow-x: auto; margin-top: .6rem; border: 1px solid var(--edge); border-radius: 8px; }
.rtable { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: .92rem; }
.rtable th, .rtable td { padding: .6rem .7rem; border-bottom: 1px solid var(--edge); text-align: left; vertical-align: top; }
.rtable thead th { position: sticky; top: 0; background: var(--panel); font: 700 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.rtable tbody th { font-weight: 700; }
.rtable small { display: block; margin-top: .15rem; color: var(--dim); font: .76rem var(--mono); font-weight: 400; }
.rtable .num { font: 700 .95rem var(--mono); white-space: nowrap; }
.rtable a { color: var(--green); text-underline-offset: .18em; }
.rtable tr:last-child > * { border-bottom: 0; }

/* Price history: reserve the space the chart and table fill, so the footer does not jump when they load */
#chart { min-height: 9rem; }
#tablewrap { min-height: 14rem; }
@media (min-width: 700px) { #chart { min-height: 22rem; } }

@media (max-width: 700px) { #subtitle { min-height: 3.3em; } #tablewrap { min-height: 21rem; } }

/* Per-radio pages */
.crumbs { margin: 1.2rem 0 0; color: var(--dim); font: .82rem var(--mono); }
.crumbs a { color: var(--green); text-underline-offset: .18em; }
.rnote { margin: .6rem 0 0; color: var(--dim); }
.rfigure { margin: 0; }
.rsvg { display: block; width: 100%; max-width: 720px; height: auto; }
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .8rem 1.4rem; margin: 0; }
.facts-list div { padding-bottom: .6rem; border-bottom: 1px solid var(--edge); }
.facts-list dt { color: var(--dim); font: 700 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.facts-list dd { margin: .2rem 0 0; font-weight: 600; }
.rlist { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; line-height: 1.5; }
.card .details { display: block; margin-top: -.2rem; color: var(--green); font: .78rem var(--mono); text-underline-offset: .18em; }

/* Text wrapping: model numbers and short table cells stay whole; headings balance; paragraphs avoid a lone last word */
.nb { white-space: nowrap; }
.rtable .nw, .rtable .nw a { white-space: nowrap; }
.rwide { min-width: 60rem; }
.rwide tbody th[scope="row"] { min-width: 16rem; text-wrap: balance; }
.guide h1, .guide h2 { text-wrap: balance; }
.guide p, .guide li, .rtable small { text-wrap: pretty; }

/* Notify me block on a radio page */
.notify .topic-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0 .8rem; padding: .6rem .8rem; background: var(--panel-deep); border: 1px dashed var(--edge); }
.notify .topic-line code { font: .9rem var(--mono); color: var(--green); overflow-wrap: anywhere; }
.notify-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.notify-steps { margin: .9rem 0 0; padding-left: 1.2rem; }
.notify-note { margin-top: .8rem; font-size: .88rem; }
.notify-actions .btnlink { margin-top: 0; }

/* Category switch (Radios / Antennas) */
.cat-tab { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .55rem .7rem; border: 0; border-right: 1px solid var(--edge); border-radius: 0; background: transparent; color: var(--text); font: 650 .78rem var(--mono); white-space: nowrap; cursor: pointer; }
.cat-tab:last-child { border-right: 0; }
.cat-tab:hover { background: #20281b; }
.cat-tab.active { background: #29371f; color: var(--green); box-shadow: inset 0 -3px 0 var(--green); }
.cat-tab:focus-visible { outline: 2px solid var(--green); outline-offset: -4px; }
.cat-tab .cat-count { padding: .05rem .4rem; border-radius: 3px; background: #0000003a; color: var(--dim); font-size: .82rem; }
.cat-tab.active .cat-count { color: var(--green); }
.cat-seg { margin-bottom: .8rem; max-width: 26rem; }
.ant-warn { margin: 0 0 .9rem; padding: .7rem .9rem; background: var(--panel-deep); border: 1px dashed var(--amber); font-size: .92rem; }
.ant-warn b { color: var(--amber); }
.specs { display: flex; flex-wrap: wrap; gap: .35rem .5rem; margin: 0; }
/* A primary button inside a panel keeps its dark label (".guide-step a" would turn it green on green) */
.guide-step a.primary { color: #192111; text-decoration: none; }

/* Admin listing filters */
.admin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .8rem; }
.admin-filters .sep { width: 1px; align-self: stretch; margin: 0 .3rem; background: var(--edge); }
.admin-filters .chip .n { margin-left: .2rem; color: var(--dim); font-weight: 400; }
.admin-filters .chip[aria-pressed="true"] .n { color: var(--green); }

/* Review fixes */
#list:focus { outline: none; }
.picks-mode .cat-seg, .picks-mode #ant-warn { display: none; }
nav.crumbs { display: block; gap: 0; }
.pcontrols .btnlink { margin-top: 0; }
.chip.x { text-transform: none; letter-spacing: 0; }

/* Group directory */
.gnotice { margin: 0 0 1.2rem; padding: .8rem 1rem; background: var(--panel-deep); border: 1px dashed var(--amber); font-size: .95rem; }
.gnotice strong { color: var(--amber); }
.gfilters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; align-items: end; margin-top: .8rem; }
.gfilters .field span { display: block; margin-bottom: .2rem; font: .72rem var(--mono); color: var(--dim); text-transform: uppercase; }
.gfilters select, .gfilters input[type="search"] { width: 100%; padding: .55rem; background: var(--panel-deep); color: var(--text); border: 1px solid var(--edge); }
.gfilters .btnlink, .gfilters .primary { margin-top: 0; }
.gcheck { display: flex; align-items: center; gap: .5rem; min-height: 42px; }
.usmap { display: block; width: 100%; max-width: 820px; height: auto; margin: 1rem 0; }
.usmap .tile { stroke: var(--edge); stroke-width: 1; }
.usmap .l0 { fill: #1a1f17; }
.usmap .l1 { fill: #2b3a22; }
.usmap .l2 { fill: #3f5a2d; }
.usmap .l3 { fill: #5f8a3c; }
.usmap .l4 { fill: #86b04c; }
.usmap .on { stroke: var(--text); stroke-width: 3; }
.usmap text { pointer-events: none; font-family: var(--mono); fill: var(--text); }
.usmap .code { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.usmap .num { font-size: 15px; font-weight: 700; }
.usmap .l4 + text, .usmap .l4 ~ text { fill: #10150c; }
.usmap .empty text { fill: var(--dim); opacity: .55; }
.usmap a:hover .tile, .usmap a:focus-visible .tile { stroke: var(--green); stroke-width: 3; }
.usmap a:focus-visible { outline: none; }
.gstates { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .3rem 1rem; margin: .5rem 0 0; padding: 0; list-style: none; font-size: .92rem; }
.gstate { margin: 1.6rem 0 .6rem; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.gcard { display: flex; flex-direction: column; gap: .5rem; min-width: 0; padding: 1rem; background: var(--panel); border: 1px solid var(--edge); border-radius: 8px; }
.gtop { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; font: .75rem var(--mono); color: var(--dim); }
.gcard h3 { font-size: 1.15rem; line-height: 1.2; overflow-wrap: anywhere; text-wrap: balance; }
.gwhere, .gcov { margin: 0; font-size: .9rem; color: var(--dim); }
.gflag { align-self: flex-start; margin: 0; padding: .05rem .45rem; border: 1px solid var(--amber); border-radius: 3px; color: var(--amber); font: 700 .68rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.glinks { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--edge); }
.glinks .btnlink { margin-top: 0; padding: .45rem .8rem; }
.glinks .off { color: var(--dim); border-style: dashed; cursor: help; }
.proto { padding: .1rem .55rem; border: 1px solid var(--olive); border-radius: 999px; color: var(--green); font: 700 .68rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.proto.meshcore { border-color: #7e9fc4; color: #b4cdea; }
.proto.both { border-color: var(--amber); color: var(--amber); }

#groups > h2 { margin: 0 0 .9rem; }

/* Admin sections and the group form */
.admin-tabs { display: flex; gap: .4rem; margin: 0 0 1rem; border-bottom: 1px solid var(--edge); }
.admin-tabs a { padding: .55rem 1rem; border: 1px solid transparent; border-bottom: 0; color: var(--dim); text-decoration: none; font: 700 .8rem var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.admin-tabs a[aria-current="page"] { background: var(--panel); border-color: var(--edge); color: var(--green); }
.states-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .2rem .8rem; margin: 1rem 0 0; padding: .8rem; border: 1px solid var(--edge); }
.states-grid legend { padding: 0 .4rem; color: var(--dim); font: .8rem var(--mono); text-transform: uppercase; }
.states-grid label { margin: 0; }
