:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --line: rgba(10, 10, 10, 0.08);
  --line-strong: rgba(10, 10, 10, 0.16);
  --text: #0a0a0a;
  --muted: rgba(10, 10, 10, 0.56);
  --accent: #7c3aed;
  --accent-soft: rgba(167, 139, 250, 0.18);
  --black: #0a0a0a;
  --shadow: 0 24px 60px rgba(10, 10, 10, 0.06);
  --shadow-soft: 0 10px 28px rgba(10, 10, 10, 0.045);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(167, 139, 250, 0.12),
      transparent 24%
    ),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: '';
  pointer-events: none;
  border-radius: 999px;
  filter: blur(12px);
}

body::before {
  top: -120px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(167, 139, 250, 0.12),
    transparent 72%
  );
}

body::after {
  right: -60px;
  bottom: 18%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(10, 10, 10, 0.045), transparent 72%);
}

.student-app {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

.student-sidebar,
.student-workspace,
.content-section,
.routine-panel,
.exercise-card,
.message-column,
.info-card {
  min-width: 0;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.44);
  backdrop-filter: blur(10px);
}

.modal-root[hidden] {
  display: none;
}

.workout-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 32px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.workout-modal-video {
  width: min(860px, 100%);
}

.workout-modal h3 {
  margin: 0 0 10px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.workout-modal p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.workout-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workout-modal-actions .complete-button {
  min-width: 110px;
}

.workout-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.student-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 30px 22px;
  border-right: 1px solid rgba(10, 10, 10, 0.06);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.82),
    14px 0 28px rgba(10, 10, 10, 0.025);
}

.brand-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sidebar-brand h1,
.topbar h2,
.section-header h3,
.routine-heading h4,
.section-header-compact h4 {
  margin: 0;
}

.sidebar-brand h1 {
  font-family: 'Sora', sans-serif;
  font-size: 2.15rem;
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.brand-copy,
.student-summary,
.info-card p,
.message-item p,
.routine-helper,
.exercise-spec {
  color: var(--muted);
  line-height: 1.6;
}

.student-card,
.topbar,
.content-section,
.side-link,
.day-chip,
.exercise-card,
.summary-panel,
.message-column,
.info-card,
.routine-panel,
.demo-banner {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.student-card,
.student-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(245, 245, 247, 0.9)
  );
  border-color: rgba(10, 10, 10, 0.06);
  box-shadow: 0 18px 34px rgba(10, 10, 10, 0.045);
}

.student-card-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.student-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  object-fit: cover;
  background: white;
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 12px 26px rgba(124, 58, 237, 0.08);
}

.student-name,
.student-plan {
  margin: 0;
}

.student-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.student-plan {
  color: var(--muted);
}

.sidebar-nav {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.side-link,
.day-chip,
.complete-button {
  appearance: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.side-link-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: currentColor;
}

.side-link-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-link.is-active,
.day-chip.is-active {
  border-color: rgba(124, 58, 237, 0.22);
  background: #0a0a0a;
  color: white;
  box-shadow: 0 18px 30px rgba(10, 10, 10, 0.12);
}

.side-link.is-active .side-link-icon {
  color: white;
}

.complete-button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  color: white;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 26px rgba(10, 10, 10, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.complete-button:hover,
.complete-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(10, 10, 10, 0.16);
}

@media (hover: hover) and (pointer: fine) {
  .side-link:hover,
  .day-chip:hover {
    border-color: rgba(124, 58, 237, 0.18);
    background: rgba(10, 10, 10, 0.96);
    color: white;
    box-shadow: 0 16px 26px rgba(10, 10, 10, 0.12);
  }

  .side-link:hover .side-link-icon {
    color: white;
  }
}

.student-workspace {
  padding: 32px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 28px 30px;
  border-radius: 32px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 46px rgba(10, 10, 10, 0.14);
  color: white;
}

.topbar .brand-kicker {
  color: #a78bfa;
}

.topbar h2 {
  color: white;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: white;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.context-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(10, 10, 10, 0.035);
}

.content-section {
  display: none;
  margin-top: 20px;
  padding: 30px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.985);
  border: 1px solid rgba(10, 10, 10, 0.06);
  box-shadow: 0 22px 44px rgba(10, 10, 10, 0.05);
}

