/* Vibe user dashboard (dashboard.html) — builds on the pitch palette in
   styles/pitch.css (vars: --bg, --card, --pink, --cyan, …, .btn, .wordmark). */

/* pitch.css locks the body for the funnel stage; the dashboard scrolls. */
body.dash {
  --graph-l0: #f584ee;
  --graph-l1: #38d1f5;
  --graph-l2: #8b6dff;
  --graph-l3: #6fe3a5;
  --graph-l4: #ffb547;
  --graph-l5: #ff7aa8;
  --graph-l6: #f5d63a;
  --graph-l7: #4fe0a8;
  --graph-l8: #5fb0ff;
  --graph-l9: #c98bff;
  --graph-l10: #ff8fb8;
  --graph-l11: #ffc24f;
  --graph-l12: #6fe0d0;
  --graph-l13: #8f9cff;
  --graph-l14: #e07fff;
  --graph-l15: #ff9466;
  overflow: auto;
  min-height: 100%;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(43, 91, 255, 0.22), transparent 65%),
    radial-gradient(700px 500px at -10% 110%, rgba(245, 132, 238, 0.13), transparent 65%),
    var(--bg);
  background-attachment: fixed;
}
body.dash #root { height: auto; min-height: 100%; }

/* ---------- shared bits ---------- */
.btn.sm {
  font-size: 14px;
  padding: 10px 18px;
  min-height: 42px;
  border-radius: 11px;
  white-space: nowrap;
}
.muted { color: var(--faint); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13.5px; letter-spacing: 0.02em; }

.spinner {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  border: 2.5px solid rgba(38, 201, 242, 0.25);
  border-top-color: var(--cyan);
  animation: dashSpin 0.8s linear infinite;
}
@keyframes dashSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.6s; } }

.dash-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14.5px;
}
.dash-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 16px 18px;
  background: rgba(255, 45, 168, 0.07);
  border: 1px solid rgba(255, 45, 168, 0.35);
  border-radius: 14px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
}
.empty-state {
  padding: 34px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

/* ---------- login ---------- */
.login-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow-y: auto;
}
.login-chrome {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 5;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 34px 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.login-card .wordmark {
  font-size: 21px;
  letter-spacing: -0.02em;
}
.login-card h1 {
  margin-top: 22px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.login-hint {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.login-hint strong { color: var(--ink); font-weight: 700; }
.login-notice {
  margin-top: 14px;
  padding: 11px 13px;
  background: rgba(38, 201, 242, 0.07);
  border: 1px solid rgba(38, 201, 242, 0.35);
  border-radius: 11px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 26px;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-form .field-label { margin: 0; }
.field-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.field {
  width: 100%;
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(7, 13, 26, 0.66);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
  -webkit-font-smoothing: antialiased;
}
.field:focus {
  border-color: rgba(245, 132, 238, 0.6);
  box-shadow: 0 0 0 3px rgba(245, 132, 238, 0.12);
}
.login-field.invalid .field {
  border-color: rgba(255, 45, 168, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 45, 168, 0.12);
}
.field::placeholder { color: var(--faint); font-weight: 500; }
.password-field { position: relative; }
.password-field .field {
  padding-right: 72px;
  letter-spacing: 0.04em;
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.password-toggle:hover {
  color: var(--ink);
  border-color: rgba(148, 168, 205, 0.4);
}
.remember-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  margin: -4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  align-self: flex-start;
}
.remember-row input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}
.remember-box {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(148, 168, 205, 0.45);
  border-radius: 6px;
  background: rgba(7, 13, 26, 0.6);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.remember-box svg {
  opacity: 0;
  transition: opacity 0.12s;
}
.remember-row input:checked + .remember-box {
  background: var(--pink);
  border-color: var(--pink);
}
.remember-row input:checked + .remember-box svg { opacity: 1; }
.remember-row input:focus-visible + .remember-box { box-shadow: 0 0 0 3px rgba(245, 132, 238, 0.25); }
.login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 45, 168, 0.08);
  border: 1px solid rgba(255, 45, 168, 0.28);
  border-radius: 12px;
  color: #ff8fd0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}
.login-error-glyph {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.login-btn {
  width: 100%;
  justify-content: center;
  margin-top: 2px;
}
.login-key-return {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(38, 201, 242, 0.24);
  border-radius: 999px;
  background: rgba(38, 201, 242, 0.06);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.login-key-return:hover {
  color: var(--cyan);
  border-color: rgba(38, 201, 242, 0.5);
  background: rgba(38, 201, 242, 0.1);
  text-decoration: none;
}
.login-foot {
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.login-recovery-panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 168, 205, 0.16);
}
.login-recovery-panel .recovery-kicker { margin-top: 0; }
.login-recovery-panel h2 {
  margin: 10px 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.login-recovery-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
  text-wrap: pretty;
}
.recovery-channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.recovery-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 13, 26, 0.55);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, box-shadow 0.16s, transform 0.1s;
}
.recovery-channel-card:hover {
  border-color: rgba(38, 201, 242, 0.5);
  background: var(--card-2);
  text-decoration: none;
}
.recovery-channel-card:active { transform: scale(0.99); }
.recovery-channel-card.primary {
  background:
    radial-gradient(420px 170px at 0% 0%, rgba(111, 227, 165, 0.14), transparent 70%),
    rgba(10, 28, 21, 0.6);
  border-color: rgba(111, 227, 165, 0.5);
  box-shadow: 0 0 0 1px rgba(111, 227, 165, 0.1), 0 12px 34px rgba(111, 227, 165, 0.1);
}
.recovery-channel-card.primary:hover {
  border-color: rgba(111, 227, 165, 0.85);
  background: rgba(12, 34, 25, 0.72);
}
.recovery-channel-card.primary .recovery-channel-icon {
  color: var(--green);
  background: rgba(111, 227, 165, 0.14);
  border-color: rgba(111, 227, 165, 0.45);
}
.recovery-channel-card.disabled {
  cursor: not-allowed;
  opacity: 0.74;
}
.recovery-channel-card.disabled:hover {
  border-color: rgba(111, 227, 165, 0.5);
  background:
    radial-gradient(420px 170px at 0% 0%, rgba(111, 227, 165, 0.14), transparent 70%),
    rgba(10, 28, 21, 0.6);
  transform: none;
}
.recovery-channel-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(38, 201, 242, 0.3);
  border-radius: 11px;
  background: rgba(38, 201, 242, 0.1);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
}
.recovery-channel-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
}
.recovery-channel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
}
.recovery-channel-sub {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}
.recovery-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--pink);
  color: #2a0420;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.recovery-badge.green-badge { color: #07291a; background: var(--green); }
.recovery-badge.muted-badge {
  background: rgba(148, 168, 205, 0.14);
  color: var(--muted);
}
.recovery-channel-arrow {
  flex: 0 0 auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.15s, transform 0.15s;
}
.recovery-channel-card:hover .recovery-channel-arrow {
  color: var(--cyan);
  transform: translateX(2px);
}
.recovery-channel-card.primary .recovery-channel-arrow {
  padding: 8px 13px;
  border-radius: 8px;
  background: var(--green);
  color: #07291a;
  white-space: nowrap;
}
.wallet-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(111, 227, 165, 0.28);
  border-radius: 12px;
  background: rgba(111, 227, 165, 0.07);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}
.wallet-note .lock {
  flex: 0 0 auto;
  font-family: var(--mono);
}
.recovery-backup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.recovery-backup::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.recovery-backup-list { margin-top: 10px; }
.recovery-channel-card.backup { background: rgba(7, 13, 26, 0.4); }
.recovery-channel-card.backup .recovery-channel-icon {
  width: 36px;
  height: 36px;
  font-size: 15px;
}
.recovery-safety-note {
  position: relative;
  margin-top: 16px;
  padding-left: 20px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}
