/* RaPay creator dashboard. Brand: #F5AD27 orange, #000 black, #FFF white, #FFD400 yellow. */
:root {
  --bg: #000000; --panel: #0f0e0c; --card: #151411; --card-2: #1c1a16; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #ffffff; --muted: #a8a49c; --gold: #f5ad27; --yellow: #ffd400; --gold-soft: rgba(245,173,39,.13); --green: #3ddc84; --red: #ff6b6b;
  --r: 18px; --side: 260px;
  --font: "Google Sans", "Noto Sans Georgian", system-ui, sans-serif;
  --display: "Montserrat", "Google Sans", "Noto Sans Georgian", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.mt { margin-top: 22px; }

/* ---------- Layout ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; display: flex; flex-direction: column; gap: 8px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--panel); border-right: 1px solid var(--line); }
.side__brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 20px; font: italic 900 22px "Montserrat", sans-serif; }
.side__nav { display: grid; gap: 4px; }
.side__nav a, .side__back { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #d8d4cc; font-weight: 600; transition: background .2s, color .2s; }
.side__nav a:hover, .side__back:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side__nav a[aria-current="page"] { background: var(--gold-soft); color: var(--yellow); box-shadow: inset 3px 0 0 var(--gold); }
.side__nav svg, .side__back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side__back { margin-top: auto; color: var(--muted); }

.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; margin-left: var(--side); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 24px; background: rgba(0,0,0,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: #000; }
.top__menu { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); place-items: center; }
.top__menu svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.lang button { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 999px; }
.lang button[aria-pressed="true"] { background: var(--gold); color: #000; }

.main { margin-left: var(--side); padding: 32px max(24px, env(safe-area-inset-right, 0px)) 80px 32px; max-width: calc(1240px + var(--side)); }
.view { display: grid; gap: 22px; animation: fadein .35s ease; }
.view[hidden], [hidden] { display: none !important; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.loading { display: none; }
body.is-loading .loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 40px 0; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(245,173,39,.2); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.head h1 { font-size: clamp(24px, 3vw, 34px); }
.head p { color: var(--muted); margin-top: 6px; max-width: 70ch; }
.head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; }
.card h2 { font-size: 18px; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.card__head p { font-size: 13.5px; margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.grid2--even { grid-template-columns: 1fr 1fr; }
.grid2--design { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.col { display: grid; gap: 22px; min-width: 0; }
.card--tall { position: sticky; top: 88px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(245,173,39,.16), transparent 70%); }
.stat__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.stat__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.lari { font-style: normal; font-weight: 800; font-size: 20px; }
.stat__label { display: block; color: var(--muted); font-size: 13.5px; }
.stat__num { display: block; font-family: var(--display); font-size: 28px; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.stat__hint { display: block; color: var(--muted); font-size: 12.5px; }
.chip { position: absolute; top: 16px; right: 16px; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip.up { background: rgba(61,220,132,.12); color: var(--green); }

.copyrow { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; background: #000; border: 1px solid var(--line); }
.copyrow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px ui-monospace, "Cascadia Code", Consolas, monospace; color: #e8e4dc; }
.copyrow code.secret:not(.is-shown) { filter: blur(6px); user-select: none; }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: transform .2s, box-shadow .2s, border-color .2s; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(120deg, var(--gold), var(--yellow)); color: #000; box-shadow: 0 8px 22px rgba(245,173,39,.25); }
.btn--ghost { background: rgba(255,255,255,.03); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--sm { padding: 8px 14px; font-size: 13.5px; }
.btn--danger { color: var(--red); }
.row-end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.row-start { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.saved { color: var(--green); font-size: 14px; }

.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #000; border: 1px solid var(--line); width: fit-content; max-width: 100%; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; }
.seg button[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg--big { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; }
.seg--big button { padding: 12px; border-radius: 12px; font-size: 15px; }
.seg--big button[aria-selected="true"] { background: var(--gold-soft); color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(245,173,39,.35); }

label, .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
input:not([type]), input[type="text"], input[type="number"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; color: var(--text); transition: border-color .2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
textarea { resize: vertical; }
.hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.note { color: var(--muted); font-size: 13.5px; text-align: center; }
.warn { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(245,173,39,.08); border: 1px solid rgba(245,173,39,.25); color: #f3d9a4; font-size: 13.5px; }
.fields { display: grid; gap: 4px; }
.fields input, .fields textarea { margin-bottom: 12px; }
.form-grid { display: grid; gap: 22px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input-count { position: relative; }
.input-count .count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.prefix { display: flex; align-items: stretch; border-radius: 12px; border: 1px solid var(--line-2); background: #000; overflow: hidden; }
.prefix span { display: grid; place-items: center; padding: 0 12px; color: var(--muted); font-size: 14px; background: rgba(255,255,255,.03); border-right: 1px solid var(--line); white-space: nowrap; }
.prefix input { border: 0; border-radius: 0; min-width: 0; }
.prefix:focus-within { border-color: var(--gold); }

.avatar-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--card-2) center / cover no-repeat; border: 2px solid rgba(245,173,39,.4); display: grid; place-items: center; font: 800 34px var(--display); color: var(--gold); }
.avatar-row h3 { font-size: 16px; margin-bottom: 10px; }
.upload { position: relative; overflow: hidden; margin: 0; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.toggle { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; color: var(--muted); font-weight: 600; }
.toggle__track { width: 40px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.14); position: relative; transition: background .2s; }
.toggle__dot { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle[aria-checked="true"] .toggle__track { background: var(--gold); }
.toggle[aria-checked="true"] .toggle__dot { transform: translateX(18px); }
.toggle[aria-checked="true"] .toggle__on, .toggle[aria-checked="false"] .toggle__off { color: var(--text); }

.colorpick { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14px; }
.colorpick input[type="color"] { width: 100%; height: 44px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; cursor: pointer; }

/* ---------- Empty states, goals ---------- */
.empty { text-align: center; padding: 28px 12px; display: grid; justify-items: center; gap: 10px; }
.empty__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 6px; }
.empty__ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); max-width: 44ch; }
.empty .row-start { justify-content: center; }
.steps { display: grid; gap: 10px; width: 100%; max-width: 460px; margin: 8px auto 0; text-align: left; }
.steps li { list-style: none; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #000; border: 1px solid var(--line); font-weight: 600; }
.steps li b { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-family: var(--display); }
.steps ul { padding: 0; margin: 0; }

.goal { padding: 18px; border-radius: 16px; background: #000; border: 1px solid var(--line); }
.goal + .goal { margin-top: 12px; }
.goal__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.goal h3 { font-size: 16px; }
.goal p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.goal__nums { display: flex; justify-content: space-between; margin: 14px 0 8px; font-variant-numeric: tabular-nums; }
.goal__nums strong { font: 800 22px var(--display); }
.goal__nums span { color: var(--muted); align-self: flex-end; }
.bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--yellow)); min-width: 4px; }
.goal-form { display: grid; gap: 4px; }

