/* ==========================================================================
   Aimstars Training Companion - Custom Styling (VALORANT-Inspired CSS)
   ========================================================================== */

/* Theme & Global Properties */
:root {
  /* Core Color Palette */
  --bg-darker: hsl(225, 25%, 7%);
  --bg-dark: hsl(225, 20%, 12%);
  --bg-light: hsl(225, 15%, 19%);
  --bg-input: hsl(225, 18%, 14%);
  --border-light: hsl(225, 12%, 24%);
  --border-hover: hsl(225, 12%, 35%);
  
  --text-primary: hsl(0, 0%, 95%);
  --text-secondary: hsl(225, 10%, 65%);
  --text-muted: hsl(225, 8%, 45%);
  
  /* Brand/Accent Colors */
  --accent-red: hsl(355, 84%, 55%);
  --accent-red-hover: hsl(355, 84%, 48%);
  --accent-red-glow: hsla(355, 84%, 55%, 0.25);
  
  --accent-cyan: hsl(188, 90%, 50%);
  --accent-cyan-glow: hsla(188, 90%, 50%, 0.2);
  
  --accent-purple: hsl(272, 85%, 60%);
  --accent-purple-glow: hsla(272, 85%, 60%, 0.15);
  
  --accent-green: hsl(142, 70%, 45%);
  --accent-green-glow: hsla(142, 70%, 45%, 0.15);
  
  --accent-yellow: hsl(45, 100%, 50%);
  --accent-yellow-glow: hsla(45, 100%, 50%, 0.15);
  
  /* Glassmorphism Specs */
  --glass-bg: rgba(12, 16, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.45);
  
  /* Fonts */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-darker);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: repeat;
  background-position: center;
  background-size: auto;
  opacity: 0.18;
  transition: opacity 0.3s ease, background 0.3s ease;
}

/* Background Texture Patterns */
body.bg-pattern-grid::before {
  background-image: radial-gradient(var(--border-light) 1px, transparent 1px), radial-gradient(var(--border-light) 1px, var(--bg-darker) 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  opacity: 0.25;
}

body.bg-pattern-geometry::before {
  background-image: linear-gradient(135deg, var(--border-light) 25%, transparent 25%), linear-gradient(225deg, var(--border-light) 25%, transparent 25%), linear-gradient(45deg, var(--border-light) 25%, transparent 25%), linear-gradient(315deg, var(--border-light) 25%, var(--bg-darker) 25%);
  background-position: 16px 0, 16px 0, 0 0, 0 0;
  background-size: 32px 32px;
  opacity: 0.15;
}

body.bg-pattern-dots::before {
  background-image: radial-gradient(var(--accent-cyan) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.12;
}

body.bg-pattern-custom::before {
  background-image: var(--custom-bg-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;
  filter: contrast(1.1) brightness(0.8);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-light);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Generic Layout Helper Components */
.card {
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-dark);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.card.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
}

/* Layout Core Viewport */
.app-viewport {
  flex: 1;
  max-width: 1300px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body:has(#view-session.active) .app-viewport {
  max-width: 1408px;
}

.app-view {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  height: 100%;
}

.app-view.active {
  display: block;
  opacity: 1;
}

/* Navigation Header */
.app-header {
  background-color: rgba(9, 13, 22, 0.92);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 28px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.header-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  user-select: none;
}

.logo-accent {
  color: var(--accent-red);
  margin-right: 6px;
  text-shadow: 0 0 14px var(--accent-red-glow);
  font-size: 21px;
}

.logo-sub {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  margin-left: 6px;
  letter-spacing: 0.15em;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-version {
  margin-left: 8px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.6;
  vertical-align: middle;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(14, 20, 32, 0.6);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.06);
}

.nav-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.2) 0%, rgba(255, 70, 85, 0.08) 100%);
  border-color: rgba(255, 70, 85, 0.4);
  box-shadow: 0 0 15px rgba(255, 70, 85, 0.18);
}

.nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent-red);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-red);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Streak Badge Styles in Header */
.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--accent-yellow, #f59e0b);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  box-sizing: border-radius;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.streak-badge:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.streak-icon {
  font-size: 13px;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
  animation: streak-pulse 2s infinite ease-in-out;
}

@keyframes streak-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.streak-label {
  font-size: 9.5px;
  opacity: 0.8;
  letter-spacing: 0.08em;
}

/* Rank Badge Styles in Header */
.header-rank-badge {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.07em;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-rank-badge:hover {
  transform: translateY(-1px);
}

.header-rank-badge.rank-tier-unranked {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

.header-rank-badge.rank-tier-iron {
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid rgba(100, 116, 139, 0.35);
  color: #cbd5e1;
}

.header-rank-badge.rank-tier-bronze {
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
  color: #f59e0b;
}

.header-rank-badge.rank-tier-silver {
  background: rgba(203, 213, 225, 0.14);
  border: 1px solid rgba(203, 213, 225, 0.4);
  color: #e2e8f0;
}

.header-rank-badge.rank-tier-gold {
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fde047;
}

.header-rank-badge.rank-tier-platinum {
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #22d3ee;
}

.header-rank-badge.rank-tier-diamond {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.header-rank-badge.rank-tier-ascendant {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.header-rank-badge.rank-tier-immortal {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

.header-rank-badge.rank-tier-radiant {
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.2) 0%, rgba(253, 224, 71, 0.1) 100%);
  border: 1px solid rgba(253, 224, 71, 0.6);
  color: #fef08a;
  box-shadow: 0 0 16px rgba(253, 224, 71, 0.35);
}

.header-level-badge {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  background: rgba(0, 243, 255, 0.06);
  border: 1px solid rgba(0, 243, 255, 0.22);
  color: var(--accent-cyan, #00f3ff);
  padding: 3px 12px;
  border-radius: 8px;
  height: 36px;
  min-width: 190px;
  width: auto;
  box-sizing: border-box;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-level-badge:hover {
  background: rgba(0, 243, 255, 0.12);
  border-color: rgba(0, 243, 255, 0.4);
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.22);
  transform: translateY(-1px);
}

.header-level-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
}

#header-level-title {
  font-weight: 800;
  font-size: 9px;
  white-space: nowrap;
  text-transform: uppercase;
}

.header-xp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: 1;
  margin-top: 1px;
}

.header-xp-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

#header-xp-label {
  color: var(--text-secondary);
  font-size: 9px;
  white-space: nowrap;
}

/* Admin Control Room Header Button */
.header-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.18) 0%, rgba(255, 70, 85, 0.06) 100%);
  border: 1px solid rgba(255, 70, 85, 0.45);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(255, 70, 85, 0.2);
  white-space: nowrap;
}

.header-admin-btn:hover {
  background: linear-gradient(135deg, rgba(255, 70, 85, 0.32) 0%, rgba(255, 70, 85, 0.12) 100%);
  border-color: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 70, 85, 0.45);
  transform: translateY(-1px);
}

.header-admin-btn svg {
  color: var(--accent-red);
  filter: drop-shadow(0 0 4px rgba(255, 70, 85, 0.6));
}

/* Settings & Action Trigger Buttons */
.settings-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.settings-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.logout-trigger-btn:hover {
  background: rgba(255, 70, 85, 0.15);
  border-color: rgba(255, 70, 85, 0.4);
  color: var(--accent-red);
  box-shadow: 0 0 12px rgba(255, 70, 85, 0.25);
}
.notification-center { position: relative; flex: 0 0 auto; }
.notification-trigger { position: relative; }
.notification-unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--bg-darker);
  border-radius: 10px;
  background: var(--accent-red);
  color: #fff;
  font: 900 9px/13px var(--font-display);
  text-align: center;
}
.notification-panel {
  position: absolute;
  z-index: 11000;
  top: calc(100% + 12px);
  right: 0;
  width: min(390px, calc(100vw - 24px));
  max-height: min(620px, 72vh);
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: rgba(8, 12, 20, .98);
  box-shadow: 0 22px 60px rgba(0,0,0,.72), 0 0 24px rgba(0,243,255,.07);
}
.notification-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(14, 18, 30, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-panel-header strong {
  display: block;
  margin-top: 2px;
  font: 900 13px var(--font-display);
  color: #ffffff;
  letter-spacing: 0.04em;
}

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

.notification-panel-actions button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font: 800 9px var(--font-display);
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-panel-actions button:hover {
  background: rgba(0, 243, 255, 0.12);
  border-color: rgba(0, 243, 255, 0.35);
  color: var(--accent-cyan);
}

.notification-panel-actions #btn-notifications-clear-read:hover {
  background: rgba(255, 70, 85, 0.12);
  border-color: rgba(255, 70, 85, 0.35);
  color: var(--accent-red);
}

.notification-list {
  max-height: calc(min(620px, 72vh) - 68px);
  overflow-y: auto;
}

.notification-list::-webkit-scrollbar {
  width: 5px;
}

.notification-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.notification-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Notification Item Card */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 3px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notification-item.unread {
  background: rgba(0, 243, 255, 0.04);
  border-left-color: var(--accent-cyan);
}

.notification-item.unread.type-security {
  border-left-color: var(--accent-red);
  background: rgba(255, 70, 85, 0.04);
}

/* Icon Badges */
.notification-icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notification-item.type-security .notification-icon-badge {
  background: rgba(255, 70, 85, 0.12);
  border-color: rgba(255, 70, 85, 0.3);
}

.notification-item.type-benchmark .notification-icon-badge {
  background: rgba(0, 243, 255, 0.12);
  border-color: rgba(0, 243, 255, 0.3);
}

.notification-item.type-deathmatch .notification-icon-badge {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
}

.notification-item small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 450;
  text-transform: none;
  word-break: break-word;
}

.notification-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.notification-item time {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 500;
}

.notification-unread-pill {
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 243, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 243, 255, 0.35);
}

.notification-item.type-security .notification-unread-pill {
  background: rgba(255, 70, 85, 0.15);
  color: var(--accent-red);
  border-color: rgba(255, 70, 85, 0.35);
}

.notification-empty {
  padding: 38px 18px;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
}

.settings-trigger-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 7px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.settings-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-hover);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.15);
}

.logout-trigger-btn:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}
.header-title-track { display: none; }

.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.profile-identity-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(16, 22, 34, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1px solid rgba(0, 243, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(0, 243, 255, 0.03);
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 14px;
}
.profile-identity-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.profile-identity-top { display: flex; gap: 24px; align-items: center; margin-bottom: 24px; }
.profile-emblem-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px; height: 96px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.profile-emblem-wrapper .rank-sprite { width: 76px; height: 76px; }
.profile-username-header {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: .05em;
  margin: 0 0 10px 0;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.profile-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.profile-badges span {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-level-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  margin-top: 18px;
}
.profile-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 4px;
  color: var(--accent-yellow);
  font-size: 11px;
}
.profile-xp-pill {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
}
.profile-xp-bar {
  height: 12px;
  margin: 10px 0 24px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
#profile-xp-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #f59e0b, #eab308, #00f3ff);
  border-radius: 8px;
  transition: width .4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.5);
}

.profile-title-roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.profile-title-roadmap > div {
  padding: 14px 16px;
  background: rgba(12, 16, 26, 0.7);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all .2s ease;
  position: relative;
}
.profile-title-roadmap > div.current {
  background: rgba(0, 243, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
}
.profile-title-roadmap span {
  display: block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.profile-title-roadmap strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
}
.profile-title-roadmap .current strong { color: var(--accent-cyan); }

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 10px;
}
.profile-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.profile-stat-box:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 243, 255, 0.3);
}
.profile-stat-lbl {
  font-size: 9px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.profile-stat-val {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-display);
  display: block;
}

.profile-account-sync-card {
  grid-column: 1 / -1;
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  padding: 22px 26px;
  border-radius: 12px;
}
.profile-sync-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-account-info .account-lbl {
  display: block;
  font-size: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.profile-account-info strong {
  display: block;
  font-size: 14px;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-top: 3px;
}
.profile-sync-actions { display: flex; gap: 12px; }

.profile-achievements-card { grid-column: 1 / -1; }
.profile-achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.profile-inspector-card { grid-column: 1 / -1; }
.profile-inspector-card h4 { margin: 20px 0 10px; color: var(--text-secondary); font: 800 10px var(--font-display); letter-spacing: .1em; }

.ranked-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(16, 22, 34, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1px solid rgba(0, 243, 255, 0.15);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.ranked-overall {
  min-width: 260px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 243, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.ranked-overall-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.ranked-overall-header .rank-sprite {
  width: 56px; height: 56px;
  flex: 0 0 56px;
}
.ranked-lbl {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.ranked-overall strong {
  color: var(--accent-yellow);
  font: 900 24px var(--font-display);
  letter-spacing: .05em;
  display: block;
}
.ranked-overall-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ranked-overall small {
  color: var(--text-muted);
  font: 700 9px var(--font-display);
  letter-spacing: .06em;
}

.ranked-disciplines-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 14px;
  overflow: hidden;
}
.ranked-drill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.ranked-drill-card {
  padding: 16px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(14, 19, 30, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  transition: all 0.25s ease;
}
.ranked-drill-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.1);
}
.ranked-drill-card.complete {
  border-color: rgba(0, 243, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 243, 255, 0.05) 0%, rgba(10, 14, 22, 0.95) 100%);
}
.ranked-drill-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  min-width: 0;
}
.ranked-drill-main .rank-sprite {
  width: 44px; height: 44px;
  flex: 0 0 44px;
}
.ranked-drill-main > div {
  min-width: 0;
  flex: 1;
}
.ranked-drill-card h3 {
  font: 800 12px var(--font-display);
  margin: 0 0 2px 0;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranked-drill-card .system-actions {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.ranked-drill-card .system-actions button {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ranked-drill-card strong {
  display: block;
  color: var(--accent-cyan);
  font: 900 22px var(--font-display);
  letter-spacing: 0.03em;
}
.ranked-drill-card small {
  display: block;
  color: var(--text-muted);
  font-size: 10.5px;
  margin: 4px 0 12px 0;
}
.ranked-drill-progress-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ranked-drill-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.ranked-tier-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: 14px;
}
.profile-rank-ladder {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.rank-ladder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  opacity: .45;
  filter: grayscale(70%);
  transition: all 0.25s ease;
}
.rank-ladder-item.achieved {
  opacity: 1;
  filter: none;
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}
.rank-ladder-item.current {
  opacity: 1;
  filter: none;
  border-color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.1);
  box-shadow: 0 0 24px rgba(0, 243, 255, 0.25);
  transform: translateY(-4px);
}
.rank-ladder-item strong {
  margin-top: 10px;
  font: 800 11px var(--font-display);
  color: var(--text-primary);
  letter-spacing: 0.05em;
}
.rank-ladder-item small {
  margin-top: 4px;
  color: var(--text-muted);
  font: 700 9px var(--font-display);
  letter-spacing: 0.05em;
}

.ranked-log-card, .ranked-history-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: 14px;
}
.ranked-history-card .ranked-attempt-row {
  gap: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--border-light);
}
.ranked-history-card .ranked-attempt-row > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.ranked-history-card .ranked-attempt-row .system-actions {
  flex: 0 0 auto;
  gap: 8px;
  flex-wrap: nowrap;
}
.ranked-history-card .ranked-attempt-row .system-actions button {
  width: auto;
  min-width: 104px;
  padding: 10px 14px;
  font: 800 10px var(--font-display);
  letter-spacing: .05em;
}
.ranked-history-card .ranked-attempt-row.status-validated { border-left-color: var(--accent-green); }
.ranked-history-card .ranked-attempt-row.status-pending { border-left-color: var(--accent-yellow); }
.ranked-history-card .ranked-attempt-row.status-rejected,
.ranked-history-card .ranked-attempt-row.status-invalidated { border-left-color: var(--accent-red); }
.ranked-history-card .ranked-attempt-row.status-withdrawn { opacity: .68; }
.ranked-attempt-row.notification-focus {
  animation: notification-focus-pulse 1.8s ease;
}
@keyframes notification-focus-pulse {
  0%, 100% { box-shadow: none; }
  35% { border-color: var(--accent-cyan); box-shadow: 0 0 26px rgba(0,243,255,.2); }
}
.benchmark-lifecycle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.benchmark-lifecycle-step {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font: 800 8px var(--font-display);
  letter-spacing: .04em;
}
.benchmark-lifecycle-step:not(:last-child)::after {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--border-light);
}
.benchmark-lifecycle-step.complete { color: var(--accent-green); }
.benchmark-lifecycle-step.current { color: var(--accent-yellow); }
.benchmark-lifecycle-step.failed { color: var(--accent-red); }
.benchmark-next-action {
  margin-top: 7px;
  color: var(--accent-cyan);
  font: 700 9px var(--font-display);
}

