/* ============================================================
   KIRO AFFILIATE PORTAL
   Lifted verbatim from mockup-creator-portal.html (the approved design).
   Light is the default and the designed one. Font served from /static.
   ============================================================ */

@font-face{
  font-family:'Roboto Condensed';
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
  src:url('/static/fonts/roboto-condensed.woff2') format('woff2');
}

/* ---- tokens : LIGHT is the design intent ---- */
:root{
  --bg:#FFFFFF;
  --band:#F2F2F2;
  --band-2:#EDEDED;
  --card:#FFFFFF;
  --line:#E0E0E0;
  --line-2:#D6D6D6;
  --ink:#000000;
  --body:#4D4D4D;
  --muted:#7F7F7F;
  --dark:#2E2E2E;
  --dark-2:#3E3E3E;
  --on-dark:#FFFFFF;
  --orange:#FF6400;
  --orange-ink:#000000;
  --orange-txt:#C24E00;
  --orange-wash:#FFF1E7;
  --orange-line:#FFC79E;
  --ok:#1E7A44;
  --ok-wash:#E8F4ED;
  --bad:#C0392B;
  --bad-wash:#FBECEA;
  --hold:#3E6E93;
  --hold-wash:#EAF1F6;
  --mock:#5F53A0;
  --mock-wash:#F1EFF9;
  --grey-btn:#D6D6D6;
  --grey-btn-hover:#C6C6C6;
  --field:#FFFFFF;
  --stripe:rgba(0,0,0,.05);
  --headbg:#000000;
  --thead:#2E2E2E;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#111315; --band:#191B1E; --band-2:#1E2124; --card:#16181B;
    --line:#2B2F33; --line-2:#3A3F45;
    --ink:#FFFFFF; --body:#C3C8CD; --muted:#8B9299;
    --dark:#0B0C0E; --dark-2:#141619; --on-dark:#FFFFFF;
    --orange:#FF6400; --orange-ink:#000000; --orange-txt:#FF8A3D;
    --orange-wash:#2A1608; --orange-line:#5C3011;
    --ok:#4FB47C; --ok-wash:#12251B;
    --bad:#E2695C; --bad-wash:#2A1614;
    --hold:#7FA8C7; --hold-wash:#151E26;
    --mock:#A79BDC; --mock-wash:#1B1826;
    --grey-btn:#33383D; --grey-btn-hover:#3F454B;
    --field:#0E1012;
    --stripe:rgba(255,255,255,.04);
    --headbg:#000000;
    --thead:#24282C;
  }
}
:root[data-theme="light"]{
  --bg:#FFFFFF; --band:#F2F2F2; --band-2:#EDEDED; --card:#FFFFFF;
  --line:#E0E0E0; --line-2:#D6D6D6;
  --ink:#000000; --body:#4D4D4D; --muted:#7F7F7F;
  --dark:#2E2E2E; --dark-2:#3E3E3E; --on-dark:#FFFFFF;
  --orange:#FF6400; --orange-ink:#000000; --orange-txt:#C24E00;
  --orange-wash:#FFF1E7; --orange-line:#FFC79E;
  --ok:#1E7A44; --ok-wash:#E8F4ED;
  --bad:#C0392B; --bad-wash:#FBECEA;
  --hold:#3E6E93; --hold-wash:#EAF1F6;
  --mock:#5F53A0; --mock-wash:#F1EFF9;
  --grey-btn:#D6D6D6; --grey-btn-hover:#C6C6C6;
  --field:#FFFFFF;
  --stripe:rgba(0,0,0,.05);
  --headbg:#000000;
  --thead:#2E2E2E;
}
:root[data-theme="dark"]{
  --bg:#111315; --band:#191B1E; --band-2:#1E2124; --card:#16181B;
  --line:#2B2F33; --line-2:#3A3F45;
  --ink:#FFFFFF; --body:#C3C8CD; --muted:#8B9299;
  --dark:#0B0C0E; --dark-2:#141619; --on-dark:#FFFFFF;
  --orange:#FF6400; --orange-ink:#000000; --orange-txt:#FF8A3D;
  --orange-wash:#2A1608; --orange-line:#5C3011;
  --ok:#4FB47C; --ok-wash:#12251B;
  --bad:#E2695C; --bad-wash:#2A1614;
  --hold:#7FA8C7; --hold-wash:#151E26;
  --mock:#A79BDC; --mock-wash:#1B1826;
  --grey-btn:#33383D; --grey-btn-hover:#3F454B;
  --field:#0E1012;
  --stripe:rgba(255,255,255,.04);
  --headbg:#000000;
  --thead:#24282C;
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{
  background:var(--bg);
  color:var(--body);
  font-family:'Roboto Condensed','Arial Narrow',Arial,sans-serif;
  font-weight:400;
  font-size:16px;
  line-height:1.55;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3{
  font-weight:600;text-transform:uppercase;color:var(--ink);
  margin:0;line-height:1.15;text-wrap:balance;
}
img,svg{max-width:100%}
button{font:inherit}
:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
@media (prefers-reduced-motion: reduce){*{transition:none!important}}

.wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.lbl{font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

/* orange rule — the site's signature heading device.
   Measured on kiro-inc.com: 160 × 7px under a 30px heading, 30px below it.
   Expressed in em so it holds that ratio under the 40px hero h1 and the 19px card h2. */
.rulebar::after{
  content:"";display:block;background:var(--orange);
  width:5.33em;height:.233em;margin-top:.7em;
}

/* ══ site header — 110px black bar ══ */
.site-head{background:var(--headbg);color:#fff}
.site-head .inner{
  max-width:1180px;margin:0 auto;padding:14px 24px;min-height:110px;
  display:flex;align-items:center;gap:22px;flex-wrap:wrap;
}
.logo{height:34px;width:auto;display:block;flex:0 0 auto}
.site-head nav{display:flex;gap:26px;flex-wrap:wrap}
.site-head nav a{
  color:#fff;text-decoration:none;font-weight:600;text-transform:uppercase;
  font-size:15px;letter-spacing:.02em;padding-bottom:5px;border-bottom:2px solid transparent;
}
.site-head nav a[aria-current="page"]{border-bottom-color:var(--orange)}
.site-head nav a:hover{border-bottom-color:#fff}
.site-head .push{flex:1 1 auto}
.who{display:flex;align-items:center;gap:11px;min-width:0}
.who .av{
  width:36px;height:36px;flex:0 0 auto;background:var(--orange);color:#000;
  display:grid;place-items:center;font-weight:600;font-size:14px;border-radius:3px;
}
.who .nm{color:#fff;font-weight:600;font-size:15px;line-height:1.2;text-transform:uppercase}
.who .hd{color:#B9BCBF;font-size:13px;line-height:1.3}
.hactions{display:flex;align-items:center;gap:22px}
.hbtn{
  background:transparent;border:1px solid #55585B;color:#fff;border-radius:3px;
  padding:8px 14px;font-weight:600;font-size:13px;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;
  display:inline-flex;align-items:center;gap:8px;
}
.hbtn:hover{border-color:#fff}
.hbtn-ic{display:none;flex:0 0 auto}
/* Mobile: sign-out and the theme toggle collapse to icon-only squares, pinned
   right via .hactions; the Shop link drops out of the nav entirely. Desktop
   keeps the text buttons and the Shop link untouched. */
@media (max-width:640px){
  .shop-link{display:none}
  .hactions{margin-left:auto;gap:8px}
  .hbtn{padding:0;width:38px;height:38px;justify-content:center;gap:0}
  .hbtn-txt{display:none}
  .hbtn-ic{display:block}
}

/* ══ hero ══ */
.hero{padding:44px 0 30px}
.hero h1{font-size:clamp(28px,4vw,40px);letter-spacing:.005em}
.hero .lede{margin:20px 0 0;font-size:17px;max-width:66ch}
/* .wrap is border-box with max-width:1180px, so its rendered width is
   min(viewport,1180) — the auto-centering margin is only (viewport-1180)/2
   per side. That margin doesn't reach 24px (.wrap's own left/right padding,
   which .hero's padding shorthand above zeroes out) until viewport hits
   1180 + 24 + 24 = 1228px. Below that, restore the padding directly; at or
   above it the margin alone already covers the 24px inset. */
@media (max-width:1228px){
  .hero{padding:44px 24px 30px}
}

/* ══ summary tiles ══ */
.tileband{background:var(--band);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:26px 0}
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tile{background:var(--card);border:1px solid var(--line);border-radius:3px;padding:16px 18px;min-width:0}
.tile .val{
  font-size:27px;font-weight:600;color:var(--ink);margin-top:8px;line-height:1.1;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere;
}
/* --orange (#FF6400) on the white tile measures 2.97:1 — under the 3:1 floor
   for large text and well under 4.5:1 for normal. --orange-txt exists for
   exactly this and is already used elsewhere (.orange-txt, .editcode summary).
   Pre-existing: it affects the discount-code tile today. */
.tile .val.orange{color:var(--orange-txt)}
.tile .val.hold{color:var(--hold)}
.tile .val.muted{color:var(--muted)}
/* A tile whose value is words rather than a number — "Unlimited lifetime" at
   the 27px display size overflows a fifth-of-a-row column. No inline styles
   here: `style-src 'self'` discards them (see app.css). */
.tile .val.words{font-size:20px}
.tile .note{font-size:14px;color:var(--body);margin-top:7px;line-height:1.4}
/* Five tiles, not four (the warranty tile). The 4-column base above would
   orphan the fifth on a row of its own, so the full-width case goes to five
   and the mid range to three. Ordered AFTER the 900px rule on purpose: the
   820–900px overlap resolves to three columns, and below 820px the 2-column
   rule takes over unopposed. */
@media (max-width:900px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1180px){.tiles{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media (max-width:1179px) and (min-width:820px){.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:460px){.tiles{grid-template-columns:minmax(0,1fr)}}

/* compact icon-button, for the code tile where a full "Copy code" button
   doesn't fit — reuses the same data-copy mechanism as the .btn one on the
   discount-code card below. */
.tile.has-copy{position:relative}
.copybtn{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  min-width:28px;height:28px;padding:0 6px;flex:0 0 auto;border:0;border-radius:3px;
  background:var(--grey-btn);color:var(--ink);cursor:pointer;
  font-weight:600;font-size:11px;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;
}
.copybtn:hover{background:var(--grey-btn-hover)}
.copybtn svg{width:14px;height:14px;flex:0 0 auto}
/* The tile can carry two actions now (Edit, Copy), so the ROW is what gets
   positioned — not each button. An earlier version pinned .copybtn itself, and a
   second absolutely-positioned button simply stacked on top of the first. */
.tile.has-copy .tileacts{position:absolute;top:16px;right:16px;display:flex;gap:6px;align-items:center}
/* Edit is an <a> styled as a button: kill the link colour/underline it would
   otherwise inherit, and keep the label from being dragged onto a second line
   when the tile is narrow. */
.tileacts a.copybtn{text-decoration:none;color:var(--ink)}
.tileacts a.copybtn:hover{text-decoration:none}
/* Below 1180px the tiles drop to 3 and then 2 columns and the code can run long.
   The word "Edit" is the first thing to go — the pencil still says what it does,
   and the label is only there to remove doubt when there is room for it. */
@media (max-width:1179px){.tileacts a.copybtn span{display:none}}

/* ══ cards ══ */
.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:22px;align-items:start;padding:38px 0 10px}
.col6{grid-column:span 6}
.col12{grid-column:span 12}
@media (max-width:940px){.col6{grid-column:span 12}}
/* Same .wrap-padding-override defect as .hero above (see comment there):
   .grid's padding shorthand zeroes .wrap's left/right 24px, so restore it
   below the 1228px width where .wrap's centering margin stops covering it. */
@media (max-width:1228px){
  .grid{padding:38px 24px 10px}
}

.card{background:var(--card);border:1px solid var(--line);border-radius:3px;min-width:0;overflow:hidden}
.card > .head{
  background:var(--band);border-bottom:1px solid var(--line);
  padding:16px 20px;display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;
}
.card > .head .t{min-width:0;flex:1 1 260px}
.card > .head h2{font-size:19px}
.card > .head .gate{margin-top:11px;font-size:13.5px;color:var(--muted)}
.body{padding:22px 20px}
.body + .body{border-top:1px solid var(--line)}

.kv{display:flex;flex-wrap:wrap;gap:16px 34px}
.kv > div{min-width:0}
.kv .v{font-size:16px;color:var(--ink);margin-top:3px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
hr.rule{border:0;border-top:1px solid var(--line);margin:20px 0}
.note{font-size:14.5px;color:var(--body);line-height:1.5}
.small{font-size:13.5px;color:var(--muted)}

/* status chip */
.chip{
  display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;
  letter-spacing:.09em;text-transform:uppercase;padding:6px 11px;border-radius:3px;
  border:1px solid var(--line-2);color:var(--body);background:var(--band-2);white-space:nowrap;
}
.chip::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:0 0 auto}
.chip.flat::before{display:none}
.chip.ok{color:var(--ok);border-color:var(--ok);background:var(--ok-wash)}
.chip.hold{color:var(--hold);border-color:var(--hold);background:var(--hold-wash)}
.chip.bad{color:var(--bad);border-color:var(--bad);background:var(--bad-wash)}
.chip.live{color:#000;border-color:var(--orange);background:var(--orange)}

/* buttons — kiro-inc.com: 3px radius, 14/28, weight 600, BLACK text on orange */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  border:0;border-radius:3px;padding:14px 28px;cursor:pointer;
  font-weight:600;font-size:15px;letter-spacing:.05em;text-transform:uppercase;
  background:var(--grey-btn);color:var(--ink);text-decoration:none;
}
.btn:hover{background:var(--grey-btn-hover)}
.btn.primary{background:var(--orange);color:var(--orange-ink)}
.btn.primary:hover{background:#E65A00}
.btn.sm{padding:10px 18px;font-size:13.5px}
.btn[disabled]{background:var(--band-2);color:var(--muted);cursor:not-allowed;box-shadow:0 0 0 1px var(--line) inset}
.btn[disabled]:hover{background:var(--band-2)}

/* callouts */
.callout{
  border-left:4px solid var(--orange);background:var(--orange-wash);
  padding:15px 18px;display:flex;gap:13px;align-items:flex-start;border-radius:0 3px 3px 0;
}
.callout .ico{color:var(--orange);flex:0 0 auto;margin-top:2px;width:19px;height:19px}
.callout .tx{font-size:15px;line-height:1.5;color:var(--body)}
.callout .tx b{display:block;color:var(--ink);text-transform:uppercase;font-weight:600;font-size:14.5px;letter-spacing:.05em;margin-bottom:4px}
.callout.steel{border-left-color:var(--hold);background:var(--hold-wash)}
.callout.steel .ico{color:var(--hold)}

/* colour swatches */
.swatches{display:flex;gap:12px;flex-wrap:wrap}
.sw{
  position:relative;border:1px solid var(--line-2);background:var(--card);border-radius:3px;
  padding:11px 15px 11px 12px;cursor:pointer;display:flex;align-items:center;gap:11px;min-width:0;
}
.sw input{position:absolute;opacity:0;width:1px;height:1px}
.sw .dot{width:22px;height:22px;border-radius:3px;border:1px solid rgba(0,0,0,.28);flex:0 0 auto}
.sw .nm{font-weight:600;color:var(--ink);font-size:15px;white-space:nowrap;text-transform:uppercase;letter-spacing:.02em}
.sw .st{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.sw:has(input:checked){border-color:var(--orange);box-shadow:0 0 0 1px var(--orange) inset}
.sw.locked{cursor:default}

/* forms */
.form{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.f{display:flex;flex-direction:column;gap:6px;min-width:0}
.f.s2{grid-column:span 2}.f.s3{grid-column:span 3}.f.s4{grid-column:span 4}.f.s6{grid-column:span 6}
.f input,.f select{
  font-family:inherit;font-size:15.5px;color:var(--ink);background:var(--field);
  border:1px solid var(--line-2);border-radius:3px;padding:11px 12px;width:100%;min-width:0;
}
.f input::placeholder{color:var(--muted)}
.f .hint{font-size:13px;color:var(--muted)}
.f textarea{
  font-family:inherit;font-size:15.5px;line-height:1.5;color:var(--ink);background:var(--field);
  border:1px solid var(--line-2);border-radius:3px;padding:11px 12px;width:100%;min-width:0;
  resize:vertical;min-height:96px;
}
@media (max-width:640px){.f.s2,.f.s3,.f.s4{grid-column:span 6}}

/* The two ways to start the code, side by side and equally weighted. Picking a
   date is not a lesser option than activating now — for a creator still editing
   it is the right one, and the layout should not argue otherwise. */
.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.choices > form{border:1px solid var(--line-2);border-radius:3px;padding:18px 20px;
  display:flex;flex-direction:column;gap:12px}
.choices h4{margin:0;font-size:15.5px}
.choices .note{margin:0}
.choices .push{flex:1}
@media (max-width:640px){.choices{grid-template-columns:1fr}}

/* next-stage panel */
.nextup{
  border:1px solid var(--orange-line);background:var(--orange-wash);
  border-radius:3px;padding:22px 24px;
}
.nextup .hd{display:flex;align-items:center;gap:11px;margin-bottom:10px}
.nextup .hd .ico{color:var(--orange);flex:0 0 auto}
.nextup h3{font-size:17px;color:var(--ink)}
.checks{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:11px}
.checks li{display:flex;gap:12px;align-items:flex-start;font-size:15px;color:var(--body)}
.checks .mk{
  width:19px;height:19px;flex:0 0 auto;border-radius:3px;border:1px solid var(--line-2);
  display:grid;place-items:center;font-size:12px;font-weight:600;margin-top:2px;color:var(--muted);background:var(--card);
}
.checks .mk.on{background:var(--ok-wash);border-color:var(--ok);color:var(--ok)}

/* coupon plate */
.plate{
  border:1px solid var(--orange);background:var(--orange-wash);border-radius:3px;
  padding:22px;display:flex;align-items:center;gap:20px;flex-wrap:wrap;
}
.plate .code{
  font-weight:600;font-size:clamp(26px,5vw,40px);color:var(--ink);line-height:1.05;
  letter-spacing:.02em;overflow-wrap:anywhere;min-width:0;text-transform:uppercase;
}
.plate .sub{font-size:15px;color:var(--body);margin-top:5px;text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.plate .push{flex:1 1 auto}
.plate.off{border-color:var(--line-2);background:var(--band)}
.plate.off .code{color:var(--muted)}

/* 30-day tick bar */
.ticks{display:flex;gap:3px;margin:20px 0 9px}
.ticks i{display:block;flex:1 1 0;min-width:0;height:22px;border-radius:1px;background:var(--band-2);border:1px solid var(--line)}
.ticks i.on{background:var(--orange);border-color:var(--orange)}
.ticklab{display:flex;justify-content:space-between;gap:14px;font-size:13.5px;color:var(--muted);flex-wrap:wrap}
.ticklab .mid{color:var(--ink);font-weight:600}

/* orders table */
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:3px}
table{border-collapse:collapse;width:100%;min-width:700px}
thead th{
  background:var(--thead);color:var(--on-dark);text-align:left;
  font-size:12.5px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
  padding:13px 15px;white-space:nowrap;
}
tbody td{padding:13px 15px;border-bottom:1px solid var(--line);font-size:15px;vertical-align:top;color:var(--body)}
tbody tr:last-child td{border-bottom:0}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
td.prod{color:var(--ink)}
td.c{color:var(--ink);font-weight:600}
tbody tr.void td{color:var(--muted)}
tbody tr.void td.prod{color:var(--muted)}
tbody tr.void td.c{color:var(--bad)}
tfoot td{padding:13px 15px;background:var(--band);font-size:15px;font-weight:600;color:var(--ink);border-top:1px solid var(--line)}

@media (max-width:760px){
  .tablewrap{overflow-x:visible}
  table{min-width:0;display:block}
  thead{display:none}
  tbody,tfoot{display:block}
  tbody tr,tfoot tr{display:block;border-bottom:1px solid var(--line);padding:12px 15px}
  tbody tr:last-child{border-bottom:0}
  tbody td,tfoot td{
    display:flex;justify-content:space-between;align-items:baseline;gap:16px;
    border:0;padding:4px 0;text-align:right;background:none;
  }
  tbody td::before,tfoot td::before{
    content:attr(data-l);flex:0 0 auto;text-align:left;
    font-size:12px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);
  }
  tfoot tr{background:var(--band)}
}

/* payout ledger */
.ledger{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ledger > div{background:var(--band);border:1px solid var(--line);border-radius:3px;padding:16px 18px;min-width:0}
.ledger .amt{font-size:26px;font-weight:600;color:var(--ink);margin-top:7px;font-variant-numeric:tabular-nums;line-height:1.1}
.ledger .amt.hold{color:var(--hold)}
.ledger .amt.orange{color:var(--orange)}
.ledger .sub{font-size:13.5px;color:var(--muted);margin-top:5px;line-height:1.4}
@media (max-width:720px){.ledger{grid-template-columns:minmax(0,1fr)}}

/* timeline */
.steps{list-style:none;margin:0 0 16px;padding:0}
.steps li{display:flex;gap:14px;padding:0 0 16px;position:relative}
.steps li:not(:last-child)::before{content:"";position:absolute;left:8px;top:18px;bottom:0;width:1px;background:var(--line-2)}
.steps .pt{width:17px;height:17px;flex:0 0 auto;border-radius:50%;border:1px solid var(--line-2);background:var(--card);margin-top:2px;z-index:1}
.steps li.done .pt{background:var(--ok);border-color:var(--ok)}
.steps li.now .pt{background:var(--orange);border-color:var(--orange)}
.steps .tx{font-size:15px;color:var(--body)}
.steps .tx b{font-weight:600;color:var(--ink);text-transform:uppercase;letter-spacing:.03em}
.steps .tx span{display:block;font-size:13.5px;color:var(--muted);margin-top:2px}

/* footer */
.foot{background:var(--dark);color:#B9BCBF;margin-top:44px;padding:30px 0}
.foot .inner{display:flex;gap:22px;flex-wrap:wrap;align-items:center;font-size:14.5px}
.foot b{color:#fff;font-weight:600;text-transform:uppercase;letter-spacing:.08em;font-size:13px}
.foot .push{flex:1 1 auto}

/* footer contact — "Need anything?" (MOSHE-FEEDBACK-AUG6.md item 11). The
   footer is always dark regardless of page theme, same as the rest of .foot,
   so one rule covers both themes. */
.foot .contact{display:flex;align-items:center;gap:12px}
.foot .contact-label{font-size:13px;color:#B9BCBF;text-transform:uppercase;letter-spacing:.06em}
.foot .contact-link{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;flex:0 0 auto;border-radius:3px;color:#B9BCBF;
  border:1px solid rgba(255,255,255,.18);text-decoration:none;
}
.foot .contact-link:hover{color:#fff;border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.06)}
@media (max-width:520px){.foot .contact-label{display:none}}

/* Edit-code / edit-payout-method disclosures — a quiet link that opens a
   small inline form, no page navigation. */
.editcode summary{
  cursor:pointer;color:var(--orange-txt);font-weight:600;font-size:13px;
  text-transform:uppercase;letter-spacing:.05em;list-style:none;
}
.editcode summary::-webkit-details-marker{display:none}
.editcode summary:hover{text-decoration:underline}
.editcode-form{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap;align-items:center}
.editcode-form input[type="text"]{
  font-family:inherit;font-size:15px;color:var(--ink);background:var(--field);
  border:1px solid var(--line-2);border-radius:3px;padding:9px 11px;
  text-transform:uppercase;max-width:220px;min-width:0;
}

/* Payout-method form: show only the picked method's fields. Falls back to
   showing everything where :has() is unsupported — the server validates
   per-method either way. */
form:has(input[name="method"][value="zelle"]:checked) .pm-bank{display:none}
form:has(input[name="method"][value="bank_transfer"]:checked) .pm-zelle{display:none}

/* show/hide password toggle on the auth pages */
.pwwrap{position:relative}
.pwwrap input{width:100%;padding-right:42px}
.pwtoggle{
  position:absolute;top:50%;right:6px;transform:translateY(-50%);
  display:flex;align-items:center;justify-content:center;
  width:32px;height:32px;padding:0;border:0;border-radius:6px;
  background:transparent;color:var(--mut,#9a958e);cursor:pointer;
}
.pwtoggle:hover{color:var(--ink,#e8e6e3)}
.pwtoggle .pw-hide{display:none}
.pwtoggle.is-showing .pw-show{display:none}
.pwtoggle.is-showing .pw-hide{display:block}
