h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ===================================================================
   BiosCreator License Portal — visual system
   Brand matched to bioscreator.com: red #d71920 (hover/active #b3141a),
   IBM Plex Sans for text, IBM Plex Mono for the machine readouts
   (license keys, hardware IDs, dates, figures). Red is spent on the
   wordmark, the active nav link, one dark hero tile's sibling accents,
   and focus rings; most surfaces are quiet grey-on-white.
   =================================================================== */
:root {
  --red:#d71920; --red-dark:#b3141a; --red-050:#fbe9ea;
  --ink:#16171b; --ink-2:#23262c;
  --muted:#4a4f57; --muted-2:#565b69; --faint:#8a8f99;
  --line:#d9dce1; --line-2:#e6e6eb; --line-strong:#c9ccd3;
  --page:#eef0f3; --sidemenu:#f6f6f8; --footer:#dadde2;
  --surface:#ffffff; --surface-2:#f6f6f8;
  --dark:linear-gradient(135deg,#23262c 0%,#16171b 100%);
  --ok:#17663d; --ok-bg:#e7f5ed; --ok-line:#cfe8d9;
  --warn:#7a4f00; --warn-bg:#fdf1dc; --warn-line:#f3e2bd;
  --danger:#b3141a; --danger-bg:#fbe9ea; --danger-line:#f2c4c6;
  --sans:'IBM Plex Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;
  --r-card:14px; --r:10px; --pill:999px;
  --shadow:0 1px 2px rgba(22,23,27,.05), 0 2px 6px rgba(22,23,27,.06);
}
* { box-sizing:border-box; }
body { font-family:var(--sans); background:var(--page); color:var(--ink); margin:0;
  font-size:15px; line-height:1.5; font-weight:400; -webkit-font-smoothing:antialiased; }
a { color:var(--red-dark); text-decoration:none; }
a:hover { text-decoration:underline; }
h1 { font-size:1.75rem; font-weight:500; letter-spacing:-.01em; margin:0 0 .2rem; color:var(--ink); }
h2 { font-size:1.06rem; font-weight:500; letter-spacing:-.005em; margin:0 0 .9rem; color:var(--ink); }
h3 { font-size:1.02rem; font-weight:500; letter-spacing:-.005em; margin:0 0 .9rem; color:var(--ink); }
h4 { font-size:.9rem; font-weight:600; margin:0 0 .5rem; color:var(--ink); }
p  { margin:.5rem 0; }
code { font-family:var(--mono); font-size:.82em; background:var(--surface-2);
  border:1px solid var(--line); padding:.05rem .34rem; border-radius:5px; color:var(--ink); }

/* buttons — default solid red; .ghost outline; .dark charcoal */
button { font-family:var(--sans); font-size:.9rem; font-weight:500; line-height:1;
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  background:var(--red); color:#fff; border:1px solid var(--red);
  padding:.6rem 1rem; border-radius:var(--r); text-decoration:none; cursor:pointer;
  transition:background .12s ease, border-color .12s ease; }
button:hover { background:var(--red-dark); border-color:var(--red-dark); text-decoration:none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline:2px solid var(--red); outline-offset:2px; }
button:disabled { opacity:.5; cursor:not-allowed; }
button.ghost { background:var(--surface); color:var(--ink); border:1px solid var(--line-strong); }
button.ghost:hover { background:var(--surface-2); border-color:var(--faint); }
button.dark { background:var(--ink-2); border-color:var(--ink-2); color:#fff; }
button.dark:hover { background:#000; border-color:#000; }

/* ---- Authenticated portal shell: top appbar + side menu + footer ---- */
.portal { min-height:100vh; display:flex; flex-direction:column; background:var(--page); }
.appbar { height:60px; flex:none; display:flex; align-items:center; justify-content:space-between;
  padding:0 28px; background:linear-gradient(180deg,#ffffff 0%,#f1f2f5 100%); border-bottom:1px solid var(--line); }
.appbar-brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink);
  font-weight:600; font-size:17px; letter-spacing:.02em; }
.appbar-brand:hover { text-decoration:none; }
/* Bound any brand gear even if a scoped/parent selector stops matching; the inline width/height
   attributes on the SVG are the real backstop for when app.css fails to load at all. */
.gear { width:24px; height:24px; flex:none; }
.appbar-brand .gear { width:24px; height:24px; color:var(--red); flex:none; }
.wordmark b { color:var(--red); font-weight:600; }
.divider-label { font-weight:400; font-size:14px; color:var(--muted-2);
  padding-left:12px; margin-left:4px; border-left:1px solid var(--line); }
.staff-tag { font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  padding:3px 8px; border-radius:6px; background:var(--ink-2); color:#fff; }
.appbar-right { display:flex; align-items:center; gap:14px; font-size:14px; color:var(--muted); }
.appbar-right form { margin:0; }
.avatar { width:32px; height:32px; border-radius:50%; background:var(--ink-2); color:#fff;
  display:grid; place-items:center; font-size:13px; font-weight:600; flex:none; }
.avatar.staff { background:var(--red); }
.user-email { max-width:30ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
button.signout { height:36px; padding:0 14px; border-radius:8px; background:#fff; color:var(--ink);
  border:1px solid var(--line-strong); font-weight:400; }
button.signout:hover { background:var(--surface-2); border-color:var(--faint); }

.portal-body { flex:1; display:flex; flex-wrap:wrap; }
.sidenav { flex:1 1 220px; max-width:240px; background:var(--sidemenu); border-right:1px solid var(--line);
  padding:24px 14px; display:flex; flex-direction:column; gap:2px; font-size:14px; }
.sidenav nav { display:flex; flex-direction:column; gap:2px; }
.sidenav nav a { display:flex; align-items:center; justify-content:space-between; height:40px;
  padding:0 12px; border-radius:8px; color:var(--ink-2); font-weight:400; text-decoration:none; }
.sidenav nav a:hover { background:#eceef2; text-decoration:none; }
.sidenav nav a.active { background:var(--red-050); color:var(--red-dark); font-weight:600; }
.nav-group { padding:0 12px 6px; font-size:11px; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:var(--muted-2); }
.nav-group.admin { padding-top:18px; }
.nav-count { font-size:12px; font-weight:600; min-width:22px; height:22px; border-radius:var(--pill);
  background:var(--red); color:#fff; display:grid; place-items:center; padding:0 6px; }

.main { flex:999 1 560px; min-width:0; display:flex; flex-direction:column; }
.content { width:100%; max-width:1040px; margin:0 auto; padding:32px 40px 48px; }
.page-sub { color:var(--muted); font-size:.95rem; margin:6px 0 1.5rem; max-width:62ch; }
.footer { flex:none; display:flex; flex-wrap:wrap; gap:12px 24px; justify-content:space-between;
  padding:16px 28px; font-size:13px; color:var(--muted-2); border-top:1px solid var(--line); background:var(--footer); }
.footer a { color:var(--muted); } .footer a:hover { color:var(--red-dark); }
.footer .links { display:flex; gap:20px; }

/* ---- Public (signed-out) shell: silver gradient + self-contained card ---- */
.public { min-height:100vh; display:flex; flex-direction:column; color:var(--ink);
  background:linear-gradient(180deg,#f4f5f7 0%,#e9ebef 55%,#dfe2e7 100%); }
.public-head { height:64px; flex:none; display:flex; align-items:center; justify-content:space-between;
  padding:0 32px; background:rgba(255,255,255,.88); border-bottom:1px solid var(--line); }
.public-head .nav { display:flex; gap:24px; font-size:14px; }
.public-head .nav a { color:var(--muted); }
.public-main { flex:1; display:flex; align-items:center; justify-content:center; padding:56px 24px; }
.public-foot { flex:none; display:flex; flex-wrap:wrap; gap:12px 24px; justify-content:space-between;
  padding:18px 32px; font-size:13px; color:var(--muted-2); border-top:1px solid var(--line); background:var(--footer); }
.public-foot .links { display:flex; gap:20px; } .public-foot a { color:var(--muted); }

.signin-card { width:100%; max-width:940px; display:flex; flex-wrap:wrap; background:#fff;
  border:1px solid var(--line); border-radius:16px; overflow:hidden;
  box-shadow:0 1px 2px rgba(22,23,27,.05), 0 12px 32px rgba(22,23,27,.08); }
.signin-left { flex:1 1 420px; padding:48px 48px 44px; display:flex; flex-direction:column; gap:18px; }
.signin-right { flex:1 1 320px; padding:48px 40px; background:linear-gradient(160deg,#23262c 0%,#16171b 100%);
  color:#e9ebef; display:flex; flex-direction:column; gap:22px; }
.eyebrow { align-self:flex-start; font-size:12px; font-weight:600; letter-spacing:.08em;
  text-transform:uppercase; color:var(--red-dark); }
.signin-right .eyebrow { color:#ff6065; }
.signin-left h1 { font-size:34px; line-height:1.15; font-weight:400; letter-spacing:-.01em; margin:0; }
.signin-left h1 b { color:var(--red); font-weight:500; }
.signin-left .lede { margin:0; font-size:16px; line-height:1.6; color:var(--muted); max-width:42ch; }
.signin-left .fineprint { margin:0; font-size:13px; color:var(--muted-2); }
.g-btn { margin-top:10px; align-self:flex-start; display:inline-flex; align-items:center; gap:12px;
  height:48px; padding:0 22px 0 16px; border:1px solid var(--line-strong); border-radius:var(--r);
  background:#fff; color:var(--ink); font-size:15px; font-weight:500; text-decoration:none;
  box-shadow:0 1px 2px rgba(22,23,27,.06); }
.g-btn:hover { background:var(--surface-2); text-decoration:none; }
.feature { display:flex; gap:14px; }
.feature svg { flex:none; margin-top:2px; }
.feature .t { font-weight:500; } .feature .d { font-size:14px; color:#b9bdc6; line-height:1.5; }

/* metric tiles — one dark hero, one red-edged alert, data as the readout */
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin:0 0 20px; }
.tile { background:var(--surface); border:1px solid var(--line); border-radius:12px;
  padding:16px; display:flex; flex-direction:column; gap:4px; }
.tile .v { font-family:var(--mono); font-size:28px; font-weight:500; line-height:1;
  color:var(--ink); font-variant-numeric:tabular-nums; }
.tile .k { font-size:13px; color:var(--muted); }
.tile .sub { font-size:12px; color:var(--warn); margin-top:2px; }
.tile.accent { background:var(--dark); border-color:transparent; }
.tile.accent .v { color:#fff; }
.tile.accent .k { color:#b9bdc6; }
.tile.alert { border-color:var(--danger-line); box-shadow:inset 0 3px 0 var(--red); }
.tile.alert .v { color:var(--red-dark); }

/* tables */
table.grid { border-collapse:collapse; width:100%; background:var(--surface); font-size:.9rem; }
table.grid th, table.grid td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line-2);
  vertical-align:top; }
table.grid thead th { font-weight:500; font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; color:var(--muted-2); }
table.grid tbody tr:last-child td { border-bottom:none; }
table.grid td.num, table.grid th.num, .num { font-family:var(--mono); font-size:.82rem; font-variant-numeric:tabular-nums; }

/* badges / status pills */
.badge { display:inline-flex; align-items:center; padding:3px 9px; border-radius:var(--pill);
  font-size:12px; font-weight:600; line-height:1.4; border:1px solid transparent; }
.badge.pro { background:var(--page); color:var(--ink-2); }
.badge.elite { background:var(--red-050); color:var(--red-dark); }
.badge.on { background:var(--ok-bg); color:var(--ok); }
.badge.off { background:var(--warn-bg); color:var(--warn); }

/* cards */
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card);
  padding:22px 26px; margin-bottom:20px; }
.card > h2:first-child, .card > h3:first-child { margin-top:0; }
.split { display:grid; grid-template-columns:2fr 1fr; gap:20px; align-items:start; margin-bottom:20px; }

/* license header (My BiosCreator) */
.lcard { background:#fff; border:1px solid var(--line); border-radius:var(--r-card); overflow:hidden; margin-bottom:20px; }
.lcard-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px;
  padding:22px 26px; background:var(--dark); color:#fff; }
.lcard-head .who { display:flex; align-items:center; gap:14px; }
.lcard-head .title { font-size:20px; font-weight:500; }
.lcard-head .email { font-size:14px; color:#b9bdc6; }
.lcard-badge { font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  padding:5px 10px; border-radius:var(--pill); background:#3a3f48; color:#fff; }
.lcard-badge.elite { background:var(--red); }
.active-dot { display:inline-flex; align-items:center; gap:8px; font-size:14px; color:#b9f0cf; }
.active-dot i { width:8px; height:8px; border-radius:50%; background:#3ecf7a; }
.facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-bottom:1px solid var(--line-2); }
.fact { padding:18px 26px; border-right:1px solid var(--line-2); }
.fact:last-child { border-right:none; }
.fact .k { font-size:12px; color:var(--muted-2); text-transform:uppercase; letter-spacing:.06em; }
.fact .v { margin-top:6px; font-size:18px; }
.fact .v.mono { font-family:var(--mono); }
.keywrap { padding:20px 26px 24px; }
.keywrap .row { display:flex; gap:10px; flex-wrap:wrap; }
.keybox { flex:1 1 420px; min-height:64px; padding:12px 14px; border:1px solid var(--line); border-radius:var(--r);
  background:var(--surface-2); font-family:var(--mono); font-size:13px; line-height:1.5; color:var(--ink-2); resize:none; }
button.copy { align-self:flex-start; height:44px; padding:0 18px; }

/* editions meters */
.meter { margin-bottom:14px; }
.meter .row { display:flex; justify-content:space-between; font-size:14px; }
.meter .row .n { font-family:var(--mono); }
.meter .track { margin-top:6px; height:8px; border-radius:4px; background:var(--page); overflow:hidden; }
.meter .fill { height:8px; border-radius:4px; }
.meter .fill.elite { background:var(--red); } .meter .fill.pro { background:var(--ink-2); }

/* forms */
label.f { display:block; font-size:14px; color:var(--ink); font-weight:500; margin:14px 0 6px; }
input.f, select.f, textarea.f { width:100%; max-width:420px; padding:0 12px; height:44px;
  border:1px solid var(--line-strong); border-radius:var(--r); font:inherit; font-size:14px;
  background:#fff; color:var(--ink); transition:border-color .12s ease, box-shadow .12s ease; }
textarea.f { height:auto; min-height:70px; padding:12px; font-family:var(--mono); font-size:13px; }
input.f:focus, select.f:focus, textarea.f:focus { outline:none; border-color:var(--red);
  box-shadow:0 0 0 3px var(--red-050); }

/* row action clusters in queue tables */
.row-actions { display:flex; flex-direction:column; gap:.45rem; }
.row-actions .btns { display:flex; flex-wrap:wrap; gap:.4rem; }
.row-actions button { font-size:.82rem; padding:.45rem .75rem; }
.row-actions label.muted { display:inline-flex; align-items:center; gap:.35rem; font-size:.8rem; color:var(--muted); }
.row-actions input.f { max-width:260px; height:38px; }

/* issued-vs-renewed chart */
.chartbars { display:flex; gap:18px; align-items:flex-end; height:150px;
  border-bottom:1px solid var(--line-2); }
.chartbars .col { flex:1; display:flex; flex-direction:column; align-items:center; gap:.35rem; justify-content:flex-end; }
.chartbars .pair { display:flex; gap:4px; align-items:flex-end; height:128px; }
.chartbars .bar { width:16px; border-radius:4px 4px 0 0; min-height:2px; }
.chartbars .issued { background:var(--red); } .chartbars .renewed { background:#9aa0aa; }
.chartbars .lbl { font-family:var(--mono); font-size:12px; color:var(--muted-2); }
.legend { display:flex; gap:18px; align-items:center; font-size:13px; color:var(--muted); margin-top:12px; }
.legend .sw { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:6px; vertical-align:middle; }

/* utilities + states */
.muted { color:var(--muted); font-size:.92rem; }
.ok { color:var(--ok); font-weight:600; } .warn { color:var(--warn); font-weight:600; }
.flash { padding:.65rem .9rem; border-radius:var(--r); margin:0 0 1.1rem; font-size:.9rem; border:1px solid transparent; }
.flash.good { background:var(--ok-bg); color:var(--ok); border-color:var(--ok-line); }
.flash.bad { background:var(--danger-bg); color:var(--danger); border-color:var(--danger-line); }

@media (max-width:860px) { .split { grid-template-columns:1fr; } }
@media (max-width:760px) {
  .portal-body { flex-direction:column; }
  .sidenav { max-width:none; width:100%; border-right:none; border-bottom:1px solid var(--line);
    padding:12px 14px; }
  .sidenav nav { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }
  .nav-group { display:none; }
  .content { padding:24px 18px 40px; }
  .appbar { padding:0 16px; }
  .user-email { display:none; }
  .card, .lcard { overflow-x:auto; }         /* wide tables scroll sideways on phones */
  .facts { grid-template-columns:1fr; }
  .fact { border-right:none; border-bottom:1px solid var(--line-2); }
}
@media (prefers-reduced-motion:reduce) { * { transition:none !important; } }

/* licenses directory */
.lic-filters { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; margin-bottom:.9rem; }
.lic-filters .f { width:auto; }
.lic-filters .lic-search { flex:1; min-width:240px; max-width:none; }
.lic-row { cursor:pointer; }
table.grid tbody tr.lic-row.sel { background:var(--red-050); }
.small { font-size:.78rem; }
.lic-late { color:var(--danger); font-weight:600; }
.badge.lic-active { background:var(--ok-bg); color:var(--ok); border-color:var(--ok-line); }
.badge.lic-revoked { background:var(--danger-bg); color:var(--danger); border-color:var(--danger-line); }
.lic-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:.8rem; }
.lic-head h3 { margin:0; }
.lic-kv { display:grid; grid-template-columns:140px minmax(0,1fr); gap:.35rem 1rem; margin:0 0 1rem; font-size:.88rem; }
.lic-kv dt { color:var(--muted); } .lic-kv dd { margin:0; overflow-wrap:anywhere; }
.lic-token { max-width:none; font-size:.75rem; }
button.lic-danger { color:var(--danger); }
button.lic-danger-fill { background:var(--danger); border-color:var(--danger); color:#fff; }

/* ---- Gated free-download flow (/download) — self-contained public shell ---- */
.dl { min-height:100vh; display:flex; flex-direction:column; color:var(--ink);
  background:linear-gradient(180deg,#f4f5f7 0%,#e9ebef 60%,#dfe2e7 100%); }
.dl-head { height:72px; flex:none; display:flex; align-items:center; justify-content:space-between;
  padding:0 40px; background:rgba(255,255,255,.9); border-bottom:1px solid var(--line); }
.dl-head .brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink);
  font-weight:600; font-size:19px; letter-spacing:.02em; }
.dl-head .brand:hover { text-decoration:none; }
.dl-head .brand .gear { width:28px; height:28px; color:var(--red); flex:none; }
.dl-head .brand b { color:var(--red); font-weight:600; }
.dl-head .nav { display:flex; align-items:center; gap:28px; font-size:15px; }
.dl-head .nav a { color:var(--muted); }
.dl-head .who { display:flex; align-items:center; gap:10px; font-size:14px; color:var(--muted); }
.dl-head .who .avatar { width:30px; height:30px; font-size:12px; }
.dl-main { flex:1; display:flex; flex-direction:column; align-items:center; padding:48px 24px 64px; gap:28px; }

/* step indicator */
.steps { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; justify-content:center;
  gap:10px 28px; font-size:14px; }
.steps li { display:flex; align-items:center; gap:10px; color:var(--muted-2); }
.steps li .dot { width:28px; height:28px; border-radius:50%; display:grid; place-items:center;
  font-size:13px; border:1px solid var(--line-strong); background:#fff; }
.steps li.current { color:var(--ink); font-weight:600; }
.steps li.current .dot { background:var(--red); color:#fff; border-color:var(--red); }
.steps li.done { color:var(--ok); }
.steps li.done .dot { background:var(--ok-bg); border-color:var(--ok-bg); color:var(--ok); }
.steps .bar { width:40px; height:1px; background:var(--line-strong); align-self:center; }

/* download cards */
.dl-card { width:100%; max-width:940px; display:flex; flex-wrap:wrap; background:#fff;
  border:1px solid var(--line); border-radius:16px; overflow:hidden;
  box-shadow:0 1px 2px rgba(22,23,27,.05), 0 12px 32px rgba(22,23,27,.08); }
.dl-card.wide { max-width:1000px; }
.dl-left { flex:1 1 440px; padding:44px 48px; display:flex; flex-direction:column; gap:16px; }
.dl-aside { flex:1 1 300px; padding:44px 36px; background:var(--sidemenu); border-left:1px solid var(--line-2);
  display:flex; flex-direction:column; gap:16px; }
.dl-aside a { font-weight:500; }
.dl-eyebrow { display:flex; align-items:center; gap:10px; font-size:12px; font-weight:600;
  letter-spacing:.12em; text-transform:uppercase; color:var(--red-dark); }
.dl-eyebrow::before { content:""; width:22px; height:2px; background:var(--red); }
.dl-aside .label { font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--muted-2); }
.dl-left h1 { font-size:38px; line-height:1.15; font-weight:300; letter-spacing:-.01em; margin:0; }
.dl-left .lede { margin:0; font-size:16px; line-height:1.6; color:var(--muted); max-width:44ch; }
.dl-left .fineprint { margin:4px 0 0; font-size:13px; line-height:1.6; color:var(--muted-2); max-width:52ch; }
.feat-list { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:12px;
  font-size:15px; color:var(--ink-2); }
.feat-list li { display:flex; gap:10px; }
.feat-list li svg { flex:none; margin-top:3px; }

/* single-column card (step 2) */
.dl-form { width:100%; max-width:560px; box-sizing:border-box; background:#fff; border:1px solid var(--line);
  border-radius:16px; box-shadow:0 1px 2px rgba(22,23,27,.05), 0 12px 32px rgba(22,23,27,.08);
  padding:40px 44px; display:flex; flex-direction:column; gap:16px; }
.dl-form h1 { font-size:30px; line-height:1.2; font-weight:300; margin:0; }
.dl-form .lede { margin:0; font-size:15px; line-height:1.6; color:var(--muted); }
.phone-row { display:flex; gap:10px; }
.phone-row select.f { flex:none; width:120px; }
.phone-row input.f { flex:1; min-width:0; font-family:var(--mono); }
.consent { display:flex; gap:10px; align-items:flex-start; font-size:14px; color:var(--muted); line-height:1.5; margin-top:4px; }
.consent input { width:18px; height:18px; margin:2px 0 0; accent-color:var(--red); flex:none; }
.dl-btn { margin-top:8px; display:flex; align-items:center; justify-content:center; gap:10px; width:100%;
  height:52px; border-radius:var(--r); background:var(--red); color:#fff; font-size:16px; font-weight:500;
  border:1px solid var(--red); text-decoration:none; cursor:pointer; }
.dl-btn:hover { background:var(--red-dark); border-color:var(--red-dark); text-decoration:none; }
.dl-btn.big { height:56px; padding:0 26px; width:auto; font-size:17px; }
.g-btn.lg { height:52px; font-size:16px; padding:0 24px 0 18px; }

/* download-ready (step 3) */
.dl-left .ready { font-size:36px; }
.dl-dl-row { display:flex; flex-wrap:wrap; align-items:center; gap:14px 18px; }
.dl-dl-row .meta { font-size:14px; color:var(--muted); line-height:1.5; }
.dl-dl-row .meta .num { font-family:var(--mono); }
.howto { margin:10px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:16px; }
.howto li { display:flex; gap:14px; }
.howto .n { flex:none; width:30px; height:30px; border-radius:50%; background:var(--red-050);
  color:var(--red-dark); display:grid; place-items:center; font-weight:600; font-size:14px; }
.howto .t { font-weight:500; } .howto .d { font-size:14px; color:var(--muted); line-height:1.6; }

@media (max-width:620px) {
  .dl-head { padding:0 16px; } .dl-head .nav { display:none; }
  .dl-left, .dl-aside, .dl-form { padding:28px 22px; }
  .dl-left h1 { font-size:30px; } .dl-left .ready { font-size:28px; }
}