.benchmark-appeal-modal-card { width: min(620px, 92vw); }
.benchmark-appeal-modal-card .modal-header h2 { margin: 4px 0 0; }
.benchmark-appeal-attempt {
  display: grid;
  grid-template-columns: 1.5fr .6fr 1fr;
  gap: 10px;
  margin: 4px 0 16px;
}
.benchmark-appeal-attempt > div {
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: rgba(0, 0, 0, .2);
}
.benchmark-appeal-attempt span,
.benchmark-appeal-attempt strong { display: block; }
.benchmark-appeal-attempt span {
  color: var(--text-muted);
  font: 800 9px var(--font-display);
  letter-spacing: .08em;
}
.benchmark-appeal-attempt strong {
  margin-top: 5px;
  color: var(--text-primary);
  font: 800 12px var(--font-display);
}
#benchmark-appeal-message {
  width: 100%;
  resize: vertical;
  min-height: 120px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--border-light);
  border-radius: 7px;
  color: var(--text-primary);
  padding: 13px;
  font: 500 13px/1.55 var(--font-body);
}
#benchmark-appeal-message:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 243, 255, .08);
}
.benchmark-appeal-helper {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 10px;
}
.benchmark-appeal-helper span:last-child { white-space: nowrap; }
.benchmark-appeal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.benchmark-appeal-actions button { min-width: 150px; }
.ranked-log-form {
  display: grid;
  grid-template-columns: 1.2fr .7fr .7fr 1fr 1fr auto;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}
.ranked-log-form input, .ranked-log-form select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}
.ranked-log-form input:focus, .ranked-log-form select:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}
.ranked-log-form button#btn-ranked-log {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #00b4d8 100%);
  color: #050b14;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 12px 20px;
  border-radius: 6px;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 243, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ranked-log-form button#btn-ranked-log:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 243, 255, 0.5);
}

.inspector-achievement-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.inspector-achievement-row, .inspector-audit-row { padding: 9px 11px; border: 1px solid var(--border-light); border-radius: 6px; color: var(--text-secondary); font-size: 11px; }
.inspector-achievement-row.unlocked { border-color: rgba(34,197,94,.25); color: var(--accent-green); }
.inspector-audit-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inspector-audit-report { display: grid; gap: 7px; margin-bottom: 10px; color: var(--text-muted); }

.profile-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.profile-section-heading > span:last-child { padding: 4px 8px; color: var(--accent-cyan); background: rgba(0,243,255,.08); border-radius: 4px; font-size: 10px; font-family: var(--font-display); font-weight: 800; }

.profile-rank-ladder { display: grid; grid-template-columns: repeat(9,1fr); gap: 10px; margin-top: 20px; }
.rank-ladder-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px; background: var(--bg-input); border: 1px solid var(--border-light); border-radius: 8px; opacity: .45; filter: grayscale(70%); transition: all 0.25s ease; }
.rank-ladder-item.achieved { opacity: 1; filter: none; border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.04); }
.rank-ladder-item.current { opacity: 1; filter: none; border-color: var(--accent-cyan); background: rgba(0,243,255,.08); box-shadow: 0 0 20px rgba(0,243,255,.2); transform: translateY(-2px); }
.rank-ladder-item strong { margin-top: 8px; font: 800 11px var(--font-display); color: var(--text-primary); }
.rank-ladder-item small { margin-top: 3px; color: var(--text-muted); font: 700 9px var(--font-display); }

.rank-emblem { width: 70px; aspect-ratio: 1; margin: auto; background-image: url("assets/rank-emblems-atlas.png"); background-size: 300% 300%; background-repeat: no-repeat; border-radius: 12px; }
.rank-emblem-large { width: 108px; flex: 0 0 auto; }
.rank-iron { background-position: 0 0; } .rank-bronze { background-position: 50% 0; } .rank-silver { background-position: 100% 0; }
.rank-gold { background-position: 0 50%; } .rank-platinum { background-position: 50% 50%; } .rank-diamond { background-position: 100% 50%; }
.rank-ascendant { background-position: 0 100%; } .rank-immortal { background-position: 50% 100%; } .rank-radiant { background-position: 100% 100%; }
.profile-achievements-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 16px; }

.coach-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(260px,.7fr); gap: 24px; }
.coach-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.coach-eyebrow { color: var(--accent-cyan); font-family: var(--font-display); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.coach-local-badge { color: var(--accent-green); border: 1px solid rgba(34,197,94,.3); background: rgba(34,197,94,.06); padding: 4px 8px; border-radius: 3px; font-family: var(--font-display); font-size: 9px; font-weight: 800; white-space: nowrap; }
.coach-messages { min-height: 360px; max-height: 55vh; overflow-y: auto; margin: 22px 0 14px; padding: 16px; background: var(--bg-darker); border: 1px solid var(--border-light); border-radius: 4px; }
.coach-message { max-width: 88%; padding: 11px 13px; margin-bottom: 12px; border-radius: 4px; font-size: 12.5px; line-height: 1.6; white-space: pre-line; }
.coach-message.user { margin-left: auto; background: rgba(255,70,85,.1); border: 1px solid rgba(255,70,85,.22); }
.coach-message.coach { background: rgba(0,243,255,.055); border-left: 3px solid var(--accent-cyan); color: var(--text-secondary); }
.coach-message strong { color: var(--text-primary); }
.coach-composer { display: flex; gap: 10px; align-items: stretch; }
.coach-composer textarea { flex: 1; resize: vertical; min-height: 48px; }
.coach-composer button { min-width: 120px; }
.coach-disclaimer { color: var(--text-muted); font-size: 9.5px; margin-top: 10px; }
.coach-profile-summary { margin-top: 16px; display: grid; gap: 9px; }
.coach-context-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; background: var(--bg-input); border: 1px solid var(--border-light); font-size: 11px; }
.coach-context-row span:last-child { color: var(--accent-cyan); font-family: var(--font-display); font-weight: 800; text-align: right; }
.coach-prompts-title { margin-top: 24px; }
.coach-quick-prompts { display: grid; gap: 8px; margin-top: 12px; }
.coach-quick-prompts button { text-align: left; padding: 9px 11px; color: var(--text-secondary); background: var(--bg-input); border: 1px solid var(--border-light); border-radius: 3px; cursor: pointer; font-family: var(--font-display); font-size: 10px; font-weight: 700; }
.coach-quick-prompts button:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.advanced-analytics-grid { display: grid; gap: 16px; margin-top: 20px; }
.analytics-canvas-card { padding: 16px; background: var(--bg-input); border: 1px solid var(--border-light); border-radius: 4px; }
.analytics-canvas-card canvas, #canvas-motion-test { display: block; width: 100%; height: auto; background: var(--bg-darker); border: 1px solid var(--border-light); border-radius: 3px; }
.analytics-canvas-card .chart-header span { color: var(--text-muted); font-family: var(--font-display); font-size: 9px; }
.analytics-legend { display: flex; gap: 14px; margin-top: 8px; font-family: var(--font-display); font-size: 8px; }
.legend-score { color: var(--accent-cyan); } .legend-7 { color: var(--accent-yellow); } .legend-30 { color: var(--accent-purple); }

