/* StatTrak Firmware Updater — app styles
 * Ported from the Claude Design prototype into vanilla HTML/CSS/JS.
 * Tokens come from colors_and_type.css. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
[hidden] { display: none !important; }

body {
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(255,122,31,0.06), transparent 60%),
    var(--bg);
  color: var(--fg1);
  font-family: var(--font-body);
}

/* --- scaffold -------------------------------------------------------- */
.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

/* The header is in site.css; these are the parts in its right side. */
.topbar__link {
  font-size: 13px; color: var(--fg2); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast);
}
.topbar__link:hover { background: rgba(255,255,255,0.04); color: var(--fg1); }

.topbar__meta .btn--ghost { padding: 8px 14px; font-size: 12px; }
.topbar__meta .btn__count {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  font-style: normal; letter-spacing: 0; text-transform: none;
  color: var(--fg-muted); margin-left: 4px;
}

/* --- banners --------------------------------------------------------- */
.banner {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--r-md);
  margin: 20px 0 4px;
  border: 1px solid;
  font-size: 14px; line-height: 1.5;
}
.banner[hidden] { display: none; }
.banner--warn {
  background: rgba(244, 196, 48, 0.06);
  border-color: rgba(244, 196, 48, 0.35);
  color: #F6DA85;
}
.banner--warn .banner__icon { color: #F4C430; }
.banner__title {
  font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-stencil);
  font-size: 14px;
  color: #F4C430;
  margin: 0 0 2px;
}
.banner__body { color: #D9C889; }
.banner__body code {
  font-family: var(--font-mono); font-size: 12px; color: #F4C430;
  background: rgba(244,196,48,0.08); padding: 1px 6px; border-radius: 3px;
}
.banner__body a { color: #F4C430; }

.banner--error {
  background: rgba(226, 52, 52, 0.07);
  border-color: rgba(226, 52, 52, 0.4);
}
.banner--error .banner__icon, .banner--error .banner__title { color: var(--st-kill-red); }
.banner--error .banner__body { color: var(--fg1); }
.banner--ok {
  background: rgba(111, 207, 94, 0.07);
  border-color: rgba(111, 207, 94, 0.4);
}
.banner--ok .banner__icon, .banner--ok .banner__title { color: var(--st-success); }
.banner--ok .banner__body { color: var(--fg1); }

/* --- main grid ------------------------------------------------------- */
.grid {
  display: block;
  margin-top: 32px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

/* --- steps ----------------------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: 16px; }

.step {
  background: var(--bg-card);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur-med) var(--ease-standard), transform var(--dur-med);
}
.step--active { border-color: var(--stroke-2); box-shadow: 0 0 0 1px var(--stroke-2); }
.step--done { border-color: rgba(111,207,94,0.35); }
.step--active.step--done { box-shadow: none; }
.step--locked { opacity: 0.55; }

.step__header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  cursor: default;
}
.step__badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--st-ink-900);
  border: 1.5px solid var(--stroke-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-stencil); font-weight: 900; font-style: italic;
  font-size: 20px; color: var(--fg2);
  flex-shrink: 0;
  transition: all var(--dur-med) var(--ease-standard);
}
.step--active .step__badge { background: var(--fg1); border-color: var(--fg1); color: var(--bg); }
.step--done .step__badge { background: rgba(111,207,94,0.1); border-color: #6FCF5E; color: #6FCF5E; }
.step__title {
  font-family: var(--font-stencil);
  font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: 22px; letter-spacing: 0.01em;
  margin: 0;
}
.step__head-meta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.step__status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg3);
  padding: 4px 10px;
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-pill);
}
.step__status--active { color: var(--fg1); border-color: var(--stroke-2); }
.step__status--done { color: #6FCF5E; border-color: rgba(111,207,94,0.4); }
.step__status--live {
  color: #6FCF5E;
  border-color: rgba(111,207,94,0.45);
  background: rgba(111,207,94,0.08);
  display: inline-flex; align-items: center; gap: 6px;
}
.step__status--scanning {
  color: var(--st-warning);
  border-color: rgba(244,196,48,0.5);
  background: rgba(244,196,48,0.08);
  display: inline-flex; align-items: center; gap: 6px;
}
.step__status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6FCF5E;
  box-shadow: 0 0 0 0 rgba(111,207,94,0.6);
  animation: pulse-dot 1.6s ease-out infinite;
}
.step__status--scanning .step__status-dot {
  background: var(--st-warning);
  box-shadow: 0 0 0 0 rgba(244,196,48,0.65);
  animation: pulse-dot-warn 1.6s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(111,207,94,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(111,207,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,207,94,0); }
}
@keyframes pulse-dot-warn {
  0%   { box-shadow: 0 0 0 0 rgba(244,196,48,0.65); }
  70%  { box-shadow: 0 0 0 6px rgba(244,196,48,0); }
  100% { box-shadow: 0 0 0 0 rgba(244,196,48,0); }
}

.step__body {
  padding: 4px 32px 24px;
  border-top: 1px solid transparent;
}
/* Center block-level children of the step body (including those wrapped
   in a before/after state container). */
.step__body .step1-instructions,
.step__body .video-ph,
.step__body .btn-row,
.step__body .flash-summary,
.step__body .flash-progress,
.step__body .success,
.step__body .fw-tabs,
.step__body .release-list,
.step__body .dropzone,
.step__body .file-card,
.step__body .connect-row { margin-left: auto; margin-right: auto; max-width: 720px; }
.step__body .btn-row { justify-content: center; }
.step__body .fw-tabs { justify-content: center; }
.step1-instructions { text-align: center; }
.step--locked .step__body { pointer-events: none; }
.step--collapsed .step__body { display: none; }
.step--collapsed .step__header { padding: 12px 20px; }

/* --- step 1: connect -------------------------------------------------- */
.connect-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-top: 12px;
}
.connect-panel {
  background: var(--st-ink-900);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}
.connect-panel__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg3); margin-bottom: 6px;
}
.connect-panel__value {
  font-family: var(--font-mono); font-size: 13px; color: var(--fg1);
  word-break: break-all;
}
.connect-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--stroke-1);
  color: var(--fg2);
}
.connect-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-ink-500); }
.connect-pill--scan { color: var(--accent); border-color: var(--accent); }
.connect-pill--scan .connect-pill__dot { background: var(--accent); animation: pulse 1s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,122,31,0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(255,122,31,0); }
}

