/* ==========================================================================
   Blackbird Client — the app half of the Blackbird Tattoo concept.
   Only used by /concepts/tattoo/app/. Same palette and type as the landing.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bb-void: #08090b;
  --bb-panel: #101217;
  --bb-panel2: #171a21;
  --bb-panel3: #1e222b;
  --bb-bone: #f4f0e8;
  --bb-bone-dim: #cfc8ba;
  --bb-mute: #9c9689;
  --bb-ember: #ff6f43;
  --bb-ember-deep: #e2542b;
  --bb-ember-ink: #170703;
  --bb-jade: #6fd6ae;
  --bb-amber: #f0c265;
  --bb-line: rgba(244, 240, 232, 0.13);
  --bb-line-strong: rgba(244, 240, 232, 0.26);
  --bb-glass: rgba(244, 240, 232, 0.05);
  --bb-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  --bb-shadow-lg: 0 44px 120px rgba(0, 0, 0, 0.75);
  --bb-display: "Fraunces", Georgia, "Times New Roman", serif;
  --bb-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bb-radius: 0.35rem;
  --bb-radius-lg: 0.7rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100svh;
  overflow-x: clip;
  background: var(--bb-void);
  background-image:
    radial-gradient(110% 70% at 82% 0%, rgba(255, 111, 67, 0.15), transparent 60%),
    radial-gradient(80% 60% at 0% 40%, rgba(111, 214, 174, 0.05), transparent 60%);
  background-attachment: fixed;
  color: var(--bb-bone);
  font-family: var(--bb-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--bb-display);
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
}

legend {
  padding: 0;
}

kbd {
  padding: 0.05rem 0.32rem;
  border: 1px solid var(--bb-line-strong);
  border-radius: 0.2rem;
  background: rgba(8, 9, 11, 0.7);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78em;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--bb-ember);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--bb-ember);
  color: var(--bb-ember-ink);
}

.bba-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.bba-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bba-skip {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 90;
  padding: 0.85rem 1.3rem;
  border-radius: var(--bb-radius);
  background: var(--bb-ember);
  color: var(--bb-ember-ink);
  font-weight: 650;
  text-decoration: none;
  transition: top 0.18s ease;
}

.bba-skip:focus {
  top: 1rem;
}

.bba-dot {
  width: 0.45rem;
  height: 0.45rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.bba-kicker {
  color: var(--bb-ember);
  font-size: 0.68rem;
  font-weight: 660;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bba-fine {
  margin-top: 0.6rem;
  color: var(--bb-mute);
  font-size: 0.76rem;
  line-height: 1.5;
}

.bba-fine a {
  color: var(--bb-ember);
}

.bba-h {
  margin: 1.5rem 0 0.6rem;
  color: var(--bb-mute);
  font-family: var(--bb-body);
  font-size: 0.68rem;
  font-weight: 660;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- buttons -- */

.bba-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--bb-ember);
  border-radius: var(--bb-radius);
  background: var(--bb-ember);
  color: var(--bb-ember-ink);
  font-size: 0.87rem;
  font-weight: 660;
  text-align: center;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.bba-btn:hover {
  background: var(--bb-ember-deep);
  border-color: var(--bb-ember-deep);
}

.bba-btn--ghost {
  background: transparent;
  border-color: var(--bb-line-strong);
  color: var(--bb-bone);
}

.bba-btn--ghost:hover {
  background: var(--bb-glass);
  border-color: var(--bb-bone-dim);
}

.bba-btn--sm {
  min-height: 2.75rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.81rem;
}

.bba-btn--full {
  width: 100%;
}

.bba-btn[disabled] {
  border-color: var(--bb-line);
  background: transparent;
  color: var(--bb-mute);
  cursor: not-allowed;
}

.bba-linkish {
  min-height: 2.75rem;
  padding: 0.4rem 0.35rem;
  color: var(--bb-bone-dim);
  font-size: 0.8rem;
  font-weight: 560;
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.bba-linkish:hover {
  color: var(--bb-ember);
}

.bba-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  flex: none;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  color: var(--bb-bone-dim);
}

.bba-iconbtn:hover {
  border-color: var(--bb-bone-dim);
  color: var(--bb-bone);
}

/* --------------------------------------------------------------- stage -- */

