/* ==========================================================================
   AUTOGRADING MODERN DESIGN SYSTEM FUSION
   Unifying 5 Elite Design Paradigms:
   1. Linear-style & Bento Grid
   2. Calm UI & Progressive Disclosure
   3. Liquid Glass & Spatial UI
   4. Intent-Driven & Copilot UI
   5. Neo-Brutalism (Tactile B2B Essence)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & SPATIAL VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Linear-style Precision Tokens */
  --linear-border: rgba(203, 213, 225, 0.75);
  --linear-border-hover: rgba(37, 99, 235, 0.4);
  --linear-border-glow: 0 0 0 1px rgba(37, 99, 235, 0.25), 0 4px 16px -2px rgba(37, 99, 235, 0.12);
  --linear-divider: rgba(226, 232, 240, 0.9);
  --linear-surface-subtle: #f8fafc;
  --linear-gradient-border: linear-gradient(135deg, rgba(37, 99, 235, 0.35) 0%, rgba(124, 58, 237, 0.3) 50%, rgba(2, 132, 199, 0.35) 100%);

  /* Liquid Glass & Frosted Surfaces */
  --glass-frosted-bg: rgba(255, 255, 255, 0.82);
  --glass-frosted-border: rgba(255, 255, 255, 0.7);
  --glass-blur-strength: 18px;
  --glass-specular-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.85);
  --glass-subtle-glow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);

  /* Spatial UI 5-Layer Elevation System */
  --spatial-l0-canvas: #f8fafc;
  --spatial-l1-surface: #ffffff;
  --spatial-l2-floating: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --spatial-l3-drawer: 0 16px 36px -4px rgba(15, 23, 42, 0.1), 0 6px 14px -2px rgba(15, 23, 42, 0.05);
  --spatial-l4-modal: 0 24px 54px -8px rgba(15, 23, 42, 0.16), 0 10px 20px -3px rgba(15, 23, 42, 0.07);
  --spatial-l5-spotlight: 0 32px 72px -12px rgba(15, 23, 42, 0.22), 0 12px 28px -4px rgba(15, 23, 42, 0.1);

  /* Intent-Driven & Copilot Gradient Aura */
  --copilot-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #0284c7 100%);
  --copilot-aura: 0 0 24px -2px rgba(124, 58, 237, 0.25);
  --copilot-chip-bg: rgba(238, 242, 255, 0.85);
  --copilot-chip-border: rgba(199, 210, 254, 0.8);
  --copilot-chip-text: #3730a3;

  /* Neo-Brutalism Tactile Accents */
  --tactile-border-width: 1.5px;
  --tactile-border-color: #cbd5e1;
  --tactile-border-strong: #94a3b8;
  --tactile-btn-shadow: 0 2px 0 #94a3b8;
  --tactile-active-press: translate(1px, 1.5px);

  /* Calm UI Serene Diacritics Typography */
  --font-letter-spacing-tight: -0.015em;
  --font-letter-spacing-meta: 0.03em;
}

/* --------------------------------------------------------------------------
   2. LINEAR-STYLE & BENTO GRID ARCHITECTURE
   -------------------------------------------------------------------------- */

/* Enhanced Bento Metric HUD Cards */
.bento-hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bento-card {
  position: relative;
  background: var(--card-bg);
  border: var(--tactile-border-width) solid var(--linear-border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--spatial-l2-floating);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--linear-gradient-border);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--linear-border-hover);
  box-shadow: var(--linear-border-glow);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: var(--font-letter-spacing-meta);
  text-transform: uppercase;
}

.bento-val {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: var(--font-letter-spacing-tight);
  color: var(--text-main);
  margin: 0.35rem 0 0.15rem;
  line-height: 1.2;
}

.bento-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Linear Keyboard Shortcuts Badge */
.kbd-chip, .kbd-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid #cbd5e1;
  border-bottom: 2px solid #94a3b8;
  border-radius: 5px;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  user-select: none;
  line-height: 1;
}

/* Linear Status Pulse Dot */
.linear-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  position: relative;
}

