/* ROYAL ACE STUDIO — design system (23.10.2026)
   One accent only: gold. Night surfaces, hairline borders, large tabular numbers with small quiet labels.
   Type: Segoe UI Variable (Windows 11, offline) -> Inter -> system. Mono: Cascadia Mono / Consolas.
   Loaded by every tool page (hub, cruncher, ROYAL RIG, RTP MASTER) so the whole studio reads as one product. */

:root {
  --ra-bg: #07090e;
  --ra-bg-2: #0b0e15;
  --ra-surface: #10141c;
  --ra-surface-2: #161c26;
  --ra-surface-3: #1c2330;
  --ra-line: #212a37;
  --ra-line-2: #2c3747;
  --ra-text: #eef2f7;
  --ra-text-2: #c3cbd8;
  --ra-muted: #8a94a6;
  --ra-dim: #5b6677;
  --ra-gold: #ffc83d;
  --ra-gold-2: #ffd978;
  --ra-gold-deep: #c9971a;
  --ra-gold-ink: #1a1403;
  --ra-green: #19d39a;
  --ra-red: #ff5c6c;
  --ra-blue: #4c8dff;
  --ra-violet: #8b7cff;
  --ra-radius-s: 8px;
  --ra-radius: 14px;
  --ra-radius-l: 20px;
  --ra-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .03) inset;
  --ra-glow-gold: 0 0 0 1px rgba(255, 200, 61, .35), 0 8px 30px rgba(255, 200, 61, .12);
  --ra-font: "Segoe UI Variable Text", "Segoe UI Variable", Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --ra-font-display: "Segoe UI Variable Display", "Segoe UI Variable", Inter, "Segoe UI", system-ui, sans-serif;
  --ra-mono: "Cascadia Mono", "JetBrains Mono", Consolas, ui-monospace, monospace;
  --ra-sidebar: 232px;
  --ra-topbar: 60px;
  --ra-content: 1320px;
  --ra-ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--ra-bg);
  color: var(--ra-text);
  font-family: var(--ra-font);
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}
body.ra-stars::before {
  /* the quiet night sky behind everything: two tiny star layers, no movement */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 9%, rgba(255,255,255,.28) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 62%, rgba(255,200,61,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 76%, rgba(255,255,255,.25) 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 31%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 48%, rgba(255,255,255,.18) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 88%, rgba(255,200,61,.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 29%, rgba(255,255,255,.22) 50%, transparent 51%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
a { color: var(--ra-gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--ra-font-display); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 30px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 20px; font-weight: 650; line-height: 1.25; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
code, kbd, .ra-mono { font-family: var(--ra-mono); font-size: 12.5px; }
kbd { background: var(--ra-surface-3); border: 1px solid var(--ra-line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; font-size: 11px; color: var(--ra-text-2); }
:focus-visible { outline: 2px solid var(--ra-gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255, 200, 61, .25); }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ----------------------------------------------------------------------------------------------- shell */
.ra-shell { display: grid; grid-template-columns: var(--ra-sidebar) 1fr; min-height: 100vh; position: relative; z-index: 1; }
.ra-side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px;
  background: linear-gradient(180deg, #0c1017 0%, #090c12 100%); border-right: 1px solid var(--ra-line);
}
.ra-brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 18px; }
.ra-brand .ra-logo { width: 40px; height: 40px; flex: none; }
.ra-brand b { display: block; font-family: var(--ra-font-display); font-size: 15px; letter-spacing: .02em; line-height: 1.1; }
.ra-brand small { display: block; color: var(--ra-muted); font-size: 11.5px; margin-top: 2px; }
.ra-nav { display: flex; flex-direction: column; gap: 4px; }
.ra-nav a, .ra-nav button {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent;
  color: var(--ra-text-2); background: transparent; font: inherit; font-size: 14px; cursor: pointer; text-align: left; width: 100%;
  transition: background .15s var(--ra-ease), color .15s, border-color .15s;
}
.ra-nav a:hover, .ra-nav button:hover { background: var(--ra-surface); color: var(--ra-text); text-decoration: none; }
.ra-nav a.on, .ra-nav button.on { background: var(--ra-surface-2); border-color: var(--ra-line-2); color: var(--ra-text); }
.ra-nav .ra-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ra-surface-2); border: 1px solid var(--ra-line); color: var(--ra-gold); flex: none; }
.ra-nav .on .ra-ico { background: rgba(255, 200, 61, .12); border-color: rgba(255, 200, 61, .35); }
.ra-nav .ra-ico svg { width: 18px; height: 18px; }
.ra-nav .t { display: flex; flex-direction: column; min-width: 0; }
.ra-nav .t small { color: var(--ra-dim); font-size: 11px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ra-nav .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ra-dim); flex: none; }
.ra-nav .dot.live { background: var(--ra-green); box-shadow: 0 0 0 3px rgba(25, 211, 154, .18); }
.ra-side .ra-foot { margin-top: auto; color: var(--ra-dim); font-size: 11px; padding: 10px 8px 0; line-height: 1.5; }
.ra-main { min-width: 0; display: flex; flex-direction: column; }
.ra-top {
  height: var(--ra-topbar); display: flex; align-items: center; gap: 12px; padding: 0 22px; position: sticky; top: 0; z-index: 5;
  background: rgba(7, 9, 14, .78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--ra-line);
}
.ra-top .ra-crumb { font-size: 13px; color: var(--ra-muted); display: flex; align-items: center; gap: 8px; }
.ra-top .ra-crumb b { color: var(--ra-text); font-weight: 600; }
.ra-top .ra-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ra-content { padding: 24px 22px 60px; max-width: var(--ra-content); width: 100%; margin: 0 auto; }
.ra-page { display: flex; flex-direction: column; gap: 18px; }
.ra-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ra-page-head p { color: var(--ra-muted); max-width: 70ch; margin-top: 6px; font-size: 14.5px; }

/* ----------------------------------------------------------------------------------------------- hero / home */
.ra-hero {
  position: relative; overflow: hidden; border-radius: var(--ra-radius-l); border: 1px solid var(--ra-line);
  background: radial-gradient(1200px 400px at 10% -20%, rgba(255, 200, 61, .14), transparent 60%), linear-gradient(180deg, #11161f, #0b0f16);
  padding: 34px 32px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; box-shadow: var(--ra-shadow);
}
.ra-hero h1 { font-size: 40px; line-height: 1.05; }
.ra-hero h1 .gold { color: var(--ra-gold); }
.ra-hero p { color: var(--ra-text-2); font-size: 15.5px; margin-top: 12px; max-width: 56ch; }
.ra-hero .ra-actions { margin-top: 22px; }
.ra-hero .ra-ace { position: absolute; right: -40px; top: -60px; width: 380px; height: 380px; opacity: .22; pointer-events: none; filter: blur(.2px); }
/* delivered art (ui/ra/img, order 23.10.2026): the hero card picture sits on the right, text keeps a dark left third */
.ra-hero.has-img { background-image: linear-gradient(90deg, #10151e 0%, #10151e 34%, rgba(16, 21, 30, .55) 58%, rgba(16, 21, 30, 0) 100%), url("img/hero.webp"); background-size: cover, cover; background-position: center, right center; background-repeat: no-repeat; }
.ra-hero.has-img .ra-ace { display: none; }
.ra-hero.has-img .ra-kpi { background: rgba(10, 13, 19, .72); backdrop-filter: blur(6px); }
.ra-tile .ra-art { width: 72px; height: 72px; object-fit: contain; display: block; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .55)); }
.ra-empty.art { background: url("img/empty.png") no-repeat center 18px / 200px auto; padding-top: 150px; }
.ra-empty.art.success { background-image: url("img/state_success.png"); } .ra-empty.art.error { background-image: url("img/state_error.png"); }
.ra-empty.art.loading { background-image: url("img/state_loading.png"); } .ra-empty.art.offline { background-image: url("img/state_offline.png"); }
.ra-empty.art.nothing { background-image: url("img/state_nothing_found.png"); }
/* page head with a delivered hero picture (charge 2): --hero names the picture, the left third stays dark for the text */
.ra-page-head.hero { position: relative; border-radius: var(--ra-radius-l); border: 1px solid var(--ra-line); padding: 26px 28px; min-height: 196px; align-items: flex-end;
  background-image: linear-gradient(90deg, #0b0f16 0%, #0b0f16 34%, rgba(11, 15, 22, .45) 62%, rgba(11, 15, 22, 0) 100%), var(--hero); background-size: cover, cover; background-position: center, right center; background-repeat: no-repeat; box-shadow: var(--ra-shadow); }
.ra-page-head.hero p { color: var(--ra-text-2); }
.ra-page-head.hero.rig { --hero: url("img/hero_rig.webp"); } .ra-page-head.hero.rtp { --hero: url("img/hero_rtp.webp"); } .ra-page-head.hero.cruncher { --hero: url("img/hero_cruncher.webp"); }
.ra-page-head.hero.dev { --hero: url("img/hero_dev.webp"); } .ra-page-head.hero.lut { --hero: url("img/hero_lut.webp"); } .ra-page-head.hero.info { --hero: url("img/hero_info.webp"); }
/* step icons (charge 2): <img class="ico" src="img/step_*.png"> next to the number */
.ra-step img.ico { width: 42px; height: 42px; object-fit: contain; flex: none; margin: -6px 0 -6px -4px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
.ra-seal { width: 22px; height: 22px; vertical-align: middle; object-fit: contain; }
.ra-badge-star { width: 26px; height: 26px; vertical-align: middle; object-fit: contain; }
.ra-chip-img { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin-right: 4px; }
.ra-splash { width: 100%; aspect-ratio: 1200 / 700; object-fit: cover; border-radius: var(--ra-radius-l); border: 1px solid var(--ra-line); display: block; }
.ra-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-content: start; }
.ra-kpi { background: rgba(16, 20, 28, .75); border: 1px solid var(--ra-line); border-radius: var(--ra-radius); padding: 14px 16px; }
.ra-kpi .v { font-family: var(--ra-font-display); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.ra-kpi .k { color: var(--ra-muted); font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.ra-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ra-green); box-shadow: 0 0 0 3px rgba(25, 211, 154, .16); }

/* ----------------------------------------------------------------------------------------------- cards + tiles */
.ra-grid { display: grid; gap: 14px; }
.ra-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.ra-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.ra-grid.c4 { grid-template-columns: repeat(4, 1fr); }
.ra-card { background: var(--ra-surface); border: 1px solid var(--ra-line); border-radius: var(--ra-radius); padding: 18px 20px; box-shadow: 0 1px 0 rgba(255, 255, 255, .02) inset; }
.ra-card.pad0 { padding: 0; overflow: hidden; }
.ra-card > h2, .ra-card > h3 { margin-bottom: 10px; }
.ra-eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: .04em; color: var(--ra-gold); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ra-eyebrow.green { color: var(--ra-green); } .ra-eyebrow.blue { color: var(--ra-blue); } .ra-eyebrow.violet { color: var(--ra-violet); } .ra-eyebrow.red { color: var(--ra-red); }
.ra-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--ra-radius-l); background: linear-gradient(180deg, var(--ra-surface-2), var(--ra-surface));
  border: 1px solid var(--ra-line); min-height: 196px; position: relative; transition: border-color .15s, transform .25s var(--ra-ease);
}
.ra-tile:hover { border-color: var(--ra-line-2); }
.ra-tile .ra-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 200, 61, .1); border: 1px solid rgba(255, 200, 61, .3); color: var(--ra-gold); }
.ra-tile .ra-ico svg { width: 22px; height: 22px; }
.ra-tile h3 { font-size: 17px; }
.ra-tile p { color: var(--ra-muted); font-size: 13.5px; flex: 1; }
.ra-tile .ra-actions { margin-top: 4px; }
.ra-tile .st { position: absolute; top: 18px; right: 18px; }
.ra-stat { background: var(--ra-bg-2); border: 1px solid var(--ra-line); border-radius: var(--ra-radius); padding: 12px 14px; }
.ra-stat .v { font-family: var(--ra-font-display); font-size: 22px; font-weight: 700; line-height: 1.15; }
.ra-stat .v.gold { color: var(--ra-gold); } .ra-stat .v.green { color: var(--ra-green); } .ra-stat .v.red { color: var(--ra-red); }
.ra-stat .k { color: var(--ra-muted); font-size: 12px; margin-top: 3px; }
.ra-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }

/* ----------------------------------------------------------------------------------------------- guide strip (idiot-proof) */
.ra-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ra-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--ra-radius); background: var(--ra-bg-2); border: 1px solid var(--ra-line); }
.ra-step .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ra-gold); color: var(--ra-gold-ink); font-weight: 800; font-size: 13px; flex: none; }
.ra-step.done .n { background: var(--ra-green); color: #04221a; }
.ra-step.todo .n { background: var(--ra-surface-3); color: var(--ra-muted); }
.ra-step b { display: block; font-size: 13.5px; }
.ra-step small { color: var(--ra-muted); font-size: 12px; display: block; margin-top: 2px; }

/* ----------------------------------------------------------------------------------------------- buttons */
.ra-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 11px; font: inherit; font-size: 14px; font-weight: 600;
  background: var(--ra-surface-2); color: var(--ra-text); border: 1px solid var(--ra-line-2); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .12s var(--ra-ease), box-shadow .2s;
}
.ra-btn:hover { background: var(--ra-surface-3); border-color: #3a4556; text-decoration: none; }
.ra-btn:active { transform: translateY(1px); }
.ra-btn.primary { background: linear-gradient(180deg, var(--ra-gold-2), var(--ra-gold)); color: var(--ra-gold-ink); border-color: var(--ra-gold-deep); box-shadow: 0 4px 18px rgba(255, 200, 61, .18); }
.ra-btn.primary:hover { background: linear-gradient(180deg, #ffe08f, var(--ra-gold-2)); box-shadow: var(--ra-glow-gold); }
.ra-btn.ghost { background: transparent; border-color: transparent; color: var(--ra-text-2); }
.ra-btn.ghost:hover { background: var(--ra-surface-2); color: var(--ra-text); }
.ra-btn.danger { color: var(--ra-red); }
.ra-btn.danger:hover { border-color: rgba(255, 92, 108, .5); background: rgba(255, 92, 108, .08); }
.ra-btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.ra-btn.lg { padding: 13px 22px; font-size: 15px; border-radius: 13px; }
.ra-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.ra-btn svg { width: 16px; height: 16px; }
.ra-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ra-iconbtn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ra-surface); border: 1px solid var(--ra-line); color: var(--ra-text-2); cursor: pointer; }
.ra-iconbtn:hover { color: var(--ra-text); border-color: var(--ra-line-2); }
.ra-iconbtn svg { width: 17px; height: 17px; }

/* ----------------------------------------------------------------------------------------------- forms */
.ra-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ra-field label { font-size: 12.5px; color: var(--ra-text-2); font-weight: 550; display: flex; align-items: center; gap: 6px; }
.ra-field .hint { color: var(--ra-dim); font-size: 11.5px; }
.ra-input, .ra-select, .ra-textarea {
  width: 100%; background: var(--ra-bg-2); border: 1px solid var(--ra-line-2); color: var(--ra-text); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.ra-input.mono { font-family: var(--ra-mono); font-size: 12.5px; }
.ra-input:focus, .ra-select:focus, .ra-textarea:focus { outline: none; border-color: var(--ra-gold); box-shadow: 0 0 0 3px rgba(255, 200, 61, .14); }
.ra-input::placeholder, .ra-textarea::placeholder { color: var(--ra-dim); }
.ra-textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.ra-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ra-muted) 50%), linear-gradient(135deg, var(--ra-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.ra-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.ra-row > .ra-field { flex: 1 1 180px; }
.ra-row > .ra-field.s { flex: 0 1 120px; }
.ra-row > .ra-field.l { flex: 2 1 360px; }
.ra-check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; color: var(--ra-text-2); }
.ra-check input { width: 16px; height: 16px; accent-color: var(--ra-gold); }
.ra-check small { color: var(--ra-dim); }
.ra-switch { position: relative; display: inline-flex; align-items: center; background: var(--ra-surface-2); border: 1px solid var(--ra-line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.ra-switch button { border: 0; background: transparent; color: var(--ra-muted); font: inherit; font-size: 12px; font-weight: 650; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.ra-switch button.on { background: var(--ra-gold); color: var(--ra-gold-ink); }
.ra-drop { border: 1.5px dashed var(--ra-line-2); border-radius: var(--ra-radius-l); padding: 44px 24px; text-align: center; cursor: pointer; background: var(--ra-bg-2); transition: border-color .15s, background .15s; }
.ra-drop.over, .ra-drop:hover { border-color: var(--ra-gold); background: rgba(255, 200, 61, .04); }
.ra-drop b { font-size: 16px; display: block; margin-bottom: 4px; }
.ra-drop span { color: var(--ra-muted); font-size: 13px; }

/* ----------------------------------------------------------------------------------------------- tables */
.ra-table-wrap { overflow: auto; border: 1px solid var(--ra-line); border-radius: var(--ra-radius); background: var(--ra-surface); max-height: 560px; }
.ra-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.ra-table th { position: sticky; top: 0; z-index: 1; background: var(--ra-surface-2); color: var(--ra-muted); font-weight: 600; font-size: 12px; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ra-line); white-space: nowrap; }
.ra-table td { padding: 9px 12px; border-bottom: 1px solid var(--ra-line); vertical-align: middle; white-space: nowrap; }
.ra-table tr:hover td { background: rgba(255, 255, 255, .02); }
.ra-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ra-table th.num { text-align: right; }
.ra-table .sub { color: var(--ra-dim); font-size: 11.5px; display: block; }
.ra-table .cover { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; vertical-align: middle; margin-right: 8px; background: #000; }

/* ----------------------------------------------------------------------------------------------- badges, progress, feedback */
.ra-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--ra-line-2); background: var(--ra-surface-2); color: var(--ra-text-2); }
.ra-pill.ok { color: var(--ra-green); border-color: rgba(25, 211, 154, .35); background: rgba(25, 211, 154, .08); }
.ra-pill.bad { color: var(--ra-red); border-color: rgba(255, 92, 108, .35); background: rgba(255, 92, 108, .08); }
.ra-pill.gold { color: var(--ra-gold); border-color: rgba(255, 200, 61, .4); background: rgba(255, 200, 61, .1); }
.ra-pill.blue { color: var(--ra-blue); border-color: rgba(76, 141, 255, .35); background: rgba(76, 141, 255, .08); }
.ra-pill.mono { font-family: var(--ra-mono); font-weight: 500; }
.ra-bar { height: 6px; background: var(--ra-surface-3); border-radius: 999px; overflow: hidden; }
.ra-bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ra-gold-deep), var(--ra-gold)); border-radius: 999px; transition: width .3s var(--ra-ease); }
.ra-ring { position: relative; width: 132px; height: 132px; }
.ra-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ra-ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--ra-font-display); font-size: 24px; font-weight: 700; }
.ra-log { font-family: var(--ra-mono); font-size: 12px; color: var(--ra-muted); line-height: 1.65; white-space: pre-wrap; background: var(--ra-bg-2); border: 1px solid var(--ra-line); border-radius: 10px; padding: 10px 12px; max-height: 190px; overflow: auto; }
.ra-log .l:last-child { color: var(--ra-text-2); }
.ra-note { color: var(--ra-muted); font-size: 13px; line-height: 1.55; }
.ra-note b { color: var(--ra-text-2); }
.ra-alert { border-radius: var(--ra-radius); padding: 12px 14px; font-size: 13.5px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.ra-alert.err { color: #ffd1d6; border-color: rgba(255, 92, 108, .4); background: rgba(255, 92, 108, .08); }
.ra-alert.ok { color: #c8f7e8; border-color: rgba(25, 211, 154, .35); background: rgba(25, 211, 154, .07); }
.ra-alert.info { color: var(--ra-text-2); border-color: rgba(76, 141, 255, .35); background: rgba(76, 141, 255, .07); }
.ra-empty { text-align: center; padding: 36px 20px; color: var(--ra-muted); border: 1px dashed var(--ra-line-2); border-radius: var(--ra-radius); }
.ra-empty b { display: block; color: var(--ra-text); font-size: 15px; margin-bottom: 4px; }
.ra-toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: var(--ra-surface-2); border: 1px solid var(--ra-line-2); border-left: 3px solid var(--ra-gold); border-radius: 12px; padding: 12px 16px; box-shadow: var(--ra-shadow); font-size: 13.5px; max-width: 380px; animation: ra-in .25s var(--ra-ease); }
.ra-toast.ok { border-left-color: var(--ra-green); } .ra-toast.err { border-left-color: var(--ra-red); }
.ra-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--ra-line); margin-bottom: 16px; overflow: auto; }
.ra-tabs button { border: 0; background: transparent; color: var(--ra-muted); font: inherit; font-size: 13.5px; font-weight: 600; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ra-tabs button:hover { color: var(--ra-text); }
.ra-tabs button.on { color: var(--ra-gold); border-bottom-color: var(--ra-gold); }
.ra-tip { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ra-surface-3); color: var(--ra-muted); font-size: 10px; font-weight: 700; cursor: help; }
.ra-tip:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: 140%; transform: translateX(-50%); width: max-content; max-width: 280px; white-space: normal; background: #1d2431; color: var(--ra-text); border: 1px solid var(--ra-line-2); border-radius: 10px; padding: 8px 10px; font-size: 12px; font-weight: 500; z-index: 20; box-shadow: var(--ra-shadow); }
.ra-sk { background: linear-gradient(90deg, var(--ra-surface-2), var(--ra-surface-3), var(--ra-surface-2)); background-size: 200% 100%; animation: ra-sk 1.2s linear infinite; border-radius: 8px; min-height: 14px; }
.ra-muted { color: var(--ra-muted); } .ra-dim { color: var(--ra-dim); } .ra-gold { color: var(--ra-gold); } .ra-green { color: var(--ra-green); } .ra-red { color: var(--ra-red); }
.ra-right { text-align: right; } .ra-center { text-align: center; }
.ra-sep { height: 1px; background: var(--ra-line); margin: 6px 0; }
.ra-chart { width: 100%; height: 260px; background: var(--ra-bg-2); border: 1px solid var(--ra-line); border-radius: var(--ra-radius); display: block; }
.ra-frame { width: 100%; height: 100%; border: 0; display: block; background: var(--ra-bg); }
.ra-full { position: relative; height: calc(100vh - var(--ra-topbar)); }

