/* ClipDesk — design system v2
   Strict-CSP safe: no inline styles anywhere, fonts self-hosted.
   Dark surface, orange brand, tight typographic scale. */

@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jbmono-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #08080a;
  --bg-raised: #101014;
  --bg-card: #141419;
  --bg-inset: #1b1b22;
  --bg-hover: #20202a;

  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f4f4f6;
  --text-2: #b6b6c2;
  --text-3: #8f8f9e;

  --accent: #ff6b00;
  --accent-hover: #ff8333;
  --accent-soft: rgba(255, 107, 0, 0.12);
  --accent-line: rgba(255, 107, 0, 0.32);

  --banner-from: #ff7a00;
  --banner-to: #e04f00;

  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.12);
  --ok-line: rgba(61, 220, 151, 0.3);
  --warn: #ffc247;
  --warn-soft: rgba(255, 194, 71, 0.12);
  --warn-line: rgba(255, 194, 71, 0.3);
  --bad: #ff6b6b;
  --bad-soft: rgba(255, 107, 107, 0.12);
  --bad-line: rgba(255, 107, 107, 0.3);
  --perk: #b18cff;
  --perk-soft: rgba(177, 140, 255, 0.12);
  --perk-line: rgba(177, 140, 255, 0.3);

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-pop: 0 32px 64px -24px rgba(0, 0, 0, 0.9);

  --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --top-h: 58px;
  --side-w: 244px;
  --rail-w: 60px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; line-height: 1.2; font-weight: 700; }
h1 { font-size: 27px; }
h2 { font-size: 20px; }
h3 { font-size: 15px; letter-spacing: -0.01em; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
code, .mono { font-family: var(--ff-mono); font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ------------------------------------------------------------- primitives */
.ico { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none;
       stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.lg { width: 22px; height: 22px; }

.sub { color: var(--text-2); font-size: 13px; }
.hint { color: var(--text-3); font-size: 12px; font-weight: 400; }
.mono { font-family: var(--ff-mono); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.trunc { display: inline-block; max-width: 32ch; overflow: hidden; text-overflow: ellipsis;
         white-space: nowrap; vertical-align: bottom; }

.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 8px; }
.grow { flex: 1 1 auto; min-width: 0; }
.dot { color: var(--text-3); margin: 0 2px; }
.push { margin-left: auto; }
.mt { margin-top: 14px; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 15px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--bg-inset); color: var(--text);
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, transform .1s ease, color .14s ease;
}
.btn:hover { background: var(--bg-hover); border-color: rgba(255,255,255,.22); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.btn.accent {
  background: var(--accent); border-color: transparent; color: #1a0d00; font-weight: 700;
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 8px 22px -10px rgba(255,107,0,.9);
}
.btn.accent:hover { background: var(--accent-hover); color: #1a0d00; }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--bg-inset); }
.btn.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.btn.danger { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.btn.sm { height: 29px; padding: 0 10px; font-size: 12px; border-radius: var(--r-xs); gap: 6px; }
.btn.lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: var(--r-md); }
.btn.block { display: flex; width: 100%; }
.btn.plain { background: none; border: 0; padding: 0; height: auto; color: var(--text-3); font-size: 12px;
             text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.btn.plain:hover { color: var(--text); background: none; }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  padding: 5px 9px; border-radius: var(--r-full);
  background: var(--bg-inset); color: var(--text-2);
  border: 1px solid var(--line); white-space: nowrap;
}
.badge.live, .badge.approved, .badge.sent { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.badge.ended, .badge.rejected, .badge.banned { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.badge.pending, .badge.flagged, .badge.review, .badge.paused { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.badge.perk { background: var(--perk-soft); color: var(--perk); border-color: var(--perk-line); }
.badge.draft { background: var(--bg-inset); color: var(--text-3); }
.badge .pip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.plat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: var(--r-xs);
  background: var(--bg-inset); border: 1px solid var(--line); color: var(--text-2);
}
.plats { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ forms */
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
label.inline { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--text-2); cursor: pointer; }
input[type=text], input[type=url], input[type=number], input[type=password], input[type=email],
input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font-family: inherit; font-size: 13.5px; font-weight: 400; color: var(--text);
  background: var(--bg-inset); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 9px 11px; min-height: 38px;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
input::placeholder, textarea::placeholder { color: #7c7c8b; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.22); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,107,0,.16); background: var(--bg-card);
}
textarea { resize: vertical; line-height: 1.55; min-height: 84px; }
textarea.prose { font-family: var(--ff); font-size: 13.5px; }
select {
  appearance: none; cursor: pointer; padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8a8b4' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 14px;
}
input[type=checkbox], input[type=radio] {
  appearance: none; width: 17px; height: 17px; flex: 0 0 auto; margin: 0;
  border: 1px solid var(--line-strong); border-radius: 5px; background: var(--bg-inset);
  cursor: pointer; position: relative; transition: background .12s ease, border-color .12s ease;
}
input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
input[type=file] {
  font-size: 12.5px; color: var(--text-2); background: var(--bg-inset);
  border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px; width: 100%;
}
input[type=file]::file-selector-button {
  font-family: inherit; font-size: 12px; font-weight: 600; margin-right: 10px;
  border: 1px solid var(--line-strong); background: var(--bg-card); color: var(--text);
  border-radius: var(--r-xs); padding: 5px 10px; cursor: pointer;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.field-note { font-size: 11.5px; color: var(--text-3); font-weight: 400; }

/* ------------------------------------------------------------------ shell */
.top {
  height: var(--top-h); display: flex; align-items: center; gap: 16px;
  padding: 0 16px; position: sticky; top: 0; z-index: 40;
  background: rgba(8, 8, 10, .9); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.wordmark .mark {
  width: 28px; height: 28px; border-radius: var(--r-sm); overflow: hidden; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--banner-from), var(--banner-to));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 800;
}
.wordmark .mark img { width: 100%; height: 100%; object-fit: cover; }

.search {
  flex: 0 1 360px; margin: 0 auto; height: 34px; display: flex; align-items: center; gap: 9px;
  padding: 0 11px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg-raised); color: var(--text-3); font-size: 13px;
  transition: border-color .14s ease, background .14s ease;
}
.search:hover { border-color: var(--line-strong); }
.search .ico { width: 15px; height: 15px; }
.kbd {
  margin-left: auto; font-family: var(--ff-mono); font-size: 10.5px; font-weight: 500;
  padding: 2px 5px; border-radius: 4px; border: 1px solid var(--line-strong);
  color: var(--text-3); background: var(--bg-inset);
}
.top-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-r.push { margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-sm); color: var(--text-2);
  border: 1px solid transparent; background: transparent; cursor: pointer;
}
.icon-btn:hover { background: var(--bg-inset); color: var(--text); border-color: var(--line); }
.nav-toggle { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: var(--r-full); border: 1px solid var(--line-strong); background: var(--bg-raised);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.pill .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  background: linear-gradient(140deg, #2b2b34, #171720);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: var(--text-2); text-transform: uppercase;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 42px; height: 42px; font-size: 14px; }

.shell { display: grid; grid-template-columns: var(--rail-w) var(--side-w) minmax(0, 1fr); align-items: start; }
.rail {
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: center; gap: 10px; padding: 14px 0;
  background: var(--bg-raised);
  position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h));
}
.rail .app {
  width: 36px; height: 36px; border-radius: 10px; overflow: hidden; position: relative;
  background: linear-gradient(140deg, var(--banner-from), var(--banner-to));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px;
}
.rail .app img { width: 100%; height: 100%; object-fit: cover; }
.rail .app::before {
  content: ""; position: absolute; left: -12px; top: 9px; width: 3px; height: 18px;
  border-radius: 0 3px 3px 0; background: var(--accent);
}

.side {
  border-right: 1px solid var(--line); background: var(--bg-raised);
  display: flex; flex-direction: column;
  position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto;
}
.side-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.side-head .lg {
  width: 34px; height: 34px; border-radius: 9px; overflow: hidden; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--banner-from), var(--banner-to));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px;
}
.side-head .lg img { width: 100%; height: 100%; object-fit: cover; }
.side-head b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.online { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-3); }
.online i { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--ok-soft); }

.nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; }
.nav .sec {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3); padding: 0 9px; margin: 14px 0 5px;
}
.nav .sec:first-child { margin-top: 2px; }
.nav a {
  display: flex; align-items: center; gap: 9px; min-height: 33px; padding: 6px 9px;
  border-radius: var(--r-sm); color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: background .12s ease, color .12s ease;
}
.nav a .ico { width: 16px; height: 16px; opacity: .85; }
.nav a:hover { background: var(--bg-inset); color: var(--text); }
.nav a.on { background: var(--bg-inset); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.nav a.on .ico { opacity: 1; color: var(--accent); }
.nav .chip { font-size: 13px; width: 16px; text-align: center; flex: 0 0 auto; }

.side-foot {
  margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3);
  justify-content: space-between;
}
.side-foot .whoami { display: flex; align-items: center; gap: 7px; min-width: 0; }
.side-foot b { color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-cta { margin: 12px 8px; padding: 13px; border-radius: var(--r-md); border: 1px solid var(--accent-line);
            background: linear-gradient(160deg, rgba(255,107,0,.14), rgba(255,107,0,.02)); }
.side-cta b { display: block; font-size: 13px; margin-bottom: 3px; }
.side-cta .sub { font-size: 12px; margin-bottom: 10px; }
.side-cta .btn { width: 100%; }

.main { min-width: 0; background: var(--bg); }
.wide { max-width: 1180px; margin: 0 auto; padding: 26px 30px 90px; }
.col { max-width: 720px; margin: 0 auto; padding: 0 0 70px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); min-height: 60vh; }
.col > .ph, .col > .post { padding-left: 20px; padding-right: 20px; }
.col > .ph { padding-top: 20px; }

/* --------------------------------------------------------------- headings */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.ph h1 { font-size: 25px; }
.ph .sub { margin-top: 4px; max-width: 62ch; }
.ph-stack { display: flex; flex-direction: column; gap: 4px; }
.breadcrumb { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; }
.breadcrumb:hover { color: var(--text-2); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a {
  padding: 9px 13px; font-size: 13.5px; font-weight: 600; color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--text-2); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--bg-raised); border: 1px solid var(--line); }
