/* FitAI 2.0 B2 — Vital Performance Lab
   Code-native visual layer: no video, WebGL, remote fonts or raster assets. */
:root {
  --b2-coral: #ff5c55;
  --b2-coral-deep: #e8423c;
  --b2-cyan: #16b9c7;
  --b2-cyan-deep: #087e8b;
  --b2-lime: #b7df4a;
  --b2-graphite: #101418;
  --b2-warm: #f6f7f3;
  --b2-panel: #ffffff;
  --b2-ink-soft: #5f676c;
  --b2-line: rgba(16, 20, 24, .1);
  --b2-depth: 0 24px 70px rgba(28, 40, 43, .1), 0 2px 8px rgba(28, 40, 43, .04);
  --b2-spring: cubic-bezier(.2, .8, .2, 1);
  --green: var(--b2-cyan);
  --accent: var(--b2-coral);
  --orange: var(--b2-coral);
  --blue: var(--b2-cyan);
  --bg: var(--b2-warm);
  --surface: var(--b2-panel);
  --surface2: #eef1ed;
  --border: var(--b2-line);
}

[data-theme="dark"] {
  --b2-warm: #0b0f12;
  --b2-panel: #141a1e;
  --b2-ink-soft: #a5afb3;
  --b2-line: rgba(238, 247, 245, .1);
  --b2-depth: 0 28px 78px rgba(0, 0, 0, .34), 0 2px 8px rgba(0, 0, 0, .16);
  --bg: var(--b2-warm);
  --surface: var(--b2-panel);
  --surface2: #1b2328;
  --text: #f2f7f5;
  --text2: #b6c0c2;
  --text3: #7f8c90;
  --border: var(--b2-line);
}

body {
  background:
    linear-gradient(rgba(22,185,199,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,185,199,.025) 1px, transparent 1px),
    var(--b2-warm);
  background-size: 42px 42px;
}

button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--b2-cyan) 42%, transparent);
  outline-offset: 3px;
}

/* Brand intro: one continuous body signal resolves into the wordmark. */
#splash-screen.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(22,185,199,.09), transparent 33rem),
    var(--b2-warm);
  color: var(--text);
  cursor: default;
  opacity: 1;
  visibility: visible;
  transition: opacity .38s var(--b2-spring), visibility .38s;
}

