:root {
  /* Default dark palette */
  --bg: #070707;
  --bg-elevated: #111111;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --accent: #c9eb10;
  --accent-hover: #d9f74a;
  --accent-ink: #0a0a0a;
  --hot: #fd005b;
  --hot-glow: rgba(253, 0, 91, 0.35);
  --danger: #ff5c7a;
  --ok: #c9eb10;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  --radius: 6px;
  --content-width: 90%;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(253, 0, 91, 0.12), transparent 55%),
    radial-gradient(800px 380px at 88% 0%, rgba(201, 235, 16, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.shell {
  width: var(--content-width);
  max-width: none;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.site-header-inner {
  width: var(--content-width);
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.1rem;
}
.brand {
  display: flex;
  gap: .7rem;
  align-items: center;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--accent), #9bb80c);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 4px 14px rgba(201, 235, 16, .25);
}
.nav { display: flex; gap: 1rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); }

.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
}
.panel + .panel { margin-top: 1rem; }

h1, h2, h3 { margin-top: 0; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 1rem; }

label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .35rem; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], select, textarea {
  width: 100%;
  background: #0d1524;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .7rem .85rem;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(201, 235, 16, .65);
  box-shadow: 0 0 0 3px rgba(201, 235, 16, .12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: 6px;
  padding: .7rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent);
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  text-decoration: none;
}
a.btn { color: var(--accent-ink); }
a.btn:hover { color: var(--accent-ink); }
.btn.secondary,
a.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  box-shadow: none;
}
.btn.secondary:hover,
a.btn.secondary:hover {
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 55%, #fff);
  background: rgba(255, 255, 255, 0.1);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.banner {
  border-radius: 10px;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  background: #101827;
}
.banner.ok { border-color: rgba(52,211,153,.4); color: var(--ok); }
.banner.err { border-color: rgba(248,113,113,.4); color: var(--danger); }
.banner.warn { border-color: rgba(251,191,36,.4); color: #fbbf24; }

.steps {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.step {
  font-size: .8rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .7rem;
}
.step.active {
  color: white;
  background: rgba(59,130,246,.2);
  border-color: rgba(59,130,246,.5);
}
.step.done { color: var(--ok); }

.check-table { width: 100%; border-collapse: collapse; }
.check-table th, .check-table td {
  text-align: left;
  padding: .55rem .4rem;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.ok-dot { color: var(--ok); }
.bad-dot { color: var(--danger); }

.pw-meter {
  margin-top: .45rem;
  height: 8px;
  border-radius: 999px;
  background: #0a1220;
  border: 1px solid var(--border);
  overflow: hidden;
}
.pw-meter-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width .2s ease, background-color .2s ease;
  background: #334155;
}
.pw-meter-bar.lvl-0 { width: 0; background: #334155; }
.pw-meter-bar.lvl-weak { background: #f87171; }
.pw-meter-bar.lvl-ok { background: #fbbf24; }
.pw-meter-bar.lvl-strong { background: #34d399; }
.pw-hint { margin: .35rem 0 0; font-size: .82rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 800px) {
  :root { --content-width: 90%; }
  .grid-2 { grid-template-columns: 1fr; }
}

.qr-box {
  display: inline-block;
  padding: .75rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .55rem;
  background: #0d1524;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}
.editor-toolbar button, .editor-toolbar select {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .35rem .55rem;
  cursor: pointer;
  width: auto;
}
.editor-toolbar button:hover { border-color: rgba(59,130,246,.5); }

.editor-canvas {
  min-height: 280px;
  padding: 1rem;
  background: #0d1524;
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  outline: none;
  line-height: 1.55;
}
.editor-canvas:focus {
  border-color: rgba(59,130,246,.7);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.editor-canvas img { max-width: 100%; height: auto; border-radius: 8px; }
.editor-canvas .youtube-embed img.yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin: 0;
  max-width: none;
}
.editor-canvas .youtube-embed .yt-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.3);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  padding-left: 3px;
  pointer-events: none;
  z-index: 2;
}
.editor-canvas .youtube-embed .yt-label {
  position: absolute;
  left: .6rem;
  bottom: .55rem;
  z-index: 2;
  padding: .2rem .5rem;
  border-radius: 6px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: .75rem;
  text-decoration: none;
}

.post-body { line-height: 1.65; font-size: 1.05rem; }
.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
/* Inline post thumbs — sit side-by-side, NOT auto-centered */
.post-body img.post-img,
.post-body img.post-img--inline,
.post-body img[src^="/uploads/"] {
  width: 300px;
  max-width: min(300px, 100%);
  height: 170px;
  object-fit: cover;
  display: inline-block;
  vertical-align: top;
  margin: .4rem .55rem .4rem 0;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  background: #0a0a0a;
}
.post-body img.img-align-left {
  float: left;
  margin: .35rem 1rem .75rem 0;
}
.post-body img.img-align-right {
  float: right;
  margin: .35rem 0 .75rem 1rem;
}
.post-body img.img-align-center {
  display: block;
  float: none;
  margin: .85rem auto;
  clear: both;
}
.post-body p.img-row {
  margin: .55rem 0;
  line-height: 0;
}
.post-body p.img-row::after {
  content: "";
  display: table;
  clear: both;
}
.post-body h2, .post-body h3, .post-body h4 {
  margin: 1.4rem 0 .6rem;
  line-height: 1.25;
}

/* YouTube embed — left-aligned by default (use .img-align-center to center) */
.youtube-embed {
  position: relative;
  width: min(100%, 672px);
  max-width: 672px;
  margin: 1.1rem 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.youtube-embed.img-align-center {
  margin-left: auto;
  margin-right: auto;
}
.youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.editor-canvas .youtube-embed,
.editor-canvas .youtube-embed--sm {
  width: min(100%, 672px);
  max-width: 672px;
}
.facebook-embed {
  width: min(100%, 500px);
  max-width: 500px;
  margin: 1.1rem 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .45);
  padding: .65rem .75rem;
}
.facebook-embed iframe { display: block; width: 100%; border: 0; }
/* Phone-ish Instagram frame on dark site chrome (Meta widget itself stays light) */
.instagram-embed,
.instagram-embed--compact {
  width: min(100%, 400px);
  max-width: 400px;
  margin: 1.25rem auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0a;
  padding: .55rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.instagram-embed iframe,
.instagram-embed .instagram-media {
  margin: 0 auto !important;
  max-width: 100% !important;
  border-radius: 10px;
  overflow: hidden;
}
.twitch-embed {
  position: relative;
  width: min(100%, 672px);
  max-width: 672px;
  margin: 1.1rem 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #0e0e10;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.twitch-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.twitch-embed-link {
  position: absolute;
  left: .55rem;
  bottom: .45rem;
  z-index: 2;
  margin: 0;
  padding: .15rem .45rem;
  border-radius: 5px;
  background: rgba(0, 0, 0, .72);
  font-size: .72rem;
}
.twitch-embed-link a {
  color: #c4b5fd;
  text-decoration: none;
}
.rich-embed {
  width: min(100%, 640px);
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #0a0a0a;
}
.rich-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  background: #000;
}
.rich-embed-link {
  margin: .45rem .75rem .65rem;
  font-size: .78rem;
}
.rich-embed-link a {
  color: var(--accent);
  text-decoration: none;
}
.editor-canvas .facebook-embed,
.editor-canvas .instagram-embed,
.editor-canvas .twitch-embed,
.editor-canvas .rich-embed {
  padding: .5rem .65rem;
  font-size: .9rem;
  aspect-ratio: auto;
  min-height: 0;
}
.acp-preview-content .twitch-embed {
  position: relative;
  width: min(100%, 672px);
  aspect-ratio: 16 / 9;
  margin: 1rem auto;
  border-radius: 10px;
  overflow: hidden;
  background: #0e0e10;
  border: 1px solid var(--border);
}
.acp-preview-content .twitch-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.post-card-placeholder--ig {
  background:
    radial-gradient(500px 220px at 30% 20%, rgba(225, 48, 108, .35), transparent 55%),
    radial-gradient(420px 200px at 80% 80%, rgba(131, 58, 180, .3), transparent 50%),
    linear-gradient(145deg, #1a1020, #0a0a0a);
}
.post-card-placeholder--twitch {
  background:
    radial-gradient(520px 240px at 28% 18%, rgba(145, 70, 255, .45), transparent 55%),
    radial-gradient(400px 200px at 85% 85%, rgba(100, 65, 165, .35), transparent 50%),
    linear-gradient(145deg, #1a1028, #0a0a0f);
}

/* Feed + post containers */
.feed-hero { margin-bottom: 1.25rem; }
.feed-hero-title {
  margin: 0 0 .25rem;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}
.feed-hero-sub { margin: 0; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.tag-pill {
  display: inline-block;
  padding: .28rem .7rem;
  border-radius: 999px;
  background: #1a2740;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e5e7eb;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tag-pill--muted {
  opacity: .7;
}

/* HOME: each post = container + black meta/tags footer */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feed-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
/* Accent cap — same color as the top bar, sits flush on the card */
.feed-item::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  height: 4px;
  background: var(--accent);
}
.feed-item:hover {
  border-color: rgba(59,130,246,.35);
  transform: translateY(-1px);
}
.feed-item-main {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.15rem;
  align-items: stretch;
  padding: .9rem;
  flex: 1 1 auto;
  min-width: 0;
  background: linear-gradient(165deg, #121a26 0%, #0b111a 55%, #070b12 100%);
}
.feed-item-media {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1220;
  min-height: 130px;
  align-self: start;
}
.feed-item-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.feed-item-date {
  position: absolute;
  left: .45rem;
  bottom: .45rem;
  padding: .2rem .45rem;
  border-radius: 6px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.feed-item-content {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 0;
  padding: .15rem .25rem .15rem 0;
}
.feed-item-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.feed-item-title a { color: var(--text); }
.feed-item-title a:hover { color: var(--accent-hover); }
.feed-item-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}
.feed-item-foot {
  margin-top: auto;
  width: 100%;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.88);
  padding: .55rem .9rem .65rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.feed-item-meta {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--muted);
}
.feed-item-meta strong {
  color: #fff;
  font-weight: 600;
}
.feed-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.feed-item-tags .tag-pill {
  font-size: .65rem;
  padding: .18rem .55rem;
}

.post-card-placeholder {
  width: 100%;
  height: 140px;
  background:
    radial-gradient(600px 200px at 30% 20%, rgba(59,130,246,.25), transparent 60%),
    linear-gradient(145deg, #121a2b, #0b1220);
}
.post-card-play {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  border: 1px solid rgba(255,255,255,.25);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .8rem;
  padding-left: 3px;
}

@media (max-width: 720px) {
  .feed-item-main {
    grid-template-columns: 1fr;
  }
  .feed-item-media img,
  .post-card-placeholder {
    height: 180px;
  }
}

/* POST VIEW: overall shell + sub-containers */
.post-shell {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  width: 100%;
}
.post-block {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.35rem;
}
.post-block--tags { padding-top: .9rem; padding-bottom: .9rem; }
.post-block--header { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.post-block--media { padding: .85rem; }
.post-block--body { padding: 1rem 1.1rem 1.2rem; }
.post-block--nav { padding: .9rem 1.25rem; }

/* Editor-style cut-out for post body (+ optional footer signature) */
.post-cutout {
  background: #0d1524;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  padding: 1.15rem 1.25rem 1.25rem;
  min-height: 160px;
}
.post-cutout--header {
  min-height: 0;
  padding: 1.1rem 1.25rem 1.15rem;
}
.post-cutout--header .article-title-row {
  margin: 0 0 .9rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.post-cutout--header .article-title {
  margin: 0;
  border: 0;
  padding: 0;
}
.post-footer-sig {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .92rem;
  line-height: 1.55;
  color: var(--muted);
}
.footer-label {
  font-weight: 700;
}
.footer-label--green { color: #34d399; }
.footer-label--red { color: #f87171; }

.editor-canvas--footer {
  min-height: 110px;
  border-radius: 0 0 10px 10px;
}

/* Admin tag / icon pickers */
.tag-pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .35rem;
}
.tag-pick {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #0d1524;
  cursor: pointer;
  font-size: .88rem;
}
.tag-pick input { accent-color: var(--accent); }
.tag-rename-form input[type=text] { margin-bottom: 0; }

.icon-pick-grid,
.icon-admin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.icon-pick {
  position: relative;
  display: block;
  width: 100px;
  cursor: pointer;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  background: #0d1524;
}
.icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pick img { display: block; width: 100px; height: 100px; object-fit: cover; }
.icon-pick-none {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  color: var(--muted);
  font-size: .85rem;
}
.icon-pick.is-selected,
.icon-pick:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59,130,246,.25);
}
.icon-admin-card {
  text-align: center;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0d1524;
}
.icon-admin-card img {
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* Category stick-on: text pill on content images */
.cat-stickon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(12, 14, 18, .82);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.cat-stickon--muted {
  border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .55);
  background: rgba(12, 14, 18, .55);
}
.cat-stickon--lg {
  font-size: .92rem;
  padding: .42rem .85rem;
}
.cat-stickon--on-media {
  position: absolute;
  top: .55rem;
  left: .55rem;
  z-index: 3;
  pointer-events: none;
}
.cat-stickon--preview {
  opacity: .9;
}
.content-cover {
  position: relative;
  margin: 0 0 1rem;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1220;
}
.content-cover img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}
.cat-pill-pick {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.cat-pill-option {
  cursor: pointer;
  margin: 0;
}
.cat-pill-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cat-pill-option .cat-stickon {
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cat-pill-option.is-selected .cat-stickon,
.cat-pill-option:has(input:checked) .cat-stickon {
  border-color: var(--accent, #ffcc00);
  box-shadow: 0 0 0 1px var(--accent, #ffcc00), 0 2px 10px rgba(0, 0, 0, .35);
}
.cat-admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cat-admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}
.cat-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.cat-admin-rename {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.cat-admin-rename input {
  min-width: 10rem;
}
.cover-pick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .75rem;
}
.cover-pick-preview {
  width: 160px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1220;
  flex-shrink: 0;
}
.cover-pick-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-pick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
/* Legacy image badges kept for old admin previews if any */
.cat-badge,
.cat-preview {
  display: none;
}
.article-title-main { min-width: 0; flex: 1; }
.article-title-main .article-title { margin: 0 0 .55rem; }
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .65rem;
  margin-top: .55rem;
}
.star-row {
  display: inline-flex;
  gap: .1rem;
  color: rgba(255, 255, 255, 0.22);
  font-size: 1.05rem;
  letter-spacing: .02em;
  line-height: 1;
}
.star-row .star.is-on { color: var(--accent); }
.star-row--sm { font-size: .95rem; }
.feed-rating {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.rating-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.rating-form { display: grid; gap: .65rem; }
.rating-form-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
/* Interactive stars: rendered 5→1, hover/select fills visually left-to-right */
.star-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: .15rem;
  justify-content: flex-end;
}
.star-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.star-input label {
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  margin: 0;
  transition: color .12s ease, transform .12s ease;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--accent);
}
.star-input label:hover { transform: scale(1.08); }

.feed-item-title .cat-badge--feed {
  width: 72px;
}
.feed-item-title .cat-badge--feed img {
  width: 72px;
  height: 72px;
}
.feed-item-title .cat-badge--feed .cat-label {
  height: 22px;
  font-size: .62rem;
}
.article-title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.article-title-row .article-title {
  flex: 1;
}

/* ========== Admin ACP (dual rail) ========== */
/* Match public yellow accent (#ffcc00) — not the ET lime root tokens */
.admin-body {
  --accent: #ffcc00;
  --accent-hover: #ffe066;
  --accent-ink: #111820;
  --ok: #ffcc00;
  min-height: 100vh;
  background: #070b14;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
}
.admin-body .banner.ok {
  border-color: rgba(255, 204, 0, 0.4);
  color: var(--ok);
}
.admin-body .acp-badge--ok {
  background: rgba(255, 204, 0, 0.18);
  color: var(--ok);
}
.admin-body .acp-side-nav a.is-active,
.admin-body .acp-rail-link.is-active {
  color: var(--accent);
}
.admin-body .acp-chip:not(.acp-chip--muted) {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.acp-layout {
  display: grid;
  grid-template-columns: 72px 220px 1fr;
  min-height: 100vh;
}
.acp-rail {
  background: #05080f;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .75rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 8;
}
.acp-rail-brand { margin-bottom: .75rem; }
.acp-rail-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  width: 100%;
  padding: 0 .45rem;
  flex: 1;
}
.acp-rail-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .55rem .25rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: .65rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.acp-rail-link:hover,
.acp-rail-link.is-active {
  background: rgba(59,130,246,.18);
  color: #fff;
}
.acp-rail-ico { font-size: 1.1rem; line-height: 1; }
.acp-side {
  background: linear-gradient(180deg, #0c1422, #0a101c);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.acp-side-head {
  padding: 1.1rem 1rem .85rem;
  border-bottom: 1px solid var(--border);
}
.acp-side-app {
  font-weight: 700;
  font-size: .95rem;
}
.acp-side-section {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .2rem;
}
.acp-side-nav {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .85rem .65rem;
  flex: 1;
}
.acp-side-group {
  margin: .65rem .5rem .25rem;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
}
.acp-side-nav a {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  text-decoration: none;
  padding: .45rem .65rem;
  border-radius: 8px;
  font-size: .92rem;
}
.acp-side-nav a:hover,
.acp-side-nav a.is-active {
  background: rgba(201, 235, 16, .12);
  color: #fff;
}
.acp-ico {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  opacity: .85;
}
.acp-side-nav a.is-active .acp-ico,
.acp-side-nav a:hover .acp-ico {
  opacity: 1;
}
.acp-ico--tab {
  width: .95rem;
  height: .95rem;
}
.acp-side-foot {
  border-top: 1px solid var(--border);
  padding: .85rem;
}
.acp-side-user {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .55rem;
}
.acp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #0b1220;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.acp-side-user-name { font-weight: 600; font-size: .9rem; }
.acp-side-user-role { font-size: .72rem; color: var(--muted); }
.acp-logout {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .4rem .55rem;
  cursor: pointer;
  font: inherit;
}
.acp-logout:hover { border-color: rgba(59,130,246,.5); }
.acp-main { min-width: 0; background: radial-gradient(900px 420px at 80% -10%, #152038 0%, #070b14 50%); }
.acp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, .88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.acp-crumbs {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--muted);
  font-size: .9rem;
}
.acp-crumb-sep { opacity: .5; }
.acp-crumb-current { color: var(--text); font-weight: 600; }
.acp-topbar-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.acp-chip {
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(59,130,246,.2);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}
.acp-chip--muted {
  background: rgba(148,163,184,.12);
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
}
.acp-content {
  padding: 1.35rem 1.75rem 2.5rem;
  /* ~40% wider than the old 1180px cap — rails stay fixed, main pane uses the rest */
  width: min(100%, 1650px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.acp-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.acp-hero-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -.02em;
}
.acp-hero-sub { margin: .35rem 0 0; }
.acp-hero-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.acp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.acp-kpi {
  background: linear-gradient(165deg, #152038, #101826);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
}
.acp-kpi--warn { border-color: rgba(248,113,113,.35); }
.acp-kpi-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.acp-kpi-value {
  font-size: 1.85rem;
  font-weight: 700;
  margin: .25rem 0;
  letter-spacing: -.03em;
}
.acp-kpi-meta { font-size: .82rem; }
.acp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.acp-card-title {
  margin: 0;
  font-size: 1.05rem;
}
.acp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.acp-checklist li {
  padding: .45rem .6rem;
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  font-size: .9rem;
}
.acp-checklist .is-ok { border-color: rgba(52,211,153,.28); }
.acp-checklist .is-bad { border-color: rgba(248,113,113,.4); }
.acp-checklist .is-warn { border-color: rgba(251,191,36,.35); }
.acp-feed-row {
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.acp-feed-snip { margin-top: .2rem; font-size: .85rem; }
.acp-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.acp-page-title {
  margin: 0 0 .55rem;
  font-size: 1.55rem;
  letter-spacing: -.02em;
}
.acp-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  font-size: .92rem;
}
.acp-status-tabs a { color: var(--muted); }
.acp-status-tabs a.is-active { color: #fff; font-weight: 600; }
.acp-status-tabs span { color: #64748b; font-weight: 500; }
.acp-list-panel { padding-top: 1rem; }
.acp-list-tools {
  display: flex;
  gap: .5rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.acp-search {
  flex: 1;
  min-width: 180px;
  background: #0b1220;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .5rem .7rem;
  font: inherit;
}
.acp-bulk-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.acp-select {
  background: #0b1220;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .45rem .6rem;
  font: inherit;
}
.acp-item-count { margin-left: auto; font-size: .85rem; }
.acp-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.acp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.acp-table th,
.acp-table td {
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.acp-table th {
  background: rgba(15, 23, 42, .9);
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.acp-table tbody tr:hover { background: rgba(59,130,246,.06); }
.acp-settings {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.acp-settings-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: .3rem;
  padding: .35rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, .55);
}
.acp-settings-tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
}
.acp-settings-tab:hover { color: #fff; background: rgba(255,255,255,.04); }
.acp-settings-tab.is-active {
  color: #fff;
  background: rgba(59, 130, 246, .18);
  border-color: rgba(59, 130, 246, .35);
}
.acp-settings-tab.is-active .acp-ico { opacity: 1; }
.acp-settings-panel { min-height: 18rem; }
.acp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: min(100%, 72rem);
}
.acp-subbox {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 23, 42, .4);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.acp-subbox legend {
  padding: 0 .4rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.acp-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.acp-switch-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.acp-switch {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8, 14, 26, .55);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  user-select: none;
}
.acp-switch:hover {
  border-color: rgba(255, 204, 0, .28);
  background: rgba(15, 23, 42, .72);
}
.acp-switch--compact {
  padding: .55rem .75rem;
  gap: .65rem;
}
.acp-switch--compact .acp-switch-copy strong {
  font-size: .85rem;
}
.acp-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.acp-switch-ui {
  width: 2.7rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, .35);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
  position: relative;
  flex-shrink: 0;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.acp-switch-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #e8eef7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  transition: transform .16s ease, background .16s ease;
}
.acp-switch input:checked + .acp-switch-ui {
  background: rgba(255, 204, 0, .32);
  border-color: rgba(255, 204, 0, .65);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 1px rgba(255, 204, 0, .12);
}
.acp-switch input:checked + .acp-switch-ui::after {
  transform: translateX(1.2rem);
  background: #ffcc00;
  box-shadow: 0 1px 4px rgba(255, 204, 0, .35);
}
.acp-switch input:focus-visible + .acp-switch-ui {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.acp-switch-copy {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.acp-switch-copy strong {
  color: #fff;
  font-size: .95rem;
  font-weight: 650;
}
.acp-switch-copy small {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}
.acp-details > summary {
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #94a3b8;
  list-style: none;
  margin: 0 0 .75rem;
}
.acp-details > summary::-webkit-details-marker { display: none; }
.acp-details[open] > summary { margin-bottom: .85rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.acp-field-help {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.4;
}
.acp-input,
.acp-form input.acp-input,
.acp-form select.acp-input,
.acp-form textarea.acp-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #0b1220;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .55rem .75rem;
  font: inherit;
}
.acp-input--mono { font-family: ui-monospace, monospace; font-size: .8rem; }
.acp-form .req { color: #f87171; }
.acp-form-actions { margin-top: .25rem; }
.acp-admin-path-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: nowrap;
}
.acp-admin-path-row .acp-input { flex: 1; min-width: 0; }
.acp-prefix { flex-shrink: 0; white-space: nowrap; font-size: .9rem; }
.avatar {
  border-radius: 50%;
  background: #0b1220;
  border: 1px solid var(--border);
  object-fit: cover;
  vertical-align: middle;
}
.avatar--sm { width: 28px; height: 28px; }
.avatar--md { width: 40px; height: 40px; }
.avatar--lg { width: 56px; height: 56px; }
.comment-head {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.profile-hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.oauth-block {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: .25rem;
}
.oauth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.oauth-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.oauth-btn {
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}
.oauth-btn--steam {
  background: #171a21;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.12);
}
.oauth-btn--steam:hover { background: #2a475e; color: #fff !important; }
.oauth-btn--discord {
  background: #5865f2;
  color: #fff !important;
  border: 1px solid transparent;
}
.oauth-btn--discord:hover { filter: brightness(1.08); color: #fff !important; }
@media (max-width: 420px) {
  .oauth-btns { grid-template-columns: 1fr; }
}
.author-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 204, 0, .45);
  text-underline-offset: 2px;
}
.author-link:hover,
.author-link:hover strong {
  color: var(--accent);
  text-decoration: underline;
}
.profile-panel {
  max-width: 720px;
}
.profile-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.profile-link-list,
.profile-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.profile-link-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem .85rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--border);
}
.profile-link-list li:last-child,
.profile-comment-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.profile-link-list a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.profile-link-list a:hover { color: var(--accent); }
.profile-link-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--muted);
}
.profile-comment-list li {
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.profile-comment-body {
  margin: 0 0 .35rem;
  color: var(--text);
  line-height: 1.45;
}
.profile-comment-meta {
  margin: 0;
  font-size: .82rem;
}
.profile-comment-meta a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.profile-comment-meta a:hover { color: var(--accent); }
.acp-perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: .45rem .75rem;
  margin: .35rem 0 0;
}
.acp-delete-box {
  border: 1px solid rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .06);
  border-radius: 10px;
  padding: 1rem;
}
@media (max-width: 720px) {
  .acp-settings-tab span { display: none; }
  .acp-settings-tab { padding: .55rem; }
  .acp-settings-tab .acp-ico { width: 1.1rem; height: 1.1rem; }
}
.acp-col-check { width: 2.2rem; }
.acp-row-main {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-width: 0;
}
.acp-row-thumb {
  flex: 0 0 auto;
  display: block;
  width: 72px;
  height: 48px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b1220;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .28);
}
.acp-row-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acp-row-thumb-ph {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(80px 40px at 30% 30%, rgba(59, 130, 246, .28), transparent 65%),
    linear-gradient(145deg, #151c2c, #0a101c);
}
.acp-row-copy { min-width: 0; flex: 1 1 auto; }
.acp-row-title { font-weight: 600; color: #fff; }
.acp-row-actions {
  margin-top: .55rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.acp-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: .28rem .7rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 204, 0, 0.45);
  background: rgba(255, 204, 0, 0.08);
  color: var(--accent);
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
}
.acp-action-btn:hover {
  background: rgba(255, 204, 0, 0.18);
  border-color: var(--accent);
  color: #fff;
}
.acp-action-btn--danger {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
}
.acp-action-btn--danger:hover {
  background: rgba(248, 113, 113, 0.2);
  border-color: #f87171;
  color: #fff;
}
.acp-link-btn {
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.acp-link-btn:hover { color: var(--danger); }
.acp-badge {
  display: inline-block;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-left: .35rem;
  vertical-align: middle;
}
.acp-badge--ok { background: rgba(52,211,153,.18); color: var(--ok); }
.acp-badge--muted { background: rgba(148,163,184,.15); color: var(--muted); }
.acp-badge--hot { background: rgba(239,68,68,.2); color: #fca5a5; }
.acp-badge--audience { background: rgba(56, 189, 248, .18); color: #7dd3fc; }
.acp-perm-grid--switches {
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
.acp-perm-grid--switches .acp-switch {
  width: 100%;
  margin: 0;
}
.maintenance-admin-banner {
  margin: 0 0 1rem;
}
.maintenance-admin-banner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: .35rem;
}
.maintenance-public-banner {
  background: #fbbf24;
  color: #111827;
  font-size: .88rem;
  font-weight: 600;
  padding: .55rem 0;
  text-align: center;
}
.maintenance-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.maintenance-card {
  max-width: 32rem;
  width: 100%;
}
.maintenance-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent, #facc15);
}
.audience-badge {
  display: inline-block;
  margin-left: .45rem;
  padding: .12rem .45rem;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
  background: rgba(56, 189, 248, .16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, .35);
}
.audience-badge--on-media {
  margin: 0 0 .35rem;
  background: rgba(15, 23, 42, .72);
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, .45);
}
.audience-user-grid {
  max-height: 14rem;
  overflow: auto;
  padding-right: .25rem;
}
.audience-picks {
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  flex-direction: column;
  gap: 1rem;
}
.audience-user-add {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.audience-user-add .acp-input,
.audience-user-add select {
  flex: 1 1 14rem;
  min-width: 0;
}
.audience-user-chips {
  list-style: none;
  margin: .65rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.audience-user-chips[data-empty="1"] {
  display: none;
}
.audience-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .45rem .28rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, .35);
  background: rgba(56, 189, 248, .12);
  color: #e0f2fe;
  font-size: .82rem;
}
.audience-chip-name {
  font-weight: 600;
}
.audience-chip-role {
  opacity: .7;
  font-size: .75rem;
}
.audience-chip-remove {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0 .15rem;
  opacity: .75;
}
.audience-chip-remove:hover {
  opacity: 1;
  color: #fca5a5;
}
.audience-user-empty {
  margin: .45rem 0 0;
  font-size: .82rem;
}
.admin-table, .check-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td,
.check-table th, .check-table td {
  padding: .65rem .5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
@media (max-width: 1100px) {
  .acp-kpi-grid { grid-template-columns: 1fr 1fr; }
  .acp-split { grid-template-columns: 1fr; }
}
.acp-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .75rem;
}
.acp-media-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0b1220;
}
.acp-media-card img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.acp-media-card figcaption {
  padding: .45rem .55rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .72rem;
}
.acp-media-url {
  word-break: break-all;
  font-size: .68rem;
}
.acp-media-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}
.acp-media-tree {
  position: sticky;
  top: 4.5rem;
  background: var(--panel, #101826);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .85rem .7rem 1rem;
}
.acp-media-tree-title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 .35rem .55rem;
}
.acp-media-tree-nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.acp-media-tree-nav a {
  display: grid;
  grid-template-columns: 1.2rem 1fr auto;
  gap: .45rem;
  align-items: center;
  padding: .5rem .55rem;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
}
.acp-media-tree-nav a:hover,
.acp-media-tree-nav a.is-active {
  background: rgba(255, 204, 0, 0.1);
  color: #fff;
}
.acp-media-tree-count {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
}
.acp-media-main { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.acp-media-section-title {
  margin: 0 0 .75rem;
  font-size: 1.05rem;
}
.acp-media-upload-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr auto;
  gap: .75rem;
  align-items: end;
}
.acp-media-upload-submit { padding-bottom: .1rem; }

/* Settings search */
.acp-settings-search-wrap {
  margin: 0 0 1rem;
  max-width: 28rem;
}
.acp-settings-search-hint { margin: .35rem 0 0; font-size: .85rem; }
.acp-settings-tab.is-search-hit {
  outline: 1px solid var(--accent, #ffcc00);
  background: rgba(255, 204, 0, .1);
}
.acp-settings-tab.is-search-miss { opacity: .35; }

/* Bugs & ideas tracker */
.tr-list { display: flex; flex-direction: column; gap: .75rem; }
.tr-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: .85rem 1rem;
  background: rgba(15, 23, 42, .45);
}
.tr-card--bug { border-left: 3px solid #f87171; }
.tr-card--idea { border-left: 3px solid #60a5fa; }
.tr-card--progress { border-left: 3px solid #ffcc00; }
.tr-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin-bottom: .4rem;
}
.tr-card-title {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
}
.tr-card-body {
  margin: 0 0 .65rem;
  color: var(--muted, #94a3b8);
  font-size: .9rem;
  white-space: pre-wrap;
}
.tr-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.tr-inline-form { display: inline-flex; gap: .35rem; align-items: center; margin: 0; }

/* Multi-upload dropzone + assign modal */
.mb-drop {
  border: 1.5px dashed rgba(255, 204, 0, .35);
  border-radius: 12px;
  background: rgba(15, 23, 42, .55);
  padding: 1.4rem 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.mb-drop:hover, .mb-drop.is-drag {
  border-color: var(--accent, #ffcc00);
  background: rgba(255, 204, 0, .06);
}
.mb-drop.is-busy { opacity: .55; pointer-events: none; }
.mb-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  text-align: center;
}
.mb-status {
  margin: .35rem 0 0;
  font-size: .88rem;
  color: var(--muted, #94a3b8);
  min-height: 1.2em;
}
.mb-status.is-err { color: #f87171; }
.mb-legacy { margin-top: .35rem; font-size: .85rem; }
.mb-legacy summary { cursor: pointer; }

.mb-overlay {
  position: fixed;
  inset: 0;
  z-index: 13000;
  background: rgba(0, 0, 0, .75);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.mb-overlay[hidden] { display: none !important; }
body.mb-open { overflow: hidden; }
.mb-dialog {
  width: min(920px, 96vw);
  max-height: min(860px, 92vh);
  background: #0c1220;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.mb-head, .mb-foot, .mb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.mb-foot {
  border-bottom: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  justify-content: flex-end;
}
.mb-sub { display: block; font-size: .8rem; margin-top: .15rem; }
.mb-close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.mb-bulk {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .88rem;
}
.mb-bulk select {
  min-width: 10rem;
}
.mb-list {
  flex: 1;
  overflow: auto;
  padding: .75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-height: 0;
}
.mb-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: .65rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, .55);
}
.mb-thumb {
  width: 88px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #020617;
}
.mb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mb-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: .55rem;
  min-width: 0;
}
.mb-field label {
  display: block;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted, #94a3b8);
  margin-bottom: .2rem;
}
.mb-field input,
.mb-field select {
  width: 100%;
}
@media (max-width: 700px) {
  .mb-row { grid-template-columns: 72px 1fr; }
  .mb-row .mb-remove { grid-column: 1 / -1; justify-self: start; }
  .mb-fields { grid-template-columns: 1fr; }
}
.acp-media-folder-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.acp-media-folder-tile {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem .9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(15, 23, 42, .45);
  text-decoration: none;
  color: var(--text);
}
.acp-media-folder-tile:hover {
  border-color: var(--accent);
  background: rgba(255, 204, 0, 0.06);
}
.acp-media-folder-tile-ico { font-size: 1.5rem; }
.acp-media-folder-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.acp-media-crumb a { color: var(--accent); }
.acp-media-del { margin-top: .35rem; }
@media (max-width: 900px) {
  .acp-media-layout { grid-template-columns: 1fr; }
  .acp-media-tree { position: static; }
  .acp-media-upload-grid { grid-template-columns: 1fr; }
}

/* Media picker overlay */
.mp-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0, 0, 0, .72);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.mp-overlay[hidden] { display: none !important; }
body.mp-open { overflow: hidden; }
.mp-dialog {
  width: min(1100px, 96vw);
  height: min(780px, 92vh);
  background: #0c1220;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.55);
}
.mp-head, .mp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mp-foot {
  border-bottom: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  justify-content: flex-end;
}
.mp-sub { display: block; font-size: .8rem; margin-top: .15rem; }
.mp-close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.mp-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 200px 1fr;
}
.mp-tree {
  border-right: 1px solid rgba(255,255,255,.08);
  padding: .65rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mp-tree-item {
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted, #94a3b8);
  padding: .5rem .55rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
}
.mp-tree-item:hover, .mp-tree-item.is-active {
  background: rgba(255,204,0,.12);
  color: #fff;
}
.mp-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mp-toolbar {
  display: flex;
  justify-content: space-between;
  padding: .65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .88rem;
}
.mp-grid {
  flex: 1;
  overflow: auto;
  padding: .85rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .65rem;
  align-content: start;
}
.mp-folder-tile, .mp-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  text-align: left;
  font: inherit;
}
.mp-folder-tile {
  padding: 1rem .85rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mp-card img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
}
.mp-card-name {
  display: block;
  padding: .4rem .5rem;
  font-size: .72rem;
  word-break: break-all;
  color: var(--muted, #94a3b8);
}
.mp-card.is-selected {
  outline: 2px solid var(--accent, #ffcc00);
  outline-offset: 1px;
}
.mp-insert:disabled { opacity: .45; cursor: not-allowed; }

/* Soft anti-save on public content images */
.article-body img,
.post-body img,
.post-cutout img.post-img {
  -webkit-user-drag: none;
  user-select: none;
}
.react-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}
.react-forms { display: flex; gap: .4rem; flex-wrap: wrap; }
.react-forms .btn.is-on {
  border-color: rgba(59,130,246,.7);
  background: rgba(59,130,246,.2);
}
.react-count { font-weight: 600; }

@media (max-width: 900px) {
  .acp-layout { grid-template-columns: 1fr; }
  .acp-rail, .acp-side {
    position: relative;
    height: auto;
  }
  .acp-rail {
    flex-direction: row;
    justify-content: space-between;
    padding: .5rem;
    height: auto;
  }
  .acp-rail-nav { flex-direction: row; flex-wrap: wrap; }
  .acp-side-nav { flex-direction: row; flex-wrap: wrap; }
  .acp-content { padding: 1rem; }
  .site-topnav-inner { flex-wrap: wrap; }
}

/* ========== Public chrome (accent bar → logo → nav) ========== */
.site-accent-bar {
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  z-index: 30;
}
.site-accent-bar-inner {
  display: grid;
  grid-template-columns: minmax(7rem, .85fr) minmax(0, 3.6fr) auto;
  align-items: stretch;
  gap: .75rem;
  padding: 0 1.1rem;
  width: var(--content-width);
  margin: 0 auto;
  min-height: 2.25rem;
}
.site-accent-left {
  justify-self: start;
  align-self: center;
  min-width: 0;
  padding: .4rem 0;
}
.site-accent-center {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-self: center;
  padding: .4rem 0;
}
.site-accent-right {
  justify-self: end;
  align-self: stretch;
  display: flex;
  min-width: 0;
  position: relative;
}
.site-accent-search-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  align-self: stretch;
}
.site-accent-date {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.site-accent-ticker {
  width: 100%;
  max-width: 54rem; /* was 36rem; ~+50% */
  font-size: calc(.78rem + 1px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.site-accent-ticker-track {
  display: flex;
  width: max-content;
  animation: accent-ticker var(--accent-ticker-duration, 40s) linear infinite;
  will-change: transform;
}
.site-accent-ticker-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2.75rem;
  padding-right: 2.75rem;
}
.site-accent-ticker-item {
  flex: 0 0 auto;
  white-space: nowrap;
}
.site-accent-ticker:hover .site-accent-ticker-track,
.site-accent-ticker:focus-within .site-accent-ticker-track {
  animation-play-state: paused;
}
@keyframes accent-ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* Icon toggle — closed = glass, open = X (matches header-chip pattern) */
.site-accent-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(10, 10, 10, .14);
  color: var(--accent-ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.site-accent-search-toggle:hover,
.site-accent-bar.is-search-open .site-accent-search-toggle {
  background: #f3f3f3;
  color: #111;
}
.site-accent-search-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
.site-accent-search-icon {
  display: block;
  flex: 0 0 auto;
}
.site-accent-bar.is-search-open .site-accent-search-icon--glass { display: none; }
.site-accent-bar:not(.is-search-open) .site-accent-search-icon--close { display: none; }
.site-accent-bar.is-search-open .site-accent-search-icon--close { display: block; }

/* Compact popover under the glass — floats over content, no layout shove */
.site-search-panel {
  position: absolute;
  top: calc(100% + 2px);
  right: 0;
  z-index: 40;
  width: min(18.5rem, calc(100vw - 1.5rem));
  padding: .55rem .6rem;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.site-search-panel[hidden] { display: none !important; }
.site-accent-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.site-accent-search:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 12px rgba(201, 235, 16, .18),
    inset 0 1px 2px rgba(0, 0, 0, .45);
}
.site-accent-search-lead {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  color: rgba(255, 255, 255, .45);
  pointer-events: none;
}
.site-accent-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
  padding: .45rem .2rem .45rem 0;
  margin: 0;
  outline: none;
}
.site-accent-search input::placeholder {
  color: rgba(255, 255, 255, .42);
}
.site-accent-search-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.85rem;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, .1);
  background: transparent;
  color: var(--accent);
  padding: 0;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.site-accent-search-go:hover {
  color: var(--accent-hover);
  background: rgba(201, 235, 16, .08);
}
.site-accent-search-go:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
@media (prefers-reduced-motion: reduce) {
  /* Still crawl when the ACP ticker is on — Windows often sets reduce-motion globally. */
  .site-accent-ticker-track {
    animation-duration: calc(var(--accent-ticker-duration, 40s) * 1.6);
  }
}
@media (max-width: 720px) {
  .site-accent-bar-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date search"
      "ticker ticker";
  }
  .site-accent-left { grid-area: date; }
  .site-accent-center { grid-area: ticker; }
  .site-accent-right { grid-area: search; }
  .site-search-panel {
    right: 0;
    width: min(17rem, calc(100vw - 1.25rem));
  }
}
.site-social-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.site-social-bar--footer { margin: .85rem 0 0; margin-left: 0; }
.site-social-btn,
.share-btn {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 800;
  line-height: 1;
  color: #fff !important;
  text-decoration: none !important;
  border: 0;
}
.site-social-btn:hover,
.share-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.site-social-btn--facebook,
.share-btn--facebook { background: #1877f2; }
.site-social-btn--x,
.share-btn--x { background: #1d9bf0; }
.site-social-btn--bluesky,
.share-btn--bluesky { background: #1185fe; }
.site-social-btn--reddit,
.share-btn--reddit { background: #ff4500; }
.site-social-btn--linkedin,
.share-btn--linkedin { background: #0a66c2; }
.site-social-btn--instagram { background: #e1306c; }
.site-social-btn--youtube { background: #ff0000; }
.site-social-btn--discord { background: #5865f2; }
.site-social-btn--email,
.share-btn--email { background: #2563eb; }

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}
.share-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.share-btns { display: flex; flex-wrap: wrap; gap: .45rem; }
.share-btn { width: 2.25rem; height: 2.25rem; font-size: .95rem; }

.comment-signout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .75rem;
}
.inline-form { display: inline; margin: 0; }
button.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
button.linkish:hover { color: var(--accent-hover); }

.site-footer-accent {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  font-size: .9rem;
  padding: .7rem 1rem;
}
.site-footer-accent .shell { padding-top: 0; padding-bottom: 0; }

.acp-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: .75rem 1rem;
}

.site-topnav {
  border-top: 1px solid rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.88);
  background: #000;
}
.site-topnav-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  padding: .75rem 1.1rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-display);
  width: var(--content-width);
  margin: 0 auto;
}
.site-topnav a {
  color: var(--muted);
  position: relative;
  padding: .2rem 0;
}
.site-topnav a:hover { color: var(--text); }
.site-topnav a.is-active {
  color: var(--text);
}
.site-topnav a.is-active::after,
.site-topnav .nav-drop-toggle.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 3px;
  background: var(--accent);
}
.site-topnav .nav-drop {
  position: relative;
}
.site-topnav .nav-drop-toggle {
  color: var(--muted);
  position: relative;
  padding: .2rem 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.site-topnav .nav-drop-toggle:hover,
.site-topnav .nav-drop:focus-within .nav-drop-toggle,
.site-topnav .nav-drop-toggle.is-active {
  color: var(--text);
}
.site-topnav .nav-drop-toggle .nav-caret {
  font-size: .65em;
  opacity: .75;
}
.site-topnav .nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + .65rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 13rem;
  padding: .45rem 0;
  margin: 0;
  list-style: none;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  z-index: 40;
}
.site-topnav .nav-drop:hover .nav-drop-menu,
.site-topnav .nav-drop:focus-within .nav-drop-menu {
  display: block;
}
.site-topnav .nav-drop-menu a {
  display: block;
  padding: .55rem 1rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: .02em;
  font-size: .88rem;
  font-family: var(--font-body, inherit);
  font-weight: 600;
  white-space: nowrap;
}
.site-topnav .nav-drop-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.site-topnav .nav-drop-menu .nav-drop-sep {
  height: 1px;
  margin: .35rem .75rem;
  background: rgba(255, 255, 255, 0.12);
  list-style: none;
}

.site-logo-bar {
  border-bottom: 1px solid var(--border);
  background: #0c0c0c;
  padding: 1.65rem 0 1.5rem;
}
.site-logo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--text);
  text-decoration: none;
}
.site-logo--img {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: .15rem;
}
.site-logo-img {
  display: block;
  width: min(440px, 88vw);
  height: auto;
  margin: 0 auto;
}
.site-logo-tagline {
  display: block;
  margin-top: .15rem;
  color: #9eb4c6;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  line-height: 1;
}
.site-logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000));
  box-shadow: 0 0 0 2px rgba(0,0,0,.45), 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent);
}
.site-logo-mark--sm {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.site-logo-text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  align-items: flex-start;
}
.site-logo-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: .92;
  color: var(--accent);
}
.site-logo-tag {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.feed-cat {
  display: none;
  align-items: center;
  gap: .4rem;
  margin-bottom: .15rem;
}
.feed-cat-mark {
  width: .55rem;
  height: .55rem;
  background: var(--accent);
  flex-shrink: 0;
}
.feed-cat-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1.75rem;
  align-items: start;
}
.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.side-widget {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.15rem;
}
.side-widget-title {
  margin: 0 0 .9rem;
  font-size: .95rem;
  font-weight: 700;
}
.side-widget-title::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: .4rem;
  background: var(--accent);
}
.side-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.side-widget-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: .65rem;
  align-items: start;
  color: var(--text);
  text-decoration: none;
}
.side-widget-row img,
.side-widget-ph {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 5px;
  background: #0a1220;
  display: block;
}
.side-widget-row strong {
  display: block;
  font-size: .82rem;
  line-height: 1.3;
  font-weight: 650;
  color: #fff;
}
.side-widget-row time {
  display: block;
  margin-top: .2rem;
  color: var(--muted);
  font-size: .72rem;
}
.side-widget-row:hover strong { color: var(--accent); }
.side-widget-snippet {
  display: block;
  margin-top: .15rem;
  font-style: normal;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.35;
}
.side-widget-ph--comment {
  background: rgba(255, 204, 0, .1);
  border: 1px solid rgba(255, 204, 0, .28);
  position: relative;
}
.side-widget-ph--comment::after {
  content: "";
  position: absolute;
  inset: 28% 22% 34% 22%;
  border: 2px solid rgba(255, 204, 0, .75);
  border-radius: 3px;
}
@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { order: 2; }
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  background: #080808;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr;
  gap: 2rem;
  padding: 2.25rem 1.1rem 2rem;
  width: var(--content-width);
  margin: 0 auto;
}
.footer-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.footer-link-card {
  display: block;
  width: 160px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: #0a0a0a;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.footer-link-card:hover {
  border-color: rgba(255, 204, 0, .4);
  transform: translateY(-1px);
}
.footer-link-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 100;
  object-fit: cover;
}
.footer-link-card--text {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: .55rem .7rem;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
}
.site-footer-partners .site-social-bar--footer {
  margin-top: .85rem;
}
.acp-link-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 1rem;
}
.acp-link-admin-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .85rem;
  background: rgba(8, 14, 26, .45);
}
.acp-link-admin-card img {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 320 / 100;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: .75rem;
  background: #000;
}
.acp-link-admin-ph {
  display: grid;
  place-items: center;
  aspect-ratio: 320 / 100;
  max-width: 320px;
  margin-bottom: .75rem;
  border-radius: 4px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: .82rem;
}
.search-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.search-result {
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--border);
}
.search-result-type {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .25rem;
}
.search-result-title {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}
.search-result-title:hover { color: var(--accent); }
.search-result-excerpt {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.site-search-page-form {
  display: flex;
  gap: .5rem;
  margin: 0 0 1.25rem;
  max-width: 36rem;
}
.site-search-page-form input[type=search] {
  flex: 1;
  min-width: 0;
}
.site-footer-heading {
  margin: 0 0 .85rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.site-footer-heading::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: .45rem;
  background: var(--accent);
  box-shadow: 2.4rem 0 0 var(--border);
}
.site-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}
.site-footer-list a {
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.35;
}
.site-footer-list a:hover { color: var(--accent); }
.site-footer-date {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
}
.site-footer-list--plain a { font-weight: 500; }
.site-footer-copy {
  border-top: 1px solid rgba(255,255,255,.06);
  background: #050505;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
  padding: .85rem 0;
}
@media (max-width: 900px) {
  .site-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.hot-section { margin: 1.35rem 0 1.75rem; }
.hot-section-head { margin-bottom: .75rem; }
.hot-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
}
.hot-section-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: .4rem;
  background: var(--accent);
}
.hot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: .65rem;
  min-height: 340px;
}
.hot-grid--solo { grid-template-columns: 1fr; }
.hot-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: .65rem;
}
.hot-side--single { grid-template-rows: 1fr; }
.hot-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #0a0a0a;
  min-height: 160px;
  text-decoration: none;
  color: #fff;
}
.hot-card:hover img { transform: scale(1.04); }
.hot-card--hero { min-height: 340px; }
.hot-card img,
.hot-card-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.hot-card-fallback {
  background:
    radial-gradient(700px 280px at 20% 10%, rgba(253, 0, 91, .35), transparent 55%),
    linear-gradient(145deg, #1a1a1a, #070707);
}
.hot-card-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.05rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.88));
}
.hot-card-overlay h3 {
  margin: .35rem 0 .25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.15;
}
.hot-card--hero .hot-card-overlay h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.hot-card-overlay time {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.72);
  font-family: var(--font-display);
}
.hot-badge {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 2px;
  background: var(--hot);
  box-shadow: 0 0 16px var(--hot-glow);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hot-badge--latest {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 14px rgba(201, 235, 16, .3);
}
.feed-section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
}
.feed-section-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: .4rem;
  background: var(--hot);
}
@media (max-width: 900px) {
  .hot-grid {
    grid-template-columns: 1fr;
  }
  .hot-card--hero { min-height: 260px; }
}