.seg a { padding: 5px 11px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.seg a:hover { color: var(--text-2); }
.seg a.on { background: var(--bg-inset); color: var(--text); box-shadow: var(--shadow-1); }

/* ----------------------------------------------------------------- panels */
.panel {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px; margin-bottom: 16px;
}
.panel > h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.panel > h3 .hint { margin-left: auto; font-weight: 400; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.tight { padding: 14px; }
.panel.note { background: var(--bg-raised); border-style: dashed; }

details.panel { padding: 0; }
details.panel > summary {
  list-style: none; cursor: pointer; padding: 15px 18px; font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px;
}
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after {
  content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg) translateY(-2px); transition: transform .15s ease;
}
details.panel[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.panel[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
details.panel .stack { padding: 0 18px 18px; }
details.panel > table { margin: 0 0 4px; }

.flash {
  padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  margin-bottom: 16px; border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--text-2);
}
.flash.ok { background: var(--ok-soft); border-color: var(--ok-line); color: #9df0c8; }
.flash.err { background: var(--bad-soft); border-color: var(--bad-line); color: #ffb3b3; }

.empty {
  padding: 44px 20px; text-align: center; color: var(--text-3); font-size: 13.5px;
  border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--bg-raised);
}
.empty b { display: block; color: var(--text-2); font-size: 14.5px; margin-bottom: 4px; font-weight: 600; }

/* ------------------------------------------------------------------ stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 15px; display: flex; flex-direction: column; gap: 5px;
}
.stat small { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.stat b { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat.pos b { color: var(--ok); }
.stat.neg b { color: var(--bad); }
.stat .bar { margin-top: 4px; }
.stat .foot { font-size: 11.5px; color: var(--text-3); }

.bar { height: 6px; border-radius: var(--r-full); background: var(--bg-inset); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bar > i { display: block; width: 0; height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--accent), var(--accent-hover)); transition: width .3s ease; }
.barrow { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.barrow b { color: var(--text); }

/* ------------------------------------------------------------------ cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.grid.few { grid-template-columns: repeat(auto-fit, minmax(280px, 400px)); justify-content: center; }
.grid.few .card { max-width: 400px; }
.lsection.narrow { max-width: 760px; }
.cards2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: stretch; }
.admin .cards2 > .panel { margin-bottom: 0; }

.card {
  display: flex; flex-direction: column; overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--bg-inset); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph-logo {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 18px; text-align: center; font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
  color: #fff; background: linear-gradient(150deg, var(--banner-from), var(--banner-to));
}
.thumb > .badge { position: absolute; top: 10px; left: 10px; }
.thumb > .badge.right { left: auto; right: 10px; }
.cbody { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.cmeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ctitle { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.32; }
.rate { display: flex; align-items: baseline; gap: 5px; }
.rate b { font-size: 21px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rate b.big { font-size: 32px; }
.rate span { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kv div { padding: 9px 11px; border-radius: var(--r-sm); background: var(--bg-inset); border: 1px solid var(--line); }
.kv small { display: block; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.kv b { font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ campaign page */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 26px; align-items: start; }
.detail .hero { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; margin-bottom: 16px; position: relative; }
.sticky { position: sticky; top: calc(var(--top-h) + 18px); display: flex; flex-direction: column; gap: 14px; }
.brief { font-size: 13.5px; line-height: 1.68; color: var(--text-2); white-space: pre-line; }
.req { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.req li { position: relative; padding-left: 25px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.req li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--ok-soft); border: 1px solid var(--ok-line);
}
.req li::after {
  content: ""; position: absolute; left: 4.5px; top: 6px; width: 4px; height: 7px;
  border: solid var(--ok); border-width: 0 1.6px 1.6px 0; transform: rotate(42deg);
}
.est { display: flex; flex-direction: column; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.est > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.est > div span { color: var(--text-3); }
.est > div b { font-variant-numeric: tabular-nums; font-weight: 600; }
.est-out { font-size: 30px; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ tables */
.tbl { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg-card); }
.tbl.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th, tr:first-child th {
  text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-3); padding: 10px 14px; background: var(--bg-raised); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tr td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text-2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255,255,255,.017); }
td b { color: var(--text); font-weight: 600; }
td .badge { margin-right: 3px; }
td a { color: var(--text); }
td a:hover { color: var(--accent); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
td .cell-sub { display: block; font-size: 11.5px; color: var(--text-2); margin-top: 3px; opacity: .8; }

.rank { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
        border-radius: 50%; background: var(--bg-inset); border: 1px solid var(--line);
        font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.rank.g1 { background: linear-gradient(140deg,#ffd76e,#e8a200); color: #241700; border-color: transparent; }
.rank.g2 { background: linear-gradient(140deg,#e6e6ec,#b9b9c4); color: #1b1b20; border-color: transparent; }
.rank.g3 { background: linear-gradient(140deg,#e0a878,#b9763f); color: #23140a; border-color: transparent; }

/* ------------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center;
         padding: 20px; background: rgba(4,4,6,.72); backdrop-filter: blur(6px); }
.modal:target { display: flex; }
.modal .box {
  width: 100%; max-width: 480px; background: var(--bg-card); border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-pop);
}
.modal .box h3 { margin-bottom: 4px; }
.modal .box > .sub { margin-bottom: 16px; }

/* ------------------------------------------------------------------ landing */
.lnav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px;
  padding: 14px 28px; background: rgba(8,8,10,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.lnav .links { display: flex; gap: 20px; margin-left: 14px; }
.lnav .links a { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.lnav .links a:hover { color: var(--text); }
.lnav .spacer { margin-left: auto; }

.lhero { position: relative; overflow: hidden; padding: 74px 28px 62px; }
.lhero::before {
  content: ""; position: absolute; left: 50%; top: -330px; width: 1100px; height: 720px;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255,107,0,.20), rgba(255,107,0,.05) 42%, transparent 68%);
}
.lhero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 100%);
}
.lhero .inner { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: var(--r-full);
  border: 1px solid var(--accent-line); background: var(--accent-soft); color: #ffb27a;
  font-size: 12px; font-weight: 600; margin-bottom: 20px;
}
.eyebrow .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,0,.2); }
.lhero h1 { font-size: clamp(34px, 5.4vw, 58px); font-weight: 800; letter-spacing: -0.038em; line-height: 1.04; }
.lhero h1 em { font-style: normal; color: var(--accent); }
.lhero .lede { max-width: 630px; margin: 18px auto 0; font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.lcta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.lproof { display: flex; align-items: center; justify-content: center; gap: 30px; flex-wrap: wrap; margin-top: 34px;
          padding-top: 24px; border-top: 1px solid var(--line); }
.lproof .item { text-align: center; }
.lproof .item b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lproof .item span { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.lsection { max-width: 1120px; margin: 0 auto; padding: 56px 28px; }
.lsection > header { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.lsection > header h2 { font-size: clamp(24px, 3vw, 33px); letter-spacing: -0.03em; }
.lsection > header p { margin-top: 10px; color: var(--text-2); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.step { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-card); }
.step .n {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent); font-size: 12px; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--text-2); }

.calc {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: center;
  padding: 26px; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--bg-card), var(--bg-raised));
}
.calc .out { text-align: center; }
.calc .out b { display: block; font-size: 42px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--accent); }
.calc .out span { font-size: 12.5px; color: var(--text-3); }
.calc input[type=range] { width: 100%; accent-color: var(--accent); height: 26px; cursor: pointer; }
.calc input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--bg-inset); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px;
  border-radius: 50%; background: var(--accent); border: 2px solid #fff2; box-shadow: 0 2px 8px #0008; }
.calc .rangelabels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-top: -2px; }

.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-card); }
.faq summary { cursor: pointer; padding: 14px 16px; font-size: 14px; font-weight: 600; list-style: none; display: flex; gap: 10px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--text-3); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 16px 15px; font-size: 13.5px; color: var(--text-2); line-height: 1.65; }

