/* ==========================================================================
   TAMIL CHESS ARENA — DIGITAL STUDENT & COACH DASHBOARD STYLES
   Theme: Matches Main Website Design System
   Aesthetic: Premium Editorial × Modern Chess SaaS × Elite Sports Training
   Palette: Warm Ivory/Slate Canvas (#FBFBF9), Crisp White Surfaces (#FFFFFF),
            Deep Charcoal Text (#111827), Official Gold Accents (#C59B27)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables / Design Tokens (Aligned with style.css)
   -------------------------------------------------------------------------- */
:root {
  /* Canvas & Surfaces */
  --dash-bg: #FBFBF9;
  --dash-bg-subtle: #F4F3EE;
  --dash-bg-tertiary: #EFEFE8;
  --dash-surface: #FFFFFF;
  --dash-surface-raised: #FFFFFF;
  --dash-surface-hover: #F8F8F5;
  
  /* Borders */
  --dash-border: rgba(17, 24, 39, 0.08);
  --dash-border-medium: rgba(17, 24, 39, 0.14);
  --dash-border-subtle: rgba(197, 155, 39, 0.25);
  --dash-border-focus: #C59B27;
  
  /* Brand Accents */
  --gold-primary: #C59B27;
  --gold-light: #E5C158;
  --gold-dark: #9A7516;
  --gold-surface: #FBF6E9;
  --gold-border: #E8D399;
  --gold-glow: rgba(197, 155, 39, 0.22);
  
  /* Typography Colors */
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --text-subtle: #9CA3AF;
  
  /* Functional Accents */
  --accent-green: #059669;
  --accent-green-bg: #ECFDF5;
  --accent-green-border: #A7F3D0;
  
  --accent-blue: #2563EB;
  --accent-blue-bg: #EFF6FF;
  --accent-blue-border: #BFDBFE;
  
  --accent-red: #DC2626;
  --accent-red-bg: #FEF2F2;
  --accent-red-border: #FECACA;
  
  --accent-yellow: #D97706;
  --accent-yellow-bg: #FEF3C7;
  --accent-yellow-border: #FDE68A;
  
  /* Chessboard Squares */
  --sq-light: #EEEED2;
  --sq-dark: #769656;
  --sq-selected: #F5D04D;
  --sq-correct: #10B981;
  
  /* Typography Stack */
  --font-heading: 'Plus Jakarta Sans', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, Monaco, monospace;
  
  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 24px -4px rgba(17, 24, 39, 0.06), 0 2px 6px -1px rgba(17, 24, 39, 0.04);
  --shadow-hover: 0 16px 36px -6px rgba(17, 24, 39, 0.1), 0 4px 12px -2px rgba(17, 24, 39, 0.04);
  --shadow-gold: 0 8px 24px rgba(197, 155, 39, 0.22);
}

/* --------------------------------------------------------------------------
   2. Base Reset & Layout
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--dash-bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 12% 10%, rgba(197, 155, 39, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(17, 24, 39, 0.03) 0%, transparent 45%);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   3. Top Application Bar
   -------------------------------------------------------------------------- */
.portal-topbar {
  background: rgba(251, 251, 249, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--dash-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 24px;
}

.portal-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-logo-img {
  height: 48px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  border-radius: 8px;
  background: #000000;
  padding: 3px 8px;
  border: 1.5px solid rgba(197, 155, 39, 0.45);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.1);
}

.portal-tagline {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--gold-dark);
  background: var(--gold-surface);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-border);
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}

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

.btn-back-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #FFFFFF;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--dash-border-medium);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.btn-back-site:hover {
  color: var(--text-primary);
  border-color: var(--gold-primary);
  background: var(--dash-bg-subtle);
  transform: translateY(-1px);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--dash-border-medium);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-subtle);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 2px 6px rgba(197, 155, 39, 0.3);
}

.user-info-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.user-role-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--gold-surface);
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
}

.btn-logout {
  background: #FFFFFF;
  border: 1px solid var(--dash-border-medium);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.btn-logout:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: var(--accent-red-bg);
}

/* --------------------------------------------------------------------------
   4. Auth / Login Screen
   -------------------------------------------------------------------------- */
