:root {
  --bg: #080b0d;
  --surface: #0f1417;
  --surface-raised: #151b1f;
  --line: #273036;
  --line-soft: #1c2429;
  --text: #f1f5f3;
  --muted: #8d9a95;
  --accent: #62e6a7;
  --accent-ink: #062719;
  --danger: #ff6b72;
  --warning: #e7bd65;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 72% -10%, rgba(98, 230, 167, 0.07), transparent 28rem),
    var(--bg);
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.shell { width: min(1420px, calc(100% - 48px)); margin: 0 auto; }

.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
}

.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent); border-radius: 7px; font-weight: 900; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.mode-badge { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.mode-badge.live { color: var(--warning); }
.client-navigation { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-soft); border-radius: 8px; background: #0a0e10; }
.nav-button { min-height: 44px; border: 0; border-radius: 5px; padding: 0 12px; color: var(--muted); background: transparent; font-size: 12px; }
.nav-button:hover { color: var(--text); }
.nav-button.active { color: var(--text); background: var(--surface-raised); }
.client-switcher { min-height: 62px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.client-switcher label { color: var(--muted); font-size: 11px; font-weight: 720; letter-spacing: .055em; text-transform: uppercase; }
.client-switcher select { min-width: 250px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 38px 0 12px; color: var(--text); background: #090d0f; font: inherit; font-size: 12px; }
.client-switcher select:focus { border-color: var(--accent); outline: 3px solid rgba(98, 230, 167, .1); outline-offset: 0; }

.quiet-button, .primary-button, .danger-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 17px;
  color: var(--text);
  background: transparent;
}
.quiet-button:hover { border-color: #465158; background: var(--surface); }
.primary-button { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); font-weight: 750; }
.primary-button:hover { filter: brightness(1.06); }
.danger-button { border-color: var(--danger); color: #1e080a; background: var(--danger); font-weight: 750; }
.text-button { min-height: 44px; padding: 0; border: 0; color: var(--muted); background: transparent; text-align: left; }
.text-button:hover { color: var(--text); }

.onboarding-view { min-height: calc(100vh - 75px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .62fr); align-items: center; gap: clamp(50px, 10vw, 150px); padding: 76px 6vw; }
.onboarding-copy { max-width: 700px; }
.onboarding-copy h1, .login-copy h1, .page-heading h1 { margin: 0; font-size: clamp(40px, 5vw, 70px); line-height: 1; letter-spacing: -.052em; }
.onboarding-copy > p:not(.eyebrow), .login-copy > p:last-child { max-width: 590px; margin: 25px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.trust-list { display: grid; gap: 11px; margin: 35px 0 0; padding: 0; color: #b4c0bb; font-size: 13px; list-style: none; }
.trust-list li { display: flex; align-items: center; gap: 11px; }
.trust-list li::before { content: ""; width: 16px; height: 16px; flex: 0 0 auto; border: 1px solid #315d4a; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 2px, transparent 3px); }

.wallet-gate { min-height: 520px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: rgba(15, 20, 23, .94); box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.gate-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.network-label { color: #b2bdb9; }
.progress-track { height: 2px; margin: 16px 0 47px; overflow: hidden; background: var(--line-soft); }
.progress-track span { display: block; width: 33.333%; height: 100%; background: var(--accent); transform-origin: left; }
.wallet-gate h2 { margin: 0 0 13px; font-size: 30px; letter-spacing: -.035em; }
.gate-description { min-height: 65px; margin: 0 0 25px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.wallet-action { width: 100%; min-height: 48px; }
.wallet-gate .text-button { display: block; margin: 10px auto 0; text-align: center; }
.connected-wallet { display: flex; align-items: center; gap: 10px; margin: 21px 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: #090d0f; }
.connected-wallet strong { min-width: 0; overflow: hidden; font-size: 13px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.wallet-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(98, 230, 167, .08); }
.result-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 28px; border: 1px solid #315d4a; border-radius: 50%; color: var(--accent); background: rgba(98, 230, 167, .05); font-weight: 800; }
.result-icon.blocked { border-color: #6f353a; color: var(--danger); background: rgba(255, 107, 114, .05); }
.wallet-facts { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; margin: 0 0 23px; padding: 18px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.wallet-facts dt { color: var(--muted); font-size: 12px; }
.wallet-facts dd { margin: 0; color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.next-steps { margin: 0 0 19px; }
.next-steps div { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 42px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.next-steps strong { color: var(--accent); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.wallet-error { min-height: 19px; margin-top: 15px; line-height: 1.45; }
.gate-footnote { margin: 17px 0 0; color: #68736f; font-size: 11px; line-height: 1.55; }
.gate-footnote strong { color: #9aa6a1; font-weight: 600; }

.login-view { min-height: calc(100vh - 75px); display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 10vw; padding: 80px 6vw; }
.login-copy { max-width: 680px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.login-form { padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.login-back { margin: -8px 0 20px; }
.login-form label { display: grid; gap: 9px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.login-form input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; color: var(--text); background: #090d0f; outline: none; }
.login-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(98, 230, 167, .1); }
.login-form .primary-button { width: 100%; margin-top: 8px; }
.form-error { min-height: 20px; margin: 0; color: var(--danger); font-size: 13px; }

.account-setup { min-height: calc(100vh - 75px); padding: 68px 0 90px; }
.setup-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 50px; margin-bottom: 56px; }
.setup-title { max-width: 790px; }
.setup-title h1 { margin: 0; font-size: clamp(42px, 5.2vw, 72px); line-height: .98; letter-spacing: -.055em; }
.setup-title > p:last-child { max-width: 670px; margin: 24px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.setup-progress { display: grid; justify-items: end; gap: 5px; padding-bottom: 5px; }
.setup-progress strong { color: var(--accent); font-size: 28px; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.setup-progress span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.setup-warning { margin: -20px 0 28px; }
.setup-error { min-height: 20px; margin: -14px 0 18px; }
.account-setup-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.setup-account { display: grid; grid-template-columns: 92px minmax(220px, .65fr) minmax(350px, 1.35fr); gap: clamp(24px, 4vw, 68px); padding: 38px 8px; }
.setup-account + .setup-account { border-top: 1px solid var(--line); }
.setup-index { display: grid; align-content: start; justify-items: start; gap: 10px; }
.setup-index strong { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.setup-account.verified .setup-index strong { border-color: #315d4a; color: var(--accent); background: rgba(98, 230, 167, .045); }
.setup-index span { color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.setup-account-summary { align-content: start; display: grid; gap: 11px; }
.setup-account-summary h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.setup-account-summary p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.setup-status { width: max-content; display: inline-flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 720; letter-spacing: .055em; text-transform: uppercase; }
.setup-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 10%, transparent); }
.setup-status.pending { color: var(--warning); }
.setup-status.verified { color: var(--accent); }
.setup-status.blocked { color: var(--danger); }
.setup-account-action { min-width: 0; }
.master-address-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.master-address-form label { display: grid; gap: 9px; color: var(--muted); font-size: 12px; }
.master-address-form input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; color: var(--text); background: #090d0f; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; outline: none; }
.master-address-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(98, 230, 167, .1); }
.master-address-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.master-address-actions .primary-button { min-width: 190px; }
.role-error { min-height: 18px; margin: 12px 0 0; color: var(--danger); font-size: 12px; line-height: 1.45; }
.approval-intro { margin: 0 0 18px; color: #c0cac6; font-size: 13px; line-height: 1.6; }
.approval-facts { margin: 0; border-top: 1px solid var(--line-soft); }
.approval-facts > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 0 14px; border-bottom: 1px solid var(--line-soft); }
.approval-facts dt, .approval-facts dd { min-width: 0; margin: 0; padding: 13px 0; font-size: 12px; }
.approval-facts dt { color: var(--muted); }
.approval-facts dd { display: flex; align-items: center; gap: 12px; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.approval-facts dd > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-button { min-width: 88px; min-height: 44px; align-self: center; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: transparent; font-size: 11px; }
.copy-button:hover { border-color: #465158; color: var(--text); }
.approval-steps { margin: 20px 0 18px; padding-left: 21px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.approval-steps li + li { margin-top: 7px; }
.approval-steps strong { color: var(--text); font-weight: 650; }
.approval-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.external-button { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 0 17px; color: var(--text); text-decoration: none; background: transparent; font-size: 13px; }
.external-button:hover { border-color: #465158; background: var(--surface); }
.verified-facts { display: grid; grid-template-columns: 1fr auto; gap: 12px 28px; margin: 0; padding: 4px 0; }
.verified-facts dt { color: var(--muted); font-size: 12px; }
.verified-facts dd { min-width: 0; max-width: 360px; overflow: hidden; margin: 0; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.setup-blocked { padding: 18px; border-left: 2px solid var(--danger); color: #e7b4b7; background: rgba(255, 107, 114, .055); font-size: 12px; line-height: 1.6; }
.setup-complete { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 38px; padding-top: 30px; }
.complete-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #315d4a; border-radius: 50%; color: var(--accent); background: rgba(98, 230, 167, .045); font-weight: 800; }
.setup-complete h2 { margin: 0 0 8px; font-size: 25px; letter-spacing: -.03em; }
.setup-complete p:not(.eyebrow) { max-width: 700px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.setup-complete .eyebrow { margin-bottom: 9px; }

.dashboard { padding: 64px 0 80px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 54px; }
.page-heading h1 { font-size: clamp(42px, 5vw, 68px); }
.sync-state { display: flex; align-items: center; gap: 9px; padding-bottom: 6px; color: var(--muted); font-size: 13px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(98, 230, 167, .08); }

.section-label { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-label h2 { margin: 0; font-size: 14px; letter-spacing: .02em; }
.section-label span { color: var(--muted); font-size: 12px; }

.account-strip { margin-bottom: 34px; }
.account-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-row { min-height: 92px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; }
.account-row + .account-row { border-left: 1px solid var(--line); }
.direction-token { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-raised); color: var(--accent); font-size: 12px; font-weight: 800; }
.account-row.short .direction-token { color: #9eb9ff; }
.account-name { display: grid; gap: 5px; }
.account-name strong { font-size: 14px; }
.account-name span, .account-equity span { color: var(--muted); font-size: 12px; }
.account-equity { display: grid; justify-items: end; gap: 5px; }
.account-equity strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.status-ok { color: var(--accent) !important; }
.status-bad { color: var(--danger) !important; }

.warning-banner { margin: -8px 0 34px; padding: 14px 18px; border-left: 2px solid var(--warning); color: #efd796; background: rgba(231, 189, 101, .07); font-size: 13px; line-height: 1.5; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); min-height: 460px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.positions-pane { padding: 28px 30px 28px 0; }
.positions-head, .position-row { display: grid; grid-template-columns: .9fr 1fr 1fr 1fr 1.1fr; gap: 12px; align-items: center; }
.positions-head { padding: 0 14px 11px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.position-row { width: 100%; min-height: 70px; border: 0; border-top: 1px solid var(--line-soft); padding: 10px 14px; color: var(--text); background: transparent; text-align: left; }
.position-row:hover, .position-row.selected { background: var(--surface); }
.position-row.selected { box-shadow: inset 2px 0 var(--accent); }
.position-row span { font-size: 13px; }
.position-symbol { font-weight: 800; }
.positive { color: var(--accent); }
.negative { color: var(--danger); }
.protection { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.protection::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.protection.protected { color: var(--accent); }
.protection.missing { color: var(--danger); }

.empty-state { display: grid; place-items: center; align-content: center; min-height: 330px; text-align: center; }
.empty-line { width: 42px; height: 1px; margin-bottom: 21px; background: var(--accent); }
.empty-state h3 { margin: 0 0 10px; font-size: 20px; }
.empty-state p { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.55; font-size: 13px; }

.detail-pane { padding: 29px 0 29px 30px; border-left: 1px solid var(--line); }
.detail-placeholder { max-width: 360px; padding-top: 62px; }
.detail-placeholder h2, .position-detail h2 { margin: 0 0 13px; font-size: 30px; letter-spacing: -.035em; }
.detail-placeholder > p:last-child { color: var(--muted); line-height: 1.6; font-size: 13px; }
.management-state { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 -10px; padding: 10px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }
.management-state strong { color: var(--text); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.management-state.active span, .management-state.active strong { color: var(--accent); }
.detail-pnl { margin: 30px 0; font-size: 40px; font-weight: 760; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.detail-facts { display: grid; grid-template-columns: 1fr auto; gap: 13px 20px; margin: 0 0 28px; padding: 20px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.detail-facts dt { color: var(--muted); font-size: 12px; }
.detail-facts dd { margin: 0; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.close-position-button { width: 100%; min-height: 44px; border: 1px solid #6f353a; border-radius: 8px; color: #ff9a9f; background: rgba(255, 107, 114, .05); font-weight: 700; }
.close-position-button:hover { background: rgba(255, 107, 114, .11); }
.viewer-close-note { margin: 0; padding: 13px 14px; border-left: 2px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .018); font-size: 12px; line-height: 1.5; }

.modules-line { margin-top: 38px; }
.modules-list { display: flex; flex-wrap: wrap; gap: 10px; }
.module-chip { padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; }
.module-chip.enabled { border-color: #315d4a; color: var(--accent); background: rgba(98, 230, 167, .045); }

.close-dialog { width: min(510px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.close-dialog::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(5px); }
.dialog-body { padding: 28px; }
.dialog-body h2 { margin: 0 0 12px; font-size: 28px; }
.dialog-body > p:not(.eyebrow):not(.form-error) { color: var(--muted); line-height: 1.55; }
.close-facts { display: grid; grid-template-columns: 1fr auto; gap: 11px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.close-facts span { color: var(--muted); font-size: 13px; }
.close-facts strong { font-variant-numeric: tabular-nums; }
.dialog-warning { font-size: 12px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .shell { width: min(100% - 28px, 760px); }
  .login-view, .onboarding-view { grid-template-columns: 1fr; gap: 46px; padding: 68px 0; }
  .login-form { max-width: 520px; }
  .wallet-gate { width: 100%; max-width: 560px; min-height: 0; }
  .setup-heading { grid-template-columns: 1fr; gap: 24px; }
  .setup-progress { justify-items: start; }
  .setup-account { grid-template-columns: 68px minmax(0, 1fr); gap: 24px; }
  .setup-account-action { grid-column: 2; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .account-list { grid-template-columns: 1fr; }
  .account-row + .account-row { border-left: 0; border-top: 1px solid var(--line); }
  .workspace { grid-template-columns: 1fr; }
  .positions-pane { padding-right: 0; }
  .detail-pane { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .topbar { min-height: 64px; height: auto; padding: 8px 0; }
  .mode-badge { display: none; }
  .topbar-actions { gap: 8px; }
  .client-navigation { order: -1; }
  .nav-button { padding: 0 9px; }
  .topbar-actions > .quiet-button { min-height: 44px; padding: 0 11px; }
  .client-switcher { min-height: 0; align-items: stretch; flex-direction: column; gap: 8px; padding: 12px 0 16px; }
  .client-switcher select { width: 100%; min-width: 0; }
  .dashboard { padding-top: 40px; }
  .page-heading { margin-bottom: 38px; }
  .account-row { grid-template-columns: auto 1fr; }
  .account-equity { grid-column: 2; justify-items: start; }
  .positions-head { display: none; }
  .position-row { grid-template-columns: 1fr 1fr; gap: 8px 18px; padding: 14px 10px; }
  .position-row .protection { grid-column: 1 / -1; }
  .onboarding-view { gap: 32px; padding: 54px 0; }
  .wallet-gate { padding: 22px; }
  .progress-track { margin-bottom: 37px; }
  .onboarding-copy h1, .login-copy h1 { font-size: 40px; }
  .account-setup { padding-top: 48px; }
  .setup-title h1 { font-size: 42px; }
  .setup-account { grid-template-columns: 1fr; gap: 20px; padding: 31px 0; }
  .setup-index { grid-template-columns: auto 1fr; align-items: center; }
  .setup-account-action { grid-column: 1; }
  .master-address-form { grid-template-columns: 1fr; }
  .master-address-form .quiet-button { width: 100%; }
  .master-address-actions > * { width: 100%; }
  .approval-facts > div { grid-template-columns: 88px minmax(0, 1fr); }
  .approval-facts dd { align-items: stretch; flex-direction: column; }
  .approval-facts .copy-button { width: 100%; }
  .approval-actions > * { width: 100%; justify-content: center; }
  .setup-complete { grid-template-columns: auto 1fr; align-items: start; }
  .setup-complete .primary-button { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .position-row, .quiet-button, .primary-button, .danger-button, .text-button, .nav-button, .copy-button, .external-button, .close-position-button { transition: background-color .16s ease, border-color .16s ease, color .16s ease, filter .16s ease; }
  .progress-track span { transition: width .22s ease; }
  .management-state { animation: reveal-management .22s ease-out both; }
  .setup-account.verified .setup-account-action, .setup-complete { animation: reveal-management .22s ease-out both; }
  .sync-dot { animation: breathe 2.2s ease-in-out infinite; }
  @keyframes reveal-management { from { opacity: 0; transform: translateY(4px); } }
  @keyframes breathe { 50% { opacity: .45; } }
}
