/* ============================================================================
   WAVY V3.00NM · Editorial Single-Plane Design System
   Default: Blanco Pulcritud (#FFFFFF) · Editorial (#F4EFE6) · Nocturno (#121614)
   Acabado: Cromático (pigmento solo al elegir) · Minimalista (tinta sobre papel)
   Zero SaaS boxes · Zero infinite lava-lamp · Motion only in art & touch gesture
   ============================================================================ */

:root,
:root[data-theme="pulcritud"] {
  --paper: #FFFFFF;
  --card: #FFFFFF;
  --card-solid: #FFFFFF;
  --wash: #F6F6F8;
  --wash-warm: #FAF8F4;
  --ink: #111111;
  --ink-soft: #38383C;
  --muted: #6E6E73;
  --rule: rgba(17, 17, 17, 0.085);
  --rule-strong: rgba(17, 17, 17, 0.18);
  --crimson: #B45F6B;
  --crimson-deep: #8E3A48;
  --gold: #BC9658;
  --ok: #58785A;
  --spotify: #1DB954;
  --apple: #FA243C;
  --nav-glass: rgba(255, 255, 255, 0.78);
  --glass-spec: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --nav-p: 0;
  color-scheme: light;
}

:root[data-theme="editorial"] {
  --paper: #F4EFE6;
  --card: #F4EFE6;
  --card-solid: #FAF6EE;
  --wash: rgba(36, 32, 29, 0.045);
  --wash-warm: #EDE6DA;
  --ink: #231F1D;
  --ink-soft: #4A443F;
  --muted: #78716A;
  --rule: rgba(35, 31, 29, 0.095);
  --rule-strong: rgba(35, 31, 29, 0.2);
  --crimson: #B4656F;
  --crimson-deep: #8E3A48;
  --gold: #B89252;
  --ok: #5B7B5C;
  --nav-glass: rgba(244, 239, 230, 0.80);
  color-scheme: light;
}

:root[data-theme="nocturno"] {
  --paper: #121614;
  --card: #121614;
  --card-solid: #1A201D;
  --wash: rgba(244, 239, 230, 0.055);
  --wash-warm: #181E1B;
  --ink: #F4EFE6;
  --ink-soft: #CFC9BE;
  --muted: #8E887F;
  --rule: rgba(244, 239, 230, 0.095);
  --rule-strong: rgba(244, 239, 230, 0.22);
  --crimson: #D98C94;
  --crimson-deep: #B45F6B;
  --gold: #D6B77C;
  --ok: #88A889;
  --nav-glass: rgba(18, 22, 20, 0.82);
  --glass-spec: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --paper: #121614;
    --card: #121614;
    --card-solid: #1A201D;
    --wash: rgba(244, 239, 230, 0.055);
    --wash-warm: #181E1B;
    --ink: #F4EFE6;
    --ink-soft: #CFC9BE;
    --muted: #8E887F;
    --rule: rgba(244, 239, 230, 0.095);
    --rule-strong: rgba(244, 239, 230, 0.22);
    --crimson: #D98C94;
    --crimson-deep: #B45F6B;
    --gold: #D6B77C;
    --ok: #88A889;
    --nav-glass: rgba(18, 22, 20, 0.82);
    --glass-spec: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color-scheme: dark;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

[hidden] { display: none !important; }

/* ── EDITORIAL SINGLE-PLANE SHELL ── */
.book {
  max-width: 590px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top, 12px)) 18px calc(112px + env(safe-area-inset-bottom, 16px));
  min-height: 100dvh;
}

.w-ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.38;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── CENTERED LITERARY MASTHEAD + SHIMMER + SCROLL FADE ── */
.masthead {
  display: grid;
  grid-template-columns: 74px 1fr 74px;
  align-items: center;
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 10px;
  will-change: opacity, transform;
}

.masthead-side {
  display: flex;
  align-items: center;
  gap: 8px;
}
.masthead-side.right { justify-content: flex-end; }

.mast-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 6px;
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-size: 12px;
  font-weight: 500;
}
.mast-btn:hover, .mast-btn.on { opacity: 1; }
.mast-btn:active { transform: scale(0.93); }

.masthead-center {
  text-align: center;
  cursor: pointer;
  user-select: none;
}

