@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --accent-red: #ef4444;
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --paper: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --shadow-purple: 0 10px 28px rgba(139, 92, 246, 0.18);
  --shadow-cyan: 0 10px 28px rgba(6, 182, 212, 0.18);
  --shadow-green: 0 10px 28px rgba(16, 185, 129, 0.18);
  --shadow-orange: 0 10px 28px rgba(249, 115, 22, 0.18);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

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

button {
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Brand Strip */
.brandStrip {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px 10px;
  border-bottom: 1px solid var(--line);
}

.brandStrip img:first-child {
  width: min(260px, 55vw);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

.brandStrip img:last-child {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Brand Footer */
.brandFooter {
  text-align: center;
  padding: 28px 16px 20px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.brandFooter img {
  display: block;
  width: min(240px, 70vw);
  max-height: 54px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.brandCredit {
  font-size: 13px;
  font-weight: 750;
  color: var(--primary);
}

/* Base Layout Shell */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 32px);
}

.landing {
  max-width: 1160px;
}

.form-wrap {
  max-width: 880px;
}

/* Top Navigation Bar with Quick Navigation Tabs */
.topbar, .admin-nav {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 12px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 14px;
}

.brand, .admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark, .admin-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  flex-shrink: 0;
}

.brand strong, .admin-brand strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand span, .admin-brand span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Top Navigation Tabs */
.nav-tabs, .admin-nav-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-tab, .admin-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  color: #334155;
  text-decoration: none;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  transition: all 0.2s ease;
}

.nav-tab:hover, .admin-nav-tab:hover {
  background: #eef2ff;
  border-color: #818cf8;
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-tab.active, .admin-nav-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.pill, .admin-badge-pill {
  padding: 6px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill.live {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
}

/* Eyebrows & Typography */
.eyebrow {
  display: inline-block;
  background: #ede9fe;
  border: 1.5px solid #c4b5fd;
  color: #6d28d9;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.question {
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.25;
  margin: 6px 0 12px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.helper {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 22px;
  font-size: 15px;
}

/* Cards */
.card, .admin-card-light {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3.5vw, 36px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.main-form-card {
  border: 2px solid #818cf8;
  box-shadow: var(--shadow-purple);
}

/* Progress Header */
.progress-wrap {
  margin-bottom: 24px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.step-counter {
  color: var(--primary);
  background: #eef2ff;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  font-size: 12px;
}

.progress-pct {
  color: var(--muted);
}

.progress {
  height: 10px;
  background: #f1f5f9;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress > div {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5, #06b6d4);
  border-radius: 999px;
  transition: width 0.35s ease;
}

/* Form Elements */
.field {
  margin: 18px 0;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #334155;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  outline: none;
  font-size: 15px;
  color: var(--ink);
  transition: all 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.fieldHint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}

/* Choices Grid */
.choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice label {
  display: flex;
  min-height: 68px;
  align-items: center;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  color: #334155;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.choice label:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-1px);
}

.choice input:checked + label {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.2);
  transform: translateY(-2px);
}

/* Action Buttons */
.actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 24px;
  font-weight: 850;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn.secondary {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #1e293b;
}

.btn.secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn.danger {
  background: #fff;
  border: 1.5px solid #fecaca;
  color: #dc2626;
}

.btn.danger:hover {
  background: #fef2f2;
  border-color: #f87171;
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}

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

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 850;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.5);
}

/* Notices */
.notice {
  padding: 16px 20px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #065f46;
  border: 1.5px solid #a7f3d0;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.55;
}

.notice.warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

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

.error {
  color: var(--accent-red);
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
}

.hidden {
  display: none !important;
}

/* Voice Dictation Tools */
.voiceTools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.voiceTools select {
  width: auto;
  padding: 8px 12px;
}

/* ==========================================================================
   LIVE AUDITORIUM DASHBOARD STYLES (PROJECTOR & MOBILE OPTIMIZED)
   ========================================================================== */
.dashboard {
  background: #0b1020;
  color: #f8fafc;
  min-height: 100vh;
}
.dashboard .brandStrip {
  border-bottom-color: #26314a;
}
.dashboard .topbar {
  background: #121a2e;
  border-color: #26314a;
  box-shadow: none;
}
.dashboard .brand strong {
  color: #fff;
}
.dashboard .brand span {
  color: #94a3b8;
}
.dashboard .nav-tab {
  background: #0b1020;
  border-color: #26314a;
  color: #cbd5e1;
}
.dashboard .nav-tab:hover {
  background: #1e293b;
  border-color: #818cf8;
  color: #fff;
}
.dashboard .nav-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-hover);
}
.dashshell {
  max-width: 1440px;
  margin: auto;
  padding: clamp(14px, 2.5vw, 28px);
}
.dashhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.dashhead h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}
.dashsub {
  color: #94a3b8;
  margin: 6px 0 0;
  font-size: 14px;
}
.live-label {
  color: #2dd4bf;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-left: 8px;
}
.dashgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: #121a2e;
  border: 1.5px solid #26314a;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
}
.metric:hover {
  border-color: #3b4d75;
  transform: translateY(-1px);
}
.metric span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.metric b {
  font-size: clamp(26px, 3.5vw, 38px);
  display: block;
  margin-top: 8px;
  color: #fff;
  line-height: 1;
  font-weight: 900;
}
.dashmain {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-top: 20px;
}
.dashcard {
  background: #121a2e;
  border: 1.5px solid #26314a;
  border-radius: 20px;
  padding: clamp(18px, 3vw, 24px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.cardtitle {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 14px;
}
.cardtitle h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  color: #fff;
}
.cardtitle p {
  color: #94a3b8;
  margin: 4px 0 0;
  font-size: 13px;
}
.dashcard h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #c7d2fe;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bars {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.barrow {
  display: grid;
  grid-template-columns: 170px 1fr 40px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.barrow span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #cbd5e1;
  font-weight: 600;
}
.bar {
  height: 12px;
  background: #1e293b;
  border-radius: 99px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #2dd4bf);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.barrow b {
  text-align: right;
  color: #fff;
  font-weight: 800;
}
.idea {
  display: grid;
  grid-template-columns: 44px 1fr 65px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #1e293b;
}
.idea:last-child {
  border-bottom: none;
}
.idea .rank {
  font-size: 17px;
  font-weight: 900;
  color: #c4b5fd;
  text-align: center;
}
.ideaText {
  min-width: 0;
}
.ideaText b {
  display: block;
  font-size: 14px;
  font-weight: 750;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ideaText small {
  display: block;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.4;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.idea .score {
  font-weight: 900;
  color: #2dd4bf;
  text-align: right;
  font-size: 18px;
}
.idea .score small {
  font-size: 11px;
  color: #94a3b8;
  font-weight: normal;
}
.muted {
  color: #94a3b8;
}
.dashlogin {
  max-width: 500px;
  margin: 50px auto;
  padding: 32px 28px;
  border: 1.5px solid #26314a;
  background: #121a2e;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.dashlogin h2 {
  margin-top: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 850;
}
.loginrow {
  display: flex;
  gap: 10px;
}
.loginrow input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid #334155;
  background: #0b1020;
  color: #fff;
  font-size: 14px;
  outline: none;
}
.loginrow input:focus {
  border-color: #6366f1;
}

/* ==========================================================================
   ADMIN EXECUTIVE DASHBOARD STYLES (MATCHING BASIC BU JHANSI)
   ========================================================================== */

.admin-login-box {
  max-width: 440px;
  margin: 40px auto;
  text-align: center;
}

.admin-login-box h1 {
  font-size: 26px;
  font-weight: 850;
  color: var(--ink);
  margin: 8px 0;
}

.admin-input-wrap {
  margin-bottom: 16px;
  text-align: left;
}

.admin-input-wrap label {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: #334155;
  margin-bottom: 6px;
}

.admin-input-wrap input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}

