/* Palette (semantic):
  --color-bg-1: #040814;           Primary deep blue (background gradient base)
  --color-bg-2: #0c1633;           Secondary deep blue
  --color-primary: #13244d;        Soft dark navy for contrast blocks
  --color-accent: #34d8ff;         Accent cyan/teal for glows and active elements
  --color-gold: #f4c76a;           Gold accent for brand highlights
  --color-glass: rgba(255,255,255,0.06); Glass surface color
  --color-glass-strong: rgba(255,255,255,0.1);
  --color-border: rgba(255,255,255,0.18); Border color
  --color-text-main: #e7eefc;      Off-white text on dark
  --color-text-muted: #90a2c0;     Muted text on dark
  --color-text-ink: #0c152b;       Soft dark navy text on light glass
  --color-danger: #f18c7a;         Error / warn accent
*/

:root {
  --color-bg-1: #040814;
  --color-bg-2: #0c1633;
  --color-primary: #13244d;
  --color-accent: #34d8ff;
  --color-gold: #f4c76a;
  --color-glass: rgba(255, 255, 255, 0.06);
  --color-glass-strong: rgba(255, 255, 255, 0.1);
  --color-border: rgba(255, 255, 255, 0.18);
  --color-text-main: #e7eefc;
  --color-text-muted: #90a2c0;
  --color-text-ink: #0c152b;
  --color-danger: #f18c7a;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(52, 216, 255, 0.25);
  --blur: blur(18px);
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-primary: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: "Space Grotesk", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--color-text-main);
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(52, 216, 255, 0.08), transparent 35%),
    linear-gradient(135deg, var(--color-bg-1), var(--color-bg-2));
  position: relative;
  overflow-x: hidden;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 85% 10%, rgba(244, 199, 106, 0.14), transparent 28%),
    radial-gradient(circle at 10% 80%, rgba(52, 216, 255, 0.12), transparent 35%);
  filter: blur(40px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.bg-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 6px 6px;
  opacity: 0.6;
  mix-blend-mode: soft-light;
  z-index: 1;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 28px;
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

.glass-card {
  background: var(--color-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
  border-color: rgba(52, 216, 255, 0.3);
}

.glass-button {
  background: var(--color-glass-strong);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.glass-button:hover {
  box-shadow: var(--shadow-soft), 0 0 14px rgba(52, 216, 255, 0.35);
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(52, 216, 255, 0.4);
}

.glass-button.active {
  border-color: rgba(52, 216, 255, 0.5);
  box-shadow: var(--shadow-soft), 0 0 14px rgba(52, 216, 255, 0.45);
}

.glass-button.accent {
  background: linear-gradient(135deg, rgba(52, 216, 255, 0.6), rgba(244, 199, 106, 0.9));
  color: var(--color-text-ink);
  border-color: rgba(244, 199, 106, 0.6);
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-soft);
  color: var(--color-text-main);
}

.glass-chip.active {
  border-color: rgba(52, 216, 255, 0.5);
  box-shadow: 0 0 10px rgba(52, 216, 255, 0.4);
}

.select-chip {
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  appearance: none;
  cursor: pointer;
}

.hit-chip {
  background: rgba(244, 199, 106, 0.16);
}

.fade-in {
  animation: fadeUp 320ms ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.nav-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 20px;
  align-self: start;
  background: linear-gradient(180deg, rgba(19, 36, 77, 0.85), rgba(4, 8, 20, 0.9));
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(52, 216, 255, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, rgba(52, 216, 255, 0.55));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 0 12px rgba(52, 216, 255, 0.45);
}

.brand-text .brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-main);
}

.brand-text .brand-tagline {
  color: var(--color-text-muted);
  font-size: 12px;
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all 200ms ease;
}

.nav-item .icon {
  font-size: 14px;
  opacity: 0.7;
}

.nav-item.active {
  background: linear-gradient(120deg, rgba(52, 216, 255, 0.12), rgba(244, 199, 106, 0.14));
  border-color: rgba(52, 216, 255, 0.4);
  box-shadow: 0 0 10px rgba(52, 216, 255, 0.35);
}

