:root {
  --sg-bg: #edf4ff;
  --sg-surface: #ffffff;
  --sg-surface-soft: #f6faff;
  --sg-ink: #16253b;
  --sg-muted: #587190;
  --sg-ink-soft: #294462;
  --sg-primary: #1660d0;
  --sg-primary-strong: #0f47b6;
  --sg-primary-soft: #dbe9ff;
  --sg-primary-fill: #1558d6;
  --sg-primary-fill-bright: #1a63ea;
  --sg-primary-fill-strong: #0f47b6;
  --sg-on-primary: #ffffff;
  --sg-health: #66c97a;
  --sg-health-strong: #3e9d5b;
  --sg-health-soft: #e9f8ee;
  --sg-health-wash: rgb(102 201 122 / 12%);
  --sg-health-line: rgb(102 201 122 / 24%);
  --sg-border: #d8e6f7;
  --sg-border-strong: #aec8ea;
  --sg-app-bg:
    radial-gradient(circle at top left, rgb(114 170 255 / 35%), transparent 28%),
    radial-gradient(circle at top right, rgb(199 228 255 / 78%), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, var(--sg-bg) 42%, #eff5ff 100%);
  --sg-shell-bg: transparent;
  --sg-panel-bg:
    radial-gradient(circle at top left, rgb(76 132 239 / 10%), transparent 26%),
    linear-gradient(180deg, #fdfefe 0%, #f4f8ff 48%, #edf4ff 100%);
  --sg-panel-border: #d8e4f3;
  --sg-card-bg:
    linear-gradient(180deg, rgb(255 255 255 / 98%) 0%, rgb(248 251 255 / 96%) 100%);
  --sg-card-inset: rgb(255 255 255 / 78%);
  --sg-muted-2: #607489;
  --sg-soft-block-bg: #f8fbff;
  --sg-soft-block-border: #dde7f0;
  --sg-kpi-bg: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  --sg-kpi-border: #d4e4f8;
  --sg-quick-actions-bg:
    radial-gradient(circle at top left, rgb(95 170 255 / 10%), transparent 28%),
    linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(242 247 255 / 98%) 100%);
  --sg-quick-actions-border: #d4e3f6;
  --sg-menu-bg:
    linear-gradient(180deg, rgb(255 255 255 / 98%) 0%, rgb(244 248 255 / 98%) 100%);
  --sg-menu-link-hover-color: #0b6fe8;
  --sg-nav-hover-bg: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  --sg-nav-active-bg: linear-gradient(90deg, #dceaff 0%, #f4f8ff 100%);
  --sg-progress-track: #e8edf3;
  --sg-topbar-bg:
    radial-gradient(circle at top left, rgb(95 170 255 / 12%), transparent 24%),
    linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(244 248 255 / 98%) 100%);
  --sg-topbar-border: #d7e5f6;
  --sg-danger: #b42318;
  --sg-glow: rgb(47 126 247 / 20%);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;
  --shadow-1: 0 12px 30px rgb(23 62 126 / 10%);
  --shadow-2: 0 20px 46px rgb(23 62 126 / 14%);
  --shadow-focus: 0 0 0 0.2rem rgb(47 126 247 / 18%);
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-md: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.375rem;
  --font-2xl: clamp(1.75rem, 3vw, 2.35rem);
  --lh-tight: 1.2;
  --lh-normal: 1.45;
  --topbar-h: 64px;
  --mobile-tabbar-h: 84px;
  --content-max: 1140px;
}

html,
body {
  margin: 0;
  background: var(--sg-app-bg);
  color: var(--sg-ink);
  font-family: "Manrope", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  line-height: var(--lh-normal);
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: var(--sg-primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--sg-primary-strong);
}

h1,
h2,
h3,
h4 {
  color: var(--sg-ink);
  line-height: var(--lh-tight);
  letter-spacing: 0.01em;
  margin-top: 0;
}

h1 { font-size: var(--font-2xl); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h4 { font-size: var(--font-lg); }

p {
  color: var(--sg-ink-soft);
  margin-top: 0;
  margin-bottom: var(--space-3);
}

/* Bootstrap fallback primitives for environments where bootstrap css is unavailable. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--sg-border-strong);
  border-radius: 0.9rem;
  background: #fff;
  color: var(--sg-ink);
  cursor: pointer;
  text-decoration: none;
  line-height: var(--lh-tight);
  font-size: var(--font-md);
  font-weight: 700;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.btn:hover {
  border-color: #8eb0da;
  background: #fbfdff;
  box-shadow: 0 10px 24px rgb(23 62 126 / 10%);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.46rem 0.76rem;
  font-size: var(--font-sm);
}

.btn-primary {
  background:
    linear-gradient(135deg, var(--sg-primary-fill) 0%, var(--sg-primary-fill-bright) 48%, var(--sg-primary-fill) 100%);
  border-color: var(--sg-primary-fill);
  color: var(--sg-on-primary);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 22%) inset,
    0 16px 34px rgb(21 88 214 / 28%);
}

.btn-primary:hover {
  background:
    linear-gradient(135deg, var(--sg-primary-fill-strong) 0%, var(--sg-primary-fill) 55%, var(--sg-primary-fill-bright) 100%);
  border-color: var(--sg-primary-fill-strong);
  color: var(--sg-on-primary);
}

.btn-danger {
  border-color: #b42318;
  color: #fff4f4;
  background: linear-gradient(135deg, #c93a2e 0%, #b42318 55%, #8f1b14 100%);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 14%) inset,
    0 14px 30px rgb(180 35 24 / 24%);
}

.btn-danger:hover {
  border-color: #8f1b14;
  color: #ffffff;
  background: linear-gradient(135deg, #d24639 0%, #ba271b 55%, #991e17 100%);
}

.btn-outline-primary {
  border-color: #8cb6ef;
  color: var(--sg-primary);
  background: linear-gradient(180deg, rgb(255 255 255 / 92%) 0%, #edf5ff 100%);
}

.btn-outline-primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e2efff 100%);
  border-color: var(--sg-primary-strong);
  color: var(--sg-primary-strong);
}

.btn-outline-secondary {
  border-color: #b5cceb;
  color: #24486f;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.btn-outline-secondary:hover {
  border-color: #8dafd8;
  background: linear-gradient(180deg, #ffffff 0%, #edf4ff 100%);
}

.btn-outline-warning {
  border-color: #e0b678;
  color: #9a5a09;
  background: linear-gradient(180deg, #fffaf0 0%, #fff2dc 100%);
}

.btn-outline-warning:hover {
  border-color: #d19441;
  color: #7f4805;
  background: linear-gradient(180deg, #fff8ea 0%, #ffe8c2 100%);
}

.btn-outline-success {
  border-color: #93cfaf;
  color: #16643a;
  background: linear-gradient(180deg, #f8fdf9 0%, #e9f8ee 100%);
}

.btn-outline-success:hover {
  border-color: #5fa77b;
  color: #11512d;
  background: linear-gradient(180deg, #f3fbf5 0%, #daf1e2 100%);
}

.btn-light {
  border-color: var(--sg-border);
  color: #0f172a;
  background: #fbfdff;
}

.btn-light:hover {
  border-color: #bdcbda;
  background: #f3f8fe;
}

.d-flex { display: flex; }
.d-grid { display: grid; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.list-unstyled { list-style: none; padding-left: 0; }
.border-bottom { border-bottom: 1px solid var(--sg-border); }
.h6 { font-size: 1.05rem; font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.gap-2 { gap: 0.5rem; }

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.app-shell {
  min-height: 100vh;
  background: var(--sg-shell-bg);
}

.app-shell[data-theme="dark"] {
  --sg-bg: #09111c;
  --sg-surface: #111a26;
  --sg-surface-soft: #162131;
  --sg-ink: #edf3ff;
  --sg-muted: #8ea5c2;
  --sg-ink-soft: #bfd0e7;
  --sg-primary: #6fa8ff;
  --sg-primary-strong: #8bb8ff;
  --sg-primary-soft: rgb(111 168 255 / 16%);
  --sg-health: #7dd995;
  --sg-health-strong: #4caf6c;
  --sg-health-soft: rgb(102 201 122 / 16%);
  --sg-health-wash: rgb(102 201 122 / 12%);
  --sg-health-line: rgb(102 201 122 / 24%);
  --sg-border: #27384d;
  --sg-border-strong: #3a5373;
  --sg-app-bg:
    linear-gradient(180deg, #f7fbff 0, #f7fbff var(--topbar-h), #0a121d var(--topbar-h), #0d1725 100%);
  --sg-shell-bg:
    radial-gradient(circle at top left, rgb(49 100 176 / 20%), transparent 24%),
    radial-gradient(circle at top right, rgb(20 44 83 / 32%), transparent 28%),
    linear-gradient(180deg, #0a121d 0%, #0d1725 48%, #101b2a 100%);
  --sg-panel-bg:
    radial-gradient(circle at top left, rgb(84 151 255 / 10%), transparent 22%),
    linear-gradient(180deg, #0f1724 0%, #111d2c 52%, #132131 100%);
  --sg-panel-border: #23364b;
  --sg-card-bg:
    linear-gradient(180deg, rgb(18 27 39 / 98%) 0%, rgb(15 24 36 / 98%) 100%);
  --sg-card-inset: rgb(255 255 255 / 2%);
  --sg-muted-2: #8ca2be;
  --sg-soft-block-bg: #131f2d;
  --sg-soft-block-border: #223447;
  --sg-kpi-bg: linear-gradient(180deg, #152131 0%, #101a28 100%);
  --sg-kpi-border: #29415d;
  --sg-quick-actions-bg:
    radial-gradient(circle at top left, rgb(66 132 234 / 14%), transparent 28%),
    linear-gradient(180deg, rgb(18 28 41 / 96%) 0%, rgb(15 24 36 / 98%) 100%);
  --sg-quick-actions-border: #24384d;
  --sg-menu-bg:
    linear-gradient(180deg, rgb(18 28 41 / 98%) 0%, rgb(15 24 36 / 98%) 100%);
  --sg-menu-link-hover-color: #8bb8ff;
  --sg-nav-hover-bg: linear-gradient(180deg, #152131 0%, #13202f 100%);
  --sg-nav-active-bg: linear-gradient(90deg, rgb(39 72 117 / 88%) 0%, rgb(18 28 41 / 94%) 100%);
  --sg-progress-track: #1f3042;
  --sg-topbar-bg:
    radial-gradient(circle at top left, rgb(73 137 238 / 14%), transparent 24%),
    linear-gradient(180deg, rgb(14 24 38 / 96%) 0%, rgb(10 18 29 / 98%) 100%);
  --sg-topbar-border: #24384d;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--sg-topbar-bg);
  color: var(--sg-ink);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--sg-topbar-border);
  min-height: var(--topbar-h);
  box-shadow: 0 14px 30px rgb(23 62 126 / 10%);
  backdrop-filter: blur(14px);
}

.top-left {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgb(210 227 247 / 88%);
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 98%);
  box-shadow:
    0 16px 30px rgb(2 8 23 / 22%),
    0 1px 0 rgb(255 255 255 / 80%) inset;
}

.brand-logo-wide {
  display: block;
  width: clamp(10.75rem, 21vw, 14rem);
  height: auto;
}

.brand-logo-mark {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
}

.btn-icon {
  color: #496584;
  border: 1px solid #c7daf1;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(241 247 255 / 98%) 100%);
  min-width: 2.5rem;
  min-height: 2.5rem;
  box-shadow: 0 10px 24px rgb(23 62 126 / 10%);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  padding: 0;
}

.top-meta {
  color: #6780a0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}

.start-cta {
  min-height: 2.7rem;
  padding-inline: 1.1rem;
  border-radius: 1rem;
  font-weight: 800;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  color: var(--sg-ink);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #c7daf1;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(241 247 255 / 98%) 100%);
  box-shadow: 0 12px 24px rgb(23 62 126 / 10%);
}

.user-chip:hover {
  border-color: #95b7df;
  background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
}

.avatar,
.avatar-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f2ff 0%, #d7e8ff 100%);
  color: #2456b0;
  font-weight: 700;
}

.avatar {
  width: 1.8rem;
  height: 1.8rem;
}

.avatar-lg {
  width: 4rem;
  height: 4rem;
}

.user-menu {
  position: absolute;
  right: 0;
  top: 2.85rem;
  min-width: 12rem;
  max-width: min(20rem, calc(100vw - 1rem));
  z-index: 10;
  padding: var(--space-2) var(--space-3);
  background: var(--sg-menu-bg);
}

.user-menu a {
  display: block;
  padding: 0.45rem 0.1rem;
  color: var(--sg-ink);
  text-decoration: none;
}

.user-menu a:hover {
  color: var(--sg-menu-link-hover-color);
}

.shell-body {
  display: grid;
  grid-template-columns: 16rem 1fr;
  min-height: calc(100vh - var(--topbar-h));
}

.side-nav {
  background: var(--sg-panel-bg);
  border-right: 0;
  padding: var(--space-4);
  box-shadow: 18px 0 32px rgb(31 75 143 / 5%);
}

.side-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--sg-panel-border);
}

.side-nav-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-muted);
}

.side-nav nav {
  display: grid;
  gap: 0.35rem;
}

.nav-group-label {
  margin-top: var(--space-3);
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sg-muted);
}

.side-nav .nav-item {
  display: grid;
  gap: 0.1rem;
  color: #334a63;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}

.side-nav .nav-item:hover {
  background: var(--sg-nav-hover-bg);
  border-color: var(--sg-border-strong);
  color: var(--sg-ink);
}

.side-nav .nav-item.active {
  background: var(--sg-nav-active-bg);
  border-color: var(--sg-border-strong);
  color: var(--sg-primary);
  box-shadow:
    inset 3px 0 0 #2f7ef7,
    0 12px 28px rgb(47 126 247 / 12%);
}

.nav-item-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-item-meta {
  font-size: 0.74rem;
  color: var(--sg-muted);
}

.side-nav .nav-item.active .nav-item-meta {
  color: #1d62bb;
}

.main-content {
  padding: var(--space-5);
  min-width: 0;
  overflow-x: clip;
}

.main-content > * {
  width: min(100%, var(--content-max));
  margin-inline: auto;
}

.overlay {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgb(10 20 30 / 45%);
  z-index: 10;
}

.mobile-tabbar {
  display: none;
}

.page-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  justify-content: space-between;
}

.header-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-left: auto;
  justify-content: flex-end;
}

.page-header > div:first-child {
  position: relative;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  letter-spacing: -0.03em;
}

.page-focus-target {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page-header h1:focus,
.page-header h1:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.subtle {
  color: var(--sg-muted);
  margin-bottom: 0;
  margin-top: 0.25rem;
  max-width: 70ch;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.session-draft-card__title {
  color: var(--sg-ink);
}

.session-draft-card__kicker {
  color: var(--sg-muted);
}

.session-draft-card__body {
  color: var(--sg-ink-soft);
}

.session-draft-card__tag {
  color: #1b3558;
}

.session-quick-start {
  gap: 0.9rem;
  padding: 1rem;
  border-color: #bcd4f2;
  background:
    radial-gradient(circle at top left, rgb(89 148 255 / 12%), transparent 28%),
    linear-gradient(180deg, rgb(255 255 255 / 98%) 0%, rgb(242 248 255 / 98%) 100%);
}

.session-quick-start__actions {
  align-items: end;
}

.session-quick-start__cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.session-quick-start__cta {
  min-width: 0;
  min-height: 3.15rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 800;
}

.session-quick-start__button {
  min-width: 0;
}

.session-quick-start__generator-link {
  min-width: 0;
}

@media (max-width: 640px) {
  .session-quick-start__cta-grid {
    grid-template-columns: 1fr;
  }
}

.card-sg,
.state-card {
  background: var(--sg-card-bg);
  border: 1px solid var(--sg-border);
  border-radius: 1.3rem;
  padding: var(--space-4);
  box-shadow:
    var(--shadow-1),
    0 1px 0 var(--sg-card-inset) inset;
}

.card-sg > :first-child {
  margin-top: 0;
}

.card-sg > :last-child {
  margin-bottom: 0;
}

.state-card {
  display: grid;
  place-items: center;
  gap: var(--space-2);
  min-height: 9rem;
  text-align: center;
}

.state-card.error {
  border-color: #efb8b8;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.grid-2 > *,
.grid-3 > *,
.grid-session > * {
  min-width: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  align-items: start;
}

.grid-3 > * {
  min-width: 0;
}

.grid-session {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4);
}

.session-flow-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  background:
    radial-gradient(circle at top left, rgb(79 164 255 / 11%), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.session-flow-bar__copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.session-flow-bar__kicker {
  color: var(--sg-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-flow-bar__title {
  color: var(--sg-ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.session-flow-bar__hint {
  color: var(--sg-ink-soft);
  font-size: 0.92rem;
}

.session-flow-bar__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.session-flow-bar__actions .btn {
  min-height: 2.85rem;
  min-width: 7rem;
  border-radius: 999px;
  font-weight: 800;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: var(--space-5);
}

.dashboard-kpis > * {
  min-width: 0;
}

.kpi-chip {
  position: relative;
  overflow: hidden;
  background: var(--sg-kpi-bg);
  border: 1px solid var(--sg-kpi-border);
  border-radius: 1.2rem;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.2rem;
  box-shadow: 0 18px 34px rgb(29 78 149 / 8%);
}

.kpi-chip::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.28rem;
  background: linear-gradient(90deg, #4fa4ff 0%, #2f7ef7 50%, #8bd0ff 100%);
}

.dashboard-kpis .kpi-chip:nth-child(1) {
  background:
    radial-gradient(circle at top right, rgb(80 159 255 / 15%), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}

.dashboard-kpis .kpi-chip:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgb(138 196 255 / 16%), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.dashboard-kpis .kpi-chip:nth-child(3) {
  background:
    radial-gradient(circle at top right, rgb(55 132 247 / 13%), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
}

.dashboard-kpis .kpi-chip:nth-child(4) {
  background:
    radial-gradient(circle at top right, rgb(111 184 255 / 13%), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
}

.kpi-label {
  font-size: var(--font-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-muted);
  font-weight: 800;
}

.kpi-value {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  line-height: 1.05;
  color: var(--sg-ink);
}

.in-progress-card {
  border-color: #aecdff;
  background:
    radial-gradient(circle at top right, rgb(47 126 247 / 14%), transparent 28%),
    linear-gradient(95deg, #ffffff 0%, #eef5ff 100%);
}

.in-progress-copy {
  display: grid;
  gap: 0.12rem;
}

.in-progress-kicker {
  color: #1d62bb;
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.in-progress-title {
  font-size: var(--font-lg);
}

.quick-actions {
  display: grid;
  gap: 1rem;
  margin-bottom: var(--space-5);
  padding: 1.1rem;
  border-radius: 1.6rem;
  background: var(--sg-quick-actions-bg);
  border: 1px solid var(--sg-quick-actions-border);
  box-shadow: 0 18px 40px rgb(31 75 143 / 8%);
}

.quick-actions__intro {
  display: grid;
  gap: 0.15rem;
}

.quick-actions__eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5575a7;
}

.quick-actions__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sg-ink);
}

.quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.quick-action {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  position: relative;
  overflow: hidden;
  min-height: 6.3rem;
  padding: 0.95rem 1rem;
  border-radius: 1.25rem;
  text-decoration: none;
  color: var(--sg-ink);
  border: 1px solid #bfd3ec;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 92%) 0%, rgb(241 247 255 / 98%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 75%),
    0 10px 24px rgb(47 126 247 / 6%);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.quick-action::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.quick-action:hover {
  border-color: #9fbeea;
  transform: translateY(-1px);
}

.quick-action__kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5f7daa;
}

.quick-action__title {
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.quick-action__meta {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--sg-muted);
}

.quick-action-primary {
  min-height: 0;
  padding: 1.05rem 1.1rem;
  border-color: #5c8dff;
  background:
    radial-gradient(circle at top right, rgb(168 204 255 / 30%), transparent 34%),
    linear-gradient(135deg, #356ce9 0%, #5e90ff 55%, #7fb6ff 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 22%),
    0 18px 30px rgb(53 108 233 / 22%);
  color: #fff;
}

.quick-action-primary .quick-action__kicker,
.quick-action-primary .quick-action__meta {
  color: rgb(236 243 255 / 88%);
}

.quick-action-primary .quick-action__title {
  color: #fff;
}

.app-shell[data-theme="dark"] .quick-action {
  border-color: rgb(88 122 167 / 44%);
  background:
    linear-gradient(180deg, rgb(11 19 31 / 92%) 0%, rgb(6 12 22 / 98%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 3%),
    0 8px 18px rgb(0 0 0 / 18%);
  color: #dfe9f8;
}

.app-shell[data-theme="dark"] .quick-action::before {
  border: 1px solid rgb(153 190 245 / 6%);
}

.app-shell[data-theme="dark"] .quick-action:hover {
  border-color: rgb(110 150 203 / 58%);
  background:
    linear-gradient(180deg, rgb(16 27 44 / 94%) 0%, rgb(8 16 29 / 99%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 4%),
    0 12px 22px rgb(0 0 0 / 22%);
  transform: translateY(-1px);
}

.app-shell[data-theme="dark"] .quick-action:active {
  transform: translateY(0);
}

.app-shell[data-theme="dark"] .quick-action__kicker {
  color: #7392ba;
}

.app-shell[data-theme="dark"] .quick-action__title {
  color: #f1f6ff;
}

.app-shell[data-theme="dark"] .quick-action__meta {
  color: #8ea4c1;
}

.app-shell[data-theme="dark"] .quick-action-primary {
  border-color: #94bbff;
  background:
    radial-gradient(circle at 85% 20%, rgb(230 240 255 / 42%), transparent 30%),
    linear-gradient(135deg, #4471f0 0%, #5d89ff 48%, #88b3ff 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 30%),
    inset 0 -1px 0 rgb(55 95 182 / 22%),
    0 22px 44px rgb(35 76 171 / 40%);
  color: #fff;
  transform: translateY(-2px) scale(1.01);
}

.app-shell[data-theme="dark"] .quick-action-primary:hover {
  border-color: #bfd6ff;
  background:
    radial-gradient(circle at 85% 20%, rgb(240 246 255 / 52%), transparent 32%),
    linear-gradient(135deg, #4d7af7 0%, #6794ff 48%, #97beff 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 34%),
    inset 0 -1px 0 rgb(55 95 182 / 24%),
    0 28px 48px rgb(35 76 171 / 46%);
  transform: translateY(-3px) scale(1.015);
}

.app-shell[data-theme="dark"] .quick-action-primary .quick-action__kicker,
.app-shell[data-theme="dark"] .quick-action-primary .quick-action__meta {
  color: rgb(238 244 255 / 92%);
}

.app-shell[data-theme="dark"] .quick-action-primary .quick-action__title {
  color: #ffffff;
}

.app-shell[data-theme="dark"] .kpi-chip {
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 16%), transparent 36%),
    linear-gradient(180deg, rgb(18 29 44 / 96%) 0%, rgb(12 22 35 / 98%) 100%);
  border-color: #29415d;
  box-shadow:
    0 18px 34px rgb(0 0 0 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 4%);
}

.app-shell[data-theme="dark"] .dashboard-kpis .kpi-chip:nth-child(1),
.app-shell[data-theme="dark"] .dashboard-kpis .kpi-chip:nth-child(2),
.app-shell[data-theme="dark"] .dashboard-kpis .kpi-chip:nth-child(3),
.app-shell[data-theme="dark"] .dashboard-kpis .kpi-chip:nth-child(4) {
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 16%), transparent 36%),
    linear-gradient(180deg, rgb(18 29 44 / 96%) 0%, rgb(12 22 35 / 98%) 100%);
}

.app-shell[data-theme="dark"] .kpi-chip::before {
  background: linear-gradient(90deg, #7ab6ff 0%, #4d8fff 48%, #8fe0ff 100%);
}

.app-shell[data-theme="dark"] .kpi-label {
  color: #9fb8d6;
}

.app-shell[data-theme="dark"] .kpi-value {
  color: #edf3ff;
  text-shadow: 0 1px 0 rgb(0 0 0 / 20%);
}

.app-shell[data-theme="dark"] .in-progress-card {
  border-color: #335070;
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 15%), transparent 30%),
    linear-gradient(95deg, rgb(18 29 44 / 96%) 0%, rgb(12 22 35 / 98%) 100%);
}

.app-shell[data-theme="dark"] .in-progress-kicker {
  color: #8bb8ff;
}

.app-shell[data-theme="dark"] .in-progress-title {
  color: #eef4ff;
}

.app-shell[data-theme="dark"] .in-progress-card .subtle {
  color: #b6cae4;
}

.app-shell[data-theme="dark"] .dashboard-card .card-title-row h3,
.app-shell[data-theme="dark"] .dashboard-card .card-title-row .h6 {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .workouts-index-card .workouts-index-header h2,
.app-shell[data-theme="dark"] .workouts-index-card .workout-list-item__title {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .workouts-index-card .workout-list-item {
  border-color: #29415d !important;
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 10%), transparent 30%),
    linear-gradient(180deg, rgb(18 29 44 / 82%) 0%, rgb(12 22 35 / 92%) 100%);
}

.app-shell[data-theme="dark"] .workouts-index-card .workout-list-item__count {
  color: #132742;
  background: #eef4ff !important;
  border-color: #d7e3f7 !important;
}

.app-shell[data-theme="dark"] .edit-workout-card__header h2,
.app-shell[data-theme="dark"] .edit-workout-card__exercise-title,
.app-shell[data-theme="dark"] .edit-workout-library-card__header h2 {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .edit-workout-card__exercise {
  border-bottom-color: #29415d !important;
}

.app-shell[data-theme="dark"] .edit-workout-card__count {
  color: #eef4ff;
}

.app-shell[data-theme="dark"] .exercise-item {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 10%), transparent 30%),
    linear-gradient(180deg, rgb(18 29 44 / 82%) 0%, rgb(12 22 35 / 92%) 100%);
}

.app-shell[data-theme="dark"] .exercise-item strong {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .exercise-library-shell,
.app-shell[data-theme="dark"] .exercise-library-create,
.app-shell[data-theme="dark"] .exercise-library-card {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 10%), transparent 30%),
    linear-gradient(180deg, rgb(18 29 44 / 82%) 0%, rgb(12 22 35 / 92%) 100%);
}

.app-shell[data-theme="dark"] .exercise-library-shell__title,
.app-shell[data-theme="dark"] .exercise-library-create h2,
.app-shell[data-theme="dark"] .exercise-library-card__title,
.app-shell[data-theme="dark"] .exercise-library-stat strong {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .exercise-library-stat,
.app-shell[data-theme="dark"] .exercise-library-card__chip,
.app-shell[data-theme="dark"] .exercise-library-card__origin {
  border-color: #3a5373;
  background: rgb(19 33 50 / 78%);
  color: #d8e6ff;
}

.app-shell[data-theme="dark"] .exercise-library-pill {
  border-color: #355277;
  background: rgb(18 32 50 / 68%);
  color: #d6e4fb;
}

.app-shell[data-theme="dark"] .exercise-library-pill.is-active {
  border-color: #6fa8ff;
  background: linear-gradient(135deg, rgb(62 118 209 / 92%) 0%, rgb(83 143 245 / 96%) 100%);
  color: #ffffff;
  box-shadow: 0 16px 30px rgb(47 126 247 / 22%);
}

.app-shell[data-theme="dark"] .exercise-library-card__meta,
.app-shell[data-theme="dark"] .exercise-library-shell__eyebrow,
.app-shell[data-theme="dark"] .exercise-library-filter-group__label {
  color: #9cb6d6;
}

.app-shell[data-theme="dark"] .exercise-library-create--inline {
  border-color: #355277;
  background:
    radial-gradient(circle at top right, rgb(84 136 223 / 12%), transparent 36%),
    linear-gradient(180deg, rgb(16 29 45 / 86%) 0%, rgb(12 22 35 / 94%) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
}

.app-shell[data-theme="dark"] .exercise-library-filter-chip {
  border-color: #355277;
  background: rgb(18 32 50 / 68%);
  color: #d6e4fb;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 4%),
    0 12px 24px rgb(0 0 0 / 14%);
}

.app-shell[data-theme="dark"] .exercise-library-filter-chip:hover {
  border-color: #577ba8;
  background: rgb(24 39 60 / 84%);
}

.app-shell[data-theme="dark"] .exercise-library-filter-chip.is-active {
  border-color: #6fa8ff;
  background:
    radial-gradient(circle at top left, rgb(255 255 255 / 12%), transparent 34%),
    linear-gradient(135deg, rgb(58 116 212 / 92%) 0%, rgb(89 148 245 / 96%) 100%);
  color: #ffffff;
  box-shadow: 0 16px 30px rgb(47 126 247 / 22%);
}

.app-shell[data-theme="dark"] .exercise-library-list__title {
  color: #eef4ff;
}

.app-shell[data-theme="dark"] .exercise-library-card {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 12%), transparent 30%),
    linear-gradient(180deg, rgb(18 29 44 / 88%) 0%, rgb(12 22 35 / 96%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 3%),
    0 16px 30px rgb(0 0 0 / 20%);
}

.app-shell[data-theme="dark"] .exercise-library-card__action-main {
  border-color: #47648b;
  background: rgb(18 32 50 / 78%);
  color: #eef4ff;
}

.app-shell[data-theme="dark"] .exercise-library-card__action-main:hover,
.app-shell[data-theme="dark"] .exercise-library-card__action-main:focus-visible {
  border-color: #6fa8ff;
  background: rgb(27 45 69 / 92%);
  color: #ffffff;
}

.app-shell[data-theme="dark"] .streak-calendar-card h3,
.app-shell[data-theme="dark"] .streak-calendar-card .h6 {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .dashboard-card .card-meta {
  color: #a9bdd8;
}

.app-shell[data-theme="dark"] .profile-preferences__eyebrow {
  color: #8ab8ff;
}

.app-shell[data-theme="dark"] .profile-preferences__title,
.app-shell[data-theme="dark"] .profile-preferences__section-head h3,
.app-shell[data-theme="dark"] .profile-section-card h1,
.app-shell[data-theme="dark"] .profile-section-card h2,
.app-shell[data-theme="dark"] .profile-identity-card h1,
.app-shell[data-theme="dark"] .profile-account-links h2,
.app-shell[data-theme="dark"] .profile-toggle strong,
.app-shell[data-theme="dark"] .profile-install-card strong {
  color: #f4f8ff;
}

.app-shell[data-theme="dark"] .profile-preferences__status {
  border-color: #29415d;
  background: rgb(19 31 47 / 72%);
  color: #9fb7d8;
}

.app-shell[data-theme="dark"] .profile-preferences__section + .profile-preferences__section {
  border-top-color: #29415d;
}

.app-shell[data-theme="dark"] .profile-preferences__section-head span,
.app-shell[data-theme="dark"] .profile-field__hint,
.app-shell[data-theme="dark"] .profile-toggle span,
.app-shell[data-theme="dark"] .profile-install-card span,
.app-shell[data-theme="dark"] .profile-section-card__eyebrow {
  color: #9eb3d1;
}

.app-shell[data-theme="dark"] .profile-toggle,
.app-shell[data-theme="dark"] .profile-install-card,
.app-shell[data-theme="dark"] .profile-section-card {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 10%), transparent 32%),
    linear-gradient(180deg, rgb(18 29 44 / 82%) 0%, rgb(12 22 35 / 92%) 100%);
}

.app-shell[data-theme="dark"] .muscle-volume-top span,
.app-shell[data-theme="dark"] .muscle-volume-top strong {
  color: var(--sg-ink-soft);
}

.app-shell[data-theme="dark"] .muscle-volume-bar {
  background: #1d3043;
}

.app-shell[data-theme="dark"] .streak-calendar-summary strong,
.app-shell[data-theme="dark"] .heat-cell-day {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .streak-calendar-summary span,
.app-shell[data-theme="dark"] .heatmap-weekdays,
.app-shell[data-theme="dark"] .heat-cell-meta,
.app-shell[data-theme="dark"] .heatmap-legend {
  color: #a9bdd8;
}

.app-shell[data-theme="dark"] .heat-cell {
  border-color: #29415d;
  background: #142233;
}

.app-shell[data-theme="dark"] .heat-cell.lvl-1 {
  background: #24476f;
}

.app-shell[data-theme="dark"] .heat-cell.lvl-2 {
  background: #3d73ba;
}

.app-shell[data-theme="dark"] .heat-cell.lvl-3 {
  background: #5b95f2;
}

.app-shell[data-theme="dark"] .heat-cell:not(.heat-cell-empty):hover {
  border-color: #3d6288;
  box-shadow: 0 10px 24px rgb(0 0 0 / 28%);
}

.app-shell[data-theme="dark"] .heat-cell-empty {
  border-color: rgb(63 91 123 / 55%);
}

.app-shell[data-theme="dark"] .heat-cell-today::after {
  background: rgb(255 244 199 / 95%);
  color: #7a5200;
}

.app-shell[data-theme="dark"] .form-label {
  color: var(--sg-ink-soft);
}

.app-shell[data-theme="dark"] .form-control,
.app-shell[data-theme="dark"] .form-select {
  border-color: #3a5373;
  background: #111c2a;
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .form-control::placeholder {
  color: #7f97b4;
}

.app-shell[data-theme="dark"] .form-select option {
  background: #111c2a;
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .btn-outline-primary {
  border-color: #4d77a8;
  color: #cfe0ff;
  background: linear-gradient(180deg, #18273a 0%, #132031 100%);
}

.app-shell[data-theme="dark"] .btn-outline-primary:hover {
  background: linear-gradient(180deg, #1d2f45 0%, #16263a 100%);
  border-color: #6d9ce0;
  color: #edf3ff;
}

.app-shell[data-theme="dark"] .btn-outline-secondary {
  border-color: #415d80;
  color: #d7e6ff;
  background: linear-gradient(180deg, #18273a 0%, #132031 100%);
}

.app-shell[data-theme="dark"] .btn-outline-secondary:hover {
  border-color: #6d8fb9;
  background: linear-gradient(180deg, #1d2f45 0%, #16263a 100%);
  color: #edf3ff;
}

.app-shell[data-theme="dark"] .btn-outline-danger {
  border-color: #7e4a56;
  color: #ffd4db;
  background: linear-gradient(180deg, #2a1820 0%, #24131a 100%);
}

.app-shell[data-theme="dark"] .btn-outline-danger:hover {
  border-color: #b66b7c;
  color: #fff1f4;
  background: linear-gradient(180deg, #37202a 0%, #2c161f 100%);
}

.app-shell[data-theme="dark"] .btn-danger {
  border-color: #a93831;
  color: #fff4f3;
  background: linear-gradient(135deg, #8f2b25 0%, #74201b 58%, #5f1815 100%);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 8%) inset,
    0 14px 28px rgb(82 18 16 / 32%);
}

.app-shell[data-theme="dark"] .btn-danger:hover {
  border-color: #d56d61;
  color: #fffafa;
  background: linear-gradient(135deg, #a5352e 0%, #84251f 58%, #6c1b17 100%);
}

.app-shell[data-theme="dark"] .btn-outline-warning {
  border-color: #866335;
  color: #ffd79f;
  background: linear-gradient(180deg, #2a2114 0%, #241b11 100%);
}

.app-shell[data-theme="dark"] .btn-outline-warning:hover {
  border-color: #bd8b46;
  color: #ffebc8;
  background: linear-gradient(180deg, #362917 0%, #2d2113 100%);
}

.app-shell[data-theme="dark"] .btn-outline-success {
  border-color: #3a7a58;
  color: #c7f0d4;
  background: linear-gradient(180deg, #16271d 0%, #132118 100%);
}

.app-shell[data-theme="dark"] .btn-outline-success:hover {
  border-color: #59a37a;
  color: #e5fff0;
  background: linear-gradient(180deg, #1b3124 0%, #15261c 100%);
}

.app-shell[data-theme="dark"] .btn:disabled,
.app-shell[data-theme="dark"] .btn.disabled {
  opacity: 0.55;
}

.session-exercise-nav__list {
  display: grid;
  gap: 0.65rem;
}

.session-exercise-nav__row {
  display: grid;
  gap: 0.5rem;
  padding: 0.2rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 44%);
}

.session-exercise-nav__row.is-current {
  padding: 0.35rem;
  border: 1px solid rgb(145 182 239 / 45%);
  background:
    radial-gradient(circle at top right, rgb(91 142 255 / 12%), transparent 38%),
    linear-gradient(180deg, rgb(255 255 255 / 94%) 0%, rgb(245 249 255 / 96%) 100%);
  box-shadow: 0 10px 24px rgb(41 91 194 / 8%);
}

.session-exercise-nav__name {
  justify-content: flex-start;
  min-height: 2.9rem;
  padding-inline: 0.95rem;
  font-size: 0.98rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 0.9rem;
}

.session-exercise-nav__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.session-exercise-nav__actions .btn {
  min-width: 0;
  min-height: 2.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 0.85rem;
}

.session-exercise-nav__actions .btn[disabled] {
  opacity: 0.42;
}

.session-exercise-nav__panel {
  border-style: dashed;
}

.session-exercise-nav__add {
  min-height: 2.9rem;
  font-size: 0.95rem;
  border-radius: 0.95rem;
}

.session-exercise-nav__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.session-exercise-nav__position {
  color: var(--sg-muted-2);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-exercise-nav__nav-buttons {
  display: inline-flex;
  gap: 0.45rem;
}

.session-exercise-nav__nav-btn {
  min-width: 4.2rem;
  min-height: 2.45rem;
  border-radius: 0.85rem;
}

.app-shell[data-theme="dark"] .session-exercise-nav__actions .btn[disabled] {
  opacity: 0.38;
}

.app-shell[data-theme="dark"] .session-exercise-nav__row {
  background: rgb(14 24 37 / 48%);
}

.app-shell[data-theme="dark"] .session-exercise-nav__row.is-current {
  border-color: #355277;
  background:
    radial-gradient(circle at top right, rgb(88 151 255 / 14%), transparent 38%),
    linear-gradient(180deg, rgb(18 30 46 / 94%) 0%, rgb(13 22 34 / 96%) 100%);
  box-shadow: 0 12px 26px rgb(2 8 23 / 18%);
}

.app-shell[data-theme="dark"] .session-exercise-nav__position {
  color: #9fb7d8;
}

.app-shell[data-theme="dark"] .card-sg > h3,
.app-shell[data-theme="dark"] .card-sg > .h6,
.app-shell[data-theme="dark"] .goal-checkin h2,
.app-shell[data-theme="dark"] .goal-checkin .h6,
.app-shell[data-theme="dark"] .goal-title {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .session-draft-card__title {
  color: #edf3ff;
}

.app-shell[data-theme="dark"] .session-draft-card__kicker {
  color: #9fb1cb;
}

.app-shell[data-theme="dark"] .session-draft-card__body {
  color: #d6e2f3;
}

.app-shell[data-theme="dark"] .session-draft-card__tag {
  background: #e7eef9 !important;
  color: #142844 !important;
  border-color: #b5c7df !important;
}

.app-shell[data-theme="dark"] .session-quick-start {
  border-color: #325171;
  background:
    radial-gradient(circle at top left, rgb(89 148 255 / 14%), transparent 28%),
    linear-gradient(180deg, rgb(20 31 46 / 98%) 0%, rgb(16 26 39 / 98%) 100%);
}

.app-shell[data-theme="dark"] .goal-graph {
  border-color: #314a68;
  background: linear-gradient(180deg, #182433 0%, #121d2b 100%);
}

.app-shell[data-theme="dark"] .goal-graph-target {
  stroke: #7f99b8;
}

.app-shell[data-theme="dark"] .goal-graph-axis {
  color: #93abc7;
}

.app-shell[data-theme="dark"] .metric-chip {
  color: #d0def2;
  background: #1a2a3d;
  border-color: #36506f;
}

.app-shell[data-theme="dark"] .metric-chip strong {
  color: #edf3ff;
}

.app-shell[data-theme="dark"] .goal-pill.goal-status-achieved,
.app-shell[data-theme="dark"] .goal-pill.goal-status-progress {
  color: #d8e7ff;
  background: #223b5b;
  border-color: #4f78aa;
}

.app-shell[data-theme="dark"] .goal-pill.goal-status-behind {
  color: #ffe3c7;
  background: #4a2618;
  border-color: #c07a4d;
}

.app-shell[data-theme="dark"] .goal-pill.goal-status-neutral {
  color: #d7e1ee;
  background: #253445;
  border-color: #495d74;
}

.app-shell[data-theme="dark"] .session-detail-hero {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 12%), transparent 34%),
    linear-gradient(180deg, #182433 0%, #121d2b 100%);
}

.app-shell[data-theme="dark"] .session-hero-kicker {
  background: #213550;
  color: #9fc2ff;
}

.app-shell[data-theme="dark"] .session-hero-title-row h2,
.app-shell[data-theme="dark"] .session-section-head h3,
.app-shell[data-theme="dark"] .session-exercise-head h4 {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .session-hero-meta {
  color: #a9bdd8;
}

.app-shell[data-theme="dark"] .session-status-chip.completed {
  background: #263f31;
  color: #d8f6df;
}

.app-shell[data-theme="dark"] .session-status-chip.live {
  background: #223b5b;
  color: #d8e7ff;
}

.app-shell[data-theme="dark"] .session-concern-chip {
  border-color: #8e6a33;
  background: linear-gradient(180deg, #352716 0%, #2b2013 100%);
  color: #ffe6be;
}

.app-shell[data-theme="dark"] .session-concern-chip span {
  color: #f7c97f;
}

.app-shell[data-theme="dark"] .session-kpi {
  border-color: #314a68;
  background: rgb(20 31 46 / 88%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}

.app-shell[data-theme="dark"] .session-kpi-label,
.app-shell[data-theme="dark"] .session-stat-label,
.app-shell[data-theme="dark"] .session-exercise-score span,
.app-shell[data-theme="dark"] .session-timeline-time span,
.app-shell[data-theme="dark"] .session-timeline-side span,
.app-shell[data-theme="dark"] .session-timeline-meta,
.app-shell[data-theme="dark"] .session-subhead {
  color: #9bb2cd;
}

.app-shell[data-theme="dark"] .session-kpi strong,
.app-shell[data-theme="dark"] .session-stat-pill strong,
.app-shell[data-theme="dark"] .session-exercise-metrics strong,
.app-shell[data-theme="dark"] .session-progress-copy strong,
.app-shell[data-theme="dark"] .session-exercise-score strong,
.app-shell[data-theme="dark"] .session-timeline-time strong,
.app-shell[data-theme="dark"] .session-timeline-side strong,
.app-shell[data-theme="dark"] .session-timeline-title {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .session-progress-track,
.app-shell[data-theme="dark"] .session-muscle-bar {
  background: #1d3043;
}

.app-shell[data-theme="dark"] .session-stat-pill,
.app-shell[data-theme="dark"] .session-exercise-metrics > div,
.app-shell[data-theme="dark"] .session-timeline-row {
  border-color: #314a68;
  background: linear-gradient(180deg, #182433 0%, #121d2b 100%);
}

.app-shell[data-theme="dark"] .session-repair-card__actions .form-label {
  color: #9bb2cd;
}

.app-shell[data-theme="dark"] .session-repair-picker__menu,
.app-shell[data-theme="dark"] .session-repair-picker__empty {
  border-color: #314a68;
  background: linear-gradient(180deg, #182433 0%, #121d2b 100%);
}

.app-shell[data-theme="dark"] .session-repair-picker__option {
  border-bottom-color: #314a68;
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .session-repair-picker__option:hover {
  background: #1c2b3d;
}

.app-shell[data-theme="dark"] .session-repair-picker__empty {
  color: #9bb2cd;
}

.app-shell[data-theme="dark"] .session-exercise-note {
  background: linear-gradient(180deg, #312617 0%, #271d12 100%);
  border-color: #8d6d3a;
  color: #ffe2b2;
}

.app-shell[data-theme="dark"] .session-set-pill {
  background: #203246;
  color: #d6e4f8;
}

.app-shell[data-theme="dark"] .session-set-pill.idle {
  background: #223141;
  color: #a4b7cb;
}

.app-shell[data-theme="dark"] .badge.text-bg-light {
  background: #e7eef9 !important;
  color: #142844 !important;
  border-color: #b5c7df !important;
}

.app-shell[data-theme="dark"] .border.rounded,
.app-shell[data-theme="dark"] .border.rounded.p-3,
.app-shell[data-theme="dark"] .border {
  border-color: #29415d !important;
}

.bodyweight-card,
.bodyweight-history-list {
  display: grid;
  gap: 0.85rem;
}

.bodyweight-summary-grid,
.bodyweight-form-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bodyweight-summary-grid > div,
.bodyweight-history-row {
  border: 1px solid var(--sg-soft-block-border);
  border-radius: 0.85rem;
  background: var(--sg-soft-block-bg);
  padding: 0.75rem 0.85rem;
}

.bodyweight-summary-grid span,
.bodyweight-history-row span {
  color: var(--sg-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bodyweight-summary-grid strong,
.bodyweight-history-row strong {
  color: var(--sg-ink);
  font-size: 1.05rem;
}

.profile-preferences {
  display: grid;
  gap: 1rem;
}

.profile-page {
  gap: 1rem;
}

.profile-sidebar {
  align-content: start;
}

.profile-section-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--sg-border);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at top right, rgb(91 142 255 / 8%), transparent 34%),
    linear-gradient(180deg, rgb(255 255 255 / 97%) 0%, rgb(245 249 255 / 98%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 72%),
    0 14px 28px rgb(23 62 126 / 6%);
}

.profile-section-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.85rem;
}

.profile-section-card__eyebrow {
  margin: 0 0 0.22rem;
  color: #4c79b0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-inline-card {
  display: grid;
  gap: 0.5rem;
}

.profile-identity-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.profile-identity-card__copy {
  min-width: 0;
}

.profile-preferences__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-preferences__eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4c79b0;
}

.profile-preferences__title {
  margin: 0.2rem 0 0;
  color: var(--sg-ink);
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.profile-preferences__status {
  flex-shrink: 0;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  color: var(--sg-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-preferences__section {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.15rem;
}

.profile-preferences__section + .profile-preferences__section {
  border-top: 1px solid var(--sg-border);
  padding-top: 1rem;
}

.profile-preferences__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.profile-preferences__section-head h3 {
  margin: 0;
  color: var(--sg-ink);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profile-preferences__section-head span {
  color: var(--sg-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-preferences__grid {
  display: grid;
  gap: 0.85rem;
}

.profile-preferences__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-preferences__grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-preferences__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-preferences__stack {
  display: grid;
  gap: 0.85rem;
}

.profile-field {
  display: grid;
  gap: 0.38rem;
}

.profile-field .form-label {
  margin-bottom: 0;
}

.profile-field__hint {
  color: var(--sg-muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.profile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--sg-border);
  border-radius: 1rem;
  background: var(--sg-soft-block-bg);
}

.profile-toggle strong {
  display: block;
  color: var(--sg-ink);
  font-size: 0.95rem;
}

.profile-toggle span {
  display: block;
  margin-top: 0.15rem;
  color: var(--sg-muted);
  font-size: 0.82rem;
}

.profile-install-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--sg-border);
  border-radius: 1rem;
  background: var(--sg-soft-block-bg);
}

.profile-install-card strong {
  display: block;
  color: var(--sg-ink);
  font-size: 0.95rem;
}

.profile-install-card span {
  display: block;
  margin-top: 0.15rem;
  color: var(--sg-muted);
  font-size: 0.82rem;
  max-width: 40rem;
}

.profile-install-card .btn {
  flex-shrink: 0;
  min-width: 8.5rem;
}

.profile-account-links {
  display: grid;
  gap: 0.65rem;
}

.profile-account-links__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sg-border);
}

.profile-account-links__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bodyweight-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-card {
  padding: var(--space-4);
  min-width: 0;
  overflow: hidden;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.card-meta {
  font-size: var(--font-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sg-muted-2);
  font-weight: 700;
}

.goal-list {
  display: grid;
  gap: 0.72rem;
}

.goal-row {
  display: grid;
  gap: 0.3rem;
}

.goal-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.goal-title {
  color: var(--sg-ink);
  font-weight: 600;
}

.goal-pct {
  color: #1d62bb;
  font-weight: 800;
}

.goal-progress {
  height: 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--sg-progress-track);
  overflow: hidden;
}

.rest-timer-widget {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1rem 0.95rem;
  margin-bottom: 1rem;
  border: 1px solid #d7e3f1;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top left, rgb(11 111 232 / 17%), transparent 34%),
    linear-gradient(135deg, #edf5ff 0%, #f9fbff 52%, #ffffff 100%);
  box-shadow: 0 14px 34px rgb(15 23 42 / 8%);
}

.rest-timer-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.rest-timer-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.rest-timer-extra {
  display: grid;
  gap: 0.75rem;
}

.rest-timer-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #315d92;
}

.rest-timer-display {
  font-size: clamp(2.45rem, 8.6vw, 4.35rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.07em;
  color: #153252;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgb(255 255 255 / 60%);
}

.rest-timer-status {
  font-size: 0.92rem;
  font-weight: 700;
  color: #486887;
  max-width: 30rem;
}

.rest-timer-actions {
  display: flex;
  justify-content: flex-start;
}

.rest-targets {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  align-self: start;
  padding: 0.45rem;
  border: 1px solid rgb(191 211 236 / 70%);
  border-radius: 1.1rem;
  background: rgb(255 255 255 / 68%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 72%);
}

.rest-target {
  appearance: none;
  border: 1px solid #bfd3ec;
  border-radius: 999px;
  background: rgb(255 255 255 / 96%);
  color: #2c567f;
  padding: 0.6rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgb(15 23 42 / 4%);
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.rest-target:hover {
  border-color: #8eaed6;
  background: #ffffff;
  box-shadow: 0 10px 18px rgb(15 23 42 / 7%);
  transform: translateY(-1px);
}

.rest-target.is-active {
  border-color: #0b6fe8;
  background: linear-gradient(135deg, #0b6fe8 0%, #438ef4 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgb(11 111 232 / 24%);
}

.rest-timer-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
  margin-top: 0.1rem;
}

.rest-timer-buttons .btn {
  min-height: 2.7rem;
  min-width: 5.9rem;
  padding-inline: 0.9rem;
  border-radius: 999px;
  font-weight: 800;
}

.session-next-control {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgb(191 211 236 / 85%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 64%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 78%);
}

.session-next-control__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
}

.session-next-control__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.session-next-control__kicker {
  color: var(--sg-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-next-control__next-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #204b78;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgb(47 126 247 / 35%);
  text-underline-offset: 0.16em;
}

.session-next-control__next-link.is-static {
  color: var(--sg-ink-soft);
  font-weight: 700;
  text-decoration: none;
}

.session-next-control__picker {
  display: grid;
  gap: 0.3rem;
}

.session-next-control__picker .form-label {
  margin-bottom: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-muted-2);
}

.rest-timer-widget.is-met {
  border-color: #a7d9bb;
  background:
    radial-gradient(circle at top left, rgb(24 147 74 / 15%), transparent 34%),
    linear-gradient(135deg, #eefaf2 0%, #f8fffb 55%, #ffffff 100%);
}

.rest-timer-widget.is-met .rest-timer-kicker,
.rest-timer-widget.is-met .rest-timer-status {
  color: #236b45;
}

.rest-timer-widget.is-met .rest-timer-display {
  color: #155b37;
}

.rest-timer-widget.is-paused {
  border-color: #d4dce7;
  background:
    radial-gradient(circle at top left, rgb(111 132 156 / 12%), transparent 34%),
    linear-gradient(135deg, #f6f8fb 0%, #fcfdff 55%, #ffffff 100%);
}

.current-exercise-panel {
  padding: 1.4rem;
  background:
    radial-gradient(circle at top left, rgb(11 111 232 / 11%), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.exercise-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.exercise-title-group {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.exercise-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #55779d;
}

.exercise-title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #1a2638;
  text-wrap: balance;
}

.exercise-progress-card {
  display: grid;
  gap: 0.5rem;
  min-width: 13rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d7e2f1;
  border-radius: 1rem;
  background: rgb(248 251 255 / 92%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%);
}

.set-progress-text {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #466486;
}

.set-progress-bar {
  position: relative;
  overflow: hidden;
  height: 0.7rem;
  border-radius: 999px;
  background: #deebf7;
}

.set-progress-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b6fe8 0%, #58a6ff 100%);
  box-shadow: 0 6px 18px rgb(11 111 232 / 28%);
}

.exercise-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.muscle-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.muscle-pill-primary {
  background: #1967d2;
  color: #ffffff;
  box-shadow: 0 10px 22px rgb(25 103 210 / 22%);
}

.muscle-pill-secondary {
  background: #eff4fa;
  color: #314a64;
  border: 1px solid #d1dce9;
}

.exercise-notes {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #54667a;
  max-width: 62ch;
}

.set-log-kicker {
  color: var(--sg-muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.set-log-title {
  color: var(--sg-ink);
  margin: 0.2rem 0 0;
}

.set-log-list {
  display: grid;
  gap: 1rem;
}

.set-log-row {
  display: grid;
  gap: 0.65rem;
}

.set-log-header,
.set-field > span {
  color: var(--sg-ink-soft);
}

.set-log-fields {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.75rem;
  align-items: end;
}

.set-field {
  display: grid;
  gap: 0.35rem;
}

.set-field-action {
  align-self: end;
}

.set-field-action > span {
  visibility: hidden;
}

.set-log-button {
  width: auto;
  min-width: 8.5rem;
  min-height: 2.75rem;
}

.rest-timer-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: start;
}

.rest-timer-copy--primary {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.rest-timer-exercise {
  display: grid;
  gap: 0.25rem;
}

.rest-timer-exercise__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.rest-timer-exercise__title {
  color: var(--sg-ink);
  font-size: clamp(1.65rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.rest-timer-exercise__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--sg-muted-2);
  font-size: 0.8rem;
  font-weight: 700;
}

.rest-timer-exercise__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
}

.rest-timer-progress {
  min-width: 10.5rem;
  align-self: start;
}

.rest-timer-display {
  line-height: 0.92;
}

.rest-timer-actions {
  margin-top: 0.1rem;
}

.rest-timer-buttons .btn {
  min-height: 2.8rem;
}

@media (max-width: 767.98px) {
  .rest-timer-topline {
    grid-template-columns: 1fr;
  }

  .rest-timer-progress {
    min-width: 0;
    width: 100%;
  }

  .rest-timer-exercise__title {
    font-size: clamp(1.6rem, 8.5vw, 2.2rem);
  }
}

.app-shell[data-theme="dark"] .set-log-row.is-complete {
  border-color: rgb(65 94 129 / 55%);
  background: transparent;
}

.app-shell[data-theme="dark"] .set-log-row.is-complete .set-number,
.app-shell[data-theme="dark"] .set-log-row.is-complete .set-status,
.app-shell[data-theme="dark"] .set-log-row.is-complete .set-log-complete-metric {
  color: #d9e8ff;
}

.app-shell[data-theme="dark"] .set-log-row.is-complete .set-status {
  background: transparent;
  color: #cfe1ff;
  padding-inline: 0;
}

.app-shell[data-theme="dark"] .set-log-row.is-complete .set-log-complete-metric strong {
  color: #ffffff;
}

.goal-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f7de1 0%, #426be6 100%);
}

.goal-progress-fill.goal-status-achieved {
  background: linear-gradient(90deg, #2f7de1 0%, #426be6 100%);
}

.goal-progress-fill.goal-status-progress {
  background: linear-gradient(90deg, #2f7de1 0%, #426be6 100%);
}

.goal-progress-fill.goal-status-behind {
  background: linear-gradient(90deg, #f59e0b 0%, #f97316 100%);
}

.goal-pct.goal-status-achieved {
  color: #1d62bb;
}

.goal-pct.goal-status-progress {
  color: #1d62bb;
}

.goal-pct.goal-status-behind {
  color: #b45309;
}

.goal-checkin {
  display: grid;
  gap: var(--space-3);
}

.goal-checkin-list {
  display: grid;
  gap: var(--space-2);
}

.goal-checkin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 12rem) auto;
  gap: var(--space-2);
  align-items: center;
  padding-top: var(--space-2);
  border-top: 1px solid #edf1f6;
}

.goal-checkin-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.goal-checkin-input {
  width: 100%;
}

.goal-trend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.2rem;
}

.goal-trend-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sg-ink-soft);
}

.goal-trend-list strong {
  color: var(--sg-ink);
}

.goal-graph-wrap {
  margin-bottom: var(--space-2);
}

.goal-graph {
  width: 100%;
  height: 7.25rem;
  display: block;
  border: 1px solid #e3e9f0;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #f9fbff 0%, #f5f8fc 100%);
}

.goal-graph-target {
  stroke: #88a4c7;
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}

.goal-graph-line {
  fill: none;
  stroke: #2f7de1;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.goal-graph.goal-graph-decrease .goal-graph-line {
  stroke: #0b6fe8;
}

.goal-graph-point {
  fill: #2f7de1;
  opacity: 0.7;
}

.goal-graph.goal-graph-decrease .goal-graph-point {
  fill: #0b6fe8;
}

.goal-graph-point-latest {
  fill: #0b6fe8;
  stroke: #dbeafe;
  stroke-width: 1.5;
}

.goal-graph.goal-graph-increase .goal-graph-point-latest {
  fill: #2f7de1;
  stroke: #dbeafe;
}

.goal-graph-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.32rem;
  color: #607489;
  font-size: var(--font-xs);
}

.goal-graph-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-top: 0.45rem;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.78rem;
  color: #36506f;
  background: #eef4fb;
  border: 1px solid #d4e1f0;
  border-radius: var(--radius-pill);
  padding: 0.14rem 0.5rem;
}

.metric-chip strong {
  color: #1f3b67;
}

.goal-pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 0.14rem 0.5rem;
  font-size: var(--font-xs);
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.goal-pill.goal-status-achieved {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
}

.goal-pill.goal-status-progress {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
}

.goal-pill.goal-status-behind {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fdba74;
}

.goal-pill.goal-status-neutral {
  color: #475569;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.exercise-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  border: 1px solid var(--sg-border);
  border-radius: 0.65rem;
}

.tags {
  display: inline-flex;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.exercise-library-page {
  gap: 1rem;
}

.exercise-library-shell,
.exercise-library-create,
.exercise-library-card {
  overflow: hidden;
}

.exercise-library-shell {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.exercise-library-shell__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.exercise-library-shell__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--sg-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}

.exercise-library-shell__title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  letter-spacing: -0.03em;
}

.exercise-library-shell__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  width: min(100%, 21rem);
}

.exercise-library-stat {
  display: grid;
  gap: 0.15rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--sg-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(243 248 255 / 98%) 100%);
}

.exercise-library-stat span {
  color: var(--sg-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exercise-library-stat strong {
  color: var(--sg-ink);
  font-size: 1.35rem;
  line-height: 1;
}

.exercise-library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 0.85rem;
}

.exercise-library-toolbar--picker {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.exercise-library-search,
.exercise-library-filters label,
.exercise-library-create__grid label {
  display: grid;
  gap: 0.4rem;
}

.exercise-library-search span,
.exercise-library-filters span,
.exercise-library-create__grid span {
  color: var(--sg-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.exercise-library-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.exercise-library-filter-groups {
  display: grid;
  gap: 0.9rem;
}

.exercise-library-filter-group {
  display: grid;
  gap: 0.5rem;
}

.exercise-library-filter-group__label {
  color: var(--sg-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.exercise-library-pill-row {
  display: none;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  scrollbar-width: none;
}

.exercise-library-pill-row::-webkit-scrollbar {
  display: none;
}

.exercise-library-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--sg-border-strong);
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(241 247 255 / 98%) 100%);
  color: var(--sg-ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.exercise-library-pill.is-active {
  border-color: var(--sg-primary-fill);
  background: linear-gradient(135deg, var(--sg-primary-fill) 0%, var(--sg-primary-fill-bright) 100%);
  color: var(--sg-on-primary);
  box-shadow: 0 14px 28px rgb(21 88 214 / 20%);
}

.exercise-library-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.exercise-library-filter-chip {
  appearance: none;
  border: 1px solid rgb(172 198 233 / 88%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(242 247 255 / 96%) 100%);
  color: #24476d;
  padding: 0.5rem 0.88rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 78%),
    0 10px 20px rgb(20 53 109 / 8%);
  transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.exercise-library-filter-chip:hover {
  transform: translateY(-1px);
  border-color: #8cb2ea;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 82%),
    0 14px 26px rgb(20 53 109 / 12%);
}

.exercise-library-filter-chip.is-active {
  border-color: #2d74e2;
  background:
    radial-gradient(circle at top left, rgb(255 255 255 / 24%), transparent 34%),
    linear-gradient(135deg, #1f6ff2 0%, #4e93ff 52%, #74a8ff 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 22%),
    0 14px 28px rgb(47 126 247 / 28%);
}

.exercise-library-create-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding-top: 0.35rem;
}

.exercise-library-create-launch__copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.exercise-library-create-toggle {
  min-height: 3rem;
  padding-inline: 1.15rem;
  white-space: nowrap;
}

.exercise-library-create {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.exercise-library-create--inline {
  border: 1px solid var(--sg-border);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgb(255 255 255 / 92%) 0%, rgb(244 248 255 / 98%) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 60%);
}

.exercise-library-create__form,
.exercise-library-create__grid {
  display: grid;
  gap: 0.85rem;
}

.exercise-library-create__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.exercise-library-create__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.exercise-library-list {
  display: grid;
  gap: 0.85rem;
}

.exercise-library-list__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}

.exercise-library-list__title {
  margin: 0.15rem 0 0;
  color: var(--sg-ink);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  letter-spacing: -0.03em;
}

.exercise-library-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgb(179 203 235 / 88%);
  border-radius: 1.3rem;
  background:
    radial-gradient(circle at top right, rgb(91 142 255 / 10%), transparent 34%),
    linear-gradient(180deg, rgb(255 255 255 / 98%) 0%, rgb(245 249 255 / 98%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 70%),
    0 16px 30px rgb(23 62 126 / 8%);
}

.exercise-library-card__body {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.exercise-library-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.exercise-library-card__title {
  margin: 0;
  color: var(--sg-ink);
  font-size: 1.08rem;
  line-height: 1.12;
}

.exercise-library-card__meta {
  margin: 0.25rem 0 0;
  color: var(--sg-muted);
  font-size: 0.92rem;
}

.exercise-library-card__origin,
.exercise-library-card__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  background: var(--sg-soft-block-bg);
  color: var(--sg-ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.exercise-library-card__origin.is-custom {
  color: #7b3e02;
  background: #fff2dc;
  border-color: #edc27a;
}

.exercise-library-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.exercise-library-card__actions {
  display: grid;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-width: 11rem;
}

.exercise-library-card__action-main,
.exercise-library-card__action-delete {
  min-height: 2.75rem;
  font-weight: 800;
}

.exercise-library-card__action-main {
  border-color: rgb(154 186 232 / 92%);
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(242 247 255 / 96%) 100%);
  color: var(--sg-ink);
}

.exercise-library-card__action-main:hover,
.exercise-library-card__action-main:focus-visible {
  border-color: #7ca9ea;
  background: linear-gradient(180deg, rgb(247 251 255 / 98%) 0%, rgb(231 241 255 / 98%) 100%);
  color: var(--sg-ink);
}

.exercise-library-card__action-delete {
  justify-content: center;
}

.ai-workout-summary {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border: 1px solid var(--sg-border);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at top right, rgb(91 142 255 / 10%), transparent 35%),
    linear-gradient(180deg, rgb(255 255 255 / 98%) 0%, rgb(244 248 255 / 98%) 100%);
  box-shadow: 0 10px 24px rgb(23 62 126 / 8%);
}

.ai-workout-summary__title {
  color: var(--sg-ink);
  font-size: 1rem;
  font-weight: 800;
}

.ai-workout-summary__tags {
  gap: 0.35rem;
}

.ai-workout-summary__tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(145, 176, 231, 0.5);
  background: rgba(240, 246, 255, 0.98);
  color: #1b3558;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ai-workout-summary__body {
  color: var(--sg-ink-soft);
  line-height: 1.45;
}

.ai-workout-summary__status {
  color: var(--sg-muted);
  font-size: 0.88rem;
}

.app-shell[data-theme="dark"] .ai-workout-summary {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(91 142 255 / 10%), transparent 35%),
    linear-gradient(180deg, rgb(20 31 46 / 96%) 0%, rgb(15 24 36 / 96%) 100%);
  box-shadow: none;
}

.app-shell[data-theme="dark"] .ai-workout-summary__title {
  color: #e8f0ff;
}

.app-shell[data-theme="dark"] .ai-workout-summary__tag {
  border-color: rgba(145, 176, 231, 0.36);
  background: rgba(240, 246, 255, 0.96);
  color: #1b3558;
}

.app-shell[data-theme="dark"] .ai-workout-summary__body {
  color: #d6e2f3;
}

.app-shell[data-theme="dark"] .ai-workout-summary__status {
  color: #9fb1cb;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgb(15 23 42 / 55%);
  z-index: 60;
}

.modal-card {
  position: fixed;
  z-index: 61;
  top: 50%;
  left: 50%;
  width: min(36rem, 92vw);
  transform: translate(-50%, -50%);
}

.modal-card h2,
.modal-card p {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .modal-card h2 {
  color: #edf3ff;
}

.app-shell[data-theme="dark"] .modal-card p {
  color: #d6e2f3;
}

.toast-stack {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  display: grid;
  gap: var(--space-2);
  z-index: 70;
}

.toast-item {
  min-width: 18rem;
  border-radius: 0.6rem;
  padding: var(--space-3);
  border: 1px solid transparent;
  background: #fff;
}

.toast-item.success {
  border-color: #8fbdf4;
}

.toast-item.warning {
  border-color: #f0d28f;
}

.toast-item.error {
  border-color: #e8aaaa;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: var(--space-1);
  min-height: 7.4rem;
  margin-bottom: 0.25rem;
}

.bar {
  border: 0;
  border-radius: 0.35rem 0.35rem 0 0;
  background: linear-gradient(180deg, #2f8eff, #0b6fe8);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.bar:hover {
  filter: brightness(1.04);
}

.bar-selected {
  background: linear-gradient(180deg, #8cb4ff, #4b7ff2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%), 0 0 0 2px rgba(111, 157, 255, 0.18);
}

.bar-peak {
  background: linear-gradient(180deg, #9dc0ff, #5c8cff);
}

.activity-chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.activity-stat {
  padding: 0.55rem 0.65rem;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(117, 161, 255, 0.08));
  border: 1px solid rgba(135, 169, 233, 0.2);
  display: grid;
  gap: 0.1rem;
}

.activity-stat-label {
  color: var(--sg-muted-2);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.activity-stat-value {
  font-size: 1rem;
  color: var(--sg-text);
}

.chart-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
  color: #607489;
  font-size: var(--font-xs);
  text-align: center;
}

.chart-labels > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-selection {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  border: 1px solid var(--sg-border);
  background: var(--sg-soft-block-bg);
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.55rem;
  max-width: 100%;
}

.activity-chart-selection {
  padding: 0.65rem 0.8rem;
  border-radius: 0.85rem;
}

.chart-value {
  color: var(--sg-primary-strong);
}

.app-shell[data-theme="dark"] .activity-stat-value {
  color: #f3f7ff;
}

.lift-list {
  display: grid;
  gap: 0.35rem;
}

.lift-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.15rem;
  border-bottom: 1px solid #edf1f6;
}

.lift-copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.lift-row:last-child {
  border-bottom: 0;
}

.lift-rank {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xs);
  font-weight: 800;
  color: #245f9f;
  background: #eaf3ff;
}

.lift-name {
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lift-value {
  color: #0f3d66;
  min-width: 0;
  white-space: nowrap;
  text-align: right;
}

.goal-status-list {
  display: grid;
  gap: 0.65rem;
}

.goal-status-row {
  display: grid;
  gap: 0.4rem;
}

.goal-strategy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.1rem;
  padding-inline: 0.8rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.goal-strategy-btn__icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(73, 132, 255, 0.14);
  color: currentColor;
  flex: 0 0 auto;
}

.goal-strategy-btn__icon svg {
  width: 0.78rem;
  height: 0.78rem;
  fill: currentColor;
}

.goal-status-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.goal-status-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: var(--font-xs);
  color: var(--sg-muted-2);
}

.goal-status-row .btn {
  min-width: 0;
}

.ai-feedback {
  display: grid;
  gap: 0.45rem;
}

.ai-feedback__headline {
  color: var(--sg-ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ai-feedback__status {
  color: var(--sg-muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.ai-feedback-shell {
  display: grid;
  gap: 0.6rem;
}

.ai-feedback-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.55rem;
}

.ai-feedback-label,
.ai-feedback-status {
  color: var(--sg-muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.ai-feedback-label {
  font-weight: 700;
  margin: 0;
}

.ai-feedback-status {
  padding: 0.1rem 0;
}

.ai-feedback-btn {
  min-height: 2.35rem;
  padding: 0.48rem 0.85rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.ai-feedback-btn:hover:not(:disabled),
.ai-feedback-btn:focus-visible:not(:disabled) {
  transform: translateY(-1px);
}

.ai-feedback-btn-positive {
  color: #effbf2;
  background: linear-gradient(135deg, #66c97a 0%, #3e9d5b 100%);
  border: 1px solid #7ad690;
  box-shadow: 0 8px 18px rgba(62, 157, 91, 0.18);
}

.ai-feedback-btn-positive:hover:not(:disabled),
.ai-feedback-btn-positive:focus-visible:not(:disabled) {
  color: #ffffff;
  background: linear-gradient(135deg, #72d184 0%, #48a865 100%);
  border-color: #8ce0a0;
  box-shadow: 0 10px 22px rgba(62, 157, 91, 0.24);
}

.ai-feedback-btn-negative {
  color: #ffd8de;
  background: rgba(70, 22, 33, 0.45);
  border: 1px solid rgba(182, 84, 104, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ai-feedback-btn-negative:hover:not(:disabled),
.ai-feedback-btn-negative:focus-visible:not(:disabled) {
  color: #ffe7eb;
  background: rgba(96, 29, 43, 0.6);
  border-color: rgba(214, 106, 128, 0.85);
}

.ai-feedback-btn:disabled {
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.ai-feedback-detail {
  display: grid;
  gap: 0.55rem;
}

.ai-feedback-textarea {
  min-height: 5.5rem;
  font-size: 0.92rem;
}

.ai-feedback-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ai-feedback-provenance {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.9rem;
  background: rgba(248, 250, 252, 0.72);
  overflow: hidden;
}

.ai-feedback-provenance__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  list-style: none;
}

.ai-feedback-provenance__summary::-webkit-details-marker {
  display: none;
}

.ai-feedback-provenance__title {
  color: var(--sg-ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-feedback-provenance__meta {
  color: var(--sg-muted);
  font-size: 0.8rem;
  line-height: 1.25;
  text-align: right;
}

.ai-feedback-provenance__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0 0.8rem 0.8rem;
}

.ai-feedback-provenance__item {
  display: grid;
  gap: 0.18rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.ai-feedback-provenance__item-wide {
  grid-column: 1 / -1;
}

.ai-feedback-provenance__label {
  color: var(--sg-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-feedback-provenance__value {
  color: var(--sg-ink);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .ai-feedback-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .ai-feedback-label,
  .ai-feedback-status {
    grid-column: 1 / -1;
    font-size: 0.78rem;
  }

  .ai-feedback-btn {
    min-height: 2.2rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.8rem;
    font-size: 0.83rem;
  }

  .ai-feedback-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-feedback-provenance__summary {
    display: grid;
    justify-content: stretch;
  }

  .ai-feedback-provenance__meta {
    text-align: left;
  }

  .ai-feedback-provenance__grid {
    grid-template-columns: 1fr;
  }

  .ai-feedback-provenance__item-wide {
    grid-column: auto;
  }

  .ai-feedback-detail-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .ai-feedback-actions,
  .ai-feedback-detail-actions {
    grid-template-columns: 1fr;
  }

  .ai-feedback-btn {
    white-space: normal;
  }
}

.lift-trend-list {
  display: grid;
  gap: 0.72rem;
}

.lift-trend-row {
  border: 1px solid #e2e8f3;
  border-radius: 0.65rem;
  padding: 0.5rem 0.6rem;
  background: #fbfdff;
  display: grid;
  gap: 0.2rem;
}

a.lift-trend-row {
  text-decoration: none;
  color: inherit;
}

.lift-trend-row.selectable {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.lift-trend-row.selectable:hover {
  border-color: #9fc3ee;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  box-shadow: 0 10px 22px rgb(11 111 232 / 9%);
  transform: translateY(-1px);
}

.lift-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.lift-trend-subtle {
  color: var(--sg-muted-2);
  font-size: var(--font-xs);
}

.lift-trend-delta {
  font-weight: 800;
  font-size: 0.82rem;
}

.lift-trend-delta.up {
  color: #1d62bb;
}

.lift-trend-delta.down {
  color: #b45309;
}

.lift-trend-sparkline {
  width: 100%;
  height: 1.9rem;
}

.sparkline-line {
  fill: none;
  stroke: #2f7de1;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.muscle-volume-list {
  display: grid;
  gap: 0.45rem;
}

.muscle-volume-row {
  display: grid;
  gap: 0.2rem;
}

.muscle-volume-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.muscle-volume-bar {
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  background: #e9eff8;
  overflow: hidden;
}

.muscle-volume-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f8eff 0%, #0b6fe8 100%);
}

.dashboard-streak-wrap {
  margin-top: var(--space-4);
}

.streak-calendar-card {
  padding-bottom: 1rem;
}

.streak-calendar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.streak-calendar-summary {
  display: grid;
  gap: 0.1rem;
  justify-items: end;
  text-align: right;
}

.streak-calendar-summary strong {
  font-size: 1.2rem;
  line-height: 1;
  color: #173153;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.heatmap-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  color: var(--sg-muted-2);
  font-size: var(--font-xs);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.heat-cell {
  min-height: 5rem;
  border-radius: 0.8rem;
  border: 1px solid #dbe3ea;
  background: #eef2f6;
  padding: 0.55rem;
  display: grid;
  align-content: space-between;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.heat-cell-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.heat-cell-link:hover {
  color: inherit;
}

.heat-cell.lvl-1 { background: #cfe3ff; }
.heat-cell.lvl-2 { background: #82b6f4; }
.heat-cell.lvl-3 { background: #347fe8; }

.heat-cell:not(.heat-cell-empty):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgb(11 34 61 / 10%);
  border-color: #b9cde3;
}

.heat-cell-empty {
  background: transparent;
  border-style: dashed;
  border-color: rgb(219 227 234 / 55%);
}

.heat-cell-day {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  color: #173153;
}

.heat-cell-meta {
  font-size: 0.68rem;
  line-height: 1.2;
  color: rgb(15 35 64 / 72%);
}

.heat-cell.lvl-2 .heat-cell-day,
.heat-cell.lvl-3 .heat-cell-day,
.heat-cell.lvl-2 .heat-cell-meta,
.heat-cell.lvl-3 .heat-cell-meta {
  color: #fff;
}

.heat-cell-today {
  position: relative;
  border-color: #f59e0b;
  box-shadow: inset 0 0 0 2px #fcd34d, 0 8px 20px rgb(245 158 11 / 18%);
}

.heat-cell-today::after {
  content: "Today";
  position: absolute;
  top: 0.38rem;
  right: 0.4rem;
  padding: 0.1rem 0.32rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 88%);
  color: #9a6700;
  font-size: 0.54rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.heat-cell-today.lvl-2::after,
.heat-cell-today.lvl-3::after {
  background: rgb(255 255 255 / 94%);
}

.heatmap-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.heatmap-legend .heat-cell {
  width: 0.9rem;
  min-height: 0.9rem;
  padding: 0;
  border-radius: 0.3rem;
}

.session-detail-shell {
  display: grid;
  gap: 1.25rem;
}

.session-detail-hero {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.9fr);
  padding: 1.4rem;
  border: 1px solid #d7e5f3;
  background:
    radial-gradient(circle at top right, rgb(11 111 232 / 12%), transparent 34%),
    linear-gradient(180deg, #f9fcff 0%, #f2f7fc 100%);
}

.session-hero-copy {
  display: grid;
  gap: 0.75rem;
}

.session-hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: #e8f2ff;
  color: #0a63cb;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.session-hero-title-row h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.session-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.session-status-chip.completed {
  background: #dcfce7;
  color: #166534;
}

.session-status-chip.live {
  background: #dbeafe;
  color: #1d4ed8;
}

.session-hero-meta {
  margin: 0;
  font-size: 0.98rem;
  color: #47617f;
}

.session-concern-chip {
  display: inline-grid;
  gap: 0.2rem;
  width: fit-content;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid #f6d79f;
  background: linear-gradient(180deg, #fff8ea 0%, #fffdf6 100%);
  color: #7a4a08;
}

.session-concern-chip span {
  color: #996313;
}

.session-workout-card {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--sg-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(246 250 255 / 98%) 100%);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.session-workout-card.selected {
  border-color: #7eaaf2;
  background: linear-gradient(180deg, #eef5ff 0%, #e4efff 100%);
  box-shadow: inset 0 0 0 1px rgb(126 170 242 / 28%), 0 10px 24px rgb(23 62 126 / 10%);
}

.session-workout-card a {
  color: inherit;
}

.session-selected-workout {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--sg-border);
}

.session-selected-workout__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.session-selected-workout__copy {
  display: grid;
  gap: 0.35rem;
}

.session-selected-workout ul {
  padding-left: 1.25rem;
  color: var(--sg-ink-soft);
}

.session-selected-workout li + li {
  margin-top: 0.35rem;
}

.session-start-shell {
  display: grid;
  gap: 1rem;
}

.session-start-prep {
  align-content: start;
}

.session-start-quick {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.session-start-quick__copy {
  display: grid;
  gap: 0.2rem;
}

.session-start-quick__eyebrow {
  color: var(--sg-primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-start-quick__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.session-start-quick__button {
  min-height: 3rem;
}

.session-start-workouts__top {
  margin-bottom: 0.2rem;
}

.session-workout-card__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
}

.session-start-workout-select {
  width: 100%;
  display: grid;
  gap: 0.18rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d6e4f4;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(245 249 255 / 98%) 100%);
  color: inherit;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 78%),
    0 10px 20px rgb(20 53 109 / 6%);
  transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.session-start-workout-select:hover,
.session-start-workout-select:focus-visible {
  color: inherit;
  border-color: #98b9e8;
  background: linear-gradient(180deg, rgb(255 255 255 / 99%) 0%, rgb(237 245 255 / 99%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 82%),
    0 14px 26px rgb(20 53 109 / 10%);
  transform: translateY(-1px);
}

.session-start-workout-select__name {
  color: var(--sg-ink);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.session-start-workout-select__meta {
  color: var(--sg-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.session-start-setup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.session-start-setup__meta {
  color: var(--sg-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.session-start-exercise-picker__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sg-border-strong);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(242 247 255 / 96%) 100%);
  color: var(--sg-ink);
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 78%),
    0 10px 22px rgb(20 53 109 / 8%);
}

.session-start-exercise-picker__trigger-icon {
  color: var(--sg-primary-strong);
  font-size: 1rem;
  line-height: 1;
}

.session-start-exercise-picker .session-repair-picker__menu {
  position: static;
  margin-top: 0.55rem;
  display: grid;
  gap: 0.7rem;
  max-height: 22rem;
  padding: 0.8rem;
  border-radius: 1.15rem;
}

.session-start-exercise-picker__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-bottom: 0.1rem;
}

.session-start-exercise-picker__filter {
  appearance: none;
  border: 1px solid rgb(172 198 233 / 88%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(242 247 255 / 96%) 100%);
  color: #24476d;
  padding: 0.5rem 0.88rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 78%),
    0 10px 20px rgb(20 53 109 / 8%);
  transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.session-start-exercise-picker__filter:hover {
  transform: translateY(-1px);
  border-color: #8cb2ea;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 82%),
    0 14px 26px rgb(20 53 109 / 12%);
}

.session-start-exercise-picker__filter.is-active {
  border-color: #2d74e2;
  background:
    radial-gradient(circle at top left, rgb(255 255 255 / 24%), transparent 34%),
    linear-gradient(135deg, #1f6ff2 0%, #4e93ff 52%, #74a8ff 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 22%),
    0 14px 28px rgb(47 126 247 / 28%);
}

.session-start-exercise-picker__option {
  display: grid;
  gap: 0.4rem;
  border-radius: 1rem;
  border-bottom: 0;
  padding: 0.95rem 1rem;
}

.session-start-exercise-picker__option + .session-start-exercise-picker__option {
  margin-top: 0.2rem;
}

.session-start-exercise-picker__option.is-selected {
  background:
    radial-gradient(circle at top right, rgb(118 170 255 / 18%), transparent 35%),
    linear-gradient(180deg, rgb(224 236 255 / 98%) 0%, rgb(210 226 255 / 98%) 100%);
  box-shadow:
    inset 0 0 0 1px rgb(47 126 247 / 22%),
    0 14px 28px rgb(47 126 247 / 14%);
}

.session-start-exercise-picker__name {
  font-weight: 800;
  color: var(--sg-ink);
}

.session-start-exercise-picker__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.session-start-exercise-picker__meta .badge {
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.session-start-historical-toggle span,
.set-timer-widget__title {
  color: var(--sg-ink);
}

.session-start-card-copy,
.session-start-quick h2,
.session-start-workouts__top h2,
.session-start-card-copy h3,
.session-start-card-copy strong,
.session-selected-workout strong,
.session-selected-workout li,
.session-start-card-text {
  color: var(--sg-ink);
}

.session-start-card-text {
  color: var(--sg-ink-soft);
}

.app-shell[data-theme="dark"] .session-workout-card {
  border-color: #29415d;
  background: linear-gradient(180deg, rgb(20 31 46 / 96%) 0%, rgb(16 25 38 / 96%) 100%);
}

.app-shell[data-theme="dark"] .session-workout-card.selected {
  border-color: #5b8eff;
  background: linear-gradient(180deg, rgb(35 50 74 / 98%) 0%, rgb(24 37 56 / 98%) 100%);
  box-shadow: inset 0 0 0 1px rgb(91 142 255 / 38%), 0 10px 24px rgb(41 91 194 / 16%);
}

.app-shell[data-theme="dark"] .session-workout-card strong,
.app-shell[data-theme="dark"] .session-selected-workout h3,
.app-shell[data-theme="dark"] .session-selected-workout li {
  color: #e8f0ff;
}

.app-shell[data-theme="dark"] .session-selected-workout ul,
.app-shell[data-theme="dark"] .session-workout-card .subtle,
.app-shell[data-theme="dark"] .session-selected-workout .subtle {
  color: #a8bdd8;
}

.app-shell[data-theme="dark"] .session-start-card-copy,
.app-shell[data-theme="dark"] .session-start-quick h2,
.app-shell[data-theme="dark"] .session-start-workouts__top h2,
.app-shell[data-theme="dark"] .session-start-historical-toggle span,
.app-shell[data-theme="dark"] .set-timer-widget__title,
.app-shell[data-theme="dark"] .session-start-card-copy h3,
.app-shell[data-theme="dark"] .session-start-card-copy strong,
.app-shell[data-theme="dark"] .session-start-card-text,
.app-shell[data-theme="dark"] .session-selected-workout strong {
  color: #e8f0ff;
}

.app-shell[data-theme="dark"] .session-start-card-text {
  color: #d6e2f3;
}

.app-shell[data-theme="dark"] .session-start-quick__eyebrow {
  color: #8ab5ff;
}

.app-shell[data-theme="dark"] .session-start-setup__meta {
  color: #a8bdd8;
}

.app-shell[data-theme="dark"] .session-workout-card__row {
  align-items: center;
}

.app-shell[data-theme="dark"] .session-start-workout-select {
  border-color: #3a5475;
  background: linear-gradient(180deg, rgb(17 29 45 / 96%) 0%, rgb(12 21 33 / 98%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 14px 28px rgb(2 8 23 / 18%);
}

.app-shell[data-theme="dark"] .session-start-workout-select:hover,
.app-shell[data-theme="dark"] .session-start-workout-select:focus-visible {
  border-color: #5e86bc;
  background: linear-gradient(180deg, rgb(22 36 56 / 98%) 0%, rgb(15 26 42 / 100%) 100%);
}

.app-shell[data-theme="dark"] .session-start-workout-select__name {
  color: #edf3ff;
}

.app-shell[data-theme="dark"] .session-start-workout-select__meta {
  color: #9fb7d8;
}

.app-shell[data-theme="dark"] .session-start-exercise-picker__filter {
  border-color: rgb(70 103 145 / 92%);
  background:
    linear-gradient(180deg, rgb(20 33 51 / 96%) 0%, rgb(16 28 44 / 96%) 100%);
  color: #d7e4f7;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 12px 24px rgb(2 8 23 / 18%);
}

.app-shell[data-theme="dark"] .session-start-exercise-picker__filter:hover {
  border-color: #5a86be;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 6%),
    0 16px 28px rgb(2 8 23 / 22%);
}

.app-shell[data-theme="dark"] .session-start-exercise-picker__filter.is-active {
  border-color: #76a4ff;
  background:
    radial-gradient(circle at top left, rgb(255 255 255 / 18%), transparent 32%),
    linear-gradient(135deg, #2d67d7 0%, #4f86f4 55%, #78a7ff 100%);
  color: #f7fbff;
}

.app-shell[data-theme="dark"] .session-start-exercise-picker__option.is-selected {
  background:
    radial-gradient(circle at top right, rgb(118 170 255 / 16%), transparent 36%),
    linear-gradient(180deg, rgb(36 55 83 / 96%) 0%, rgb(26 41 63 / 96%) 100%);
  box-shadow:
    inset 0 0 0 1px rgb(95 146 248 / 34%),
    0 16px 30px rgb(4 12 30 / 20%);
}

.app-shell[data-theme="dark"] .session-start-exercise-picker__name {
  color: #edf3ff;
}

.app-shell[data-theme="dark"] .session-start-exercise-picker__trigger {
  border-color: #3a5373;
  background: linear-gradient(180deg, rgb(18 30 46 / 96%) 0%, rgb(14 25 39 / 96%) 100%);
  color: #edf3ff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 14px 28px rgb(2 8 23 / 18%);
}

.app-shell[data-theme="dark"] .session-start-exercise-picker__trigger-icon {
  color: #8bb8ff;
}


@media (max-width: 640px) {
  .session-start-quick__actions {
    grid-template-columns: 1fr;
  }

  .session-start-quick__actions .btn {
    width: 100%;
  }

  .session-start-setup {
    display: grid;
    justify-content: stretch;
  }

  .session-workout-card__row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.55rem;
  }

  .session-start-workout-select {
    padding: 0.65rem 0.75rem;
  }

  .session-selected-workout__top {
    display: grid;
  }

  .session-selected-workout__top .btn {
    width: 100%;
  }
}

.session-hero-kpis {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.session-kpi {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid #d7e5f3;
  background: rgb(255 255 255 / 82%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 65%);
}

.session-kpi-label,
.session-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6882a1;
}

.session-kpi strong,
.session-stat-pill strong,
.session-exercise-metrics strong {
  font-size: 1.15rem;
  color: #163459;
}

.session-detail-overview {
  align-items: start;
}

.session-analytics-card {
  display: grid;
  gap: 1rem;
}

.session-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.session-progress-copy {
  display: grid;
  gap: 0.1rem;
  justify-items: end;
  text-align: right;
}

.session-progress-copy strong {
  font-size: 1.35rem;
  line-height: 1;
  color: #173153;
}

.session-progress-track,
.session-muscle-bar {
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eff8;
}

.session-progress-track {
  height: 0.75rem;
}

.session-progress-fill,
.session-muscle-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f8eff 0%, #0b6fe8 100%);
}

.session-stat-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.session-stat-pill {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border-radius: 0.95rem;
  background: #f5f9fd;
  border: 1px solid #dde8f2;
}

.session-muscle-block {
  display: grid;
  gap: 0.8rem;
}

.session-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #5f738a;
  font-size: 0.86rem;
}

.session-muscle-list {
  display: grid;
  gap: 0.75rem;
}

.session-muscle-row {
  display: grid;
  gap: 0.3rem;
}

.session-muscle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.session-timeline-list {
  display: grid;
  gap: 0.8rem;
}

.session-timeline-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid #dbe5ef;
  background: linear-gradient(180deg, #fcfdff 0%, #f7fafd 100%);
}

.session-timeline-time,
.session-timeline-side {
  display: grid;
  gap: 0.12rem;
}

.session-timeline-time strong,
.session-timeline-side strong {
  color: #183559;
}

.session-timeline-time span,
.session-timeline-side span {
  color: #70849a;
  font-size: 0.75rem;
}

.session-timeline-title {
  font-weight: 800;
  color: #173153;
}

.session-timeline-meta {
  color: #56708d;
  font-size: 0.92rem;
}

.session-exercise-section {
  display: grid;
  gap: 1rem;
}

.session-repair-list {
  display: grid;
  gap: 0.85rem;
}

.session-repair-card {
  display: grid;
  gap: 0.85rem;
}

.session-repair-card__top,
.session-repair-card__actions {
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
}

.session-repair-card__top {
  align-items: start;
}

.session-repair-card__actions {
  align-items: end;
}

.session-repair-card__actions .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-muted-2);
}

.session-repair-picker {
  position: relative;
}

.session-repair-picker__menu,
.session-repair-picker__empty {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 18rem;
  overflow: auto;
  border: 1px solid var(--sg-border);
  border-radius: 1rem;
  background: var(--sg-surface);
  box-shadow: var(--shadow-2);
}

.session-repair-picker__option {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--sg-border);
  background: transparent;
  color: var(--sg-ink);
  text-align: left;
  font-size: 0.98rem;
}

.session-repair-picker__option:last-child {
  border-bottom: 0;
}

.session-repair-picker__option:hover {
  background: var(--sg-surface-soft);
}

.session-repair-picker__empty {
  padding: 0.8rem 0.9rem;
  color: var(--sg-muted);
}

.session-exercise-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.session-exercise-card {
  display: grid;
  gap: 0.9rem;
}

.session-exercise-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.session-exercise-head h4 {
  margin-bottom: 0.45rem;
}

.session-exercise-muscles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.session-exercise-score {
  display: grid;
  gap: 0.1rem;
  justify-items: end;
  text-align: right;
}

.session-exercise-score strong {
  font-size: 1.1rem;
  color: #173153;
}

.session-exercise-score span {
  color: #70849a;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.session-exercise-metrics {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.session-exercise-metrics > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  border-radius: 0.9rem;
  background: #f7fbff;
  border: 1px solid #e0ebf5;
}

.session-exercise-note {
  padding: 0.75rem 0.85rem;
  border-radius: 0.85rem;
  background: #fffaf0;
  border: 1px solid #f3dfb8;
  color: #7b5a20;
  font-size: 0.92rem;
}

.session-set-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.session-set-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: #edf4fb;
  color: #315273;
  font-size: 0.8rem;
  font-weight: 700;
}

.session-set-pill.idle {
  background: #f5f7fa;
  color: #6a7c8f;
}

@media (max-width: 991.98px) {
  .session-detail-hero,
  .session-exercise-grid {
    grid-template-columns: 1fr;
  }

  .session-hero-title-row,
  .session-section-head,
  .session-exercise-head {
    flex-direction: column;
    align-items: start;
  }

  .session-progress-copy,
  .session-exercise-score {
    justify-items: start;
    text-align: left;
  }

  .session-timeline-row {
    grid-template-columns: 1fr;
  }

  .session-repair-card__top,
  .session-repair-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .session-timeline-side {
    justify-items: start;
  }

  .streak-calendar-header {
    align-items: stretch;
    flex-direction: column;
  }

  .streak-calendar-summary {
    justify-items: start;
    text-align: left;
  }

  .heatmap-grid,
  .heatmap-weekdays {
    gap: 0.3rem;
  }

  .heat-cell {
    min-height: 4.15rem;
    padding: 0.42rem;
  }

  .heat-cell-today {
    box-shadow: inset 0 0 0 2px #fcd34d;
  }

  .heat-cell-today::after {
    content: "";
    top: 0.34rem;
    right: 0.34rem;
    bottom: auto;
    width: 0.42rem;
    height: 0.42rem;
    padding: 0;
    border-radius: 999px;
    background: #f59e0b;
    font-size: 0;
  }

  .heat-cell-day {
    font-size: 0.82rem;
  }

  .heat-cell-meta {
    font-size: 0.56rem;
    padding-right: 0;
  }
}

@media (max-width: 767.98px) {
  .session-hero-kpis,
  .session-stat-grid,
  .session-exercise-metrics {
    grid-template-columns: 1fr;
  }
}

.message-bubble {
  max-width: 90%;
  margin-bottom: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: 0.7rem;
}

.message-bubble.user {
  margin-left: auto;
  background: #e8f2ff;
}

.message-bubble.ai {
  margin-right: auto;
  background: #f7f8fa;
}

.chat-stream {
  max-height: 60vh;
  overflow: auto;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--sg-border);
  background: var(--sg-surface);
}

.table-wrap .table {
  margin-bottom: 0;
  min-width: 620px;
}

.table > :not(caption) > * > * {
  padding: 0.7rem 0.75rem;
  vertical-align: middle;
}

.session-history-wrap {
  padding: 0.4rem;
}

.session-history-mobile-list {
  display: none;
  gap: 0.85rem;
}

.session-history-mobile-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.session-history-mobile-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.85rem;
}

.session-history-mobile-card__title {
  display: block;
  color: var(--sg-ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.session-history-mobile-card__description {
  margin-top: 0.35rem;
  line-height: 1.45;
}

.session-history-mobile-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.session-history-mobile-card__meta span {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-muted-2);
}

.session-history-mobile-card__meta strong {
  display: block;
  color: var(--sg-ink);
  font-size: 0.95rem;
  line-height: 1.35;
}

.session-history-mobile-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.session-history-mobile-card__actions .btn {
  min-height: 2.65rem;
}

.session-history-mobile-card__save {
  display: grid;
  gap: 0.55rem;
}

.session-history-save__label {
  display: block;
  color: var(--sg-muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-history-save__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.session-history-table__save {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.session-history-table__save .form-control {
  min-width: 12rem;
}

.session-history-table {
  font-size: 0.95rem;
}

.session-history-table > :not(caption) > * > * {
  padding: 0.9rem 1rem;
}

.session-history-table thead th {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-muted-2);
  border-bottom-width: 1px;
}

.session-history-table__workout {
  min-width: 17rem;
}

.session-history-table__title {
  display: block;
  color: var(--sg-ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.session-history-table__description {
  max-width: 18rem;
  line-height: 1.45;
}

.session-history-table__status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.session-history-table__status.is-completed {
  color: #13653f;
  background: #ddf7ea;
  border: 1px solid #b7e8cd;
}

.session-history-table__status.is-live {
  color: #8a5a00;
  background: #fff0c7;
  border: 1px solid #f3d98a;
}

.session-history-table__actions {
  flex-wrap: nowrap;
}

.session-history-table__actions .btn {
  min-width: 7.25rem;
}

.admin-users-table {
  font-size: 0.88rem;
}

.admin-users-table > :not(caption) > * > * {
  padding: 0.8rem 0.8rem;
  vertical-align: top;
}

.admin-users-table thead th,
.admin-users-table tfoot th {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.admin-users-table strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.admin-users-table .subtle {
  font-size: 0.74rem;
  line-height: 1.3;
  max-width: none;
}

.admin-users-table .btn-sm {
  min-height: auto;
  padding: 0.38rem 0.85rem;
  font-size: 0.8rem;
}

.admin-section-title {
  color: var(--sg-ink);
}

.admin-kpi-grid {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-kpi-chip {
  min-height: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem;
  gap: 0.08rem;
}

.admin-kpi-chip::before {
  height: 0.18rem;
}

.admin-kpi-chip .kpi-label {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.admin-kpi-chip .kpi-value {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.admin-cell {
  display: grid;
  gap: 0.28rem;
}

.admin-user-name {
  font-size: 0.92rem;
}

.admin-user-email {
  word-break: break-word;
}

.admin-stat-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.help-page {
  display: grid;
}

.help-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.help-inbox-shell {
  display: grid;
  grid-template-columns: minmax(19rem, 24rem) minmax(0, 1fr);
  min-height: 72vh;
  padding: 0;
  overflow: hidden;
}

.help-inbox-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  min-height: 0;
}

.help-inbox-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.help-inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.help-thread-items {
  display: grid;
  align-content: start;
  overflow: auto;
  min-height: 0;
}

.help-thread-row {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 0.22rem;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: transparent;
  color: inherit;
}

.help-thread-row:hover,
.help-thread-row.active {
  background: rgba(79, 164, 255, 0.08);
}

.help-thread-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.help-thread-row-mid,
.help-thread-row-bottom {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.help-thread-row-bottom {
  align-items: flex-start;
}

.help-thread-name {
  font-size: 0.88rem;
  line-height: 1.2;
}

.help-thread-header__main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.help-mobile-back {
  display: none;
  width: fit-content;
}

.help-thread-time,
.help-thread-email {
  font-size: 0.75rem;
  color: var(--sg-muted);
}

.help-thread-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.help-thread-count,
.help-thread-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.15rem;
  padding: 0 0.38rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
}

.help-thread-count {
  background: rgba(15, 23, 42, 0.08);
  color: var(--sg-ink);
  flex: 0 0 auto;
}

.help-thread-flag {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  flex: 0 0 auto;
}

.help-thread-preview,
.help-message-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.help-thread-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  color: var(--sg-muted);
  flex: 1;
}

.help-message-list {
  display: grid;
  gap: 0.75rem;
}

.help-message-list-admin {
  max-height: none;
  overflow: auto;
  padding: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.help-message,
.help-message-line {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid var(--sg-border);
  background: rgba(255, 255, 255, 0.9);
}

.help-message-admin {
  border-color: rgba(44, 110, 203, 0.22);
  background: linear-gradient(180deg, rgba(79, 164, 255, 0.12), rgba(255, 255, 255, 0.94));
}

.help-message-user {
  border-color: rgba(14, 165, 164, 0.18);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.08), rgba(255, 255, 255, 0.94));
}

.help-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.help-compose {
  display: grid;
  gap: 0.8rem;
}

.help-compose-admin {
  padding: 1rem;
}

.help-search-input {
  min-width: 0;
}

.help-compose-input {
  min-height: 6rem;
}

.help-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
}

.help-empty-panel {
  display: grid;
  place-items: center;
  min-height: 18rem;
}

.app-shell[data-theme="dark"] .help-inbox-shell,
.app-shell[data-theme="dark"] .help-thread-panel {
  background:
    radial-gradient(circle at top right, rgb(70 120 190 / 10%), transparent 30%),
    linear-gradient(180deg, rgb(10 18 30 / 96%) 0%, rgb(6 12 22 / 99%) 100%);
  border-color: #223955;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 4%),
    0 18px 36px rgb(0 0 0 / 28%);
}

.app-shell[data-theme="dark"] .help-inbox-sidebar {
  border-right-color: rgb(97 130 171 / 20%);
}

.app-shell[data-theme="dark"] .help-thread-row {
  border-bottom-color: rgb(97 130 171 / 18%);
}

.app-shell[data-theme="dark"] .help-thread-row:hover,
.app-shell[data-theme="dark"] .help-thread-row.active {
  background:
    linear-gradient(180deg, rgb(21 35 57 / 94%) 0%, rgb(13 23 38 / 98%) 100%);
}

.app-shell[data-theme="dark"] .help-thread-name,
.app-shell[data-theme="dark"] .help-inbox-toolbar h2,
.app-shell[data-theme="dark"] .help-inbox-toolbar .h5,
.app-shell[data-theme="dark"] .help-thread-header h2,
.app-shell[data-theme="dark"] .help-thread-header .h5,
.app-shell[data-theme="dark"] .help-section-head h2,
.app-shell[data-theme="dark"] .help-section-head .h5 {
  color: #eef4ff;
}

.app-shell[data-theme="dark"] .help-thread-time,
.app-shell[data-theme="dark"] .help-thread-email,
.app-shell[data-theme="dark"] .help-thread-preview,
.app-shell[data-theme="dark"] .help-message-meta .subtle,
.app-shell[data-theme="dark"] .help-thread-header .subtle,
.app-shell[data-theme="dark"] .help-section-head .subtle,
.app-shell[data-theme="dark"] .help-inbox-toolbar .subtle {
  color: #99afcb;
}

.app-shell[data-theme="dark"] .help-thread-count {
  background: rgb(113 170 255 / 14%);
  color: #e8f1ff;
}

.app-shell[data-theme="dark"] .help-thread-flag {
  background: rgb(78 116 255 / 16%);
  color: #9db8ff;
}

.app-shell[data-theme="dark"] .help-message-list-admin {
  border-top-color: rgb(97 130 171 / 20%);
  border-bottom-color: rgb(97 130 171 / 20%);
}

.app-shell[data-theme="dark"] .help-message,
.app-shell[data-theme="dark"] .help-message-line {
  border-color: #2d4767;
  background: linear-gradient(180deg, rgb(15 24 38 / 94%) 0%, rgb(9 16 28 / 99%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 4%),
    0 10px 22px rgb(0 0 0 / 20%);
}

.app-shell[data-theme="dark"] .help-message-admin {
  border-color: rgb(95 145 226 / 34%);
  background:
    radial-gradient(circle at top right, rgb(106 165 255 / 14%), transparent 30%),
    linear-gradient(180deg, rgb(18 31 49 / 95%) 0%, rgb(10 18 31 / 99%) 100%);
}

.app-shell[data-theme="dark"] .help-message-user {
  border-color: rgb(72 151 175 / 30%);
  background:
    radial-gradient(circle at top right, rgb(69 177 185 / 12%), transparent 30%),
    linear-gradient(180deg, rgb(14 28 35 / 95%) 0%, rgb(9 17 23 / 99%) 100%);
}

.app-shell[data-theme="dark"] .help-message-meta strong,
.app-shell[data-theme="dark"] .help-message-body {
  color: #eef4ff;
}

.app-shell[data-theme="dark"] .help-search-input,
.app-shell[data-theme="dark"] .help-compose-input {
  background: rgb(10 18 31 / 92%);
  border-color: #35506f;
  color: #eef4ff;
}

.app-shell[data-theme="dark"] .help-search-input::placeholder,
.app-shell[data-theme="dark"] .help-compose-input::placeholder {
  color: #89a2c4;
}

.app-shell[data-theme="dark"] .help-empty-panel {
  color: #c6d5e8;
}

@media (max-width: 960px) {
  .help-inbox-shell {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .help-inbox-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .help-inbox-shell:not(.is-mobile-thread-open) .help-inbox-main {
    display: none;
  }

  .help-inbox-shell.is-mobile-thread-open .help-inbox-sidebar {
    display: none;
  }

  .help-thread-row {
    gap: 0.18rem;
    padding: 0.65rem 0.7rem;
  }

  .help-thread-row-top,
  .help-thread-row-mid {
    gap: 0.4rem;
  }

  .help-thread-row-bottom {
    gap: 0.42rem;
  }

  .help-thread-name {
    font-size: 0.84rem;
  }

  .help-thread-time,
  .help-thread-email,
  .help-thread-preview {
    font-size: 0.72rem;
  }

  .help-thread-header {
    align-items: start;
    padding: 0.85rem 0.9rem;
  }

  .help-thread-header > .subtle {
    white-space: nowrap;
  }

  .help-mobile-back {
    display: inline-flex;
  }

  .help-message-list-admin {
    padding: 0.85rem 0.9rem;
  }

  .help-message-line {
    padding: 0.7rem 0.8rem;
  }

  .help-compose-admin {
    padding: 0.85rem 0.9rem;
  }
}

.admin-stat-line span {
  font-size: 0.78rem;
}

.admin-toggle-cell {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-feedback-panel {
  padding: 1rem !important;
}

.admin-detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-detail-card {
  display: grid;
  gap: 0.35rem;
}

.admin-detail-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-muted);
}

.admin-detail-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--sg-ink);
}

.admin-feedback-card {
  border-radius: 0.9rem;
}

.admin-ymove-summary {
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-telemetry-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sg-primary) 18%, var(--sg-border) 82%);
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(235 243 255 / 98%) 100%);
  color: #1f4f8d;
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-ymove-note {
  min-height: 5.5rem;
}

.admin-ymove-manual-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-ymove-candidate-card {
  display: grid;
  gap: 0.75rem;
}

.admin-ymove-candidate-media {
  display: grid;
  gap: 0.45rem;
  max-width: 14rem;
}

.admin-ymove-candidate-image,
.admin-ymove-candidate-image-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--sg-primary) 14%, var(--sg-border) 86%);
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(238 245 255 / 98%) 100%);
  box-shadow: 0 10px 24px rgb(23 62 126 / 10%);
}

.admin-ymove-candidate-image {
  display: block;
  object-fit: cover;
}

.admin-ymove-candidate-image-fallback {
  display: grid;
  place-items: center;
  color: #335985;
  font-size: 2rem;
  font-weight: 800;
}

.admin-ymove-candidate-link-row {
  font-size: 0.86rem;
}

.admin-ymove-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.form-control,
.form-select,
.btn {
  border-radius: var(--radius-sm);
}

.form-control,
.form-select {
  border-color: var(--sg-border-strong);
  background: var(--sg-surface);
  color: var(--sg-ink);
  min-height: 2.5rem;
  padding: 0.52rem 0.72rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #6aa6f2;
  box-shadow: var(--shadow-focus);
}

.autosave-indicator {
  text-align: right;
  color: var(--sg-muted);
  font-size: 0.85rem;
  margin-bottom: var(--space-2);
}

.session-top-bar__title {
  color: var(--sg-ink);
}

.oauth-btn {
  width: 100%;
  border: 1px solid var(--sg-border);
  background: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 0.6rem;
}

.oauth-btn.google { border-color: #a8c7fa; }
.oauth-btn.apple { border-color: #d4d7de; }
.oauth-btn.dev { border-color: #8fb8ee; background: #f3f8ff; }

.danger-zone {
  border-color: #f2bbbb;
}

@media (max-width: 1200px) {
  .top-meta {
    display: none;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-nav {
    position: sticky;
    left: 0;
    top: var(--topbar-h);
    width: 14rem;
    height: calc(100vh - var(--topbar-h));
    z-index: 20;
    overflow-y: auto;
  }

  .grid-2,
  .grid-3,
  .grid-session {
    grid-template-columns: 1fr;
  }

  .admin-kpi-grid,
  .admin-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-ymove-manual-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: var(--space-4);
  }

  .marketing-topbar {
    gap: 0.85rem;
  }
}

@media (max-width: 700px) {
  .app-shell.nav-open {
    height: 100vh;
    overflow: hidden;
  }

  .shell-body {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .top-bar {
    padding-inline: var(--space-3);
  }

  .side-nav {
    position: fixed;
    left: -18rem;
    top: var(--topbar-h);
    width: 16rem;
    max-width: calc(100vw - 1rem);
    height: calc(100vh - var(--topbar-h));
    z-index: 20;
    transition: left 0.22s ease;
    overflow-y: auto;
    border-top-right-radius: 1.2rem;
    border-bottom-right-radius: 1.2rem;
  }

  .side-nav.show {
    left: 0;
  }

  .side-nav-head {
    position: sticky;
    top: 0;
    background: var(--sg-panel-bg);
    z-index: 1;
  }

  .admin-kpi-grid,
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding-bottom: calc(var(--mobile-tabbar-h) + 1.2rem + env(safe-area-inset-bottom, 0px));
  }

  .session-section-head {
    gap: 0.45rem;
  }

  .session-section-head h3 {
    margin-bottom: 0.35rem !important;
  }

  .session-progress-copy {
    grid-auto-flow: column;
    align-items: end;
    gap: 0.35rem;
  }

  .session-progress-copy strong {
    font-size: 1.1rem;
  }

  .session-timeline-list {
    gap: 0.55rem;
  }

  .session-timeline-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "time side"
      "body body";
    gap: 0.45rem 0.75rem;
    align-items: start;
    padding: 0.72rem 0.8rem;
    border-radius: 0.85rem;
  }

  .session-timeline-time {
    grid-area: time;
  }

  .session-timeline-body {
    grid-area: body;
  }

  .session-timeline-side {
    grid-area: side;
    justify-items: end;
    text-align: right;
  }

  .session-timeline-time strong,
  .session-timeline-side strong {
    font-size: 0.98rem;
    line-height: 1.15;
  }

  .session-timeline-title {
    font-size: 1rem;
    line-height: 1.2;
  }

  .session-timeline-meta {
    font-size: 0.86rem;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    min-height: calc(var(--mobile-tabbar-h) + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(180deg, rgb(255 255 255 / 94%) 0%, rgb(248 251 255 / 98%) 100%);
    border-top: 1px solid rgb(201 219 242 / 92%);
    box-shadow: 0 -16px 34px rgb(23 62 126 / 10%);
    backdrop-filter: blur(14px);
  }

  .mobile-tab {
    display: grid;
    justify-items: center;
    gap: 0.22rem;
    padding: 0.45rem 0.2rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    color: #496584;
    text-decoration: none;
    min-width: 0;
  }

  .mobile-tab.active {
    color: #0d4f9a;
    background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
    border-color: #c8dbf5;
  }

  .mobile-tab-primary {
    color: var(--sg-on-primary);
    background: linear-gradient(135deg, var(--sg-primary-fill) 0%, var(--sg-primary-fill-bright) 100%);
    border-color: var(--sg-primary-fill);
    box-shadow: 0 12px 24px rgb(21 88 214 / 22%);
  }

  .mobile-tab-primary.active {
    color: var(--sg-on-primary);
    background: linear-gradient(135deg, var(--sg-primary-fill-strong) 0%, var(--sg-primary-fill) 100%);
    border-color: var(--sg-primary-fill-strong);
  }

  .mobile-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: rgb(233 241 255 / 90%);
    color: currentColor;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-tab-primary .mobile-tab-icon {
    background: rgb(255 255 255 / 18%);
    color: #ffffff;
  }

  .mobile-tab-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .top-bar {
    gap: 0.35rem;
    padding-inline: var(--space-3);
  }

  .top-meta {
    display: none;
  }

  .brand {
    padding: 0.45rem 0.6rem;
    border-radius: 1rem;
  }

  .brand-logo-wide {
    display: none;
  }

  .brand-logo-mark {
    display: block;
  }

  .top-actions {
    gap: 0.35rem;
  }

  .top-actions,
  .top-left {
    min-width: 0;
  }

  .user-menu {
    right: 0;
    left: auto;
  }

  .top-actions .btn {
    font-size: 0.875rem;
    padding-inline: 0.6rem;
  }

  .start-cta {
    min-height: 2.45rem;
    padding-inline: 0.8rem;
  }

  .user-chip > span:last-child {
    display: none;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: var(--space-4);
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: var(--space-4);
  }

  .kpi-chip {
    border-radius: 1rem;
    padding: 0.78rem 0.85rem 0.82rem;
    gap: 0.1rem;
    box-shadow: 0 12px 24px rgb(29 78 149 / 8%);
  }

  .kpi-chip::before {
    height: 0.24rem;
  }

  .kpi-label {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
  }

  .kpi-value {
    font-size: clamp(1.55rem, 6vw, 1.95rem);
  }

  .header-actions {
    margin-left: 0;
    width: 100%;
    justify-content: stretch;
  }

  .header-actions .btn {
    width: 100%;
  }

  .exercise-item {
    grid-template-columns: 1fr;
  }

  .exercise-library-shell__stats,
  .exercise-library-toolbar,
  .exercise-library-filters,
  .exercise-library-create__grid,
  .exercise-library-card {
    grid-template-columns: 1fr;
  }

  .exercise-library-filter-chip {
    min-height: 2.4rem;
  }

  .exercise-library-create-launch {
    grid-template-columns: 1fr;
  }

  .exercise-library-create-toggle {
    width: 100%;
  }

  .exercise-library-card {
    display: grid;
  }

  .exercise-library-card__actions {
    width: 100%;
    min-width: 0;
  }

  .exercise-library-card__actions .btn {
    flex: 1 1 0;
  }

  .goal-checkin-row {
    grid-template-columns: 1fr;
  }

  .chart-selection {
    width: 100%;
    justify-content: space-between;
  }

  .toast-stack {
    right: var(--space-2);
    left: var(--space-2);
    bottom: var(--space-2);
  }

  .toast-item {
    min-width: 0;
  }

  .dashboard-card {
    padding: var(--space-3);
  }

  .marketing-topbar {
    position: static;
    padding: 0.9rem;
    border-radius: 1rem;
  }

  .marketing-topbar::after {
    display: none;
  }

  .marketing-footer {
    gap: 0.4rem;
    text-align: center;
  }

  .hero-copy {
    gap: 0.95rem;
  }

  .hero-proof {
    gap: 0.5rem;
  }

  .hero-proof span {
    font-size: 0.8rem;
  }

  .card-title-row {
    align-items: flex-start;
  }

  .goal-status-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .goal-status-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
  }

  .goal-strategy-btn {
    margin-left: auto;
    justify-self: auto;
  }

  .lift-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem;
    padding-block: 0.55rem;
  }

  .lift-rank {
    width: 1.6rem;
    height: 1.6rem;
    margin-top: 0.1rem;
  }

  .lift-value {
    font-size: 0.98rem;
    text-align: left;
    white-space: normal;
  }

  .bar-chart {
    min-height: 6rem;
  }

  .activity-chart-summary {
    grid-template-columns: 1fr;
  }

  .session-flow-bar {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 0.85rem 0.9rem;
  }

  .session-flow-bar__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-flow-bar__actions .btn {
    min-width: 0;
  }

  .set-log-fields {
    grid-template-columns: repeat(3, minmax(0, max-content));
    gap: 0.55rem;
  }

  .rest-timer-widget {
    gap: 0.75rem;
    padding: 0.9rem;
    margin-bottom: 0.8rem;
  }

  .rest-timer-topline {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .rest-targets {
    justify-content: flex-start;
    width: 100%;
  }

  .rest-timer-buttons {
    width: 100%;
  }

  .rest-timer-buttons .btn {
    flex: 1 1 calc(50% - 0.3rem);
    min-width: 0;
  }

  .set-log-button {
    min-width: 0;
    width: 100%;
  }

  .session-exercise-nav__row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.65rem;
  }

  .session-exercise-nav__actions {
    justify-content: stretch;
  }

  .session-exercise-nav__actions .btn,
  .session-exercise-nav__add {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .main-content {
    padding: var(--space-3);
    padding-bottom: calc(var(--mobile-tabbar-h) + 2rem + env(safe-area-inset-bottom, 0px));
  }

  .card-sg,
  .state-card,
  .quick-actions {
    padding: var(--space-3);
  }

  .chart-selection {
    font-size: 0.92rem;
  }

  .session-flow-bar__actions {
    grid-template-columns: 1fr;
  }

  .marketing-shell {
    padding: 0.55rem;
  }

  .marketing-topbar-actions {
    flex-direction: column;
  }

  .marketing-topbar-actions .btn {
    width: 100%;
  }

  .hero-section,
  .content-section,
  .final-cta-card {
    border-radius: 1.15rem;
  }

  .hero-section {
    padding: 1rem;
  }

  .hero-visual {
    min-height: 20rem;
  }
}

@media (max-width: 480px) {
  .top-bar {
    padding-inline: 0.7rem;
  }

  .brand {
    padding-inline: 0.45rem;
  }

  .top-actions .start-cta {
    display: inline-flex;
    min-width: 0;
    min-height: 2.25rem;
    padding-inline: 0.7rem;
    border-radius: 0.9rem;
    font-size: 0.82rem;
  }

  .user-menu {
    position: fixed;
    top: calc(var(--topbar-h) - 0.35rem);
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
  }

  .mobile-tabbar {
    gap: 0.3rem;
    padding-inline: 0.5rem;
  }

  .mobile-tab {
    padding-inline: 0.05rem;
    padding-block: 0.4rem;
  }

  .mobile-tab-label {
    font-size: 0.66rem;
  }

  .mobile-tab-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .quick-actions {
    gap: 0.8rem;
    padding: 0.9rem;
  }

  .quick-actions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .quick-action {
    min-height: 0;
    padding: 0.85rem 0.9rem;
  }

  .quick-action__title {
    font-size: 0.98rem;
  }

  .quick-action__meta {
    font-size: 0.74rem;
  }

  .dashboard-kpis {
    gap: 0.6rem;
  }

  .kpi-chip {
    padding: 0.72rem 0.78rem 0.78rem;
  }

  .kpi-label {
    font-size: 0.65rem;
  }

  .kpi-value {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }

  .hero-copy h1 {
    font-size: clamp(2.15rem, 10vw, 2.8rem);
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .phone-screen {
    padding: 0.8rem;
  }
}

.app-shell[data-theme="dark"] .bar {
  background: linear-gradient(180deg, #7fb5ff 0%, #3d87f6 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}

.app-shell[data-theme="dark"] .chart-labels,
.app-shell[data-theme="dark"] .trend-label-row {
  color: var(--sg-muted);
}

.app-shell[data-theme="dark"] .chart-value {
  color: var(--sg-primary-strong);
}

.app-shell[data-theme="dark"] .lift-row {
  border-bottom-color: #29415d;
}

.app-shell[data-theme="dark"] .lift-rank {
  color: #dce9ff;
  background: #28415d;
}

.app-shell[data-theme="dark"] .lift-name,
.app-shell[data-theme="dark"] .lift-value {
  color: var(--sg-ink-soft);
}

.app-shell[data-theme="dark"] .coach-brief-card {
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 10%), transparent 30%),
    linear-gradient(180deg, rgb(19 30 44 / 98%) 0%, rgb(15 24 36 / 98%) 100%);
}

.app-shell[data-theme="dark"] .analytics-card {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(88 151 255 / 7%), transparent 40%),
    linear-gradient(180deg, rgb(18 28 41 / 98%) 0%, rgb(13 21 32 / 98%) 100%);
  box-shadow:
    0 14px 28px rgb(2 8 23 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 4%);
}

.app-shell[data-theme="dark"] .analytics-toolbar {
  background:
    radial-gradient(circle at top center, rgb(88 151 255 / 12%), transparent 40%),
    linear-gradient(180deg, rgb(21 33 49 / 98%) 0%, rgb(15 24 36 / 96%) 100%);
}

.app-shell[data-theme="dark"] .analytics-toolbar-toggle {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(88 151 255 / 12%), transparent 40%),
    linear-gradient(180deg, rgb(20 31 46 / 96%) 0%, rgb(16 25 38 / 96%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 4%),
    0 12px 24px rgb(2 8 23 / 16%);
}

.app-shell[data-theme="dark"] .analytics-toolbar-toggle:hover {
  border-color: #486b99;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 5%),
    0 14px 26px rgb(2 8 23 / 18%);
}

.app-shell[data-theme="dark"] .analytics-toolbar-toggle-copy span {
  color: #8ea5c5;
}

.app-shell[data-theme="dark"] .analytics-toolbar-toggle-copy strong {
  color: #e6eefc;
}

.app-shell[data-theme="dark"] .admin-section-title {
  color: #dce9ff;
}

.app-shell[data-theme="dark"] .admin-kpi-chip {
  border-color: #36506e;
  background:
    radial-gradient(circle at top right, rgb(88 151 255 / 10%), transparent 42%),
    linear-gradient(180deg, rgb(25 39 58 / 96%) 0%, rgb(17 28 42 / 96%) 100%);
  box-shadow:
    0 14px 28px rgb(2 8 23 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 4%);
}

.app-shell[data-theme="dark"] .admin-users-table-wrap {
  border: 1px solid #29415d;
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at top right, rgb(88 151 255 / 7%), transparent 42%),
    linear-gradient(180deg, rgb(18 28 41 / 98%) 0%, rgb(13 21 32 / 98%) 100%);
  box-shadow:
    0 16px 30px rgb(2 8 23 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 4%);
}

.app-shell[data-theme="dark"] .admin-users-table {
  color: #dce9ff;
  margin-bottom: 0;
  --bs-table-bg: transparent;
  --bs-table-color: #dce9ff;
  --bs-table-border-color: #29415d;
  --bs-table-striped-bg: transparent;
  --bs-table-striped-color: #dce9ff;
  --bs-table-hover-bg: rgb(28 43 64 / 45%);
  --bs-table-hover-color: #eff6ff;
}

.app-shell[data-theme="dark"] .admin-users-table thead th,
.app-shell[data-theme="dark"] .admin-users-table tfoot th {
  color: #f0f6ff;
  background: rgb(18 28 41 / 32%);
  border-bottom-color: #29415d;
}

.app-shell[data-theme="dark"] .admin-users-table tbody tr,
.app-shell[data-theme="dark"] .admin-users-table tbody td,
.app-shell[data-theme="dark"] .admin-users-table tfoot tr,
.app-shell[data-theme="dark"] .admin-users-table tfoot td,
.app-shell[data-theme="dark"] .admin-users-table tfoot th {
  background: transparent;
  border-color: #29415d;
}

.app-shell[data-theme="dark"] .admin-users-table td,
.app-shell[data-theme="dark"] .admin-users-table th {
  color: inherit;
}

.app-shell[data-theme="dark"] .admin-users-table strong {
  color: #f4f8ff;
}

.app-shell[data-theme="dark"] .admin-users-table .subtle {
  color: #9eb3d1;
  font-size: 0.72rem;
}

.app-shell[data-theme="dark"] .top-bar {
  color: #edf4ff;
  box-shadow: 0 18px 36px rgb(2 8 23 / 26%);
}

.app-shell[data-theme="dark"] .btn-icon {
  color: #dbe8ff;
  border-color: #345175;
  background: linear-gradient(180deg, rgb(24 39 61 / 96%) 0%, rgb(19 32 50 / 96%) 100%);
  box-shadow: 0 10px 24px rgb(2 8 23 / 18%);
}

.app-shell[data-theme="dark"] .top-meta {
  color: #96adcb;
}

.app-shell[data-theme="dark"] .user-chip {
  color: #edf4ff;
  border-color: #314d70;
  background: linear-gradient(180deg, rgb(24 39 61 / 90%) 0%, rgb(18 31 49 / 92%) 100%);
  box-shadow: 0 12px 24px rgb(2 8 23 / 18%);
}

.app-shell[data-theme="dark"] .user-chip:hover {
  border-color: #4d73a1;
  background: linear-gradient(180deg, rgb(28 46 71 / 94%) 0%, rgb(21 35 56 / 94%) 100%);
}

.app-shell[data-theme="dark"] .session-history-wrap {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 8%), transparent 26%),
    linear-gradient(180deg, rgb(14 24 37 / 96%) 0%, rgb(10 18 29 / 98%) 100%);
  box-shadow:
    0 14px 28px rgb(0 0 0 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 4%);
}

.app-shell[data-theme="dark"] .session-history-mobile-card {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 10%), transparent 28%),
    linear-gradient(180deg, rgb(14 24 37 / 96%) 0%, rgb(10 18 29 / 98%) 100%);
  box-shadow:
    0 14px 28px rgb(0 0 0 / 22%),
    inset 0 1px 0 rgb(255 255 255 / 4%);
}

.app-shell[data-theme="dark"] .session-history-table {
  color: #dce9ff;
  --bs-table-bg: transparent;
  --bs-table-color: #dce9ff;
  --bs-table-border-color: #29415d;
  --bs-table-striped-bg: transparent;
  --bs-table-striped-color: #dce9ff;
  --bs-table-hover-bg: rgb(28 43 64 / 32%);
  --bs-table-hover-color: #eff6ff;
}

.app-shell[data-theme="dark"] .session-history-table thead th {
  color: #9fb7d8;
  background: rgb(19 31 47 / 72%);
  border-bottom-color: #29415d;
}

.app-shell[data-theme="dark"] .session-history-table tbody tr,
.app-shell[data-theme="dark"] .session-history-table tbody td,
.app-shell[data-theme="dark"] .session-history-table tbody th {
  background: transparent;
  border-color: #29415d;
  color: inherit;
}

.app-shell[data-theme="dark"] .session-history-table__title {
  color: #f4f8ff;
}

.app-shell[data-theme="dark"] .session-history-table__description,
.app-shell[data-theme="dark"] .session-history-table .subtle {
  color: #9eb3d1;
}

.app-shell[data-theme="dark"] .session-history-save__label {
  color: #9eb3d1;
}

.app-shell[data-theme="dark"] .session-history-table__status.is-completed {
  color: #bdf2d2;
  background: rgb(24 78 54 / 55%);
  border-color: rgb(75 156 113 / 65%);
}

.app-shell[data-theme="dark"] .session-history-table__status.is-live {
  color: #ffe5a3;
  background: rgb(112 79 14 / 42%);
  border-color: rgb(184 146 68 / 58%);
}

@media (max-width: 991.98px) {
  .session-history-table > :not(caption) > * > * {
    padding: 0.8rem 0.85rem;
  }

  .session-history-table__description {
    max-width: 14rem;
  }

  .session-history-table__actions .btn {
    min-width: 6.4rem;
  }
}

@media (max-width: 767.98px) {
  .session-history-mobile-list {
    display: grid;
  }

  .session-history-wrap {
    display: none;
  }

  .session-history-mobile-card {
    border-color: var(--sg-border);
    background: var(--sg-card-bg);
    box-shadow: var(--shadow-1);
  }

  .session-history-mobile-card__description {
    max-width: none;
  }

  .session-history-table__save {
    justify-content: stretch;
  }

  .session-history-table__save .form-control,
  .session-history-table__save .btn {
    width: 100%;
  }

  .profile-preferences__top,
  .profile-preferences__section-head {
    grid-template-columns: 1fr;
    display: grid;
    gap: 0.35rem;
  }

  .profile-preferences__grid--two,
  .profile-preferences__grid--three,
  .profile-preferences__grid--four {
    grid-template-columns: 1fr;
  }

  .profile-toggle,
  .profile-install-card,
  .profile-section-card {
    padding: 0.85rem 0.9rem;
  }

  .profile-install-card {
    display: grid;
    gap: 0.75rem;
  }

  .profile-install-card .btn {
    width: 100%;
  }

  .profile-section-card__head,
  .profile-identity-card,
  .profile-account-links__row {
    display: grid;
    gap: 0.45rem;
  }
}

.app-shell[data-theme="dark"] .admin-users-table .admin-stat-line span {
  color: #a9bedc;
}

.app-shell[data-theme="dark"] .admin-users-table .form-check-input {
  background-color: rgb(20 31 46 / 96%);
  border-color: #486b99;
}

.app-shell[data-theme="dark"] .session-top-bar__title {
  color: #edf3ff;
}

.app-shell[data-theme="dark"] .admin-users-table .btn-outline-secondary {
  border-color: #456a99;
  background: rgb(18 30 47 / 88%);
  color: #e6eefc;
}

.app-shell[data-theme="dark"] .admin-users-table .btn-outline-secondary:hover {
  border-color: #5d86bb;
  background: rgb(31 49 74 / 94%);
  color: #f6faff;
}

.app-shell[data-theme="dark"] .admin-feedback-panel {
  background:
    linear-gradient(180deg, rgb(15 24 36 / 96%) 0%, rgb(12 20 30 / 96%) 100%);
}

.app-shell[data-theme="dark"] .admin-detail-card {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(88 151 255 / 8%), transparent 40%),
    linear-gradient(180deg, rgb(20 31 46 / 96%) 0%, rgb(15 24 36 / 96%) 100%);
}

.app-shell[data-theme="dark"] .admin-detail-label {
  color: #9eb3d1;
}

.app-shell[data-theme="dark"] .admin-detail-value {
  color: #f4f8ff;
}

.app-shell[data-theme="dark"] .admin-feedback-card {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(88 151 255 / 8%), transparent 42%),
    linear-gradient(180deg, rgb(20 31 46 / 96%) 0%, rgb(15 24 36 / 96%) 100%);
}

.app-shell[data-theme="dark"] .admin-ymove-candidate-card {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(88 151 255 / 8%), transparent 42%),
    linear-gradient(180deg, rgb(20 31 46 / 96%) 0%, rgb(15 24 36 / 96%) 100%);
}

.app-shell[data-theme="dark"] .admin-feedback-card pre {
  color: #dce9ff;
}

.app-shell[data-theme="dark"] .side-nav-title,
.app-shell[data-theme="dark"] .nav-group-label {
  color: #b7cae6;
}

.app-shell[data-theme="dark"] .side-nav .nav-item {
  color: #d6e3f7;
}

.app-shell[data-theme="dark"] .side-nav .nav-item:hover {
  color: #f3f8ff;
  border-color: #36506e;
  background: rgb(26 40 59 / 88%);
}

.app-shell[data-theme="dark"] .nav-item-title {
  color: inherit;
}

.app-shell[data-theme="dark"] .nav-item-meta {
  color: #9fb6d6;
}

.app-shell[data-theme="dark"] .side-nav .nav-item.active {
  color: #8fb6ff;
  border-color: #456a99;
  background:
    linear-gradient(180deg, rgb(43 64 95 / 96%) 0%, rgb(27 43 66 / 96%) 100%);
  box-shadow:
    inset 4px 0 0 #4e86ff,
    0 14px 28px rgb(2 8 23 / 18%);
}

.app-shell[data-theme="dark"] .side-nav .nav-item.active .nav-item-meta {
  color: #bfd3f3;
}

.app-shell[data-theme="dark"] .analytics-toolbar-toggle-icon {
  border-color: #36506e;
  background: linear-gradient(180deg, rgb(24 38 56 / 96%) 0%, rgb(19 31 46 / 96%) 100%);
  color: #a9c8f5;
}

.app-shell[data-theme="dark"] .analytics-toolbar label,
.app-shell[data-theme="dark"] .subtle,
.app-shell[data-theme="dark"] .analytics-share-link,
.app-shell[data-theme="dark"] .trend-label-row,
.app-shell[data-theme="dark"] .bodyweight-callout span,
.app-shell[data-theme="dark"] .bodyweight-chip span,
.app-shell[data-theme="dark"] .insight-block span,
.app-shell[data-theme="dark"] .digest-topline span,
.app-shell[data-theme="dark"] .digest-metrics span,
.app-shell[data-theme="dark"] .comparison-meta,
.app-shell[data-theme="dark"] .detail-kpis span,
.app-shell[data-theme="dark"] .prompt-label {
  color: #9eb3d1;
}

.app-shell[data-theme="dark"] .analytics-card :is(h2, h3, h4) {
  color: #f2f7ff;
  letter-spacing: -0.02em;
}

.app-shell[data-theme="dark"] .eyebrow {
  color: #8fb2df;
}

.app-shell[data-theme="dark"] .analytics-toolbar :is(.form-control, .form-select, .form-control:focus, .form-select:focus) {
  border-color: #36506e;
  background: rgb(20 31 46 / 96%);
  color: #e6eefc;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}

.app-shell[data-theme="dark"] .analytics-toolbar :is(.form-control, .form-select)::placeholder {
  color: #8ea5c5;
}

.app-shell[data-theme="dark"] .analytics-share-link {
  border-color: #36506e;
  background: rgb(18 28 41 / 72%);
}

.app-shell[data-theme="dark"] .analytics-section-hint {
  color: #7895b9;
}

.app-shell[data-theme="dark"] .analytics-section-hint strong {
  color: #dce9ff;
}

.app-shell[data-theme="dark"] .analytics-section-pill {
  border-color: #29415d;
  background:
    radial-gradient(circle at top right, rgb(88 151 255 / 10%), transparent 44%),
    linear-gradient(180deg, rgb(21 33 49 / 98%) 0%, rgb(16 25 38 / 98%) 100%);
  box-shadow:
    0 14px 28px rgb(2 8 23 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 4%);
  color: #dce9ff;
}

.app-shell[data-theme="dark"] .analytics-section-pill small {
  color: #9eb3d1;
}

.app-shell[data-theme="dark"] .analytics-section-pill:hover {
  border-color: #486b99;
  background:
    radial-gradient(circle at top right, rgb(98 156 255 / 14%), transparent 46%),
    linear-gradient(180deg, #182638 0%, #132031 100%);
}

.app-shell[data-theme="dark"] .analytics-section-pill.active {
  border-color: #5b8eff;
  background:
    radial-gradient(circle at top right, rgb(98 156 255 / 18%), transparent 46%),
    linear-gradient(180deg, #20324a 0%, #172639 100%);
  box-shadow:
    0 14px 28px rgb(41 91 194 / 18%),
    inset 0 0 0 1px rgb(255 255 255 / 5%);
  color: #f5f9ff;
}

.app-shell[data-theme="dark"] .mobile-tabbar {
  background:
    linear-gradient(180deg, rgb(18 28 41 / 94%) 0%, rgb(14 22 33 / 98%) 100%);
  border-top-color: #24384d;
  box-shadow: 0 -16px 34px rgb(2 8 23 / 24%);
}

.app-shell[data-theme="dark"] .mobile-tab {
  color: var(--sg-muted);
}

.app-shell[data-theme="dark"] .mobile-tab.active {
  color: var(--sg-primary-strong);
  background: linear-gradient(180deg, #172536 0%, #13202f 100%);
  border-color: #28405a;
}

.app-shell[data-theme="dark"] .mobile-tab-icon {
  background: #152131;
}

.app-shell[data-theme="dark"] .signal-row.positive {
  border-color: #2f5b43;
  background: linear-gradient(180deg, #13261c 0%, #101e18 100%);
}

.app-shell[data-theme="dark"] .signal-row.warning,
.app-shell[data-theme="dark"] .signal-row.focus {
  border-color: #6a562a;
  background: linear-gradient(180deg, #2b2413 0%, #211c10 100%);
}

.app-shell[data-theme="dark"] .signal-row.critical {
  border-color: #6a3232;
  background: linear-gradient(180deg, #2a1717 0%, #201212 100%);
}

.app-shell[data-theme="dark"] .comparison-card.positive {
  background: linear-gradient(180deg, #13261c 0%, #101e18 100%);
}

.app-shell[data-theme="dark"] .comparison-card.warning {
  background: linear-gradient(180deg, #2b2413 0%, #211c10 100%);
}

.app-shell[data-theme="dark"] .comparison-card,
.app-shell[data-theme="dark"] .brief-block,
.app-shell[data-theme="dark"] .detail-callout,
.app-shell[data-theme="dark"] .copilot-section,
.app-shell[data-theme="dark"] .timeline-v2-row,
.app-shell[data-theme="dark"] .bodyweight-callout,
.app-shell[data-theme="dark"] .bodyweight-chip,
.app-shell[data-theme="dark"] .insight-card,
.app-shell[data-theme="dark"] .digest-card,
.app-shell[data-theme="dark"] .exercise-trend-card {
  border-color: #29415d;
  background: linear-gradient(180deg, rgb(20 31 46 / 94%) 0%, rgb(15 24 36 / 94%) 100%);
}

.app-shell[data-theme="dark"] .trend-bars {
  border-color: #29415d;
  background: linear-gradient(180deg, rgb(20 31 46 / 94%) 0%, rgb(15 24 36 / 94%) 100%);
}

.app-shell[data-theme="dark"] .muscle-diagnostic,
.app-shell[data-theme="dark"] .priority-row {
  border-color: #29415d;
}

.app-shell[data-theme="dark"] .brief-block strong,
.app-shell[data-theme="dark"] .muscle-head strong,
.app-shell[data-theme="dark"] .priority-row strong,
.app-shell[data-theme="dark"] .digest-card strong,
.app-shell[data-theme="dark"] .bodyweight-callout strong,
.app-shell[data-theme="dark"] .bodyweight-chip strong,
.app-shell[data-theme="dark"] .detail-kpis strong,
.app-shell[data-theme="dark"] .comparison-card strong,
.app-shell[data-theme="dark"] .exercise-trend-card strong,
.app-shell[data-theme="dark"] .insight-card-head strong,
.app-shell[data-theme="dark"] .signal-row strong,
.app-shell[data-theme="dark"] .timeline-v2-row strong {
  color: #e6eefc;
}

.app-shell[data-theme="dark"] .muscle-stats,
.app-shell[data-theme="dark"] .priority-stats,
.app-shell[data-theme="dark"] .priority-row .subtle,
.app-shell[data-theme="dark"] .detail-callout p,
.app-shell[data-theme="dark"] .copilot-action span,
.app-shell[data-theme="dark"] .annotation-row,
.app-shell[data-theme="dark"] .signal-row span {
  color: #a8bdd8;
}

.app-shell[data-theme="dark"] .signal-row p,
.app-shell[data-theme="dark"] .copilot-response p,
.app-shell[data-theme="dark"] .analytics-card p:not(.subtle) {
  color: #d6e2f3;
}

.app-shell[data-theme="dark"] .copilot-action strong,
.app-shell[data-theme="dark"] .copilot-response-head strong,
.app-shell[data-theme="dark"] .copilot-section strong,
.app-shell[data-theme="dark"] .timeline-date strong,
.app-shell[data-theme="dark"] .timeline-side strong,
.app-shell[data-theme="dark"] .timeline-body strong {
  color: #e6eefc;
}

.app-shell[data-theme="dark"] .copilot-section div,
.app-shell[data-theme="dark"] .timeline-body,
.app-shell[data-theme="dark"] .timeline-tags span,
.app-shell[data-theme="dark"] .timeline-date span,
.app-shell[data-theme="dark"] .timeline-side span {
  color: #a8bdd8;
}

.app-shell[data-theme="dark"] .copilot-response {
  border-color: #29415d;
  background: linear-gradient(180deg, rgb(20 31 46 / 94%) 0%, rgb(15 24 36 / 94%) 100%);
  color: #e8f0ff;
}

.app-shell[data-theme="dark"] .metric-bar {
  background: #223447;
}

.app-shell[data-theme="dark"] .status-pill {
  background: #1b2a3c;
  color: #bdd0ea;
}

.app-shell[data-theme="dark"] .status-pill.surging,
.app-shell[data-theme="dark"] .status-pill.balanced {
  background: #163423;
  color: #8fe0b5;
}

.app-shell[data-theme="dark"] .status-pill.building,
.app-shell[data-theme="dark"] .status-pill.focus {
  background: #172d49;
  color: #9cc7ff;
}

.app-shell[data-theme="dark"] .status-pill.slipping,
.app-shell[data-theme="dark"] .status-pill.overreaching,
.app-shell[data-theme="dark"] .status-pill.undertrained {
  background: #3a2715;
  color: #ffca8a;
}

.app-shell[data-theme="dark"] .status-pill.stalled,
.app-shell[data-theme="dark"] .status-pill.monitor {
  background: #243447;
  color: #c3d1e3;
}

.app-shell[data-theme="dark"] .exercise-diagnostic,
.app-shell[data-theme="dark"] .copilot-action {
  border-color: #29415d;
  background: linear-gradient(180deg, rgb(20 31 46 / 96%) 0%, rgb(16 25 38 / 96%) 100%);
  color: #e8f0ff;
}

.app-shell[data-theme="dark"] .exercise-diagnostic.selected,
.app-shell[data-theme="dark"] .copilot-action.selected {
  border-color: #5b8eff;
  box-shadow: inset 0 0 0 1px rgb(91 142 255 / 48%), 0 10px 20px rgb(41 91 194 / 16%);
}

.app-shell[data-theme="dark"] .exercise-topline strong {
  color: #f2f6ff;
}

.app-shell[data-theme="dark"] .exercise-topline span,
.app-shell[data-theme="dark"] .exercise-metrics-grid {
  color: #9fb1cb;
}

.app-shell[data-theme="dark"] .annotation-row,
.app-shell[data-theme="dark"] .sparkline-track {
  color: #d6e0f0;
}

.app-shell[data-theme="dark"] .detail-kpis > div {
  border-color: #29415d;
  background: linear-gradient(180deg, rgb(20 31 46 / 96%) 0%, rgb(16 25 38 / 96%) 100%);
}

.app-shell[data-theme="dark"] .copilot-response .prompt-box {
  border-color: #36506e;
  background: #0f1825;
  color: #dce9ff;
}

.app-shell[data-theme="dark"] .insight-card.high {
  background: linear-gradient(180deg, #14243a 0%, #101d2f 100%);
}

.app-shell[data-theme="dark"] .insight-card.medium {
  background: linear-gradient(180deg, #2b2413 0%, #211c10 100%);
}

.app-shell[data-theme="dark"] .insight-card.low {
  background: linear-gradient(180deg, #172231 0%, #121b29 100%);
}

.app-shell[data-theme="dark"] .trend-bar {
  background: linear-gradient(180deg, #8cbcff 0%, #3d87f6 100%);
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 16%);
}

.app-shell[data-theme="dark"] .lift-trend-row {
  border-color: #28405c;
  background:
    radial-gradient(circle at top right, rgb(95 157 255 / 10%), transparent 34%),
    linear-gradient(180deg, rgb(18 29 43 / 96%) 0%, rgb(13 22 34 / 98%) 100%);
  box-shadow:
    0 14px 28px rgb(2 8 23 / 18%),
    inset 0 1px 0 rgb(255 255 255 / 4%);
}

.app-shell[data-theme="dark"] a.lift-trend-row {
  color: inherit;
}

.app-shell[data-theme="dark"] .lift-trend-row.selectable:hover {
  border-color: #4d79ab;
  background:
    radial-gradient(circle at top right, rgb(111 168 255 / 16%), transparent 38%),
    linear-gradient(180deg, rgb(20 33 49 / 98%) 0%, rgb(15 26 39 / 98%) 100%);
  box-shadow:
    0 16px 32px rgb(2 8 23 / 22%),
    inset 0 0 0 1px rgb(111 168 255 / 16%);
}

.app-shell[data-theme="dark"] .lift-trend-head strong {
  color: #f2f7ff;
}

.app-shell[data-theme="dark"] .lift-trend-subtle {
  color: #9ab0ca;
}

.app-shell[data-theme="dark"] .lift-trend-delta.up {
  color: #7db4ff;
}

.app-shell[data-theme="dark"] .lift-trend-delta.down {
  color: #f0b36c;
}

.app-shell[data-theme="dark"] .sparkline-line {
  stroke: #7fc0ff;
  filter: drop-shadow(0 0 6px rgb(86 171 255 / 22%));
}

.app-shell[data-theme="dark"] .rest-timer-widget {
  border-color: #29415d !important;
  background:
    radial-gradient(circle at top left, rgb(88 151 255 / 16%), transparent 34%),
    linear-gradient(135deg, #162233 0%, #111a28 52%, #0f1825 100%) !important;
  box-shadow: 0 14px 34px rgb(2 8 23 / 20%) !important;
}

.app-shell[data-theme="dark"] .session-next-control {
  border-color: #29415d;
  background: rgb(13 22 34 / 58%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
}

.app-shell[data-theme="dark"] .session-next-control__kicker,
.app-shell[data-theme="dark"] .session-next-control__picker .form-label {
  color: #9fb7d8;
}

.app-shell[data-theme="dark"] .session-next-control__next-link {
  color: #dce9ff;
  text-decoration-color: rgb(111 168 255 / 45%);
}

.app-shell[data-theme="dark"] .session-next-control__next-link.is-static {
  color: #a8bdd8;
}

.app-shell[data-theme="dark"] .rest-timer-exercise__title {
  color: var(--sg-ink);
}

.app-shell[data-theme="dark"] .rest-timer-exercise__meta {
  color: #a8bdd8;
}

.app-shell[data-theme="dark"] .rest-timer-exercise__meta span {
  border-color: #355277;
  background: rgb(18 32 50 / 68%);
}

.app-shell[data-theme="dark"] .session-flow-bar {
  border-color: #29415d;
  background:
    radial-gradient(circle at top left, rgb(88 151 255 / 12%), transparent 34%),
    linear-gradient(180deg, #162233 0%, #111a28 100%);
}

.app-shell[data-theme="dark"] .session-flow-bar__kicker {
  color: #9fb1cb !important;
}

.app-shell[data-theme="dark"] .session-flow-bar__title {
  color: #edf3ff !important;
}

.app-shell[data-theme="dark"] .session-flow-bar__hint {
  color: #c7d6ea !important;
}

.app-shell[data-theme="dark"] .rest-timer-kicker,
.app-shell[data-theme="dark"] .rest-timer-status,
.app-shell[data-theme="dark"] .rest-target,
.app-shell[data-theme="dark"] .set-progress-text,
.app-shell[data-theme="dark"] .exercise-kicker,
.app-shell[data-theme="dark"] .exercise-notes,
.app-shell[data-theme="dark"] .set-log-kicker,
.app-shell[data-theme="dark"] .set-log-header,
.app-shell[data-theme="dark"] .set-field > span {
  color: #9fb1cb !important;
}

.app-shell[data-theme="dark"] .rest-timer-display,
.app-shell[data-theme="dark"] .exercise-title,
.app-shell[data-theme="dark"] .set-log-title {
  color: var(--sg-ink) !important;
  text-shadow: none !important;
}

.app-shell[data-theme="dark"] .rest-targets {
  border-color: #2a415d !important;
  background: rgb(18 28 41 / 72%) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%) !important;
}

.app-shell[data-theme="dark"] .rest-target {
  border-color: #36506e !important;
  background: rgb(20 31 46 / 96%) !important;
  box-shadow: 0 4px 10px rgb(2 8 23 / 18%) !important;
}

.app-shell[data-theme="dark"] .rest-target:hover {
  border-color: #5a82b6 !important;
  background: #182638 !important;
}

.app-shell[data-theme="dark"] .rest-timer-widget.is-met {
  border-color: #2f5b43 !important;
  background:
    radial-gradient(circle at top left, rgb(41 168 111 / 14%), transparent 34%),
    linear-gradient(135deg, #13261c 0%, #101e18 55%, #0f1b16 100%) !important;
}

.app-shell[data-theme="dark"] .rest-timer-widget.is-met .rest-timer-kicker,
.app-shell[data-theme="dark"] .rest-timer-widget.is-met .rest-timer-status,
.app-shell[data-theme="dark"] .rest-timer-widget.is-met .rest-timer-display {
  color: #86d8ae !important;
}

.app-shell[data-theme="dark"] .rest-timer-widget.is-paused {
  border-color: #39485a !important;
  background:
    radial-gradient(circle at top left, rgb(111 132 156 / 10%), transparent 34%),
    linear-gradient(135deg, #171f2b 0%, #121924 55%, #10161f 100%) !important;
}

.app-shell[data-theme="dark"] .current-exercise-panel {
  background:
    radial-gradient(circle at top left, rgb(88 151 255 / 12%), transparent 36%),
    linear-gradient(180deg, #162233 0%, #111a28 100%) !important;
}

.app-shell[data-theme="dark"] .exercise-kicker,
.app-shell[data-theme="dark"] .set-progress-text {
  color: #98b4d8 !important;
}

.app-shell[data-theme="dark"] .exercise-title {
  color: #eef4ff !important;
}

.app-shell[data-theme="dark"] .exercise-progress-card {
  border-color: #2a415d !important;
  background: rgb(18 28 41 / 92%) !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%) !important;
}

.app-shell[data-theme="dark"] .set-progress-bar {
  background: #223447 !important;
}

.app-shell[data-theme="dark"] .muscle-pill-secondary {
  background: #152131 !important;
  color: var(--sg-ink) !important;
  border-color: #2a415d !important;
}

@media (max-width: 991.98px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }
}

.analytics-v2 {
  display: grid;
  gap: 0.9rem;
}

.analytics-section-nav {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.45rem;
  margin: 0 -0.1rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.analytics-section-nav::-webkit-scrollbar {
  display: none;
}

.analytics-section-pill {
  display: grid;
  gap: 0.2rem;
  flex: 0 0 min(16rem, 78vw);
  min-width: 0;
  padding: 0.95rem 1rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgb(124 178 236 / 24%);
  background:
    radial-gradient(circle at top right, rgb(88 147 255 / 8%), transparent 42%),
    linear-gradient(180deg, rgb(255 255 255 / 98%) 0%, rgb(240 247 255 / 98%) 100%);
  box-shadow: 0 10px 24px rgb(15 23 42 / 6%);
  color: #17395e;
  text-align: left;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}

.analytics-section-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid rgb(124 178 236 / 28%);
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(233 242 255 / 92%) 100%);
  color: #335b88;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.analytics-section-pill-label {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
}

.analytics-section-pill small {
  color: #5f7692;
  font-size: 0.78rem;
  line-height: 1.2;
}

.analytics-section-pill:hover {
  transform: translateY(-1px);
  border-color: rgb(91 142 255 / 34%);
  box-shadow: 0 14px 28px rgb(15 23 42 / 10%);
}

.analytics-section-pill.active {
  border-color: rgb(91 142 255 / 48%);
  background:
    radial-gradient(circle at top right, rgb(103 148 255 / 20%), transparent 44%),
    linear-gradient(180deg, rgb(232 242 255 / 100%) 0%, rgb(217 233 255 / 100%) 100%);
  box-shadow:
    0 16px 30px rgb(71 112 255 / 20%),
    inset 0 0 0 1px rgb(255 255 255 / 45%);
}

.analytics-section-pill.active .analytics-section-pill-icon {
  border-color: rgb(91 142 255 / 34%);
  background: linear-gradient(180deg, rgb(255 255 255 / 100%) 0%, rgb(216 233 255 / 100%) 100%);
  color: #214d8f;
}

.analytics-toolbar,
.analytics-card {
  min-width: 0;
}

.analytics-toolbar {
  display: grid;
  gap: 1rem;
}

.analytics-toolbar-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgb(124 178 236 / 24%);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, rgb(88 147 255 / 8%), transparent 38%),
    linear-gradient(180deg, rgb(255 255 255 / 72%) 0%, rgb(241 247 255 / 72%) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 40%),
    0 10px 22px rgb(9 30 66 / 6%);
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.analytics-toolbar-toggle:hover {
  border-color: rgb(91 142 255 / 34%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 45%),
    0 14px 26px rgb(9 30 66 / 8%);
  transform: translateY(-1px);
}

.analytics-toolbar-toggle-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.analytics-toolbar-toggle-copy span {
  color: #7390b1;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-toolbar-toggle-copy strong {
  color: #17395e;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.analytics-toolbar-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.75rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgb(124 178 236 / 32%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 70%) 0%, rgb(233 242 255 / 70%) 100%);
  color: #335b88;
  font-size: 0.8rem;
  font-weight: 800;
}

.analytics-card {
  background: var(--sg-card-bg);
  border: 1px solid var(--sg-border);
  border-radius: 1rem;
  padding: 0.95rem;
  box-shadow: 0 10px 24px rgb(15 23 42 / 5%);
}

.analytics-snapshot,
.analytics-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.95fr);
  gap: 0.9rem;
  align-items: start;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.coach-brief-card {
  display: grid;
  gap: 0.85rem;
  background:
    radial-gradient(circle at top right, rgb(11 111 232 / 10%), transparent 30%),
    linear-gradient(180deg, #fdfefe 0%, #f6fbff 100%);
}

.coach-brief-head,
.card-header-inline,
.exercise-topline,
.muscle-head,
.timeline-v2-row,
.copilot-response-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-muted);
}

.confidence-ring {
  min-width: 5.5rem;
  min-height: 5.5rem;
  border-radius: 50%;
  border: 6px solid var(--sg-border);
  display: grid;
  place-items: center;
  background: var(--sg-surface);
  text-align: center;
}

.confidence-ring strong {
  font-size: 1.3rem;
  line-height: 1;
}

.confidence-ring span {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--sg-muted);
}

.brief-grid,
.detail-kpis,
.copilot-actions,
.copilot-sections {
  display: grid;
  gap: 0.65rem;
}

.brief-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brief-block,
.signal-row,
.comparison-card,
.copilot-section,
.detail-callout,
.muscle-diagnostic,
.timeline-v2-row {
  border: 1px solid var(--sg-soft-block-border);
  border-radius: 0.9rem;
  background: var(--sg-soft-block-bg);
  padding: 0.75rem;
}

.brief-block span,
.comparison-meta,
.exercise-metrics-grid,
.muscle-stats,
.timeline-date span,
.timeline-side span,
.signal-row span,
.copilot-action span,
.annotation-row {
  color: var(--sg-muted);
  font-size: 0.82rem;
}

.comparison-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
}

.signal-row {
  display: grid;
  gap: 0.4rem;
}

.signal-row strong {
  color: #17395e;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
}

.signal-stack,
.diagnostic-list,
.muscle-diagnostic-list,
.timeline-v2,
.insight-grid,
.share-actions {
  display: grid;
  gap: 0.65rem;
}

.signal-stack {
  align-content: start;
}

.analytics-priority-list {
  display: grid;
  gap: 0;
}

.priority-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--sg-soft-block-border);
}

.priority-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.priority-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--sg-muted);
}

.analytics-share-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  overflow-wrap: anywhere;
}

.analytics-section-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.15rem;
  color: #5f7899;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.analytics-section-hint strong {
  color: #4a6587;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
}

.trend-card,
.insights-card,
.share-card {
  display: grid;
  gap: 1rem;
}

.trend-chart-shell {
  display: grid;
  gap: 0.65rem;
}

.trend-bars {
  min-height: 10rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: end;
  gap: 0.28rem;
  padding: 0.8rem;
  border: 1px solid var(--sg-soft-block-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--sg-surface-soft) 0%, var(--sg-soft-block-bg) 100%);
}

.trend-bar-wrap {
  height: 100%;
  display: flex;
  align-items: end;
}

.trend-bar,
.timeline-button {
  appearance: none;
  -webkit-appearance: none;
}

.trend-bar {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #8bbcf7 0%, #0b6fe8 100%);
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 28%);
}

.trend-label-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--sg-muted);
  font-size: 0.72rem;
}

.trend-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bodyweight-callout {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem;
  border: 1px solid var(--sg-soft-block-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--sg-surface) 0%, var(--sg-soft-block-bg) 100%);
}

.bodyweight-callout strong {
  font-size: 1.8rem;
  color: var(--sg-ink);
}

.bodyweight-callout span,
.bodyweight-chip span,
.insight-block span {
  color: var(--sg-muted);
  font-size: 0.82rem;
}

.bodyweight-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.6rem, 1fr));
  gap: 0.6rem;
}

.bodyweight-chip,
.insight-card {
  display: grid;
  gap: 0.25rem;
  border: 1px solid var(--sg-soft-block-border);
  border-radius: 0.9rem;
  padding: 0.7rem;
  background: var(--sg-soft-block-bg);
}

.bodyweight-chip strong {
  font-size: 1rem;
  color: var(--sg-ink);
}

.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.insight-card.high {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.insight-card.medium {
  background: linear-gradient(180deg, #fffdf9 0%, #fff7ec 100%);
}

.insight-card.low {
  background: linear-gradient(180deg, #fcfdff 0%, #f7f9fc 100%);
}

.insight-card-head {
  display: grid;
  gap: 0.5rem;
}

.insight-card-head strong {
  color: var(--sg-ink);
}

.insight-block {
  display: grid;
  gap: 0.2rem;
}

.share-actions {
  grid-template-columns: repeat(2, minmax(0, max-content));
  align-items: center;
}

.signal-row p,
.detail-callout p,
.copilot-response p {
  margin-bottom: 0.15rem;
}

.copilot-action strong,
.copilot-response-head strong,
.copilot-section strong,
.timeline-date strong,
.timeline-side strong,
.timeline-body strong {
  color: var(--sg-ink);
}

.copilot-section div,
.timeline-body,
.timeline-tags span,
.timeline-date span,
.timeline-side span {
  color: var(--sg-muted);
}

.signal-row.positive {
  border-color: #b7ddc0;
  background: #f7fcf8;
}

.signal-row.warning,
.signal-row.focus {
  border-color: #f1d39b;
  background: #fffaf1;
}

.signal-row.critical {
  border-color: #f1b4b4;
  background: #fff7f7;
}

.comparison-card strong {
  font-size: 1.45rem;
  color: var(--sg-ink);
}

.comparison-card.positive {
  background: linear-gradient(180deg, #f9fefb 0%, #f2fbf6 100%);
}

.comparison-card.warning {
  background: linear-gradient(180deg, #fffdf7 0%, #fff9ef 100%);
}

.exercise-diagnostic,
.copilot-action {
  width: 100%;
  border: 1px solid var(--sg-soft-block-border);
  border-radius: 0.95rem;
  background: linear-gradient(180deg, var(--sg-surface) 0%, var(--sg-soft-block-bg) 100%);
  padding: 0.8rem;
  text-align: left;
  color: var(--sg-ink);
}

.exercise-diagnostic.selected,
.copilot-action.selected {
  border-color: #9fc3ee;
  box-shadow: inset 0 0 0 1px #b9d4f5, 0 10px 24px rgb(11 111 232 / 10%);
}

.exercise-topline > div {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.exercise-topline strong {
  color: var(--sg-ink);
  font-size: 1.05rem;
  line-height: 1.15;
}

.exercise-topline span {
  color: var(--sg-muted);
}

.exercise-metrics-grid,
.muscle-stats,
.timeline-tags,
.bullet-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.exercise-metrics-grid {
  color: var(--sg-muted);
}

.sparkline-track,
.metric-bar {
  width: 100%;
  min-height: 0.6rem;
  border-radius: 999px;
  background: var(--sg-progress-track);
  padding: 0.35rem 0.6rem;
}

.annotation-row {
  color: var(--sg-ink-soft);
  line-height: 1.35;
}

.metric-bar {
  padding: 0;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2f8eff 0%, #0b6fe8 100%);
  border-radius: inherit;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: #edf2f8;
  color: #44607c;
}

.status-pill.surging,
.status-pill.balanced {
  background: #dcfce7;
  color: #166534;
}

.status-pill.building,
.status-pill.focus {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-pill.slipping,
.status-pill.overreaching,
.status-pill.undertrained {
  background: #fff7ed;
  color: #b45309;
}

.status-pill.stalled,
.status-pill.monitor {
  background: #f1f5f9;
  color: #475569;
}

.detail-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-kpis > div {
  display: grid;
  gap: 0.15rem;
  border: 1px solid #e1eaf4;
  border-radius: 0.85rem;
  padding: 0.65rem;
  background: #f8fbff;
}

.detail-kpis span {
  font-size: 0.72rem;
  color: #6b7f95;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-kpis strong {
  font-size: 1.1rem;
}

.exercise-trend-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid #dde7f0;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #fcfdff 0%, #f7fbff 100%);
  padding: 0.8rem;
}

.exercise-trend-shell {
  display: grid;
  gap: 0.45rem;
}

.exercise-trend-chart {
  width: 100%;
  height: 11rem;
  display: block;
  border: 1px solid #dce7f1;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgb(219 234 254 / 55%) 0%, rgb(255 255 255 / 90%) 42%, #f8fbff 100%);
  padding: 0.45rem;
}

.exercise-trend-line {
  fill: none;
  stroke: #0b6fe8;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.exercise-trend-dot {
  fill: #2f7de1;
  stroke: #dbeafe;
  stroke-width: 0.8;
}

.exercise-trend-dot-raw {
  fill: rgb(219 234 254 / 88%);
  stroke: rgb(47 125 225 / 72%);
  stroke-width: 0.7;
}

.exercise-trend-axis,
.exercise-trend-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.exercise-trend-axis {
  color: #688097;
  font-size: 0.78rem;
}

.exercise-trend-summary > div {
  display: grid;
  gap: 0.15rem;
  min-width: 6.5rem;
}

.exercise-trend-summary span {
  color: #6b7f95;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exercise-trend-summary strong {
  color: #183559;
  font-size: 1.05rem;
}

.copilot-actions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.copilot-response {
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid #d6e2ee;
  padding: 1rem;
  background: linear-gradient(180deg, #fcfdff 0%, #f7fbff 100%);
  color: var(--sg-ink);
}

.copilot-response.warning {
  background: linear-gradient(180deg, #fffdf8 0%, #fff8ee 100%);
}

.copilot-response .prompt-box {
  min-height: 10rem;
}

.timeline-v2-row {
  align-items: center;
}

.timeline-button {
  width: 100%;
  border-width: 1px;
  text-align: left;
}

.timeline-button.selected {
  border-color: #9fc3ee;
  box-shadow: inset 0 0 0 1px #b9d4f5, 0 10px 24px rgb(11 111 232 / 10%);
}

.timeline-date,
.timeline-side {
  display: grid;
  gap: 0.15rem;
}

.timeline-side {
  justify-items: end;
  text-align: right;
}

.timeline-body {
  display: grid;
  gap: 0.35rem;
}

@media (max-width: 1200px) {
  .comparison-grid,
  .copilot-actions,
  .insight-grid,
  .trend-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-snapshot,
  .analytics-two-col,
  .brief-grid,
  .detail-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .analytics-section-hint {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .analytics-section-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    overflow-x: visible;
    padding: 0.1rem 0 0.35rem;
    margin: 0;
  }

  .analytics-section-pill {
    min-width: 0;
    padding: 0.8rem 0.55rem;
    text-align: center;
    justify-items: center;
  }

  .analytics-section-pill-icon {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.68rem;
  }

  .analytics-section-pill small {
    display: none;
  }

  .analytics-section-pill-label {
    font-size: 0.86rem;
    line-height: 1.1;
  }

  .analytics-card {
    padding: 0.85rem;
  }

  .trend-bars {
    min-height: 8.5rem;
    padding: 0.75rem;
    gap: 0.25rem;
  }

  .trend-label-row {
    font-size: 0.72rem;
  }

  .comparison-card strong,
  .bodyweight-callout strong {
    font-size: 1.25rem;
  }

  .comparison-grid,
  .copilot-actions,
  .insight-grid,
  .trend-summary-grid,
  .share-actions {
    grid-template-columns: 1fr;
  }

  .bodyweight-summary-grid,
  .bodyweight-form-grid {
    grid-template-columns: 1fr;
  }

  .coach-brief-head,
  .card-header-inline,
  .timeline-v2-row,
  .copilot-response-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-side {
    justify-items: start;
    text-align: left;
  }

  .priority-row,
  .priority-stats {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .analytics-section-nav {
    gap: 0.4rem;
  }

  .analytics-section-pill {
    padding: 0.72rem 0.4rem;
    border-radius: 0.85rem;
  }

  .analytics-section-pill-icon {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.64rem;
  }

  .analytics-section-pill-label {
    font-size: 0.8rem;
  }

  .analytics-toolbar-toggle {
    padding: 0.85rem 0.9rem;
  }

  .analytics-toolbar-toggle-icon {
    min-width: 4.25rem;
  }

  .analytics-card {
    padding: 0.75rem;
    border-radius: 0.9rem;
  }

  .comparison-grid,
  .detail-kpis,
  .insight-grid,
  .trend-summary-grid {
    grid-template-columns: 1fr;
  }

  .confidence-ring {
    min-width: 4.6rem;
    min-height: 4.6rem;
  }

  .bodyweight-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-button {
    padding: 0.75rem;
  }
}

html {
  scroll-behavior: smooth;
}

.btn-dark-ghost {
  border-color: rgb(255 255 255 / 18%);
  color: #e6edf8;
  background: rgb(255 255 255 / 6%);
  backdrop-filter: blur(10px);
}

.btn-dark-ghost:hover {
  border-color: rgb(255 255 255 / 28%);
  color: #ffffff;
  background: rgb(255 255 255 / 10%);
}

.btn-lg-sg {
  min-height: 3.25rem;
  padding-inline: 1.2rem;
  border-radius: 999px;
  font-size: 0.98rem;
}

.marketing-shell {
  min-height: 100vh;
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgb(70 129 255 / 18%), transparent 24%),
    radial-gradient(circle at 100% 0%, rgb(31 213 154 / 12%), transparent 20%),
    linear-gradient(180deg, #08111f 0%, #0d1727 30%, #0f1828 100%);
  color: #f5f8fc;
}

.marketing-topbar,
.marketing-footer,
.homepage {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.marketing-topbar {
  position: sticky;
  top: 1rem;
  z-index: 20;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 2rem;
  border: 1px solid rgb(205 221 243 / 72%);
  border-radius: 1.15rem;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.98) 0%, rgb(255 255 255 / 0.98) 58%, rgb(244 249 255 / 0.96) 76%, rgb(228 239 255 / 0.94) 100%),
    linear-gradient(180deg, rgb(255 255 255 / 0.98) 0%, rgb(244 249 255 / 0.94) 100%);
  box-shadow:
    0 22px 46px rgb(2 8 23 / 20%),
    0 0 0 1px rgb(255 255 255 / 44%) inset,
    0 -18px 40px rgb(85 130 216 / 0.08) inset;
  backdrop-filter: blur(18px);
}

.marketing-topbar::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem -1px 52%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(86 132 223 / 0) 0%, rgb(86 132 223 / 0.2) 18%, rgb(86 132 223 / 0.46) 58%, rgb(86 132 223 / 0.58) 100%);
  pointer-events: none;
}

.marketing-brand,
.marketing-brand:hover {
  color: inherit;
  text-decoration: none;
}

.marketing-brand-logo {
  display: block;
  width: clamp(10rem, 18vw, 13rem);
  height: auto;
}

.marketing-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
}

.marketing-nav a,
.marketing-footer {
  color: #516783;
  text-decoration: none;
}

.marketing-nav a:hover {
  color: #214d8f;
}

.marketing-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.marketing-topbar .btn-outline-secondary {
  border-color: #b8c8dd;
  color: #24405f;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
  box-shadow: 0 8px 20px rgb(148 163 184 / 18%);
}

.marketing-topbar .btn-outline-secondary:hover {
  border-color: #8ea7c6;
  background: linear-gradient(180deg, #ffffff 0%, #ecf3fb 100%);
}

.marketing-topbar .btn-primary {
  box-shadow: 0 12px 30px rgb(59 130 246 / 28%);
}

.marketing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 2rem;
  font-size: 0.92rem;
}

.homepage {
  display: grid;
  gap: 2rem;
}

.hero-section,
.content-section,
.final-cta-card {
  border: 1px solid rgb(163 184 214 / 14%);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgb(255 255 255 / 5%) 0%, rgb(255 255 255 / 2%) 100%);
  box-shadow: 0 24px 60px rgb(2 8 23 / 20%);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  overflow: hidden;
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 1.15rem;
  min-width: 0;
}

.hero-eyebrow,
.section-eyebrow,
.mockup-kicker,
.phone-kicker,
.mockup-card-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-eyebrow,
.section-eyebrow {
  color: #8eb7ff;
}

.hero-copy h1,
.section-heading h2,
.serious-copy h2,
.final-cta-card h2 {
  color: #f8fbff;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  max-width: 10ch;
  margin-bottom: 0;
}

.hero-lead,
.section-heading p,
.serious-copy p,
.final-cta-card p,
.feature-card p,
.step-card p,
.value-card p,
.mockup-card span,
.phone-stat span,
.phone-chip-row span,
.phone-timer span,
.mockup-note,
.compare-column li {
  color: #b6c3d8;
}

.hero-lead {
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  max-width: 56ch;
  margin-bottom: 0;
}

.hero-actions,
.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-proof span,
.phone-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgb(148 163 184 / 16%);
  border-radius: 999px;
  background: rgb(255 255 255 / 4%);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  min-height: 28rem;
  display: grid;
  place-items: center;
}

.hero-mockup {
  border: 1px solid rgb(168 190 223 / 18%);
  border-radius: 1.45rem;
  background: linear-gradient(180deg, rgb(18 28 43 / 92%) 0%, rgb(10 19 31 / 96%) 100%);
  box-shadow: 0 30px 90px rgb(2 8 23 / 34%);
}

.desktop-mockup {
  width: min(100%, 38rem);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.mockup-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 22%);
}

.mockup-screen {
  padding: 1.2rem;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.mockup-kicker {
  color: #72a7ff;
  margin-bottom: 0.9rem;
}

.mockup-card,
.value-card,
.step-card,
.feature-card,
.compare-card {
  border: 1px solid rgb(168 190 223 / 14%);
  background: rgb(255 255 255 / 3%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.mockup-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 1rem;
}

.mockup-card strong,
.phone-title,
.phone-stat strong,
.phone-timer strong,
.compare-title {
  color: #f8fbff;
}

.mockup-card-label {
  color: #74d7b5;
}

.mockup-card-lg {
  min-height: 10rem;
}

.mockup-card-wide {
  grid-column: 1 / -1;
}

.phone-mockup {
  position: absolute;
  right: 0;
  bottom: 1.4rem;
  width: min(42%, 14rem);
  padding: 0.8rem;
}

.phone-notch {
  width: 42%;
  height: 1.1rem;
  margin: 0 auto 0.45rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
}

.phone-screen {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
}

.phone-kicker {
  color: #72a7ff;
}

.phone-title {
  font-size: 1.3rem;
}

.phone-stat,
.phone-timer {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem;
  border: 1px solid rgb(168 190 223 / 14%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 4%);
}

.phone-timer strong {
  color: #7ce5b6;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.phone-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mockup-note {
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  margin: 0;
  font-size: 0.84rem;
}

.content-section {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  max-width: 52rem;
  margin-bottom: 1.5rem;
}

.section-heading.narrow {
  max-width: 42rem;
}

.section-heading h2,
.serious-copy h2,
.final-cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.value-card,
.step-card,
.feature-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
  border-radius: 1.15rem;
}

.value-card h3,
.step-card h3,
.feature-card h3 {
  color: #f8fbff;
  margin-bottom: 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #2b6fe5 0%, #58a6ff 100%);
  color: #ffffff;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  border: 1px solid rgb(255 255 255 / 12%);
}

.feature-badge-command { background: linear-gradient(135deg, #2f7de1 0%, #6daeff 100%); }
.feature-badge-builder { background: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%); }
.feature-badge-logging { background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%); }
.feature-badge-timer { background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%); }
.feature-badge-coach { background: linear-gradient(135deg, #0f766e 0%, #2dd4bf 100%); }
.feature-badge-goals { background: linear-gradient(135deg, #db2777 0%, #f472b6 100%); }
.feature-badge-analytics { background: linear-gradient(135deg, #ca8a04 0%, #facc15 100%); }
.feature-badge-history { background: linear-gradient(135deg, #475569 0%, #94a3b8 100%); }
.feature-badge-share { background: linear-gradient(135deg, #1d4ed8 0%, #38bdf8 100%); }

.serious-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1.25rem;
}

.serious-copy {
  max-width: 44rem;
}

.compare-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 1.2rem;
}

.compare-column ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
}

.compare-column li + li {
  margin-top: 0.7rem;
}

.compare-column.muted {
  border-left: 1px solid rgb(255 255 255 / 8%);
  padding-left: 1rem;
}

.final-cta-section {
  padding-bottom: 1rem;
}

.final-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2rem);
}

@media (max-width: 1200px) {
  .value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .marketing-nav {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .hero-section,
  .serious-section,
  .final-cta-card,
  .value-grid,
  .feature-grid,
  .steps-grid,
  .compare-card {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 30rem;
  }

  .phone-mockup {
    width: min(48%, 15rem);
  }

  .compare-column.muted {
    border-left: 0;
    border-top: 1px solid rgb(255 255 255 / 8%);
    padding-left: 0;
    padding-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .marketing-shell {
    padding: 0.75rem;
  }

  .marketing-topbar,
  .marketing-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .marketing-topbar-actions {
    width: 100%;
  }

  .marketing-topbar-actions .btn {
    flex: 1 1 0;
  }

  .hero-section {
    padding: 1.2rem;
  }

  .hero-visual {
    min-height: 24rem;
  }

  .desktop-mockup {
    width: 100%;
  }

  .mockup-grid {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 16rem);
    margin: 1rem auto 0;
  }

  .mockup-note {
    position: static;
    margin-top: 0.8rem;
  }

  .hero-actions .btn,
  .final-cta-actions .btn {
    width: 100%;
  }
}

.homepage-mobile {
  gap: 2rem;
}

.homepage-mobile .content-section,
.homepage-mobile .mobile-home-hero {
  border: 1px solid color-mix(in srgb, var(--sg-primary) 12%, var(--sg-border) 88%);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top right, rgb(95 170 255 / 10%), transparent 24%),
    linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(244 248 255 / 98%) 100%);
  box-shadow:
    0 26px 56px rgb(23 62 126 / 12%),
    0 1px 0 rgb(255 255 255 / 78%) inset;
}

.homepage-mobile .section-heading h2,
.homepage-mobile .compare-title,
.homepage-mobile h3 {
  color: var(--sg-ink);
}

.homepage-mobile .section-heading p,
.homepage-mobile .mobile-feature-card p,
.homepage-mobile .mobile-summary-card p,
.homepage-mobile .mobile-flow-card p,
.homepage-mobile .mobile-proof-copy p,
.homepage-mobile .mobile-proof-panel li,
.homepage-mobile .mobile-feature-card li,
.homepage-mobile .hero-lead {
  color: var(--sg-ink-soft);
}

.hero-proof-mobile span {
  border-color: color-mix(in srgb, var(--sg-primary) 16%, var(--sg-border) 84%);
  background: linear-gradient(180deg, rgb(255 255 255 / 94%) 0%, rgb(235 244 255 / 96%) 100%);
  color: #26486d;
  box-shadow: 0 10px 24px rgb(23 62 126 / 8%);
}

.mobile-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.95fr);
  gap: 1.4rem;
  padding: clamp(1.25rem, 2.6vw, 2rem);
}

.mobile-home-hero-desktop {
  grid-template-columns: minmax(0, 1.05fr) minmax(32rem, 1.2fr);
  min-height: 42rem;
  align-items: stretch;
}

.mobile-home-hero__copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  min-width: 0;
  padding-right: 1rem;
}

.mobile-home-hero__copy h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  max-width: 12ch;
  letter-spacing: -0.05em;
}

.mobile-home-hero__preview {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.72fr);
  gap: 1.15rem;
  align-items: stretch;
}

.mobile-preview-shell {
  border: 1px solid color-mix(in srgb, var(--sg-primary) 14%, var(--sg-border) 86%);
  border-radius: 1.4rem;
  background:
    radial-gradient(circle at top left, rgb(47 126 247 / 12%), transparent 24%),
    linear-gradient(180deg, rgb(252 254 255 / 98%) 0%, rgb(239 246 255 / 98%) 100%);
  box-shadow:
    0 18px 36px rgb(23 62 126 / 12%),
    0 1px 0 rgb(255 255 255 / 82%) inset;
}

.mobile-preview-shell--phone {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
}

.mobile-preview-shell--desktop {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
}

.mobile-preview-desktop__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-preview-desktop__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-preview-desktop__mark {
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sg-primary-fill) 0%, var(--sg-primary-fill-bright) 100%);
  box-shadow: 0 16px 34px rgb(21 88 214 / 24%);
}

.mobile-preview-desktop__mark img {
  width: 1.75rem;
  height: 1.75rem;
}

.mobile-preview-desktop__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-preview-desktop__chips span {
  min-height: 2rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(233 242 255 / 98%) 100%);
  border: 1px solid color-mix(in srgb, var(--sg-primary) 16%, var(--sg-border) 84%);
  color: #35577e;
  font-size: 0.82rem;
  font-weight: 700;
}

.mobile-preview-desktop__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 0.78fr));
  gap: 1rem;
}

.mobile-preview-desktop__grid > .mobile-preview-card:first-child {
  grid-row: span 2;
  align-content: start;
  min-height: 100%;
}

.mobile-preview-topbar,
.mobile-preview-brand,
.mobile-preview-brand__copy,
.mobile-preview-stack {
  display: grid;
}

.mobile-preview-topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.mobile-preview-brand {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.mobile-preview-brand__mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sg-primary-fill) 0%, var(--sg-primary-fill-bright) 100%);
  box-shadow: 0 16px 34px rgb(21 88 214 / 24%);
}

.mobile-preview-brand__mark img {
  width: 1.7rem;
  height: 1.7rem;
}

.mobile-preview-brand__copy {
  gap: 0.12rem;
}

.mobile-preview-brand__copy span,
.mobile-preview-card__eyebrow,
.mobile-preview-panel__eyebrow,
.mobile-feature-card__eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mobile-preview-brand__copy span,
.mobile-preview-card__eyebrow,
.mobile-preview-panel__eyebrow {
  color: var(--sg-muted);
}

.mobile-preview-brand__copy strong,
.mobile-preview-card strong,
.mobile-preview-panel strong {
  color: var(--sg-ink);
}

.mobile-preview-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #e8f1ff 100%);
  border: 1px solid color-mix(in srgb, var(--sg-primary) 20%, var(--sg-border) 80%);
  color: #24486f;
  font-weight: 800;
}

.mobile-preview-card,
.mobile-preview-panel,
.mobile-summary-card,
.mobile-flow-card,
.mobile-feature-card,
.mobile-proof-panel {
  border: 1px solid color-mix(in srgb, var(--sg-primary) 10%, var(--sg-border) 90%);
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 98%) 0%, rgb(244 248 255 / 96%) 100%);
  box-shadow:
    0 14px 32px rgb(23 62 126 / 9%),
    0 1px 0 rgb(255 255 255 / 78%) inset;
}

.mobile-preview-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.mobile-preview-card--hero {
  background:
    radial-gradient(circle at top right, rgb(47 126 247 / 12%), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.mobile-preview-card p,
.mobile-preview-panel p {
  margin-bottom: 0;
  color: var(--sg-ink-soft);
}

.mobile-preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0.3rem;
  border-radius: 999px;
  background: #eaf2ff;
  width: fit-content;
}

.mobile-preview-toggle span {
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #4d6787;
  font-size: 0.88rem;
  font-weight: 700;
}

.mobile-preview-toggle .is-active {
  background: linear-gradient(135deg, var(--sg-primary-fill) 0%, var(--sg-primary-fill-bright) 100%);
  color: var(--sg-on-primary);
  box-shadow: 0 12px 26px rgb(21 88 214 / 22%);
}

.mobile-preview-grid,
.mobile-summary-grid,
.mobile-flow-grid,
.mobile-feature-grid,
.mobile-proof-panels {
  display: grid;
  gap: 1rem;
}

.mobile-preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-preview-shell--stack {
  padding: 1rem;
}

.mobile-preview-stack {
  gap: 1rem;
  height: 100%;
}

.mobile-preview-panel {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.mobile-preview-panel--accent {
  background:
    radial-gradient(circle at top right, rgb(47 126 247 / 14%), transparent 28%),
    linear-gradient(180deg, #fdfefe 0%, #edf4ff 100%);
}

.mobile-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
}

.mobile-summary-card__badge,
.mobile-feature-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  border: 1px solid rgb(255 255 255 / 55%);
  box-shadow: 0 12px 24px rgb(23 62 126 / 12%);
}

.mobile-summary-card__badge--start,
.mobile-feature-card__icon--start {
  background: linear-gradient(135deg, var(--sg-primary-fill) 0%, var(--sg-primary-fill-bright) 100%);
}

.mobile-summary-card__badge--plan,
.mobile-feature-card__icon--plan {
  background: linear-gradient(135deg, #4e7aef 0%, #88b8ff 100%);
}

.mobile-summary-card__badge--train,
.mobile-feature-card__icon--train {
  background: linear-gradient(135deg, #18a0a3 0%, #66d0c0 100%);
}

.mobile-summary-card__badge--review,
.mobile-feature-card__icon--review {
  background: linear-gradient(135deg, #5db36e 0%, #98d9a2 100%);
}

.mobile-feature-card__icon--coach {
  background: linear-gradient(135deg, #0f766e 0%, #2dd4bf 100%);
}

.mobile-feature-card__icon--profile {
  background: linear-gradient(135deg, #c89436 0%, #f0c97a 100%);
}

.mobile-summary-card__copy,
.mobile-proof-copy,
.mobile-proof-layout {
  display: grid;
}

.mobile-summary-card__copy {
  gap: 0.3rem;
}

.mobile-summary-card h3,
.mobile-flow-card h3,
.mobile-feature-card h3 {
  margin-bottom: 0;
}

.mobile-flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.mobile-flow-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.mobile-flow-card__index {
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sg-primary-fill) 0%, var(--sg-primary-fill-bright) 100%);
  color: var(--sg-on-primary);
  font-weight: 800;
  box-shadow: 0 14px 28px rgb(21 88 214 / 22%);
}

.mobile-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-feature-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.mobile-feature-card__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.mobile-feature-card__eyebrow {
  color: var(--sg-primary);
  margin-bottom: 0.2rem;
}

.mobile-feature-card ul,
.mobile-proof-panel ul {
  margin: 0;
  padding-left: 1.15rem;
}

.mobile-feature-card li,
.mobile-proof-panel li {
  color: var(--sg-ink-soft);
}

.mobile-feature-card li + li,
.mobile-proof-panel li + li {
  margin-top: 0.5rem;
}

.mobile-proof-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
  gap: 1rem;
  align-items: start;
}

.mobile-proof-copy {
  gap: 0.8rem;
}

.mobile-proof-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.mobile-proof-panels {
  grid-template-columns: 1fr;
}

.mobile-proof-panel {
  padding: 1rem;
}

.mobile-proof-panel--muted {
  background:
    linear-gradient(180deg, rgb(250 252 255 / 98%) 0%, rgb(239 244 250 / 96%) 100%);
}

@media (max-width: 1279.98px) {
  .mobile-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-preview-desktop__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-preview-desktop__grid > .mobile-preview-card:first-child {
    grid-row: auto;
  }
}

@media (max-width: 1100px) {
  .mobile-home-hero,
  .mobile-proof-layout,
  .mobile-home-hero__preview,
  .mobile-summary-grid,
  .mobile-flow-grid,
  .mobile-feature-grid {
    grid-template-columns: 1fr;
  }

  .mobile-home-hero__copy h1 {
    max-width: none;
  }

  .mobile-home-hero-desktop {
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .mobile-home-hero,
  .homepage-mobile .content-section {
    padding: 1rem;
  }

  .mobile-preview-grid {
    grid-template-columns: 1fr;
  }

  .mobile-preview-desktop__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-preview-desktop__grid {
    grid-template-columns: 1fr;
  }

  .mobile-summary-card,
  .mobile-feature-card__head {
    grid-template-columns: 1fr;
  }

  .mobile-summary-card__badge,
  .mobile-feature-card__icon {
    width: 2.8rem;
    height: 2.8rem;
  }
}