#splash-screen.brand-intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-intro-stage { width: min(620px, 94vw); text-align: center; }
.brand-intro-svg { width: 100%; overflow: visible; }
.brand-intro-guide, .brand-intro-signal {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-intro-guide { stroke: color-mix(in srgb, var(--text) 7%, transparent); stroke-width: 2; }
.brand-intro-signal {
  stroke: url("#unused");
  stroke: var(--b2-cyan);
  stroke-width: 4;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  filter: drop-shadow(0 0 10px rgba(22,185,199,.22));
  animation: b2-draw-mark .82s var(--b2-spring) forwards;
}
.brand-intro-word text {
  fill: var(--text);
  font-family: "Segoe Script", "Bradley Hand", cursive;
  font-size: 76px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -8px;
  opacity: 0;
  transform: translateY(8px);
  animation: b2-word-arrive .38s .63s var(--b2-spring) forwards;
}
.brand-intro-sub {
  margin-top: -20px;
  color: var(--b2-ink-soft);
  font-size: 13px;
  letter-spacing: .13em;
  opacity: 0;
  animation: b2-word-arrive .34s .78s ease forwards;
}
.brand-intro-skip {
  min-width: 60px;
  min-height: 44px;
  margin-top: 30px;
  border: 0;
  background: transparent;
  color: var(--text3);
  cursor: pointer;
}
.brand-intro.is-replay .brand-intro-signal { animation: none; stroke-dashoffset: 900; }
.brand-intro.is-replay .brand-intro-word text,
.brand-intro.is-replay .brand-intro-sub { animation: none; opacity: 0; }
.brand-intro.is-replay.is-running .brand-intro-signal { animation: b2-draw-mark .82s var(--b2-spring) forwards; }
.brand-intro.is-replay.is-running .brand-intro-word text { animation: b2-word-arrive .38s .63s var(--b2-spring) forwards; }
.brand-intro.is-replay.is-running .brand-intro-sub { animation: b2-word-arrive .34s .78s ease forwards; }

@keyframes b2-draw-mark { to { stroke-dashoffset: 0; } }
@keyframes b2-word-arrive { to { opacity: 1; transform: translateY(0); } }

/* Old dashboard remains in source for compatibility but is removed from the IA. */
.b2-home-legacy { display: none !important; }

.b2-home {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 58px);
  overflow: visible;
}
.b2-home-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.b2-overline {
  color: var(--b2-cyan-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.3;
}
[data-theme="dark"] .b2-overline { color: #54d4df; }
.b2-home-head h1 {
  max-width: 780px;
  margin-top: 9px;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.01;
  letter-spacing: -.052em;
}
.b2-date { margin-top: 13px; color: var(--text3); font-size: 13px; }
.b2-replay-mark {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--b2-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--b2-panel) 78%, transparent);
  color: var(--text2);
  cursor: pointer;
}
.b2-replay-mark svg { width: 28px; height: 28px; fill: none; stroke: var(--b2-cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.b2-replay-mark span { font-size: 11px; }

.b2-action-stage {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 40px;
  overflow: hidden;
  isolation: isolate;
  color: #f7fbfa;
  background:
    radial-gradient(circle at 82% 35%, rgba(22,185,199,.24), transparent 24rem),
    radial-gradient(circle at 20% 110%, rgba(255,92,85,.25), transparent 28rem),
    #10171b;
  box-shadow: var(--b2-depth);
}
.b2-action-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255,255,255,.1) .7px, transparent .7px);
  background-size: 17px 17px;
  mask-image: linear-gradient(100deg, #000, transparent 70%);
}
.b2-action-terrain { position: absolute; inset: auto 0 0; z-index: -1; width: 100%; height: 82%; opacity: .25; }
.b2-action-terrain path { fill: none; stroke: #56dbe3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.b2-action-copy { max-width: 690px; position: relative; z-index: 2; }
.b2-action-meta { display: flex; align-items: center; gap: 9px; color: rgba(247,251,250,.65); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.b2-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--b2-lime); box-shadow: 0 0 0 6px rgba(183,223,74,.1); }
.b2-action-copy h2 { max-width: 660px; margin-top: 22px; font-size: clamp(34px, 4.8vw, 65px); line-height: .98; letter-spacing: -.055em; }
.b2-action-copy > p:not(.b2-source-line) { max-width: 580px; margin-top: 17px; color: rgba(235,244,242,.69); font-size: 15px; line-height: 1.65; }
.b2-action-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.b2-primary-action, .b2-choice {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: transform .18s var(--b2-spring), background .18s, border-color .18s;
}
.b2-primary-action { border: 0; background: var(--b2-coral); color: #fff; box-shadow: 0 13px 28px rgba(255,92,85,.24); }
.b2-choice { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.065); color: #edf5f3; }
.b2-primary-action:hover, .b2-choice:hover { transform: translateY(-2px); }
.b2-choice:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.28); }
.b2-source-line { margin-top: 19px; color: rgba(226,238,235,.84); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }

.b2-motion-core { position: relative; width: 270px; aspect-ratio: 1; display: grid; place-items: center; justify-self: end; }
.b2-motion-core::before { content: ""; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #93f2f3, var(--b2-cyan) 38%, #08616d 72%); box-shadow: 0 0 70px rgba(22,185,199,.4), inset -16px -18px 32px rgba(3,45,52,.38); }
.b2-core-orbit { position: absolute; border: 1px solid rgba(116,230,235,.24); border-radius: 50%; }
.b2-core-orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--b2-coral); box-shadow: 0 0 14px rgba(255,92,85,.8); }
.b2-core-orbit.orbit-a { inset: 12%; transform: rotate(-18deg); }
.b2-core-orbit.orbit-a::after { top: 14%; right: 12%; }
.b2-core-orbit.orbit-b { inset: 1%; border-style: dashed; transform: rotate(36deg); }
.b2-core-orbit.orbit-b::after { bottom: 10%; left: 20%; width: 6px; height: 6px; background: var(--b2-lime); }
.b2-motion-core > svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.62); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(255,255,255,.24)); }