.bba-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  max-width: 82rem;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3.5rem) clamp(1.1rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
}

.bba-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--bb-bone-dim);
  font-size: 0.78rem;
  font-weight: 580;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.bba-back:hover {
  color: var(--bb-ember);
}

.bba-pitch__copy {
  margin-top: 1.4rem;
}

.bba-pitch h1 {
  margin-top: 0.7rem;
  max-width: 18ch;
}

.bba-pitch__copy > p {
  margin-top: 1.1rem;
  max-width: 40rem;
  color: var(--bb-bone-dim);
  font-size: 1rem;
}

.bba-pitch ul {
  display: grid;
  gap: 0.5rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.bba-pitch li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--bb-bone-dim);
  font-size: 0.88rem;
}

.bba-pitch li .bba-icon {
  margin-top: 0.28rem;
  color: var(--bb-jade);
}

.bba-pitch__actions {
  margin-top: 1.8rem;
}

.bba-pitch__actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--bb-line-strong);
  border-radius: var(--bb-radius);
  color: var(--bb-bone);
  font-size: 0.86rem;
  font-weight: 620;
  text-decoration: none;
}

.bba-pitch__actions a:hover {
  border-color: var(--bb-ember);
  color: var(--bb-ember);
}

.bba-pitch__actions p {
  margin-top: 0.7rem;
  color: var(--bb-mute);
  font-size: 0.76rem;
}

/* -------------------------------------------------------------- device -- */

.bba-device-wrap {
  display: flex;
  justify-content: center;
}

.bba-device {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(23.5rem, 100%);
  height: min(46rem, 88svh);
  min-height: 40rem;
  padding: 0.55rem;
  border: 1px solid var(--bb-line-strong);
  border-radius: 2.4rem;
  background: #050607;
  box-shadow: var(--bb-shadow-lg), 0 0 0 8px rgba(244, 240, 232, 0.03);
  overflow: hidden;
}

.bba-device__notch {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  width: 5.5rem;
  height: 1.05rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0b0c0e;
  z-index: 5;
}

.bba-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.1rem 0.5rem;
  color: var(--bb-bone-dim);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 620;
}

.bba-statusbar__right {
  display: inline-flex;
  gap: 0.28rem;
}

.bba-statusbar__right i {
  width: 0.85rem;
  height: 0.55rem;
  border-radius: 0.1rem;
  background: var(--bb-mute);
}

.bba-statusbar__right i:nth-child(2) {
  width: 0.7rem;
}

.bba-statusbar__right i:nth-child(3) {
  width: 1.1rem;
}

.bba-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.35rem 0.65rem 0.6rem;
}

.bba-avatar {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--bb-line-strong);
  border-radius: 50%;
  background: var(--bb-panel2);
  color: var(--bb-ember);
  font-family: var(--bb-display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.bba-appbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.bba-appbar__mark {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: var(--bb-ember);
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.bba-appbar__brand strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.bba-appbar__action {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  color: var(--bb-bone-dim);
}

.bba-appbar__action:hover {
  border-color: var(--bb-ember);
  color: var(--bb-ember);
}

.bba-demobanner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 111, 67, 0.35);
  border-radius: var(--bb-radius);
  background: rgba(255, 111, 67, 0.1);
  color: var(--bb-ember);
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.05em;
  text-align: center;
}

.bba-screens {
  flex: 1;
  min-height: 0;
  margin-top: 0.5rem;
  overflow: hidden;
}

.bba-screen {
  height: 100%;
  padding: 0.4rem 0.85rem 1.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bba-screen__title {
  font-size: 1.85rem;
}

.bba-screen__sub {
  margin-top: 0.2rem;
  color: var(--bb-mute);
  font-size: 0.8rem;
}

/* ---------------------------------------------------------------- today -- */

.bba-next {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--bb-line-strong);
  border-left: 3px solid var(--bb-ember);
  border-radius: var(--bb-radius);
  background: linear-gradient(120deg, rgba(255, 111, 67, 0.12), rgba(244, 240, 232, 0.03));
}

.bba-next__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--bb-ember);
  font-size: 0.66rem;
  font-weight: 660;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.bba-next h3 {
  margin-top: 0.5rem;
  font-size: 1.25rem;
}

