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

html,
body {
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  background: #eef0f3;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #111827;
}

#root {
  min-height: 100dvh;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

::-webkit-scrollbar {
  display: none;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
  position: relative;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #1f2937;
  color: #fff;
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.user-line {
  margin-top: 3px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
}

.sync-button {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  border-radius: 10px;
  min-width: 28px;
  height: 28px;
  font-size: 16px;
}

.sync-button.ok {
  color: #86efac;
}

.sync-button.error {
  color: #fca5a5;
}

.sync-button.syncing {
  color: #93c5fd;
}

.content {
  flex: 1;
  padding: 0 16px 88px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 500;
  width: 100%;
  max-width: 480px;
  transform: translateX(-50%);
  display: flex;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
}

.nav-item {
  flex: 1;
  border: 0;
  background: transparent;
  color: #8b95a5;
  padding: 8px 0 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.nav-item span {
  font-size: 21px;
}

.nav-item small {
  font-size: 10px;
}

.nav-item.active {
  color: #2563eb;
  font-weight: 800;
}

.date-hero {
  margin: 0 -16px 12px;
  padding: 16px 20px 20px;
  background: #1f2937;
  color: #fff;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.date-hero button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 27px;
  line-height: 1;
}

.date-hero h1 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.date-hero p {
  margin: 4px 0 0;
  color: #aeb8c7;
  font-size: 12px;
}

.plan-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 17px 20px;
  border-left: 4px solid #3b82f6;
  box-shadow: 0 1px 6px rgba(15, 23, 42, .09);
}

.muse-fullbody {
  height: 260px;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #111827, #475569);
  box-shadow: 0 1px 6px rgba(15, 23, 42, .10);
}

.muse-fullbody img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.muse-fullbody div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 54px 18px 16px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
}

.muse-fullbody span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 4px;
}

.muse-fullbody strong {
  display: block;
  font-size: 22px;
}

.plan-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.25;
}

.plan-card p {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.plan-card span {
  color: #9ca3af;
  font-size: 12px;
}

.phase-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  background: #fef3c7;
  border-radius: 8px;
  padding: 11px 15px;
  margin-bottom: 12px;
  white-space: nowrap;
}

.phase-strip span {
  background: #fde68a;
  color: #92400e;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.phase-strip b {
  color: #b45309;
  font-size: 12px;
}

.workout-section {
  margin-bottom: 13px;
}

.workout-section h3 {
  margin: 0 0 8px;
  padding-left: 4px;
  font-size: 14px;
  line-height: 1.2;
}

.exercise-card {
  width: 100%;
  min-height: 90px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, .07);
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  text-align: left;
  align-items: center;
}

.exercise-card.checked {
  border-color: #93c5fd;
  background: #eff6ff;
}

.finisher-card {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.finisher-card.checked {
  border-color: #38bdf8;
  background: #e0f2fe;
}

.check-box {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #2563eb;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.exercise-card.checked .check-box {
  border-color: #3b82f6;
  background: #dbeafe;
}

.exercise-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.35;
}

.exercise-main {
  min-width: 0;
}