.auth-container {
  max-width: 460px;
  margin: 60px auto 40px;
  padding: 0 20px;
  width: 100%;
}

.auth-card {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-xl);
  padding: 38px 32px;
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  height: 64px;
  width: auto;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #000000;
  padding: 4px 10px;
  border: 1.5px solid rgba(197, 155, 39, 0.45);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.1);
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.form-input {
  width: 100%;
  background: #FAF9F5;
  border: 1px solid var(--dash-border-medium);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input::placeholder {
  color: var(--text-subtle);
}

.btn-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
  color: #111827;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-dark);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.btn-auth-submit:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(197, 155, 39, 0.32);
}

.auth-quick-creds {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--dash-border);
}

.quick-creds-title {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 700;
}

.quick-creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-quick-fill {
  background: #FAF9F5;
  border: 1px solid var(--dash-border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.btn-quick-fill:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
  background: var(--gold-surface);
  box-shadow: var(--shadow-subtle);
}

.btn-quick-fill strong {
  display: block;
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-alert {
  background: var(--accent-red-bg);
  border: 1px solid var(--accent-red-border);
  color: var(--accent-red);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: none;
}

/* --------------------------------------------------------------------------
   5. Main Dashboard Shell & Navigation Tabs
   -------------------------------------------------------------------------- */
.portal-main-container {
  max-width: 1400px;
  margin: 24px auto 60px;
  padding: 0 24px;
  width: 100%;
  flex: 1;
}

.nav-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-tabs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: var(--dash-bg-subtle);
}

.nav-tab-btn.active {
  color: var(--gold-dark);
  background: var(--gold-surface);
  border-color: var(--gold-border);
  font-weight: 700;
}

.tab-badge {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--dash-bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--dash-border);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   6. Student Dashboard Window
   -------------------------------------------------------------------------- */
.student-dash-window {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.dash-window-topbar {
  background: #F8F8F5;
  border-bottom: 1px solid var(--dash-border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.w-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.w-dot.red { background: #FF5F56; }
.w-dot.yellow { background: #FFBD2E; }
.w-dot.green { background: #27C93F; }

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.window-live-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  color: var(--accent-green);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.live-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Dashboard Body Grid */
.dash-layout-grid {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}

.dash-col-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dash-stat-box {
  background: #FAF9F5;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
  transition: all var(--transition-fast);
}

.dash-stat-box:hover {
  border-color: var(--gold-primary);
  background: #FFFFFF;
  box-shadow: var(--shadow-subtle);
  transform: translateY(-2px);
}

.stat-box-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.stat-box-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-box-sub {
  font-size: 0.78rem;
  color: var(--accent-green);
  font-weight: 600;
}

/* Rating Trajectory Card */
.dash-chart-card {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-subtle);
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chart-card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  padding: 3px 8px;
  border-radius: 4px;
}

.rating-chart-svg {
  width: 100%;
  height: 180px;
  overflow: visible;
}

.chart-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding-top: 10px;
  border-top: 1px solid var(--dash-border);
}

/* Coach Personal Feedback Box */
.coach-notes-card {
  background: #FBF7EE;
  border: 1px solid #E8D5A3;
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.coach-notes-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.coach-notes-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-dark);
  font-family: var(--font-heading);
}

.coach-notes-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Right Column: Daily Puzzle + Active Course */
.dash-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Today's Tactical Puzzle Card */
.tactical-puzzle-card {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-subtle);
}

.puzzle-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.puzzle-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.puzzle-rating-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  padding: 3px 8px;
  border-radius: 4px;
}

.puzzle-card-content {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  align-items: center;
}

.mini-puzzle-board {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold-border);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  position: relative;
  cursor: pointer;
}

.puzzle-meta-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.puzzle-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.puzzle-prompt {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.puzzle-refresh-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--accent-green);
  font-weight: 600;
}

.puzzle-cta-btn {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #111827;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition-fast);
}

.puzzle-cta-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  transform: translateY(-1px);
}

/* Active Course Roadmap Card */
.active-course-card {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-subtle);
}