.lab-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.reaction-stage { height: 230px; display: grid; place-items: center; margin: 18px 0 12px; background: #090d16; border: 1px solid var(--border-light); border-radius: 4px; cursor: crosshair; outline: none; transition: background .08s ease,border-color .08s ease; }
.reaction-stage.ready { background: #123e2b; border-color: var(--accent-green); }
.reaction-stage.audio-ready { background: #17223d; border-color: var(--accent-cyan); }
.reaction-stage.false-start { background: #45151c; border-color: var(--accent-red); }
.reaction-stage span { font-family: var(--font-display); font-size: 18px; font-weight: 900; letter-spacing: .08em; }
/* Quality Pill Badges in History Header */
.hist-quality {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hist-quality.quality-high {
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid rgba(0, 243, 255, 0.4);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.hist-quality.quality-medium {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: var(--accent-yellow);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.15);
}

.hist-quality.quality-low {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

/* Session Quality Diagnostic Card */
.session-quality-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--glass-border);
  background: rgba(14, 19, 30, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.session-quality-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.session-quality-gauge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.4);
}

.session-quality-gauge.quality-high {
  background: radial-gradient(circle, rgba(0, 243, 255, 0.25) 0%, rgba(7, 10, 16, 0.9) 70%);
  border: 2px solid var(--accent-cyan);
}

.session-quality-gauge.quality-medium {
  background: radial-gradient(circle, rgba(234, 179, 8, 0.25) 0%, rgba(7, 10, 16, 0.9) 70%);
  border: 2px solid var(--accent-yellow);
}

.session-quality-gauge.quality-low {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(7, 10, 16, 0.9) 70%);
  border: 2px solid #ef4444;
}

.session-quality-gauge .gauge-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
}

.session-quality-gauge .gauge-label {
  font-family: var(--font-display);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 2px;
}

.session-quality-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sq-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.sq-confidence {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.sq-confidence.high-conf {
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: var(--accent-cyan);
}

.sq-confidence.low-conf {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-yellow);
}

.session-quality-components {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.session-quality-chip {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-quality-chip .chip-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.session-quality-chip .chip-label span {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.session-quality-chip .chip-label strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-cyan);
}

.session-quality-chip .chip-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.session-quality-chip .chip-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-cyan-glow));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.session-quality-feedback {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
}

.sq-feedback-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

.session-quality-feedback p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 720px) {
  .session-quality-components {
    grid-template-columns: repeat(2, 1fr);
  }
}
.lab-actions, .motion-controls, .share-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lab-actions span, .motion-controls span { color: var(--accent-cyan); font-family: var(--font-display); font-size: 10px; font-weight: 800; }
.motion-controls { margin-top: 12px; }
.motion-controls label { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 10px; }
.motion-controls input { flex: 1; }
.audit-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.audit-heading .field-desc { margin: 4px 0 0; }
#hardware-audit-count { flex: 0 0 auto; padding: 4px 8px; color: var(--accent-cyan); background: rgba(0,243,255,.07); border: 1px solid rgba(0,243,255,.18); border-radius: 3px; font-family: var(--font-display); font-size: 10px; font-weight: 800; }
.hardware-audit-progress { height: 5px; margin: 14px 0; overflow: hidden; background: rgba(255,255,255,.07); border-radius: 3px; }
#hardware-audit-progress-fill { width: 0; height: 100%; background: linear-gradient(90deg,var(--accent-cyan),var(--accent-green)); transition: width .25s ease; }
.hardware-checklist { display: grid; gap: 8px; margin-bottom: 14px; }
.audit-item { position: relative; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; min-height: 62px; padding: 10px 12px; background: var(--bg-input); border: 1px solid var(--border-light); border-radius: 4px; cursor: pointer; transition: border-color .2s ease,background .2s ease,opacity .2s ease; }
.audit-item:hover { border-color: var(--border-hover); }
.audit-item input { position: absolute; opacity: 0; pointer-events: none; }
.audit-checkmark { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--border-hover); border-radius: 50%; color: transparent; font-weight: 900; transition: all .2s ease; }
.audit-copy { min-width: 0; }
.audit-copy strong,.audit-copy small { display: block; transition: color .2s ease,text-decoration-color .2s ease; }
.audit-copy strong { color: var(--text-primary); font-family: var(--font-display); font-size: 10px; letter-spacing: .05em; }
.audit-copy small { margin-top: 2px; color: var(--text-muted); font-size: 9.5px; line-height: 1.35; }
.audit-item.completed { background: rgba(34,197,94,.045); border-color: rgba(34,197,94,.28); opacity: .72; }
.audit-item.completed .audit-checkmark { color: #07130d; background: var(--accent-green); border-color: var(--accent-green); }
.audit-item.completed .audit-copy strong,.audit-item.completed .audit-copy small { color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.audit-reset { width: 100%; }
.share-actions { justify-content: flex-start; margin: 18px 0 10px; }
.share-actions button { flex: 1; }
#share-link-output { width: 100%; }
.shared-preview { margin-top: 12px; padding: 14px; border-left: 3px solid var(--accent-cyan); background: rgba(0,243,255,.04); color: var(--text-secondary); font-size: 11px; }
.voice-setting label { display: flex; align-items: center; gap: 8px; }
.voice-setting input { width: auto; accent-color: var(--accent-cyan); }
.crosshair-lab-controls { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 12px; text-align: left; }
.crosshair-lab-controls label { color: var(--text-muted); font-family: var(--font-display); font-size: 8px; }
.crosshair-lab-controls input, .crosshair-lab-controls select { width: 100%; margin-top: 3px; min-height: 26px; }
.warmup-suggestions { display: grid; gap: 4px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--border-light); }
.warmup-suggestions span { color: var(--text-muted); font-size: 9.5px; line-height: 1.35; }
.warmup-suggestions strong { color: var(--accent-cyan); font-family: var(--font-display); font-size: 8.5px; letter-spacing: .04em; }
.record-field-hint { margin-top: 5px; color: var(--text-muted); font-size: 9.5px; line-height: 1.35; }
.daily-routine-status { order: 3; flex-basis: 100%; padding: 9px 12px; color: var(--accent-green); background: rgba(34,197,94,.055); border: 1px solid rgba(34,197,94,.22); border-radius: 4px; font-family: var(--font-display); font-size: 10px; font-weight: 700; }
.daily-routine-status.in-progress { color: var(--accent-cyan); background: rgba(0,243,255,.045); border-color: rgba(0,243,255,.2); }
.routine-complete-card { position:relative; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:18px; align-items:center; padding:24px; margin-bottom:24px; overflow:hidden; border:1px solid rgba(0,230,118,.32); background:linear-gradient(115deg,rgba(0,230,118,.1),rgba(0,243,255,.035) 58%,rgba(168,85,247,.07)); }
.routine-complete-card::after { content:""; position:absolute; width:180px; height:180px; right:-85px; top:-105px; border:1px solid rgba(0,230,118,.2); border-radius:50%; box-shadow:0 0 55px rgba(0,230,118,.09); pointer-events:none; }
.routine-complete-icon { display:grid; place-items:center; width:54px; height:54px; border:1px solid rgba(0,230,118,.55); color:#00e676; background:rgba(0,230,118,.1); box-shadow:0 0 28px rgba(0,230,118,.13); font:900 25px var(--font-display); clip-path:polygon(50% 0,93% 25%,93% 75%,50% 100%,7% 75%,7% 25%); }
.routine-complete-copy h2 { margin:5px 0 4px; color:var(--text-primary); font:900 22px var(--font-display); letter-spacing:.045em; }
.routine-complete-copy p { margin:0; color:var(--text-secondary); font-size:11px; line-height:1.5; }
.routine-complete-meta { display:flex; flex-wrap:wrap; gap:8px 16px; margin-top:11px; color:#00e676; font:800 9px var(--font-display); letter-spacing:.07em; }
.routine-complete-meta span + span::before { content:"•"; margin-right:16px; color:var(--text-muted); }
.routine-complete-actions { position:relative; z-index:1; display:flex; flex-direction:column; gap:7px; min-width:125px; }
.routine-complete-actions button { min-height:34px; padding:0 12px; font-size:9px; }
@media (max-width:760px) {
  .routine-complete-card { grid-template-columns:auto 1fr; padding:18px; }
  .routine-complete-actions { grid-column:1/-1; flex-direction:row; }
  .routine-complete-actions button { flex:1; }
}
#btn-start-training:disabled,#btn-customize-routine:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.35); }
.henrik-settings { padding: 14px; background: rgba(96,165,250,.035); border: 1px solid rgba(96,165,250,.18); border-radius: 4px; }
.settings-section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.settings-section-heading > span { flex: 0 0 auto; padding: 3px 6px; color: #60a5fa; border: 1px solid rgba(96,165,250,.25); border-radius: 3px; font-family: var(--font-display); font-size: 8px; font-weight: 800; }
.henrik-settings .custom-select { width: 100%; margin-bottom: 10px; }
.henrik-settings > label { margin-top: 8px; }
.henrik-settings input:not([type="checkbox"]),
.cloud-vault-settings input:not([type="checkbox"]) { margin-bottom: 8px; }
.henrik-remember { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--text-secondary); cursor: pointer; }
.henrik-remember input { width: auto; accent-color: var(--accent-cyan); }
.henrik-warning { color: #d5a44b; }
.cloud-vault-settings { border-color: rgba(74,222,128,.22); background: rgba(74,222,128,.025); }
.cloud-vault-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px 0; }
.cloud-vault-settings textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.henrik-rank-queue-status {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.22);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.henrik-rank-queue-status:empty {
  display: none;
}
.henrik-rank-queue-status.status-paused {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.28);
}
.henrik-rank-queue-status.status-active {
  color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.1);
  border-color: rgba(0, 243, 255, 0.3);
}
.modal-content.henrik-preview-modal { width: min(860px, 94vw) !important; max-width: 860px !important; max-height: 88vh; overflow-y: auto; overflow-x: hidden; }
.henrik-preview-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 16px 0; padding: 10px 14px; background: rgba(0, 243, 255, 0.03); border: 1px solid var(--border-light); border-radius: 4px; flex-wrap: wrap; }
.henrik-preview-filter-options { display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; }
.henrik-preview-filter-options label { display:flex; align-items:center; gap:7px; color:var(--text-primary); font:700 10px var(--font-display); cursor:pointer; }
.henrik-preview-filter-options input { accent-color:var(--accent-cyan); cursor:pointer; }
.tdm-journal-summary { display:grid; gap:8px; }
.tdm-journal-heading { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.tdm-mode-badge,.tdm-result { padding:3px 7px; border:1px solid rgba(168,85,247,.5); color:#c084fc; background:rgba(168,85,247,.1); font:800 8px var(--font-display); letter-spacing:.05em; }
.tdm-result.win { color:#00e676; border-color:rgba(0,230,118,.45); background:rgba(0,230,118,.08); }
.tdm-result.loss { color:var(--accent-red); border-color:rgba(255,49,84,.45); background:rgba(255,49,84,.08); }
.tdm-result.unknown { color:var(--text-muted); border-color:var(--border-light); background:rgba(255,255,255,.02); }
.tdm-journal-heading small { margin-left:auto; color:var(--text-muted); font:800 8px var(--font-display); }
.tdm-day-summary { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-bottom:12px; padding:9px 11px; border:1px solid rgba(168,85,247,.35); background:rgba(168,85,247,.06); }
.tdm-day-summary span { margin-right:auto; color:#c084fc; font:800 9px var(--font-display); }
.tdm-day-summary strong { color:var(--text-primary); font:800 9px var(--font-display); }
.henrik-preview-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.henrik-match-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; background: var(--bg-input); border: 1px solid var(--border-light); border-radius: 6px; transition: border-color 0.2s ease, background 0.2s ease; cursor: pointer; flex-wrap: wrap; }
.henrik-match-row:hover { border-color: rgba(0, 243, 255, 0.3); background: rgba(0, 243, 255, 0.02); }
.henrik-match-row input { width: 18px; height: 18px; accent-color: var(--accent-cyan); cursor: pointer; flex-shrink: 0; }
.henrik-match-primary { display: flex; flex-direction: column; gap: 2px; }
.henrik-match-primary strong { color: var(--text-primary); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.henrik-match-primary span, .henrik-match-stat small { color: var(--text-muted); font-size: 10.5px; }
.henrik-match-tag { display: inline-block; font-size: 9px; font-family: var(--font-display); font-weight: 800; padding: 2px 6px; border-radius: 3px; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; align-self: flex-start; }
.henrik-match-tag.routine-day { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.3); }
.henrik-match-tag.standalone-day { background: rgba(245, 158, 11, 0.12); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.25); }
.henrik-retry-rank {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.henrik-retry-rank:hover:not(:disabled) { background: rgba(245, 158, 11, 0.18); border-color: #f59e0b; }
.henrik-retry-rank:disabled { opacity: 0.55; cursor: wait; }
.henrik-match-row-left { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; }
.deathmatch-lifecycle-panel {
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(0,243,255,.14);
  border-radius: 7px;
  background: rgba(0,243,255,.025);
}
.deathmatch-lifecycle-panel.has-failure {
  border-color: rgba(251,113,133,.28);
  background: rgba(251,113,133,.035);
}
.deathmatch-lifecycle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.deathmatch-lifecycle-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.deathmatch-lifecycle-header h3 { margin: 2px 0 0; font: 800 11px var(--font-display); }
.deathmatch-lifecycle-header p { margin: 3px 0 0; color: var(--text-muted); font-size: 9px; }
.deathmatch-lifecycle-pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 0 rgba(0,243,255,.45);
  animation: deathmatchServerPulse 1.8s ease-out infinite;
}
.has-failure .deathmatch-lifecycle-pulse { background: #fb7185; animation: none; }
@keyframes deathmatchServerPulse {
  70% { box-shadow: 0 0 0 7px rgba(0,243,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,243,255,0); }
}
.deathmatch-lifecycle-toggle {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-darker);
  color: var(--text-secondary);
  font: 800 9px var(--font-display);
  cursor: pointer;
}
.deathmatch-lifecycle-toggle:hover { color: var(--accent-cyan); border-color: rgba(0,243,255,.35); }
.deathmatch-lifecycle-list { display: grid; gap: 7px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--border-light); }
.deathmatch-lifecycle-list[hidden] { display: none; }
.deathmatch-lifecycle-card {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.06);
  border-left: 3px solid var(--border-light);
  border-radius: 6px;
  background: rgba(8,12,20,.72);
}
.deathmatch-lifecycle-card.status-running { border-left-color: var(--accent-cyan); }
.deathmatch-lifecycle-card.status-queued,.deathmatch-lifecycle-card.status-discovered { border-left-color: #fbbf24; }
.deathmatch-lifecycle-card.status-available { border-left-color: #34d399; }
.deathmatch-lifecycle-card.status-failed { border-left-color: #fb7185; }
.deathmatch-lifecycle-card strong { display: block; color: var(--text-primary); font: 800 11px var(--font-display); }
.deathmatch-lifecycle-card small { color: var(--text-muted); font-size: 9px; }
.deathmatch-lifecycle-status {
  color: var(--accent-cyan);
  font: 800 9px var(--font-display);
  text-transform: uppercase;
}
.deathmatch-lifecycle-detail { color: var(--text-muted); font: 700 9px var(--font-display); }
.deathmatch-lifecycle-card.notification-focus { animation: notificationFocus 2s ease; }
@media (max-width: 680px) {
  .deathmatch-lifecycle-card { grid-template-columns: 1fr; }
}
.henrik-match-stats-group { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; flex-wrap: wrap; }
.henrik-mode-filter-label { display: inline-flex; align-items: center; gap: 7px; }
.henrik-mode-filter {
  min-width: 145px;
  padding: 6px 28px 6px 9px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-input);
  color: var(--text-primary);
  font: 700 10px var(--font-display);
}
.henrik-match-stat { text-align: center; min-width: 52px; background: rgba(0, 0, 0, 0.2); padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.04); }
.henrik-match-stat strong, .henrik-match-stat small { display: block; }
.henrik-match-stat strong { color: var(--accent-cyan); font-family: var(--font-display); font-size: 12px; font-weight: 800; }
.henrik-preview-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.henrik-empty { padding: 32px 16px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border-light); border-radius: 6px; font-family: var(--font-display); font-size: 13px; }

.dm-report-button {
  display: block;
  margin-top: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(0,243,255,.25);
  border-radius: 3px;
  background: rgba(0,243,255,.06);
  color: var(--accent-cyan);
  font: 800 8px var(--font-display);
  letter-spacing: .06em;
  cursor: pointer;
}
.dm-report-button:hover { border-color: var(--accent-cyan); background: rgba(0,243,255,.11); }
.modal-content.deathmatch-report-modal {
  width: min(900px, 94vw);
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}
.deathmatch-report-empty {
  padding: 30px;
  border: 1px dashed var(--border-light);
  color: var(--text-muted);
  text-align: center;
}
.deathmatch-report-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 9px;
  margin: 18px 0;
}
.deathmatch-report-metric,
.deathmatch-comparison-item {
  padding: 13px;
  border: 1px solid var(--border-light);
  border-radius: 5px;
  background: var(--bg-input);
}
.deathmatch-report-metric span,
.deathmatch-report-metric strong,
.deathmatch-comparison-item span,
.deathmatch-comparison-item strong,
.deathmatch-comparison-item small { display: block; }
.deathmatch-report-metric span,
.deathmatch-comparison-item span { color: var(--text-muted); font: 700 9px var(--font-display); }
.deathmatch-report-metric strong { margin-top: 6px; color: var(--text-primary); font: 900 22px var(--font-display); }
.deathmatch-report-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.deathmatch-report-section,
.deathmatch-report-coach {
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: rgba(8,12,20,.62);
}
.deathmatch-report-section h3,
.deathmatch-report-coach h3 { margin: 4px 0 13px; font: 800 13px var(--font-display); }
.deathmatch-comparison-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.deathmatch-comparison-item strong { margin-top: 5px; font: 800 14px var(--font-display); }
.deathmatch-comparison-item small { margin-top: 3px; color: var(--text-muted); font-size: 9px; }
.deathmatch-comparison-item.positive strong { color: var(--accent-green); }
.deathmatch-comparison-item.negative strong { color: var(--accent-red); }
.deathmatch-rank-readout strong { display: block; color: var(--accent-yellow); font: 900 20px var(--font-display); }
.deathmatch-rank-readout p { margin: 7px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.deathmatch-report-coach { margin-top: 12px; }
.deathmatch-report-coach ul { margin: 0; padding-left: 18px; color: var(--text-secondary); line-height: 1.6; font-size: 12px; }
.deathmatch-report-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 15px; }

