:root {
  --bg: #ffffff;
  --panel: #f6f8f9;
  --panel-strong: #eef4f3;
  --text: #17211f;
  --muted: #61706d;
  --line: #dfe7e5;
  --teal: #168577;
  --teal-dark: #0f655b;
  --amber: #c88722;
  --amber-bg: #fff6e7;
  --red: #bd3d39;
  --red-bg: #fff0ef;
  --shadow: 0 18px 50px rgba(23, 33, 31, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  background: #fbfcfc;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: white;
}

.nav-list {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: var(--panel-strong);
  color: var(--teal-dark);
}

.icon {
  width: 18px;
  text-align: center;
}

.main {
  padding: 28px;
}

.topbar,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.date-label,
.section-label {
  margin: 0 0 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0 16px;
  font-weight: 750;
}

.primary-button {
  background: var(--teal);
  color: white;
}

.ghost-button {
  background: white;
  border-color: var(--line);
  color: var(--text);
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef8f6 0%, #f7faf9 72%);
  padding: 26px;
  box-shadow: var(--shadow);
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.session-timer {
  display: grid;
  min-width: 138px;
  min-height: 96px;
  place-items: center;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
}

.session-timer span {
  font-size: 34px;
  font-weight: 850;
  color: var(--teal-dark);
}

.session-timer small {
  margin-top: -16px;
  color: var(--muted);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.schedule-panel,
.insights > section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.schedule-panel {
  padding: 22px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.schedule-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.session-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid transparent;
}

.session-row.current {
  border-color: rgba(22, 133, 119, 0.45);
  background: #f0faf8;
}

.session-row.done {
  background: #f6fbf8;
}

.time {
  font-size: 21px;
  font-weight: 850;
  color: var(--teal-dark);
}

.session-name {
  margin: 0 0 4px;
  font-weight: 850;
}

.session-meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.check-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
}

.session-row.done .check-button {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.insights {
  display: grid;
  gap: 14px;
}

.progress-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.progress-ring {
  display: grid;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, white 58%, transparent 59%),
    conic-gradient(var(--teal) calc(var(--progress) * 1%), #e7eeee 0);
}

.progress-ring span {
  font-weight: 900;
}

.detail-card {
  padding: 18px;
}

.detail-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-card.amber {
  background: var(--amber-bg);
  border-color: #f1d7a8;
}

.detail-card.warning {
  background: var(--red-bg);
  border-color: #f0c9c7;
}

.detail-card.warning .section-label {
  color: var(--red);
}

.exercise-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 20px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .hero-panel,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .session-timer {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .main {
    padding: 16px;
  }

  .session-row {
    grid-template-columns: 1fr auto;
  }

  .time {
    grid-column: 1 / -1;
  }
}