/* breadcrumb eyebrow-style */
.path-crumb {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg1);
  background: var(--st-ink-800);
  border: 1px solid var(--stroke-1);
  padding: 3px 9px;
  border-radius: var(--r-xs);
  vertical-align: 2px;
}
.path-sep {
  display: inline-block;
  margin: 0 8px;
  color: var(--fg3);
  font-weight: 500;
}

/* how-to video block */
.video-ph {
  position: relative;
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: 18px auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-ph video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: var(--st-ink-950);
  display: block;
  margin: 0 auto;
}

/* step 1 paragraph */
.step1-instructions {
  margin: 0 0 16px;
  color: var(--fg1);
  font-size: 16px;
  line-height: 1.9;
}
.step1-instructions .path-crumb { margin: 0 2px; }

/* --- step 2: firmware ------------------------------------------------- */
.fw-tabs {
  display: flex; gap: 0; margin-top: 6px; margin-bottom: 18px;
  border-bottom: 1px solid var(--stroke-1);
}
.fw-tab {
  background: none; border: none; cursor: pointer;
  padding: 10px 16px;
  font-family: var(--font-stencil); font-weight: 800; font-style: italic;
  font-size: 16px; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--fg3);
  position: relative;
  transition: color var(--dur-fast) var(--ease-standard);
}
.fw-tab:hover { color: var(--fg1); }
.fw-tab--active { color: var(--fg1); }
.fw-tab--active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--fg1);
}

.release-list { display: flex; flex-direction: column; gap: 8px; }
.release {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: 16px;
  padding: 14px 16px;
  background: var(--st-ink-900);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-sm);
  transition: all var(--dur-fast) var(--ease-standard);
  text-align: left;
  font: inherit; color: inherit;
  text-decoration: none;
}
.release:hover {
  border-color: var(--accent);
  background: var(--st-ink-800);
}
.release:hover .release__download {
  color: var(--accent);
  border-color: var(--accent);
}
.release__main { min-width: 0; }
.release__download {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--stroke-2);
  border-radius: var(--r-sm);
  font-family: var(--font-stencil); font-weight: 800; font-style: italic;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg1);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.release__name {
  font-family: var(--font-stencil); font-weight: 800; font-style: italic;
  font-size: 18px; text-transform: uppercase;
  color: var(--fg1);
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 2px;
}
.release__desc {
  font-size: 14px; color: var(--fg2); line-height: 1.5;
  margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.release__meta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg3);
  white-space: nowrap;
}

.release-empty {
  padding: 24px;
  text-align: center;
  color: var(--fg3); font-size: 13px;
  border: 1px dashed var(--stroke-1);
  border-radius: var(--r-sm);
}