.b2-signal-section { padding: clamp(58px, 8vw, 96px) 0 28px; }
.b2-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.b2-section-heading h2 { max-width: 690px; margin-top: 8px; font-size: clamp(28px, 3.5vw, 47px); line-height: 1.05; letter-spacing: -.045em; }
.b2-text-action { min-height: 44px; border: 0; background: transparent; color: var(--b2-cyan-deep); font-weight: 700; cursor: pointer; }
[data-theme="dark"] .b2-text-action { color: #55d6df; }
.b2-signal-grid { display: grid; grid-template-columns: 1.15fr .95fr .95fr; gap: 14px; }
.b2-signal-card {
  position: relative;
  min-width: 0;
  min-height: 245px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--b2-line);
  border-radius: 28px;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  background: color-mix(in srgb, var(--b2-panel) 92%, transparent);
  box-shadow: 0 12px 38px rgba(32,45,48,.05);
  cursor: pointer;
  transition: transform .24s var(--b2-spring), box-shadow .24s var(--b2-spring), border-color .24s;
}
.b2-signal-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 4%, color-mix(in srgb, currentColor 10%, transparent), transparent 48%); }
.b2-signal-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, currentColor 24%, var(--b2-line)); box-shadow: 0 25px 58px rgba(32,45,48,.1); }
.b2-signal-label { display: flex; align-items: center; gap: 8px; color: var(--text2); font-size: 12px; font-weight: 700; }
.b2-signal-label svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b2-signal-card strong { margin-top: 28px; font-size: clamp(25px, 2.5vw, 38px); line-height: 1; letter-spacing: -.045em; }
.b2-signal-card > span:nth-of-type(2) { margin-top: 8px; color: var(--text3); font-size: 11px; }
.b2-spark { width: 100%; height: 74px; margin-top: auto; overflow: visible; }
.b2-spark path { fill: none; vector-effect: non-scaling-stroke; }
.b2-spark-base { stroke: var(--b2-line); stroke-width: 1; stroke-dasharray: 2 5; }
.b2-spark-line { stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 5px 7px color-mix(in srgb, currentColor 23%, transparent)); }
.signal-activity { color: var(--b2-coral); }
.signal-sleep { color: var(--b2-cyan); }
.signal-load { color: #83a927; }
.b2-signal-card .b2-signal-label, .b2-signal-card strong, .b2-signal-card > span:nth-of-type(2) { color: var(--text); }
.b2-signal-card .b2-signal-label { color: var(--text2); }
.b2-signal-card > span:nth-of-type(2) { color: var(--text3); }
.b2-signal-provenance { margin-top: 14px; color: var(--text3); font-size: 11px; }

.b2-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 34px 0 18px; }
.b2-paths button { min-height: 112px; display: grid; grid-template-columns: 32px 1fr 26px; align-items: center; gap: 12px; padding: 20px; border: 1px solid var(--b2-line); border-radius: 22px; background: transparent; color: var(--text); text-align: left; cursor: pointer; transition: background .2s, transform .2s var(--b2-spring); }
.b2-paths button:hover { background: color-mix(in srgb, var(--b2-panel) 70%, transparent); transform: translateY(-2px); }
.b2-path-index { color: var(--b2-coral); font: 750 11px/1 monospace; }
.b2-paths strong { display: block; font-size: 15px; }
.b2-paths small { display: block; margin-top: 5px; color: var(--text3); font-size: 11px; line-height: 1.45; }
.b2-paths svg { width: 23px; fill: none; stroke: var(--b2-cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b2-evidence-drawer { margin: 14px 0 34px; border-top: 1px solid var(--b2-line); border-bottom: 1px solid var(--b2-line); }
.b2-evidence-drawer summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--text2); font-size: 12px; cursor: pointer; list-style: none; }
.b2-evidence-drawer summary::-webkit-details-marker { display: none; }
.b2-evidence-drawer summary span:last-child { color: var(--b2-cyan-deep); }
.b2-evidence-drawer > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; padding: 2px 0 22px; color: var(--text3); font-size: 11px; line-height: 1.65; }
.b2-evidence-drawer strong { color: var(--text2); }

/* Make secondary analysis feel technical without hiding its evidence. */
#panel-insights .insight-card, #panel-insights .chart-card,
#panel-health .chart-card, #panel-dashboard .chart-card {
  border-color: var(--b2-line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--b2-panel) 97%, transparent), color-mix(in srgb, var(--b2-cyan) 3%, var(--b2-panel))),
    var(--b2-panel);
}
#panel-insights .chart-card h3, #panel-health .chart-card h3, #panel-dashboard .chart-card h3 { letter-spacing: -.02em; }