.exercise-dose {
  justify-self: end;
  max-width: 122px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

.exercise-card em {
  display: inline-flex;
  margin-top: 8px;
  background: #fff7ed;
  color: #f59e0b;
  border-radius: 4px;
  padding: 3px 7px;
  font-style: normal;
  font-size: 11px;
}

.aerobic-card {
  background: #eaf7ff;
  border: 1px solid #7dd3fc;
  border-radius: 9px;
  padding: 16px;
  margin: 2px 0 16px;
  color: #0369a1;
}

.aerobic-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.aerobic-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.finish-card {
  margin-bottom: 14px;
  text-align: center;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #d9dde3;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #3b82f6;
  transition: width .2s ease;
}

.finish-card p {
  margin: 9px 0 12px;
  color: #64748b;
  font-size: 13px;
}

.finish-button {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.finish-button:disabled {
  background: #d1d5db;
  color: #9ca3af;
}

.reset-button {
  margin-top: 9px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
}

.motivation-mini {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 4px;
}

.motivation-mini img {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: #e5e7eb;
}

.motivation-mini strong {
  display: block;
  font-size: 14px;
}

.motivation-mini span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

.panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(31, 41, 55, .08);
  overflow: hidden;
  padding: 18px;
  margin: 14px 0;
}

.plan-list-head {
  margin-bottom: 10px;
}

.date-jump {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
}

.date-jump input,
.date-jump button {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
}

.date-jump button {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  font-weight: 900;
}

.plan-list {
  display: grid;
  gap: 10px;
}

.plan-list-card {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 14px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  box-shadow: 0 1px 5px rgba(15, 23, 42, .07);
}

.plan-list-card.selected {
  border-color: #3b82f6;
  background: #eff6ff;
}

.plan-list-card strong {
  display: block;
  color: #2563eb;
  font-size: 13px;
  margin-bottom: 5px;
}

.plan-list-card span {
  display: block;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.plan-list-card small {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
}

.plan-list-card em {
  font-style: normal;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.plan-list-card.selected em {
  background: #dbeafe;
  color: #2563eb;
}

.selected-plan-card {
  margin: 12px 0;
  background: #111827;
  color: #fff;
  border-radius: 14px;
  padding: 16px;
}

.selected-plan-card strong {
  display: block;
  color: #bfdbfe;
  font-size: 13px;
  margin-bottom: 6px;
}

.selected-plan-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.selected-plan-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.selected-plan-card button {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #3b82f6;
  color: #fff;
  font-weight: 900;
}

.measurement-card h1 {
  margin-bottom: 4px;
}

.measurement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.measurement-grid label {
  display: grid;
  gap: 7px;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.measurement-grid input {
  width: 100%;
  height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 10px;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  outline: 0;
}

.measure-save {
  width: 100%;
  height: 44px;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-weight: 900;
}

.month-head {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.month-head button {
  width: 42px;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  font-size: 26px;
  line-height: 1;
}

.month-head h1 {
  text-align: center;
  font-size: 22px;
  margin: 0;
}

.weekdays,
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.weekdays {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  font-weight: 800;
  margin-bottom: 6px;
}

.day {
  height: 54px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 7px;
  text-align: left;
}

.day span {
  font-weight: 900;
}

.day small {
  font-size: 10px;
}

.day.muted {
  background: #f3f4f6;
  color: #9ca3af;
}

.day.today {
  border-color: #3b82f6;
}

.day.done {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.report-hero {
  display: grid;
  grid-template-columns: 132px 132px 1fr;
  gap: 16px;
  align-items: center;
}

.report-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.report-dual > div:last-child {
  grid-column: 1 / -1;
}

.report-dual .ring {
  justify-self: center;
}

.report-hero p {
  margin: 0 0 7px;
  color: #3b82f6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.report-hero h1,
.panel h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.report-hero span {
  display: block;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.ring {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(#a3e635 var(--ring), #e5e7eb 0);
  display: grid;
  place-items: center;
}

.ring > div {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring strong {
  font-size: 28px;
  line-height: 1;
}

.ring span {
  font-size: 11px;
  color: #6b7280;
  font-weight: 800;
  margin-top: 4px;
}

.report-list {
  padding: 8px 18px;
}

.completion-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.completion-modules div {
  min-height: 142px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f8fafc;
  padding: 14px;
}

.completion-modules strong {
  display: block;
  color: #2563eb;
  font-size: 26px;
  line-height: 1;
}

.completion-modules span {
  display: block;
  margin-top: 7px;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.completion-modules p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.trend-panel {
  overflow: visible;
}

.trend-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.trend-chart line {
  stroke: #cbd5e1;
  stroke-width: 1;
}

.trend-chart .grid-line {
  stroke: #e5e7eb;
  stroke-dasharray: 4 4;
}

.trend-chart polyline {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weight-line {
  stroke: #2563eb;
}

.fat-line {
  stroke: #f97316;
}

.weight-dot {
  fill: #2563eb;
}

.fat-dot {
  fill: #f97316;
}

.axis-label,
.date-axis,
.axis-title {
  font-size: 10px;
  font-weight: 800;
  fill: #64748b;
}

.axis-title {
  font-size: 11px;
}

.weight-axis {
  fill: #2563eb;
}

.fat-axis {
  fill: #f97316;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-legend b {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.trend-legend .w {
  background: #2563eb;
}

.trend-legend .f {
  background: #f97316;
}

.report-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid #e5e7eb;
}

.report-list div:last-child {
  border-bottom: 0;
}

.report-list span {
  color: #6b7280;
  font-weight: 800;
}

.report-list strong {
  font-size: 18px;
}

.muted {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.65;
}

.diet-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.meal-plan {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.meal-plan div {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}

.meal-plan span {
  display: block;
  color: #059669;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
}

.meal-plan strong {
  display: block;
  font-size: 14px;
  line-height: 1.55;
}

.meal-plan p {
  margin: 0;
  background: #ecfdf5;
  color: #047857;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.55;
}

.diet-list button {
  min-height: 150px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
}

.diet-list button.checked {
  background: #fff7ed;
  border-color: #fb923c;
  color: #c2410c;
}

.reject-food .fat-blob {
  width: 86px;
  height: 64px;
  display: block;
  border-radius: 46% 54% 48% 52% / 58% 42% 55% 45%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, .72) 0 11%, transparent 12%),
    radial-gradient(circle at 68% 36%, #ffe08a 0 16%, transparent 17%),
    linear-gradient(145deg, #ffd166, #f59e0b 62%, #d97706);
  box-shadow:
    inset -10px -12px 16px rgba(146, 64, 14, .28),
    0 10px 18px rgba(217, 119, 6, .25);
  position: relative;
}

.reject-food .fat-blob:before,
.reject-food .fat-blob:after {
  content: "";
  position: absolute;
  background: #fbbf24;
  border-radius: 999px;
  box-shadow: inset -5px -5px 8px rgba(146, 64, 14, .22);
}

.reject-food .fat-blob:before {
  width: 34px;
  height: 26px;
  left: -8px;
  bottom: 5px;
}

.reject-food .fat-blob:after {
  width: 26px;
  height: 22px;
  right: -5px;
  top: 10px;
}

.reject-food strong {
  display: block;
  margin-top: 4px;
  color: #dc2626;
  font-size: 15px;
}

.reject-food em {
  display: block;
  font-style: normal;
  font-size: 17px;
}

.reject-food.checked strong {
  color: #16a34a;
}

.reward-toast {
  position: fixed;
  left: 50%;
  bottom: 82px;
  z-index: 200;
  width: min(420px, calc(100% - 28px));
  transform: translate(-50%, 140%);
  opacity: 0;
  background: #111827;
  color: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}

.reward-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.reward-toast strong {
  display: block;
  font-size: 18px;
}

.reward-toast span {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 13px;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 850;
  background: rgba(15, 23, 42, .58);
  display: grid;
  place-items: center;
  padding: 22px;
}

.app-modal-card {
  width: min(100%, 420px);
  border-radius: 20px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.app-modal-card p {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.app-modal-card h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.18;
}

.app-modal-card span {
  display: block;
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.app-modal-card button {
  width: 100%;
  height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: #2563eb;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.modal-progress {
  height: 9px;
  margin-top: 16px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.modal-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #2563eb);
}

.grocery-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.grocery-chips b {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
}

.grocery-numbered {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: grocery;
  display: grid;
  gap: 8px;
}

.grocery-numbered li {
  counter-increment: grocery;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #064e3b;
  font-size: 14px;
  font-weight: 800;
}

.grocery-numbered li:before {
  content: counter(grocery) ".";
  min-width: 24px;
  color: #059669;
  font-weight: 950;
}

.grocery-confirmable li {
  justify-content: space-between;
}

.grocery-confirmable li span {
  flex: 1;
}

.grocery-confirmable button {
  border: 0;
  border-radius: 999px;
  background: #059669;
  color: #fff;
  min-width: 72px;
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.grocery-confirmable li.confirmed {
  background: #f1f5f9;
  color: #64748b;
}

.grocery-confirmable li.confirmed button {
  background: #94a3b8;
}

.grocery-list-panel {
  margin-top: 12px;
}

.sync-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 23, 42, .58);
  display: flex;
  align-items: flex-end;
}

.sync-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px 34px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .22);
}

.sync-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #d1d5db;
  margin: 0 auto 18px;
}

.sync-sheet h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.sync-desc {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.sync-sheet label {
  display: block;
  margin: 12px 0 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}

.sync-sheet input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  outline: 0;
  font-size: 14px;
}

.sql-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.sql-box summary {
  font-weight: 900;
  cursor: pointer;
}

.sql-box pre {
  white-space: pre-wrap;
  word-break: break-word;
  color: #166534;
  background: #ecfdf5;
  border-radius: 10px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.55;
}

.sql-box button,
.sync-primary,
.sync-actions button,
.sync-close {
  border: 0;
  border-radius: 10px;
  min-height: 42px;
  font-weight: 900;
}

.sql-box button {
  width: 100%;
  background: #111827;
  color: #fff;
}

.sync-primary {
  width: 100%;
  margin-top: 16px;
  background: #2563eb;
  color: #fff;
}

.sync-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.sync-actions button {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
}

.sync-actions button:disabled {
  opacity: .45;
}

.sync-close {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: #94a3b8;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
  padding: 5px;
  border-radius: 8px;
  background: #f1f5f9;
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-weight: 900;
}

.auth-tabs button.active {
  background: #111827;
  color: #fff;
}

.auth-message {
  margin: 12px 0 0;
  color: #ef4444;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.account-card {
  display: grid;
  gap: 4px;
  margin: 12px 0 14px;
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.account-card span,
.account-card small {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.account-card strong {
  color: #111827;
  font-size: 19px;
}

.sync-actions.single {
  grid-template-columns: 1fr;
}

@media (max-width: 380px) {
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .date-hero {
    margin-left: -14px;
    margin-right: -14px;
  }

  .phase-strip {
    padding-left: 10px;
    padding-right: 10px;
    gap: 5px;
  }

  .phase-strip span {
    font-size: 11px;
    padding-left: 6px;
    padding-right: 6px;
  }

  .report-hero,
  .plan-list-card {
    grid-template-columns: 1fr;
  }

  .completion-modules,
  .measurement-grid {
    grid-template-columns: 1fr;
  }

  .ring {
    margin: auto;
  }

  .plan-list-card em {
    justify-self: start;
  }

  .exercise-card {
    grid-template-columns: 26px 1fr;
  }

  .exercise-dose {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
  }
}