.bba-next__when {
  margin-top: 0.25rem;
  color: var(--bb-bone-dim);
  font-size: 0.9rem;
  font-weight: 580;
}

.bba-next__countdown {
  margin-top: 0.1rem;
  color: var(--bb-amber);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.bba-next__facts {
  display: grid;
  gap: 0.2rem;
  margin: 0.8rem 0 0;
}

.bba-next__facts > div,
.bba-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.26rem 0;
  border-bottom: 1px dashed var(--bb-line);
  font-size: 0.8rem;
}

.bba-next__facts dt,
.bba-facts dt {
  color: var(--bb-mute);
}

.bba-next__facts dd,
.bba-facts dd {
  margin: 0;
  font-weight: 620;
  text-align: right;
}

.bba-next__actions,
.bba-session__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.bba-next__actions .bba-btn {
  flex: 1 1 8rem;
}

.bba-ready {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bba-ready__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-panel);
}

.bba-ready__mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  border: 1px solid var(--bb-line-strong);
  border-radius: 50%;
  color: var(--bb-amber);
}

.bba-ready__row.is-done .bba-ready__mark {
  border-color: var(--bb-jade);
  color: var(--bb-jade);
}

.bba-ready__body {
  flex: 1;
  min-width: 0;
  display: grid;
}

.bba-ready__body strong {
  font-size: 0.87rem;
}

.bba-ready__body small {
  color: var(--bb-mute);
  font-size: 0.74rem;
}

.bba-ready__done {
  color: var(--bb-jade);
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bba-healcard {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-panel);
  color: inherit;
  text-align: left;
}

.bba-healcard:hover {
  border-color: var(--bb-ember);
}

.bba-healcard__art {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  flex: none;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-panel2);
}

.bba-healcard__art svg {
  width: 2.3rem;
  height: 2.3rem;
  fill: none;
  stroke: var(--bb-bone);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bba-healcard__body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.05rem;
}

.bba-healcard__body strong {
  font-size: 0.95rem;
}

.bba-healcard__body span {
  color: var(--bb-bone-dim);
  font-size: 0.78rem;
}

.bba-healcard__hint {
  color: var(--bb-mute) !important;
  font-size: 0.72rem !important;
}

.bba-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.bba-quick__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 4.2rem;
  padding: 0.6rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-panel);
  color: var(--bb-bone-dim);
  font-size: 0.78rem;
  font-weight: 580;
  text-align: center;
}

.bba-quick__btn:hover {
  border-color: var(--bb-ember);
  color: var(--bb-ember);
}

.bba-quick__btn .bba-icon {
  width: 1.35rem;
  height: 1.35rem;
}

/* ------------------------------------------------------------- sessions -- */

.bba-session {
  padding: 0.9rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-panel);
}

.bba-session--next {
  border-color: var(--bb-line-strong);
}

.bba-session__date {
  color: var(--bb-ember);
  font-size: 0.72rem;
  font-weight: 660;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bba-session h4 {
  margin-top: 0.35rem;
  font-size: 1.08rem;
}

.bba-session__meta {
  margin-top: 0.2rem;
  color: var(--bb-bone-dim);
  font-size: 0.8rem;
}

.bba-session__policy {
  margin-top: 0.5rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: rgba(8, 9, 11, 0.55);
  color: var(--bb-mute);
  font-size: 0.76rem;
}

.bba-session__policy.is-tight {
  border-color: rgba(240, 194, 101, 0.4);
  background: rgba(240, 194, 101, 0.09);
  color: var(--bb-amber);
}

.bba-prep {
  margin-top: 0.7rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: rgba(8, 9, 11, 0.5);
}

.bba-prep summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  color: var(--bb-bone);
  font-size: 0.83rem;
  font-weight: 620;
  cursor: pointer;
}

.bba-prep summary span {
  color: var(--bb-ember);
  font-variant-numeric: tabular-nums;
}

.bba-prep__list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0 0.6rem 0.7rem;
  list-style: none;
}

.bba-checkrow label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: rgba(16, 18, 23, 0.8);
  cursor: pointer;
}

.bba-checkrow input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.22rem;
  flex: none;
  accent-color: var(--bb-ember);
}

