/* PAIS // Life — a daylight field journal. Layers over batcave.css: same components, new world.
   Paper and ink, a serif masthead, forest green for progress, ochre for goals met. */
:root {
  --void: #fffdf8;            /* text on filled buttons */
  --cave: #f6f1e6;
  --plate: #fbf8f1;
  --plate-2: #f4eee2;
  --plate-3: #e9e1d0;
  --edge: rgba(52, 40, 26, 0.10);
  --edge-2: rgba(52, 40, 26, 0.22);
  --ink: #2a241d;
  --ink-2: #5d5245;
  --muted: #8c8172;
  --hud: #2f6b4f;             /* progress, links */
  --hud-dim: rgba(47, 107, 79, 0.12);
  --signal: #b5832a;          /* ochre: goals met, today */
  --signal-glow: rgba(181, 131, 42, 0.22);
  --ok: #3d7a4c;
  --warn: #b5832a;
  --danger: #b4472f;
  --danger-dim: rgba(180, 71, 47, 0.10);
  --paper: #f3ede1;
  --shadow-sheet: 0 0 0 1px var(--edge), 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 30px -24px rgba(70, 45, 20, 0.55);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Inter", ui-sans-serif, system-ui, sans-serif;  /* tabular figures, no third family */

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 8px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .24 0 0 0 0 .14 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.life {
  background: var(--grain), radial-gradient(120% 80% at 0% 0%, #fbf6ea 0%, var(--paper) 55%, #ece4d4 100%) fixed;
  color: var(--ink);
  font: 400 var(--text-base)/1.6 var(--font-ui);
  font-feature-settings: "tnum" 1, "lnum" 1;
}
body.life ::selection { background: rgba(181, 131, 42, 0.25); }
body.life a { color: var(--hud); }
body.life :focus-visible { outline: 2px solid var(--hud); outline-offset: 3px; }

/* ---------- gate: today's page ---------- */
body.life #gate { place-items: center; padding: 24px 16px; background: transparent; }
body.life .gate-card {
  margin: 0; width: min(100%, 520px); padding: 44px clamp(22px, 5vw, 48px) 30px; text-align: left;
  background: var(--plate); border-radius: var(--r-sm); backdrop-filter: none;
  box-shadow: var(--shadow-sheet), 0 40px 80px -50px rgba(70, 45, 20, 0.6);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(47, 107, 79, 0.07) 31px 32px);
  background-position: 0 18px;
  animation: page-in 900ms var(--ease) both;
}
body.life .gate-card::before {   /* a strip of tape holding the page */
  content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-2deg);
  background: rgba(214, 196, 150, 0.55); box-shadow: 0 1px 2px rgba(70, 45, 20, 0.12);
}
@keyframes page-in { from { opacity: 0; transform: translateY(14px) rotate(-0.6deg); } }
.gate-kicker { margin: 0; font-size: var(--text-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.gate-hello { margin: 10px 0 0; font: 500 clamp(2rem, 1.4rem + 2.4vw, 2.8rem)/1.08 var(--font-display);
  font-variation-settings: "opsz" 144; letter-spacing: -0.015em; color: var(--ink); }
body.life .gate-prompt { color: var(--ink-2); margin: 14px 0 22px; min-height: 0; font-size: var(--text-sm); }
body.life .code-cells { justify-content: flex-start; gap: 10px; }
body.life .code-cells input {
  width: 44px; height: 56px; border-radius: 0; background: transparent; color: var(--ink);
  font: 500 1.9rem var(--font-display); box-shadow: inset 0 -2px 0 var(--edge-2); caret-color: var(--hud);
}
body.life .code-cells input:focus { box-shadow: inset 0 -3px 0 var(--hud); }
body.life .code-cells.bad input { box-shadow: inset 0 -3px 0 var(--danger); }
body.life .code-cells.good input { box-shadow: inset 0 -3px 0 var(--ok); }
body.life .gate-foot { margin-top: 26px; color: var(--muted); letter-spacing: 0.02em; }
body.life #gate.opening { opacity: 0; transform: translateY(-10px); }

/* ---------- masthead ---------- */
#life { position: relative; z-index: 1; opacity: 0; transition: opacity 600ms var(--ease) 150ms; }
#life.on { opacity: 1; }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  max-width: 1320px; margin: 0 auto; padding: 26px var(--pad) 14px; }
.mast-brand { justify-self: start; text-decoration: none; color: var(--ink) !important;
  font: 600 1.5rem/1 var(--font-display); letter-spacing: 0.02em; }
.mast-brand em { font-weight: 400; font-style: italic; color: var(--ink-2); margin-left: 4px; }
.mast-date { margin: 0; font: italic 400 var(--text-base) var(--font-display); color: var(--ink-2); }
.mast-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.trade-door {   /* a glimpse of the other world: the trading floor's black and lime */
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px; text-decoration: none;
  background: #0c0c14; color: #f0f0f5 !important; font: 600 var(--text-xs)/1 "Inter", sans-serif; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 6px 18px -10px rgba(12, 12, 20, 0.8); transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.trade-door i { width: 7px; height: 7px; border-radius: 50%; background: #c8ff00; box-shadow: 0 0 8px #c8ff00; }
.trade-door:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(12, 12, 20, 0.9), 0 0 0 1px rgba(200, 255, 0, 0.4); }
.trade-door:active { transform: translateY(0); }
.mast-lock { border: 0; background: none; cursor: pointer; padding: 8px 4px; color: var(--muted); font-size: var(--text-xs);
  letter-spacing: 0.16em; text-transform: uppercase; }
.mast-lock:hover { color: var(--ink); }

/* ---------- tabs: index tabs on the page edge ---------- */
body.life .tabs { position: sticky; top: 0; z-index: 19; max-width: none; margin: 0; gap: 26px; border-bottom: 0;
  padding: 4px max(var(--pad), calc((100% - 1320px) / 2 + var(--pad))) 0;   /* full-bleed strip, content aligned */
  background: rgba(243, 237, 225, 0.88); backdrop-filter: blur(8px); box-shadow: inset 0 -1px 0 var(--edge-2); }
body.life .tab { padding: 12px 0 11px; letter-spacing: 0.01em; font: 500 1.08rem var(--font-display); color: var(--muted); }
body.life .tab .tab-num { font: italic 400 var(--text-sm) var(--font-display); color: var(--muted); margin-right: 8px; }
body.life .tab:hover { color: var(--ink); }
body.life .tab[aria-selected="true"] { color: var(--ink); }
body.life .tab[aria-selected="true"] .tab-num { color: var(--signal); }
body.life .tab::after { left: 0; right: 0; height: 2px; background: var(--ink); box-shadow: none; }

body.life main { padding-top: 30px; }
body.life .panel { animation: leaf 520ms var(--ease); }
@keyframes leaf { from { opacity: 0; transform: translateY(8px); } }

/* ---------- page furniture ---------- */
body.life .head { margin-bottom: 26px; align-items: end; padding-bottom: 18px; box-shadow: inset 0 -1px 0 var(--edge); }
body.life .eyebrow { color: var(--muted); letter-spacing: 0.2em; font-size: 0.68rem; }
body.life .eyebrow b { color: var(--signal); }
body.life h1.title { font: 500 clamp(2rem, 1.3rem + 2.2vw, 3rem)/1.05 var(--font-display); letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144; }
body.life .lede { font: italic 400 1.05rem/1.55 var(--font-display); color: var(--ink-2); }
body.life h2.sect { font: 600 0.7rem var(--font-ui); letter-spacing: 0.2em; color: var(--ink-2); display: flex; align-items: center; }
body.life h2.sect::before { content: ""; width: 18px; height: 1px; background: var(--signal); margin-right: 10px; flex: none; }

body.life .card { background: var(--plate); border-radius: var(--r-md); box-shadow: var(--shadow-sheet); }
body.life .card.hud::before { background: none; }
body.life .card.alert { background: #fbf1ec; box-shadow: 0 0 0 1px rgba(180, 71, 47, 0.35); }
body.life .card.alert-soft { box-shadow: var(--shadow-sheet), inset 3px 0 0 var(--signal); }

body.life .kpi-label { font-size: 0.66rem; letter-spacing: 0.18em; color: var(--muted); }
body.life .kpi-value { font: 500 2rem/1.05 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: lining-nums tabular-nums; }
body.life .kpi-value.hero { text-shadow: none; }
body.life .kpi-value.alarm { text-shadow: none; }
body.life .funnel div { background: var(--plate-2); }
body.life .funnel .kpi-value { font-size: 2.3rem; }

body.life .meter-track { background: var(--plate-3); height: 6px; }
body.life .meter-fill, body.life .meter.done .meter-fill { box-shadow: none; }
body.life .meter.far .meter-fill { background: #8fae9b; }
body.life .meter-num strong { font: 500 1.6rem var(--font-display); }

body.life .light.ok, body.life .light.warn, body.life .light.bad, body.life .light.cloud { box-shadow: none; }
body.life .btn { color: var(--void); background: var(--hud); box-shadow: 0 6px 14px -8px rgba(47, 107, 79, 0.8); }
body.life .btn:hover { box-shadow: 0 10px 20px -10px rgba(47, 107, 79, 0.9); }
body.life .btn.ghost { background: none; color: var(--hud); box-shadow: inset 0 0 0 1px var(--hud-dim); }
body.life .chip[aria-pressed="true"] { background: var(--ink); color: var(--void); }
body.life .check.on { box-shadow: none; }
body.life .check.on::after { border-color: var(--void); }

body.life th { color: var(--muted); border-bottom-color: var(--edge-2); }
body.life tbody tr:hover { background: rgba(181, 131, 42, 0.06); }

body.life .cal-day { background: var(--plate-2); }
body.life .cal-day.today { box-shadow: inset 0 0 0 1.5px var(--signal); }
body.life .cal-item { background: var(--hud-dim); color: var(--ink); }
body.life .week-col.today { box-shadow: inset 0 0 0 1.5px var(--signal); }
body.life .week-block { background: var(--plate); }

body.life .news-headline { font: 500 1.4rem/1.25 var(--font-display); color: var(--ink); }
body.life .news-item { background: var(--plate-2); }
body.life .news-item.reading { box-shadow: inset 0 0 0 1px var(--signal); }
body.life .news-title { font: 600 1.08rem/1.3 var(--font-display); }
body.life .news-learn { background: var(--hud-dim); }

body.life .coach-item { background: var(--plate-2); }
body.life .coach-item h3 { font: 600 1.05rem var(--font-display); }
body.life .coach-action b { color: var(--hud); }

body.life .dg-term, body.life .dg-course { background: var(--plate-2); }
body.life .stale { background: rgba(181, 131, 42, 0.10); color: #7a5617; box-shadow: inset 0 0 0 1px rgba(181, 131, 42, 0.35);
  max-width: 1320px; margin: 12px auto 0; }
body.life .empty { color: var(--muted); font: italic 400 var(--text-base) var(--font-display); letter-spacing: 0; }

/* ---------- strength log (Gym tab) ---------- */
.lift-form, .lift-profile { display: grid; grid-template-columns: 2fr 1fr 0.8fr 1.3fr auto; gap: 10px; align-items: end; }
.lift-profile { grid-template-columns: 1fr 0.8fr 1fr auto; }
.lift-form label, .lift-profile label { display: grid; gap: 4px; min-width: 0; }
.lift-form label span, .lift-profile label span { font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
body.life .strength input, body.life .strength select {
  width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: var(--r-sm);
  background: var(--plate-2); color: var(--ink); font: 500 1rem var(--font-ui); box-shadow: inset 0 -2px 0 var(--edge-2);
  transition: box-shadow var(--duration-fast, 150ms) ease;
}
body.life .strength input:focus, body.life .strength select:focus { outline: none; box-shadow: inset 0 -3px 0 var(--hud); }
body.life .strength button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: var(--hud); color: var(--void); font: 600 0.95rem var(--font-ui);
  transition: transform var(--duration-fast, 150ms) ease, background var(--duration-fast, 150ms) ease;
}
body.life .strength button:hover { background: #255a41; }
body.life .strength button:active { transform: translateY(1px); }
body.life .strength button:disabled { opacity: 0.55; cursor: progress; }
body.life .strength .lift-del { min-height: 32px; padding: 0 10px; background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-dim); }
body.life .strength .lift-del:hover { background: var(--danger-dim); }
.lift-status { min-height: 1.4em; margin: 8px 0 0; color: var(--ink-2); font-size: var(--text-sm, 0.9rem); }

.lift-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; margin-top: 14px; align-items: start; }
.lift-row svg { display: block; width: 100%; height: 96px; margin-top: 8px; }
.lift-row {
  padding: 18px 18px 14px; border-radius: var(--r-md); background: var(--plate); box-shadow: var(--shadow-sheet);
  border-top: 3px solid var(--hud);
}
.lift-row h3 { margin: 0; font: 600 1.05rem var(--font-display); color: var(--ink-2); }
.lift-best { margin: 4px 0 2px; font: 600 clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem)/1 var(--font-display); color: var(--ink); }
.lift-best small { font: 500 var(--text-xs) var(--font-ui); letter-spacing: 0.06em; color: var(--muted); }
.lift-ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 14px 0 6px; }
.lift-ladder .rung { display: grid; gap: 4px; text-align: center; }
.lift-ladder .rung i { height: 8px; border-radius: 2px; background: var(--plate-3); }
.lift-ladder .rung.on i { background: var(--hud); }
.lift-ladder .rung.on:last-child i, .lift-ladder .rung.on:nth-last-child(2) i { background: var(--signal); }
.lift-ladder small { font-size: 0.66rem; letter-spacing: 0.04em; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.lift-ladder .rung.on small { color: var(--ink-2); }
.lift-next { margin: 4px 0; font-size: 0.92rem; color: var(--ink-2); }
.lift-comp { margin: 8px 0 4px; padding: 8px 10px; border-radius: var(--r-sm); background: var(--hud-dim); font-size: 0.9rem; color: var(--ink-2); }
.lift-comp b { color: var(--hud); }
.lift-recent td.num, .lift-recent th:nth-child(3), .lift-recent th:nth-child(4) { text-align: right; }

@media (max-width: 760px) {
  .lift-form { grid-template-columns: 1fr 1fr; }
  .lift-form label:first-child { grid-column: 1 / -1; }
  .lift-form .lift-go { grid-column: 1 / -1; }
  .lift-profile { grid-template-columns: 1fr 1fr; }
  .lift-profile button { grid-column: 1 / -1; }
}

/* ---------- gym tab: section nav, today viewer, athleticism ---------- */
.section-h { margin: 0 0 12px; font: 600 clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem)/1.1 var(--font-display); color: var(--ink); }
.gym-section, .strength, .ath { margin-top: clamp(28px, 4vw, 44px); scroll-margin-top: 110px; }
.today { scroll-margin-top: 110px; }
.gym-nav {
  position: sticky; top: 48px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(var(--pad, 16px) * -1) 18px;
  padding: 8px var(--pad, 16px); scrollbar-width: none;
  background: rgba(243, 237, 225, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.gym-nav::-webkit-scrollbar { display: none; }
.gym-nav a {
  flex: none; padding: 7px 14px; border-radius: 999px; background: var(--plate); box-shadow: 0 0 0 1px var(--edge), 0 6px 14px -10px rgba(70, 45, 20, 0.5);
  color: var(--ink-2); font: 600 0.82rem var(--font-ui); letter-spacing: 0.04em; text-decoration: none;
  transition: background var(--duration-fast, 150ms) ease, color var(--duration-fast, 150ms) ease;
}
.gym-nav a:hover, .gym-nav a:focus-visible { background: var(--hud); color: var(--void); }

.today {
  position: relative; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-md); background: var(--plate);
  box-shadow: var(--shadow-sheet), 0 30px 60px -48px rgba(70, 45, 20, 0.7);
  background-image: radial-gradient(120% 90% at 100% 0%, rgba(47, 107, 79, 0.08), transparent 60%);
}
.today-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.today-head h2 { margin: 0; font: 600 clamp(2rem, 1.4rem + 2.4vw, 3.2rem)/1 var(--font-display); color: var(--ink); }
.today-kicker { margin: 0 0 4px; font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--signal); font-weight: 600; }
body.life .today-nav {
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; background: var(--plate-2); color: var(--ink);
  font: 400 1.6rem/1 var(--font-display); box-shadow: inset 0 0 0 1px var(--edge-2); transition: background var(--duration-fast, 150ms) ease;
}
body.life .today-nav:hover:not(:disabled) { background: var(--hud); color: var(--void); }
body.life .today-nav:disabled { opacity: 0.3; cursor: default; }
body.life .today-jump { grid-column: 1 / -1; justify-self: start; border: 0; background: none; color: var(--hud); font: 600 0.85rem var(--font-ui); cursor: pointer; padding: 0; text-decoration: underline; }
.today-strip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 4px; margin: 18px 0 16px; }
body.life .strip-day {
  display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: transparent; color: var(--muted); font: 500 0.72rem var(--font-ui); transition: background var(--duration-fast, 150ms) ease;
}
body.life .strip-day:hover { background: var(--plate-2); }
body.life .strip-day.on { background: var(--ink); color: var(--void); }
.strip-bar { display: flex; align-items: flex-end; width: 8px; height: 34px; border-radius: 2px; background: var(--plate-3); overflow: hidden; }
.strip-bar i { display: block; width: 100%; height: 100%; background: var(--hud); transform-origin: bottom; }
.strip-day.on .strip-bar { background: rgba(255, 255, 255, 0.18); }
.strip-day.on .strip-bar i { background: var(--signal); }
.strip-day b { font: 600 0.85rem var(--font-ui); color: inherit; }
.today-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--edge); border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 0 0 1px var(--edge); }
.today-tile { display: grid; gap: 4px; padding: 14px 14px 12px; background: var(--plate); }
.today-tile.no-data .today-value { color: var(--muted); }
.today-value { font: 600 clamp(1.3rem, 1rem + 1vw, 1.75rem)/1.1 var(--font-display); color: var(--ink); }
.today-delta { font-size: 0.78rem; color: var(--muted); }
.today-delta.up { color: var(--ok); }
.today-delta.down { color: var(--danger); }
.today-foot { margin-top: 16px; display: grid; gap: 6px; }
.today-workouts { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.today-workouts li { padding: 8px 12px; border-left: 3px solid var(--hud); background: var(--plate-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); }
.today-workouts small { display: block; color: var(--muted); }
.today-none { margin: 0; color: var(--muted); }

.ath-hero {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 4vw, 40px); align-items: center;
  padding: clamp(20px, 3vw, 30px); border-radius: var(--r-md); color: #f3ede1;
  background: radial-gradient(120% 140% at 0% 0%, #2f6b4f 0%, #1f3d2f 55%, #18291f 100%);
  box-shadow: 0 30px 60px -40px rgba(20, 40, 28, 0.9);
}
.ath-hero h2 { margin: 0 0 6px; font: 600 clamp(2rem, 1.4rem + 2.2vw, 3rem)/1 var(--font-display); color: #fffdf8; }
.ath-hero p { margin: 4px 0; color: rgba(243, 237, 225, 0.82); }
.ath-hero .today-kicker { color: #e2b862; }
.ath-hero .kpi-sub { color: rgba(243, 237, 225, 0.6); }
.ath-lever b { color: #e2b862; }
.ath-dial { position: relative; width: clamp(150px, 26vw, 200px); aspect-ratio: 1; }
.ath-dial svg { width: 100%; height: 100%; }
.ath-track { stroke: rgba(255, 255, 255, 0.12); stroke-width: 10; }
.ath-fill { stroke: #e2b862; stroke-width: 10; animation: dial-in 1100ms var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) both; }
@keyframes dial-in { from { stroke-dasharray: 0 999; } }
.ath-readout { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ath-readout b { font: 600 clamp(2.6rem, 2rem + 2.4vw, 3.6rem)/1 var(--font-display); color: #fffdf8; }
.ath-readout small { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243, 237, 225, 0.6); }
.ath-parts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.ath-part { padding: 14px 16px; border-radius: var(--r-md); background: var(--plate); box-shadow: var(--shadow-sheet); }
.ath-part.weakest { box-shadow: var(--shadow-sheet), inset 3px 0 0 var(--signal); }
.ath-part-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ath-part-name { font: 600 1.05rem var(--font-display); color: var(--ink); }
.ath-part-pct { font: 600 0.85rem var(--font-ui); color: var(--hud); white-space: nowrap; }
.ath-track-bar { position: relative; height: 8px; margin: 10px 0 8px; border-radius: 999px; background: var(--plate-3); overflow: hidden; }
.ath-track-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--hud), #4f9a73); transform-origin: left; animation: grow-x 900ms var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) both; }
.ath-part.weakest .ath-track-bar i { background: linear-gradient(90deg, var(--signal), #d4a14a); }
@keyframes grow-x { from { transform: scaleX(0); } }
.ath-avg { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: 0.35; }
.ath-part-sub { margin: 2px 0; font-size: 0.85rem; color: var(--ink-2); }
.ath-src { margin: 6px 0 0; font-size: 0.74rem; color: var(--muted); }
.ath-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 2px; padding: 0; list-style: none; }
.ath-chips li { padding: 2px 8px; border-radius: 999px; background: var(--plate-2); font-size: 0.76rem; color: var(--ink-2); }
.ath-chips li.low { background: rgba(181, 131, 42, 0.16); color: #7a5617; }

.lift-row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lift-pct { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--hud-dim); color: var(--hud); font: 600 0.75rem var(--font-ui); }
.lift-row.tier-0, .lift-row.tier-1 { border-top-color: var(--plate-3); }
.lift-row.tier-4, .lift-row.tier-5 { border-top-color: var(--signal); }
.lift-comp p { margin: 0; }
.lift-comp p + p { margin-top: 4px; }

@media (max-width: 760px) {
  .today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-strip { gap: 2px; }
  .ath-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ath-fill, .ath-track-bar i { animation: none; }
}

@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr auto; padding-top: 18px; }
  .mast-date { grid-column: 1 / -1; grid-row: 2; }
  body.life .tabs { gap: 18px; }
  body.life .tab { font-size: 1rem; }
}
@media (max-width: 420px) {
  .trade-door { padding: 7px 10px; letter-spacing: 0.08em; }
  body.life .code-cells { gap: 6px; }
  body.life .code-cells input { width: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  body.life .gate-card, body.life .panel { animation: none; }
}