.content-section.is-active {
  display: block;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.section-header-compact {
  margin-bottom: 14px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.16);
  color: #7c3aed;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(167, 139, 250, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.context-chip,
.day-chip {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(10, 10, 10, 0.07);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.context-chip.is-active,
.day-chip.is-active {
  background: #0a0a0a;
  color: white;
  border-color: #0a0a0a;
}

#messages-inbox-panel,
#messages-sent-panel,
#messages-reminders-panel,
#subscription-start-card,
#subscription-plan-card,
#subscription-end-card,
#profile-age-card,
#profile-weight-card,
#profile-goal-card {
  scroll-margin-top: 110px;
}

.routine-layout {
  display: block;
}

.routine-panel,
.message-column {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(10, 10, 10, 0.05);
  box-shadow: 0 16px 30px rgba(10, 10, 10, 0.04);
}

.routine-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.exercise-top > div {
  min-width: 0;
}

.exercise-list,
.message-list,
.info-grid,
.profile-grid {
  display: grid;
  gap: 18px;
}

.exercise-card {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(10, 10, 10, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 26px rgba(10, 10, 10, 0.035);
}

.exercise-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.exercise-top > div {
  min-width: 0;
  padding-right: 132px;
}

.exercise-video-note {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.exercise-video {
  position: relative;
  width: 192px;
  min-width: 192px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 22px;
  background: #0a0a0a;
  box-shadow: 0 18px 36px rgba(10, 10, 10, 0.12);
  padding: 0;
  cursor: default;
}

.exercise-video.is-clickable {
  cursor: pointer;
}

.exercise-video:disabled {
  opacity: 0.9;
}

.exercise-video-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.02) brightness(0.84);
  transform: scale(1.02);
}

.exercise-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.08),
    rgba(10, 10, 10, 0.42)
  );
}

.exercise-video-status {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.94);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 18px rgba(124, 58, 237, 0.18);
}

.exercise-video-play {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 30px rgba(10, 10, 10, 0.2);
}

.exercise-video-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #111114;
  transform: translate(-30%, -50%);
}

.exercise-video-label {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.84);
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.video-frame {
  overflow: hidden;
  border: 1px solid rgba(15, 15, 16, 0.08);
  border-radius: 22px;
  background: #0f0f10;
  box-shadow: 0 24px 38px rgba(15, 15, 16, 0.18);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.exercise-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.exercise-spec {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f5f5f7;
  border: 1px solid rgba(10, 10, 10, 0.05);
}

.exercise-spec strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  letter-spacing: -0.03em;
  font-size: 1.02rem;
}

.exercise-comment {
  width: 100%;
  min-height: 92px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 18px;
  background: #f5f5f7;
  color: var(--text);
  font: inherit;
  resize: vertical;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.exercise-check {
  position: absolute;
  top: 54px;
  left: 150px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  padding: 8px 13px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.96);
  cursor: pointer;
  user-select: none;
}

.exercise-check-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.exercise-check-box {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(17, 17, 20, 0.16);
  border-radius: 7px;
  background: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.exercise-check-box::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 7px;
  width: 5px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  opacity: 0;
  transform: rotate(45deg);
  transition: opacity 160ms ease;
}

.exercise-check-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.exercise-check-input:checked + .exercise-check-box {
  border-color: #7c3aed;
  background: #7c3aed;
  transform: translateY(-1px);
}

.exercise-check-input:checked + .exercise-check-box::after {
  opacity: 1;
}

.exercise-card:has(.exercise-check-input:checked) {
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 32px rgba(124, 58, 237, 0.06);
}

.routine-footer {
  margin-top: 18px;
}

.routine-helper {
  margin-top: 10px;
  max-width: 70ch;
}

.message-item strong,
.info-card strong {
  margin: 0;
}

.message-columns {
  display: block;
}

.messages-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(10, 10, 10, 0.04);
}

.messages-note p {
  margin: 0;
  max-width: 820px;
  color: var(--text);
  line-height: 1.5;
}

.messages-note a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #0a0a0a;
  background: #0a0a0a;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(10, 10, 10, 0.12);
}

.message-compose {
  padding: 22px;
  margin: 0 0 22px;
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 12px 26px rgba(10, 10, 10, 0.04);
}

.compose-form {
  display: grid;
  gap: 12px;
}

.compose-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.compose-form input,
.compose-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 18px;
  background: #f5f5f7;
  color: var(--text);
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.compose-form textarea {
  resize: vertical;
}

.message-item,
.info-card {
  padding: 18px;
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 14px 28px rgba(10, 10, 10, 0.035);
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.message-column {
  width: 100%;
  max-width: 100%;
}

.message-item strong,
.info-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.04rem;
  letter-spacing: -0.03em;
}

