/* ==========================================================================
   LunarCrack Downloads — design system
   dark / near-black, one accent (#e2483a), no frameworks
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-soft: #0f0f11;
  --panel: #131315;
  --panel-2: #17171a;
  --line: #232327;
  --line-2: #2e2e34;
  --fg: #ececed;
  --fg-dim: #9a9aa3;
  --fg-mute: #6d6d76;
  --accent: #e2483a;
  --accent-soft: #e2483a1a;
  --accent-line: #e2483a4d;
  --ok: #3fb950;
  --warn: #d29922;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -22px #000000cc;
  color-scheme: dark;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --yt: #ff2d2d;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  letter-spacing: -.005em;
  background:
    radial-gradient(900px 480px at 12% -10%, #e2483a10, transparent 70%),
    radial-gradient(760px 420px at 92% 0%, #4a6bff0a, transparent 70%),
    var(--bg);
  color: var(--fg);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
::selection { background: #e2483a40; }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); }
.dim { color: var(--fg-dim); }
.mute { color: var(--fg-mute); }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ header */
header.site {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: #0a0a0bcc;
  border-bottom: 1px solid var(--line);
}
.site .bar { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.015em; }
.brand .logo {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(160deg, #ff6a5c, var(--accent) 55%, #a52a20);
  box-shadow: 0 0 0 1px #ffffff14, 0 6px 18px -8px #e2483aaa;
  display: grid; place-items: center; font-size: 13px; color: #fff;
}
.brand small { color: var(--fg-mute); font-weight: 500; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
nav.main { display: flex; gap: 4px; margin-left: 8px; }
nav.main a {
  position: relative; padding: 8px 12px; border-radius: 9px; color: var(--fg-dim); font-size: 14px; font-weight: 500;
  transition: background .15s, color .15s;
}
nav.main a:hover { background: var(--panel); color: var(--fg); }
nav.main a.active { color: var(--fg); }
nav.main a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--accent);
}
.spacer { flex: 1; }