/* upload area */
.dropzone {
  border: 1.5px dashed var(--stroke-2);
  border-radius: var(--r-md);
  padding: 36px 24px;
  text-align: center;
  transition: all var(--dur-fast) var(--ease-standard);
  background: var(--st-ink-900);
  cursor: pointer;
}
.dropzone:hover, .dropzone--hover {
  border-color: var(--accent);
  background: var(--st-ink-800);
}
.dropzone__icon {
  width: 44px; height: 44px; margin: 0 auto 12px;
  color: var(--fg3);
}
.dropzone:hover .dropzone__icon, .dropzone--hover .dropzone__icon { color: var(--fg1); }
.dropzone__title {
  font-family: var(--font-stencil); font-weight: 800; font-style: italic;
  font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 0 4px;
}
.dropzone__hint { font-size: 14px; color: var(--fg3); margin: 0; line-height: 1.5; }
.dropzone__hint strong { color: var(--fg1); font-weight: 700; }
.dropzone__hint code { font-family: var(--font-mono); font-size: 12px; }
.dropzone__note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
  max-width: 50ch; margin-left: auto; margin-right: auto;
}
.dropzone__note strong { color: var(--fg2); font-weight: 700; }

.file-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 16px;
  padding: 14px 16px;
  background: var(--st-ink-900);
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  box-shadow: inset 3px 0 0 var(--accent);
}
.file-card__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(255,122,31,0.1);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.file-card__name {
  font-family: var(--font-mono); font-size: 13px; color: var(--fg1);
  margin: 0 0 2px; word-break: break-all;
}
.file-card__meta { font-size: 12px; color: var(--fg3); font-family: var(--font-mono); }
.file-card__meta strong { color: var(--fg1); }
.file-card__remove {
  background: none; border: none; cursor: pointer;
  color: var(--fg3); padding: 8px;
  border-radius: var(--r-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.file-card__remove:hover { background: rgba(226,52,52,0.12); color: var(--st-kill-red); }

/* --- step 3: flash --------------------------------------------------- */
.flash-summary {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
}
.flash-summary__arrow {
  display: flex; align-items: center;
  color: var(--accent);
}
.sum-card {
  background: var(--st-ink-900);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-sm);
  padding: 14px 16px;
}
.sum-card__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg3); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.sum-card__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 4px; }
.sum-card__row span:first-child { color: var(--fg3); }
.sum-card__row span:last-child { color: var(--fg1); font-family: var(--font-mono); font-size: 12px; }

.flash-progress {
  margin-top: 18px;
  padding: 20px;
  background: var(--st-ink-900);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-sm);
}
.flash-progress[hidden] { display: none; }
.flash-progress__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.flash-progress__label {
  font-family: var(--font-stencil); font-weight: 800; font-style: italic;
  font-size: 16px; text-transform: uppercase;
}
.flash-progress__pct {
  font-family: var(--font-mono); font-size: 20px; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.flash-progress__bar {
  height: 10px; background: var(--st-ink-700);
  border-radius: 2px; overflow: hidden; position: relative;
}
.flash-progress__fill {
  height: 100%; background: var(--accent);
  transition: width var(--dur-fast) linear;
  position: relative;
  width: 0;
}
.flash-progress__fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 80px 100%; background-repeat: no-repeat;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: -80px 0; }
  100% { background-position: calc(100% + 80px) 0; }
}
.flash-progress__meta {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-size: 12px; color: var(--fg3); font-family: var(--font-mono);
}

.flash-hint {
  margin: 14px 0 0;
  font-size: 14px; line-height: 1.5; color: var(--fg2);
  text-align: center;
}
.flash-hint strong { color: var(--fg1); font-weight: 700; }

.success {
  text-align: center;
  padding: 40px 20px;
  border: none;
  background: transparent;
  margin-top: 6px;
}
.success[hidden] { display: none; }
.success__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(111,207,94,0.14);
  border: 1.5px solid #6FCF5E;
  color: #6FCF5E;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.success__title {
  font-family: var(--font-stencil); font-weight: 900; font-style: italic;
  font-size: 36px; text-transform: uppercase; letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--fg1);
}
.success__sub {
  font-size: 14px; color: var(--fg2);
  margin: 0 0 20px;
}
.success__meta {
  display: inline-flex; gap: 24px;
  padding: 12px 20px;
  background: var(--st-ink-900);
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg2);
}
.success__meta strong { color: var(--fg1); font-weight: 500; margin-left: 6px; }
.success__actions { margin-top: 24px; display: flex; gap: 10px; justify-content: center; }