.cta-band {
  max-width: 1120px; margin: 0 auto 60px; padding: 44px 28px; text-align: center;
  border: 1px solid var(--accent-line); border-radius: var(--r-xl);
  background: radial-gradient(ellipse at top, rgba(255,107,0,.18), transparent 65%), var(--bg-card);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; }
.cta-band p { color: var(--text-2); margin: 10px auto 22px; max-width: 52ch; }

.lfoot {
  border-top: 1px solid var(--line); padding: 26px 28px; display: flex; gap: 18px;
  align-items: center; flex-wrap: wrap; max-width: 1120px; margin: 0 auto;
  font-size: 12.5px; color: var(--text-3);
}
.lfoot .spacer { margin-left: auto; }
.lfoot a:hover { color: var(--text-2); }

/* -------------------------------------------------------------- submit page */
.subgrid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 24px; align-items: start; }
.drop { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 18px; background: var(--bg-raised); }
.urlrow { display: flex; gap: 10px; align-items: stretch; }
.urlrow input { flex: 1 1 auto; }
.urlnote { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; margin-top: 8px; }
.urlnote.ok { color: var(--ok); }
.urlnote.bad { color: var(--bad); }
.urlnote.idle { color: var(--text-3); }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.check input { margin-top: 1px; }
.preview-card { display: flex; gap: 11px; align-items: center; padding: 12px; border-radius: var(--r-sm);
                background: var(--bg-inset); border: 1px solid var(--line); }
.preview-card .avatar { border-radius: var(--r-sm); }
.preview-card .t { font-size: 13px; font-weight: 600; }
.preview-card .s { font-size: 11.5px; color: var(--text-3); }
.steps-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: s; }
.steps-mini li { position: relative; padding-left: 26px; font-size: 12.5px; color: var(--text-2); counter-increment: s; }
.steps-mini li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg-inset); border: 1px solid var(--line-strong); color: var(--text-3);
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ------------------------------------------------------------------- login */
.authwrap { min-height: calc(100vh - var(--top-h)); display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.authcard { width: 100%; max-width: 430px; }
.authcard .brandmark {
  width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 14px; overflow: hidden;
  background: linear-gradient(140deg, var(--banner-from), var(--banner-to));
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #fff;
  box-shadow: 0 14px 34px -14px rgba(255,107,0,.9);
}
.authcard .brandmark img { width: 100%; height: 100%; object-fit: cover; }
.authcard h1 { text-align: center; font-size: 22px; }
.authcard .lede { text-align: center; margin: 8px 0 22px; color: var(--text-2); font-size: 13.5px; }
.authfoot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center;
            font-size: 12px; color: var(--text-3); line-height: 1.7; }