.bba-checkrow span {
  display: grid;
  gap: 0.1rem;
  color: var(--bb-mute);
  font-size: 0.74rem;
}

.bba-checkrow span strong {
  color: var(--bb-bone-dim);
  font-size: 0.83rem;
  font-weight: 600;
}

.bba-checkrow label:has(input:checked) {
  border-color: var(--bb-ember);
}

.bba-checkrow label:has(input:checked) span strong {
  color: var(--bb-bone);
}

.bba-checkrow label:has(input:focus-visible) {
  outline: 3px solid var(--bb-ember);
  outline-offset: 2px;
}

.bba-holds {
  display: grid;
  gap: 0.45rem;
}

.bba-holds__empty {
  padding: 0.75rem;
  border: 1px dashed var(--bb-line-strong);
  border-radius: var(--bb-radius);
  color: var(--bb-mute);
  font-size: 0.79rem;
}

.bba-hold {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.6rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--bb-ember);
  border-radius: var(--bb-radius);
  background: linear-gradient(180deg, rgba(255, 111, 67, 0.1), var(--bb-panel));
}

.bba-hold strong {
  font-size: 0.88rem;
}

.bba-hold b {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.bba-hold small {
  grid-column: 1 / -1;
  color: var(--bb-mute);
  font-size: 0.72rem;
}

.bba-history {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bba-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-panel);
}

.bba-history strong {
  display: block;
  font-size: 0.86rem;
}

.bba-history span {
  color: var(--bb-mute);
  font-size: 0.74rem;
}

.bba-history__meta {
  flex: none;
  color: var(--bb-bone-dim) !important;
  font-size: 0.82rem !important;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- consent -- */

.bba-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(240, 194, 101, 0.4);
  border-radius: var(--bb-radius);
  background: rgba(240, 194, 101, 0.09);
  color: var(--bb-amber);
  font-size: 0.78rem;
}

.bba-notice .bba-icon {
  margin-top: 0.15rem;
}

.bba-consent {
  display: grid;
  gap: 0.6rem;
}

.bba-consent .bba-prep__list {
  padding: 0;
}

.bba-consent__flag,
.bba-checkin__flag {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 111, 67, 0.45);
  border-radius: var(--bb-radius);
  background: rgba(255, 111, 67, 0.1);
  color: var(--bb-ember);
  font-size: 0.78rem;
}

.bba-checkin__flag {
  margin-top: 0.6rem;
}

.bba-sign__hint {
  color: var(--bb-mute);
  font-size: 0.75rem;
}

.bba-sign__pad {
  width: 100%;
  height: auto;
  aspect-ratio: 31 / 12;
  margin-top: 0.5rem;
  border: 1px dashed var(--bb-line-strong);
  border-radius: var(--bb-radius);
  background: #0c0d10;
  cursor: crosshair;
  touch-action: none;
}

.bba-sign__pad:focus-visible {
  border-style: solid;
}

.bba-sign__state {
  margin-top: 0.35rem;
  color: var(--bb-mute);
  font-size: 0.74rem;
}

.bba-sign__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
}

.bba-signed {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 1.4rem 1rem;
  border: 1px solid var(--bb-jade);
  border-radius: var(--bb-radius);
  background: rgba(111, 214, 174, 0.07);
  text-align: center;
}

.bba-signed__mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--bb-jade);
  border-radius: 50%;
  color: var(--bb-jade);
}

.bba-signed__mark .bba-icon {
  width: 1.4rem;
  height: 1.4rem;
  stroke-width: 2.2;
}

.bba-signed p {
  color: var(--bb-bone-dim);
  font-size: 0.83rem;
}

.bba-signed .bba-btn {
  margin-top: 0.6rem;
}

/* -------------------------------------------------------------- healing -- */

.bba-piecepick {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
}

.bba-piecepick__btn {
  flex: 1;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--bb-line-strong);
  border-radius: var(--bb-radius);
  background: rgba(8, 9, 11, 0.6);
  color: var(--bb-bone-dim);
  font-size: 0.82rem;
  font-weight: 580;
}

.bba-piecepick__btn.is-active {
  border-color: var(--bb-ember);
  background: rgba(255, 111, 67, 0.15);
  color: var(--bb-bone);
}

.bba-dial {
  position: relative;
  width: min(11rem, 60%);
  margin: 1.2rem auto 0;
  aspect-ratio: 1;
}