.recovery-safety-note::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(111, 227, 165, 0.45);
}
.recovery-safety-note strong { color: var(--muted); font-weight: 700; }
.login-foot-link,
.recovery-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}
.login-foot-link:hover,
.recovery-link:hover { color: var(--ink); }
.recovery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.recovery-link:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.recovery-card { max-width: 500px; }
.recovery-kicker {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.recovery-challenge {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(38, 201, 242, 0.08), rgba(38, 201, 242, 0.02)),
    rgba(7, 13, 26, 0.42);
  border: 1px solid rgba(38, 201, 242, 0.26);
  border-radius: 14px;
}
.recovery-challenge > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(148, 168, 205, 0.16);
}
.recovery-challenge strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 800;
  text-align: right;
}
.recovery-challenge > .wallet-picker {
  display: block;
  padding: 12px;
  border-bottom: 0;
}
.recovery-label {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.recovery-success {
  margin-top: 16px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(111, 227, 165, 0.08), rgba(245, 132, 238, 0.04)),
    rgba(7, 13, 26, 0.42);
  border: 1px solid rgba(111, 227, 165, 0.28);
  border-radius: 14px;
}
.recovery-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(111, 227, 165, 0.36);
  border-radius: 999px;
  color: var(--green);
  background: rgba(111, 227, 165, 0.08);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.recovery-key {
  resize: none;
  color: var(--pink);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
}
@media (max-width: 560px) {
  .login-wrap {
    padding-top: 76px;
  }
  .login-chrome {
    top: 14px;
    right: 14px;
  }
  .login-key-return {
    top: 14px;
    left: 14px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12.5px;
  }
  .login-card {
    padding: 28px 22px 22px;
    border-radius: 18px;
  }
  .login-card h1 {
    font-size: 23px;
  }
  .recovery-channel-card {
    align-items: flex-start;
  }
  .recovery-channel-arrow {
    display: none;
  }
}
@media (max-width: 380px) {
  .recovery-channel-card {
    display: grid;
    grid-template-columns: 1fr;
  }
  .recovery-channel-title {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ---------- shell ---------- */
.dash-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 20px 40px;
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.dash-head-left { display: flex; align-items: baseline; gap: 9px; }
.dash-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.dash-head-right { display: flex; align-items: center; gap: 12px; }
.dash-user { font-size: 14px; font-weight: 800; color: var(--pink); }

.dash-tabs {
  display: flex;
  gap: 6px;
  margin-top: 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
  flex: 0 0 auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.dash-tab:hover { color: var(--ink); }
.dash-tab.active { color: var(--ink); border-bottom-color: var(--pink); }
.dash-tab-badge {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f584ee 0%, #ff2da8 100%);
  color: #17091c;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 8px 20px rgba(245, 132, 238, 0.32);
  transform: translateY(-7px);
}
.dash-tabs-socials {
  margin-left: auto;
  align-self: center;
  padding-bottom: 6px;
  flex: 0 0 auto;
}

.dash-main { margin-top: 24px; }
.dash-foot {
  margin-top: 36px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--faint);
  text-align: center;
}

/* ---------- cards ---------- */
.view { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: rgba(16, 26, 48, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
}
.card-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.card-sub { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: -6px 0 14px; }

.ov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* points hero */
.points-hero {
  background:
    linear-gradient(135deg, rgba(255, 45, 168, 0.12), rgba(43, 91, 255, 0.12)),
    rgba(16, 26, 48, 0.72);
}
.points-big {
  font-size: clamp(38px, 7vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.points-meta { margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.points-meta strong { color: var(--ink); }
.trade-cta {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
  text-decoration: none;
  text-align: center;
}

/* tasks */
.task-list { display: flex; flex-direction: column; gap: 11px; }
.task-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-when { font-size: 12.5px; color: var(--faint); font-weight: 600; white-space: nowrap; }

/* ---------- Tasks tab ---------- */
.view-tasks {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tasks-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(245, 132, 238, 0.1), transparent 66%),
    linear-gradient(160deg, rgba(22, 34, 60, 0.55), rgba(12, 20, 38, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px -38px rgba(0, 0, 0, 0.9);
}
.tasks-hero-copy {
  min-width: 0;
}
.tasks-hero-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.tasks-hero h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tasks-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
}
.tasks-hero p strong {
  color: var(--ink);
  font-weight: 800;
}
.tasks-hero p span {
  color: var(--pink);
  font-weight: 900;
}
.tasks-hero p .tasks-all-done {
  color: var(--green);
}
.tasks-hero-progress {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}
.tasks-ring {
  position: relative;
  width: 84px;
  height: 84px;
}
.tasks-ring svg {
  transform: rotate(-90deg);
}
.tasks-ring-track,
.tasks-ring-progress {
  fill: none;
  stroke-width: 8;
}
.tasks-ring-track {
  stroke: rgba(148, 168, 205, 0.16);
}
.tasks-ring-progress {
  stroke: url(#tasks-ring-gradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.tasks-ring-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 900;
}
.tasks-ring-copy span {
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
}
.tasks-ring-copy small {
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
}
.tasks-toggle-all {
  min-height: 35px;
  padding: 8px 13px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tasks-toggle-all:hover {
  color: var(--muted);
  border-color: rgba(148, 168, 205, 0.32);
}
.task-stepper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.task-card {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(20, 31, 56, 0.5), rgba(11, 18, 35, 0.4));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 44px -32px rgba(0, 0, 0, 0.85);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s, background 0.25s;
}
.task-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  opacity: 0;
  background: linear-gradient(180deg, #ff2da8, #ff5ec7);
  transition: opacity 0.25s;
}
.task-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 168, 205, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 26px 56px -30px rgba(0, 0, 0, 0.9);
}
.task-card.current {
  border-color: rgba(245, 132, 238, 0.32);
}
.task-card.current::before {
  opacity: 1;
}
.task-card.done {
  border-color: rgba(111, 227, 165, 0.3);
  background: linear-gradient(165deg, rgba(16, 36, 28, 0.42), rgba(11, 22, 26, 0.34));
}
.task-card.done::before {
  opacity: 1;
  background: linear-gradient(180deg, var(--green), #4fcf8c);
}
.task-card-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
.task-node {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 13, 26, 0.7);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 900;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.task-card.current .task-node {
  color: var(--pink);
  border-color: rgba(245, 132, 238, 0.5);
  background: rgba(40, 14, 38, 0.6);
  box-shadow: 0 0 0 4px rgba(245, 132, 238, 0.08), 0 0 24px rgba(245, 132, 238, 0.22);
}
.task-card.done .task-node {
  color: #08130d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green), #4fcf8c);
  box-shadow: 0 0 22px rgba(111, 227, 165, 0.3);
}
.task-card-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.task-kicker,
.task-title {
  display: block;
}
.task-kicker {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.task-card.current .task-kicker {
  color: var(--pink);
}
.task-card.done .task-kicker {
  color: var(--green);
}
.task-title {
  margin-top: 5px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.task-rewards {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}
.points-chip,
.bonus-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 99px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.points-chip {
  gap: 8px;
  padding: 7px 13px 7px 11px;
  border: 1px solid rgba(111, 227, 165, 0.28);
  background: rgba(111, 227, 165, 0.1);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}
.points-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(111, 227, 165, 0.7);
}
.bonus-chip {
  padding: 5px 11px;
  border: 1px solid rgba(38, 201, 242, 0.26);
  background: rgba(38, 201, 242, 0.08);
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 800;
}
.task-card.done .points-chip,
.task-card.done .bonus-chip {
  opacity: 0.62;
}
.task-chevron {
  flex: 0 0 auto;
  align-self: center;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 13, 26, 0.5);
  color: var(--faint);
  transition: transform 0.28s cubic-bezier(0.3, 0.8, 0.3, 1), color 0.15s, border-color 0.15s;
}
.task-card-row:hover .task-chevron {
  color: var(--ink);
  border-color: rgba(148, 168, 205, 0.32);
}
.task-card.collapsed .task-chevron {
  transform: rotate(-90deg);
}
.task-collapse {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.32s cubic-bezier(0.3, 0.8, 0.3, 1), opacity 0.24s ease;
}
.task-card.collapsed .task-collapse {
  grid-template-rows: 0fr;
  opacity: 0;
}
.task-card-inner {
  overflow: hidden;
  padding-left: 60px;
}
.task-desc {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  text-wrap: pretty;
}
.task-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.task-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.task-action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff2da8, #ff5ec7);
  color: #fff;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 26px -6px rgba(255, 45, 168, 0.55);
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
}
.task-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 32px -6px rgba(255, 45, 168, 0.65);
  text-decoration: none;
}
.task-action-btn:active {
  transform: translateY(0) scale(0.98);
}
.task-action-btn.ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-weight: 800;
}
.task-action-btn.ghost:hover {
  border-color: rgba(148, 168, 205, 0.32);
  color: var(--ink);
  transform: none;
  filter: none;
  box-shadow: none;
}
/* L86: a disabled action button must look disabled (it used to render
   bright and swallow clicks): dim, no lift, no glow, not-allowed cursor. */
.task-action-btn:disabled,
.task-action-btn:disabled:hover,
.task-action-btn:disabled:active {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  filter: grayscale(0.4);
  box-shadow: none;
}
/* L86: the one "Sign & claim" for every ready pitch/earn/how task. */
.task-claim-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border: 1px solid rgba(255, 45, 168, 0.32);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 45, 168, 0.08), rgba(12, 20, 38, 0.4));
}
.task-claim-all-copy {
  min-width: 0;
  flex: 1 1 260px;
}
.task-claim-all-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}
.task-claim-all-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.task-claim-all-list li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
}
.task-claim-all-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.task-claim-all > .task-desc,
.task-claim-all > .task-err,
.task-claim-all > .wallet-flat {
  flex: 1 1 100%;
  margin-top: 0;
}
@media (max-width: 560px) {
  .task-claim-all { padding: 16px; }
  .task-claim-all .task-actions,
  .task-claim-all .task-action-btn { width: 100%; justify-content: center; }
}
.task-sync-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
}
.task-err {
  font-size: 13px;
  font-weight: 700;
  color: #ff9ad2;
}
.error-report {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 45, 168, 0.2);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}
.error-report-row { margin-top: 4px; }
.error-report code {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}
.error-report-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}
.error-report-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--pink), #ff75d8);
  color: #090b16 !important;
  border: 0;
  font-size: 14.5px;
  font-weight: 900;
  font-family: var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(255, 45, 168, 0.22);
}
.error-report-primary:hover { filter: brightness(1.08); }
.error-report-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 13px;
  border: 1px solid rgba(255, 45, 168, 0.34);
  background: rgba(255, 45, 168, 0.08);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.error-report-secondary:disabled { opacity: 0.5; cursor: not-allowed; }
.error-report-box {
  width: 100%;
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 45, 168, 0.28);
  background: rgba(7, 13, 26, 0.72);
  color: var(--ink);
  font: 11.5px/1.45 ui-monospace, "SF Mono", Menlo, monospace;
  resize: vertical;
}
/* S8 C47: the legacy .report-modal-* block (pre-v2 magenta modal) was removed —
   styles/v2-tasks.css owns the in-schema report modal since S4/S6. */
.task-done-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--green);
  font-size: 13.5px;
  font-weight: 800;
}
.task-done-when {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.task-verify-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 660px;
}
.task-verify-input {
  flex: 1 1 300px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(5, 10, 20, 0.65);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.task-verify-input:focus {
  border-color: var(--pink);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(245, 132, 238, 0.12);
}
.task-verify-input::placeholder {
  color: var(--faint);
}
.task-verify-btn {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 26, 48, 0.7);
  color: var(--faint);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 900;
  cursor: not-allowed;
  transition: transform 0.18s, filter 0.18s, box-shadow 0.18s, background 0.18s;
}
.task-verify-btn.ready {
  border-color: transparent;
  background: linear-gradient(135deg, #ff2da8, #ff5ec7);
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 26px -6px rgba(255, 45, 168, 0.55);
}
.task-verify-btn.ready:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.tick {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--faint);
}
.tick .tick-mark {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(7, 13, 26, 0.6);
  border: 1px solid var(--line);
  color: var(--faint);
}
.tick.done { color: var(--ink); }
.tick.done .tick-mark {
  color: var(--green);
  border-color: rgba(111, 227, 165, 0.5);
  background: rgba(111, 227, 165, 0.08);
}