.nav-item:hover {
  box-shadow: 0 0 10px rgba(52, 216, 255, 0.3);
  border-color: rgba(52, 216, 255, 0.35);
}

.nav-foot {
  margin-top: auto;
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.instructor-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.instructor-toggle input {
  accent-color: var(--color-accent);
}

.main-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topbar {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 6px 0 10px;
  letter-spacing: -0.01em;
  font-family: var(--font-accent);
}

h1 {
  font-size: 26px;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text-main);
  font-size: 12px;
  border: 1px solid var(--color-border);
}

.pill.live {
  background: rgba(52, 216, 255, 0.2);
  color: #dff7ff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(52, 216, 255, 0.45);
}

.pill.ghost {
  background: rgba(255, 255, 255, 0.05);
}

.pill.danger {
  background: rgba(241, 140, 122, 0.16);
  border-color: rgba(241, 140, 122, 0.4);
  color: #ffd8d0;
}

.card {
  border-radius: var(--radius-lg);
  padding: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-border);
}

.avatar-initials {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(19, 36, 77, 0.95), rgba(52, 216, 255, 0.35));
  font-weight: 700;
  color: var(--color-text-main);
}

.avatar-meta .label {
  display: block;
  font-size: 12px;
  color: var(--color-text-muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.card--metric {
  min-height: 160px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.stat-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0;
}

.stat-value {
  font-family: var(--font-accent);
  font-size: 34px;
  font-weight: 700;
}

.stat-value small {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-left: 6px;
}

.stat-sub {
  color: var(--color-text-muted);
  font-size: 13px;
}

.stat-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.stat-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(52, 216, 255, 0.9), rgba(52, 216, 255, 0.45));
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(52, 216, 255, 0.35);
}

.stat-bar.gold span {
  background: linear-gradient(90deg, rgba(244, 199, 106, 0.95), rgba(244, 199, 106, 0.55));
  box-shadow: 0 0 12px rgba(244, 199, 106, 0.4);
}

.stat-bar.accent span {
  background: linear-gradient(90deg, rgba(52, 216, 255, 0.9), rgba(125, 213, 255, 0.55));
}

.panel-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.panel-grid.tertiary {
  grid-template-columns: 1.3fr 0.7fr;
}

.card--session {
  background: linear-gradient(150deg, rgba(19, 36, 77, 0.8), rgba(4, 8, 20, 0.92));
  border: 1px solid rgba(52, 216, 255, 0.2);
}

.session-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.session-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.session-video-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 12px;
  align-items: stretch;
}

.video-wrap {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 30% 20%, rgba(52, 216, 255, 0.18), rgba(4, 8, 20, 0.9));
  min-height: 360px;
}

.video-mask {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
  font-family: var(--font-accent);
  letter-spacing: 0.06em;
  pointer-events: none;
}

#session-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b1224;
  filter: saturate(1.05);
}

#rudi-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  background: rgba(4, 8, 20, 0.65);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-soft);
}

.metronome {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metronome-controls {
  display: grid;
  gap: 10px;
}

.slider-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-value {
  min-width: 34px;
  text-align: right;
  font-weight: 700;
  font-family: var(--font-accent);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 216, 255, 0.15), rgba(255, 255, 255, 0.08));
  outline: none;
  flex: 1;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #c2f4ff 60%, #52dfff 100%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 12px rgba(52, 216, 255, 0.55);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #c2f4ff 60%, #52dfff 100%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 12px rgba(52, 216, 255, 0.55);
}

select,
label {
  color: var(--color-text-main);
  font-size: 14px;
}

select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-main);
}

.metronome-buttons {
  display: flex;
  gap: 8px;
}

.metronome-pulse {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(52, 216, 255, 0.55);
  box-shadow: 0 0 12px rgba(52, 216, 255, 0.45);
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.metronome-pulse.active {
  background: rgba(52, 216, 255, 0.4);
  transform: scale(1.1);
}

.metronome-pulse.accent {
  box-shadow: 0 0 18px rgba(244, 199, 106, 0.75);
}

.controls-row {
  display: flex;
  gap: 10px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.control-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.control-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-soft), 0 0 10px rgba(244, 199, 106, 0.4);
  border-color: rgba(244, 199, 106, 0.5);
}

