:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f0f1e9;
  background: #10120f;
  font-synthesis: none;
  font-weight: 400;
  --muted: #a1a799;
  --lime: #d2f782;
  --line: #30352b;
  --card: #1b1e18;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  background: #252a21;
  color: inherit;
  border: 1px solid #363d2e;
  border-radius: 9px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.15s;
}
button:hover {
  background: #343c2a;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button.primary {
  background: var(--lime);
  color: #1b2510;
  border-color: var(--lime);
}
button.primary:hover {
  background: #e0ffab;
}
button.danger {
  color: #ffb6ad;
  background: #34211e;
  border-color: #654037;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}
input,
select,
textarea {
  background: #12150f;
  color: #eff2e8;
  border: 1px solid #3b4234;
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 44px;
  width: 100%;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px #d2f78218;
}
textarea {
  min-height: 78px;
  resize: vertical;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 37px;
  font-weight: 570;
  letter-spacing: -1.3px;
  margin-bottom: 10px;
  line-height: 1.15;
}
h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
  font-weight: 550;
  line-height: 1.4;
  margin-bottom: 10px;
}
p {
  font-size: 14px;
  line-height: 1.7;
}
small {
  font-size: 12px;
  font-weight: 400;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.8px;
  color: #a9b29c;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}
.shell {
  max-width: 1800px;
  margin: auto;
}
.sidebar {
  position: fixed;
  width: 230px;
  top: 0;
  bottom: 0;
  padding: 35px 20px 20px;
  border-right: 1px solid #2b3026;
  background: #151812;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  color: #f0f4e8;
  font-size: 38px;
  letter-spacing: -1.5px;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  padding-left: 17px;
  line-height: 1;
}
.brand-subtitle {
  display: block;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-top: 6px;
}
.brand-dot {
  color: var(--lime);
  letter-spacing: 0;
}
.brand-caption {
  font-size: 8px;
  letter-spacing: 2px;
  color: #8f9884;
  margin: 15px 0 43px 17px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar button {
  border: 0;
  background: none;
  justify-content: flex-start;
  color: #a4ad9a;
  padding: 13px 17px;
  gap: 15px;
  font-size: 13px;
}
.sidebar button:hover {
  background: #242a1e;
}
.sidebar button.selected {
  background: #2b3520;
  color: var(--lime);
}
.icon {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  min-width: 19px;
}
.sidebar nav small {
  margin-left: auto;
  background: #414d32;
  border-radius: 4px;
  padding: 2px 6px;
  color: #d9e6c6;
}
.sidebar-bottom {
  margin-top: auto;
}
.privacy-note {
  border: 1px solid #333b2b;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  padding: 14px 10px;
  margin-bottom: 22px;
}
.privacy-note > span {
  color: var(--lime);
}
.privacy-note strong {
  font-size: 10px;
}
.privacy-note p {
  font-size: 9px;
  color: #8f9884;
  margin: 5px 0 0;
}
.sidebar-bottom > button {
  width: 100%;
}
.avatar,
.profile-button {
  height: 34px;
  width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: #323b28;
  color: var(--lime);
  display: grid;
  place-items: center;
}
.sidebar-bottom small {
  display: block;
  text-align: left;
  color: #8f9884;
  margin-top: 4px;
  font-size: 10px;
}
.arrow {
  margin-left: auto;
}
main {
  margin-left: 230px;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid #272d22;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  font-size: 11px;
  color: #afb6a5;
}
.breadcrumb > span {
  margin: 0 12px;
  color: #555f4b;
}
.top-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}
.save-state {
  font-size: 10px;
  color: #b4c3a0;
}
.profile-button {
  padding: 0;
  font-size: 12px;
  border: 1px solid #434e35;
}
.mode-banner {
  margin: 20px 38px 0;
  border: 1px solid #465239;
  background: #20291a;
  border-radius: 8px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mode-banner strong {
  font-size: 9px;
  color: #c6e4a4;
  letter-spacing: 1px;
}
.banner-description {
  margin-left: 14px;
  font-size: 11px;
  color: #b5c0aa;
}
.mode-banner button {
  font-size: 10px;
  min-height: 30px;
  padding: 5px 10px;
  background: transparent;
  border-color: #536343;
  color: #d2eabd;
  white-space: nowrap;
}
.mode-banner.personal {
  background: #1a211c;
  border-color: #33473a;
}
.content {
  padding: 34px 38px 20px;
  max-width: 1370px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.page-heading p {
  font-size: 13px;
  margin-bottom: 0;
}
.page-heading > .primary {
  white-space: nowrap;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 24px;
}
.stat {
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat > span {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #a5ae99;
}
.stat > strong {
  display: block;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 17px 0 5px;
}
.stat strong small {
  color: #9da78f;
  font-size: 12px;
  letter-spacing: 0;
}
.stat p {
  color: #86917b;
  font-size: 10px;
  margin: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;
}
.hero-card {
  background: #28361d;
  border: 1px solid #4c6135;
  min-height: 262px;
  border-radius: 14px;
  display: flex;
  overflow: hidden;
  position: relative;
  padding: 29px;
}
.hero-card > div:first-child {
  z-index: 1;
  max-width: 65%;
}
.tag {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #cee7ae;
  border: 1px solid #5a7142;
  padding: 5px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 21px;
}
.hero-card h2 {
  font-size: 29px;
  line-height: 1.13;
  max-width: 270px;
  margin-bottom: 12px;
  white-space: pre-line;
}
.hero-card p {
  font-size: 11px;
  color: #b5c69f;
}
.hero-card button {
  font-size: 11px;
  margin-top: 5px;
}
.hero-card button span {
  margin-left: 18px;
}
.hero-art {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 45%;
  overflow: hidden;
}
.orbit {
  position: absolute;
  border: 1px solid #6a874329;
  border-radius: 50%;
  width: 240px;
  height: 240px;
  top: 30px;
  left: 8px;
}
.o2 {
  width: 185px;
  height: 185px;
  top: 56px;
  left: 36px;
}
.o3 {
  width: 130px;
  height: 130px;
  top: 84px;
  left: 63px;
}
.hero-art > span {
  position: absolute;
  bottom: 18px;
  right: 17px;
  font-size: 7px;
  letter-spacing: 2px;
  color: #8caa69;
  writing-mode: vertical-rl;
}
.weight-art {
  position: absolute;
  top: 92px;
  left: 50px;
  transform: rotate(-33deg);
  width: 155px;
  height: 65px;
  display: flex;
  align-items: center;
  filter: drop-shadow(8px 12px 8px #111b0b77);
}
.weight-art b {
  width: 85px;
  height: 17px;
  background: linear-gradient(#8ca966, #4b6435);
}
.weight-art i {
  height: 64px;
  width: 25px;
  background: linear-gradient(90deg, #b0cd82, #688748);
  border: 1px solid #a0c275;
  border-radius: 7px;
  position: relative;
}
.weight-art i:after {
  content: "";
  position: absolute;
  background: #6c8a48;
  border: 1px solid #9cbd6c;
  width: 12px;
  height: 45px;
  top: 8px;
  left: -11px;
  border-radius: 4px;
}
.weight-art i:last-child:after {
  left: auto;
  right: -11px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.dashboard-grid > .card {
  margin: 0;
}
.week-card {
  padding: 26px 22px;
}
.week-card .eyebrow {
  font-size: 8px;
}
.week-card h3 {
  font-size: 20px;
}
.week-days {
  display: flex;
  justify-content: space-between;
  margin: 23px 0 17px;
  gap: 5px;
}
.week-days > div {
  display: grid;
  text-align: center;
  gap: 11px;
}
.week-days small {
  font-size: 9px;
  color: #8e9a80;
}
.week-days span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  font-size: 10px;
  border-radius: 50%;
  background: #272f20;
  color: #a7b299;
}
.week-days .hit {
  background: var(--lime);
  color: #233212;
}
.week-days .today {
  border: 1px solid #bed591;
  color: #e0f1c8;
}
.week-card p {
  font-size: 10px;
  margin-bottom: 16px;
}
.week-footer {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 9px;
  color: #8e9a80;
}
.tiny-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 7px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 14px;
}
.section-heading h2 {
  margin: 0;
  font-size: 18px;
}
.section-heading h2 small {
  margin-left: 8px;
  font-size: 10px;
  color: #aeb9a0;
  background: #2b3224;
  padding: 3px 6px;
  border-radius: 4px;
}
.text-button {
  background: none;
  border: 0;
  padding: 8px 0;
  color: #b8c5a6;
  font-size: 10px;
  min-height: 32px;
}
.routine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.routine-card {
  margin: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.routine-mark {
  height: 36px;
  width: 36px;
  border: 1px solid #465437;
  border-radius: 9px;
  background: #2b3522;
  color: #c8ddae;
  font-size: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.routine-card > .row {
  align-items: flex-start;
}
.routine-card h3 {
  font-size: 14px;
  margin-bottom: 7px;
}
.routine-card p {
  font-size: 10px;
  margin-bottom: 16px;
}
.routine-card .full {
  margin-top: auto;
  font-size: 10px;
  justify-content: space-between;
}
.routine-card > .button-group {
  margin-top: 10px;
}
.routine-card > .button-group button {
  flex: 1;
}
.exercise-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 21px;
}
.exercise-tags span {
  font-size: 8px;
  background: #282e22;
  border: 1px solid #39432d;
  padding: 5px 7px;
  border-radius: 4px;
  color: #b4bea8;
}
.create-card {
  background: transparent;
  border: 1px dashed #404b33;
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 25px;
  text-align: center;
}
.create-card > span {
  font-size: 25px;
  border-radius: 50%;
  background: #222a1b;
  border: 1px solid #3d492f;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #b1c599;
  margin-bottom: 10px;
}
.create-card strong {
  font-size: 12px;
  font-weight: 500;
}
.create-card small {
  font-size: 10px;
  color: #929f83;
}
.history-list {
  padding: 0 20px;
}
.history-row {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #2c3325;
  background: transparent;
  gap: 16px;
  text-align: left;
  padding: 17px 0;
  font-weight: 400;
}
.history-row:last-child {
  border: 0;
}
.history-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #29351e;
  color: #b9d69a;
  display: grid;
  place-items: center;
}
.history-row strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.history-row small {
  display: block;
  color: #8f9a82;
  font-size: 10px;
  margin-top: 5px;
}
.history-row > span:nth-last-child(2) {
  font-size: 11px;
  color: #a3ae96;
  margin-left: auto;
}
.history-row > .history-volume {
  font-size: 10px;
  color: #a3ae96;
  margin-left: auto;
}
.history-row > span:last-child {
  font-size: 15px;
  color: #a0b18d;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.row small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  min-width: 0;
}
.field > span {
  color: #b1bda4;
  font-size: 12px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: end;
}
.form-grid .field {
  margin: 0;
}
.button-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.full {
  width: 100%;
}
.subtle {
  background: transparent;
  border-style: dashed;
}
.empty {
  padding: 45px 22px;
  text-align: center;
  border: 1px dashed #3d4633;
  border-radius: 12px;
  color: var(--muted);
  margin: 20px 0;
  grid-column: 1/-1;
}
.empty h3 {
  color: #e4ebda;
  margin-top: 15px;
}
.empty-icon {
  font-size: 26px;
  color: var(--lime);
}
.empty button {
  margin-top: 10px;
}
.search {
  margin-bottom: 23px;
}
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.exercise-card {
  margin: 0;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 8px;
}
.exercise-card .routine-mark {
  margin: 0 0 8px;
}
.exercise-card .muted {
  font-size: 11px;
}
.exercise-card small {
  color: #bfd89f;
  font-size: 10px;
}
.routine-set {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0;
}
.routine-set > .field {
  flex: 1;
}
.routine-set > span {
  color: #adbf98;
}
.routine-set .field > span {
  font-size: 10px;
}
.session-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.session-top h2 {
  margin-bottom: 10px;
}
.session-top .muted {
  font-size: 12px;
}
.rest-bar {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 15px;
  background: #d2f782;
  color: #202d11;
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 20px;
  font-size: 12px;
}
.rest-bar strong {
  font-size: 23px;
}
.rest-bar button {
  margin-left: auto;
  color: #e0eace;
  background: #2a3b18;
}
.exercise-title {
  display: flex;
  gap: 15px;
  align-items: center;
  min-width: 0;
}
.exercise-title .index {
  font-size: 17px;
  color: var(--lime);
  background: #2f3d21;
  padding: 12px;
  border-radius: 9px;
}
.exercise-title h3 {
  margin: 0;
}
.exercise-title p {
  font-size: 11px;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.sets-head,
.set-row {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 64px;
  align-items: center;
  gap: 14px;
}
.sets-head.simple,
.set-row.simple {
  grid-template-columns: 50px 1fr 64px;
}
.sets-head {
  color: #a3b391;
  font-size: 9px;
  letter-spacing: 1.5px;
  margin: 27px 0 12px;
  text-align: center;
}
.set-number {
  text-align: center;
  font-size: 13px;
  color: #acb99d;
}
.set-row input {
  text-align: center;
}
.set-entry {
  margin-bottom: 10px;
  border-radius: 8px;
  padding: 8px;
  background: #171b13;
}
.is-done {
  background: #26351c;
}
.check {
  font-size: 23px;
  min-height: 46px;
  padding: 0;
}
.check.checked {
  background: var(--lime);
  color: #233610;
  border-color: var(--lime);
}
details {
  margin: 15px 0 0;
}
summary {
  cursor: pointer;
  color: #a8b99a;
  font-size: 12px;
  padding: 7px 0;
  min-height: 32px;
}
.set-entry summary {
  font-size: 10px;
  padding-left: 64px;
  min-height: 24px;
}
.set-entry details {
  margin: 3px 0 0;
}
.set-options {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding-top: 13px;
}
.set-options .field {
  flex: 1;
  min-width: 100px;
}
.chart .row {
  font-size: 13px;
  margin: 25px 0 0;
}
.chart .row strong {
  font-size: 24px;
}
.chart svg {
  display: block;
  width: 100%;
  max-height: 290px;
}
.chart .data-list {
  max-height: 220px;
  overflow: auto;
}
.chart .data-list .row {
  margin: 0;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.chart .data-list strong {
  font-size: 13px;
}
.tabs {
  margin-bottom: 20px;
}
.fineprint {
  font-size: 12px;
}
.measurement-row {
  border-bottom: 1px solid #323b29;
  padding: 12px 0;
}
.measurement-row > span {
  flex: 1;
}
.privacy-card {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.privacy-card .routine-mark {
  flex-shrink: 0;
}
.privacy-card p {
  font-size: 13px;
}
.file-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid #4b593b;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 2px solid var(--lime);
}
.import-preview {
  border: 1px solid #65714f;
  background: #252e1d;
  padding: 20px;
  margin-top: 20px;
  border-radius: 9px;
}
.import-preview button {
  margin: 10px 10px 0 0;
}
.danger-zone {
  border-color: #634439;
}
.alert {
  background: #4a2621;
  border: 1px solid #926056;
  color: #ffd5cf;
  padding: 12px 16px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.alert button {
  background: none;
  border: none;
}
.notice {
  background: #2e4021;
  padding: 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #080c08bb;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal {
  width: 560px;
  max-height: 90dvh;
  overflow: auto;
  background: #1c2217;
  border: 1px solid #51613d;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 30px 100px #0008;
}
.modal > .row {
  margin-bottom: 20px;
}
.modal h2 {
  margin: 0;
}
.picker-list {
  margin-top: 15px;
}
.picker-list button {
  width: 100%;
  justify-content: space-between;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #3d4831;
  border-radius: 0;
  text-align: left;
  padding: 14px 0;
}
.picker-list strong {
  font-size: 14px;
}
.picker-list small {
  font-size: 11px;
}
.resume {
  position: fixed;
  bottom: 20px;
  left: calc(230px + 38px);
  right: 38px;
  background: #334923;
  border-color: #8cac61;
  justify-content: space-between;
  z-index: 25;
  box-shadow: 0 4px 20px #0008;
}
.resume > span {
  font-size: 11px;
}
.resume > strong {
  font-size: 13px;
}
.loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  text-align: center;
}
.loading .brand {
  margin-bottom: 30px;
}
.mobile-nav,
.mobile-settings,
.library-shortcut {
  display: none;
}
footer {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #7c8970;
  margin-top: 38px;
  padding: 22px 0 15px;
  border-top: 1px solid #293222;
  display: flex;
  justify-content: space-between;
}
body:has(.resume) footer {
  padding-bottom: 80px;
}
@media (min-width: 1600px) {
  .sidebar {
    width: 250px;
  }
  main {
    margin-left: 250px;
  }
  .content {
    padding-top: 40px;
  }
  .hero-card {
    min-height: 290px;
  }
  .hero-card h2 {
    font-size: 35px;
  }
  .routine-card {
    padding: 25px;
  }
  .hero-art {
    right: 20px;
  }
  .weight-art {
    left: 70px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding-left: 13px;
    padding-right: 13px;
  }
  main {
    margin-left: 200px;
  }
  .content {
    padding: 27px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .mode-banner {
    margin-left: 25px;
    margin-right: 25px;
  }
  .banner-description {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .hero-card {
    padding: 23px;
  }
  .hero-card h2 {
    font-size: 26px;
  }
  .week-card {
    padding: 23px 16px;
  }
  .week-days span {
    width: 25px;
    height: 25px;
  }
  .routine-grid {
    gap: 12px;
  }
  .routine-card {
    padding: 16px;
  }
  .resume {
    left: 225px;
    right: 25px;
  }
  .library-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  .sidebar {
    display: none;
  }
  main {
    margin: 0;
  }
  .topbar {
    height: 62px;
    padding: 0 20px;
  }
  .mobile-settings {
    display: inline-flex;
    min-height: 34px;
    padding: 4px 10px;
  }
  .top-actions {
    gap: 10px;
  }
  .mode-banner {
    margin: 15px 20px 0;
  }
  .content {
    padding: 27px 20px 100px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px;
  }
  .page-heading h1 {
    font-size: 32px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .page-heading > .primary {
    font-size: 12px;
  }
  .stats-grid {
    gap: 9px;
  }
  .stat {
    padding: 17px 13px;
  }
  .stat > span {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .stat > strong {
    font-size: 25px;
  }
  .stat p {
    font-size: 9px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .week-card {
    padding: 22px;
  }
  .week-days {
    max-width: 450px;
  }
  .week-days span {
    width: 33px;
    height: 33px;
  }
  .routine-grid {
    grid-template-columns: 1fr 1fr;
  }
  .create-card {
    min-height: 190px;
  }
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    z-index: 40;
    background: #181d13f5;
    border-top: 1px solid #3b482d;
    padding: 8px 5px max(10px, env(safe-area-inset-bottom));
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 10px;
    border: 0;
    background: transparent;
    color: #98a889;
    padding: 5px 15px;
  }
  .mobile-nav button.selected {
    color: var(--lime);
  }
  .resume {
    bottom: 80px;
    left: 15px;
    right: 15px;
  }
  .resume strong {
    display: none;
  }
  .library-shortcut {
    display: flex;
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 30;
    box-shadow: 0 4px 15px #0008;
  }
  .session-top {
    flex-wrap: wrap;
  }
  .form-grid {
    gap: 15px;
  }
  .routine-set {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    padding-bottom: 15px;
  }
  .routine-set > .field {
    min-width: 80px;
  }
  .history-volume {
    display: none !important;
  }
  .history-row {
    gap: 12px;
  }
  .history-row strong {
    font-size: 11px;
  }
  .history-list {
    padding: 0 13px;
  }
  .hero-card {
    min-height: 260px;
  }
  .hero-card > div:first-child {
    max-width: 70%;
  }
  .hero-art {
    right: 10px;
  }
  .privacy-card {
    padding: 19px;
  }
  .privacy-card .routine-mark {
    display: none;
  }
  .modal {
    padding: 20px;
  }
  .routine-grid > .empty {
    width: 100%;
  }
  footer {
    gap: 20px;
    font-size: 7px;
    line-height: 1.7;
  }
}
@media (max-width: 430px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid > .stat:last-child {
    grid-column: 1/-1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
  }
  .stats-grid > .stat:last-child > strong {
    margin: 0;
    font-size: 21px;
  }
  .stats-grid > .stat:last-child > p {
    display: none;
  }
  .routine-grid {
    grid-template-columns: 1fr;
  }
  .library-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    right: -28px;
    opacity: 0.8;
  }
  .hero-card h2 {
    font-size: 27px;
  }
  .hero-card > div:first-child {
    max-width: 80%;
  }
  .hero-card p {
    max-width: 190px;
  }
  .card {
    padding: 18px;
  }
  .sets-head,
  .set-row {
    gap: 8px;
    grid-template-columns: 32px 1fr 1fr 46px;
  }
  .sets-head.simple,
  .set-row.simple {
    grid-template-columns: 32px 1fr 46px;
  }
  .set-row input {
    padding: 10px 5px;
  }
  .exercise-title .index {
    display: none;
  }
  .exercise-title h3 {
    font-size: 15px;
  }
  .set-entry summary {
    padding-left: 40px;
    font-size: 9px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .save-state {
    font-size: 9px;
  }
  .mode-banner strong {
    font-size: 8px;
  }
  .mode-banner button {
    font-size: 9px;
  }
  .history-row > span:nth-last-child(2) {
    white-space: nowrap;
    font-size: 10px;
  }
  .rest-bar {
    gap: 8px;
    padding: 8px;
    font-size: 10px;
  }
  .rest-bar strong {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.journal-field textarea {
  min-height: 185px;
  line-height: 1.6;
}
.journal-field .field > span {
  color: var(--lime);
  letter-spacing: 1px;
  font-weight: 600;
}
.journal-field .row {
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.journal-date {
  max-width: 230px;
}
.journal-history {
  max-height: 320px;
  overflow: auto;
}
@media (max-width: 800px) {
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