/* Deathmatch Journal Stat Chips */
.dm-notes-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 2px 0; }
.dm-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-family: var(--font-display); font-weight: 700; padding: 3px 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-light); color: var(--text-primary); white-space: nowrap; }
.dm-chip.kd-chip { background: rgba(0, 243, 255, 0.08); border-color: rgba(0, 243, 255, 0.25); color: var(--accent-cyan); }
.dm-chip.score-chip { background: rgba(234, 179, 8, 0.08); border-color: rgba(234, 179, 8, 0.25); color: #eab308; }
.dm-chip.rank-chip { background: rgba(96, 165, 250, 0.08); border-color: rgba(96, 165, 250, 0.25); color: #60a5fa; }
.dm-chip.head-chip { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.25); color: var(--accent-green); }
.dm-chip.weapon-chip { background: rgba(168,85,247,.08); border-color: rgba(168,85,247,.25); color: #c084fc; }
.dm-imported-evidence { margin-top: 7px; color: var(--text-muted); font-size: 9px; }
.dm-imported-evidence summary { cursor: pointer; font: 700 8px var(--font-display); letter-spacing: .08em; }
.dm-imported-evidence p { margin: 5px 0 0; line-height: 1.45; }
.dm-journal-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.dm-feedback-button,
.dm-report-button,
.dm-remove-button { width: auto; }
.dm-feedback-button {
  padding: 5px 8px;
  border: 1px solid rgba(0,243,255,.25);
  border-radius: 4px;
  background: rgba(0,243,255,.06);
  color: var(--accent-cyan);
  cursor: pointer;
  font: 700 8px var(--font-display);
  letter-spacing: .06em;
}
.dm-remove-button {
  padding: 5px 8px;
  border: 1px solid rgba(255,77,109,.35);
  border-radius: 4px;
  background: rgba(255,77,109,.07);
  color: var(--accent-red);
  cursor: pointer;
  font: 700 8px var(--font-display);
  letter-spacing: .06em;
}
.dm-remove-button:hover,
.dm-remove-button[data-confirming="true"] {
  border-color: var(--accent-red);
  background: rgba(255,77,109,.14);
}
.dm-remove-button:disabled { cursor: wait; opacity: .72; }
.dm-feedback-modal-card { max-width: 520px; }
.dm-feedback-modal-card textarea { width: 100%; resize: vertical; }
.dm-feedback-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }

/* Rank Emblem Atlas Sprite Utility (Rule 27) */
.rank-sprite {
  width: 64px;
  height: 64px;
  background-image: url('assets/rank-emblems-atlas.png');
  background-size: 300% 300%;
  background-repeat: no-repeat;
  display: inline-block;
  border-radius: 8px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
  transition: transform 0.2s ease;
}
.rank-sprite:hover { transform: scale(1.06); }
.rank-sprite.iron { background-position: 0% 0%; }
.rank-sprite.bronze { background-position: 50% 0%; }
.rank-sprite.silver { background-position: 100% 0%; }
.rank-sprite.gold { background-position: 0% 50%; }
.rank-sprite.platinum { background-position: 50% 50%; }
.rank-sprite.diamond { background-position: 100% 50%; }
.rank-sprite.ascendant { background-position: 0% 100%; }
.rank-sprite.immortal { background-position: 50% 100%; }
.rank-sprite.radiant { background-position: 100% 100%; }

.streak-badge {
  display: flex;
  align-items: center;
  background-color: rgba(255, 168, 0, 0.1);
  border: 1px solid rgba(255, 168, 0, 0.2);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--accent-yellow);
}

.streak-icon {
  margin-right: 6px;
  font-size: 14px;
}

.settings-trigger-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settings-trigger-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background-color: var(--border-light);
}

/* 1. DASHBOARD VIEW STYLING */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.focus-banner {
  border-left: 4px solid var(--accent-red);
  background-color: rgba(255, 255, 255, 0.02);
  padding: 20px 24px;
  margin-bottom: 24px;
  border-radius: 0 4px 4px 0;
}

.focus-label {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.focus-title {
  font-size: 32px;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.focus-description {
  color: var(--text-secondary);
  font-size: 13px;
}

.section-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.duration-selector-container {
  margin-bottom: 24px;
}

.duration-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.duration-btn {
  flex: 1;
  min-width: 80px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 12px 6px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.duration-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.duration-btn.active {
  border-color: var(--accent-cyan);
  background-color: var(--accent-cyan-glow);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.duration-hint {
  color: var(--text-muted);
  font-size: 11px;
}

.routine-preview-container {
  margin-bottom: 24px;
}

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

.routine-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 12px 18px;
  transition: all 0.2s ease;
}

.routine-item:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-light);
}

.routine-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.routine-item-index {
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  width: 20px;
}

.routine-item-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.routine-item-badge.essential {
  background-color: rgba(255, 70, 85, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 70, 85, 0.2);
}

.routine-item-badge.optional {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.routine-item-name {
  font-weight: 500;
  color: var(--text-primary);
}

.routine-item-time {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent-cyan);
}

.action-bar {
  margin-top: 12px;
}

/* Sidebar Dashboard widgets */
.dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.weekly-tracker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.week-day-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.day-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.day-status {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.week-day-block.completed .day-status {
  background-color: var(--accent-green-glow);
  border-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green-glow);
}

.week-day-block.completed .day-status::after {
  content: "✓";
  color: var(--accent-green);
  font-size: 12px;
  font-weight: bold;
}

.week-day-block.current .day-status {
  border-color: var(--accent-cyan);
}

.consistency-metrics {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Skill estimate meters */
.skill-bar-wrapper {
  margin-bottom: 14px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.skill-bar-track {
  height: 6px;
  background-color: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red-glow);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Color codes for bar fills */
#skill-fill-precision { background-color: var(--accent-red); }
#skill-fill-tracking { background-color: var(--accent-cyan); }
#skill-fill-targetSwitching { background-color: var(--accent-purple); }
#skill-fill-mouseControl { background-color: var(--accent-yellow); }

.skill-note {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* Highlights Insights */
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 4px;
  background-color: var(--bg-input);
  border-left: 3px solid var(--border-light);
}

.insight-item.positive {
  border-left-color: var(--accent-green);
  background-color: rgba(74, 222, 128, 0.03);
}

.insight-item.negative {
  border-left-color: var(--accent-red);
  background-color: rgba(255, 70, 85, 0.03);
}

.insight-icon {
  font-size: 18px;
  line-height: 1;
}

.insight-content h4 {
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.insight-content p {
  font-size: 11px;
  color: var(--text-secondary);
}

/* 2. ACTIVE SESSION VIEW STYLING */
#view-session {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 0 40px;
  box-sizing: border-box;
}

.session-global-tracker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px 24px;
  background: rgba(12, 16, 28, 0.88);
  border: none;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  box-sizing: border-box;
}

.tracker-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.session-progress-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-progress-track {
  width: 260px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.session-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), #00a8ff);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.session-progress-percent {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.session-eta-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 4px;
}

.session-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

/* Main Exercise Cockpit Card */
.session-main {
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  background: rgba(12, 16, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  border-top: 3px solid var(--accent-cyan);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  width: 100%;
  box-sizing: border-box;
}

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

.session-progress-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.session-step {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.session-category-badge {
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid rgba(0, 243, 255, 0.35);
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 6px;
}

.session-exercise-platform {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.session-phase-badge {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #a855f7;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 6px;
}

.session-breadcrumb {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.btn-copy-name-icon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 28px;
  overflow: hidden;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-copy-name-icon.copy-confirmed {
  background: rgba(74, 222, 128, 0.2);
  border-color: rgba(74, 222, 128, 0.45);
  color: var(--accent-green);
}

.btn-copy-name-icon:hover {
  background: rgba(0, 243, 255, 0.14);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.25);
  transform: translateY(-1px);
}

.session-exercise-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin: 14px 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Actionable Checklist Instructions Grid */
.session-instructions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 6px 0 16px;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.session-instructions-grid.state-focus-dim {
  opacity: 0.65;
  filter: grayscale(0.25);
}

.instruction-card {
  background: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-objective-blue { border-top: 3px solid #00f3ff; }
.card-focus-amber { border-top: 3px solid #f59e0b; }
.card-targets-emerald { border-top: 3px solid #10b981; }

.instruction-card-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.scannable-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scannable-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.4;
  color: #e2e8f0;
}

.card-objective-blue .scannable-bullet-list li::before { content: "✔"; position: absolute; left: 0; color: #00f3ff; font-size: 11px; font-weight: 800; }
.card-focus-amber .scannable-bullet-list li::before { content: "✔"; position: absolute; left: 0; color: #f59e0b; font-size: 11px; font-weight: 800; }
.card-targets-emerald .scannable-bullet-list li::before { content: "✔"; position: absolute; left: 0; color: #10b981; font-size: 11px; font-weight: 800; }

/* 300px Hero Timer Visualizer (Lifted Upward for Perfect Balance) */
.timer-section-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-top: -42px;
  margin-bottom: 4px;
}

.timer-circle-hero-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.timer-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8px;
}

.timer-fill {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 8px;
  stroke-linecap: round;
  transition: stroke 0.3s ease, stroke-dashoffset 1s linear, filter 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.45));
}

.timer-fill.state-running {
  animation: timer-pulse-glow 2s infinite ease-in-out;
}

.timer-fill.state-completed {
  stroke: #22c55e !important;
  filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.65)) !important;
}

@keyframes timer-pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 243, 255, 0.35)); }
  50% { filter: drop-shadow(0 0 18px rgba(0, 243, 255, 0.75)); }
}

/* Phase 1: Embedded CTA Button & Label Badge Inside Ring Before Start */
.timer-embedded-group {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.timer-type-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.25);
  padding: 3px 12px;
  border-radius: 12px;
}

.btn-hero-cta-embedded {
  width: 158px;
  max-width: 162px;
  padding: 12px 16px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  border-radius: 24px !important;
  background: linear-gradient(135deg, var(--accent-cyan), #0088ff) !important;
  color: #000000 !important;
  box-shadow: 0 0 28px rgba(0, 243, 255, 0.4) !important;
  transition: all 0.25s ease !important;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-hero-cta-embedded:hover {
  transform: scale(1.05);
  box-shadow: 0 0 38px rgba(0, 243, 255, 0.6) !important;
}

.timer-running-status {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-top: -4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: live-pulse 2s infinite ease-in-out;
}

/* Animated green dot for the LIVE indicator */
.live-dot-anim {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: live-dot-pulse 1.4s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes live-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(34, 197, 94, 0.8); }
  50% { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 4px rgba(34, 197, 94, 0.4); }
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(0, 243, 255, 0.6); }
  50% { opacity: 0.75; text-shadow: 0 0 4px rgba(0, 243, 255, 0.3); }
}

.timer-value-hero {
  position: absolute;
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 0 28px rgba(0, 243, 255, 0.45);
  transition: opacity 0.25s ease;
}

.timer-completion-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  animation: app-toast-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.completion-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid #22c55e;
  color: #22c55e;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.55);
}

.timer-completion-badge span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.timer-completion-badge small {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.phase-action-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.phase-action-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.timer-hero-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
}

.btn-link-skip {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  transition: color 0.2s ease;
}

.btn-link-skip:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Progressive Disclosure Drawer */
.training-options-drawer {
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
}

.drawer-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.drawer-summary:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-arrow {
  transition: transform 0.2s ease;
}

details[open] .drawer-arrow {
  transform: rotate(180deg);
}

.drawer-content {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

/* Locked Guidance & Live Telemetry Card while Drill Timer Running */
.running-locked-guidance {
  background: rgba(12, 16, 28, 0.95);
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(0, 243, 255, 0.12);
  animation: app-toast-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: app-toast-slide 0.3s ease, timer-pulse-glow 2s infinite ease-in-out;
}

.live-card-header strong {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  color: var(--accent-cyan);
  letter-spacing: 0.12em;
}

.live-time-readout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 18px;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-block .lbl {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.time-block strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.time-divider {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-muted);
}

.live-keyboard-cue {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
}

.live-keyboard-cue kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.btn-save-run-primary.recorded-success {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.5) !important;
}

.drawer-tools-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.metronome-control-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.metronome-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  opacity: 0.3;
  transition: all 0.05s ease;
}

.metronome-label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.metronome-bpm-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.metronome-bpm-wrap input {
  width: 52px;
  padding: 4px 6px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.metronome-bpm-wrap span {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  font-family: var(--font-display);
}

.btn-abandon {
  color: var(--accent-red) !important;
  border-color: rgba(255, 70, 85, 0.3) !important;
}

.btn-abandon:hover {
  background: rgba(255, 70, 85, 0.12) !important;
  border-color: var(--accent-red) !important;
  box-shadow: 0 0 14px rgba(255, 70, 85, 0.25) !important;
}

/* Integrated Sidebar Record Results Panel */
.session-sidebar {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: rgba(12, 16, 28, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  border-top: 3px solid var(--accent-cyan);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.session-sidebar.state-completed-highlight {
  border-color: rgba(0, 243, 255, 0.4);
  box-shadow: 0 0 32px rgba(0, 243, 255, 0.22), 0 12px 40px rgba(0, 0, 0, 0.5);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 243, 255, 0.15);
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
}

/* Glowing Dot Progress Indicators */
.visual-runs-tracker {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
}

.runs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
}

.run-dots-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  line-height: 1;
}

.run-overflow-count {
  color: var(--accent-cyan);
  font: 800 10px var(--font-display);
  letter-spacing: .04em;
}

.run-dot {
  color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.run-dot.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
}

/* Number-First Dashboard Statistics Cards */
.run-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 4px 0;
}