.course-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.course-progress-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  background: var(--dash-bg-subtle);
  border: 1px solid var(--dash-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.lessons-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lesson-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #FAF9F5;
  border: 1px solid var(--dash-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lesson-row-item:hover {
  border-color: var(--gold-primary);
  background: #F4F3EE;
  transform: translateY(-1px);
}

.lesson-row-item.completed {
  border-left: 3px solid var(--accent-green);
}

.lesson-row-item.in-progress {
  border-left: 3px solid var(--gold-primary);
  background: var(--gold-surface);
  border-color: var(--gold-border);
}

.lesson-row-item.locked {
  opacity: 0.6;
  cursor: not-allowed;
  border-left: 3px solid var(--text-subtle);
}

.lesson-left-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lesson-row-item.completed .lesson-status-icon {
  background: var(--accent-green-bg);
  color: var(--accent-green);
}

.lesson-row-item.in-progress .lesson-status-icon {
  background: var(--gold-surface);
  color: var(--gold-dark);
}

.lesson-row-item.locked .lesson-status-icon {
  background: var(--dash-bg-subtle);
  color: var(--text-muted);
}

.lesson-title-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lesson-state-tag {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.lesson-row-item.in-progress .lesson-state-tag {
  color: var(--gold-dark);
  font-weight: 700;
}

.lesson-row-item.completed .lesson-state-tag {
  color: var(--accent-green);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Coach / Admin Control Panel & Student Roster
   -------------------------------------------------------------------------- */
.admin-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-admin-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary-gold {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #111827;
  font-weight: 700;
  border: 1px solid var(--gold-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(197, 155, 39, 0.3);
}

.btn-secondary-dark {
  background: #FFFFFF;
  border: 1px solid var(--dash-border-medium);
  color: var(--text-secondary);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary-dark:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
  background: var(--dash-bg-subtle);
}

/* Students Roster Table Card */
.students-table-card {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: #F8F8F5;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 20px;
  border-bottom: 1px solid var(--dash-border);
}

.admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--dash-border);
  font-size: 0.9rem;
  vertical-align: middle;
  color: var(--text-primary);
}

.admin-table tr:hover td {
  background: #FAF9F5;
}

.student-name-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.student-meta-col {
  display: flex;
  flex-direction: column;
}

.student-full-name {
  font-weight: 600;
  color: var(--text-primary);
}

.student-username {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.level-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.level-badge.beginner {
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue-border);
}

.level-badge.intermediate {
  background: var(--gold-surface);
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
}

.level-badge.tournament {
  background: #F3E8FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
}

.rating-display {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
}

.streak-display {
  color: var(--accent-yellow);
  font-weight: 600;
}

.actions-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon-action {
  background: #FAF9F5;
  border: 1px solid var(--dash-border-medium);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-action:hover {
  color: var(--gold-dark);
  border-color: var(--gold-primary);
  background: #FFFFFF;
  box-shadow: var(--shadow-subtle);
}

.btn-icon-action.delete:hover {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: var(--accent-red-bg);
}

/* --------------------------------------------------------------------------
   8. Interactive Teaching Board & Classroom Suite
   -------------------------------------------------------------------------- */
.teaching-classroom-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 24px;
}

.board-container-card {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-card);
}

.board-stage {
  width: 460px;
  height: 460px;
  background: #2A3649;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.16);
  border: 4px solid #1E293B;
  position: relative;
  user-select: none;
}

.board-grid-squares {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  height: 100%;
}

.board-sq {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.board-sq.light {
  background-color: var(--sq-light);
}

.board-sq.dark {
  background-color: var(--sq-dark);
}

.board-sq.selected {
  background-color: var(--sq-selected) !important;
}

.board-sq.valid-dest::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: rgba(16, 185, 129, 0.45);
  border-radius: 50%;
}

.board-sq.valid-capture::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 4px solid rgba(220, 38, 38, 0.7);
  border-radius: 50%;
}

.board-piece {
  width: 90%;
  height: 90%;
  cursor: grab;
  transition: transform var(--transition-fast);
  z-index: 2;
}

.board-piece:active {
  cursor: grabbing;
}

.board-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.btn-board-ctrl {
  background: #FFFFFF;
  border: 1px solid var(--dash-border-medium);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.btn-board-ctrl:hover {
  color: var(--text-primary);
  border-color: var(--gold-primary);
  background: var(--dash-bg-subtle);
  transform: translateY(-1px);
}

/* Teaching Sidebar */
.teaching-sidebar-card {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
}

.teaching-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.teaching-h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preset-positions-select {
  background: #FAF9F5;
  border: 1px solid var(--dash-border-medium);
  color: var(--text-primary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  cursor: pointer;
}

.preset-positions-select:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.move-notation-history {
  background: #F8F8F5;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  height: 160px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notation-turn-row {
  display: flex;
  gap: 14px;
}

.turn-num {
  color: var(--text-muted);
  width: 28px;
}

.white-move, .black-move {
  color: var(--text-primary);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.white-move:hover, .black-move:hover {
  background: var(--gold-surface);
  color: var(--gold-dark);
}

.lesson-explainer-box {
  background: #FAF9F5;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-md);
  padding: 18px;
  flex: 1;
}

.explainer-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
}

.explainer-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. Modal Windows
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-xl);
  padding: 34px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px -12px rgba(17, 24, 39, 0.2);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dash-border);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.btn-close-modal:hover {
  color: var(--text-primary);
}

.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-full {
  grid-column: span 2;
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  border: 1px solid var(--gold-primary);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   10. Enhanced 36-Lesson Interactive Tutorials Suite
   -------------------------------------------------------------------------- */
.tutorials-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 820px;
}

.tutorials-sidebar {
  background: #FBFBF9;
  border-right: 1px solid var(--dash-border);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.tut-sidebar-header {
  padding: 0 18px 14px;
  border-bottom: 1px solid var(--dash-border);
}

.tut-sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tut-progress-box {
  padding: 14px 18px;
  border-bottom: 1px solid var(--dash-border);
  background: #F4F3EE;
}

.tut-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.tut-stat-row span:last-child {
  color: var(--gold-dark);
  font-weight: 700;
}

.tut-progress-track {
  background: #E5E7EB;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.tut-progress-fill {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-primary));
  height: 100%;
  width: 0%;
  transition: width var(--transition-normal);
}

/* Chapter Filter Scroll */
.filter-scroll {
  padding: 10px 14px;
  border-bottom: 1px solid var(--dash-border);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: #FFFFFF;
  border: 1px solid var(--dash-border-medium);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.filter-chip:hover {
  background: var(--dash-bg-subtle);
  color: var(--text-primary);
  border-color: var(--gold-primary);
}

.filter-chip.active {
  background: var(--gold-surface);
  color: var(--gold-dark);
  font-weight: 700;
  border-color: var(--gold-primary);
}

/* Lessons List Navigation */
.tut-lessons-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 10px;
  flex: 1;
  overflow-y: auto;
  max-height: 580px;
}

.tut-lesson-item {
  margin-bottom: 4px;
}

.tut-lesson-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.tut-lesson-btn:hover {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: var(--dash-border);
  box-shadow: var(--shadow-subtle);
}

.tut-lesson-btn.active {
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  font-weight: 700;
}

.tut-lesson-num {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  min-width: 22px;
}

.tut-lesson-btn.active .tut-lesson-num {
  color: var(--gold-dark);
  font-weight: 700;
}

.tut-lesson-title-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tut-badges-wrap {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.tut-mini-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: 700;
}

.tut-mini-badge.cw {
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue-border);
}

.tut-mini-badge.hw {
  background: var(--gold-surface);
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
}

/* Tutorial Main Study Pane */
.tutorial-study-pane {
  background: #FAF9F5;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tut-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tut-chapter-pill {
  display: inline-block;
  background: var(--gold-surface);
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.tut-title-h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.tut-subtitle-p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* 3 Section Tabs (1. Teach, 2. Class Work, 3. Home Work) */
.tut-section-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #FFFFFF;
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--dash-border);
  box-shadow: var(--shadow-subtle);
}