@keyframes wavyShimmer {
  0%, 84%, 100% { background-position: 200% center; }
  92% { background-position: -50% center; }
}

.mast-word {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 8.6vw, 40px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  background: linear-gradient(110deg, var(--ink) 38%, var(--gold) 50%, var(--ink) 62%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: wavyShimmer 11s ease-in-out infinite;
}

.mast-tagline {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── BORDERLESS EDITORIAL SUB-TABS (ZERO GRAY BOXES) ── */
.tabs {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 24px;
  padding: 6px 0 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 18px;
}

.tab {
  border: none;
  background: transparent;
  padding: 4px 2px;
  font-family: var(--serif);
  font-size: clamp(18.5px, 4.7vw, 21px);
  font-weight: 400;
  color: var(--ink);
  opacity: 0.44;
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.tab.on {
  opacity: 1;
  font-weight: 500;
}
.tab.on::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -2px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
}

/* ── SINGLE-LINE EDITORIAL SECTION HEADERS (.hd) ── */
.sec {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.sec:first-child { padding-top: 4px; }
.sec.no-rule { border-bottom: none; }

.hd {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}
.hd-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hd-meta {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* ── BUTTONS & CHIPS (CALM AT REST, JEWEL ON SELECTION) ── */
@keyframes clothWaveRipple {
  0% { transform: scale(1); }
  40% { transform: scale(0.968); }
  75% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

.btn {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.15s ease, background 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn.soft {
  background: var(--wash);
  color: var(--ink);
  border-color: var(--rule);
}
.btn.sm {
  min-height: 31px;
  padding: 5px 12px;
  font-size: 12px;
}

.chip {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.chip.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.link-toggle {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-toggle:hover { color: var(--ink); }

/* ── WEEKLY EMOTIONAL GLYPH STRIP (#wk) ── */
.wk-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 4px 0 14px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
  text-align: center;
}
.wk-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 4px 0;
}
.wk-day b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.wk-day.today { color: var(--crimson); font-weight: 600; }
.wk-day.today::after {
  content: "";
  width: 14px;
  height: 1.5px;
  background: var(--crimson);
  border-radius: 2px;
}
.wk-day.future { opacity: 0.36; }

/* ── 19 EMOTIONS + 3D FLIP MOOD MAP + CRYSTAL GEMS ── */
.mood-flip-scene {
  perspective: 1150px;
}
.mood-flip-inner {
  position: relative;
  width: 100%;
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}
.mood-flip-inner.flipped {
  transform: rotateY(180deg);
}
.mood-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.mood-face.back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}
.mood-flip-inner.flipped .mood-face.front {
  visibility: hidden;
  pointer-events: none;
}
.mood-flip-inner.flipped .mood-face.back {
  position: relative;
}

.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mo-pill {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: 16px;
  padding: 11px 8px;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.25s ease, transform 0.16s ease;
}
.mo-pill span {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* Chromatic jewel bloom ONLY on the chosen pills — zero idle chaos! */
.mo-pill.on {
  background:
    radial-gradient(circle at 22% 20%, var(--a1, #E8D5B7) 0%, transparent 65%),
    radial-gradient(circle at 82% 80%, var(--a2, #D8B4BE) 0%, transparent 68%),
    var(--wash-warm);
  border-color: color-mix(in srgb, var(--ink) 26%, transparent);
  color: #1A1715;
  box-shadow: var(--glass-spec);
  animation: clothWaveRipple 0.34s ease;
}
:root[data-theme="nocturno"] .mo-pill.on {
  color: #181514;
}

/* Minimalist Monochrome Letterpress Finish */
:root[data-finish="minimal"] .mo-pill.on,
:root[data-finish="minimal"] .anchor-pill.on,
:root[data-finish="minimal"] .why-chip.on {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-color: var(--ink) !important;
  box-shadow: none !important;
  animation: none !important;
}

.mood-poster-stage {
  position: relative;
  width: 100%;
  height: 330px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rule);
  touch-action: none;
  user-select: none;
}
#moodMapCanvas {
  width: 100%;
  height: 100%;
  display: block;
}
.mood-poster-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: #181514;
}
.mood-poster-caption h4 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}
.mood-sticker-layer {
  position: absolute;
  inset: 0;
}
.gem-sticker {
  position: absolute;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
}
.gem-sticker svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.14)); }
.gem-sticker .gem-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(17,17,17,0.78);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

/* ── LAYER 1: 5 DAILY ANCHORS + SLEEP SQS SLIDER ── */
.anchors-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.anchor-pill {
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 16px;
  padding: 10px 4px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.anchor-pill span {
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.anchor-pill.on {
  background: radial-gradient(circle at 30% 25%, var(--a1, #DCE8D8), var(--wash-warm));
  border-color: color-mix(in srgb, var(--ink) 24%, transparent);
  color: #181615;
  animation: clothWaveRipple 0.32s ease;
}
.anchor-pill.on span { color: #181615; font-weight: 600; }

.sl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  gap: 8px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer;
  height: 26px;
}
.inline-time {
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  font-family: var(--serif);
  font-size: 17px;
  padding: 2px 4px;
  color: var(--ink);
}

/* ── LAYER 2: PROGRESSIVE BIOPSYCHOSOCIAL CLINICAL ACCORDION (ZERO EXCEL!) ── */
.bio-layer2-head {
  width: 100%;
  border: none;
  background: transparent;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}
.bio-domain-tabs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  margin: 12px 0;
}
.bio-domain-tab {
  border: none;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 2px;
  cursor: pointer;
  white-space: nowrap;
}
.bio-domain-tab.on { color: var(--ink); border-bottom: 1.5px solid var(--ink); }

.bio-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.bio-cat-btn {
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 13px;
  padding: 9px 11px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.bio-cat-btn strong {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bio-cat-btn small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bio-cat-btn.filled {
  border-color: var(--ink);
  background: var(--wash);
}
.bio-cat-btn.filled small { color: var(--ok); font-weight: 600; }

.bio-drawer {
  margin-top: 10px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--rule);
}

.line-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--rule-strong);
  background: transparent;
  font-family: var(--serif);
  font-size: 18px;
  padding: 8px 2px;
  outline: none;
  color: var(--ink);
}
.line-input:focus { border-bottom-color: var(--ink); }

/* ── FEMALE CYCLE & MALE CALISTHENICS MODULES ── */
.bio-ring-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 10px;
  text-align: center;
}
.cal-dow {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 4px;
}
.cal-cell {
  height: 34px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--serif);
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 auto;
  width: 34px;
  position: relative;
}
.cal-cell.period { background: #E5ADA6; color: #1E1615; font-weight: 600; }
.cal-cell.pred { border: 1.5px dashed #D8968E; }
.cal-cell.fert { background: rgba(136, 168, 137, 0.24); }
.cal-cell.ovul { border: 1.5px solid var(--ok); font-weight: 600; }
.cal-cell.workout-done { background: rgba(91, 123, 92, 0.25); border-color: var(--ok); font-weight: 600; }
.cal-cell.today-ring { box-shadow: 0 0 0 1.5px var(--ink); }

.ex-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}
.ex-main {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.ex-ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ex-howto {
  margin-top: 8px;
  padding: 9px 12px;
  background: var(--wash);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.48;
}

/* ── HÁBITO: PRIVACY BLUR, STAGGERED 90-DAY MILESTONES, QUOTE & SOS ── */
.habit-priv-blur {
  filter: blur(9px);
  user-select: none;
  transition: filter 0.24s ease;
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.why-chip {
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.why-chip.on {
  background: radial-gradient(circle at 25% 25%, #EDE0C9, var(--wash-warm));
  border-color: color-mix(in srgb, var(--ink) 28%, transparent);
  color: #181615;
  font-weight: 600;
}

.habit-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.habit-pct {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.habit-track {
  height: 4px;
  background: var(--wash);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  overflow: hidden;
}
.habit-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ink), var(--crimson));
  transition: width 0.35s ease;
}

@keyframes nextMilestoneSpin {
  to { transform: rotate(360deg); }
}

.marks-wrap {
  position: relative;
  height: 64px;
  margin-top: 10px;
}
.mk {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--muted);
}
/* Even/odd vertical stagger so Days 7, 14, 21 NEVER collide! */
.mk:nth-child(even) {
  top: 32px;
}
.mk:nth-child(even)::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 28px;
  background: var(--rule);
  pointer-events: none;
}
.mk.done {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.mk.sel {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}
.mk.next-up {
  color: var(--ink);
  font-weight: 600;
  border-color: var(--gold);
}
.mk.next-up::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  padding: 1.5px;
  background: conic-gradient(from 0deg, var(--gold), var(--ok), transparent, var(--gold));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: nextMilestoneSpin 6s linear infinite;
  pointer-events: none;
}

.sig-box {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 12px 0;
  touch-action: pan-y;
}
.sig-quote {
  font-family: var(--serif);
  font-size: 19.5px;
  line-height: 1.42;
  color: var(--ink);
  margin: 0 0 6px;
}
.sig-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}

.clock-strip {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 14px;
}
.clock-strip b {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.clock-strip.urgent b { color: var(--crimson); }

/* Serene Liquid-Glass Crimson SOS Pill (Zero anxious idle pulse!) */
.sos-pill {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 13px 18px;
  background: linear-gradient(135deg, rgba(182, 88, 100, 0.90), rgba(138, 54, 68, 0.95));
  color: #FFFDFB;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), 0 8px 22px -10px rgba(142, 58, 72, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.18s ease;
}
.sos-pill:active { transform: scale(0.98); }

/* ── CALMA: PICTORIAL COAST & 6 HUMAN SUNS + INTERNAL LIQUID-GLASS DOCKS ── */
.art-stage {
  position: relative;
  width: 100%;
  height: clamp(332px, 47vh, 450px);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 12px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.art-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Fullscreen Immersive Landscape / Portrait Mode */
body.art-fullscreen {
  overflow: hidden;
}
body.art-fullscreen .art-stage.is-fs {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  border-radius: 0;
  z-index: 950;
  margin: 0;
}

.stage-top-left {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 5;
  color: #FFFDF9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.36);
  pointer-events: none;
}
.stage-top-left .big-pct {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}
.stage-top-left .sub-lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-top: 3px;
}

.stage-top-right {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
}

.glass-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(18, 22, 26, 0.30);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  color: #FFFDF9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.16s ease, background 0.18s ease;
}
.glass-circle-btn:active { transform: scale(0.92); }
.glass-circle-btn.on {
  background: rgba(255, 252, 245, 0.90);
  color: #161412;
}

.glass-pill-badge {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(18, 22, 26, 0.32);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  color: #FFFDF9;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
}
.glass-pill-badge.on {
  background: rgba(255, 252, 245, 0.92);
  color: #161412;
}

/* Circular Liquid-Glass Dock INSIDE the Artwork */
.art-glass-dock {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 20, 24, 0.28);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.art-glass-popover {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 66px;
  z-index: 7;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(18, 20, 22, 0.78);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FAF7F2;
  max-height: 240px;
  overflow-y: auto;
}
.art-glass-popover .pop-chip {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #FAF7F2;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  cursor: pointer;
}
.art-glass-popover .pop-chip.on {
  background: #FAF7F2;
  color: #161412;
  border-color: #FAF7F2;
  font-weight: 600;
}

/* Clickable 5 Sun Pillars Bar */
.sun-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}
.sun-pillar-btn {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  min-height: 31px;
  padding: 4px 2px;
  font-size: 10px;
  letter-spacing: -0.01em;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.18s ease;
}
.sun-pillar-btn.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.sun-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.sun-vessel-card {
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 14px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-align: center;
}
.sun-vessel-card.on {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}
.sun-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
}
.sun-vessel-card strong {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 100%;
}
.sun-vessel-card small {
  font-size: 9.8px;
  line-height: 1.22;
  color: var(--muted);
  white-space: normal;
  max-width: 100%;
}

/* Co-Breathing Global Screen Sync Blur */
body.co-sync-active .masthead,
body.co-sync-active #bnav {
  filter: blur(12px);
  opacity: 0.35;
  transition: filter 0.6s ease, opacity 0.6s ease;
}