/* ------------------------------------------------------------------- posts */
.post { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.post .av { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
            background: linear-gradient(140deg, var(--banner-from), var(--banner-to));
            display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; }
.post .av img { width: 100%; height: 100%; object-fit: cover; }
.post .who { font-size: 12px; color: var(--text-3); margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.post .who b { color: var(--text); font-size: 13px; font-weight: 700; }
.post .ttl { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }
.post .body { font-size: 13.5px; color: var(--text-2); white-space: pre-line; line-height: 1.62; }

/* -------------------------------------------------------- profile / store */
.storehead { position: relative; }
.banner {
  height: 176px; overflow: hidden; position: relative;
  background: linear-gradient(140deg, var(--banner-from), var(--banner-to));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
}
.banner.has-img { background-size: cover; background-position: center; }
.banner h1 { font-size: 34px; color: #fff; letter-spacing: -0.035em; }
.banner p { margin-top: 6px; color: rgba(255,255,255,.93); font-size: 15px; font-weight: 600; }
.banner.has-img h1, .banner.has-img p { visibility: hidden; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.38)); pointer-events: none; }
.logo-big {
  width: 86px; height: 86px; border-radius: var(--r-lg); overflow: hidden;
  border: 3px solid var(--bg); margin: -43px 0 0 26px; position: relative; z-index: 2;
  background: linear-gradient(140deg, var(--banner-from), var(--banner-to));
  display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: #fff;
  box-shadow: var(--shadow-2);
}
.logo-big img { width: 100%; height: 100%; object-fit: cover; }
.info { padding: 14px 26px 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.info h2 { font-size: 24px; letter-spacing: -0.03em; }
.info .actions { display: flex; gap: 8px; position: absolute; right: 26px; top: 12px; }
.info .meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.info .meta b { color: var(--text-2); }
.info .meta .star { color: var(--warn); }
.sq {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg-raised);
  color: var(--text-2); cursor: pointer;
}
.sq:hover { background: var(--bg-inset); color: var(--text); }

/* --------------------------------------------------------------- admin bits */
.lock {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-full);
  border: 1px solid var(--perk-line); background: var(--perk-soft); color: var(--perk);
  font-size: 11.5px; font-weight: 600;
}
.lock .ico { width: 13px; height: 13px; }
.admin .side { background: #0b0b0f; }
.adm-badge { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
             color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-soft);
             padding: 3px 6px; border-radius: 4px; }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.chart { display: flex; align-items: flex-end; gap: 5px; height: 96px; padding-top: 8px; }
.chart i { flex: 1 1 auto; background: linear-gradient(180deg, var(--accent), rgba(255,107,0,.32));
           border-radius: 4px 4px 0 0; min-height: 3px; transition: opacity .15s ease; }
.chart i:hover { opacity: .82; }
.chart-empty { display: flex; align-items: center; gap: 8px; height: 96px; color: var(--text-2);
               font-size: 13px; border: 1px dashed var(--line-strong); border-radius: var(--r-sm);
               padding: 0 14px; }
.invite-box { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm);
              background: var(--bg-inset); border: 1px solid var(--line); font-family: var(--ff-mono); font-size: 12px; }