/* Login page inherits the same material and brand palette. */
.auth-page-b2 { background: radial-gradient(circle at 16% 5%, rgba(22,185,199,.1), transparent 31rem), var(--b2-warm); }
.auth-page-b2 .shell, .auth-page-b2 .auth { background: var(--b2-panel); }
.auth-page-b2 .context { background: radial-gradient(circle at 75% 20%, rgba(22,185,199,.28), transparent 24rem), #11191d; }
.auth-page-b2 .mark { color: var(--b2-coral); border-radius: 50%; }
.auth-page-b2 .btn { background: var(--b2-coral); box-shadow: 0 12px 24px rgba(255,92,85,.2); }

/* Login follows the explicit shared theme, not a second system-only override. */

@media (prefers-reduced-motion: no-preference) {
  .b2-core-orbit.orbit-a { animation: b2-orbit-a 14s linear infinite; }
  .b2-core-orbit.orbit-b { animation: b2-orbit-b 20s linear infinite reverse; }
  .b2-motion-core > svg path { stroke-dasharray: 270; animation: b2-signal-flow 3.6s linear infinite; }
  .b2-action-stage { animation: b2-stage-in .62s var(--b2-spring) both; }
  .b2-signal-card { animation: b2-card-in .55s var(--b2-spring) both; }
  .b2-signal-card:nth-child(2) { animation-delay: .07s; }
  .b2-signal-card:nth-child(3) { animation-delay: .14s; }
}
@keyframes b2-orbit-a { to { transform: rotate(342deg); } }
@keyframes b2-orbit-b { to { transform: rotate(396deg); } }
@keyframes b2-signal-flow { to { stroke-dashoffset: -540; } }
@keyframes b2-stage-in { from { opacity: 0; transform: translateY(14px) scale(.99); } }
@keyframes b2-card-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 980px) {
  .b2-action-stage { grid-template-columns: 1fr 220px; }
  .b2-motion-core { width: 220px; }
  .b2-signal-grid { grid-template-columns: 1fr 1fr; }
  .b2-signal-card:first-child { grid-column: 1 / -1; }
  .b2-paths { grid-template-columns: 1fr; }
  .b2-paths button { min-height: 88px; }
}

@media (max-width: 768px) {
  body { background-size: 28px 28px; }
  .b2-home { padding: 18px 15px calc(104px + env(safe-area-inset-bottom, 0px)); }
  .b2-home-head { align-items: flex-start; margin-bottom: 18px; }
  .b2-home-head h1 { font-size: clamp(31px, 9.8vw, 43px); }
  .b2-replay-mark { width: 44px; padding: 7px; justify-content: center; }
  .b2-replay-mark span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .b2-action-stage { min-height: 520px; grid-template-columns: 1fr; align-content: space-between; padding: 26px 22px; border-radius: 29px; }
  .b2-action-copy h2 { font-size: clamp(36px, 11vw, 50px); }
  .b2-action-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .b2-primary-action { grid-column: 1 / -1; }
  .b2-choice { padding-inline: 11px; font-size: 12px; }
  .b2-motion-core { position: absolute; width: 190px; right: -36px; bottom: -29px; opacity: .7; }
  .b2-signal-section { padding-top: 62px; }
  .b2-section-heading { align-items: flex-start; }
  .b2-section-heading h2 { font-size: 31px; }
  .b2-text-action { flex: 0 0 auto; max-width: 75px; padding: 0; font-size: 11px; }
  .b2-signal-grid { grid-template-columns: 1fr; }
  .b2-signal-card:first-child { grid-column: auto; }
  .b2-signal-card { min-height: 210px; border-radius: 24px; }
  .b2-evidence-drawer > div { grid-template-columns: 1fr; gap: 7px; }
  .brand-intro-word text { font-size: 64px; }
}