/* ── COMPAÑÍA: STORIES BAR, CURTAIN COMPOSER, 2-COL X FEED & BEREAL BLUR ── */
.stories-bar {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--rule);
  scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }
.story-item {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.story-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 180deg, var(--crimson), var(--gold), var(--ok), var(--crimson));
  position: relative;
}
.story-ring.calm {
  background: conic-gradient(from 180deg, var(--ok), var(--gold), var(--ok));
}
.story-av {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--paper);
  padding: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-av svg, .story-av img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.pact-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 0 5px;
  font-family: var(--serif);
  font-size: 10px;
  color: var(--ink);
}
.story-name {
  font-size: 11px;
  color: var(--ink-soft);
  max-width: 62px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Curtain Pull-Down Composer */
.curtain-shell {
  border-bottom: 1px solid var(--rule);
  padding: 6px 0;
}
.curtain-pull {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
}
.curtain-drawer {
  padding: 12px 0 8px;
}

/* 2-Column X / Threads Cardless Feed */
.wavy-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 11px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--rule);
}
.wavy-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  overflow: hidden;
  padding: 3px;
  cursor: pointer;
}
.wavy-av svg, .wavy-av img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.wavy-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.wavy-author {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.wavy-handle {
  font-size: 11.5px;
  color: var(--muted);
}
.wavy-echo {
  font-family: var(--serif);
  font-size: clamp(17.5px, 4.3vw, 19.5px);
  line-height: 1.44;
  margin: 4px 0 6px;
  color: var(--ink);
  transition: filter 0.28s ease;
}
.wavy-echo.bereal-blur {
  filter: blur(5.5px);
  user-select: none;
}

/* Boxless Organic Marquee Sound Capsule */
@keyframes scMarquee {
  0%, 20% { transform: translateX(0%); }
  80%, 100% { transform: translateX(-28%); }
}
.sound-capsule {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  margin-top: 2px;
}
.sc-art {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--rule);
  flex-shrink: 0;
}
.sc-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.sc-q {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.sc-title-track {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  white-space: nowrap;
  display: inline-block;
}
.sc-title-track.long {
  animation: scMarquee 14s ease-in-out infinite alternate;
}

/* Minimalist Hover-Peek Reactions (Zero Vanity Counters!) */
.react-bar {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 4px 0 8px;
  margin-top: 4px;
}
.react-btn {
  position: relative;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 4px 8px;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.15s ease;
}
.react-btn.on {
  color: var(--crimson);
  transform: scale(1.1);
}
.react-btn span {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}
.react-btn:hover span,
.react-btn:focus-visible span,
.react-btn.peek span {
  opacity: 0.92;
}

/* ── ESCRITOS: MEDIUM / SUBSTACK CARDS, HOJA EN BLANCO & 4-COLOR HIGHLIGHTER ── */
.med-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.med-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.2;
  margin: 4px 0 6px;
}
.med-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.has-cap::first-letter {
  font-family: var(--serif);
  font-size: 1.4em;
  font-weight: 500;
  padding-right: 2px;
}