.stat-box {
  padding: 12px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.stat-val {
  color: #ffffff;
  font: 900 24px var(--font-display);
  line-height: 1;
}

.stat-lbl {
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.consistency-val {
  font-size: 14px !important;
  color: var(--accent-cyan) !important;
}

/* Telemetry Onboarding Empty State Card */
.telemetry-empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px stroke rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin: 6px 0;
}

.telemetry-empty-card .empty-icon {
  font-size: 20px;
}

.telemetry-empty-card strong {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
}

.telemetry-empty-card small {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Dynamic Results Entry Container */
.results-entry-container {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.results-entry-container.hidden {
  display: none !important;
}

.form-submit-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.btn-save-run-primary {
  padding: 13px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  background: linear-gradient(135deg, var(--accent-cyan), #0099ff) !important;
  color: #000 !important;
  border-radius: 8px !important;
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.3) !important;
}

.btn-save-run-primary:hover {
  box-shadow: 0 0 26px rgba(0, 243, 255, 0.5) !important;
  transform: translateY(-1px);
}

.record-submit-inline {
  width: 100%;
  margin-top: 2px;
}

.btn-next-exercise-cta {
  padding: 11px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  background: rgba(0, 243, 255, 0.06) !important;
  border: 1px solid rgba(0, 243, 255, 0.25) !important;
  color: var(--accent-cyan) !important;
  border-radius: 8px !important;
}

.btn-next-exercise-cta:hover {
  background: rgba(0, 243, 255, 0.14) !important;
  border-color: var(--accent-cyan) !important;
}

.btn-link-danger {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 0;
  text-align: center;
  transition: color 0.2s ease;
}

.btn-link-danger:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.margin-top-sm {
  margin-top: 10px;
}

/* Telemetry Dashboard Cards */
.run-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 10px 0 12px;
}

.run-dashboard div {
  padding: 10px 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  text-align: center;
}

.run-dashboard span {
  color: var(--text-muted);
  font-size: 8.5px;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.run-dashboard strong {
  margin-top: 4px;
  color: var(--accent-cyan);
  font: 900 13px var(--font-display);
}

.run-feedback {
  padding: 8px 12px;
  border-left: 2px solid var(--accent-cyan);
  background: rgba(0, 243, 255, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 10.5px;
  line-height: 1.45;
  border-radius: 0 6px 6px 0;
  margin-bottom: 14px;
}

/* Run Controls 2-Cell Bar */
.run-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.run-btn-start {
  padding: 9px 14px !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  border-radius: 8px !important;
  white-space: nowrap;
}

.run-timer-badge {
  color: var(--accent-cyan);
  font: 900 15px var(--font-display);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 243, 255, 0.3);
  padding: 7px 14px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* Form Styles */
#exercise-record-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.record-field-hint {
  font-family: var(--font-body);
  font-size: 10px;
  line-height: 1.35;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  margin: 4px 0 0;
  display: block;
  word-break: normal;
  overflow-wrap: break-word;
}

.optional-hs.hidden {
  display: none !important;
}

.optional-weapon.hidden {
  display: none !important;
}

#exercise-record-form .imported-result[readonly],
#record-notes.imported-result[readonly] {
  color: var(--text-secondary);
  border-color: rgba(0, 243, 255, .18);
  background: rgba(0, 243, 255, .035);
  cursor: default;
}

.session-main.deathmatch-mode .timer-section-hero,
.session-main.deathmatch-mode .training-options-drawer {
  display: none;
}

.session-main.deathmatch-mode .session-dm-link-panel {
  margin-top: 22px;
  padding: 22px;
}

.session-sidebar.deathmatch-mode > .sidebar-section:first-child {
  display: none;
}

.imported-dm-summary {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 243, 255, .16);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 8px;
  background: rgba(0, 243, 255, .035);
}

.imported-dm-summary > span {
  color: var(--accent-cyan);
  font: 800 9px var(--font-display);
  letter-spacing: .1em;
}

.imported-dm-summary p {
  margin: 7px 0 5px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.5;
}

.imported-dm-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 7px;
  margin: 10px 0;
}

.imported-dm-stat {
  min-width: 0;
  padding: 9px 7px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  background: rgba(0,0,0,.22);
}

.imported-dm-stat span,
.imported-dm-stat strong { display: block; }

.imported-dm-stat span {
  color: var(--text-muted);
  font: 700 8px var(--font-display);
  letter-spacing: .07em;
}

.imported-dm-stat strong {
  margin-top: 4px;
  overflow: hidden;
  color: var(--text-primary);
  font: 800 12px var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.imported-dm-summary small {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
}

.dm-completion-hint {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.dm-personal-note {
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 1.45;
}

/* Difficulty Rating 5-Capsule Bar */
.difficulty-rating {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.diff-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 0.2s ease;
  padding: 0 4px;
}

.diff-dot:hover, .diff-dot.hovered {
  border-color: var(--accent-cyan);
  color: #ffffff;
  background: rgba(0, 243, 255, 0.12);
}

.diff-dot.active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #000000;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(0, 243, 255, 0.4);
}

/* Polished Form Inputs for Record Results */

/* Sidebar section step header — single inline row */
.sidebar-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.sidebar-section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
}

/* Sidebar state fade-in transitions */
.running-locked-guidance {
  animation: sidebar-fade-in 0.3s ease forwards;
}

.results-form-wrapper {
  animation: sidebar-fade-in 0.35s ease forwards;
}

@keyframes sidebar-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

#exercise-record-form input[type="number"],
#exercise-record-form input[type="text"] {
  height: 42px;
  padding: 0 14px;
  font-size: 13px;
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #ffffff;
  box-sizing: border-box;
  width: 100%;
  transition: all 0.2s ease;
}

#exercise-record-form input[type="number"]:focus,
#exercise-record-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.25);
}

/* Hide native number spinners for a clean UI */
#exercise-record-form input[type=number]::-webkit-inner-spin-button,
#exercise-record-form input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#exercise-record-form input[type=number] {
  -moz-appearance: textfield;
}

.session-dm-link-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:14px 16px;border:1px solid rgba(0,243,255,.25);background:rgba(0,243,255,.05);border-radius:8px;text-align:left}
.session-dm-link-panel>div:first-child{display:grid;gap:4px}.session-dm-link-panel strong{font-family:var(--font-display);font-size:13px}.session-dm-link-panel small{color:var(--text-muted)}
.session-dm-link-panel[data-state="processing"]{border-color:rgba(245,158,11,.45);background:rgba(245,158,11,.06)}
.session-dm-link-panel[data-state="not_found"]{border-color:rgba(245,158,11,.45);background:rgba(245,158,11,.06)}
.session-dm-link-panel[data-state="failed"]{border-color:rgba(244,63,94,.55);background:rgba(244,63,94,.07)}
.session-dm-link-panel[data-state="ready"]{border-color:rgba(16,185,129,.5);background:rgba(16,185,129,.06)}
@media(max-width:700px){.session-dm-link-panel{align-items:stretch;flex-direction:column}}

.right-controls {
  display: flex;
  gap: 12px;
}

/* Sidebar record stats form */
.session-sidebar {
  display: flex;
  flex-direction: column;
}

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

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.lbl-opt {
  color: var(--text-muted);
  font-weight: 400;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="url"],