@keyframes ra-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ra-sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ra-fade { animation: ra-in .3s var(--ra-ease); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ----------------------------------------------------------------------------------------------- responsive */
@media (max-width: 1100px) { .ra-grid.c4 { grid-template-columns: repeat(2, 1fr); } .ra-grid.c3 { grid-template-columns: repeat(2, 1fr); } .ra-hero { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .ra-shell { grid-template-columns: 1fr; }
  .ra-side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; flex-direction: row; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--ra-line); z-index: 30; background: rgba(9, 12, 18, .92); backdrop-filter: blur(12px); }
  .ra-brand, .ra-side .ra-foot { display: none; }
  .ra-nav { flex-direction: row; width: 100%; justify-content: space-around; }
  .ra-nav a, .ra-nav button { flex-direction: column; gap: 4px; padding: 6px 4px; font-size: 10.5px; }
  .ra-nav .t small, .ra-nav .dot { display: none; }
  .ra-content { padding: 16px 14px 96px; }
  .ra-grid.c2, .ra-grid.c3, .ra-grid.c4 { grid-template-columns: 1fr; }
  .ra-steps { grid-template-columns: 1fr; }
  .ra-hero { padding: 24px 20px; } .ra-hero h1 { font-size: 30px; } .ra-hero .ra-ace { display: none; }
  .ra-full { height: calc(100vh - var(--ra-topbar) - 70px); }
}