.tut-sec-tab {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.tut-sec-tab:hover {
  background: var(--dash-bg-subtle);
  color: var(--text-primary);
}

.tut-sec-tab.active {
  background: var(--gold-surface);
  color: var(--gold-dark);
  border-color: var(--gold-border);
  font-weight: 700;
}

.tut-sec-tab .tut-sec-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(17, 24, 39, 0.06);
  color: inherit;
  font-weight: 700;
}

/* Challenge Banner for Classwork and Homework */
.tut-challenge-banner {
  background: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.tut-challenge-banner.hw-mode {
  background: var(--accent-yellow-bg);
  border-color: var(--accent-yellow-border);
  border-left-color: var(--gold-primary);
}

.tut-challenge-title {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-green);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tut-challenge-banner.hw-mode .tut-challenge-title {
  color: var(--gold-dark);
}

.tut-challenge-desc {
  font-size: 0.94rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Diagram Board Area */
.tut-diagram-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--dash-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.tut-board-frame {
  width: 380px;
  height: 380px;
  position: relative;
  background: #2A3649;
  border: 3px solid #1E293B;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.tut-board-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  width: 100%;
  height: 100%;
}

.tut-caption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.5;
}

.tut-diagram-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-tut-ctrl {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #111827;
  border: 1px solid var(--gold-dark);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-gold);
  transition: all var(--transition-fast);
}