.bba-dial__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.bba-dial__track,
.bba-dial__fill {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
}

.bba-dial__track {
  stroke: rgba(244, 240, 232, 0.1);
}

/* dasharray + dashoffset are set inline from JS so the ring tracks the day
   count; only the easing lives here. */
.bba-dial__fill {
  stroke: var(--bb-ember);
  transition: stroke-dashoffset 0.4s ease;
}

.bba-dial__inner {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.bba-dial__inner strong {
  font-family: var(--bb-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.bba-dial__inner span {
  color: var(--bb-mute);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bba-dial__caption {
  margin-top: 0.7rem;
  color: var(--bb-bone-dim);
  font-size: 0.78rem;
  text-align: center;
}

.bba-stages {
  display: grid;
  gap: 0.3rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.bba-stages li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--bb-line);
  border-left: 3px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: rgba(16, 18, 23, 0.7);
  font-size: 0.78rem;
}

.bba-stages li span {
  color: var(--bb-mute);
  font-variant-numeric: tabular-nums;
}

.bba-stages li b {
  color: var(--bb-bone-dim);
  font-weight: 600;
}

.bba-stages li.is-past {
  border-left-color: var(--bb-jade);
}

.bba-stages li.is-past b {
  color: var(--bb-mute);
}

.bba-stages li.is-now {
  border-color: var(--bb-ember);
  border-left-color: var(--bb-ember);
  background: rgba(255, 111, 67, 0.12);
}

.bba-stages li.is-now b {
  color: var(--bb-bone);
}

.bba-todaycard {
  margin-top: 1.1rem;
  padding: 0.95rem;
  border: 1px solid var(--bb-line-strong);
  border-radius: var(--bb-radius);
  background: var(--bb-panel2);
}

.bba-todaycard__label {
  color: var(--bb-ember);
  font-size: 0.66rem;
  font-weight: 660;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.bba-todaycard h3 {
  margin-top: 0.4rem;
  font-size: 1.15rem;
}

.bba-todaycard > p {
  margin-top: 0.5rem;
  color: var(--bb-bone-dim);
  font-size: 0.83rem;
}

.bba-todaycard__list {
  display: grid;
  gap: 0.25rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.bba-todaycard__list li {
  position: relative;
  padding-left: 1rem;
  color: var(--bb-mute);
  font-size: 0.79rem;
}

.bba-todaycard__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--bb-ember);
}

.bba-log {
  display: grid;
  gap: 0.4rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.bba-log__empty {
  padding: 0.7rem 0.75rem;
  border: 1px dashed var(--bb-line-strong);
  border-radius: var(--bb-radius);
  color: var(--bb-mute);
  font-size: 0.78rem;
}

.bba-log__entry {
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-panel);
}

.bba-log__entry strong {
  display: block;
  font-size: 0.82rem;
}

.bba-log__entry span {
  display: block;
  margin-top: 0.15rem;
  color: var(--bb-bone-dim);
  font-size: 0.76rem;
}

.bba-log__entry em {
  display: block;
  margin-top: 0.2rem;
  color: var(--bb-mute);
  font-size: 0.74rem;
  font-style: normal;
}

.bba-touchup {
  padding: 0.85rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-panel);
}

.bba-touchup.is-open {
  border-color: var(--bb-jade);
  background: rgba(111, 214, 174, 0.07);
}

.bba-touchup__state {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
  color: var(--bb-mute);
  font-size: 0.79rem;
}

.bba-touchup.is-open .bba-touchup__state {
  color: var(--bb-jade);
}

.bba-touchup__state .bba-icon {
  margin-top: 0.15rem;
}

.bba-democtl {
  padding: 0.85rem;
  border: 1px dashed var(--bb-line-strong);
  border-radius: var(--bb-radius);
  background: rgba(8, 9, 11, 0.5);
}

/* -------------------------------------------------------------- profile -- */

.bba-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--bb-line-strong);
  border-radius: var(--bb-radius);
  background: var(--bb-panel2);
}