input:not([type]),
textarea,
select {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

input[type="text"]::placeholder,
input[type="number"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder,
input[type="search"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input:not([type])::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

textarea {
  resize: vertical;
}

/* Legacy diff-dot block removed — styles live above in the session cockpit section */

/* Buttons */
button {
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background-color: var(--accent-red);
  border: 1px solid var(--accent-red);
  color: var(--text-primary);
  padding: 14px 28px;
  font-size: 13px;
  box-shadow: 0 4px 14px var(--accent-red-glow);
}

.btn-primary:hover {
  background-color: var(--accent-red-hover);
  border-color: var(--accent-red-hover);
  box-shadow: 0 6px 20px rgba(255, 70, 85, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 14px 28px;
  font-size: 13px;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background-color: var(--bg-light);
}

.btn-accent {
  background-color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  color: var(--bg-darker);
  padding: 12px 24px;
  font-size: 12px;
  box-shadow: 0 4px 10px var(--accent-cyan-glow);
}

.btn-accent:hover {
  background-color: hsl(188, 90%, 42%);
  border-color: hsl(188, 90%, 42%);
  box-shadow: 0 6px 16px rgba(0, 243, 255, 0.35);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 11px;
}

.w-full {
  width: 100%;
}

.hidden {
  display: none !important;
}

/* 3. JOURNAL / HISTORY VIEW STYLING */
.history-container {
  display: flex;
  flex-direction: column;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.history-header-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.history-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.view-title {
  font-size: 20px;
  color: var(--text-primary);
}

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

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  max-width: 320px;
}

/* History journal item details */
.history-session-card {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background-color: var(--bg-input);
  overflow: hidden;
  transition: all 0.2s ease;
}

.history-session-card:hover {
  border-color: var(--border-hover);
}

.history-session-summary {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  user-select: none;
}

.hist-expand-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.history-session-card.expanded .hist-expand-arrow {
  transform: rotate(90deg);
  color: var(--accent-cyan);
}

.hist-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.hist-focus {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--accent-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.focus-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-red);
  flex-shrink: 0;
}

.focus-dot.precision { background-color: var(--accent-red); }
.focus-dot.tracking { background-color: var(--accent-cyan); }
.focus-dot.target_switching { background-color: var(--accent-purple); }
.focus-dot.mouse_control { background-color: var(--accent-yellow); }
.focus-dot.benchmarks { background-color: var(--text-primary); }
.focus-dot.transfer { background-color: var(--accent-green); }
.focus-dot.recovery { background-color: var(--text-muted); }

.hist-dur {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--accent-cyan);
  white-space: nowrap;
  flex-shrink: 0;
}

.hist-feel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.hist-delete-day {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.hist-delete-day:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fff;
  transform: translateY(-1px);
}

.history-session-details {
  border-top: 1px solid var(--border-light);
  padding: 24px;
  background-color: var(--bg-dark);
  display: none;
}

.history-session-card.expanded .history-session-details {
  display: block;
}

.details-reflection-box {
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
}

.details-ref-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.details-ref-text {
  color: var(--text-primary);
  font-size: 13px;
  font-style: italic;
}

.details-table-wrapper {
  overflow-x: auto;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table th,
.details-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.details-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.details-table td {
  font-size: 13px;
}

.details-score-val {
  font-family: var(--font-display);
  font-weight: 600;
}

.details-score-val.pb {
  color: var(--accent-yellow);
}

.score-skipped-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(225, 10%, 50%);
  background: hsl(225, 15%, 16%);
  border: 1px solid hsl(225, 12%, 26%);
}

.details-table tr.skipped {
  opacity: 0.55;
}

.details-table tr.skipped td:first-child {
  text-decoration: line-through;
  text-decoration-color: hsl(225, 10%, 40%);
}


/* 4. STATISTICS / ANALYTICS VIEW STYLING */
.analytics-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.analytics-command .view-title { margin: 4px 0 2px; }

.analytics-range-picker {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-darker);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.analytics-range-btn {
  min-width: 48px;
  padding: 8px 10px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  font: 800 10px var(--font-display);
  cursor: pointer;
}

.analytics-range-btn:hover,
.analytics-range-btn.active {
  color: var(--bg-darker);
  background: var(--accent-cyan);
}

.analytics-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-overview-grid .perf-value { color: var(--accent-cyan); }
.analytics-intelligence-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; margin-bottom:24px; }
.analytics-coach-summary { display:grid; gap:8px; margin-top:14px; }
.analytics-coach-summary .cycle-compare-metric { min-height:72px; }
.analytics-coach-summary .cycle-compare-metric strong { font:600 11px/1.55 var(--font-body); }
.analytics-timeline { max-height:390px; overflow:auto; margin-top:12px; padding-right:4px; }
.analytics-timeline-item { display:grid; grid-template-columns:112px minmax(0,1fr) auto; gap:12px; align-items:start; padding:12px 8px 12px 12px; border-left:2px solid var(--border-light); border-bottom:1px solid var(--border-light); }
.analytics-timeline-item.tone-positive { border-left-color:var(--accent-green); }
.analytics-timeline-item.tone-warning { border-left-color:var(--accent-red); }
.analytics-timeline-item time,.analytics-timeline-item small { color:var(--text-muted); font:800 8px var(--font-display); }
.analytics-timeline-item strong,.analytics-timeline-item span,.analytics-timeline-item em { display:block; }
.analytics-timeline-item strong { color:var(--text-primary); font:800 11px var(--font-display); }
.analytics-timeline-item span { margin-top:4px; color:var(--text-secondary); font-size:10px; }
.analytics-timeline-item em { margin-top:5px; color:var(--accent-cyan); font-size:9px; font-style:normal; }

.analytics-server-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.analytics-quality { margin-bottom: 24px; }

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

.analytics-quality-item {
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.analytics-quality-item strong,
.analytics-quality-item span { display: block; }
.analytics-quality-item strong { color: var(--text-primary); font: 800 16px var(--font-display); }
.analytics-quality-item span { margin-top: 4px; color: var(--text-muted); font-size: 10px; }
.analytics-diagnostics-card { margin-bottom:24px; }
.analytics-diagnostics-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:14px; }
.analytics-diagnostic { position:relative; padding:14px; border:1px solid var(--border-light); border-left:3px solid var(--text-muted); background:rgba(0,0,0,.16); min-width:0; }
.analytics-diagnostic.signal-ready,.analytics-diagnostic.signal-improving { border-left-color:var(--accent-green); }
.analytics-diagnostic.signal-declining,.analytics-diagnostic.signal-high_variance,.analytics-diagnostic.signal-rushing { border-left-color:var(--accent-red); }
.analytics-diagnostic.signal-conservative { border-left-color:var(--accent-yellow); }
.analytics-diagnostic-head { display:flex; justify-content:space-between; gap:8px; align-items:start; }
.analytics-diagnostic strong { display:block; color:var(--text-primary); font:800 11px var(--font-display); }
.analytics-diagnostic-head span { flex:0 0 auto; color:var(--accent-cyan); font:800 8px var(--font-display); }
.analytics-diagnostic h4 { margin:7px 0 5px; color:var(--text-secondary); font:800 10px var(--font-display); text-transform:uppercase; }
.analytics-diagnostic p { margin:0; color:var(--text-muted); font-size:9.5px; line-height:1.5; }
.analytics-diagnostic .diagnostic-action { margin-top:8px; color:var(--text-secondary); }
.analytics-diagnostic-evidence { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
.analytics-diagnostic-evidence span { padding:4px 6px; border:1px solid var(--border-light); color:var(--text-muted); font:700 7.5px var(--font-display); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.performance-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.perf-card {
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.perf-title {
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.perf-value {
  font-size: 26px;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--text-primary);
}

#stats-total-time { color: var(--accent-cyan); }
#stats-consistency-index { color: var(--accent-green); }

.stats-chart-wrapper {
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 20px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.chart-header h3 {
  font-size: 13px;
  color: var(--text-secondary);
}

.custom-select {
  background-color: var(--bg-dark);
  border-color: var(--border-light);
  color: var(--text-primary);
  width: auto;
  min-width: 200px;
}

.chart-container {
  position: relative;
  height: 250px;
  border-left: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 10px;
}

.chart-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
}

.chart-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* SVG chart styles */
#stats-svg-chart {
  width: 100%;
  height: 100%;
}

.chart-axis-text {
  fill: var(--text-muted);
  font-family: var(--font-display);
  font-size: 10px;
}

.chart-grid-line {
  stroke: var(--border-light);
  stroke-dasharray: 4, 4;
}

.chart-data-line {
  fill: none;
  stroke: var(--accent-cyan);
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-data-dot {
  fill: var(--bg-darker);
  stroke: var(--accent-cyan);
  stroke-width: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-data-dot:hover {
  fill: var(--accent-cyan);
  stroke-width: 5px;
}

/* Sidebar Analytics details */
.stats-insights-card {
  display: flex;
  flex-direction: column;
}

.insights-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.insight-metric-box {
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 12px;
}

.insight-metric-box.strength { border-top: 3px solid var(--accent-green); }
.insight-metric-box.weakness { border-top: 3px solid var(--accent-red); }

.box-lbl {
  font-size: 10px;
  color: var(--text-muted);
}

.box-val {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 4px;
}

.coaching-feedback-card {
  background-color: rgba(255, 70, 85, 0.02);
  border: 1px dashed rgba(255, 70, 85, 0.2);
  border-radius: 4px;
  padding: 16px;
}

.coaching-title {
  font-size: 11px;
  color: var(--accent-red);
  margin-bottom: 8px;
}

.coaching-text {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Personal best list */
.pb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 10px 14px;
}

.pb-item-name {
  font-weight: 500;
}

.pb-item-val {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent-yellow);
}

.pb-empty {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

/* Overlay Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(7, 10, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.modal-header h2 {
  font-size: 18px;
  color: var(--text-primary);
}

.modal-subtitle {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
}

.settings-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
}

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

/* Tabbed Settings Modal */
#settings-modal .modal-content {
  max-width: 680px;
  width: 94%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#settings-modal .modal-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}

.settings-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.settings-tab-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 8px 4px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.settings-tab-btn:hover {
  background: var(--bg-light);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.settings-tab-btn.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

#settings-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.settings-tab-panel {
  display: none;
  animation: settingsPanelFade 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-tab-panel.active {
  display: block;
}

.settings-modal-footer {
  margin-top: auto;
  padding-top: 14px;
  padding-bottom: 16px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
  background: var(--bg-card);
  position: sticky;
  bottom: 0;
  z-index: 5;
}

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

@media (max-width: 560px) {
  .settings-tabs-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Reflection Feeling Options */
.feeling-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.feeling-btn {
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 12px 6px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.feeling-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.feel-icon {
  font-size: 18px;
}

.feel-label {
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
}

.feeling-btn.active {
  border-color: var(--accent-red);
  background-color: rgba(255, 70, 85, 0.05);
  color: var(--accent-red);
}

/* Custom switch toggle */
.toggle-group {
  margin-top: 24px;
  margin-bottom: 24px;
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch-label-status {
  font-size: 10px;
  font-weight: bold;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  transition: .3s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .3s;
}

input:checked + .slider {
  background-color: var(--accent-red-glow);
  border-color: var(--accent-red);
}

input:checked + .slider:before {
  transform: translateX(26px);
  background-color: var(--accent-red);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

.dev-tools {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: 16px;
}

.field-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

/* Hosted data, sync, and trust guide */
.system-heading, .system-activity-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.system-actions { display: flex; gap: 10px; }
.system-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.system-status-card { min-height: 132px; }
.system-status-card > span {
  display: block;
  color: var(--text-muted);
  font: 700 10px var(--font-display);
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.system-status-card strong {
  display: block;
  color: var(--text-primary);
  font: 800 15px var(--font-display);
  margin-bottom: 8px;
}
.system-status-card strong[data-state="good"] { color: var(--accent-green); }
.system-status-card strong[data-state="warn"] { color: var(--accent-yellow); }
.system-status-card small { color: var(--text-muted); line-height: 1.5; }
.system-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.system-unlock-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
  align-items: center;
  gap: 18px;
  margin: 0 0 14px;
}
.system-unlock-card h3 { margin: 7px 0 4px; font-family: var(--font-display); }
.system-unlock-form { display: flex; gap: 9px; }
.system-unlock-form input { min-width: 0; flex: 1; }
.system-unlock-card > small { grid-column: 1 / -1; color: var(--text-muted); }
.system-conflict-card { margin: 0 0 14px; border-color: rgba(255, 190, 0, .35); }
.system-conflict-compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.system-conflict-compare > div { padding: 13px; border: 1px solid var(--border-light); background: rgba(0,0,0,.16); }
.system-conflict-compare span, .system-conflict-compare strong, .system-conflict-compare small { display: block; }
.system-conflict-compare span { color: var(--text-muted); font: 700 9px var(--font-display); letter-spacing: .1em; }
.system-conflict-compare strong { margin: 7px 0; color: var(--accent-yellow); font-family: var(--font-display); }
.system-conflict-compare small, .system-conflict-card > small { color: var(--text-muted); }
.system-conflict-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0; }
.system-guide-card h3 { margin: 8px 0; font-family: var(--font-display); }
.system-guide-card p { margin: 0; color: var(--text-secondary); line-height: 1.65; }
.system-activity-card { margin-top: 20px; }
.system-management-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.system-activity-list { display: grid; gap: 8px; margin-top: 16px; }
.system-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: rgba(0, 0, 0, .16);
}
.system-activity-row strong, .system-activity-row small { display: block; }
.system-activity-row small { color: var(--text-muted); margin-top: 4px; }
.system-activity-xp { color: var(--accent-yellow); font: 800 12px var(--font-display); white-space: nowrap; }
.system-activity-empty { padding: 18px; color: var(--text-muted); text-align: center; border: 1px dashed var(--border-light); }
.system-checkup-list { display: grid; gap: 8px; margin-top: 15px; }
.system-checkup-item { padding: 10px 12px; border: 1px solid var(--border-light); color: var(--text-secondary); }
.system-checkup-item.pass { border-color: rgba(34,197,94,.25); color: var(--accent-green); }
.system-checkup-item.warn { border-color: rgba(255,190,0,.25); color: var(--accent-yellow); }

/* Responsiveness Settings */
@media (max-width: 1500px) and (min-width: 1025px) {
  .app-header { flex-wrap: wrap; padding: 12px 18px; }
  .header-nav { order: 3; width: 100%; justify-content: center; }
}

@media (max-width: 1024px) {
  .dashboard-grid,
  .session-layout,
  .stats-grid,
  .analytics-server-grid,
  .analytics-intelligence-grid,
  .coach-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .analytics-overview-grid,
  .analytics-quality-grid,
  .analytics-diagnostics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-status-grid, .system-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-achievements-card { grid-column: auto; }
  .ranked-history-card .ranked-attempt-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .ranked-history-card .ranked-attempt-row .system-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .ranked-history-card .ranked-attempt-row .system-actions button { flex: 1 1 130px; }
  .profile-inspector-card { grid-column: auto; }
  .app-header { flex-wrap: wrap; padding: 12px 18px; }
  .header-nav { order: 3; width: 100%; justify-content: center; }
  
  .dashboard-right,
  .session-sidebar,
  .stats-right {
    margin-top: 12px;
  }
}

@media (max-width: 600px) {
  .deathmatch-report-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .deathmatch-report-grid { grid-template-columns: 1fr; }
  .deathmatch-comparison-grid { grid-template-columns: 1fr; }
  .deathmatch-report-actions { flex-direction: column-reverse; }
  .analytics-command { align-items: stretch; flex-direction: column; }
  .analytics-intelligence-grid { grid-template-columns:1fr; }
  .analytics-timeline-item { grid-template-columns:88px minmax(0,1fr); }
  .analytics-timeline-item small { grid-column:2; }
  .analytics-range-picker { width: 100%; }
  .analytics-range-btn { flex: 1; min-width: 0; }
  .analytics-overview-grid,
  .analytics-quality-grid,
  .analytics-diagnostics-grid { grid-template-columns: 1fr; }
  .analytics-recovery-summary,
  .analytics-recovery-evidence { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .analytics-recovery-row-head,
  .analytics-recovery-outcome { flex-direction:column; }
  .benchmark-appeal-attempt { grid-template-columns: 1fr; }
  .benchmark-appeal-actions { flex-direction: column-reverse; }
  .benchmark-appeal-actions button { width: 100%; }
  .notification-panel {
    position: fixed;
    top: 78px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 600px) {
  .imported-dm-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-viewport { padding: 16px; }
  #view-session { max-width: 100%; padding-bottom: 28px; }
  #view-session .session-global-tracker {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }
  #view-session .tracker-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    min-width: 0;
  }
  #view-session .session-step { min-width: 0; }
  #view-session .session-progress-bar-container {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    width: 100%;
  }
  #view-session .session-progress-track { width: auto; min-width: 0; flex: 1; }
  #view-session .session-eta-badge { grid-column: 2; grid-row: 1; white-space: nowrap; }
  #view-session .session-global-actions,
  #view-session .session-global-actions button { width: 100%; }
  #view-session .session-progress-left { flex-wrap: wrap; min-width: 0; }
  #view-session .session-breadcrumb { min-width: 0; overflow-wrap: anywhere; }
  #view-session .session-exercise-name { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  #view-session .session-instructions-grid { grid-template-columns: 1fr; gap: 10px; }
  #view-session .instruction-card { padding: 14px 16px; }
  .app-header {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  
  .header-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .header-status { width: 100%; justify-content: center; flex-wrap: nowrap; overflow-x: auto; }
  .header-level-badge { order: initial; width: 170px; flex: 0 0 170px; }
  .history-session-details .details-table-wrapper { overflow: visible; }
  .history-session-details .details-table,
  .history-session-details .details-table tbody { display: block; width: 100%; }
  .history-session-details .details-table thead { display: none; }
  .history-session-details .details-table tr {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 12px;
    width: 100%;
    padding: 14px 0;
  }
  .history-session-details .details-table td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
  }
  .history-session-details .details-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font: 700 8px var(--font-display);
    letter-spacing: .08em;
  }
  .history-session-details .details-table td:first-child,
  .history-session-details .details-table td:last-child {
    grid-column: 1 / -1;
    max-width: none !important;
  }
  .coach-heading, .coach-composer { flex-direction: column; }
  .system-heading, .system-activity-heading { flex-direction: column; }
  .system-actions { width: 100%; flex-wrap: wrap; }
  .system-status-grid, .system-guide-grid { grid-template-columns: 1fr; }
  .system-management-grid { grid-template-columns: 1fr; }
  .system-unlock-card { grid-template-columns: 1fr; }
  .system-unlock-form { flex-direction: column; }
  .system-unlock-card > small { grid-column: auto; }
  .system-conflict-compare { grid-template-columns: 1fr; }
  .profile-rank-ladder, .profile-achievements-grid { grid-template-columns: repeat(2,1fr); }
  .inspector-achievement-list { grid-template-columns: 1fr; }
  .ranked-heading { flex-direction: column; }
  .ranked-overall { width: 100%; text-align: left; }
  .ranked-drill-grid { grid-template-columns: repeat(2,1fr); }
  .ranked-log-form { grid-template-columns: 1fr; }
  .profile-title-roadmap { grid-template-columns: 1fr; }
  .profile-title-roadmap div { border-right: 0; border-bottom: 1px solid var(--border-light); }
  .lab-grid { grid-template-columns: 1fr; }
  .crosshair-lab-controls { grid-template-columns: repeat(2,1fr); }
  .henrik-match-row { grid-template-columns: 24px 1fr 1fr; }
  
  .nav-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .performance-cards-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .history-session-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  
  .hist-expand-arrow {
    grid-column: span 2;
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
    margin-top: 4px;
  }
  
  .history-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .history-header-actions {
    width: 100%;
  }
}
.auth-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: 
    radial-gradient(circle at 50% 15%, rgba(255, 70, 85, 0.12), transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(0, 243, 255, 0.08), transparent 45%),
    linear-gradient(180deg, #090c14 0%, #0d111a 100%);
  position: relative;
}

.auth-view[hidden] { display: none; }

.auth-card {
  width: min(440px, 100%);
  padding: 34px 30px;
  position: relative;
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--accent-red);
  border-radius: 8px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(255, 70, 85, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Tactical Corner Cut Decoration */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 18px 18px 0;
  border-color: transparent var(--accent-red) transparent transparent;
  opacity: 0.8;
}

.auth-logo { margin-bottom: 24px; }
.auth-card h1 { 
  margin: 6px 0 8px; 
  font-family: var(--font-display); 
  font-weight: 900; 
  letter-spacing: 0.02em; 
  text-transform: uppercase;
  color: #fff;
}

.auth-info-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding: 12px 13px;
  border: 1px solid rgba(0, 243, 255, 0.24);
  border-radius: 6px;
  background: rgba(0, 243, 255, 0.07);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.auth-info-notice[hidden] { display: none; }

.auth-info-notice-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(0, 243, 255, 0.5);
  border-radius: 50%;
  color: var(--accent-cyan);
  font: 800 12px var(--font-display);
}

.auth-info-notice > div > strong,
.auth-info-notice > div > span {
  display: block;
}

.auth-info-notice strong {
  margin-bottom: 2px;
  color: var(--text-primary);
  font: 800 11px var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-form { display: grid; gap: 16px; margin-top: 22px; }

/* Form Field Labels & Headers */
.form-field-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-form .field-title,
.form-field-label .field-title {
  color: var(--text-secondary);
  font: 800 10px var(--font-display);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Tactical Input Group Container */
.tactical-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(8, 11, 18, 0.7);
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.tactical-input-group:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(10, 14, 23, 0.85);
}

.tactical-input-group:focus-within {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 1px var(--accent-red), 0 0 16px rgba(255, 70, 85, 0.22), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  background: rgba(12, 16, 26, 0.95);
}

/* Dedicated Email Input Group Accent */
.tactical-input-group.email-input-group:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px var(--accent-cyan), 0 0 18px rgba(0, 243, 255, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Icon Badges inside Input Groups */
.input-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 12px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.tactical-input-group:focus-within .input-icon-badge {
  color: var(--accent-red);
  transform: scale(1.05);
}

.tactical-input-group.email-input-group:focus-within .input-icon-badge {
  color: var(--accent-cyan);
}

/* Clean Input Styling inside Tactical Groups */
.tactical-input-group input {
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  min-width: 0;
  box-shadow: none !important;
}

.tactical-input-group input::placeholder {
  color: rgba(255, 255, 255, 0.22);
  font-weight: 400;
}

/* Live Email Validation Status Indicator */
.email-status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  flex-shrink: 0;
}

.email-status-indicator.is-valid {
  opacity: 1;
  transform: scale(1);
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.email-status-indicator.is-invalid {
  opacity: 0.85;
  transform: scale(1);
  color: var(--accent-red);
  text-shadow: 0 0 8px rgba(255, 70, 85, 0.4);
}

.auth-error { min-height: 18px; margin: 0; color: var(--accent-red); font-size: 12px; }

/* Maintenance View Panel */
.maintenance-panel {
  text-align: center;
  padding: 10px 0;
}
.maintenance-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  color: var(--accent-yellow);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.maintenance-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 10px var(--accent-yellow);
  animation: maintenance-pulse 1.8s infinite;
}
@keyframes maintenance-pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--accent-yellow); }
  100% { transform: scale(0.95); opacity: 0.7; }
}
.maintenance-icon {
  font-size: 48px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.4));
  animation: spin-slow 12s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.maintenance-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.03em;
  margin: 0 0 12px 0;
}
.maintenance-message {
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0 0 24px 0;
  padding: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  word-break: break-word;
}
.maintenance-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.maintenance-actions button {
  width: 100%;
  justify-content: center;
}
[hidden] { display: none !important; }
.account-summary-card { display: none; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 20px; }
.account-summary-card h2 { margin: 4px 0; }
.account-mode .account-summary-card { display: flex; }
.account-mode .legacy-vault-ui { display: none !important; }
.local-mode-only,
[data-tab="tab-settings-data"] { display: none !important; }
#btn-account-logout { display: none; }
.account-mode #btn-account-logout { display: inline-flex; }

/* Global Modal Overlay & Evidence Viewer System */
.admin-modal-overlay,
.evidence-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.admin-modal-card,
.evidence-modal-card {
  width: min(700px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  background: var(--bg-darker);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 243, 255, 0.1);
  color: var(--text-primary);
  margin: auto;
}

/* App Toast Notification System */
.app-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
}
.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(14, 19, 30, 0.95);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: app-toast-slide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
}
@keyframes app-toast-slide {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.app-toast.success {
  border-color: rgba(0, 243, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}
.app-toast.success .toast-icon { color: var(--accent-cyan); }
.app-toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.15);
}
.app-toast.error .toast-icon { color: #ef4444; }
.app-toast.warning {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}
.app-toast.warning .toast-icon { color: var(--accent-yellow); }
.app-toast.info {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 10px 30px rgba(96, 165, 250, 0.15);
}
.app-toast.info .toast-icon { color: #60a5fa; }

/* Theme Swatch Grid & Interactive Picker */
.theme-swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.theme-swatch-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.theme-swatch-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-light);
  transform: translateY(-2px);
}