.dlist { width: 100%; border-collapse: collapse; }
.dlist th, .dlist td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.dlist th { color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- Chart ---------- */
.chart { height: 220px; }
.chart svg { width: 100%; height: 100%; }
.chart .axis { stroke: rgba(255,255,255,.12); }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }

/* ---------- QR ---------- */
.qr-card { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; }
.qr-card__code { padding: 14px; border-radius: 20px; background: #000; border: 1px solid var(--line); }
.qr-card__code canvas { display: block; width: 200px; height: 200px; border-radius: 12px; }
.qr-card__body h2 { margin-bottom: 6px; }
.qr-card__body .f2 { margin-top: 18px; }

/* ---------- Stream ---------- */
.howto { margin: 14px 0 0; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.howto li { list-style: none; counter-increment: s; display: flex; gap: 12px; align-items: flex-start; color: #d8d4cc; }
.howto li::before { content: counter(s); width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-weight: 800; font-size: 13px; }

.ranges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0; }
.ranges > div:first-child { flex: 1 1 240px; }
.ranges__list { display: flex; gap: 8px; flex-wrap: wrap; }
.ranges__list button { border: 1px solid var(--line-2); background: #000; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-weight: 700; }
.ranges__list button[aria-pressed="true"] { border-color: var(--gold); color: var(--yellow); background: var(--gold-soft); }

.controls { display: grid; gap: 18px; margin-top: 18px; }
.ctl label { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ctl label output { color: var(--muted); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.ctl2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ctl-type { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: #000; }
.stepper button { width: 36px; height: 40px; border: 0; background: none; font-size: 18px; }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.boldbtn { height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; font-weight: 800; }
.boldbtn[aria-pressed="true"] { border-color: var(--gold); color: var(--yellow); }
.ctl-type input[type="color"], .ctl input[type="color"] { width: 100%; height: 42px; padding: 3px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; }
.media { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: #000; border: 1px solid var(--line); }
.media img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #111; }
.media .row-start { margin: 0; }

.preview-card { position: sticky; top: 88px; }
.stage-preview { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(245,173,39,.25), transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,212,0,.12), transparent 45%),
    repeating-linear-gradient(45deg, #121110 0 14px, #0b0a09 14px 28px); border: 1px solid var(--line); }
.alertbox { position: absolute; inset: 6%; border-radius: 16px; transition: opacity .4s ease, transform .4s ease; }
.alertbox.is-off { opacity: 0; transform: scale(.92); }
.alertbox.is-pop { animation: alertin .5s cubic-bezier(.2,.9,.3,1.3); }
@keyframes alertin { from { opacity: 0; transform: scale(.8) translateY(10px); } to { opacity: 1; transform: none; } }
.alertbox img { position: absolute; transform: translate(-50%, -50%); object-fit: contain; }
.a-name, .a-msg { position: absolute; left: 6%; right: 6%; transform: translateY(-50%); text-align: center; font-family: var(--display); line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,.7); overflow-wrap: anywhere; }

/* ---------- Wall ---------- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.wcard { display: grid; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.wcard__who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.wcard__who .avatar { width: 38px; height: 38px; font-size: 15px; border-width: 1px; }
.wcard__box { padding: 18px; border-radius: 14px; background: #000; min-height: 170px; display: flex; flex-direction: column; }
.wcard__box h3 { font-size: 16px; }
.wcard__box p { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.wcard__box .goal__nums { margin-top: auto; padding-top: 18px; }
.wcard__foot { display: flex; align-items: center; gap: 8px; }
.vote { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; font-weight: 700; font-variant-numeric: tabular-nums; }
.vote[aria-pressed="true"] { border-color: var(--gold); color: var(--yellow); }
.vote svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.wcard__foot .btn { margin-left: auto; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; padding: 12px 18px; border-radius: 12px; background: var(--card-2); border: 1px solid rgba(245,173,39,.4); color: var(--yellow); font-weight: 600; box-shadow: 0 14px 30px rgba(0,0,0,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid2, .grid2--design { grid-template-columns: 1fr; }
  .card--tall, .preview-card { position: static; }
}
@media (max-width: 900px) {
  .side { transform: translateX(-105%); transition: transform .3s ease; box-shadow: 20px 0 50px rgba(0,0,0,.6); }
  body.menu-open .side { transform: none; }
  .top, .main { margin-left: 0; }
  .top__menu { display: grid; }
  .main { padding: 22px max(16px, env(safe-area-inset-right, 0px)) 70px max(16px, env(safe-area-inset-left, 0px)); }
  .top { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .stats { grid-template-columns: 1fr; }
  .grid2--even, .f2, .ctl2 { grid-template-columns: 1fr; }
  .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .qr-card .row-start { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.test-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.test-grid__wide { grid-column: 1 / -1; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; background: var(--gold-soft); color: var(--gold); vertical-align: middle; }
@media (max-width: 900px) { .test-grid { grid-template-columns: 1fr; } }

/* checkbox rows (sound / read-aloud) */
.chk { display: flex; align-items: center; gap: 10px; margin: 4px 0; cursor: pointer; font-weight: 600; }
.chk input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
#t-snd-wrap select { flex: 1; min-width: 0; }

/* goal widget */
.gw-ctl { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.gw-ctl input[type=color] { width: 100%; height: 44px; padding: 4px; }
@media (max-width: 700px) { .gw-ctl { grid-template-columns: 1fr 1fr; } }
.gw-prev { --gc: #f5ad27; padding: 16px 20px; border-radius: 16px; margin-bottom: 14px; background: repeating-conic-gradient(#1a1a1a 0 25%, #121212 0 50%) 0 0 / 20px 20px; font-family: "Montserrat", sans-serif; }
.gw-prev.is-bg { box-shadow: inset 0 0 0 999px rgba(0,0,0,.55); }
.gw-top { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; font-weight: 900; margin-bottom: 10px; }
.gw-pp { color: var(--gc); }
.gw-bar { height: 22px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.gw-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gc), #ffd400); transition: width .6s; }
.gw-nums { margin-top: 8px; font-weight: 800; font-size: 14px; opacity: .9; }

/* widgets / media / stats */
.gw-ctl--5 { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
.gw-ctl--4 { grid-template-columns: auto auto 1fr 1fr; }
@media (max-width: 800px) { .gw-ctl--5, .gw-ctl--4 { grid-template-columns: 1fr 1fr; } }
.wg-prev { height: 300px; border-radius: 16px; overflow: hidden; margin-bottom: 14px; background: repeating-conic-gradient(#1a1a1a 0 25%, #121212 0 50%) 0 0 / 20px 20px; }
.wg-prev.is-ticker { height: 90px; }
.wg-prev iframe { width: 100%; height: 100%; border: 0; background: transparent; }
.stats--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .stats--5 { grid-template-columns: repeat(2, 1fr); } }
.bars { display: flex; align-items: stretch; gap: 4px; height: 200px; margin-top: 14px; }
.bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bar-col__v { flex: 1; display: flex; align-items: flex-end; }
.bar-col__v span { display: block; width: 100%; border-radius: 4px 4px 2px 2px; background: linear-gradient(0deg, #f5ad27, #ffd400); }
.bar-col small { font-size: 10px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.bars--7 .bar-col small { font-size: 12px; }
td.row-start { gap: 6px; flex-wrap: nowrap; }

/* polls / animations / api */
.side__extra { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 12px 6px; border-radius: 12px; color: var(--muted); font-weight: 600; }
.side__extra svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side__extra:hover, .side__extra[aria-current="page"] { color: #fff; background: rgba(255,255,255,.05); }
.pl-opts { display: grid; gap: 8px; margin-bottom: 10px; }
.pl-opt { display: flex; gap: 8px; } .pl-opt input { flex: 1; }
.pl-card.is-active { border-color: var(--gold); }
.pl-res { margin-top: 12px; } .pl-res__top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-weight: 600; }
.pl-res__top strong { color: var(--muted); white-space: nowrap; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 12px; }
.an-item { display: grid; justify-items: center; gap: 8px; padding: 14px 10px; border-radius: 14px; border: 1px solid var(--line); background: #000; color: var(--text); }
button.an-item { cursor: pointer; } button.an-item:hover { border-color: var(--gold); }
.an-item img { width: 100%; height: 90px; object-fit: contain; }
.an-item input { width: 100%; text-align: center; }
.an-emo { height: 56px; display: grid; place-items: center; }
.api-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
pre.code { margin: 10px 0 0; padding: 14px 16px; border-radius: 12px; background: #000; border: 1px solid var(--line); color: #e8e3d8; font: 13px/1.55 ui-monospace, Consolas, monospace; overflow-x: auto; white-space: pre; }

/* style pickers */
.stys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 6px 0 14px; }
@media (max-width: 800px) { .stys { grid-template-columns: repeat(3, 1fr); } }
.sty { display: grid; gap: 6px; justify-items: center; padding: 8px 6px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: #000; color: var(--muted); font-weight: 600; font-size: 12px; cursor: pointer; }
.sty[aria-pressed="true"] { border-color: var(--gold); color: #fff; box-shadow: 0 0 0 3px rgba(245,173,39,.18); }
.sty__pic { width: 100%; height: 34px; border-radius: 8px; background: #151411; position: relative; overflow: hidden; }
.sty__pic::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 8px; margin-top: -4px; border-radius: 99px; background: linear-gradient(90deg, #f5ad27 0 62%, rgba(255,255,255,.18) 62%); }
.sty__pic--g-neon { background: #0a0816; box-shadow: inset 0 0 0 1.5px #f5ad27, 0 0 10px rgba(245,173,39,.4); }
.sty__pic--g-neon::after { box-shadow: 0 0 8px #f5ad27; }
.sty__pic--g-glass, .sty__pic--w-glass { background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); }
.sty__pic--g-minimal { background: transparent; } .sty__pic--g-minimal::after { height: 4px; margin-top: -2px; }
.sty__pic--g-bold { background: #000; box-shadow: inset 0 0 0 2px #f5ad27; } .sty__pic--g-bold::after { height: 14px; margin-top: -7px; border-radius: 4px; background: repeating-linear-gradient(-45deg, #f5ad27 0 6px, #ffd400 6px 12px); right: 30%; }
.sty__pic--g-ring::after { left: 50%; right: auto; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: conic-gradient(#f5ad27 0 62%, rgba(255,255,255,.18) 62%); -webkit-mask: radial-gradient(circle, transparent 7px, #000 8px); mask: radial-gradient(circle, transparent 7px, #000 8px); }
[class*="sty__pic--w-"]::after { left: 14%; right: 14%; top: 22%; height: 4px; margin: 0; box-shadow: 0 9px 0 rgba(255,255,255,.3), 0 18px 0 rgba(255,255,255,.2); background: #f5ad27; }
.sty__pic--w-podium::after { top: auto; bottom: 0; left: 18%; right: auto; width: 20%; height: 22px; border-radius: 3px 3px 0 0; box-shadow: 16px 6px 0 #d9dde3, 32px 10px 0 #d08a4c; background: #f5ad27; }
.sty__pic--w-cards::after { height: 7px; border-radius: 3px; box-shadow: 0 10px 0 rgba(255,255,255,.25), 0 20px 0 rgba(255,255,255,.18); }
.sty__pic--w-neon { background: #0a0816; box-shadow: inset 0 0 0 1.5px #f5ad27, 0 0 10px rgba(245,173,39,.4); }
.sty__pic--w-minimal { background: transparent; }
.wg-prev.is-ring, #gw-prev.is-ring { height: 360px; }
#gw-prev { height: 200px; }