/* ---- charge-2 extras: section icons, device frames, repo banner, finished wizard, lacquer tiles (23.10.2026) */
.ra-eyebrow img.ico { width: 26px; height: 26px; object-fit: contain; vertical-align: middle; margin: -5px 6px -5px 0; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.ra-appicon { width: 22px; height: 22px; vertical-align: middle; margin-right: 6px; border-radius: 5px; }
.ra-device { position: relative; }
.ra-device img.frame { position: relative; z-index: 2; width: 100%; display: block; pointer-events: none; }
.ra-device .screen { position: absolute; z-index: 1; background: #0b0f16 center / cover no-repeat; }
.ra-device.laptop .screen { left: 12.5%; top: 13%; width: 75%; height: 67%; border-radius: 6px; }
.ra-device.phone .screen { left: 12.5%; top: 5.8%; width: 75%; height: 88.4%; border-radius: 14px; }
.ra-devices { align-items: center; }
.ra-device-side { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; }
.ra-banner { position: relative; border-radius: var(--ra-radius-l); overflow: hidden; border: 1px solid var(--ra-line); min-height: 220px; }
.ra-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.ra-banner .txt { position: relative; z-index: 1; padding: 26px 28px; max-width: 560px; min-height: 220px; background: linear-gradient(90deg, rgba(5, 7, 11, .94), rgba(5, 7, 11, .72) 70%, transparent); }
.ra-banner ul.mono { list-style: none; padding: 0; margin: 10px 0 0; font-family: var(--ra-mono); font-size: 12.5px; color: var(--ra-text-2); display: grid; gap: 4px; }
.ra-card.has-finish { position: relative; overflow: hidden; }
.ra-finish { position: absolute; right: 14px; bottom: 0; height: 120px; pointer-events: none; opacity: .9; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .5)); }
.ra-tile { background-image: linear-gradient(rgba(16, 21, 30, .9), rgba(16, 21, 30, .94)), url("img/texture_lacquer.webp"); background-size: cover; }
@media (max-width: 860px) { .ra-device-side { grid-template-columns: 90px 1fr; } .ra-banner .txt { max-width: none; background: rgba(5, 7, 11, .86); } }