.theme-swatch-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.05);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.theme-swatch-preview {
  display: flex;
  align-items: center;
  gap: 6px;
}

.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.swatch-dot.primary {
  background: var(--swatch-color);
  box-shadow: 0 0 8px var(--swatch-color);
}

.swatch-dot.bg {
  background: var(--swatch-bg);
}

.theme-swatch-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-swatch-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.theme-swatch-check {
  display: none;
  font-size: 11px;
  color: var(--accent-cyan);
}

.theme-swatch-card.active .theme-swatch-check {
  display: inline;
}

/* Background Swatch Grid */
.bg-swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.bg-swatch-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.bg-swatch-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-light);
}

.bg-swatch-card.active {
  border-color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.08);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.bg-swatch-icon { font-size: 14px; }
.bg-swatch-name {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  flex: 1;
}

.bg-swatch-check {
  display: none;
  font-size: 10px;
  color: var(--accent-cyan);
}

.bg-swatch-card.active .bg-swatch-check { display: inline; }
.tools-subnav { display:flex; gap:8px; margin:0 0 16px; padding:6px; width:max-content; max-width:100%; border:1px solid var(--border-light); background:var(--bg-card); }
.tools-subnav button { border:0; background:transparent; color:var(--text-muted); padding:10px 14px; font-family:var(--font-display); font-size:10px; font-weight:800; letter-spacing:.06em; cursor:pointer; }
.tools-subnav button.active { color:var(--accent-cyan); background:rgba(0,243,255,.08); box-shadow:inset 0 -2px var(--accent-cyan); }
.training-cycle-card,.weekly-coach-report { margin-bottom:20px; }
.cycle-inbox { margin-bottom:20px; }
.cycle-decision-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:9px; }
/* COACH NOTIFICATIONS & DISPATCH */
.cycle-notification-prefs { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:14px 0 18px; padding:10px 14px; background:rgba(0,0,0,0.25); border:1px solid var(--border-light); border-radius:6px; }
.cycle-notification-prefs .prefs-label { color:var(--accent-cyan); font-family:var(--font-display); font-size:9.5px; font-weight:800; letter-spacing:.08em; margin-right:4px; }
.pref-chip, .cat-chip { display:inline-flex; align-items:center; cursor:pointer; user-select:none; }
.pref-chip input, .cat-chip input { appearance:none; -webkit-appearance:none; width:0; height:0; position:absolute; opacity:0; }
.pref-chip span, .cat-chip span { display:inline-flex; align-items:center; gap:6px; padding:5px 12px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.1); border-radius:20px; font-family:var(--font-display); font-size:10.5px; font-weight:700; color:var(--text-secondary); transition:all 0.2s ease; }
.pref-chip span::before, .cat-chip span::before { content:''; display:inline-block; width:7px; height:7px; border-radius:50%; background:var(--text-muted); opacity:0.4; transition:all 0.2s ease; }
.pref-chip input:checked + span, .cat-chip input:checked + span { background:rgba(0,243,255,0.1); border-color:var(--accent-cyan); color:#fff; box-shadow:0 0 10px rgba(0,243,255,0.15); }
.pref-chip input:checked + span::before, .cat-chip input:checked + span::before { background:var(--accent-cyan); opacity:1; box-shadow:0 0 6px var(--accent-cyan); }
.pref-chip:hover span, .cat-chip:hover span { border-color:rgba(0,243,255,0.4); color:var(--text-primary); }

.notification-schedule-panel { background:linear-gradient(135deg, rgba(13,20,33,0.75) 0%, rgba(8,12,20,0.85) 100%); border:1px solid rgba(0,243,255,0.18); border-radius:8px; padding:18px; margin:16px 0; box-shadow:0 8px 32px rgba(0,0,0,0.37), inset 0 1px 0 rgba(255,255,255,0.05); }
.push-panel-header { display:flex; justify-content:space-between; align-items:center; gap:16px; border-bottom:1px solid rgba(255,255,255,0.08); padding-bottom:14px; margin-bottom:16px; }
.push-header-text { display:flex; flex-direction:column; gap:2px; }
.push-panel-title { font-family:var(--font-display); font-size:12px; font-weight:800; color:var(--text-primary); letter-spacing:.05em; margin:0; }
.btn-enable-push { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; font-size:10px; }

.push-schedule-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; margin-bottom:16px; }
.schedule-field { display:flex; flex-direction:column; gap:6px; background:rgba(0,0,0,0.25); padding:10px 12px; border-radius:6px; border:1px solid var(--border-light); transition:all 0.2s ease; }
.schedule-field:focus-within { border-color:var(--accent-cyan); box-shadow:0 0 12px rgba(0,243,255,0.15); background:rgba(0,243,255,0.03); }
.schedule-field label { display:flex; align-items:center; gap:6px; color:var(--text-muted); font-family:var(--font-display); font-size:8.5px; font-weight:800; letter-spacing:.08em; }
.schedule-field label svg { color:var(--accent-cyan); }
.schedule-field input[type="time"], .schedule-field input[type="text"] { background:var(--bg-dark); border:1px solid rgba(255,255,255,0.1); border-radius:4px; color:var(--text-primary); font-family:var(--font-mono, monospace); font-size:12px; font-weight:700; padding:6px 10px; width:100%; transition:all 0.2s ease; }
.schedule-field input:focus { border-color:var(--accent-cyan); outline:none; background:rgba(0,0,0,0.5); }

.push-categories-section { margin-bottom:16px; background:rgba(0,0,0,0.15); padding:12px 14px; border-radius:6px; border:1px solid rgba(255,255,255,0.05); }
.schedule-sub-eyebrow { display:block; font-family:var(--font-display); font-size:8.5px; font-weight:800; letter-spacing:.08em; color:var(--text-muted); margin-bottom:8px; }
.notification-category-grid { display:flex; flex-wrap:wrap; gap:8px; }

.push-actions-row { display:flex; gap:10px; align-items:center; border-top:1px solid rgba(255,255,255,0.08); padding-top:14px; }
.push-actions-row button { display:inline-flex; align-items:center; gap:6px; }

.push-device-list { margin:16px 0; display:flex; flex-direction:column; gap:10px; }
.push-device-empty { padding:14px; background:rgba(0,0,0,0.2); border:1px dashed var(--border-light); border-radius:6px; color:var(--text-muted); font-family:var(--font-display); font-size:10px; text-align:center; }

.push-device-card { background:linear-gradient(135deg, rgba(15,23,38,0.6) 0%, rgba(10,15,25,0.8) 100%); border:1px solid rgba(255,255,255,0.08); border-left:3px solid var(--accent-cyan); border-radius:6px; padding:14px 16px; transition:all 0.2s ease; }
.push-device-card:hover { border-color:rgba(0,243,255,0.3); box-shadow:0 4px 20px rgba(0,0,0,0.3); }
.push-device-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:6px; }
.push-device-title-group { display:flex; align-items:center; gap:8px; }
.push-device-icon { color:var(--accent-cyan); display:flex; align-items:center; }
.push-device-title { font-family:var(--font-display); font-size:11px; font-weight:800; color:var(--text-primary); letter-spacing:.04em; }