.invite-box code { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1 1 160px; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .detail, .subgrid, .calc { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .calc { gap: 18px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  /* Mobile nav: sidebar becomes a slide-in drawer instead of vanishing. */
  .side {
    display: flex; position: fixed; top: var(--top-h); left: 0; bottom: 0;
    width: min(86vw, 300px); height: auto; z-index: 60;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: none;
  }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); }
  .nav-toggle { display: inline-flex; }
  .search { display: none; }
  .top { gap: 10px; }
  .top-r { gap: 6px; }
  .wide { padding: 18px 16px 80px; }
  .col { border: 0; }
  .col > .ph, .col > .post { padding-left: 16px; padding-right: 16px; }
  .lhero { padding: 52px 20px 46px; }
  .lsection { padding: 40px 20px; }
  .lnav .links { display: none; }
  .cards2, .grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .ph { align-items: flex-start; }
  .detail .hero { aspect-ratio: 16 / 9; }
  .info .actions { position: static; }
  .tbl { overflow-x: auto; }
}
@media (max-width: 560px) {
  h1 { font-size: 22px; }
  .ph h1 { font-size: 21px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lproof { gap: 18px; }
  .urlrow { flex-direction: column; }
  .banner { height: 132px; }
  .banner h1 { font-size: 25px; }
  .wide { padding: 16px 12px 70px; }
}

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

/* ------------------------------------------------------------- utilities */
.mt4 { margin-top: 4px; } .mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.p0 { padding: 0; }
.pad12 { padding: 12px; } .pad14 { padding: 14px; } .pad16 { padding: 16px; } .pad20 { padding: 20px; }
.noborder { border: 0; }
.flat { border-radius: 0; }
.center { text-align: center; }
.right { text-align: right; }
.small { font-size: 12.5px; }
.strong { font-weight: 600; }
.muted { color: var(--text-3); }
.okc { color: var(--ok); }
.badc { color: var(--bad); }
.warnc { color: var(--warn); }
.w100 { width: 100%; }
.hstack { display: flex; align-items: center; gap: 10px; }
.vstack { display: flex; flex-direction: column; gap: 10px; }
.divider { border-top: 1px solid var(--line); margin: 14px 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
              padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-head b { font-size: 14px; font-weight: 600; }
.post-row { padding: 10px 0; border-top: 1px solid var(--line); }
.post-row:first-child { border-top: 0; padding-top: 0; }
.post-row .t { font-weight: 600; font-size: 13px; margin: 2px 0 4px; }
.post-row .b { font-size: 12.5px; color: var(--text-2); }

/* payout method toggle (no inline script/classes needed) */
.hidden { display: none; }

/* compact admin inputs inside table rows */
.reason-input { width: 120px; min-height: 29px; padding: 4px 8px; font-size: 12px; }
.num-input { width: 74px; min-height: 29px; padding: 4px 6px; font-size: 12px; }
td form.row { gap: 5px; }
td form.row .btn.sm { height: 29px; }

/* CSP-safe progress + chart sizing: width/height come from classes, never inline styles */
.w-0 { width: 0% }
.w-1 { width: 1% }
.w-2 { width: 2% }
.w-3 { width: 3% }
.w-4 { width: 4% }
.w-5 { width: 5% }
.w-6 { width: 6% }
.w-7 { width: 7% }
.w-8 { width: 8% }
.w-9 { width: 9% }
.w-10 { width: 10% }
.w-11 { width: 11% }
.w-12 { width: 12% }
.w-13 { width: 13% }
.w-14 { width: 14% }
.w-15 { width: 15% }
.w-16 { width: 16% }
.w-17 { width: 17% }
.w-18 { width: 18% }
.w-19 { width: 19% }
.w-20 { width: 20% }
.w-21 { width: 21% }
.w-22 { width: 22% }
.w-23 { width: 23% }
.w-24 { width: 24% }
.w-25 { width: 25% }
.w-26 { width: 26% }
.w-27 { width: 27% }
.w-28 { width: 28% }
.w-29 { width: 29% }
.w-30 { width: 30% }
.w-31 { width: 31% }
.w-32 { width: 32% }
.w-33 { width: 33% }
.w-34 { width: 34% }
.w-35 { width: 35% }
.w-36 { width: 36% }
.w-37 { width: 37% }
.w-38 { width: 38% }
.w-39 { width: 39% }
.w-40 { width: 40% }
.w-41 { width: 41% }
.w-42 { width: 42% }
.w-43 { width: 43% }
.w-44 { width: 44% }
.w-45 { width: 45% }
.w-46 { width: 46% }
.w-47 { width: 47% }
.w-48 { width: 48% }
.w-49 { width: 49% }
.w-50 { width: 50% }
.w-51 { width: 51% }
.w-52 { width: 52% }
.w-53 { width: 53% }
.w-54 { width: 54% }
.w-55 { width: 55% }
.w-56 { width: 56% }
.w-57 { width: 57% }
.w-58 { width: 58% }
.w-59 { width: 59% }
.w-60 { width: 60% }
.w-61 { width: 61% }
.w-62 { width: 62% }
.w-63 { width: 63% }
.w-64 { width: 64% }
.w-65 { width: 65% }
.w-66 { width: 66% }
.w-67 { width: 67% }
.w-68 { width: 68% }
.w-69 { width: 69% }
.w-70 { width: 70% }
.w-71 { width: 71% }
.w-72 { width: 72% }
.w-73 { width: 73% }
.w-74 { width: 74% }
.w-75 { width: 75% }
.w-76 { width: 76% }
.w-77 { width: 77% }
.w-78 { width: 78% }
.w-79 { width: 79% }
.w-80 { width: 80% }
.w-81 { width: 81% }
.w-82 { width: 82% }
.w-83 { width: 83% }
.w-84 { width: 84% }
.w-85 { width: 85% }
.w-86 { width: 86% }
.w-87 { width: 87% }
.w-88 { width: 88% }
.w-89 { width: 89% }
.w-90 { width: 90% }
.w-91 { width: 91% }
.w-92 { width: 92% }
.w-93 { width: 93% }
.w-94 { width: 94% }
.w-95 { width: 95% }
.w-96 { width: 96% }
.w-97 { width: 97% }
.w-98 { width: 98% }
.w-99 { width: 99% }
.w-100 { width: 100% }
.chart i.h-0 { height: 0% }
.chart i.h-1 { height: 1% }
.chart i.h-2 { height: 2% }
.chart i.h-3 { height: 3% }
.chart i.h-4 { height: 4% }
.chart i.h-5 { height: 5% }
.chart i.h-6 { height: 6% }
.chart i.h-7 { height: 7% }
.chart i.h-8 { height: 8% }
.chart i.h-9 { height: 9% }
.chart i.h-10 { height: 10% }
.chart i.h-11 { height: 11% }
.chart i.h-12 { height: 12% }
.chart i.h-13 { height: 13% }
.chart i.h-14 { height: 14% }
.chart i.h-15 { height: 15% }
.chart i.h-16 { height: 16% }
.chart i.h-17 { height: 17% }
.chart i.h-18 { height: 18% }
.chart i.h-19 { height: 19% }
.chart i.h-20 { height: 20% }
.chart i.h-21 { height: 21% }
.chart i.h-22 { height: 22% }
.chart i.h-23 { height: 23% }
.chart i.h-24 { height: 24% }
.chart i.h-25 { height: 25% }
.chart i.h-26 { height: 26% }
.chart i.h-27 { height: 27% }
.chart i.h-28 { height: 28% }
.chart i.h-29 { height: 29% }
.chart i.h-30 { height: 30% }
.chart i.h-31 { height: 31% }
.chart i.h-32 { height: 32% }
.chart i.h-33 { height: 33% }
.chart i.h-34 { height: 34% }
.chart i.h-35 { height: 35% }
.chart i.h-36 { height: 36% }
.chart i.h-37 { height: 37% }
.chart i.h-38 { height: 38% }
.chart i.h-39 { height: 39% }
.chart i.h-40 { height: 40% }
.chart i.h-41 { height: 41% }
.chart i.h-42 { height: 42% }
.chart i.h-43 { height: 43% }
.chart i.h-44 { height: 44% }
.chart i.h-45 { height: 45% }
.chart i.h-46 { height: 46% }
.chart i.h-47 { height: 47% }
.chart i.h-48 { height: 48% }
.chart i.h-49 { height: 49% }
.chart i.h-50 { height: 50% }
.chart i.h-51 { height: 51% }
.chart i.h-52 { height: 52% }
.chart i.h-53 { height: 53% }
.chart i.h-54 { height: 54% }
.chart i.h-55 { height: 55% }
.chart i.h-56 { height: 56% }
.chart i.h-57 { height: 57% }
.chart i.h-58 { height: 58% }
.chart i.h-59 { height: 59% }
.chart i.h-60 { height: 60% }
.chart i.h-61 { height: 61% }
.chart i.h-62 { height: 62% }
.chart i.h-63 { height: 63% }
.chart i.h-64 { height: 64% }
.chart i.h-65 { height: 65% }
.chart i.h-66 { height: 66% }
.chart i.h-67 { height: 67% }
.chart i.h-68 { height: 68% }
.chart i.h-69 { height: 69% }
.chart i.h-70 { height: 70% }
.chart i.h-71 { height: 71% }
.chart i.h-72 { height: 72% }
.chart i.h-73 { height: 73% }
.chart i.h-74 { height: 74% }
.chart i.h-75 { height: 75% }
.chart i.h-76 { height: 76% }
.chart i.h-77 { height: 77% }
.chart i.h-78 { height: 78% }
.chart i.h-79 { height: 79% }
.chart i.h-80 { height: 80% }
.chart i.h-81 { height: 81% }
.chart i.h-82 { height: 82% }
.chart i.h-83 { height: 83% }
.chart i.h-84 { height: 84% }
.chart i.h-85 { height: 85% }
.chart i.h-86 { height: 86% }
.chart i.h-87 { height: 87% }
.chart i.h-88 { height: 88% }
.chart i.h-89 { height: 89% }
.chart i.h-90 { height: 90% }
.chart i.h-91 { height: 91% }
.chart i.h-92 { height: 92% }
.chart i.h-93 { height: 93% }
.chart i.h-94 { height: 94% }
.chart i.h-95 { height: 95% }
.chart i.h-96 { height: 96% }
.chart i.h-97 { height: 97% }
.chart i.h-98 { height: 98% }
.chart i.h-99 { height: 99% }
.chart i.h-100 { height: 100% }
.chart i { height: 100%; }

/* hero truth line + footer legal (landing) */
.hero-truth { margin: 16px 0 0; font-size: 12.5px; font-weight: 500; color: var(--text-3);
              letter-spacing: .01em; }
.lfoot { flex-direction: column; align-items: stretch; gap: 0; }
.lfoot-main { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.lfoot-legal { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
               font-size: 11.5px; line-height: 1.65; color: var(--text-3); max-width: 90ch; }
@media (max-width: 560px) {
  .hero-truth { font-size: 11.5px; }
  .lfoot-main { gap: 12px; }
}

/* narrow screens: drop the long 2FA session chip and shrink the wordmark
   so the header (and the Log out button) always fits */
@media (max-width: 700px) {
  .lock { display: none; }
  .wordmark .adm-badge { display: none; }
  .top { padding: 0 10px; }
  .top-r form { margin: 0; }
  .top .btn.sm { padding: 0 9px; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 14px; gap: 7px; }
  .pill { padding: 0 9px; font-size: 12px; }
}

/* bar-scoped widths: must outrank `.bar > i` */
.bar > i.w-0 { width: 0% }
.bar > i.w-1 { width: 1% }
.bar > i.w-2 { width: 2% }
.bar > i.w-3 { width: 3% }
.bar > i.w-4 { width: 4% }
.bar > i.w-5 { width: 5% }
.bar > i.w-6 { width: 6% }
.bar > i.w-7 { width: 7% }
.bar > i.w-8 { width: 8% }
.bar > i.w-9 { width: 9% }
.bar > i.w-10 { width: 10% }
.bar > i.w-11 { width: 11% }
.bar > i.w-12 { width: 12% }
.bar > i.w-13 { width: 13% }
.bar > i.w-14 { width: 14% }
.bar > i.w-15 { width: 15% }
.bar > i.w-16 { width: 16% }
.bar > i.w-17 { width: 17% }
.bar > i.w-18 { width: 18% }
.bar > i.w-19 { width: 19% }
.bar > i.w-20 { width: 20% }
.bar > i.w-21 { width: 21% }
.bar > i.w-22 { width: 22% }
.bar > i.w-23 { width: 23% }
.bar > i.w-24 { width: 24% }
.bar > i.w-25 { width: 25% }
.bar > i.w-26 { width: 26% }
.bar > i.w-27 { width: 27% }
.bar > i.w-28 { width: 28% }
.bar > i.w-29 { width: 29% }
.bar > i.w-30 { width: 30% }
.bar > i.w-31 { width: 31% }
.bar > i.w-32 { width: 32% }
.bar > i.w-33 { width: 33% }
.bar > i.w-34 { width: 34% }
.bar > i.w-35 { width: 35% }
.bar > i.w-36 { width: 36% }
.bar > i.w-37 { width: 37% }
.bar > i.w-38 { width: 38% }
.bar > i.w-39 { width: 39% }
.bar > i.w-40 { width: 40% }
.bar > i.w-41 { width: 41% }
.bar > i.w-42 { width: 42% }
.bar > i.w-43 { width: 43% }
.bar > i.w-44 { width: 44% }
.bar > i.w-45 { width: 45% }
.bar > i.w-46 { width: 46% }
.bar > i.w-47 { width: 47% }
.bar > i.w-48 { width: 48% }
.bar > i.w-49 { width: 49% }
.bar > i.w-50 { width: 50% }
.bar > i.w-51 { width: 51% }
.bar > i.w-52 { width: 52% }
.bar > i.w-53 { width: 53% }
.bar > i.w-54 { width: 54% }
.bar > i.w-55 { width: 55% }
.bar > i.w-56 { width: 56% }
.bar > i.w-57 { width: 57% }
.bar > i.w-58 { width: 58% }
.bar > i.w-59 { width: 59% }
.bar > i.w-60 { width: 60% }
.bar > i.w-61 { width: 61% }
.bar > i.w-62 { width: 62% }
.bar > i.w-63 { width: 63% }
.bar > i.w-64 { width: 64% }
.bar > i.w-65 { width: 65% }
.bar > i.w-66 { width: 66% }
.bar > i.w-67 { width: 67% }
.bar > i.w-68 { width: 68% }
.bar > i.w-69 { width: 69% }
.bar > i.w-70 { width: 70% }
.bar > i.w-71 { width: 71% }
.bar > i.w-72 { width: 72% }
.bar > i.w-73 { width: 73% }
.bar > i.w-74 { width: 74% }
.bar > i.w-75 { width: 75% }
.bar > i.w-76 { width: 76% }
.bar > i.w-77 { width: 77% }
.bar > i.w-78 { width: 78% }
.bar > i.w-79 { width: 79% }
.bar > i.w-80 { width: 80% }
.bar > i.w-81 { width: 81% }
.bar > i.w-82 { width: 82% }
.bar > i.w-83 { width: 83% }
.bar > i.w-84 { width: 84% }
.bar > i.w-85 { width: 85% }
.bar > i.w-86 { width: 86% }
.bar > i.w-87 { width: 87% }
.bar > i.w-88 { width: 88% }
.bar > i.w-89 { width: 89% }
.bar > i.w-90 { width: 90% }
.bar > i.w-91 { width: 91% }
.bar > i.w-92 { width: 92% }
.bar > i.w-93 { width: 93% }
.bar > i.w-94 { width: 94% }
.bar > i.w-95 { width: 95% }
.bar > i.w-96 { width: 96% }
.bar > i.w-97 { width: 97% }
.bar > i.w-98 { width: 98% }
.bar > i.w-99 { width: 99% }
.bar > i.w-100 { width: 100% }

/* locked campaign teaser (anonymous visitors) */
.locked-panel { max-width: 560px; margin: 0 auto; padding: 30px 26px; }
.locked-panel .ico { color: var(--accent); opacity: .85; }
.locked-panel .lcta { margin-top: 18px; }

/* TOTP QR on the admin setup page */
.qr-wrap { display: flex; justify-content: center; padding: 14px; border-radius: var(--r-md);
           background: #fff; width: fit-content; margin: 0 auto; }
.qr-wrap img { display: block; border-radius: 4px; }

/* brandmark icon on auth/setup pages reads as a spinner unless it has visible stroke */
.authcard .brandmark .ico { stroke: #fff; stroke-width: 2; }