.article-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.avatar-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: .55rem;
  max-width: 28rem;
}
.avatar-pick {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 50%;
  padding: 2px;
  display: block;
}
.avatar-pick input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-pick img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  background: #0a0a0a;
}
.avatar-pick.is-selected,
.avatar-pick:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(201, 235, 16, .25);
}
.emoji-picker-pop {
  position: absolute;
  z-index: 80;
  margin-top: .35rem;
  box-shadow: var(--shadow);
}
.editor-toolbar-wrap { position: relative; }
.tinymce-host {
  width: 100%;
  min-height: 12rem;
  background: #0b0b0b;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .75rem;
  font: inherit;
}
.editor-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}
.editor-label-row label { margin-bottom: 0; }
.editor-size-controls { display: inline-flex; gap: .35rem; }
.btn-xs {
  padding: .28rem .65rem !important;
  min-width: 2rem;
  font-size: .85rem;
  line-height: 1;
}
/* TinyMCE chrome in dark ACP */
.tox-tinymce { border-radius: 6px !important; border-color: var(--border) !important; }
.tox .tox-toolbar,
.tox .tox-menubar,
.tox .tox-statusbar { background: #141414 !important; }
.tox .tox-statusbar__resize-handle { opacity: .85; }

/* In-ACP post preview */
.acp-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, .72);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.acp-preview-overlay[hidden] { display: none !important; }
.acp-preview-dialog {
  width: min(960px, 100%);
  max-height: min(90vh, 920px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.acp-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #0c0c0c;
}
.acp-preview-body {
  overflow: auto;
  padding: 1.25rem 1.4rem 1.75rem;
  background: var(--bg);
}
.acp-preview-article { max-width: 720px; margin: 0 auto; }
.acp-preview-title {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
}
.acp-preview-content .youtube-embed {
  position: relative;
  width: min(100%, 672px);
  aspect-ratio: 16 / 9;
  margin: 1rem auto;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}
.acp-preview-content .youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.acp-preview-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.article-meta {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}
.article-meta strong { color: var(--text); font-weight: 600; }
.meta-sep { opacity: .45; }

.article-featured {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
}

.article-body > *:first-child { margin-top: 0; }
.article-body a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: .95rem;
}
.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: .55rem .7rem;
  text-align: left;
}
.article-body th { background: rgba(255,255,255,.04); }
.article-body a::after {
  content: "";
}