.device-status-badge { display:inline-flex; align-items:center; gap:5px; padding:3px 8px; border-radius:4px; font-family:var(--font-display); font-size:9px; font-weight:800; letter-spacing:.06em; }
.device-status-badge.status-active { background:rgba(0,243,255,0.1); color:var(--accent-cyan); border:1px solid rgba(0,243,255,0.3); }
.device-status-badge.status-paused { background:rgba(255,170,0,0.1); color:#ffaa00; border:1px solid rgba(255,170,0,0.3); }
.status-dot { width:5px; height:5px; border-radius:50%; background:currentColor; box-shadow:0 0 6px currentColor; }

.push-device-health { display:flex; align-items:center; gap:6px; color:var(--text-muted); font-size:10px; margin-bottom:10px; }
.push-device-health svg { color:var(--accent-cyan); opacity:0.8; }
.push-device-cat-title { display:block; font-family:var(--font-display); font-size:8px; font-weight:800; letter-spacing:.08em; color:var(--text-muted); margin-bottom:6px; }

.push-device-categories { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.device-cat-chip { display:inline-flex; align-items:center; cursor:pointer; }
.device-cat-chip input { appearance:none; -webkit-appearance:none; width:0; height:0; position:absolute; opacity:0; }
.device-cat-chip span { display:inline-block; padding:3px 8px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:3px; font-family:var(--font-display); font-size:9px; font-weight:700; color:var(--text-muted); text-transform:capitalize; transition:all 0.15s ease; }
.device-cat-chip input:checked + span { background:rgba(0,243,255,0.08); border-color:rgba(0,243,255,0.25); color:var(--accent-cyan); }

.push-device-actions { display:flex; gap:8px; flex-wrap:wrap; border-top:1px dashed rgba(255,255,255,0.06); padding-top:10px; margin-top:4px; }
.btn-sm { padding:5px 10px; font-size:9px; font-weight:800; }
.btn-danger-outline { background:rgba(255,70,85,0.08); border:1px solid rgba(255,70,85,0.3); color:#ff4655; border-radius:4px; font-family:var(--font-display); font-weight:800; cursor:pointer; transition:all 0.2s ease; }
.btn-danger-outline:hover { background:rgba(255,70,85,0.2); border-color:#ff4655; color:#fff; box-shadow:0 0 10px rgba(255,70,85,0.3); }

@media (max-width: 760px) {
  .push-schedule-grid { grid-template-columns:1fr 1fr; }
  .push-panel-header { flex-direction:column; align-items:flex-start; gap:12px; }
  .push-panel-header button { width:100%; justify-content:center; }
}
@media (max-width: 480px) {
  .push-schedule-grid { grid-template-columns:1fr; }
}
.training-cycle-heading { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.training-cycle-controls { display:grid; grid-template-columns:auto auto; gap:6px 10px; align-items:end; min-width:360px; }
.training-cycle-controls label { grid-column:1/-1; color:var(--text-muted); font-size:9px; font-weight:800; letter-spacing:.08em; }
.training-cycle-controls select { min-height:38px; background:var(--bg-dark); border:1px solid var(--border-light); color:var(--text-primary); padding:0 10px; }
.training-cycle-roadmap { display:grid; grid-template-columns:repeat(4,minmax(145px,1fr)); gap:10px; margin-top:18px; }
.dashboard-cycle-card { margin-bottom:16px; }
.dashboard-cycle-title { display:flex; justify-content:space-between; gap:10px; margin:8px 0; align-items:center; }
.dashboard-cycle-title strong { color:var(--accent-cyan); font:800 15px var(--font-display); }
.dashboard-cycle-title span { color:var(--text-muted); font:800 9px var(--font-display); }
.dashboard-cycle-card p { color:var(--text-secondary); font-size:11px; line-height:1.5; }
.dashboard-cycle-card button { width:100%; margin-top:10px; }
.dashboard-cycle-progress { height:5px; background:var(--bg-dark); overflow:hidden; }
.dashboard-cycle-progress div { height:100%; width:0; background:linear-gradient(90deg,var(--accent-cyan),var(--accent-purple)); transition:width .3s ease; }
.dashboard-load-card { margin-bottom:16px; border-color:rgba(0,243,255,.2); }
.dashboard-load-header { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:12px; }
.dashboard-load-header strong { color:var(--accent-cyan); font:800 10px var(--font-display); letter-spacing:.05em; text-align:right; }
.dashboard-load-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.dashboard-load-metrics div { padding:8px 5px; background:rgba(0,0,0,.18); border:1px solid var(--border-light); text-align:center; }
.dashboard-load-metrics span { display:block; color:var(--text-muted); font:700 8px var(--font-display); }
.dashboard-load-metrics strong { display:block; margin-top:4px; color:var(--text-primary); font:800 15px var(--font-display); }
.dashboard-load-card p { margin:10px 0 0; color:var(--text-secondary); font-size:11px; line-height:1.45; }
.dashboard-load-card small { display:block; margin-top:8px; color:var(--text-muted); font-size:8.5px; line-height:1.35; }
.dashboard-load-card[data-state="maintenance"] { border-color:rgba(251,191,36,.45); }
.dashboard-load-card[data-state="maintenance"] .dashboard-load-header strong { color:#fbbf24; }
.dashboard-load-card[data-state="recovery"] { border-color:rgba(255,49,84,.5); }
.dashboard-load-card[data-state="recovery"] .dashboard-load-header strong { color:var(--accent-red); }
.dashboard-load-feedback { margin-top:12px; padding-top:10px; border-top:1px solid var(--border-light); }
.dashboard-load-feedback > span,.dashboard-load-feedback label span { display:block; color:var(--text-muted); font:800 8px var(--font-display); letter-spacing:.07em; }
.dashboard-load-feedback > div { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin-top:7px; }
.dashboard-load-feedback button { min-height:30px; margin:0; padding:0 5px; font-size:8px; }
.dashboard-load-feedback button.active { color:var(--bg-dark); background:var(--accent-cyan); }
.dashboard-load-feedback label { display:block; margin-top:8px; }
.dashboard-load-feedback input { width:100%; min-height:34px; margin-top:5px; box-sizing:border-box; padding:0 8px; color:var(--text-primary); background:var(--bg-dark); border:1px solid var(--border-light); }
.dashboard-load-feedback p { margin:7px 0 0; color:var(--text-muted); font-size:8.5px; }
.analytics-recovery-history { margin:16px 0; }
.analytics-recovery-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin:14px 0; }
.analytics-recovery-list { display:grid; gap:10px; }
.analytics-recovery-row { padding:14px; background:rgba(0,0,0,.18); border:1px solid var(--border-light); border-left:3px solid #fbbf24; }
.analytics-recovery-row.state-recovery { border-left-color:var(--accent-red); }
.analytics-recovery-row-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.analytics-recovery-row-head div { display:flex; flex-direction:column; gap:4px; }
.analytics-recovery-row-head time { color:var(--text-muted); font:700 9px var(--font-display); }
.analytics-recovery-row-head strong { color:var(--text-primary); font:800 11px var(--font-display); }
.analytics-recovery-row-head > span { color:var(--accent-cyan); font:800 9px var(--font-display); }
.analytics-recovery-evidence { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; margin:12px 0 8px; }
.analytics-recovery-row > p { margin:7px 0 0; color:var(--text-secondary); font-size:10px; line-height:1.5; }
.analytics-recovery-row .analytics-recovery-override { color:#fbbf24; }
.analytics-recovery-outcome { display:flex; justify-content:space-between; gap:12px; margin-top:10px; padding:9px; border:1px solid var(--border-light); }
.analytics-recovery-outcome strong { flex:none; color:var(--text-muted); font:800 9px var(--font-display); }
.analytics-recovery-outcome.helped strong { color:#00e676; }
.analytics-recovery-outcome span,.analytics-recovery-row > small { color:var(--text-muted); font-size:9px; line-height:1.45; }
.session-prescription { display:grid; grid-template-columns:repeat(4,minmax(90px,1fr)); gap:8px; padding:12px; margin-bottom:20px; border:1px solid var(--border-light); background:rgba(0,243,255,.025); }
.session-prescription div { padding:8px; background:rgba(0,0,0,.16); }
.session-prescription span,.session-prescription strong { display:block; }
.session-prescription span { color:var(--text-muted); font-size:8px; font-weight:800; letter-spacing:.07em; }
.session-prescription strong { margin-top:4px; color:var(--accent-cyan); font:800 11px var(--font-display); }
.session-prescription p { grid-column:1/-1; margin:2px 4px 0; color:var(--text-secondary); font-size:10px; line-height:1.5; }
.cycle-feedback-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:12px; margin-top:14px; }
.cycle-review-panel,.cycle-override-panel { padding:14px; border:1px solid var(--border-light); background:rgba(0,0,0,.16); }
.cycle-review-panel h3,.cycle-override-panel h3 { margin:5px 0 10px; font:800 13px var(--font-display); }
.cycle-review-content { color:var(--text-secondary); font-size:11px; line-height:1.6; }
.cycle-override-panel { display:flex; flex-direction:column; gap:8px; }
.cycle-override-panel select,.cycle-override-panel input { min-height:36px; padding:0 10px; background:var(--bg-dark); border:1px solid var(--border-light); color:var(--text-primary); }
.cycle-history { margin-top:14px; border-top:1px solid var(--border-light); padding-top:12px; }
.cycle-history summary { cursor:pointer; color:var(--text-muted); font:800 10px var(--font-display); letter-spacing:.06em; }
.cycle-history-row { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--border-light); }
.cycle-history-row strong { color:var(--text-primary); font-size:11px; }
.cycle-history-row span { color:var(--text-muted); font-size:10px; text-align:right; }
.cycle-faq { margin-top:14px; border-top:1px solid var(--border-light); padding-top:12px; }
.cycle-faq summary { cursor:pointer; color:var(--accent-cyan); font:800 10px var(--font-display); letter-spacing:.06em; }
.cycle-faq-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:12px; }
.cycle-faq article { padding:13px; border:1px solid var(--border-light); background:rgba(0,0,0,.16); }
.cycle-faq h4 { margin:0 0 7px; color:var(--text-primary); font:800 11px var(--font-display); }
.cycle-faq p { margin:0; color:var(--text-secondary); font-size:10px; line-height:1.55; }
.analytics-cycle { margin-bottom:24px; }
.analytics-cycle-outcomes { display:grid; grid-template-columns:repeat(3,minmax(160px,1fr)); gap:10px; margin-top:14px; }
.analytics-cycle-outcome { padding:13px; border:1px solid var(--border-light); background:rgba(0,0,0,.16); }
.analytics-cycle-outcome strong,.analytics-cycle-outcome span { display:block; }
.analytics-cycle-outcome strong { color:var(--text-primary); font:800 12px var(--font-display); }
.analytics-cycle-outcome span { margin-top:6px; color:var(--text-secondary); font-size:10px; line-height:1.5; }
.analytics-evidence-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:24px; }
.analytics-scenario-explorer,.analytics-load-card,.analytics-cycle-compare { min-width:0; }
.analytics-scenario-explorer canvas,.analytics-load-card canvas { display:block; width:100%; height:auto; margin-top:12px; background:var(--bg-darker); border:1px solid var(--border-light); }
.analytics-scenario-metrics,.analytics-cycle-comparison { display:grid; grid-template-columns:repeat(4,minmax(90px,1fr)); gap:8px; margin-top:12px; }
.analytics-scenario-metrics div,.cycle-compare-metric { padding:10px; border:1px solid var(--border-light); background:rgba(0,0,0,.16); }
.analytics-scenario-metrics span,.cycle-compare-metric span { display:block; color:var(--text-muted); font-size:8px; font-weight:800; }
.analytics-scenario-metrics strong,.cycle-compare-metric strong { display:block; margin-top:5px; color:var(--text-primary); font:800 13px var(--font-display); }
.analytics-recommendation { margin-top:10px; padding:10px; border-left:2px solid var(--accent-cyan); color:var(--text-secondary); font-size:11px; }
.cycle-compare-controls { display:flex; align-items:center; gap:10px; margin-top:12px; }
.cycle-compare-controls select { flex:1; min-height:38px; background:var(--bg-dark); border:1px solid var(--border-light); color:var(--text-primary); }
.cycle-compare-controls span { color:var(--text-muted); font:800 10px var(--font-display); }
.analytics-export-actions { display:flex; gap:8px; }
.cycle-week { padding:13px; border:1px solid var(--border-light); background:rgba(0,0,0,.18); min-height:100px; }
.cycle-week.current { border-color:var(--accent-cyan); box-shadow:inset 0 0 0 1px rgba(0,243,255,.16); }
.cycle-week.complete { opacity:.65; }
.cycle-week span { color:var(--text-muted); font-size:9px; font-weight:800; letter-spacing:.08em; }
.cycle-week strong { display:block; margin:7px 0; color:var(--text-primary); font-family:var(--font-display); font-size:13px; }
.cycle-week p { margin:0; color:var(--text-secondary); font-size:10px; line-height:1.45; }
.weekly-coach-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.weekly-coach-nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.weekly-coach-content { margin-top: 18px; }
.weekly-coach-metrics { display: grid; grid-template-columns: repeat(4,minmax(110px,1fr)); gap: 10px; }
.weekly-coach-metric { padding: 13px; border: 1px solid var(--border-light); background: rgba(0,0,0,.18); }
.weekly-coach-metric span { display: block; color: var(--text-muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.weekly-coach-metric strong { display: block; margin-top: 5px; color: var(--text-primary); font-family: var(--font-display); font-size: 20px; }
.weekly-coach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.weekly-coach-block { padding: 14px; border: 1px solid var(--border-light); background: var(--bg-card); }
.weekly-coach-block h4 { margin: 0 0 7px; color: var(--accent-cyan); font-size: 10px; letter-spacing: .08em; }
.weekly-coach-block p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.weekly-coach-evidence { margin-top: 12px; color: var(--text-muted); font-size: 10px; }
@media (max-width: 760px) {
  .training-cycle-heading { flex-direction:column; }
  .training-cycle-controls { min-width:0; width:100%; grid-template-columns:1fr; }
  .training-cycle-controls label { grid-column:auto; }
  .training-cycle-roadmap { grid-template-columns:1fr 1fr; }
  .cycle-feedback-grid,.analytics-cycle-outcomes { grid-template-columns:1fr; }
  .cycle-faq-grid { grid-template-columns:1fr; }
  .analytics-evidence-grid { grid-template-columns:1fr; }
  .analytics-scenario-metrics,.analytics-cycle-comparison { grid-template-columns:1fr 1fr; }
  .session-prescription { grid-template-columns:1fr 1fr; }
  .weekly-coach-heading { flex-direction: column; }
  .weekly-coach-nav { justify-content: flex-start; }
  .weekly-coach-metrics,.weekly-coach-grid { grid-template-columns: 1fr 1fr; }
}
.run-dashboard { display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0; }
.run-dashboard div { padding:9px;background:rgba(0,0,0,.18);border:1px solid var(--border-light); }
.run-dashboard span,.run-dashboard strong { display:block; }
.run-dashboard span { color:var(--text-muted);font-size:8px;font-weight:800; }
.run-dashboard strong { margin-top:4px;color:var(--accent-cyan);font:800 13px var(--font-display); }
.run-feedback { padding:9px;border-left:2px solid var(--accent-cyan);color:var(--text-secondary);font-size:10px;line-height:1.45; }
.run-controls { display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:8px 0; }.run-controls span{color:var(--accent-cyan);font:800 14px var(--font-display)}
.run-history { max-height:120px;overflow:auto;color:var(--text-muted);font-size:10px;margin-bottom:8px; }
.run-history-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px;border-bottom:1px solid var(--border-light)}
.run-history-actions{display:flex;gap:4px;flex:0 0 auto}
.run-history-action{padding:3px 6px;border:1px solid var(--border-light);border-radius:4px;background:transparent;color:var(--accent-cyan);font:800 8px var(--font-display);cursor:pointer}
.run-history-action:hover{border-color:var(--accent-cyan);background:rgba(0,243,255,.08)}
.run-history-action.danger{color:var(--accent-red)}
.run-history-action.danger:hover{border-color:var(--accent-red);background:rgba(244,63,94,.08)}
.session-evidence-summary { margin-bottom:14px;padding:12px;border:1px solid var(--border-light);background:rgba(0,0,0,.18);color:var(--text-secondary);font-size:11px;line-height:1.6; }

/* Compact active-session cockpit */
@media (min-width: 981px) {
  #view-session .session-layout{grid-template-columns:minmax(0,1fr) 390px;gap:18px}
  #view-session .session-main{min-height:0;padding:24px}
  #view-session .session-sidebar{position:sticky;top:76px;padding:20px;max-height:calc(100vh - 92px);overflow:auto;scrollbar-width:thin}
  #view-session .session-progress-header{margin-bottom:12px}
  #view-session .session-exercise-name{font-size:clamp(23px,2.15vw,30px);line-height:1.25;margin:0 0 3px}
  #view-session .session-exercise-desc{font-size:12.5px;line-height:1.55;margin:8px 0 16px}
  #view-session .timer-section{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;column-gap:22px;row-gap:10px;flex:0;margin:4px 0 20px}
  #view-session .timer-circle-container{grid-row:1 / span 2;width:145px;height:145px;margin:0}
  #view-session .timer-value{font-size:28px}
  #view-session .timer-controls{justify-content:center}
  #view-session .metronome-control-box{grid-column:2;margin-top:0!important}
  #view-session .session-nav-controls{padding-top:18px}
  #view-session .session-sidebar>.card-title{margin-bottom:4px}
  #view-session .run-dashboard{grid-template-columns:repeat(4,1fr);gap:6px;margin:7px 0}
  #view-session .run-dashboard div{padding:8px 6px}
  #view-session .run-feedback{margin:6px 0;padding:7px}
  #view-session .run-controls{display:grid;grid-template-columns:1fr auto 1fr;margin:6px 0}
  #view-session .run-controls button{padding:9px 7px;font-size:9px}
  #view-session .run-history{max-height:74px;margin-bottom:8px}
  #view-session #exercise-record-form{display:grid;grid-template-columns:1fr 1fr;gap:11px 10px}
  #view-session #exercise-record-form .form-row-metrics{grid-column:1 / -1}
  #view-session #exercise-record-form .record-submit-inline{grid-column:1 / -1}
  #view-session #exercise-record-form .form-group{margin:0}
  #view-session #exercise-record-form .form-group:has(#record-notes){grid-column:1 / -1}
  #view-session #exercise-record-form input,#view-session #exercise-record-form textarea{padding:9px 10px}
  #view-session #exercise-record-form textarea{min-height:54px;max-height:80px}
  #view-session #exercise-record-form label{margin-bottom:4px;font-size:9.5px}
  #view-session .record-field-hint{font-size:8.5px;line-height:1.25;margin:4px 0 0}
  #view-session #btn-record-save,#view-session #btn-finish-block{margin:0;min-height:42px}
}

@media (min-width:981px) and (max-height:820px){
  #view-session .session-sidebar{top:64px;max-height:calc(100vh - 72px)}
  #view-session .timer-circle-container{width:118px;height:118px}
  #view-session .timer-value{font-size:23px}
  #view-session .session-exercise-desc{margin-bottom:10px}
  #view-session .session-nav-controls{padding-top:12px}
}
.sandbox-bias-summary {
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid rgba(0, 243, 255, .28);
  border-radius: 6px;
  background: rgba(3, 10, 18, .82);
}
#sandbox-aim-trainer-modal .modal-container {
  max-height: 94vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sandbox-bias-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--accent-cyan);
  font: 800 10px var(--font-display);
  letter-spacing: .08em;
}
.sandbox-bias-heading small { color: var(--text-muted); }
#canvas-sandbox-heatmap {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-light);
  border-radius: 4px;
}
.sandbox-bias-summary p {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
}
.sandbox-bias-disclaimer {
  display: block;
  margin-top: 9px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.4;
}
.sandbox-reward-status {
  margin: -2px 0 10px;
  color: var(--text-muted);
  font: 700 9px var(--font-display);
  letter-spacing: .07em;
  text-align: right;
}
.sandbox-reward-status.capped { color: var(--accent-gold, #fbbf24); }