/* ref link */
.reflink-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reflink {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(7, 13, 26, 0.6);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* codes summary chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(7, 13, 26, 0.6);
  border: 1px solid var(--line);
}
.chip strong { color: var(--ink); font-weight: 800; }
.chip-unused { border-color: rgba(111, 227, 165, 0.4); }
.chip-unused strong { color: var(--green); }
.chip-reserved { border-color: rgba(38, 201, 242, 0.4); }
.chip-reserved strong { color: var(--cyan); }
.chip-used { border-color: rgba(245, 132, 238, 0.4); }
.chip-used strong { color: var(--pink); }
/* SYN-293 lifetime invite limit ("X of Y codes used") */
.chip-limit { border-color: rgba(255, 181, 71, 0.4); }
.chip-limit strong { color: var(--graph-l4); }

/* request more codes */
.req-codes { margin-top: 16px; }
.req-wrap { display: inline-block; }
.req-hint { margin-top: 8px; font-size: 12.5px; color: var(--faint); font-weight: 600; }
.req-err {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #ff9ad2;
}
.req-pending {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 11px;
  background: rgba(38, 201, 242, 0.07);
  border: 1px solid rgba(38, 201, 242, 0.35);
  color: var(--cyan);
  font-size: 13.5px;
  font-weight: 700;
}