.message-item-top,
.info-card span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-item-top time {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.message-item {
  width: min(100%, 880px);
  max-width: 100%;
  padding: 16px 20px;
  border-radius: 26px;
}

.message-item p {
  margin: 10px 0 0;
  line-height: 1.6;
}

.message-item-received {
  margin-right: auto;
  border-top-left-radius: 12px;
  background: #ffffff;
}

.message-item-sent {
  width: min(100%, 820px);
  margin-left: auto;
  border-top-right-radius: 12px;
  border-color: rgba(124, 58, 237, 0.14);
  background: rgba(167, 139, 250, 0.14);
  box-shadow: 0 16px 28px rgba(124, 58, 237, 0.05);
}

.message-item-reminder {
  width: 100%;
  max-width: 100%;
  border-radius: 22px;
  border-color: rgba(10, 10, 10, 0.07);
  background: #f5f5f7;
}

.message-item-received strong,
.message-item-sent strong,
.message-item-reminder strong {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-item-received .message-item-top span,
.message-item-sent .message-item-top span,
.message-item-reminder .message-item-top span {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

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

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

.info-card-wide {
  grid-column: 1 / -1;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.photo-grid-upload {
  margin-top: 18px;
}

.photo-history-card {
  padding: 22px;
  border: 1px solid rgba(10, 10, 10, 0.06);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 14px 28px rgba(10, 10, 10, 0.035);
}

.photo-history-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.photo-history-top h4 {
  margin: 4px 0 0;
  font-family: 'Sora', sans-serif;
  font-size: 1.06rem;
  letter-spacing: -0.04em;
}

.photo-history-copy {
  margin: 12px 0 0;
  color: var(--muted);
}

.photo-shot {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(10, 10, 10, 0.07);
  border-radius: 20px;
  background: rgba(245, 245, 247, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.photo-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 11 / 15;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 16px 26px rgba(15, 15, 16, 0.12);
}

.photo-shot figcaption {
  margin-top: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.photo-upload-slot {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 280px;
  padding: 12px;
  border: 1px solid rgba(10, 10, 10, 0.07);
  border-radius: 22px;
  background: rgba(245, 245, 247, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.photo-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-upload-placeholder,
.photo-upload-preview {
  display: block;
  width: 100%;
  aspect-ratio: 11 / 15;
  border-radius: 16px;
}

.photo-upload-placeholder {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.04), rgba(10, 10, 10, 0.08)),
    repeating-linear-gradient(
      135deg,
      rgba(167, 139, 250, 0.12) 0 16px,
      rgba(255, 255, 255, 0.5) 16px 32px
    );
  border: 1px dashed rgba(124, 58, 237, 0.22);
}

.photo-upload-preview {
  object-fit: cover;
  box-shadow: 0 16px 28px rgba(10, 10, 10, 0.08);
}

.photo-upload-overlay {
  position: absolute;
  inset: 12px 12px 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.08),
    rgba(10, 10, 10, 0.24)
  );
  pointer-events: none;
}

.photo-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.92);
  color: white;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 24px rgba(10, 10, 10, 0.12);
}

.photo-upload-caption {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.demo-banner {
  display: block;
  margin-bottom: 18px;
  padding: 18px 22px;
  border-radius: 24px;
  background: #0a0a0a;
  color: white;
  box-shadow: 0 20px 34px rgba(10, 10, 10, 0.14);
}

.demo-banner strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.demo-banner p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.topbar h2,
.section-header h3,
.section-header-compact h4,
.routine-heading h4,
.exercise-top h5 {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.06em;
}

.topbar h2 {
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
}

.section-header h3 {
  font-size: clamp(1.36rem, 1.8vw, 1.8rem);
}

.routine-heading h4 {
  font-size: 1.56rem;
}

.exercise-top h5 {
  margin: 0;
  font-size: 1.08rem;
}

.brand-kicker,
.message-item-top span,
.info-card span,
.student-plan,
.compose-form label {
  letter-spacing: 0.06em;
}

.compose-form input:focus,
.compose-form textarea:focus,
.side-link:focus-visible,
.context-chip:focus-visible,
.day-chip:focus-visible,
.complete-button:focus-visible,
.messages-note a:focus-visible,
.topbar-link:focus-visible,
.workout-modal-close:focus-visible,
.exercise-comment:focus-visible {
  outline: none;
  border-color: rgba(124, 58, 237, 0.46);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18);
}

.demo-banner[hidden] {
  display: none;
}

@media (max-width: 1180px) {
  .student-app,
  .routine-layout,
  .message-columns,
  .info-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .student-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .student-sidebar {
    position: static;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .student-sidebar,
  .student-workspace {
    padding: 20px;
  }

  .student-app,
  .student-sidebar,
  .student-workspace,
  .content-section,
  .routine-panel,
  .exercise-card,
  .message-column,
  .info-card,
  .photo-history-card {
    width: 100%;
    max-width: 100%;
  }

  .content-section,
  .routine-panel,
  .message-compose,
  .message-column,
  .photo-history-card {
    padding: 18px;
  }

  .topbar,
  .section-header,
  .routine-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-link,
  .complete-button {
    width: 100%;
    justify-content: center;
  }

  .exercise-top,
  .exercise-spec-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .exercise-top > div {
    padding-right: 0;
  }

  .section-badge,
  .context-chip,
  .day-chip {
    max-width: 100%;
  }

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

  .exercise-video-status,
  .exercise-video-label {
    max-width: calc(100% - 20px);
  }

  .exercise-comment,
  .compose-form input,
  .compose-form textarea {
    max-width: 100%;
  }

  .exercise-check {
    position: static;
    margin-top: 16px;
  }

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

  .photo-history-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