/* --- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-stencil); font-weight: 800; font-style: italic;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 11px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-standard);
  text-decoration: none;
  white-space: nowrap;
  color: var(--fg1);
  background: transparent;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn--primary {
  background: var(--accent); color: var(--fg-on-accent);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-pressed); transform: translateY(1px); box-shadow: var(--shadow-press); }
.btn--ghost {
  background: transparent; color: var(--fg1);
  border-color: var(--stroke-2);
}
.btn--ghost:hover { background: rgba(255,255,255,0.04); border-color: var(--fg3); }
.btn--danger-ghost {
  background: transparent; color: var(--st-kill-red);
  border-color: rgba(226,52,52,0.35);
}
.btn--danger-ghost:hover { background: rgba(226,52,52,0.08); }
.btn--danger {
  background: var(--st-kill-red); color: #fff;
}
.btn--danger:hover { background: #c72a2a; }
.btn--danger:active { background: #a62424; transform: translateY(1px); box-shadow: var(--shadow-press); }
.btn--lg { font-size: 16px; padding: 14px 28px; }

.btn-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; align-items: center; }

/* --- log ------------------------------------------------------------- */
.log {
  background: #000;
  border: 1px solid var(--stroke-1);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.6;
  color: var(--fg2);
  overflow-y: auto;
}
.log__line { white-space: nowrap; }
.log__line--ok { color: #6FCF5E; }
.log__line--info { color: var(--fg2); }
.log__line--warn { color: var(--st-warning); }
.log__line--err { color: var(--st-kill-red); }
.log__time { color: var(--fg-muted); margin-right: 8px; }

/* --- footer ---------------------------------------------------------- */
.footer {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid var(--stroke-1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg3);
}
.footer a { color: var(--fg2); text-decoration: none; margin-left: 16px; }
.footer a:hover { color: var(--fg1); }
.footer__right a.footer__brand { text-transform: uppercase; letter-spacing: 0.08em; }

/* --- chips ----------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: var(--r-xs);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--font-body);
}
.chip--latest { background: var(--accent); color: var(--fg-on-accent); }
.chip--stable { background: var(--st-ink-700); color: var(--fg2); }
.chip--beta { background: rgba(244,196,48,0.14); color: var(--st-warning); }

/* --- modals (console + confirm) ------------------------------------- */
.modal-root[hidden] { display: none; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 24px;
  animation: modal-fade var(--dur-med) var(--ease-standard);
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--stroke-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  animation: modal-rise var(--dur-med) var(--ease-out);
  display: flex; flex-direction: column;
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* console modal */
.modal-panel--console { max-width: 760px; max-height: 80vh; }
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--stroke-1);
}
.modal__header-title {
  font-family: var(--font-stencil); font-weight: 900; font-style: italic;
  font-size: 18px; text-transform: uppercase; letter-spacing: -0.005em;
  color: var(--fg1); margin: 0;
}
.modal__header-meta {
  font-size: 11px; color: var(--fg3); font-family: var(--font-mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-left: 12px;
}
.modal__header-actions { display: inline-flex; gap: 6px; align-items: center; }
.modal__header-actions .btn--ghost { padding: 6px 12px; font-size: 11px; }
.modal__body {
  flex: 1; min-height: 0;
  padding: 14px 18px;
  overflow: hidden;
}
.modal__body .log { height: 55vh; max-height: none; }

/* confirm modal */
.modal-panel--danger {
  max-width: 520px;
  padding: 28px 28px 22px;
  border-top: 3px solid var(--st-kill-red);
}
.modal__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(226,52,52,0.12);
  color: var(--st-kill-red);
  border-radius: 50%;
  margin: 0 0 16px;
}
.modal__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--st-kill-red);
  margin: 0 0 8px;
}
.modal__title {
  font-family: var(--font-stencil); font-weight: 900; font-style: italic;
  font-size: 32px; text-transform: uppercase; letter-spacing: -0.005em;
  color: var(--fg1); margin: 0 0 12px; line-height: 1.05;
}
.modal__text {
  font-size: 15px; line-height: 1.6; color: var(--fg1);
  margin: 0 0 18px;
}
.modal__text strong { color: var(--fg1); font-weight: 700; }
.modal__checklist {
  list-style: none; padding: 14px 16px; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(226,52,52,0.06);
  border: 1px solid rgba(226,52,52,0.28);
  border-radius: var(--r-sm);
}
.modal__checklist li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; line-height: 1.5; color: var(--fg1);
}
.modal__dot {
  flex: 0 0 auto;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--st-kill-red);
  margin-top: 7px;
}
.modal__actions {
  display: flex; gap: 10px; justify-content: flex-end;
}

/* --- responsive tweaks ---------------------------------------------- */
@media (max-width: 700px) {
  .app { padding: 16px 20px 60px; }
  .connect-row { grid-template-columns: 1fr; }
  .flash-summary { grid-template-columns: 1fr; }
  .flash-summary__arrow { transform: rotate(90deg); justify-self: center; }
  .release { grid-template-columns: auto 1fr auto; }
  .release__meta:last-child { display: none; }
  .step__body { padding-left: 20px; padding-right: 20px; }
  .footer { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer a { margin-left: 0; margin-right: 16px; }
  .success__meta { flex-direction: column; gap: 6px; text-align: left; }
}