/* Full-screen Distraction-Free Hoja en Blanco & Reader */
.full-sheet {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.full-sheet-inner {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top, 16px)) 20px 64px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ancient-date {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin: 6px 0 10px;
}
@keyframes titlePulseAlert {
  0%, 100% { border-bottom-color: var(--rule); }
  50% { border-bottom-color: var(--crimson); transform: translateX(3px); }
}
.blank-title {
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(24px, 5.6vw, 30px);
  padding: 6px 0 10px;
  outline: none;
  margin-bottom: 14px;
}
.blank-title.pulse-alert { animation: titlePulseAlert 0.45s ease 2; }
.blank-body {
  flex: 1;
  min-height: 280px;
  border: none;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(19px, 4.5vw, 21px);
  line-height: 1.66;
  resize: none;
  outline: none;
}

.reader-body p {
  font-family: var(--serif);
  font-size: 19.5px;
  line-height: 1.7;
  margin: 0 0 18px;
}
.reader-body h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  margin: 26px 0 10px;
}
mark.wavy-hl {
  border-radius: 4px;
  padding: 1px 2px;
  color: #161412;
}

/* Liquid-Glass Floating 4-Color Highlighter */
.hl-floating-menu {
  position: fixed;
  left: 50%;
  bottom: max(26px, env(safe-area-inset-bottom, 26px));
  transform: translateX(-50%);
  z-index: 960;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(250, 248, 244, 0.84);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.hl-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

/* ── CLARIDAD: ORGANIC SINGLE-PLANE DATA ART (ZERO EXCEL, ZERO PASTEL BARS) ── */
.clarity-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.clarity-kpis b {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.clarity-kpis span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
}

/* ── 3D TILT PRESENCE SEALS (EX-LIBRIS & STORY LYRICS + 12 PALETTES) ── */
.tilt-stage {
  perspective: 1050px;
  display: flex;
  justify-content: center;
  padding: 10px 0 16px;
}
.seal-card-3d {
  width: min(310px, 86vw);
  min-height: 390px;
  border-radius: 20px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.12s ease-out;
  transform-style: preserve-3d;
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.28);
  user-select: none;
  overflow: hidden;
}
.seal-card-3d.exlibris::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid currentColor;
  opacity: 0.26;
  border-radius: 13px;
  pointer-events: none;
}
.palette-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.pal-swatch {
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  cursor: pointer;
}
.pal-swatch.on {
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--gold);
}