.bba-profile__mark {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  flex: none;
  border: 1px solid var(--bb-line-strong);
  border-radius: 50%;
  background: var(--bb-panel3);
  color: var(--bb-ember);
  font-family: var(--bb-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.bba-profile h3 {
  font-size: 1.15rem;
}

.bba-profile p {
  color: var(--bb-mute);
  font-size: 0.78rem;
}

.bba-profile__contact {
  margin-top: 0.15rem;
  word-break: break-word;
}

.bba-facts {
  display: grid;
  gap: 0.2rem;
  margin: 1rem 0 0;
}

.bba-toggles {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bba-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-panel);
  cursor: pointer;
}

.bba-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bba-toggle__track {
  position: relative;
  display: block;
  width: 2.7rem;
  height: 1.5rem;
  flex: none;
  border: 1px solid var(--bb-line-strong);
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.7);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.bba-toggle__track i {
  position: absolute;
  top: 0.19rem;
  left: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--bb-bone-dim);
  transition: transform 0.16s ease, background 0.16s ease;
}

.bba-toggle:has(input:checked) .bba-toggle__track {
  border-color: var(--bb-ember);
  background: rgba(255, 111, 67, 0.28);
}

.bba-toggle:has(input:checked) .bba-toggle__track i {
  transform: translateX(1.15rem);
  background: var(--bb-ember);
}

.bba-toggle:has(input:focus-visible) .bba-toggle__track {
  outline: 3px solid var(--bb-ember);
  outline-offset: 3px;
}

.bba-toggle__body {
  display: grid;
}

.bba-toggle__body strong {
  font-size: 0.85rem;
}

.bba-toggle__body small {
  color: var(--bb-mute);
  font-size: 0.73rem;
}

.bba-studiocard {
  padding: 0.9rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: var(--bb-panel);
}

.bba-studiocard strong {
  font-family: var(--bb-display);
  font-size: 1.05rem;
}

.bba-studiocard p {
  margin-top: 0.3rem;
  color: var(--bb-bone-dim);
  font-size: 0.8rem;
}

.bba-studiocard a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--bb-ember);
}

.bba-reset {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------- tabbar -- */

.bba-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.35rem 0.3rem 0.15rem;
  border-top: 1px solid var(--bb-line);
  background: rgba(5, 6, 7, 0.95);
}

.bba-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 2.9rem;
  padding: 0.35rem 0.1rem;
  border-radius: var(--bb-radius);
  color: var(--bb-mute);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bba-tab .bba-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.bba-tab.is-active {
  color: var(--bb-ember);
  background: rgba(255, 111, 67, 0.1);
}

.bba-tab:hover {
  color: var(--bb-bone);
}

.bba-tab.is-active:hover {
  color: var(--bb-ember);
}

.bba-tab__pip {
  position: absolute;
  top: 0.15rem;
  right: 0.55rem;
  display: grid;
  place-items: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: var(--bb-ember);
  color: var(--bb-ember-ink);
  font-size: 0.6rem;
  font-weight: 800;
}

/* -------------------------------------------------------------- dialogs -- */

.bba-dialog {
  width: min(26rem, calc(100vw - 1.5rem));
  max-width: none;
  max-height: min(84svh, 44rem);
  padding: 0;
  border: 1px solid var(--bb-line-strong);
  border-radius: var(--bb-radius-lg);
  background: var(--bb-panel);
  color: var(--bb-bone);
  box-shadow: var(--bb-shadow-lg);
  overflow: hidden;
}

.bba-dialog::backdrop {
  background: rgba(3, 3, 4, 0.78);
  backdrop-filter: blur(4px);
}

.bba-dialog__form {
  display: flex;
  flex-direction: column;
  max-height: min(84svh, 44rem);
}

.bba-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--bb-line);
}

.bba-dialog__head h2 {
  margin-top: 0.2rem;
  font-size: 1.5rem;
}

.bba-dialog__body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  overflow-y: auto;
}

.bba-dialog__body > p {
  color: var(--bb-bone-dim);
  font-size: 0.86rem;
}

.bba-dialog__policy {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--bb-line);
  border-radius: var(--bb-radius);
  background: rgba(8, 9, 11, 0.6);
  color: var(--bb-bone-dim);
  font-size: 0.8rem;
}

.bba-dialog__policy.is-tight {
  border-color: rgba(255, 111, 67, 0.45);
  background: rgba(255, 111, 67, 0.1);
  color: var(--bb-ember);
}