.linear-status-dot.active {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.linear-status-dot.pulsing::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 999px;
  border: 1.5px solid #10b981;
  animation: linearPulse 1.8s infinite cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes linearPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* --------------------------------------------------------------------------
   3. CALM UI & PROGRESSIVE DISCLOSURE
   -------------------------------------------------------------------------- */

/* Calm Canvas & Breathing Margins */
.studio-canvas {
  background: var(--canvas-bg);
  min-height: 100vh;
}

/* Progressive Disclosure Accordions & Drawers */
.progressive-disclosure-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.progressive-disclosure-panel.revealed {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
}

/* Contextual Quick Reveal Action Bars */
.contextual-actions-bar {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contextual-actions-bar.active,
.tr-submission-row:hover .contextual-actions-bar {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. LIQUID GLASS & SPATIAL UI
   -------------------------------------------------------------------------- */

/* Liquid Glass Frosted Topbar */
.studio-topbar {
  background: var(--glass-frosted-bg) !important;
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(180%) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(180%) !important;
  border-bottom: 1px solid var(--linear-border) !important;
  box-shadow: var(--glass-specular-highlight), 0 2px 10px rgba(15, 23, 42, 0.04) !important;
  position: sticky;
  top: 0;
  z-index: 2000;
}

/* Liquid Glass Cards */
.liquid-glass-card {
  background: var(--glass-frosted-bg);
  backdrop-filter: blur(var(--glass-blur-strength)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur-strength)) saturate(180%);
  border: var(--tactile-border-width) solid var(--glass-frosted-border);
  box-shadow: var(--glass-specular-highlight), var(--spatial-l2-floating);
  border-radius: var(--radius-lg);
}

/* Spatial Depth Modal Popovers */
.modal-overlay {
  background: rgba(15, 23, 42, 0.45) !important;
  backdrop-filter: blur(10px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(160%) !important;
}

.modal-content-card, .modal-card, .rubric-studio-modal-box {
  box-shadow: var(--spatial-l4-modal) !important;
  border: var(--tactile-border-width) solid var(--linear-border) !important;
  animation: spatialModalPop 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes spatialModalPop {
  0% { transform: scale(0.96) translateY(6px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Floating Batch Action Bar with Spatial Elevation */
.batch-floating-bar, #batch-action-bar {
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: var(--spatial-l5-spotlight) !important;
  border-radius: var(--radius-xl) !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   5. INTENT-DRIVEN & COPILOT UI
   -------------------------------------------------------------------------- */

/* AutoGrading Copilot Intent Bar */
.copilot-intent-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.95rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95) 0%, rgba(245, 243, 255, 0.95) 100%);
  border: var(--tactile-border-width) solid #c7d2fe;
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 12px -3px rgba(79, 70, 229, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-bottom: 0.95rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.copilot-intent-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--copilot-gradient);
}

.copilot-intent-lead {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.copilot-sparkle-box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--copilot-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
  flex-shrink: 0;
}

.copilot-sparkle-box svg {
  animation: copilotSpin 6s linear infinite;
}

@keyframes copilotSpin {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
  100% { transform: rotate(0deg); }
}

.copilot-intent-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.intent-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #ffffff;
  border: var(--tactile-border-width) solid var(--copilot-chip-border);
  border-radius: 999px;
  color: var(--copilot-chip-text);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.intent-chip:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px -1px rgba(37, 99, 235, 0.2);
}

.intent-chip:active {
  transform: var(--tactile-active-press);
}

/* --------------------------------------------------------------------------
   6. NEO-BRUTALISM (TACTILE ESSENCE & CONFIDENT B2B ACCENTS)
   -------------------------------------------------------------------------- */

/* Tactile Push Buttons */
.btn-primary, .btn-gate-primary, .btn-hub-create, .btn-speedgrader-action {
  border: var(--tactile-border-width) solid rgba(0, 0, 0, 0.15) !important;
  box-shadow: var(--tactile-btn-shadow) !important;
  font-weight: 700 !important;
  transition: all 0.12s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary:active, .btn-gate-primary:active, .btn-hub-create:active, .btn-speedgrader-action:active {
  transform: var(--tactile-active-press) !important;
  box-shadow: 0 0 0 transparent !important;
}

/* High-Contrast Pedagogical Badges */
.badge-tactile {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: var(--tactile-border-width) solid currentColor;
}

.badge-score-pill {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 8px;
  border: var(--tactile-border-width) solid #cbd5e1;
  background: #f8fafc;
  color: var(--text-main);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.badge-score-pill.score-excellent {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
}

.badge-score-pill.score-good {
  background: #eff6ff;
  color: #1e40af;
  border-color: #93c5fd;
}

.badge-score-pill.score-average {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

/* --------------------------------------------------------------------------
   7. PAGE-SPECIFIC FUSION AUDITS & REFINEMENTS
   -------------------------------------------------------------------------- */

/* Page 1: Auth Gate View Refinement (Luminous EdTech + Liquid Glass Fusion) */
.auth-gate-wrapper {
  background: radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(124, 58, 237, 0.06) 0%, transparent 45%),
              #f8fafc !important;
  color: #0f172a !important;
  min-height: 100vh;
}

.auth-gate-hero {
  color: #0f172a !important;
}

.auth-hero-title {
  font-family: var(--font-heading) !important;
  color: #0f172a !important;
}

.auth-hero-title .text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 50%, #00c5df 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.auth-hero-subtitle {
  color: #475569 !important;
}

.auth-features-list .auth-feature-item {
  background: #ffffff !important;
  border: var(--tactile-border-width) solid var(--linear-border) !important;
  box-shadow: var(--spatial-l1-surface) !important;
  border-radius: var(--radius-lg) !important;
}

.auth-features-list .auth-feature-item:hover {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  transform: translateX(4px);
  box-shadow: var(--spatial-l2-floating) !important;
}

.auth-features-list .auth-feature-icon {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%) !important;
  color: #0284c7 !important;
  border: 1px solid #a5f3fc !important;
}

.auth-features-list .auth-feature-text strong {
  color: #082850 !important;
  font-weight: 700 !important;
}

.auth-features-list .auth-feature-text span {
  color: #64748b !important;
}

.auth-student-cta-box {
  background: #ecfeff !important;
  border: 1.5px dashed #a5f3fc !important;
  color: #0c4a6e !important;
  border-radius: var(--radius-lg) !important;
}

.btn-link-student-portal {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

.btn-link-student-portal:hover {
  color: #00c5df !important;
  background: rgba(0, 197, 223, 0.1) !important;
}

.auth-gate-card {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border: var(--tactile-border-width) solid var(--linear-border) !important;
  box-shadow: var(--glass-specular-highlight), var(--spatial-l4-modal) !important;
  border-radius: var(--radius-xl) !important;
  color: #082850 !important;
}

.auth-card-icon-lock {
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 16px rgba(0, 197, 223, 0.3) !important;
}

.auth-card-header h2 {
  color: #0f172a !important;
}

.auth-card-header p {
  color: #64748b !important;
}

.form-group-gate label {
  color: #334155 !important;
  font-weight: 600 !important;
}

.input-gate {
  background: #ffffff !important;
  border: var(--tactile-border-width) solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.input-gate:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18) !important;
}

.input-gate::placeholder {
  color: #94a3b8 !important;
}

.input-gate-icon {
  color: #64748b !important;
}

.btn-toggle-pass-text {
  color: #2563eb !important;
  font-weight: 600 !important;
}

.checkbox-gate-label {
  color: #475569 !important;
  font-weight: 500 !important;
}

.btn-gate-primary {
  background: linear-gradient(135deg, #0284c7 0%, #00b4d8 50%, #00c5df 100%) !important;
  color: #ffffff !important;
  border: var(--tactile-border-width) solid rgba(0,0,0,0.15) !important;
  box-shadow: var(--tactile-btn-shadow), 0 4px 18px rgba(0, 197, 223, 0.4) !important;
}

.btn-gate-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #00b4d8 100%) !important;
  box-shadow: 0 6px 22px rgba(0, 197, 223, 0.5) !important;
}

.btn-gate-primary:active {
  transform: var(--tactile-active-press) !important;
  box-shadow: 0 0 0 transparent !important;
}

.auth-card-footer p {
  color: #64748b !important;
  font-size: 0.8rem !important;
}

/* Commercial Polish: Hide Unnecessary Demo Accounts from Production UI */
.auth-demo-section,
.demo-auth-tray {
  display: none !important;
}

/* Absolute Zero FOUC: Student Portal Isolation on all /submit & query routes */
html.portal-mode #auth-gate-view,
body.portal-mode #auth-gate-view,
body.unauthenticated.portal-mode #auth-gate-view,
html.portal-mode .auth-gate-wrapper,
body.portal-mode .auth-gate-wrapper,
body.unauthenticated.portal-mode .auth-gate-wrapper {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html.portal-mode #student-portal-view,
body.portal-mode #student-portal-view,
body.unauthenticated.portal-mode #student-portal-view {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Page 2 & 3: Exam Hub Bento Layout */
.exam-hub-card {
  border: var(--tactile-border-width) solid var(--linear-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--spatial-l2-floating) !important;
}

.hub-filter-pill {
  border: var(--tactile-border-width) solid var(--tactile-border-color) !important;
  font-weight: 700 !important;
}

.hub-filter-pill.active {
  border-color: rgba(0, 197, 223, 0.6) !important;
  background: #ecfeff !important;
  color: #082850 !important;
  box-shadow: 0 2px 8px rgba(0, 197, 223, 0.25) !important;
}

/* Page 4 & 5: SpeedGrader Split Studio & Roster Table */
.table-submissions-styled {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table-submissions-styled th {
  background: #f8fafc;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--font-letter-spacing-meta);
  border-bottom: 2px solid var(--tactile-border-color);
  padding: 0.75rem 1rem;
}

.table-submissions-styled td {
  border-bottom: 1px solid var(--linear-divider);
  padding: 0.85rem 1rem;
  transition: background 0.15s ease;
}

.table-submissions-styled tr:hover td {
  background: #f8fafc;
}

/* SpeedGrader Floating Toolbar */
.speedgrader-floating-controls {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  box-shadow: var(--spatial-l3-drawer);
  z-index: 50;
  color: #ffffff;
}

/* Page 6: Student Portal Bento Upload Cards */
.portal-method-card {
  border: var(--tactile-border-width) solid var(--linear-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--spatial-l2-floating) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.portal-method-card:hover {
  border-color: var(--primary) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--linear-border-glow) !important;
}

/* Page 7: Public Utility Studio (Math OCR) Bento Workspace */
.math-ocr-workspace-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .math-ocr-workspace-bento {
    grid-template-columns: 1fr;
  }
}

.math-keypad-tactile-btn {
  border: var(--tactile-border-width) solid var(--tactile-border-color) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  transition: all 0.1s ease !important;
}

.math-keypad-tactile-btn:active {
  transform: var(--tactile-active-press) !important;
}

/* Responsive Spectrum: Mobile 320px, Foldable 344/768px, Tablet 768-1024px, Desktop 1280px+ */
@media (max-width: 992px) {
  .auth-gate-container {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    max-width: 480px !important;
    margin: 0 auto !important;
  }
  .auth-gate-hero {
    text-align: center;
    align-items: center;
  }
  .auth-hero-title {
    font-size: 2.15rem !important;
  }
  .auth-features-list {
    display: none !important;
  }
  .auth-student-cta-box {
    justify-content: center !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .copilot-intent-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .copilot-intent-chips {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 480px) {
  .auth-gate-wrapper {
    padding: 1.25rem 0.75rem !important;
  }
  .auth-gate-card {
    padding: 1.5rem 1rem !important;
    border-radius: var(--radius-lg) !important;
  }
  .auth-hero-title {
    font-size: 1.85rem !important;
  }
  .auth-hero-subtitle {
    font-size: 0.88rem !important;
  }
  .bento-hud-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
}

/* Assessment Studio Action Toolbars Responsive Optimization (Mobile to Desktop) */
.studio-action-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color, #e2e8f0);
  padding-top: 0.85rem;
}

.studio-action-btn-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .studio-action-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }
  .studio-action-toolbar > button,
  .studio-action-btn-group {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .studio-action-btn-group > button,
  .studio-action-toolbar > button {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.86rem !important;
  }
}