@media (max-width: 390px) {
  .b2-action-controls { grid-template-columns: 1fr; }
  .b2-primary-action { grid-column: auto; }
  .b2-action-stage { min-height: 570px; }
  .b2-section-heading { display: block; }
  .b2-text-action { max-width: none; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-intro-signal { animation: none !important; stroke-dashoffset: 0; }
  .brand-intro-word text, .brand-intro-sub { animation: none !important; opacity: 1; transform: none; }
  .b2-core-orbit, .b2-motion-core > svg path, .b2-action-stage, .b2-signal-card { animation: none !important; }
  .b2-action-stage *, .b2-signal-card, .b2-paths button { transition-duration: .01ms !important; }
}

@media (max-width: 768px) {
  .b2-recovery-checkin{padding:15px;border-radius:18px}
  .b2-recovery-checkin form{grid-template-columns:1fr}
  .b2-recovery-notes,.b2-recovery-error,.b2-recovery-actions{grid-column:auto}
  .b2-recovery-actions{display:grid}.b2-recovery-actions button{width:100%}
}

/* D1.3: stage is a user-confirmed aid, not a hidden intensity control. */
.b2-stage-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 6px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--b2-cyan) 34%, var(--b2-line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--b2-cyan) 7%, transparent);
}
.b2-stage-summary div { display: grid; gap: 3px; }
.b2-stage-summary span { color: var(--text2); font-size: 12px; font-weight: 700; }
.b2-stage-summary strong { color: var(--text); font-size: 14px; }
.b2-stage-summary button,
.b2-stage-preview button {
  min-height: 44px;
  border: 1px solid var(--b2-line);
  border-radius: 999px;
  padding: 0 15px;
  background: var(--b2-panel);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.b2-stage-preview {
  margin: 8px 0 16px;
  padding: 14px;
  border: 1px solid var(--b2-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--b2-panel) 94%, transparent);
}
.b2-stage-preview[hidden] { display: none; }
.b2-stage-preview p { margin: 0 0 6px; color: var(--text); line-height: 1.5; }
.b2-stage-preview small { display: block; color: var(--text3); line-height: 1.5; }
.b2-stage-preview > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#b2-stage-confirm { background: var(--b2-coral); border-color: var(--b2-coral); color: #fff; }
.b2-recovery-checkin { margin-top:18px; padding:18px; border:1px solid rgba(86,219,227,.3); border-radius:22px; background:rgba(8,26,31,.78); box-shadow:inset 0 1px rgba(255,255,255,.05); }
.b2-recovery-checkin[hidden],.b2-recovery-result[hidden]{display:none}.b2-recovery-checkin form[hidden]{display:none}.b2-recovery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.b2-recovery-head small{color:#65dce3;font-size:11px;font-weight:760;letter-spacing:.08em}.b2-recovery-head h3{margin:3px 0 0;color:#f7fbfa;font-size:20px;line-height:1.2}.b2-recovery-head p{margin:6px 0 0;color:rgba(235,244,242,.64);font-size:12px}
.b2-recovery-head button,.b2-recovery-actions button,.b2-recovery-result button{min-height:44px;border-radius:999px;padding:9px 15px;font:inherit;font-weight:720;cursor:pointer}.b2-recovery-head button{border:1px solid rgba(255,255,255,.2);background:transparent;color:#edf5f3}.b2-recovery-checkin form{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:16px}.b2-recovery-checkin fieldset{min-width:0;margin:0;padding:0;border:0}.b2-recovery-checkin legend,.b2-recovery-notes{display:block;margin-bottom:7px;color:rgba(235,244,242,.72);font-size:12px}.b2-recovery-checkin fieldset label{display:inline-flex;margin:0 5px 5px 0;cursor:pointer}.b2-recovery-checkin fieldset input{position:absolute;opacity:0;pointer-events:none}.b2-recovery-checkin fieldset span{min-height:40px;display:inline-grid;place-items:center;padding:8px 11px;border:1px solid rgba(255,255,255,.16);border-radius:12px;color:rgba(247,251,250,.8);font-size:12px}.b2-recovery-checkin fieldset input:checked+span{border-color:#57d7df;background:rgba(22,185,199,.18);color:#fff}.b2-recovery-checkin fieldset input:focus-visible+span{outline:3px solid rgba(22,185,199,.45);outline-offset:2px}.b2-recovery-notes{grid-column:1/-1}.b2-recovery-notes input{width:100%;min-height:44px;margin-top:7px;padding:9px 12px;border:1px solid rgba(255,255,255,.17);border-radius:12px;background:rgba(255,255,255,.06);color:#fff;font:inherit}.b2-recovery-error{grid-column:1/-1;min-height:18px;margin:0;color:#ffaaa4;font-size:12px}.b2-recovery-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}.b2-recovery-actions button:first-child,.b2-recovery-result .recovery-preview{border:0;background:var(--b2-coral);color:#fff}.b2-recovery-actions button:last-child,.b2-recovery-result .recovery-keep{border:1px solid rgba(255,255,255,.2);background:transparent;color:#edf5f3}.b2-recovery-result{margin-top:16px;padding-top:15px;border-top:1px solid rgba(255,255,255,.12)}.b2-recovery-result h4{margin:0;color:#fff;font-size:18px}.b2-recovery-result p,.b2-recovery-result li{color:rgba(235,244,242,.72);font-size:12px;line-height:1.6}.b2-recovery-result ul{margin:8px 0 12px;padding-left:18px}.b2-recovery-result details{margin:12px 0;color:#68dce3;font-size:12px}.b2-recovery-result details div{margin-top:9px;color:rgba(235,244,242,.7)}.b2-recovery-result details a{color:#73e3e8}.b2-recovery-result .recovery-result-actions{display:flex;flex-wrap:wrap;gap:8px}
.b2-stage-summary button:focus-visible,
.b2-stage-preview button:focus-visible { outline: 3px solid var(--b2-cyan); outline-offset: 3px; }
@media (max-width: 430px) {
  .b2-stage-summary { align-items: flex-start; flex-direction: column; }
  .b2-stage-summary button { width: 100%; }
  .b2-stage-preview > div { display: grid; }
  .b2-stage-preview button { width: 100%; }
}