.bba-dialog__foot {
  padding: 0.85rem 1.1rem 1rem;
  border-top: 1px solid var(--bb-line);
  background: rgba(8, 9, 11, 0.6);
}

.bba-dialog__foot .bba-fine {
  margin: 0 0 0.6rem;
}

.bba-dialog__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bba-dialog__buttons .bba-btn {
  flex: 1 1 8rem;
}

.bba-field {
  display: grid;
  gap: 0.3rem;
}

.bba-field > span {
  color: var(--bb-bone-dim);
  font-size: 0.76rem;
  font-weight: 600;
}

.bba-field input,
.bba-field select,
.bba-field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--bb-line-strong);
  border-radius: var(--bb-radius);
  background: rgba(8, 9, 11, 0.72);
  color: var(--bb-bone);
  font-size: 0.88rem;
}

.bba-field textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.bba-field input::placeholder,
.bba-field textarea::placeholder {
  color: #8b8578;
}

.bba-field input:focus,
.bba-field select:focus,
.bba-field textarea:focus {
  border-color: var(--bb-ember);
}

.bba-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(340deg);
  cursor: pointer;
}

.bba-symptoms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bba-symptom {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--bb-line-strong);
  border-radius: var(--bb-radius);
  background: rgba(8, 9, 11, 0.6);
  color: var(--bb-bone-dim);
  font-size: 0.8rem;
  cursor: pointer;
}

.bba-symptom input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bba-symptom:hover {
  border-color: var(--bb-bone-dim);
  color: var(--bb-bone);
}

.bba-symptom:has(input:checked) {
  border-color: var(--bb-ember);
  background: rgba(255, 111, 67, 0.16);
  color: var(--bb-bone);
}

.bba-symptom--warn:has(input:checked) {
  border-color: var(--bb-amber);
  background: rgba(240, 194, 101, 0.14);
}

.bba-symptom:has(input:focus-visible) {
  outline: 3px solid var(--bb-ember);
  outline-offset: 3px;
}

.bba-pass {
  justify-items: center;
  text-align: center;
}

.bba-pass__code {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 2px;
  width: min(13rem, 70%);
  padding: 0.6rem;
  border-radius: var(--bb-radius);
  background: var(--bb-bone);
}

.bba-pass__code i {
  aspect-ratio: 1;
  border-radius: 1px;
  background: transparent;
}

.bba-pass__code i.on {
  background: #0b0c0e;
}

.bba-pass strong {
  font-size: 0.92rem;
}

.bba-pass p {
  color: var(--bb-mute);
  font-size: 0.79rem;
}

.bba-done {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 1.7rem 1.3rem;
  text-align: center;
}

.bba-done__mark {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--bb-jade);
  border-radius: 50%;
  background: rgba(111, 214, 174, 0.12);
  color: var(--bb-jade);
}

.bba-done__mark .bba-icon {
  width: 1.4rem;
  height: 1.4rem;
  stroke-width: 2.2;
}

.bba-done h2 {
  font-size: 1.5rem;
}

.bba-done p {
  color: var(--bb-bone-dim);
  font-size: 0.86rem;
}

.bba-done .bba-btn {
  margin-top: 0.7rem;
}

/* ---------------------------------------------------------------- toast -- */

.bba-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 60;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.7rem 1.1rem;
  transform: translate(-50%, 0.8rem);
  border: 1px solid var(--bb-ember);
  border-radius: var(--bb-radius);
  background: rgba(10, 11, 14, 0.97);
  color: var(--bb-bone);
  font-size: 0.83rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bba-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.bba-noscript {
  margin: 0 1.2rem 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--bb-amber);
  border-radius: var(--bb-radius);
  background: rgba(240, 194, 101, 0.08);
  color: var(--bb-amber);
  font-size: 0.86rem;
}

/* ----------------------------------------------------------- responsive -- */

@media (max-width: 900px) {
  .bba-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .bba-device-wrap {
    order: -1;
  }

  .bba-device {
    height: min(44rem, 84svh);
  }
}

@media (max-width: 480px) {
  .bba-device {
    width: 100%;
    height: min(42rem, 86svh);
    min-height: 34rem;
    border-radius: 1.6rem;
  }

  .bba-quick {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