.socials { display: flex; align-items: center; gap: 6px; }
.iconbtn {
  width: 36px; height: 36px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 10px; color: var(--fg-dim);
  background: transparent; transition: color .15s, border-color .15s, background .15s;
}
.iconbtn svg { width: 17px; height: 17px; }
.iconbtn:hover { color: var(--fg); border-color: var(--line-2); background: var(--panel); }
.iconbtn.yt { color: #ff6b6b; }
.iconbtn.yt:hover { color: #fff; background: var(--yt); border-color: var(--yt); }
.search {
  display: flex; align-items: center; gap: 8px; width: min(320px, 34vw);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;
  height: 38px; transition: border-color .15s, background .15s;
}
.search:focus-within { border-color: var(--line-2); background: var(--panel-2); }
.search svg { width: 15px; height: 15px; flex: none; color: var(--fg-mute); }
.search input { min-width: 0; }
.search input { flex: 1; background: none; border: 0; outline: 0; font-size: 13.5px; }
.search input::placeholder { color: var(--fg-mute); }
.search kbd {
  font: 600 10px var(--mono); color: var(--fg-mute); border: 1px solid var(--line-2);
  border-radius: 5px; padding: 2px 5px;
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--fg); font-size: 13.5px; font-weight: 550;
  cursor: pointer; transition: background .15s, border-color .15s, transform .12s, opacity .15s;
  white-space: nowrap; box-shadow: inset 0 1px 0 #ffffff08;
}
.btn:hover { background: var(--panel-2); border-color: #3a3a42; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.primary {
  background: linear-gradient(180deg, #ee5748, var(--accent)); border-color: #f06a5d; color: #fff;
  box-shadow: inset 0 1px 0 #ffffff26, 0 8px 22px -12px #e2483aaa;
}
.btn.primary:hover { background: linear-gradient(180deg, #f4655a, #e85143); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ffb4ad; border-color: #5a2a27; background: #2a1413; }
.btn.danger:hover { background: #371a18; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 34px; height: 34px; padding: 0; }
.btn svg { width: 15px; height: 15px; }

/* -------------------------------------------------------------------- hero */
.hero { padding: 54px 0 26px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 6px 10px; border-radius: 999px;
}
.hero h1 {
  margin: 18px 0 12px; font-size: clamp(31px, 4.8vw, 48px); line-height: 1.06;
  letter-spacing: -.035em; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { margin: 0; color: var(--fg-dim); font-size: 15.5px; max-width: 620px; line-height: 1.65; }
.hero .kicker svg { width: 12px; height: 12px; }

.channel-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px;
  background: #ffffff04; color: var(--fg-dim); font-size: 13px; font-weight: 500;
  transition: border-color .15s, color .15s, background .15s;
}
.yt-chip {
  width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center;
  background: #ff2d2d14; border: 1px solid #ff2d2d33; color: #ff6b6b;
  transition: background .15s, border-color .15s, color .15s;
}
.yt-chip svg { width: 14px; height: 14px; }
.channel-link b { color: var(--fg); font-weight: 600; }
.channel-link .arr { width: 14px; height: 14px; transition: transform .15s; }
.channel-link:hover { border-color: var(--line-2); color: var(--fg); background: var(--panel); }
.channel-link:hover .yt-chip { background: var(--yt); border-color: var(--yt); color: #fff; }
.channel-link:hover .arr { transform: translateX(3px); }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; min-width: 120px;
}
.stat b { display: block; font-size: 19px; letter-spacing: -.02em; }
.stat span { font-size: 11.5px; color: var(--fg-mute); text-transform: uppercase; letter-spacing: .07em; }

/* ----------------------------------------------------------------- toolbar */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 18px 0 6px;
}
.toolbar .grow { flex: 1; }
.toolbar .search { width: min(340px, 100%); }
.toolbar + .chips { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  height: 32px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--fg-dim); font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip.on { color: #fff; background: var(--accent-soft); border-color: var(--accent-line); }
.chip .n { color: var(--fg-mute); font-weight: 500; }
select.field {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9aa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
  padding-right: 32px; cursor: pointer;
}
select.field, input.field, textarea.field {
  height: 38px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; padding: 0 11px; outline: 0; font-size: 13.5px;
  transition: border-color .15s, background .15s;
}
input.field:focus, select.field:focus, textarea.field:focus { border-color: var(--accent-line); background: var(--panel-2); }
textarea.field { height: auto; padding: 10px 11px; resize: vertical; min-height: 92px; line-height: 1.5; }
.field::placeholder { color: var(--fg-mute); }

/* ------------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(296px, 1fr)); gap: 16px; padding: 18px 0 46px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, #151517, var(--panel) 55%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.card:hover { border-color: #3a3a42; transform: translateY(-2px); box-shadow: var(--shadow); }
.card .top { display: flex; align-items: flex-start; gap: 12px; }
.card .ico {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: grid; place-items: center; font-size: 17px;
  background: linear-gradient(160deg, #ffffff10, #ffffff05);
  border: 1px solid var(--line-2); color: #c9c9d1;
}
.card .ico svg { width: 19px; height: 19px; }
.card h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.card .sub { color: var(--fg-mute); font-size: 12.5px; margin-top: 3px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card .desc {
  color: var(--fg-dim); font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 39px;
}
.card .foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.card .foot .btn { flex: 1; }
.card .dl { font-size: 11.5px; color: var(--fg-mute); display: inline-flex; align-items: center; gap: 5px; }
.card .dl svg { width: 12px; height: 12px; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 6px; font: 600 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  background: #ffffff08; border: 1px solid var(--line-2); color: var(--fg-dim);
}
.tag.accent { color: #ff8b80; background: var(--accent-soft); border-color: var(--accent-line); }
.tag.ok { color: #7ee787; background: #3fb95012; border-color: #3fb95040; }
.tag.warn { color: #e3b341; background: #d2992212; border-color: #d2992240; }

/* --------------------------------------------------------------- skeletons */
.skel {
  height: 208px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(100deg, #121214 30%, #19191d 50%, #121214 70%);
  background-size: 200% 100%; animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------- modal */
.overlay {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: #05050699; backdrop-filter: blur(6px); padding: 20px;
  animation: fade .15s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(620px, 100%); max-height: min(86vh, 780px); overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px;
  box-shadow: var(--shadow); animation: pop .16s ease-out;
}
.modal > .head, .modal > .foot { flex: none; }
.modal > .body { flex: 1; overflow-y: auto; min-height: 0; }
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } }
.modal .head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 0; }
.modal .head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.modal .body { padding: 14px 20px 20px; display: grid; gap: 14px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 20px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv .k { color: var(--fg-mute); }
.kv .v { word-break: break-word; }
.code {
  font: 12px/1.6 var(--mono); background: #0d0d0f; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; color: #cfcfd6; overflow: auto; white-space: pre-wrap;
}

/* ------------------------------------------------------------------- forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 12.5px; color: var(--fg-dim); font-weight: 600; }
.form .hint { font-size: 11.5px; color: var(--fg-mute); font-weight: 500; }
.checkline { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--panel);
  font-size: 12.5px; color: var(--fg-dim); cursor: pointer; user-select: none;
  font-weight: 500;
}
.check input { accent-color: var(--accent); width: 14px; height: 14px; margin: 0; flex: none; }
/* the form label rule is more specific, so re-assert the chip layout */
.form .check { display: inline-flex; grid-template-columns: none; gap: 7px; padding: 7px 10px; font-weight: 500; }
.flabel { display: grid; gap: 6px; font-size: 12.5px; color: var(--fg-dim); font-weight: 600; }
.check.on { border-color: var(--accent-line); color: var(--fg); background: var(--accent-soft); }

/* ------------------------------------------------------------------- toast */
#toasts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 380px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 11px 13px; font-size: 13px; box-shadow: var(--shadow);
  animation: slide .18s ease-out;
}
@keyframes slide { from { transform: translateY(8px); opacity: 0; } }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: #f85149; }

/* -------------------------------------------------------------- empty / err */
.empty {
  grid-column: 1 / -1; text-align: center; padding: 56px 20px; color: var(--fg-mute);
  border: 1px dashed var(--line-2); border-radius: var(--radius); background: #ffffff03;
}
.empty b { display: block; color: var(--fg-dim); font-size: 15px; margin-bottom: 4px; }
.banner {
  display: block; padding: 10px 14px; margin: 14px 0; line-height: 1.6;
  border: 1px solid #d2992240; background: #d2992210; border-radius: 10px;
  font-size: 12.5px; color: #e3b341;
}
.banner a { color: #ffd76e; text-decoration: underline; }

/* -------------------------------------------------------------- admin shell */
.admin { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  border-right: 1px solid var(--line); background: #0c0c0e; padding: 18px 14px;
  display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh;
}
.side .brand { padding: 2px 6px 0; }
.side nav { display: grid; gap: 3px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  color: var(--fg-dim); font-size: 13.5px; font-weight: 550;
}
.side nav a:hover { background: var(--panel); color: var(--fg); }
.side nav a.active { background: var(--panel-2); color: var(--fg); }
.side nav a svg { width: 16px; height: 16px; opacity: .8; }
.side .me { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; font-size: 12.5px; }
.side-yt { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--fg-mute); }
.side-yt svg { width: 15px; height: 15px; color: #ff5b5b; }
.side-yt:hover { color: var(--fg); }
.main { padding: 26px 28px 60px; min-width: 0; }
.head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head-row h1 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.head-row .sub { color: var(--fg-mute); font-size: 13px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; }
.kpi span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--fg-mute); }
.kpi b { display: block; font-size: 24px; letter-spacing: -.02em; margin-top: 6px; }
.kpi small { color: var(--fg-dim); font-size: 12px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel .phead {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.panel .phead h2 { margin: 0; font-size: 14.5px; font-weight: 650; }
.panel .pbody { padding: 14px 16px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--fg-mute); font-weight: 650; padding: 11px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl td { padding: 11px 14px; border-bottom: 1px solid #1b1b1f; vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: #ffffff03; }
table.tbl .t { font-weight: 600; }
table.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; }
.tbl-scroll { overflow-x: auto; }

.switch { position: relative; display: inline-flex; width: 36px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px; background: #2a2a30;
  transition: background .15s; cursor: pointer;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #b9b9c2; transition: transform .15s, background .15s;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); background: #fff; }

footer.site {
  border-top: 1px solid var(--line); background: #0b0b0d;
  padding: 40px 0 24px; color: var(--fg-mute); font-size: 12.5px;
}
footer.site .foot { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.foot-brand { max-width: 330px; display: grid; gap: 12px; align-content: start; }
.foot-brand p { margin: 0; color: var(--fg-mute); font-size: 13px; line-height: 1.65; }
.foot-brand .credit { margin-left: 6px; font-size: 12px; color: var(--fg-mute); }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-links b {
  display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: 10px; font-weight: 700;
}
.foot-links a { display: block; font-size: 13px; color: var(--fg-dim); padding: 3px 0; transition: color .15s; }
.foot-links a:hover { color: var(--fg); }
.foot-base {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
}
footer.site .foot-base { color: var(--fg-mute); }
footer.site a:hover { color: var(--fg-dim); }

/* ------------------------------------------------------------- auth screens */
.auth-wrap { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card {
  width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px; box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.02em; }
.auth-card p.sub { margin: 0 0 20px; color: var(--fg-dim); font-size: 13.5px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--fg-mute); font-size: 11.5px; margin: 4px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .side nav { display: flex; }
  .side .me { margin: 0 0 0 auto; border: 0; padding: 0; }
  .main { padding: 18px 16px 50px; }
}
@media (max-width: 720px) {
  nav.main { display: none; }
  .bar { gap: 8px; }
  .foot { gap: 28px; }
  .foot-links { gap: 40px; }
  .brand small { display: none; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
  .stat { min-width: 0; padding: 10px 12px; }
  .stat b { font-size: 17px; }
  .stat span { font-size: 10px; letter-spacing: .04em; }
  .hero { padding: 34px 0 14px; }
  .grid { grid-template-columns: 1fr; }
  .toolbar .search { width: 100%; }
  .form .row { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 92px 1fr; }
}

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

/* embed mode for blog iframes */
body.embed header.site, body.embed footer.site, body.embed .hero { display: none !important; }
body.embed main.wrap { padding-top: 16px; }
body.embed { background: transparent; }

/* two-column layouts (account + admin) */
.cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hide-sm { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .channel-link { font-size: 12px; }
}
@media (max-width: 520px) {
  .hide-xs { display: none; }
  .iconbtn { width: 34px; height: 34px; }
  .foot-base { font-size: 11.5px; }
}

/* inline back links (account / gate screens) */
.backlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: 13.5px; font-weight: 500;
}
.backlink svg { width: 15px; height: 15px; flex: none; }
.backlink:hover { color: #ff7a6d; }

/* file picker row (admin editor) */
.file-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.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;
}