/* ── EXTERNAL PROFILE LIVE DIPTYCH (MINI SEA + MINI SUN) ── */
.ext-diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  height: 132px;
  margin: 14px 0;
}
.ext-pane {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.ext-pane canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.ext-pane-lbl {
  position: absolute;
  left: 9px;
  bottom: 7px;
  font-size: 10.5px;
  color: #FFFDF9;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
  font-weight: 500;
}

/* ── TRANSLUCENT BOTTOM NAV (#bnav) WITH 60FPS LERP & 4 AUTHORIAL SVGs ── */
@keyframes bnavLeafSway {
  0%, 100% { transform: rotate(0deg); }
  35% { transform: rotate(-5deg); }
  70% { transform: rotate(4deg); }
}
@keyframes bnavHorizonRise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes bnavWavePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes bnavCompassTilt {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(10deg); }
  75% { transform: rotate(-6deg); }
}

.bnav-wrap {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom, 12px));
  z-index: 800;
  width: min(420px, calc(100vw - 26px));
  transform: translate3d(-50%, calc(var(--nav-p) * 7px), 0) scale(calc(1 - var(--nav-p) * 0.065));
  transform-origin: center bottom;
  will-change: transform;
}

#bnav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--nav-glass);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--glass-spec), 0 10px 28px -12px rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 6px 8px;
}