/* ========== ACP attachments panel ========== */
.attach-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,.28);
  padding: .9rem 1rem 1rem;
}
.attach-panel.is-drop {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(201, 235, 16, .25);
}
.attach-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .65rem;
  margin-bottom: .45rem;
}
.attach-help {
  margin: 0 0 .75rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}
.attach-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: .75rem;
}
.attach-status {
  font-size: .82rem;
  color: var(--muted);
}
.attach-status.is-err { color: var(--danger); }
.attach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.attach-empty {
  padding: .65rem .2rem;
  font-size: .88rem;
}
.attach-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .55rem .65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(0,0,0,.22);
}
.attach-preview img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  background: #000;
}
.attach-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .75rem;
  min-width: 0;
}
.attach-name {
  color: var(--accent);
  font-weight: 600;
  font-size: .88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.attach-size { font-size: .78rem; color: var(--muted); }
.attach-ok {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #166534;
  color: #bbf7d0;
  font-size: .7rem;
  font-weight: 800;
}
.attach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}
@media (max-width: 800px) {
  .attach-row {
    grid-template-columns: 72px 1fr;
  }
  .attach-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ========== Public lightbox ========== */
body.lb-open { overflow: hidden; }
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, .88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 1rem;
  gap: .65rem;
}
.lb-overlay[hidden] { display: none !important; }
.lb-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: grid;
  place-items: center;
}
.lb-main {
  max-width: min(96vw, 100%);
  max-height: min(72vh, calc(100vh - 11rem));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.lb-meta {
  color: #cbd5e1;
  font-size: .85rem;
  letter-spacing: .04em;
}
.lb-thumbs {
  display: flex;
  gap: .45rem;
  max-width: min(96vw, 1100px);
  overflow-x: auto;
  padding: .35rem .15rem .55rem;
  scrollbar-width: thin;
}
.lb-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #111;
  cursor: pointer;
  overflow: hidden;
}
.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lb-thumb.is-active {
  border-color: var(--accent, #ffcc00);
}
.lb-close,
.lb-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(20, 20, 20, .75);
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1;
}
.lb-close {
  top: .75rem;
  right: .85rem;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.6rem;
}
.lb-nav {
  top: 45%;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.8rem;
  transform: translateY(-50%);
}
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
.lb-close:hover,
.lb-nav:hover { background: rgba(40, 40, 40, .95); }