/* ---------- tables ---------- */
.card-table { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.dash-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.dash-table td {
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid rgba(148, 168, 205, 0.08);
  vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table .amount { color: var(--green); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

.progress-ticks { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.progress-ticks .tick { font-size: 12.5px; }

/* status pills */
.pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.pill-unused { color: var(--green); background: rgba(111, 227, 165, 0.1); border: 1px solid rgba(111, 227, 165, 0.4); }
.pill-reserved { color: var(--cyan); background: rgba(38, 201, 242, 0.1); border: 1px solid rgba(38, 201, 242, 0.4); }
.pill-used { color: var(--pink); background: rgba(245, 132, 238, 0.1); border: 1px solid rgba(245, 132, 238, 0.4); }
.pill-followup { color: #f5b14b; background: rgba(245, 177, 75, 0.1); border: 1px solid rgba(245, 177, 75, 0.42); }

/* SYN-39: settings tab */
.view-settings .field { max-width: 420px; }
.settings-note { font-size: 12.5px; color: var(--faint); margin: 8px 0 0; max-width: 420px; line-height: 1.5; }
.settings-actions { margin-top: 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.settings-ok { color: var(--green); font-size: 13.5px; }
.settings-error { color: var(--pink); font-size: 13.5px; }

/* SYN-56: dashboard FAQ — collapsible disclosure (mirrors the funnel .acct-help) */
.view-faq { margin-top: 18px; }
.view-faq-page .view-faq { margin-top: 0; }
.faq-intro {
  background:
    linear-gradient(135deg, rgba(255, 45, 168, 0.12), rgba(38, 201, 242, 0.08)),
    rgba(16, 26, 48, 0.72);
}
.faq-intro h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em;
}
.faq-intro p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.view-faq .faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  font: inherit; width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; padding: 12px 0; color: var(--ink);
  display: flex; gap: 8px; align-items: baseline;
}
.faq-q:hover { color: var(--cyan); }
.faq-caret { color: var(--muted); }
.faq-a { padding: 0 0 14px 22px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.faq-a strong { color: var(--ink); }
.faq-a ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.faq-a code { font-size: 12.5px; background: rgba(255, 255, 255, 0.06); padding: 1px 5px; border-radius: 4px; }
.faq-rich { max-width: 760px; }
.faq-rich p { margin: 0 0 12px; }
.faq-rich h4 {
  margin: 18px 0 6px;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.faq-rich ul { margin-bottom: 12px; }

/* my-codes filter chips (clickable) */
.codes-filters { margin: 2px 0 16px; }
.chip-filter {
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chip-filter:hover { color: var(--ink); border-color: rgba(148, 168, 205, 0.4); }
.chip-filter.active { color: var(--ink); border-color: var(--pink); background: rgba(245, 132, 238, 0.12); }

/* referee Yes/No (dashboard opened) — green check / red cross, no timestamp */
.yn { font-weight: 800; font-size: 13px; white-space: nowrap; }
.yn-yes { color: var(--green); }
.yn-no { color: #f87171; }

.stale-badge {
  margin-left: 9px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffc966;
  background: rgba(255, 201, 102, 0.08);
  border: 1px solid rgba(255, 201, 102, 0.4);
  vertical-align: middle;
}

/* ---------- network ---------- */
.network-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.mode-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  background: rgba(7, 13, 26, 0.72);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.mode-toggle button {
  min-width: 64px;
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.mode-toggle button.active {
  color: var(--ink);
  background: rgba(255, 122, 26, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 26, 0.42);
}
.level-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}
.level-chip {
  background: rgba(7, 13, 26, 0.6);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 13px;
  text-align: center;
}
.level-chip .lvl { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--cyan); }
.level-chip .cnt { margin-top: 6px; font-size: 14px; font-weight: 800; color: var(--ink); }
.level-chip .pts { margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--green); }
.level-chip.zero .cnt, .level-chip.zero .pts { color: var(--faint); }

.tree-root, .tree-kids { list-style: none; margin: 0; padding: 0; }
.tree-kids {
  margin-left: 14px;
  padding-left: 16px;
  border-left: 1px solid rgba(148, 168, 205, 0.18);
}
.tree-node { margin: 4px 0; }
.tree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(7, 13, 26, 0.45);
  border: 1px solid rgba(148, 168, 205, 0.1);
}
.tree-row.has-kids { border-color: var(--line); }
.tree-toggle {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(38, 201, 242, 0.08);
  border: 1px solid rgba(38, 201, 242, 0.35);
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--font);
}
.tree-toggle.leaf {
  color: var(--faint);
  background: transparent;
  border-color: rgba(148, 168, 205, 0.12);
  cursor: default;
}
.tree-handle { font-size: 14px; font-weight: 800; color: var(--pink); }
.tree-name { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.tree-meta { font-size: 12px; font-weight: 600; color: var(--faint); }
.tree-points { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--green); white-space: nowrap; }
.tree-kid-count { font-size: 11.5px; font-weight: 700; color: var(--cyan); white-space: nowrap; }
.graph-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  background:
    radial-gradient(1300px 820px at 82% -10%, rgba(255, 122, 26, 0.10), transparent 60%),
    radial-gradient(1000px 700px at -8% 118%, rgba(56, 209, 245, 0.07), transparent 60%),
    #060a14;
}
/* dotted grid spanning the whole stage, softly faded toward the edges */
.graph-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(150, 170, 210, 0.12) 1px, transparent 1.5px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(125% 125% at 50% 38%, #000 52%, transparent 100%);
  mask-image: radial-gradient(125% 125% at 50% 38%, #000 52%, transparent 100%);
}
/* top scrim so the graph fades up into the header instead of ending in a hard edge */
.graph-modal::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 220px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #060a14 0%, rgba(6, 10, 20, 0.86) 38%, rgba(6, 10, 20, 0) 100%);
}
.graph-modal-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.graph-modal-heading {
  min-width: 0;
}
.graph-modal-kicker {
  color: var(--graph-l2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.graph-modal-title {
  margin-top: 6px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}
.graph-modal-subtitle {
  margin-top: 9px;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.graph-exit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(245, 132, 238, 0.5);
  border-radius: 13px;
  background: rgba(245, 132, 238, 0.07);
  color: var(--pink);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.15s, box-shadow 0.15s;
}
.graph-exit svg {
  width: 14px;
  height: 14px;
}
.graph-exit:hover {
  background: rgba(245, 132, 238, 0.15);
  box-shadow: 0 0 0 3px rgba(245, 132, 238, 0.12);
}
.ref-graph-wrap {
  position: relative;
  overflow: auto;
  border: 1px solid rgba(148, 168, 205, 0.13);
  border-radius: 16px;
  background:
    radial-gradient(circle, rgba(150, 170, 210, 0.13) 1px, transparent 1.5px),
    rgba(6, 10, 20, 0.78);
  background-size: 24px 24px;
}
.graph-fullscreen-surface {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 -28px -24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-gutter: stable both-edges;
}
.ref-graph {
  display: block;
  min-width: 720px;
  width: 100%;
  height: 520px;
}
.graph-fullscreen-surface .ref-graph {
  width: auto;
  height: auto;
  margin-top: 0;
}
.graph-toolbar {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(6, 10, 20, 0.9);
  border-bottom: 1px solid rgba(148, 168, 205, 0.12);
  pointer-events: auto;
}
.graph-toolbar-grow {
  flex: 1 1 auto;
}
.graph-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(148, 168, 205, 0.18);
  border-radius: 12px;
  background: rgba(15, 24, 48, 0.82);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.graph-stat-pill b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}
.graph-stat-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.graph-reset-layout {
  gap: 9px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.graph-reset-layout svg {
  width: 14px;
  height: 14px;
}
.graph-reset-layout:hover {
  color: var(--ink);
  border-color: rgba(148, 168, 205, 0.34);
}
.graph-fullscreen-control {
  gap: 9px;
  cursor: pointer;
  color: var(--pink);
  border-color: rgba(245, 132, 238, 0.5);
  background: rgba(245, 132, 238, 0.07);
  transition: background 0.15s, box-shadow 0.15s;
}
.graph-fullscreen-control svg {
  width: 14px;
  height: 14px;
}
.graph-fullscreen-control:hover {
  background: rgba(245, 132, 238, 0.15);
  box-shadow: 0 0 0 3px rgba(245, 132, 238, 0.12);
}
.graph-control-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 5px;
  border: 1px solid rgba(148, 168, 205, 0.18);
  border-radius: 12px;
  background: rgba(15, 24, 48, 0.82);
  backdrop-filter: blur(10px);
}
.graph-seg,
.graph-tbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.graph-seg svg,
.graph-tbtn svg {
  width: 15px;
  height: 15px;
}
.graph-seg:hover,
.graph-tbtn:hover {
  color: var(--ink);
}
.graph-seg.on {
  color: var(--bg);
  background: var(--ink);
}
.graph-depth-controls .graph-tbtn {
  padding: 0 11px;
}
.graph-depth-controls .graph-tbtn.on {
  color: var(--graph-l1);
  background: rgba(56, 209, 245, 0.12);
}
.graph-icbtn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.graph-icbtn:hover {
  color: var(--ink);
  background: rgba(148, 168, 205, 0.08);
}
.graph-zoomval {
  min-width: 56px;
  text-align: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ref-graph-wrap:not(.graph-fullscreen-surface) .graph-toolbar {
  position: sticky;
  top: 0;
  left: 0;
  right: auto;
  padding: 10px 12px;
  background: rgba(7, 13, 26, 0.92);
  border-bottom: 1px solid rgba(148, 168, 205, 0.12);
  pointer-events: auto;
}
.graph-links path {
  fill: none;
  stroke: rgba(148, 168, 205, 0.32);
  stroke-width: 1.2;
  transition: opacity 0.18s, stroke 0.18s, stroke-width 0.18s;
}
.graph-links path.focused {
  stroke: rgba(245, 132, 238, 0.74);
  stroke-width: 1.8;
}
.graph-links path.dim {
  opacity: 0.2;
}
.graph-node {
  cursor: default;
  outline: none;
  user-select: none;
  --graph-accent: var(--graph-l1);
  transition: opacity 0.18s, filter 0.18s;
}
.graph-node.level-0 { --graph-accent: var(--graph-l0); }
.graph-node.level-1 { --graph-accent: var(--graph-l1); }
.graph-node.level-2 { --graph-accent: var(--graph-l2); }
.graph-node.level-3 { --graph-accent: var(--graph-l3); }
.graph-node.level-4 { --graph-accent: var(--graph-l4); }
.graph-node.level-5 { --graph-accent: var(--graph-l5); }
.graph-node.level-6 { --graph-accent: var(--graph-l6); }
.graph-node.level-7 { --graph-accent: var(--graph-l7); }
.graph-node.level-8 { --graph-accent: var(--graph-l8); }
.graph-node.level-9 { --graph-accent: var(--graph-l9); }
.graph-node.level-10 { --graph-accent: var(--graph-l10); }
.graph-node.level-11 { --graph-accent: var(--graph-l11); }
.graph-node.level-12 { --graph-accent: var(--graph-l12); }
.graph-node.level-13 { --graph-accent: var(--graph-l13); }
.graph-node.level-14 { --graph-accent: var(--graph-l14); }
.graph-node.level-15 { --graph-accent: var(--graph-l15); }
.graph-node.draggable .graph-card-bg { cursor: grab; }
.graph-node.dragging .graph-card-bg { cursor: grabbing; }
.graph-node.has-kids { cursor: pointer; }
.graph-card-bg {
  fill: rgba(17, 26, 50, 0.94);
  stroke: rgba(150, 170, 210, 0.18);
  stroke-width: 1;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.34));
}
.graph-node.root .graph-card-bg {
  fill: rgba(70, 49, 122, 0.78);
  stroke: rgba(245, 132, 238, 0.52);
}
.graph-node.has-kids:hover .graph-card-bg,
.graph-node:focus .graph-card-bg {
  stroke: var(--graph-accent);
}
.graph-node.selected .graph-card-bg {
  stroke: var(--graph-accent);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 18px rgba(56, 209, 245, 0.22)) drop-shadow(0 16px 36px rgba(0, 0, 0, 0.45));
}
.graph-node.dim {
  opacity: 0.25;
  filter: saturate(0.55);
}
.graph-avatar.root { fill: rgba(245, 132, 238, 0.92); }
.graph-avatar.child { fill: var(--graph-accent); }
.graph-avatar-letter {
  fill: #070d1a;
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.graph-handle {
  fill: var(--graph-accent);
  font-size: 12px;
  font-weight: 800;
}
.graph-points {
  font-size: 12px;
  font-weight: 700;
}
.graph-points-value {
  fill: var(--ink);
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.graph-points-suffix {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.graph-badge { stroke: none; }
.graph-badge-direct { fill: var(--graph-accent); }
.graph-badge-codes { fill: rgba(7, 13, 26, 0.92); }
.graph-badge-text {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  fill: #f4f7ff;
  dominant-baseline: central;
}
.graph-you {
  fill: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  dominant-baseline: central;
}
.graph-expander { cursor: pointer; pointer-events: auto; }
.graph-expander circle {
  fill: #17213f;
  stroke: rgba(148, 168, 205, 0.42);
  stroke-width: 1;
}
.graph-expander text {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: central;
}
.graph-node.collapsed .graph-expander circle {
  stroke: var(--graph-accent);
}
.graph-node.collapsed .graph-expander text {
  fill: var(--graph-accent);
}
.graph-legend {
  position: absolute;
  left: 14px;
  bottom: 14px;
  /* leave the bottom-right minimap column clear so a tall (up to 15-level)
     legend wraps to the left of it instead of underneath (264 ≈ minimap 220 +
     right 16 + gap). */
  max-width: calc(100% - 264px);
  z-index: 6;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid rgba(148, 168, 205, 0.18);
  border-radius: 13px;
  background: rgba(15, 24, 48, 0.86);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}
.graph-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.graph-legend-item span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}
.graph-legend-item.house { color: var(--graph-l0); }
.graph-legend-item.l1 { color: var(--graph-l1); }
.graph-legend-item.l2 { color: var(--graph-l2); }
.graph-legend-item.l3 { color: var(--graph-l3); }
.graph-legend-item.l4 { color: var(--graph-l4); }
.graph-legend-item.l5 { color: var(--graph-l5); }
.graph-legend-item.l6 { color: var(--graph-l6); }
.graph-legend-item.l7 { color: var(--graph-l7); }
.graph-legend-item.l8 { color: var(--graph-l8); }
.graph-legend-item.l9 { color: var(--graph-l9); }
.graph-legend-item.l10 { color: var(--graph-l10); }
.graph-legend-item.l11 { color: var(--graph-l11); }
.graph-legend-item.l12 { color: var(--graph-l12); }
.graph-legend-item.l13 { color: var(--graph-l13); }
.graph-legend-item.l14 { color: var(--graph-l14); }
.graph-legend-item.l15 { color: var(--graph-l15); }
.graph-minimap {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  width: 220px;
  height: 150px;
  border: 1px solid rgba(148, 168, 205, 0.18);
  border-radius: 14px;
  background: rgba(10, 16, 32, 0.88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  cursor: crosshair;
}
.graph-minimap:focus {
  outline: 2px solid rgba(56, 209, 245, 0.7);
  outline-offset: 3px;
}
.graph-minimap svg { display: block; width: 100%; height: 100%; }
.graph-kbd-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--faint);
  white-space: nowrap;
}
.graph-kbd-hint kbd {
  font: inherit;
  font-weight: 800;
  color: var(--muted);
  background: rgba(148, 168, 205, 0.12);
  border: 1px solid rgba(148, 168, 205, 0.22);
  border-radius: 5px;
  padding: 1px 5px;
}
.ref-graph-wrap:focus { outline: none; }
.ref-graph-wrap:focus-visible { box-shadow: inset 0 0 0 2px rgba(56, 209, 245, 0.4); }
.graph-depth-controls { position: relative; }
.graph-depth-trigger { display: inline-flex; align-items: center; gap: 6px; }
.graph-depth-caret { font-size: 9px; opacity: 0.85; }
.graph-depth-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 8;
  padding: 10px;
  border: 1px solid rgba(148, 168, 205, 0.2);
  border-radius: 12px;
  background: rgba(12, 19, 38, 0.97);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
}
.graph-depth-grid {
  display: grid;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 5px;
}
.graph-depth-opt {
  min-width: 42px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  background: rgba(148, 168, 205, 0.08);
  border: 1px solid rgba(148, 168, 205, 0.16);
  border-radius: 8px;
  cursor: pointer;
}
.graph-depth-opt:hover { border-color: var(--cyan); color: var(--ink); }
.graph-depth-opt.on { background: rgba(56, 209, 245, 0.18); border-color: var(--cyan); color: var(--ink); }
.graph-depth-full { margin-top: 8px; width: 100%; }
.mm-edge { stroke: rgba(150, 170, 210, 0.3); stroke-width: 1; }
.mm-edge.dim { opacity: 0.22; }
.mm-view {
  fill: rgba(56, 209, 245, 0.14);
  stroke: rgba(56, 209, 245, 0.78);
  stroke-width: 1.4;
  pointer-events: none;
}
.mm-node { fill: var(--graph-l1); }
.mm-node.level-0 { fill: var(--graph-l0); }
.mm-node.level-2 { fill: var(--graph-l2); }
.mm-node.level-3 { fill: var(--graph-l3); }
.mm-node.level-4 { fill: var(--graph-l4); }
.mm-node.level-1 { fill: var(--graph-l1); }
.mm-node.level-5 { fill: var(--graph-l5); }
.mm-node.level-6 { fill: var(--graph-l6); }
.mm-node.level-7 { fill: var(--graph-l7); }
.mm-node.level-8 { fill: var(--graph-l8); }
.mm-node.level-9 { fill: var(--graph-l9); }
.mm-node.level-10 { fill: var(--graph-l10); }
.mm-node.level-11 { fill: var(--graph-l11); }
.mm-node.level-12 { fill: var(--graph-l12); }
.mm-node.level-13 { fill: var(--graph-l13); }
.mm-node.level-14 { fill: var(--graph-l14); }
.mm-node.level-15 { fill: var(--graph-l15); }
.mm-node.dim { opacity: 0.22; }
.graph-focus-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  width: min(340px, 42vw);
  padding: 24px 18px;
  overflow: auto;
  border-left: 1px solid rgba(148, 168, 205, 0.18);
  background: linear-gradient(180deg, #081020, #060a14);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
}
.graph-drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(148, 168, 205, 0.18);
  border-radius: 9px;
  background: rgba(17, 26, 50, 0.9);
  color: var(--muted);
  cursor: pointer;
}
.graph-drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 34px;
}
.graph-drawer-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--graph-l1);
  border: 1.5px solid rgba(56, 209, 245, 0.55);
  background: rgba(56, 209, 245, 0.12);
  font-size: 20px;
  font-weight: 900;
}
.graph-drawer-avatar.root {
  color: var(--graph-l0);
  border-color: rgba(245, 132, 238, 0.58);
  background: rgba(245, 132, 238, 0.13);
}
.graph-drawer-handle {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 900;
}
.graph-drawer-name { color: var(--muted); font-size: 13px; font-weight: 700; }
.graph-drawer-level {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(56, 209, 245, 0.1);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.graph-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 12px;
}
.graph-drawer-grid div,
.graph-drawer-parent,
.graph-child-row {
  border: 1px solid rgba(148, 168, 205, 0.16);
  border-radius: 12px;
  background: rgba(17, 26, 50, 0.84);
}
.graph-drawer-grid div { padding: 13px; }
.graph-drawer-grid span,
.graph-drawer-section-title {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.graph-drawer-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}
.graph-drawer-section { margin-top: 16px; }
.graph-drawer-section-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.graph-drawer-parent {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.graph-child-list { display: flex; flex-direction: column; gap: 8px; }
.graph-child-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
}
.graph-child-row span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(56, 209, 245, 0.11);
  font-size: 10px;
  font-weight: 900;
}
.graph-child-row strong {
  min-width: 0;
  color: var(--cyan);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.graph-child-row em {
  margin-left: auto;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.graph-fullscreen-surface .graph-toolbar,
.graph-fullscreen-surface .graph-minimap,
.graph-fullscreen-surface .graph-legend,
.graph-fullscreen-surface .graph-focus-drawer {
  position: fixed;
}
.graph-fullscreen-surface .graph-toolbar {
  top: 148px;
  left: 28px;
  right: 28px;
  width: auto;
  z-index: 7;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}
.graph-fullscreen-surface.graph-has-focus .graph-toolbar {
  right: calc(min(340px, 42vw) + 28px);
}
.graph-fullscreen-surface .graph-focus-drawer {
  top: 0;
  right: 0;
  bottom: 0;
  height: auto;
  z-index: 9;
}
.graph-fullscreen-surface .graph-minimap {
  right: 24px;
  bottom: 52px;
  z-index: 7;
}
.graph-fullscreen-surface.graph-has-focus .graph-minimap {
  right: calc(min(340px, 42vw) + 24px);
}
.graph-fullscreen-surface .graph-legend {
  left: auto;
  right: 264px;
  bottom: 52px;
  z-index: 7;
}
.graph-fullscreen-surface.graph-has-focus .graph-legend {
  right: calc(min(340px, 42vw) + 264px);
}
.graph-fallback {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  background: rgba(7, 13, 26, 0.35);
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .ov-grid { grid-template-columns: 1fr; }
  .level-chips { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  /* the minimap is a desktop canvas-pan aid; on phones drop it and let the
     legend use the full width (touch users pan the graph directly). */
  .graph-minimap { display: none; }
  .graph-legend { max-width: calc(100% - 28px); }
  .graph-kbd-hint { display: none; }
  .dash-wrap { padding: 18px 14px 32px; }
  .card { padding: 17px 16px; }
  .tasks-hero {
    padding: 22px 20px;
  }
  .tasks-hero-progress {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .task-card {
    padding: 20px 18px;
  }
  .task-card-row {
    flex-wrap: wrap;
  }
  .task-rewards {
    order: 3;
    width: 100%;
    margin: 4px 0 0 60px;
    flex-direction: row;
    align-items: center;
  }
  .task-card-inner {
    padding-left: 0;
  }
  .task-verify-btn {
    width: 100%;
  }
  .network-head { flex-direction: column; }
  .mode-toggle { width: 100%; }
  .mode-toggle button { flex: 1; }
  .graph-modal { padding: 12px; }
  .graph-modal-bar { align-items: stretch; flex-direction: column; }
  .graph-exit { align-self: flex-start; }
  .graph-toolbar-grow { display: none; }
  .tree-points { margin-left: 0; }
  .ref-graph { min-width: 580px; height: 360px; }
  .graph-fullscreen-surface .ref-graph { height: auto; }
}

.wallet-picker {
  width: 100%;
  margin-top: 2px;
  border: 1px solid rgba(148, 168, 205, 0.22);
  border-radius: 12px;
  padding: 12px;
  background: rgba(7, 13, 26, 0.48);
}
.wallet-picker.compact {
  width: 250px;
}
.wallet-picker-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}
.wallet-picker-prompt {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.wallet-picker-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.wallet-picker-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(148, 168, 205, 0.24);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(16, 26, 48, 0.72);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.wallet-picker-option:hover {
  border-color: rgba(255, 45, 168, 0.5);
}
.wallet-picker-option:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.wallet-picker-option img,
.wallet-picker-dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.wallet-picker-dot {
  background: conic-gradient(from 200deg, #2b5bff, #ff2da8, #26c9f2, #2b5bff);
}
.wallet-picker-dot.dim { opacity: 0.4; }
.wallet-picker-option span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.wallet-picker-name { display: flex; flex-direction: column; gap: 1px; }
.wallet-picker-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.25;
}
.wallet-picker-option.uninstalled {
  opacity: 0.78;
  font-weight: 700;
  text-decoration: none;
}
.wallet-picker-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  color: #6ef2b1;
  background: rgba(46, 213, 137, 0.14);
}
.wallet-picker-badge.install {
  color: var(--muted);
  background: rgba(148, 168, 205, 0.14);
}
.wallet-picker-subtitle {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wallet-picker-empty {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.wallet-picker-missing { margin-top: 12px; }
.wallet-picker-missing-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.wallet-picker-missing-link:hover { color: var(--ink); }
.wallet-picker-missing-label {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.wallet-picker-missing-row {
  display: flex;
  gap: 8px;
  margin-top: 7px;
}
.wallet-picker-missing-row input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(148, 168, 205, 0.24);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(16, 26, 48, 0.72);
  font-family: var(--font);
  font-size: 13px;
}
.wallet-picker-missing-send {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 45, 168, 0.5);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 45, 168, 0.14);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.wallet-picker-missing-send:disabled { opacity: 0.55; cursor: not-allowed; }
.wallet-picker-missing-sent { color: #6ef2b1; font-size: 12.5px; }
.wallet-picker-missing-error { margin-top: 6px; color: #f4677d; font-size: 12px; }
.recovery-same-wallet,
.recovery-same-wallet-note {
  margin: 12px 0 4px;
  border: 1px solid rgba(255, 45, 168, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(255, 45, 168, 0.08);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
}
.recovery-same-wallet strong,
.recovery-same-wallet-note strong { color: var(--ink); }
@media (max-width: 640px) {
  .wallet-picker.compact { width: 100%; }
}
.rev-hero { position: relative; overflow: hidden; border: 1px solid rgba(168,130,255,.20);
  background: radial-gradient(120% 140% at 12% 0%, #221a45 0%, #141231 38%, #0c1020 100%); }
.rev-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: #56d4ea; font-weight: 500; }
.rev-estimate-link { color: #e88cff; text-decoration: none; font-weight: 800; margin-left: -4px; }
.rev-estimate-link:hover { color: #fff; text-decoration: underline; }
.rev-live { width: 7px; height: 7px; border-radius: 50%; background: #52e08a; display: inline-block; }
.rev-odometer { display: inline-flex; align-items: flex-end; font-variant-numeric: tabular-nums;
  font-weight: 700; font-size: 56px; line-height: 1; margin: 14px 0 6px; color: #f4eeff;
  text-shadow: 0 0 24px rgba(190,150,255,.28); }
.rev-odometer-calm { margin-bottom: 8px; }
.rev-reel { display: inline-block; overflow: hidden; height: 1em; width: .60em; text-align: center; }
.rev-col { display: flex; flex-direction: column; will-change: transform; }
.rev-col span { display: block; height: 1em; line-height: 1em; }
.rev-sep { display: inline-block; }
.rev-accumulator { margin: 8px 0 12px; padding: 11px 13px; border: 1px solid rgba(110,225,150,.26);
  border-radius: 13px; background: rgba(28,58,40,.24); max-width: 420px; }
.rev-accumulator-label { color: #7fe0a0; font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .13em; text-transform: uppercase; }
/* The kicker's -4px pull-in overlaps the label's last letter here — the label
   is tight monospace with no flex gap to compensate for. */
.rev-accumulator-label .rev-estimate-link { margin-left: 2px; }
.rev-odometer.rev-odometer-acc { margin: 7px 0 0; font-size: 28px; color: #d8ffe7;
  text-shadow: 0 0 18px rgba(110,225,150,.25); }
.rev-odometer-acc .rev-col { will-change: auto; }
.rev-accumulator-rate { color: #9d97c4; font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 7px; }
.rev-sub { font-size: 13px; color: #9d97c4; }
.rev-stats { display: flex; gap: 30px; flex-wrap: wrap; margin: 18px 0 4px; }
.rev-stats span { display: block; font-size: 12px; color: #8b86b0; }
.rev-stats strong { font-size: 24px; color: #e9e3ff; font-variant-numeric: tabular-nums; }
.rev-meta { font-size: 12.5px; color: #7c789e; margin-top: 10px; }

/* ---------- network-revenue docs page (#revenue) ---------- */
.view-revenue-doc { padding-bottom: 8px; }
.rd-nav { display: flex; gap: 18px; font: 600 12px/1 var(--mono); letter-spacing: .04em; }
.rd-nav a { color: var(--faint); text-decoration: none; }
.rd-nav a:hover { color: var(--cyan); }
.rd-intro h2 { font-weight: 800; }

/* status at a glance */
.rd-status-grid { display: flex; flex-direction: column; gap: 14px; }
.rd-status-row { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; }
.rd-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; }
.rd-dot-live { background: var(--green); box-shadow: 0 0 10px rgba(111,227,165,.5); }
.rd-dot-preview { background: var(--cyan); }
.rd-dot-coming { background: var(--pink); }
.rd-dot-blocked { background: var(--faint); }
.rd-status-label { color: var(--ink); font-weight: 700; font-size: 13.5px; }
.rd-status-text { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 2px; }

/* roadmap */
.rd-roadmap { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.rd-roadmap-head { font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.rd-roadmap ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 13px; }
.rd-roadmap li { color: var(--muted); }
.rd-step-title { color: var(--ink); font-weight: 700; font-size: 14px; }
.rd-step-tag { margin-left: 8px; font: 700 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px; border: 1px solid var(--hair); vertical-align: middle; }
.rd-step-shipped { color: var(--green); border-color: rgba(111,227,165,.35); }
.rd-step-next { color: var(--cyan); border-color: rgba(38,201,242,.35); }
.rd-step-planned { color: var(--faint); }
.rd-step-desc { display: block; margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.rd-roadmap-note { margin-top: 14px; color: var(--faint); font-size: 12.5px; line-height: 1.6; }

/* prose blocks */
.rd-prose p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.rd-prose ul { padding-left: 18px; display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.rd-prose li strong, .rd-prose p strong { color: var(--ink); }
.rd-prose em { color: var(--ink); font-style: italic; }
.rd-plain { border-left: 2px solid var(--cyan); padding-left: 12px; color: var(--ink) !important; font-size: 14.5px; }
.rd-muted { color: var(--faint) !important; font-size: 12.5px !important; }

/* the V × f × s readout — mono, cyan (a derived/technical value) */
.rd-formula { display: inline-block; font: 600 15px/1.4 var(--mono); color: var(--cyan);
  background: var(--card-2); border: 1px solid var(--hair); border-radius: 10px; padding: 10px 14px;
  margin: 6px 0 14px; letter-spacing: .02em; }

/* worked example — money, so a pink eyebrow */
.rd-callout { margin: 14px 0; padding: 14px 16px; background: var(--card-2);
  border: 1px solid var(--hair); border-radius: 14px; }
.rd-callout-head { font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 10px; }
.rd-callout .rd-formula { color: var(--pink); margin-bottom: 10px; }

/* embedded FAQ — flatten the nested DashFaq card into this one */
.rd-faq .card { background: transparent; border: 0; border-radius: 0; padding: 0; }
.rd-faq .card-kicker { display: none; }
.rd-faq .view-faq { margin-top: 0; }

/* glossary */
.rd-gloss { margin: 0; }
.rd-gloss dt { color: var(--ink); font-weight: 700; font-size: 13.5px; margin-top: 13px; }
.rd-gloss dt:first-of-type { margin-top: 0; }
.rd-gloss dd { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.rd-foot { color: var(--faint); font-size: 12px; line-height: 1.6; font-style: italic; padding: 2px 2px 4px; }

/* ============================================================
   SYN-56 — Aurora wallet-confirmation page (#confirm)
   Premium standalone redesign: two-column modal, animated
   aurora canvas panel, glass wallet chooser. See
   DashCodeOverwriteView in src/dashboard/code-overwrite.jsx.
   ============================================================ */
/* Break out of the 980px dashboard wrap so the modal has room. */
.view-confirm {
  width: min(1120px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.cfm-modal {
  display: flex;
  min-height: 640px;
  background: #0A0E1C;
  border: 1px solid rgba(246, 64, 174, 0.4);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 70px rgba(246, 64, 174, 0.12), 0 40px 90px rgba(0, 0, 0, 0.5);
}

.cfm-content {
  flex: 1 1 54%;
  box-sizing: border-box;
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.cfm-kicker {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #F640AE;
  text-transform: uppercase;
}
.cfm-kicker.done { color: #3DDC97; }
.cfm-title {
  font-size: clamp(27px, 2.5vw, 37px);
  font-weight: 800;
  color: #F5F7FD;
  letter-spacing: -0.02em;
  margin-top: 12px;
  line-height: 1.15;
  text-wrap: pretty;
}
.cfm-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: #9AA7BF;
  max-width: 560px;
  text-wrap: pretty;
}
.cfm-lead strong { color: #F5F7FD; font-weight: 700; }
.cfm-mono {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 13px;
  color: #DCE4F2;
}

.cfm-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.cfm-chip {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #B9C4D8;
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 7px 13px;
  border-radius: 999px;
  text-transform: uppercase;
}
.cfm-chip.reason { color: #FF7BCB; border-color: rgba(246, 64, 174, 0.35); }

.cfm-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.cfm-cta {
  height: 54px;
  padding: 0 28px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF4DB8, #D9219F);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(233, 41, 161, 0.35);
  transition: filter 0.2s, transform 0.2s;
}
.cfm-cta:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.cfm-cta:disabled { opacity: 0.6; cursor: default; }
.cfm-cta-link { display: inline-flex; align-items: center; text-decoration: none; }

.cfm-free { display: inline-flex; align-items: center; gap: 8px; }
.cfm-free-dot { width: 6px; height: 6px; border-radius: 50%; background: #3DDC97; }
.cfm-free-label {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #64748B;
}
.cfm-error { color: #FF6B84; font-size: 13px; line-height: 1.5; max-width: 520px; }

.cfm-panel {
  flex: 1 1 46%;
  position: relative;
  overflow: hidden;
  background: #0A0E1C;
  min-height: 640px;
  box-sizing: border-box;
  /* The glass card lives in normal flow, flex-centered with generous padding,
     so its gap to the modal edge never collapses when the wallet list gets
     tall — the panel (and modal) grow instead. */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 56px 44px;
}
.cfm-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cfm-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 14, 28, 0.85), rgba(10, 14, 28, 0) 26%),
    linear-gradient(0deg, rgba(10, 14, 28, 0.5), rgba(10, 14, 28, 0) 40%);
}

.cfm-card {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 366px;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(13, 19, 34, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.35s, border-color 0.35s;
}
.cfm-card.glow {
  border-color: rgba(246, 64, 174, 0.8);
  box-shadow: 0 0 0 2px rgba(246, 64, 174, 0.6), 0 0 60px rgba(246, 64, 174, 0.45), 0 40px 90px rgba(0, 0, 0, 0.6);
}
.cfm-card-title { font-size: 19px; font-weight: 800; color: #F5F7FD; }
.cfm-card-sub { font-size: 13px; line-height: 1.55; color: #9AA7BF; margin-top: 5px; }

.cfm-wallets { display: flex; flex-direction: column; gap: 9px; }
.cfm-wallet {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  background: #0E1424;
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: border-color 0.2s, transform 0.2s;
}
.cfm-wallet:hover { transform: translateY(-1px); border-color: rgba(246, 64, 174, 0.4); }
.cfm-wallet:disabled { opacity: 0.55; cursor: default; transform: none; }
.cfm-wallet.detected { background: rgba(61, 220, 151, 0.06); border-color: rgba(61, 220, 151, 0.4); }
.cfm-wallet.detected:hover { border-color: rgba(61, 220, 151, 0.7); }
.cfm-wallet-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: 0 0 auto;
  background-size: cover;
  background-position: center;
}
.cfm-wallet.supported .cfm-wallet-av { width: 28px; height: 28px; }
.cfm-wallet-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: #F5F7FD; }
.cfm-wallet.supported .cfm-wallet-name { font-size: 13.5px; color: #DCE4F2; }
.cfm-badge {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 999px;
}
.cfm-badge.detected { color: #3DDC97; background: rgba(61, 220, 151, 0.13); }
.cfm-badge.install { color: #9AA7BF; border: 1px solid rgba(148, 163, 184, 0.25); }

.cfm-other {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #64748B;
  text-transform: uppercase;
}
.cfm-empty { padding: 13px 14px; border: 1px dashed rgba(148, 163, 184, 0.3); border-radius: 14px; }
.cfm-empty-title { font-size: 14px; font-weight: 700; color: #DCE4F2; }
.cfm-empty-sub { font-size: 12px; color: #7C8AA5; margin-top: 3px; }

.cfm-notlisted {
  width: max-content;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #53C8F5;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cfm-notlisted:hover { color: #7FDCFF; }

.cfm-missing { display: flex; flex-direction: column; gap: 8px; }
.cfm-missing-row { display: flex; gap: 8px; }
.cfm-missing input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  background: #0E1424;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 11px;
  color: #F5F7FD;
  font-family: inherit;
  font-size: 13px;
}
.cfm-missing input:focus { outline: none; border-color: rgba(246, 64, 174, 0.5); }
.cfm-missing-send {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #FF4DB8, #D9219F);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.cfm-missing-send:disabled { opacity: 0.5; cursor: default; }
.cfm-missing-sent { font-size: 12.5px; color: #3DDC97; }
.cfm-missing-error { font-size: 12px; color: #FF6B84; }

.cfm-status-card {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 366px;
  box-sizing: border-box;
  padding: 32px 26px;
  text-align: center;
  background: rgba(13, 19, 34, 0.88);
  border: 1px solid rgba(61, 220, 151, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}
.cfm-status-ring {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 30px;
  color: #3DDC97;
  background: rgba(61, 220, 151, 0.12);
  border: 1px solid rgba(61, 220, 151, 0.45);
}
.cfm-status-title { font-size: 18px; font-weight: 800; color: #F5F7FD; }
.cfm-status-sub { font-size: 13px; line-height: 1.55; color: #9AA7BF; margin-top: 6px; }

@media (max-width: 1000px) {
  .view-confirm { width: min(560px, calc(100vw - 24px)); }
  .cfm-modal { flex-direction: column; min-height: 0; }
  .cfm-content { padding: 34px 26px; }
  /* Stacked: center the card with a generous inset so it doesn't read as a
     card awkwardly floating 26px inside the modal. */
  .cfm-panel { min-height: 0; padding: 48px 30px 52px; justify-content: center; }
  .cfm-card,
  .cfm-status-card {
    width: 100%;
    max-width: 400px;
  }
  .cfm-title { font-size: 27px; }
}

/* ============================================================
   SYN-357 — Aurora auth screens (dashboard login + key recovery)
   Split layout: form column left, animated aurora panel right.
   Components: DashLogin / DashboardKeyRecovery / RecoveryOptions
   in src/dashboard/login.jsx; canvas from src/core/aurora-canvas.jsx.
   Spec: _operator/design-mocks/aurora/ + the Aurora design doc.
   SYN-383 — video panel: looping bg video over the canvas (veil +
   scrim on top); ≤900px goes full-bleed (fixed backdrop, statement
   hero, glass form card) per the "Aurora Sign In With Video" mocks.
   ============================================================ */
.aur-split {
  display: flex;
  min-height: 100dvh;
  width: 100%;
  background: #070A14;
  font-family: 'Plus Jakarta Sans', var(--sans, sans-serif);
}

/* ---- form column ---- */
.aur-form {
  flex: 0 0 46%;
  transition: flex-basis 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding: 110px 48px 60px;
}
.aur-form.wide { flex-basis: 70%; }
.aur-wordmark {
  position: absolute;
  top: 44px;
  left: 56px;
  font-size: 24px;
  font-weight: 800;
  color: #EEF2FA;
}
.aur-wordmark .dot, .aur-mword .dot { color: #F640AE; }
.aur-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}
.aur-col {
  position: relative;
  flex: 1 1 340px;
  max-width: 420px;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.aur-back {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #7C8AA5;
  text-decoration: none;
  width: max-content;
}
.aur-back:hover { color: #DCE4F2; }

.aur-eyebrow {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #F640AE;
  text-transform: uppercase;
}
.aur-eyebrow.cyan { color: #53C8F5; font-size: 10.5px; letter-spacing: 0.2em; }
.aur-h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  color: #F5F7FD;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: pretty;
}
.aur-h2 {
  margin: 8px 0 0;
  font-size: 19px;
  font-weight: 800;
  color: #F5F7FD;
  letter-spacing: -0.01em;
}
.aur-body {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: #9AA7BF;
  text-wrap: pretty;
}
.aur-body.sm { margin-top: 6px; font-size: 13.5px; line-height: 1.65; }
.aur-body strong { color: #DCE4F2; font-weight: 600; }
.aur-mono {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 12.5px;
  color: #EEF2FA;
  font-weight: 600;
}
.aur-mono.sm { font-size: 11.5px; color: #DCE4F2; font-weight: 400; }
.aur-mono.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aur-mono.amber { color: #FFB454; }
.aur-mono.green { color: #3DDC97; }

.aur-notice {
  padding: 12px 15px;
  background: rgba(83, 200, 245, 0.06);
  border: 1px solid rgba(83, 200, 245, 0.28);
  border-radius: 14px;
  color: #53C8F5;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---- fields ---- */
.aur-fields { display: flex; flex-direction: column; gap: 20px; }
.aur-field { display: flex; flex-direction: column; gap: 8px; }
.aur-label {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: #7C8AA5;
  text-transform: uppercase;
}
.aur-label.inline { font-size: 10px; letter-spacing: 0.18em; flex: 0 0 auto; }
.aur-input {
  width: 100%;
  height: 52px;
  box-sizing: border-box;
  padding: 0 18px;
  background: #0E1424;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  color: #EEF2FA;
  font-family: inherit;
  font-size: 15px;
}
.aur-input::placeholder { color: #54627C; }
.aur-input:focus {
  outline: none;
  border-color: rgba(246, 64, 174, 0.55);
  box-shadow: 0 0 0 3px rgba(246, 64, 174, 0.14);
}
.aur-input.invalid { border-color: rgba(255, 107, 132, 0.55); }
.aur-input.pass { padding-right: 78px; }
.aur-input:disabled { opacity: 0.6; }
.aur-passwrap { position: relative; }

.aur-ghostbtn {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #9AA7BF;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 5px 11px;
  border-radius: 8px;
  cursor: pointer;
}
.aur-ghostbtn:hover { color: #DCE4F2; border-color: rgba(148, 163, 184, 0.5); }
.aur-ghostbtn.overlay {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.aur-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: max-content;
  font-size: 14px;
  color: #9AA7BF;
}
.aur-remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.aur-checkbox {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.15s;
}
.aur-remember input:checked + .aur-checkbox {
  border-color: rgba(246, 64, 174, 0.9);
  background: #F640AE;
  color: #FFFFFF;
}
.aur-remember input:focus-visible + .aur-checkbox {
  box-shadow: 0 0 0 3px rgba(246, 64, 174, 0.14);
}

/* ---- CTAs ---- */
.aur-cta {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF4DB8, #D9219F);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(233, 41, 161, 0.32);
  transition: filter 0.2s, transform 0.2s;
}
.aur-cta:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.aur-cta:disabled {
  background: linear-gradient(135deg, rgba(255, 77, 184, 0.35), rgba(217, 33, 159, 0.35));
  color: rgba(255, 255, 255, 0.55);
  box-shadow: none;
  cursor: not-allowed;
}
.aur-cta.secondary {
  background: transparent;
  border: 1px solid rgba(246, 64, 174, 0.5);
  color: #FF7BCB;
  font-size: 15.5px;
  box-shadow: none;
}
.aur-cta.secondary:hover:not(:disabled) { background: rgba(246, 64, 174, 0.08); filter: none; transform: none; }

.aur-error {
  color: #FF6B84;
  font-size: 13px;
  line-height: 1.55;
  text-wrap: pretty;
}
.aur-foot { font-size: 13.5px; color: #7C8AA5; text-align: center; }
.aur-footlink {
  background: transparent;
  border: none;
  padding: 0;
  color: #53C8F5;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.aur-footlink:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.aur-footlink:disabled { opacity: 0.5; cursor: default; }

/* ---- pink callout ---- */
.aur-callout {
  padding: 15px 18px;
  background: rgba(246, 64, 174, 0.05);
  border: 1px solid rgba(246, 64, 174, 0.3);
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #9AA7BF;
  text-wrap: pretty;
}
.aur-callout strong { color: #F5F7FD; font-weight: 700; }

/* ---- cyan data card (challenge) + success variant ---- */
.aur-datacard {
  box-sizing: border-box;
  padding: 18px;
  background: rgba(83, 200, 245, 0.04);
  border: 1px solid rgba(83, 200, 245, 0.28);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}
.aur-datacard.success {
  background: rgba(61, 220, 151, 0.05);
  border-color: rgba(61, 220, 151, 0.4);
  gap: 12px;
}
.aur-datacard-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
}
.aur-datacard-row.dashed { border-top: 1px dashed rgba(148, 163, 184, 0.18); padding-top: 12px; }
.aur-datacard .aur-cta { margin-top: 4px; }
.aur-datacard.success .aur-body { margin: 0; }
.aur-datacard.success .aur-datacard-row { padding-bottom: 0; }

.aur-accountrow {
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  padding: 0 18px;
  height: 52px;
  background: #0E1424;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
}
.aur-accountrow-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  color: #EEF2FA;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aur-keybox {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  background: #0E1424;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  color: #EEF2FA;
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 12.5px;
  line-height: 1.5;
  resize: none;
  word-break: break-all;
}
.aur-keybox:focus { outline: none; border-color: rgba(61, 220, 151, 0.5); }

.aur-status {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #64748B;
}
.aur-dot { width: 6px; height: 6px; border-radius: 50%; background: #3DDC97; flex: 0 0 auto; }

/* ---- recovery options column (sign-in screen) ---- */
.aur-rec { gap: 14px; animation: aurRecIn 0.4s ease; }
@keyframes aurRecIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.aur-rec .aur-callout { font-size: 13.5px; }

.aur-reccard {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 16px;
  background: #0E1424;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.aur-reccard:hover { border-color: rgba(148, 163, 184, 0.4); }
.aur-reccard.primary {
  padding: 16px 18px;
  background: rgba(61, 220, 151, 0.05);
  border: 1px solid rgba(61, 220, 151, 0.4);
  border-radius: 16px;
  align-items: center;
}
.aur-reccard.primary:hover { border-color: rgba(61, 220, 151, 0.75); background: rgba(61, 220, 151, 0.09); }
.aur-reccard.disabled { opacity: 0.55; cursor: default; }
.aur-reccard.disabled:hover { border-color: rgba(148, 163, 184, 0.14); }
.aur-reccard-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 15px;
  font-weight: 700;
}
.aur-reccard-icon.wallet { background: rgba(61, 220, 151, 0.13); border: 1px solid rgba(61, 220, 151, 0.35); color: #3DDC97; }
.aur-reccard-icon.discord { background: rgba(110, 113, 255, 0.14); border: 1px solid rgba(110, 113, 255, 0.35); color: #9DAFFF; }
.aur-reccard-icon.telegram { background: rgba(83, 200, 245, 0.12); border: 1px solid rgba(83, 200, 245, 0.35); color: #53C8F5; }
.aur-reccard-copy { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.aur-reccard-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  color: #F5F7FD;
}
.aur-reccard.primary .aur-reccard-title { font-size: 14.5px; }
.aur-reccard-sub { font-size: 12.5px; line-height: 1.55; color: #9AA7BF; text-wrap: pretty; }
.aur-recbadge {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #3DDC97;
  background: rgba(61, 220, 151, 0.13);
  padding: 3px 8px;
  border-radius: 999px;
}
.aur-reccard-go {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #06251A;
  background: #3DDC97;
  padding: 8px 13px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.aur-reccard-out { flex: 0 0 auto; color: #64748B; font-size: 13px; align-self: center; }

.aur-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #64748B;
  white-space: nowrap;
}
.aur-divider-line { flex: 1; height: 1px; background: rgba(148, 163, 184, 0.18); }

.aur-safety {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7C8AA5;
  text-wrap: pretty;
}
.aur-safety .aur-dot { margin-top: 6px; }
.aur-safety strong { color: #DCE4F2; font-weight: 700; }

/* ---- glass wallet side-sheet (key recovery) ---- */
.aur-chooser {
  position: absolute;
  z-index: 5;
  top: 0;
  left: calc(100% + 36px);
  width: 372px;
  box-sizing: border-box;
  padding: 24px;
  background: rgba(13, 19, 34, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 70px rgba(246, 64, 174, 0.14), 0 40px 90px rgba(0, 0, 0, 0.55);
  animation: aurChooserIn 0.28s ease;
}
@keyframes aurChooserIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
.aur-chooser-x {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 9px;
  color: #9AA7BF;
  font-size: 13px;
  cursor: pointer;
}
.aur-chooser-x:hover { color: #FFFFFF; border-color: rgba(148, 163, 184, 0.5); }

/* Restyle the shared VibeWalletPicker to the Aurora glass-card look. */
.aur-chooser .wallet-picker.aurora { display: flex; flex-direction: column; gap: 13px; margin: 0; padding: 0; background: none; border: none; }
.aur-chooser .wallet-picker-title { font-size: 19px; font-weight: 800; color: #F5F7FD; padding-right: 38px; }
.aur-chooser .wallet-picker-prompt { font-size: 13px; line-height: 1.55; color: #9AA7BF; margin-top: -8px; text-wrap: pretty; }
.aur-chooser .wallet-picker-subtitle {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #64748B;
  text-transform: uppercase;
}
.aur-chooser .wallet-picker-options { display: flex; flex-direction: column; gap: 8px; }
.aur-chooser .wallet-picker-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  background: #0E1424;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  color: #DCE4F2;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.aur-chooser .wallet-picker-option:hover { border-color: rgba(246, 64, 174, 0.4); transform: translateY(-1px); }
.aur-chooser .wallet-picker-option:disabled { opacity: 0.55; cursor: default; transform: none; }
.aur-chooser .wallet-picker-option:not(.uninstalled) {
  background: rgba(61, 220, 151, 0.06);
  border-color: rgba(61, 220, 151, 0.4);
  color: #F5F7FD;
}
.aur-chooser .wallet-picker-option:not(.uninstalled):hover { border-color: rgba(61, 220, 151, 0.7); }
.aur-chooser .wallet-picker-option img { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; }
.aur-chooser .wallet-picker-option > span:nth-child(2) { flex: 1; min-width: 0; }
.aur-chooser .wallet-picker-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #F640AE, #8B5CF6);
}
.aur-chooser .wallet-picker-dot.dim { opacity: 0.7; }
.aur-chooser .wallet-picker-badge {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3DDC97;
  background: rgba(61, 220, 151, 0.13);
  padding: 4px 10px;
  border-radius: 999px;
}
.aur-chooser .wallet-picker-badge.install { color: #9AA7BF; background: none; border: 1px solid rgba(148, 163, 184, 0.25); }
.aur-chooser .wallet-picker-empty {
  padding: 13px 14px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #9AA7BF;
}
.aur-chooser .wallet-picker-missing-link {
  width: max-content;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #53C8F5;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.aur-chooser .wallet-picker-missing-link:hover { color: #7FDCFF; }
.aur-chooser .wallet-picker-missing-label { font-size: 12.5px; color: #9AA7BF; display: block; margin-bottom: 8px; }
.aur-chooser .wallet-picker-missing-row { display: flex; gap: 8px; }
.aur-chooser .wallet-picker-missing-row input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  background: #0E1424;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 11px;
  color: #F5F7FD;
  font-family: inherit;
  font-size: 13px;
}
.aur-chooser .wallet-picker-missing-row input:focus { outline: none; border-color: rgba(246, 64, 174, 0.5); }
.aur-chooser .wallet-picker-missing-send {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #FF4DB8, #D9219F);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.aur-chooser .wallet-picker-missing-send:disabled { opacity: 0.5; cursor: default; }
.aur-chooser .wallet-picker-missing-sent { font-size: 12.5px; color: #3DDC97; }
.aur-chooser .wallet-picker-missing-error { font-size: 12px; color: #FF6B84; }

/* ---- aurora panel ---- */
.aur-panel {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  background: #0A0E1C;
}
.aur-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.aur-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aur-veil {
  position: absolute;
  inset: 0;
  background: #1E0B2E;
  opacity: 0.4;
  pointer-events: none;
}
.aur-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 10, 20, 0.9), rgba(7, 10, 20, 0) 30%),
    linear-gradient(0deg, rgba(7, 10, 20, 0.6), rgba(7, 10, 20, 0) 45%);
}
.aur-overlay {
  /* Cap at one viewport so the bottom cluster stays on screen when the
     recovery column makes the page taller than 100dvh. */
  position: sticky;
  top: 0;
  z-index: 2;
  height: min(100dvh, 100%);
  box-sizing: border-box;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}
.aur-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.aur-mword { display: none; font-size: 21px; font-weight: 800; color: #EEF2FA; }
.aur-chip {
  font-family: 'JetBrains Mono', var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #B9C4D8;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(10, 14, 28, 0.5);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-transform: uppercase;
  white-space: nowrap;
}
.aur-cluster {
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.aur-cluster.shifted { transform: translateX(max(0px, calc(610px - 23vw))); }
.aur-statement {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  color: #F5F7FD;
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 480px;
  text-wrap: pretty;
}
.aur-statement .tint { color: #FF7BCB; }
.aur-rot { position: relative; height: 26px; width: 100%; max-width: 480px; }
.aur-rot > div {
  position: absolute;
  inset: 0;
  font-size: 15px;
  color: #B9C4D8;
  opacity: 0;
  animation: aurProp 12s ease-in-out infinite;
}
.aur-rot > div .note { color: #7C8AA5; }
/* Mobile-only hero pieces (rendered in the form column, hidden on desktop). */
.aur-mtop, .aur-mhero { display: none; }
@keyframes aurProp {
  0% { opacity: 0; transform: translateY(10px); }
  5% { opacity: 1; transform: translateY(0); }
  29% { opacity: 1; transform: translateY(0); }
  34% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; transform: translateY(-10px); }
}
.aur-chips { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- responsive ---- */
@media (max-width: 1200px) {
  .aur-rec { border-top: 1px solid rgba(148, 163, 184, 0.14); padding-top: 24px; }
}
@media (max-width: 900px) {
  /* SYN-383 full-bleed mobile: the panel becomes a fixed backdrop, the form
     column scrolls over it — wordmark row up top, statement hero pushed to
     the bottom, then the glass form card. */
  .aur-split { position: relative; flex-direction: column; }
  .aur-panel { position: fixed; inset: 0; z-index: 0; }
  .aur-video { filter: blur(2px); transform: scale(1.06); }
  /* The hero sits ~55-70% up the screen on real phones — the scrim must still
     have weight there, not just at the card. Fade ends near the top so the
     video keeps a visible band under the status bar. */
  .aur-scrim {
    background:
      linear-gradient(0deg, rgba(7, 10, 20, 0.95) 0%, rgba(7, 10, 20, 0.7) 34%, rgba(7, 10, 20, 0.42) 58%, rgba(7, 10, 20, 0) 88%),
      linear-gradient(180deg, rgba(7, 10, 20, 0.6), rgba(7, 10, 20, 0) 26%);
  }
  /* Statement + chips render in the form column on mobile (aur-mtop/aur-mhero). */
  .aur-overlay { display: none; }

  .aur-form, .aur-form.wide {
    flex: 1 1 auto;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
    min-height: 100dvh;
    padding: 26px 14px 16px;
  }
  .aur-wordmark { display: none; }
  .aur-mword { display: inline; }
  /* The fixed ChromeSocials pill owns the top-right corner on mobile. */
  .aur-mtop { display: flex; align-items: center; min-height: 30px; padding: 0 8px; }
  .aur-mtop .aur-mword { font-size: 22px; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5); }

  .aur-mhero {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 0 10px 2px;
  }
  .aur-mhero .aur-statement {
    font-size: 25px;
    line-height: 1.22;
    max-width: 300px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 0, 0, 0.55);
  }
  .aur-mhero .aur-rot { height: 40px; max-width: 330px; }
  .aur-mhero .aur-rot > div {
    font-size: 13px;
    line-height: 1.5;
    color: #DCE4F2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 2px 16px rgba(0, 0, 0, 0.8);
  }
  .aur-mhero .aur-rot > div .note { color: #A3B1CB; }

  /* Glass form card. margin-top:auto bottom-anchors it on the recovery
     screen (no hero there); with the hero present the hero takes the slack. */
  .aur-cols {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 28px;
    align-items: stretch;
    margin-top: auto;
    background: rgba(9, 13, 24, 0.78);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    padding: 22px 18px 26px;
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.45);
  }
  .aur-mhero + .aur-cols { margin-top: 0; }
  .aur-cluster.shifted { transform: none; }
  .aur-chooser { position: static; width: 100%; animation: none; }
  .aur-col { max-width: none; }
}

/* L75: legacy points sign-once-to-keep — the shell banner (src/dashboard/
   legacy-claim.jsx), same amber-notice family as .v2-wallet-notice
   (styles/v2-shell.css) but owned here since the component isn't fenced
   into that stylesheet for this lane. */
.v2-legacy-claim {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--v-border-amber-notice);
  background: color-mix(in srgb, var(--v-amber) 7%, var(--v-bg));
  margin-bottom: 16px;
}
.v2-legacy-claim-icon { flex-shrink: 0; display: grid; place-items: center; color: var(--v-amber); margin-top: 2px; }
.v2-legacy-claim-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.v2-legacy-claim-title { font-size: 14.5px; font-weight: 700; color: var(--v-text); }
.v2-legacy-claim-body { font-size: 13px; line-height: 1.5; color: var(--v-text-2); }
.v2-legacy-claim-done { font-size: 13.5px; font-weight: 700; color: var(--v-green); }
.v2-legacy-claim-toggle {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--v-link);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.v2-legacy-claim-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--v-text-2);
}
.v2-legacy-claim-items li { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 360px; }
.v2-legacy-claim-items li span:last-child { color: var(--v-text-bright); font-weight: 600; }
.v2-legacy-claim-hint { font-size: 13px; color: var(--v-text-2); }
.v2-legacy-claim-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.v2-legacy-claim-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--v-amber);
  color: #1a1406;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
}
.v2-legacy-claim-cta:hover { filter: brightness(1.06); }
.v2-legacy-claim-cta:disabled { opacity: 0.65; cursor: not-allowed; }
.v2-legacy-claim-err { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #ff9ad2; }
.v2-legacy-claim-retry {
  border: 1px solid var(--v-border);
  background: transparent;
  color: var(--v-text);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.v2-legacy-claim-forfeit-note {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--v-text-3);
}
@media (max-width: 640px) {
  .v2-legacy-claim { flex-wrap: wrap; padding: 14px; }
}