.bnav-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  opacity: 0.56;
  padding: 5px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: opacity 0.18s ease;
}
.bnav-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bnav-btn span {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.bnav-btn.on {
  opacity: 1;
}
.bnav-btn.on svg {
  stroke: var(--crimson);
  stroke-width: 1.9;
}
/* 2 calm cycles on tab activation — zero endless battery drain! */
.bnav-btn.on[data-view="v-cuidado"] svg { animation: bnavLeafSway 1.1s ease 2; }
.bnav-btn.on[data-view="v-calma"] svg { animation: bnavHorizonRise 1.1s ease 2; }
.bnav-btn.on[data-view="v-compania"] svg { animation: bnavWavePulse 1.1s ease 2; }
.bnav-btn.on[data-view="v-claridad"] svg { animation: bnavCompassTilt 1.1s ease 2; }

/* ── PAGE-LIKE MODALS, SPLASH & PUBLIC SUBSTACK VIEW ── */
.modal-sheet {
  position: fixed;
  inset: 0;
  z-index: 920;
  background: var(--paper);
  overflow-y: auto;
  padding: max(16px, env(safe-area-inset-top, 16px)) 20px 60px;
}
.modal-inner {
  max-width: 560px;
  margin: 0 auto;
}

.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: #FFFFFF;
  color: #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
}
#wavySplashSea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cover-plate {
  border: 1px solid var(--rule-strong);
  padding: 24px 20px;
  max-width: 460px;
  margin: 12px auto;
}
.cover-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0;
}
.cover-rule::before, .cover-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* Public Standalone Reader (#/username & #/username/postId) */
body.public-mode .masthead,
body.public-mode .bnav-wrap,
body.public-mode main.app-views {
  display: none !important;
}

/* Subtle Bottom Confirmation Pill (Never covers Masthead!) */
.toast {
  position: fixed;
  bottom: calc(78px + env(safe-area-inset-bottom, 12px));
  left: 50%;
  transform: translate(-50%, 12px);
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show {
  opacity: 0.96;
  transform: translate(-50%, 0);
}

@media (pointer: coarse) {
  .bnav-btn, .tab, .mast-btn { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