.admin-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.admin-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-title-area h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 850;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.admin-title-area p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Key Metrics Grid */
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.admin-stat-card span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-stat-card b {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--ink);
  margin: 6px 0 2px;
  line-height: 1;
}

.admin-stat-card small {
  font-size: 11px;
  color: #94a3b8;
}

/* Action Toolbar */
.admin-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-main-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-csv {
  background: #0f172a;
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-csv:hover { background: #1e293b; }

/* Filter & Search Bar */
.admin-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.search-box-input {
  flex: 2 1 280px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 11px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.filter-dropdowns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  flex: 1 1 360px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.filter-dropdowns select {
  flex: 1 1 170px;
  min-width: 0;
  max-width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: #ffffff;
  color: #334155;
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-dropdowns select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.admin-list-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

/* Submissions List & Cards */
.admin-sub-rows {
  display: grid;
  gap: 12px;
}

.admin-sub-card {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.admin-sub-card:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sub-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rank-pill-light {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  color: #334155;
  flex-shrink: 0;
}

.rank-top3 {
  background: #fef3c7;
  border-color: #fde68a;
  color: #b45309;
}

.sub-meta-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sub-meta-detail {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}

.sub-meta-detail strong {
  color: #1e293b;
}

.sub-score-right {
  text-align: right;
  flex-shrink: 0;
}

.score-total-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.score-total-val small {
  font-size: 12px;
  color: #94a3b8;
}

.score-chips-line {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  white-space: normal;
  line-height: 1.5;
  word-break: break-word;
}

.score-chips-line b {
  color: var(--ink);
}

/* Status Tags */
.status-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-approved { background: #dcfce7; color: #166534; }
.status-locked { background: #fef3c7; color: #92400e; }
.status-pptreleased { background: #ede9fe; color: #5b21b6; }

/* Detail Inspection Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 999;
  padding: 20px;
}

.modal-content-light {
  background: #ffffff;
  width: min(980px, 95vw);
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
}

.modal-head-light {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: #f8fafc;
}

.modal-rank-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.modal-title-main {
  font-size: 22px;
  font-weight: 850;
  color: var(--ink);
  margin: 0;
}

.modal-student-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.modal-close-x {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}

.modal-body-scroll {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot-light {
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-score-banner {
  background: linear-gradient(135deg, #f8faff 0%, #f1f5f9 100%);
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.modal-total-box {
  background: #0f172a;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  text-align: center;
  min-width: 120px;
}

.modal-total-box b { font-size: 36px; line-height: 1; display: block; }
.modal-total-box span { font-size: 11px; opacity: 0.7; }

.modal-rubric-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.rubric-chip-light {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.rubric-chip-light span { color: var(--muted); }
.rubric-chip-light b { color: var(--primary); }

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

.modal-section-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
}

.modal-section-card h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 6px;
}

.modal-section-card p {
  margin: 6px 0;
  line-height: 1.5;
  color: #334155;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (DESKTOP, TABLET & MOBILE)
   ========================================================================== */

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dashgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dashmain {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Medium Tablets & Mobile Landscape (<= 860px) */
@media (max-width: 860px) {
  .topbar, .admin-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px 18px;
  }
  .brand, .admin-brand {
    width: 100%;
    justify-content: space-between;
  }
  .nav-tabs, .admin-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  .nav-tab, .admin-nav-tab {
    flex: 1 1 calc(33.33% - 6px);
    min-width: 80px;
    justify-content: center;
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
  }
  .pill, .admin-badge-pill {
    align-self: flex-start;
  }
  .admin-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }
  .search-box-input {
    width: 100%;
    flex: 1 1 auto;
  }
  .filter-dropdowns {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .filter-dropdowns select {
    width: 100%;
    flex: 1 1 auto;
  }
  .admin-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .admin-main-btns {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .btn-csv, .admin-main-btns .btn, #reset {
    width: 100%;
    justify-content: center;
  }
  .modal-sections-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .modal-score-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 14px;
    padding: 16px;
  }
  .modal-total-box {
    width: 100%;
    min-width: unset;
  }
  .modal-rubric-chips {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashhead {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Smartphones & Small Tablets (<= 640px) */
@media (max-width: 640px) {
  .shell, .dashshell {
    padding: 12px;
  }
  .card, .admin-card-light {
    padding: 18px 14px;
    border-radius: 16px;
  }
  .brandStrip {
    padding: 10px 14px;
  }
  .brandStrip img:first-child {
    max-width: 180px;
  }
  .brandStrip img:last-child {
    width: 38px;
    height: 38px;
  }
  .admin-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .admin-title-area h1 {
    font-size: 20px;
  }
  .admin-stat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .admin-stat-card {
    padding: 14px 16px;
  }
  .admin-stat-card b {
    font-size: 26px;
  }
  .filter-dropdowns {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .filter-dropdowns select {
    width: 100%;
  }
  .admin-sub-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  .sub-card-left {
    align-items: flex-start;
    gap: 12px;
  }
  .rank-pill-light {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .sub-meta-title {
    font-size: 15px;
  }
  .sub-score-right {
    text-align: left;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .score-total-val {
    font-size: 20px;
  }
  .modal-content-light {
    width: 96vw;
    max-height: 94vh;
    border-radius: 16px;
  }
  .modal-head-light {
    padding: 14px 16px;
  }
  .modal-title-main {
    font-size: 18px;
  }
  .modal-body-scroll {
    padding: 14px 16px;
  }
  .modal-foot-light {
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .modal-foot-light div {
    flex-direction: column;
    width: 100%;
  }
  .modal-foot-light button {
    width: 100%;
  }
  .modal-rubric-chips {
    grid-template-columns: 1fr;
  }
  .dashgrid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric {
    padding: 14px 14px;
    border-radius: 14px;
  }
  .metric b {
    font-size: 24px;
  }
  .barrow {
    grid-template-columns: 110px 1fr 32px;
    gap: 8px;
    font-size: 11px;
  }
  .idea {
    grid-template-columns: 32px 1fr 50px;
    gap: 8px;
    padding: 10px 0;
  }
  .idea .rank {
    font-size: 15px;
  }
  .idea .score {
    font-size: 15px;
  }
  .dashhead h1 {
    font-size: 22px;
  }
  .dashlogin {
    margin: 20px auto;
    padding: 20px 16px;
    border-radius: 16px;
  }
  .loginrow {
    flex-direction: column;
    gap: 10px;
  }
  .loginrow input, .loginrow button {
    width: 100%;
  }
  .choices {
    grid-template-columns: 1fr;
  }
  .actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .nav-tab, .admin-nav-tab {
    flex: 1 1 calc(50% - 6px);
    font-size: 11px;
    padding: 7px 8px;
  }
}

/* Extra Small Phones (<= 400px) */
@media (max-width: 400px) {
  .dashgrid {
    grid-template-columns: 1fr;
  }
  .barrow {
    grid-template-columns: 90px 1fr 28px;
    font-size: 10px;
  }
  .nav-tab, .admin-nav-tab {
    flex: 1 1 100%;
  }
}
