@font-face {
  font-family: Oswald;
  src: url(titan/oswald.ttf) format("truetype");
  font-display: swap;
  font-weight: 600;
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: dark;
  background: #030303;
}
body {
  margin: 0;
  color: #f3f3f3;
  font:
    14px/1.45 Arial,
    sans-serif;
  background:
    radial-gradient(ellipse at 90% 0, #3e05051f, transparent 45%), #030303;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #56cef5;
  outline-offset: 3px;
}
button {
  border: 1px solid #303030;
  background: linear-gradient(#222, #111);
  border-radius: 9px;
  padding: 10px 12px;
  min-height: 44px;
}
button:hover {
  border-color: #696969;
}
.primary {
  background: linear-gradient(#ff2535, #c60013);
  border-color: #ff2438;
  box-shadow: 0 0 20px #e900152b;
  font-weight: bold;
}
.primary:hover {
  background: #f01327;
}
.danger {
  color: #ff4c5c;
}
.full {
  width: 100%;
}
.muted,
small {
  color: #a2a2a7;
}
small {
  font-size: 12px;
}
h1,
h2,
h3,
h4,
.sport {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}
h1 {
  font-size: 30px;
  margin: 0;
}
h2 {
  font-size: 24px;
  margin: 0 0 16px;
}
h3 {
  font-size: 21px;
  margin: 0 0 6px;
}
h4 {
  font-size: 18px;
  margin: 0 0 5px;
}
p {
  margin: 8px 0 12px;
}
svg.icon {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.red {
  color: #f21c32;
}
.blue {
  color: #35c9f6;
}
.eyebrow {
  font:
    600 12px Oswald,
    sans-serif;
  color: #ff263b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.demo-bar {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #777;
  max-width: 1120px;
  margin: auto;
  padding: 8px 16px 0;
  display: flex;
  justify-content: space-between;
}
.demo-bar span {
  letter-spacing: 0;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1120px;
  margin: auto;
  padding: 10px 20px;
}
.app-header.center {
  justify-content: center;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font:
    600 23px Oswald,
    sans-serif;
}
.brand small {
  display: block;
  font:
    10px Arial,
    sans-serif;
  letter-spacing: 2px;
  color: #ddd;
}
.slashes {
  font: italic 900 36px Arial;
  color: #fa1028;
  letter-spacing: -7px;
  padding-right: 7px;
  text-shadow: 0 0 18px #f0000044;
}
.icon-button {
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  min-width: 44px;
  padding: 8px;
}
.screen {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 115px;
}
.panel {
  background: linear-gradient(130deg, #151515, #090909 80%);
  border: 1px solid #2b2b2b;
  border-top-color: #3a3a3a;
  border-radius: 14px;
  padding: 17px;
  box-shadow: inset 0 1px #ffffff05;
  margin-bottom: 16px;
}
.panel h3 {
  margin-bottom: 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: grid;
  gap: 12px;
}
.badge {
  font:
    12px Oswald,
    sans-serif;
  color: #ff3447;
  background: #53091288;
  padding: 5px 8px;
  border-radius: 5px;
  display: inline-block;
}
.badge.completed {
  color: #61e28c;
  background: #0c3923;
}
.badge.later {
  color: #56d3ff;
  background: #073440;
}
.badge.planned {
  color: #ccc;
  background: #333;
}
.hero {
  position: relative;
  min-height: 305px;
  border-bottom: 1px solid #431216;
  margin-bottom: 18px;
  padding: 17px 0 18px;
  isolation: isolate;
}
.hero:before {
  content: "";
  position: absolute;
  inset: -70px -20px 0;
  z-index: -2;
  background: radial-gradient(ellipse at 90% 40%, #a10016a6, transparent 65%);
}
.hero-photo {
  position: absolute;
  right: -20px;
  top: -50px;
  width: 76%;
  height: 290px;
  object-fit: cover;
  object-position: 48% 20%;
  filter: grayscale(1) contrast(1.25);
  mask-image:
    linear-gradient(to right, transparent, #000 30%),
    linear-gradient(to bottom, #000 68%, transparent);
  mask-composite: intersect;
  z-index: -1;
}
.hero h1 {
  font-size: 35px;
  max-width: 185px;
  text-shadow: 0 2px 10px #000;
  margin: 7px 0 24px;
}
.hero-day {
  width: 150px;
  margin-bottom: 27px;
}
.hero-day strong {
  display: block;
  font-family: Oswald;
  font-size: 20px;
}
.hero .primary {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  font: 600 20px Oswald;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 53px;
}
.hero.rest .hero-photo {
  opacity: 0.35;
}
.water-symbol {
  width: 43px !important;
  height: 43px !important;
  filter: drop-shadow(0 0 8px #1dc3ff45);
}
.water-total {
  font-family: Oswald;
  font-size: 20px;
}
.water-total small {
  font-family: Arial;
  font-size: 13px;
}
.progress {
  height: 12px;
  background: #2b2b2b;
  border-radius: 10px;
  overflow: hidden;
  margin: 13px 0;
}
.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #e20017, #ff3346);
  border-radius: 10px;
}
.progress.water > span {
  background: linear-gradient(90deg, #05a7df, #46d5ff);
  box-shadow: 0 0 12px #12b9f9;
}
.water-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.water-actions button {
  font: 14px Oswald;
  padding: 9px 4px;
  white-space: nowrap;
}
.link-card {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 14px;
  padding: 13px 0 0;
  background: none;
  border: 0;
  min-height: 60px;
}
.round-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #3d101533;
  color: #ef2038;
}
.chevron {
  color: #aaa;
  font-size: 24px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #070707f5;
  border-top: 1px solid #282828;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  backdrop-filter: blur(15px);
}
.nav-item {
  color: #a7a7aa;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font: 12px Oswald;
  min-width: 56px;
  min-height: 48px;
  justify-content: center;
}
.nav-item.active {
  color: #ff1931;
  text-shadow: 0 0 15px #ee001866;
}
.nav-item.active svg {
  filter: drop-shadow(0 0 5px #ed002c50);
}
.tabs {
  display: flex;
  background: linear-gradient(#222, #101010);
  border: 1px solid #292929;
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 18px;
}
.tabs button {
  background: none;
  border: 0;
  flex: 1;
  padding: 8px 4px;
  font: 15px Oswald;
  min-height: 40px;
}
.tabs .selected {
  background: linear-gradient(#ff2738, #ca0014);
  box-shadow: 0 0 16px #e4001c22;
}
.month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}
.month-bar strong {
  font: 22px Oswald;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}
.weekday {
  text-align: center;
  font: 13px Oswald;
  color: #999;
  padding-bottom: 3px;
}
.day {
  padding: 6px 0;
  min-height: 41px;
  border: 1px solid #262626;
  border-radius: 8px;
  position: relative;
  font: 16px Oswald;
  background: linear-gradient(#222, #101010);
}
.day.selected {
  background: linear-gradient(#ff2938, #c00018);
  border-color: #fb3444;
  box-shadow: 0 0 14px #ed00294a;
}
.day.today:not(.selected) {
  border-color: #ff283e;
}
.day .dots {
  display: flex;
  gap: 3px;
  justify-content: center;
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #888;
}
.dot.completed {
  background: #36d776;
}
.dot.later {
  background: #37c6ff;
}
.dot.skipped {
  background: #ff263e;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  color: #aaa;
  margin: 14px 0 24px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.legend .dot {
  width: 7px;
  height: 7px;
}
.day-summary {
  border-color: #3c2023;
}
.day-summary h3 {
  font-size: 25px;
}
.diary-actions {
  display: flex;
  gap: 9px;
}
.diary-actions button {
  flex: 1;
}
.exercise-plan {
  padding: 0;
}
.exercise-plan summary {
  cursor: pointer;
  list-style: none;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: 19px Oswald;
}
.exercise-plan summary:after {
  content: "⌄";
  color: #999;
}
.exercise-plan[open] summary {
  border-bottom: 1px solid #292929;
}
.exercise-inner {
  padding: 15px;
}
.set-heading,
.set-row {
  display: grid;
  grid-template-columns: 30px 1fr 1fr 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.set-heading {
  font-size: 11px;
  color: #999;
}
.set-row input {
  margin: 0;
  text-align: center;
  min-width: 0;
  padding: 10px 3px;
}
.set-check {
  padding: 0;
  min-height: 43px;
}
.set-check.done {
  background: #0e4e28;
  color: #73f0a1;
  border-color: #2e9b57;
}
.tiny {
  font-size: 12px;
  min-height: 38px;
  padding: 7px 9px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(#1d1d1d, #111);
  border: 1px solid #292929;
  border-radius: 10px;
  padding: 0 12px;
  margin-bottom: 14px;
}
.search-box input {
  border: 0;
  background: none;
  margin: 0;
  padding: 12px 0;
  min-height: 44px;
}
.search-box svg {
  width: 19px;
  color: #aaa;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.chips button {
  font: 14px Oswald;
  min-height: 33px;
  padding: 5px 12px;
}
.chips .selected {
  background: linear-gradient(#ff293c, #c80015);
  border-color: #f32034;
}
.anatomy-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 10px 14px;
  margin-bottom: 15px;
  border-radius: 13px;
  min-height: 142px;
  background: radial-gradient(at 25% 45%, #69141c55, transparent 70%), #0d0d0d;
}
.anatomy-thumb {
  width: 115px;
  height: 125px;
  flex: none;
  overflow: hidden;
}
.anatomy-thumb .muscle-compact {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.anatomy-thumb h3,
.anatomy-thumb figcaption,
.anatomy-thumb .muscle-groups,
.anatomy-thumb .muscle-legend,
.anatomy-thumb .muscle-note {
  display: none;
}
.anatomy-thumb .muscle-body-pair figure:first-child svg {
  width: 100%;
  height: 180px;
  transform: translateY(-8px);
}
.anatomy-thumb .muscle-body-pair figure:nth-child(2) {
  display: none;
}
.anatomy-thumb figure {
  margin: 0;
}
.catalog-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px;
  text-align: left;
  margin-bottom: 9px;
  border-radius: 11px;
  min-height: 88px;
  background: linear-gradient(120deg, #171717, #0a0a0a);
  border: 1px solid #2b2b2b;
}
.exercise-thumb {
  width: 88px;
  height: 65px;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(0.65) contrast(1.15);
}
.catalog-row h3 {
  font-size: 18px;
  line-height: 1.2;
}
.catalog-row small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.program-hero {
  min-height: 280px;
  padding: 0;
  overflow: hidden;
  position: relative;
  border-color: #5a2026;
}
.program-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(1) contrast(1.2);
  opacity: 0.65;
}
.program-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #070707 5%, #06060622 90%),
    radial-gradient(at 100% 0, #bf001d55, transparent 80%);
  pointer-events: none;
}
.program-copy {
  position: relative;
  z-index: 1;
  padding: 17px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.program-copy .badge {
  position: absolute;
  top: 16px;
  left: 16px;
}
.program-copy h3 {
  font-size: 30px;
  margin-top: 65px;
}
.program-copy button {
  margin-top: 4px;
}
.program-copy p {
  margin: 4px 0;
}
.compact-program {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
}
.profile-card .avatar {
  width: 78px;
  height: 78px;
  border: 2px solid #ed1830;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: 50%;
  filter: grayscale(1);
  box-shadow: 0 0 16px #e6001e40;
}
.profile-card h3 {
  font-size: 27px;
}
.profile-card .progress {
  height: 9px;
  margin: 9px 0 4px;
}
.profile-card .xp {
  font-size: 10px;
  text-align: right;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 15px;
}
.account-card {
  min-height: 135px;
  text-align: left;
  padding: 16px 13px;
  background: linear-gradient(130deg, #181818, #090909);
  border: 1px solid #303030;
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.account-card svg {
  width: 31px;
  height: 31px;
  color: #f62039;
  margin-bottom: 11px;
}
.account-card h3 {
  font-size: 21px;
  margin: 0 0 5px;
}
.account-card p {
  font-size: 12px;
  line-height: 1.4;
  color: #b7b7bc;
  margin: 0;
}
.account-card.water-card svg {
  color: #38cbff;
}
.account-link {
  padding: 14px;
  margin-bottom: 10px;
}
.account-link .round-icon {
  width: 39px;
  height: 39px;
}
.account-link h3 {
  font-size: 21px;
}
.account-link small {
  font-size: 11px;
}
dialog {
  color: #eee;
  background: #0c0c0c;
  border: 1px solid #4d252a;
  border-radius: 17px;
  width: min(94vw, 570px);
  padding: 20px;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 0 60px #fa00151a;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.modal-heading h2 {
  margin: 0;
  font-size: 27px;
}
label {
  display: block;
  color: #bbb;
  font-size: 13px;
  margin: 14px 0;
}
input,
select {
  width: 100%;
  color: #f5f5f5;
  background: #151515;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  min-height: 46px;
  padding: 11px;
  margin-top: 7px;
}
input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  min-height: 20px;
  accent-color: #ed172e;
  margin: 0;
}
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.input-grid label {
  min-width: 0;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #171717;
  border: 1px solid #333;
  border-radius: 9px;
  padding: 14px;
  margin: 9px 0;
}
.choice:has(input:checked) {
  border-color: #ee263a;
  background: #350e14;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 15px 0;
}
.metric-grid div {
  border: 1px solid #303030;
  border-radius: 9px;
  padding: 13px;
  text-align: center;
  background: #141414;
}
.metric-grid strong {
  font: 26px Oswald;
  display: block;
}
.metric-grid small {
  font-size: 10px;
}
.history-item {
  border-bottom: 1px solid #292929;
  padding: 13px 0;
}
.history-item:last-child {
  border: 0;
}
.history-item small {
  display: block;
}
.muscle-compact h3 {
  font-size: 19px;
}
.muscle-body-pair {
  display: flex;
  gap: 15px;
  justify-content: center;
}
.muscle-body-pair figure {
  margin: 0;
  min-width: 0;
  flex: 1;
  text-align: center;
}
.muscle-body-pair svg {
  width: 100%;
  height: 245px;
}
.muscle-body-pair svg [data-body-region] {
  fill: #3b3b3e;
  stroke: #101010;
  stroke-width: 0.3;
}
.muscle-body-pair svg [data-role="primary"] {
  fill: #f21b36 !important;
}
.muscle-body-pair svg [data-role="secondary"] {
  fill: #ef9636 !important;
}
.muscle-body-pair svg polygon[data-muscle] {
  cursor: pointer;
  transition: filter 0.2s;
}
.muscle-body-pair svg polygon[data-muscle]:hover,
.muscle-body-pair svg polygon.chosen {
  filter: brightness(1.65) drop-shadow(0 0 1px #fff);
  stroke: #fff;
  stroke-width: 0.5;
}
.muscle-body-pair figcaption {
  font-size: 11px;
  color: #888;
}
.muscle-groups {
  font-size: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.muscle-groups h4 {
  font-size: 16px;
}
.muscle-groups ul {
  padding-left: 17px;
}
.muscle-legend,
.muscle-note {
  font-size: 11px;
  color: #999;
}
.muscle-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.muscle-legend span:before {
  content: "●";
  color: #ff293f;
  margin-right: 5px;
}
.muscle-legend span:nth-child(2):before {
  color: #ef9636;
}
.technique {
  background: #151515;
  border: 1px solid #2c2c2c;
  padding: 14px;
  border-radius: 10px;
}
.technique .phase {
  display: none;
}
.technique.playing .phase.active {
  display: block;
}
.technique img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  filter: grayscale(0.7);
  border-radius: 8px;
}
.technique.playing img {
  animation: technique-zoom 3s ease-in-out infinite alternate;
}
@keyframes technique-zoom {
  to {
    object-position: 55% 40%;
    filter: grayscale(0.2);
  }
}
.note {
  font-size: 11px;
  color: #85858b;
  margin-top: 18px;
}
.stat-bars {
  height: 120px;
  display: flex;
  gap: 12px;
  align-items: end;
  padding-top: 15px;
  border-bottom: 1px solid #333;
}
.stat-bars div {
  flex: 1;
  background: linear-gradient(#ff293c, #6b0011);
  border-radius: 5px 5px 0 0;
  min-height: 30px;
  position: relative;
}
.stat-bars span {
  position: absolute;
  top: -20px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #999;
}
.stat-bars small {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
}
#toast {
  position: fixed;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  opacity: 0;
  pointer-events: none;
  background: #222;
  border: 1px solid #78434a;
  padding: 12px 20px;
  z-index: 100;
  max-width: 90vw;
  width: max-content;
  border-radius: 10px;
  box-shadow: 0 10px 40px #000;
  font-size: 13px;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%);
}
.empty {
  padding: 30px 15px;
  text-align: center;
  color: #aaa;
}
.status-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.status-actions button {
  flex: 1;
}
.screen-footer {
  font-size: 10px;
  color: #666;
  text-align: center;
  margin-top: 22px;
}
.desktop-note {
  display: none;
}
@media (min-width: 800px) {
  .demo-bar {
    padding-top: 15px;
    font-size: 10px;
  }
  .app-header {
    height: 95px;
    padding: 18px 0;
  }
  .app-header.center {
    justify-content: flex-start;
  }
  .app-header h1 {
    font-size: 40px;
  }
  .screen {
    padding: 0 0 125px;
  }
  .home-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 22px;
    align-items: start;
  }
  .hero {
    grid-row: span 2;
    min-height: 490px;
    border: 1px solid #382024;
    border-radius: 17px;
    padding: 45px 30px;
    overflow: hidden;
    margin: 0;
  }
  .hero:before {
    inset: 0;
  }
  .hero-photo {
    top: 0;
    right: 0;
    height: 440px;
    width: 80%;
  }
  .hero h1 {
    font-size: 59px;
    max-width: 270px;
    margin-bottom: 40px;
  }
  .hero .primary {
    left: 30px;
    right: 30px;
    bottom: 30px;
  }
  .hero-day {
    margin-bottom: 50px;
  }
  .water-panel {
    margin: 0;
    padding: 26px;
  }
  .home-program {
    margin: 0;
  }
  .home-program .link-card {
    min-height: 100px;
  }
  .home-next {
    grid-column: 2;
  }
  .desktop-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
  .calendar {
    gap: 10px;
  }
  .day {
    min-height: 60px;
    font-size: 22px;
  }
  .legend {
    font-size: 12px;
  }
  .catalog-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .catalog-row {
    min-height: 105px;
  }
  .exercise-thumb {
    width: 115px;
    height: 80px;
  }
  .catalog-row h3 {
    font-size: 21px;
  }
  .anatomy-banner {
    min-height: 170px;
  }
  .program-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .program-hero,
  .program-copy {
    min-height: 345px;
  }
  .program-copy h3 {
    font-size: 38px;
  }
  .account-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
  }
  .account-grid {
    gap: 16px;
  }
  .account-card {
    min-height: 160px;
    padding: 20px;
  }
  .bottom-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 760px;
    border: 1px solid #333;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    padding: 13px 20px 18px;
  }
  .nav-item {
    font-size: 14px;
    min-width: 100px;
    gap: 7px;
  }
  .desktop-note {
    display: block;
    color: #777;
    font-size: 12px;
    margin-top: 20px;
  }
  .tabs {
    max-width: 600px;
  }
  .account-layout > .stack {
    gap: 0;
  }
  .panel {
    padding: 22px;
  }
  .screen-footer {
    margin-top: 35px;
  }
}
@media (min-width: 800px) and (max-width: 1180px) {
  .screen,
  .app-header {
    margin-left: 24px;
    margin-right: 24px;
  }
}
@media (max-width: 359px) {
  .screen {
    padding-left: 13px;
    padding-right: 13px;
  }
  .app-header {
    padding-left: 13px;
    padding-right: 13px;
  }
  .demo-bar span {
    display: none;
  }
  .hero h1 {
    font-size: 31px;
  }
  .nav-item {
    font-size: 10px;
    min-width: 50px;
  }
  .day {
    min-height: 37px;
  }
  .calendar {
    gap: 5px;
  }
  .account-card {
    padding: 12px;
  }
  .anatomy-thumb {
    width: 92px;
  }
  .tabs button {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
[hidden] {
  display: none !important;
}
.app-header {
  position: relative;
  z-index: 2;
}
.slashes {
  display: flex;
  gap: 5px;
  letter-spacing: normal;
  padding: 0 5px;
  transform: skew(-22deg);
}
.slashes i {
  width: 5px;
  height: 29px;
  display: block;
  background: #f5112b;
  box-shadow: 0 0 10px #ed002133;
}
.avatar-frame {
  border: 2px solid #ed1830;
  border-radius: 50%;
  box-shadow: 0 0 16px #e6001e40;
  display: block;
  overflow: hidden;
  flex: none;
  width: 78px;
  height: 78px;
}
.profile-card .avatar {
  border: 0;
  box-shadow: none;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.account-link {
  text-align: left;
}
.diary-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.diary-actions button svg {
  width: 18px;
  flex: none;
}
.muscle-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 12px;
}
.muscle-lists ul {
  padding-left: 16px;
}
.muscle-lists h4 {
  font-size: 16px;
}
.anatomy-thumb .muscle-lists {
  display: none;
}
@media (max-width: 359px) {
  .hero-photo {
    right: -13px;
  }
  .hero:before {
    left: -13px;
    right: -13px;
  }
}
@media (min-width: 800px) {
  .hero {
    grid-row: span 3;
  }
  .hero h1 {
    max-width: 360px;
    font-size: 56px;
  }
}
/* Production theme overrides: preserve existing DOM contracts and functional scripts. */
body.titan {
  background: #030303;
  color: #f3f3f3;
  color-scheme: dark;
}
body.titan main {
  width: min(1120px, 92%);
  margin: 22px auto 120px;
  min-height: 65vh;
}
body.titan header {
  background: transparent;
  border: 0;
  flex-wrap: nowrap;
}
body.titan .brand {
  color: #fff;
  text-decoration: none;
}
body.titan .brand small {
  color: #ddd;
}
body.titan .brand > .slashes {
  font-size: inherit;
}
body.titan a {
  color: #eee;
}
body.titan .nav-item {
  color: #aaa;
}
body.titan .nav-item.active {
  color: #ff1931;
}
body.titan .icon-button {
  color: #eee;
  min-width: 44px;
}
body.titan .card,
body.titan .program-panel,
body.titan dialog {
  background: linear-gradient(130deg, #151515, #090909);
  border: 1px solid #303030;
  border-radius: 14px;
  color: #f3f3f3;
}
body.titan input,
body.titan select,
body.titan textarea {
  background: #151515;
  color: #f5f5f5;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
}
body.titan button {
  background: linear-gradient(#ff2535, #c60013);
  color: #fff;
  border: 1px solid #e92238;
  border-radius: 9px;
}
body.titan button.secondary,
body.titan .tabs button:not(.selected) {
  background: linear-gradient(#222, #111);
  border-color: #333;
  color: #ddd;
}
body.titan button:hover {
  filter: brightness(1.15);
}
body.titan .muted,
body.titan small,
body.titan .calendar-key,
body.titan .tracking-hero p,
body.titan .tracking-entry time {
  color: #aaa;
}
body.titan .eyebrow {
  color: #ff263b;
}
body.titan .badge {
  background: #4e0c16;
  color: #ff5266;
}
body.titan .tracking-tabs {
  background: #171717;
}
body.titan .tracking-tabs a[aria-current="page"] {
  background: #e3122b;
  color: #fff;
}
body.titan .body-values dt,
body.titan .body-values dd span,
body.titan .weight-value span {
  color: #aaa;
}
body.titan .tracking-entry,
body.titan th,
body.titan td {
  border-color: #303030;
}
body.titan .body-values dd {
  color: #fff;
}
body.titan .notice {
  background: #0b3025;
  color: #9ae3c5;
}
body.titan .alert {
  background: #410d17;
  color: #ffb9c0;
}
body.titan .empty-symbol {
  background: #291016;
  color: #ff394d;
}
body.titan .program-week button {
  background: #171717;
  border-color: #333;
  color: #ddd;
}
body.titan .program-week button.is-today {
  border-color: #ff283e;
}
body.titan .program-week button[aria-pressed="true"],
body.titan .ready-tabs button[aria-selected="true"] {
  background: linear-gradient(#ff2535, #c60013);
  color: #fff;
  border-color: #fc283e;
}
body.titan .rest-timer {
  bottom: calc(90px + env(safe-area-inset-bottom));
  background: #111;
  border-color: #812736;
  max-height: 55dvh;
  overflow: auto;
}
body.titan .rest-timer [role="timer"] {
  color: #fff;
}
body.titan .muscle-compact {
  background: #101010;
  border-color: #333;
}
body.titan .muscle-compact h3,
body.titan .muscle-compact figcaption,
body.titan .muscle-legend {
  color: #ddd;
}
body.titan .catalog-detail {
  background: #151515;
  border-color: #333;
}
body.titan .catalog-row,
body.titan .plan-item,
body.titan .session-item {
  border-color: #333;
}
body.titan .catalog-select {
  color: #fff;
  background: none;
  box-shadow: none;
}
body.titan .catalog-list .catalog-row {
  display: block;
  padding: 17px;
}
.catalog-list .library-title {
  font: 600 20px Oswald;
}
.library-group {
  font-size: 12px;
  color: #aaa;
  margin: 6px 0 12px;
}
.library-pagination {
  display: flex;
  gap: 12px;
}
body.titan .hero-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 53px;
  text-decoration: none;
  font: 600 20px Oswald;
}
body.titan .hero h1 {
  font-family: Oswald;
  letter-spacing: 0;
}
body.titan .hero-day strong {
  max-width: 145px;
  overflow-wrap: anywhere;
}
body.titan .link-card,
body.titan .account-card {
  text-decoration: none;
}
body.titan .account-email {
  font: 600 22px Oswald;
  overflow-wrap: anywhere;
  margin-top: 15px;
}
body.titan .account-card {
  color: #eee;
}
.titan footer {
  padding-bottom: 120px;
  color: #777;
}
.titan .metric-grid strong {
  overflow-wrap: anywhere;
  font-size: 23px;
}
.titan .day {
  background: linear-gradient(#222, #111);
  border-color: #333;
}
.titan .day.selected {
  background: linear-gradient(#ff2535, #c60013);
}
.titan .day .dot.active {
  background: #35c9f6;
}
.titan .day .dot.planned {
  background: #aaa;
}
.titan .day small {
  font-size: 10px;
  display: block;
}
.titan .program-actions {
  flex-wrap: wrap;
}
.titan .calendar-key {
  font-size: 12px;
}
.titan .ready-grid article {
  position: relative;
  overflow: hidden;
}
.titan .ready-grid article:first-child {
  background:
    linear-gradient(0deg, #090909 5%, #090909de 65%, #10000090),
    url(titan/training.jpg) center 20% / cover;
}
.titan #month-title {
  font: 22px Oswald;
  margin: 0;
}
.titan .month-bar button {
  background: none;
  border: 0;
  min-width: 44px;
}
.titan .month-bar {
  margin: 20px 0;
}
.titan .calendar .weekday {
  font-size: 12px;
}
.titan .nutrition-summary dd {
  color: #fff;
}
.titan .water-total,
.titan #water-total {
  color: #3bcbf3;
}
.titan .nutrition-history-day,
.titan .water-entry {
  border-color: #333;
  background: #141414;
}
.titan .nutrition-date {
  background: #101010;
}
.titan .nutrition-summary {
  background: #151515;
}
.titan .water-entry button {
  background: #291016;
}
.titan :focus-visible {
  outline: 2px solid #56cef5;
  outline-offset: 3px;
}
.titan summary {
  cursor: pointer;
}
.titan .hero .hero-photo {
  opacity: 0.8;
}
.titan .hero:not(.rest) .hero-day strong {
  background: #0007;
}
.titan .calendar button {
  font-family: Oswald;
}
.titan .ready-meta {
  color: #aaa;
}
.titan .ready-warning {
  background: #3c1510;
  color: #ffd1af;
}
.titan .ready-check {
  background: #151515;
}
.titan .program-page label {
  color: #bbb;
}
.titan .auth {
  margin-top: 45px;
}
.titan h1 {
  font-family: Oswald;
  letter-spacing: 0;
}
.titan .bottom-nav a {
  color: #aaa;
}
.titan .bottom-nav a.active {
  color: #ff1931;
}
@media (min-width: 800px) {
  body.titan .hero-cta {
    left: 30px;
    right: 30px;
    bottom: 30px;
  }
  body.titan .home-grid {
    gap: 22px;
  }
  body.titan .hero h1 {
    font-size: 56px;
  }
  .titan .calendar .day {
    min-height: 50px;
  }
  .titan #month-calendar {
    max-width: 700px;
  }
  .titan .rest-timer {
    right: 20px;
    bottom: 125px;
    width: 350px;
  }
  .titan .app-header {
    width: min(1120px, 92%);
  }
  .titan .brand {
    margin: 0;
  }
  .titan .account-layout {
    margin-top: 24px;
  }
}
@media (max-width: 600px) {
  body.titan .hero h1 {
    font-size: 35px;
  }
  .titan .app-header {
    height: 80px;
    padding: 15px 4%;
  }
  .titan .program-page main {
    width: 92%;
  }
  .titan .bottom-nav {
    gap: 0;
  }
  .titan .bottom-nav .nav-item {
    font-size: 11px;
    min-width: 0;
    flex: 1;
  }
  .titan .program-panel {
    padding: 16px;
  }
  .titan .calendar .day {
    min-height: 38px;
    padding: 3px;
  }
  .titan .rest-timer {
    left: 4%;
    right: 4%;
    width: 92%;
  }
  .titan .tracking-tabs a {
    font-size: 13px;
  }
  .titan .home-grid .hero:before {
    inset: 0 -4vw;
  }
  .titan .hero-photo {
    right: -4vw;
  }
  .titan .ready-tabs {
    gap: 4px;
  }
  .titan .ready-tabs button {
    padding: 9px 4px;
    font-size: 13px;
  }
  .titan .hero {
    margin-top: 0;
  }
  .titan .hero h1 {
    max-width: 190px;
  }
  .titan .program-actions > button {
    max-width: 100%;
  }
}
body.titan a.brand {
  display: flex;
  font:
    600 23px Oswald,
    sans-serif;
  align-items: center;
  gap: 12px;
}
body.titan .brand > .slashes {
  display: flex;
  gap: 5px;
  align-items: center;
  line-height: 1;
  flex: none;
}
body.titan .brand > .slashes i {
  flex: none;
}
/* Legacy measurement intro is not the athlete hero. */
body.titan .tracking-hero {
  min-height: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  isolation: auto;
}
body.titan .tracking-hero:before {
  display: none;
}
body.titan .tracking-hero h1 {
  max-width: none;
  margin: 18px 0;
  font-size: clamp(30px, 4.5vw, 44px);
}
body.titan .hero-cta {
  border-radius: 10px;
}
body.titan .water-actions button {
  background: linear-gradient(#222, #111);
  border-color: #333;
}
body.titan .water-total small {
  display: inline;
}
body.titan #home-water .blue .icon {
  width: 40px;
  height: 44px;
}
body.titan .hero.rest .hero-photo {
  opacity: 0.35;
}
/* Nested editors retain readable surfaces and the approved accent palette. */
body.titan .ready-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.titan .ready-tabs button {
  font:
    600 14px Oswald,
    sans-serif;
  padding: 10px 4px;
}
body.titan .ready-choice,
body.titan .ready-day,
body.titan .ready-preview-row,
body.titan .ready-progression-card,
body.titan .ready-search-row {
  border-color: #333;
}
body.titan .ready-choice:has(input:checked) {
  border-color: #ee2438;
  background: #300b13;
}
body.titan .ready-item {
  background: #131313;
  border-color: #333;
  color: #eee;
}
body.titan .ready-choice input,
body.titan .ready-check input,
body.titan input[type="checkbox"],
body.titan input[type="radio"],
body.titan #ready-programs progress {
  accent-color: #f5112b;
}
body.titan #ready-programs progress {
  height: 10px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
}
body.titan #ready-programs progress::-webkit-progress-bar {
  background: #2b2b2b;
}
body.titan #ready-programs progress::-webkit-progress-value {
  background: linear-gradient(90deg, #d9001b, #ff293f);
}
body.titan #ready-programs progress::-moz-progress-bar {
  background: #f5112b;
}
body.titan .nutrition-summary div {
  background: #171717;
  color: #eee;
}
body.titan .nutrition-summary dt,
body.titan .nutrition-day span {
  color: #aaa;
}
body.titan .nutrition-day {
  background: #151515;
  color: #eee;
  border-color: #333;
}
body.titan .nutrition-day:hover {
  background: #222;
}
body.titan #nutrition-status:not(:empty) {
  background: #1a1a1a;
  color: #ddd;
}
body.titan #nutrition-status.error {
  background: #410d17;
  color: #ffb9c0;
}
body.titan #water-entries li {
  border-color: #333;
}
body.titan .catalog-select:hover {
  color: #ff5268;
}
body.titan button.exercise-title {
  display: inline-block;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}
body.titan button.exercise-title:hover {
  color: #ff5268;
  text-decoration: underline;
  text-underline-offset: 4px;
}
body.titan button.exercise-title:focus-visible {
  outline: 2px solid #56cef5;
  outline-offset: 3px;
}
#workout-exercise-info {
  overscroll-behavior: contain;
}
body.titan #workout-exercise-info .catalog-detail {
  padding: 0;
  border: 0;
}
body.titan #workout-exercise-info::backdrop {
  background: #000b;
}
body.titan #workout-exercise-info button:focus-visible {
  outline: 2px solid #56cef5;
  outline-offset: 3px;
}
body.titan .admin-label-form{min-width:220px}body.titan .admin-label-form label{font-size:12px}body.titan form[action="/admin/role"]{min-width:140px}