.btn-tut-ctrl:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  transform: translateY(-1px);
}

.btn-tut-ctrl.secondary {
  background: #FFFFFF;
  color: var(--text-secondary);
  border: 1px solid var(--dash-border-medium);
  box-shadow: var(--shadow-subtle);
}

.btn-tut-ctrl.secondary:hover {
  background: var(--dash-bg-subtle);
  color: var(--text-primary);
  border-color: var(--gold-primary);
}

/* Feedback Box */
.tut-feedback-box {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  display: none;
}

.tut-feedback-box.show {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tut-feedback-box.success {
  background: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  color: var(--accent-green);
}

.tut-feedback-box.hint {
  background: var(--accent-blue-bg);
  border: 1px solid var(--accent-blue-border);
  color: var(--accent-blue);
}

/* Demonstration Note */
.tut-demo-note {
  background: var(--gold-surface);
  border-left: 3px solid var(--gold-primary);
  padding: 10px 16px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-top: 1px solid var(--gold-border);
  border-right: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
}

/* Lesson Text Content */
.tut-text-card {
  background: #FFFFFF;
  border: 1px solid var(--dash-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-subtle);
}

.tut-text-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tut-text-card p {
  font-size: 0.92rem;
  margin-bottom: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.tut-text-card ul, .tut-text-card ol {
  margin-bottom: 14px;
  padding-left: 22px;
}

.tut-text-card li {
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tut-text-card strong {
  color: var(--text-primary);
}

/* Navigation between lessons */
.tut-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--dash-border);
}

.btn-tut-nav {
  background: #FFFFFF;
  border: 1px solid var(--dash-border-medium);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.btn-tut-nav:hover:not(:disabled) {
  border-color: var(--gold-primary);
  color: var(--text-primary);
  background: var(--dash-bg-subtle);
  transform: translateY(-1px);
}

.btn-tut-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   11. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .dash-layout-grid {
    grid-template-columns: 1fr;
  }
  
  .teaching-classroom-grid {
    grid-template-columns: 1fr;
  }
  
  .board-stage {
    width: 380px;
    height: 380px;
  }

  .tutorials-layout {
    grid-template-columns: 1fr;
  }

  .tutorials-sidebar {
    max-height: 320px;
    border-right: none;
    border-bottom: 1px solid var(--dash-border);
  }

  .tut-lessons-list {
    max-height: 200px;
  }

  .tutorial-study-pane {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .portal-topbar {
    padding: 10px 16px;
  }
  
  .portal-tagline {
    display: none;
  }
  
  .portal-main-container {
    padding: 0 16px;
    margin: 16px auto 40px;
  }
  
  .dash-stats-row {
    grid-template-columns: 1fr;
  }
  
  .board-stage {
    width: 320px;
    height: 320px;
  }
  
  .puzzle-card-content {
    grid-template-columns: 1fr;
  }
  
  .mini-puzzle-board {
    margin: 0 auto;
  }
  
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
  
  .grid-full {
    grid-column: span 1;
  }
}