.control-btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #dfe6f5;
}

.control-btn.accent {
  background: linear-gradient(135deg, rgba(244, 199, 106, 0.95), rgba(52, 216, 255, 0.75));
  color: var(--color-text-ink);
  box-shadow: var(--shadow-soft), 0 0 12px rgba(244, 199, 106, 0.4);
}

.timeline {
  margin-top: 10px;
}

.timeline-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-item {
  flex: 1 1 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
  transition: all 180ms ease;
  position: relative;
  overflow: hidden;
  color: var(--color-text-main);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 10px rgba(244, 199, 106, 0.7);
  opacity: 0.8;
}

.timeline-item:hover {
  border-color: rgba(52, 216, 255, 0.4);
  transform: translateY(-1px) scale(1.01);
}

.timeline-item.active {
  background: rgba(52, 216, 255, 0.12);
  box-shadow: 0 0 14px rgba(52, 216, 255, 0.3);
}

.card--feedback {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.chip-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip-rail .glass-chip {
  background: rgba(52, 216, 255, 0.12);
  border-color: rgba(52, 216, 255, 0.3);
}

.metrics-grid.vertical {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.metric {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  color: var(--color-text-main);
}

.metric .label {
  font-size: 13px;
  color: var(--color-text-muted);
}

.metric .value {
  font-size: 20px;
  font-weight: 700;
}

.metric-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 8px;
}

.metric-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(244, 199, 106, 0.9), rgba(52, 216, 255, 0.75));
  width: 50%;
  transition: width 240ms ease;
}

.coach-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
}

.coach-message {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
}

.mini-chart {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.card--wide {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.chart-placeholder {
  min-height: 220px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 40% 40%, rgba(52, 216, 255, 0.08), transparent 40%);
}

.chart-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
}

.placeholder-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.lessons-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 14px;
}

.lessons-column {
  min-height: 320px;
}

.lesson-categories,
.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lesson-item {
  padding: 12px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.lesson-item.active {
  border-color: rgba(52, 216, 255, 0.4);
  box-shadow: 0 0 10px rgba(52, 216, 255, 0.35);
}

.lesson-name {
  font-weight: 700;
}

.lesson-meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

.lesson-detail ul {
  padding-left: 18px;
}

.lesson-tempo {
  margin: 10px 0;
  font-weight: 600;
}

.profile-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

.profile-header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, rgba(52, 216, 255, 0.55));
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px rgba(52, 216, 255, 0.45);
}

.profile-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(244, 199, 106, 0.16);
  border: 1px solid rgba(244, 199, 106, 0.4);
}

.session-layout.instructor-on .card--feedback {
  display: none;
}

.session-layout.instructor-on .session-video-wrapper {
  grid-template-columns: 1fr;
}

.chat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 14px;
  min-height: 280px;
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.chat-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  max-width: 80%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.chat-bubble.user {
  background: rgba(52, 216, 255, 0.14);
  border: 1px solid rgba(52, 216, 255, 0.4);
  color: var(--color-text-main);
  margin-left: auto;
}

.chat-bubble.rudi {
  background: rgba(244, 199, 106, 0.16);
  border: 1px solid rgba(244, 199, 106, 0.4);
  color: var(--color-text-main);
}

.chat-bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 10px rgba(244, 199, 106, 0.4), var(--shadow-soft);
}

.chat-prompts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-chip {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 13px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  box-shadow: var(--shadow-soft);
}

.prompt-chip:hover {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(52, 216, 255, 0.4);
  box-shadow: 0 0 10px rgba(52, 216, 255, 0.35), var(--shadow-soft);
}

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-main);
  box-shadow: var(--shadow-soft);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.chat-input-row input:focus {
  outline: none;
  border-color: rgba(52, 216, 255, 0.6);
  box-shadow: 0 0 10px rgba(52, 216, 255, 0.35), var(--shadow-soft);
}

.summary-text {
  color: var(--color-text-main);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .nav-panel {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand-header {
    width: 100%;
  }
  .panel-grid,
  .panel-grid.tertiary {
    grid-template-columns: 1fr;
  }
  .session-video-wrapper {
    grid-template-columns: 1fr;
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .lessons-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .topbar-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

