/* ─── Grade page glow polish ─────────────────────────────────────────────── */

/* Title shimmer */
#grade-page h1.font-display {
  background: linear-gradient(118deg, rgb(248 250 252) 0%, rgb(165 243 253) 42%, rgb(186 230 253) 72%, rgb(147 197 253) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.20));
  background-size: 200% 200%;
  animation: title-shimmer 8s ease-in-out infinite alternate;
}

html.doc-background-paused #grade-page h1.font-display {
  animation-play-state: paused;
}

/* Eyebrow label glow */
#grade-page p.text-xs.uppercase {
  text-shadow:
    0 0 18px rgba(34, 211, 238, 0.45),
    0 0 36px rgba(56, 189, 248, 0.20);
}

/* Hero icon — stronger ambient glow */
#grade-page .hero-icon {
  box-shadow:
    0 0 3px 1px rgba(56, 189, 248, 0.14),
    0 0 44px -6px rgba(34, 211, 238, 0.38),
    0 0 88px -24px rgba(59, 130, 246, 0.22);
}

/* Glass panel — ambient cyan/blue light */
#grade-page #grade-form.glass-panel {
  border-color: rgba(56, 189, 248, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 28px 56px -14px rgba(0, 0, 0, 0.5),
    0 0 64px -18px rgba(34, 211, 238, 0.16),
    0 0 100px -30px rgba(59, 130, 246, 0.10);
}

/* form-glow::before — higher opacity */
#grade-page #grade-form.form-glow::before {
  opacity: 0.78;
}

/* Textarea — cyan tint */
#grade-page #grade-prompt {
  border-color: rgba(56, 189, 248, 0.16);
  background: linear-gradient(168deg, rgba(8, 20, 42, 0.9) 0%, rgba(4, 12, 30, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(56, 189, 248, 0.08),
    0 0 40px -12px rgba(34, 211, 238, 0.12);
  caret-color: rgb(34, 211, 238);
}

#grade-page #grade-prompt::placeholder {
  color: rgba(165, 230, 252, 0.48);
}

#grade-page #grade-prompt:focus {
  border-color: rgba(34, 211, 238, 0.32);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.22),
    inset 0 1px 0 rgba(56, 189, 248, 0.10),
    0 0 48px -8px rgba(34, 211, 238, 0.22);
  outline: none;
}
#grade-page #grade-prompt:focus-visible {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 0 2px rgba(34, 211, 238, 0.4),
    inset 0 1px 0 rgba(56, 189, 248, 0.10),
    0 0 48px -8px rgba(34, 211, 238, 0.22);
  outline: none;
}
#grade-page #grade-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(52, 211, 153, 0.55),
    0 4px 28px -4px rgba(16, 185, 129, 0.55);
}

/* Grade button */
#grade-page #grade-btn {
  background: linear-gradient(135deg, rgba(16,185,129,0.9), rgba(5,150,105,0.9));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 4px 28px -4px rgba(16, 185, 129, 0.55),
    0 16px 52px -12px rgba(52, 211, 153, 0.35);
}

#grade-page #grade-btn:hover:not(:disabled) {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.17) inset,
    0 10px 40px -6px rgba(16, 185, 129, 0.62),
    0 22px 56px -12px rgba(52, 211, 153, 0.42);
}

/* Drop zone card — ambient glow at rest */
#grade-page .drop-zone[data-accent="emerald"] {
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.10) inset, 0 0 32px -8px rgba(16, 185, 129, 0.18);
}
#grade-page .drop-zone[data-accent="cyan"] {
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.10) inset, 0 0 32px -8px rgba(6, 182, 212, 0.18);
}
#grade-page .drop-zone[data-accent="amber"] {
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.10) inset, 0 0 32px -8px rgba(245, 158, 11, 0.14);
}
#grade-page .drop-zone[data-accent="violet"] {
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.10) inset, 0 0 32px -8px rgba(139, 92, 246, 0.18);
}

/* Drop zone icon boxes — ambient glow at rest */
#grade-page .drop-zone[data-accent="emerald"] .drop-zone-icon {
  box-shadow: 0 0 0 0.5px rgba(16, 185, 129, 0.15), 0 0 18px -2px rgba(16, 185, 129, 0.40);
}
#grade-page .drop-zone[data-accent="cyan"] .drop-zone-icon {
  box-shadow: 0 0 0 0.5px rgba(6, 182, 212, 0.15), 0 0 18px -2px rgba(6, 182, 212, 0.38);
}
#grade-page .drop-zone[data-accent="amber"] .drop-zone-icon {
  box-shadow: 0 0 0 0.5px rgba(245, 158, 11, 0.15), 0 0 18px -2px rgba(245, 158, 11, 0.32);
}
#grade-page .drop-zone[data-accent="violet"] .drop-zone-icon {
  box-shadow: 0 0 0 0.5px rgba(139, 92, 246, 0.15), 0 0 18px -2px rgba(139, 92, 246, 0.38);
}

/* Feature cards — base glow + per-card hover */
#grade-page .feature-card {
  box-shadow: 0 0 44px -14px rgba(16, 185, 129, 0.08);
}

#grade-page .feature-card:hover {
  transform: translateY(-2px);
}

#grade-page .grid > .feature-card:nth-child(1):hover {
  border-color: rgba(16, 185, 129, 0.24);
  box-shadow: 0 14px 44px -12px rgba(16, 185, 129, 0.22);
}
#grade-page .grid > .feature-card:nth-child(2):hover {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: 0 14px 44px -12px rgba(34, 211, 238, 0.20);
}
#grade-page .grid > .feature-card:nth-child(3):hover {
  border-color: rgba(139, 92, 246, 0.22);
  box-shadow: 0 14px 44px -12px rgba(139, 92, 246, 0.20);
}

/* Feature card icon box glows */
#grade-page .grid > .feature-card:nth-child(1) > div:first-child {
  box-shadow: 0 0 0 0.5px rgba(16, 185, 129, 0.12), 0 0 10px -1px rgba(16, 185, 129, 0.28);
}
#grade-page .grid > .feature-card:nth-child(2) > div:first-child {
  box-shadow: 0 0 0 0.5px rgba(34, 211, 238, 0.12), 0 0 10px -1px rgba(34, 211, 238, 0.25);
}
#grade-page .grid > .feature-card:nth-child(3) > div:first-child {
  box-shadow: 0 0 0 0.5px rgba(139, 92, 246, 0.12), 0 0 10px -1px rgba(139, 92, 246, 0.25);
}

/* Entrance animations */
body:not(.page-entered) #grade-page .flex.justify-center             { animation: hero-in 0.28s ease   0ms both; }
body:not(.page-entered) #grade-page > p.text-center                  { animation: hero-in 0.28s ease  80ms both; }
body:not(.page-entered) #grade-page #grade-form                      { animation: hero-in 0.28s ease 180ms both; }
body:not(.page-entered) #grade-page .mt-10 .feature-card:nth-child(1){ animation: hero-in 0.28s ease 340ms both; }
body:not(.page-entered) #grade-page .mt-10 .feature-card:nth-child(2){ animation: hero-in 0.28s ease 400ms both; }
body:not(.page-entered) #grade-page .mt-10 .feature-card:nth-child(3){ animation: hero-in 0.28s ease 460ms both; }

/* Feature-card icon settle on first paint (entrance only — never on hover) */
@keyframes icon-settle-in {
  from { transform: scale(0.5); }
  to   { transform: scale(1); }
}

body:not(.page-entered) #grade-page .mt-10 .feature-card:nth-child(1) > div:first-child {
  animation: icon-settle-in 0.20s cubic-bezier(0.34, 1.56, 0.64, 1) 420ms both;
}
body:not(.page-entered) #grade-page .mt-10 .feature-card:nth-child(2) > div:first-child {
  animation: icon-settle-in 0.20s cubic-bezier(0.34, 1.56, 0.64, 1) 480ms both;
}
body:not(.page-entered) #grade-page .mt-10 .feature-card:nth-child(3) > div:first-child {
  animation: icon-settle-in 0.20s cubic-bezier(0.34, 1.56, 0.64, 1) 540ms both;
}

/* ─── Drop zones ─────────────────────────────────────────────────────────── */
.drop-zone {
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.drop-zone.drag-over {
  transform: scale(1.02);
}
.drop-zone[data-accent="emerald"].drag-over {
  border-color: rgba(16,185,129,0.65) !important;
  background-color: rgba(16,185,129,0.10) !important;
}
.drop-zone[data-accent="cyan"].drag-over {
  border-color: rgba(6,182,212,0.65) !important;
  background-color: rgba(6,182,212,0.10) !important;
}
.drop-zone[data-accent="amber"].drag-over {
  border-color: rgba(245,158,11,0.65) !important;
  background-color: rgba(245,158,11,0.08) !important;
}
.drop-zone[data-accent="violet"].drag-over {
  border-color: rgba(139,92,246,0.65) !important;
  background-color: rgba(139,92,246,0.10) !important;
}

.drop-zone.has-file {
  border-style: solid;
}
.drop-zone[data-accent="emerald"].has-file { border-color: rgba(16,185,129,0.40); }
.drop-zone[data-accent="cyan"].has-file    { border-color: rgba(6,182,212,0.40);  }
.drop-zone[data-accent="amber"].has-file   { border-color: rgba(245,158,11,0.40); }
.drop-zone[data-accent="violet"].has-file  { border-color: rgba(139,92,246,0.40); }

.drop-zone.has-file .drop-zone-icon {
  scale: 0.9;
}

/* Hover sync: description text translates with the icon's hover lift */
.drop-zone-desc {
  transition: transform 0.20s ease;
}
.drop-zone:hover .drop-zone-desc {
  transform: translateY(-1px);
}

/* Has-file checkmark badge — fades in over the icon box top-right corner */
.drop-zone-icon { position: relative; }

.drop-zone.has-file .drop-zone-icon::after {
  content: '✓';
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgb(16 185 129);
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 0 0 2px rgb(2 6 23),
    0 0 14px -2px rgba(16, 185, 129, 0.5);
  opacity: 0;
  transform: scale(0.5);
  animation: drop-zone-check-in 0.30s 0.08s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes drop-zone-check-in {
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .drop-zone-desc { transition: none; }
  .drop-zone:hover .drop-zone-desc { transform: none; }
  .drop-zone.has-file .drop-zone-icon::after {
    animation: none;
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── Running / progress strip ───────────────────────────────────────────── */
.progress-strip {
  border: 1px solid rgba(34,211,238,0.12);
  background: rgba(34,211,238,0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Inline run status — sits next to the generate button */
.run-status-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* `.run-status-inline { display:flex }` (above, sheet 04) loads after Tailwind's
   `.hidden { display:none }` and ties on specificity, so it would win on source order
   and keep the idle indicator in the flex row (flex:1 1 0 pushes the Generate button
   right + the spinner animates invisibly). This guard restores the .hidden toggle. */
.run-status-inline.hidden {
  display: none;
}

.run-status-inline:not(.hidden) {
  opacity: 1;
}

.run-status-inline #job-log-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Generation spinner (dual orbital rings + pulsing core) ────────────── */
.gen-spinner {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
}

.gen-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.gen-spinner-ring--1 {
  border-top-color: rgba(34, 211, 238, 0.9);
  border-right-color: rgba(34, 211, 238, 0.2);
  animation: gen-spin-1 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.gen-spinner-ring--2 {
  inset: 2px;
  border-bottom-color: rgba(99, 102, 241, 0.75);
  border-left-color: rgba(99, 102, 241, 0.15);
  animation: gen-spin-2 1.4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.gen-spinner-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: rgb(34 211 238);
  box-shadow: 0 0 6px 1px rgba(34, 211, 238, 0.5);
  animation: gen-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes gen-spin-1 {
  to { transform: rotate(360deg); }
}

@keyframes gen-spin-2 {
  to { transform: rotate(-360deg); }
}

@keyframes gen-dot-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.3); }
}


/* ── Error panel + account notice ──────────────────────────────────────────────
   Both live inside #gen-form, directly under the submit button, so a failure or
   a precondition lands where the user is already looking. `.hidden` toggles them,
   so — the documented .hidden-vs-component-rule trap — `display` must sit on
   `:not(.hidden)`; a bare `.error-panel { display: flex }` would tie Tailwind's
   `.hidden { display: none }` on specificity and win on source order, leaving a
   permanently-visible empty red box. */
.error-panel {
  border-radius: 1rem;
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(69, 10, 10, 0.4);
  padding: 0.875rem 1rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgb(252 165 165);
  backdrop-filter: blur(4px);
}
.error-panel:not(.hidden) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.error-panel-action {
  display: inline-flex;
  align-items: center;
  border-radius: 0.6rem;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(239, 68, 68, 0.14);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(254 202 202);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.error-panel-action:hover {
  background: rgba(239, 68, 68, 0.24);
  border-color: rgba(248, 113, 113, 0.65);
}
.error-panel-action:focus-visible {
  outline: 2px solid rgb(248 113 113);
  outline-offset: 2px;
}

/* ── /grade wizard (roadmap Plan 9) ───────────────────────────────────────────────
   Three steps above the upload zones: what was sat, who sat it, the scans. */
#grade-form [hidden] { display: none !important; }
.grade-wizard { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
@media (min-width: 900px) { .grade-wizard { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grade-step { min-width: 0; margin: 0; padding: 0.8rem 0.9rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 1rem; background: rgba(2, 6, 23, 0.45); }
.grade-step-title { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.25rem; font-size: 0.86rem; font-weight: 600; color: #fff; }
.grade-step-num { display: inline-flex; align-items: center; justify-content: center; width: 1.4rem; height: 1.4rem; border-radius: 999px; background: rgba(16, 185, 129, 0.18); color: rgb(110, 231, 183); font-size: 0.72rem; }
.grade-seg { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.grade-seg-opt { position: relative; display: inline-flex; }
.grade-seg-opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.grade-seg-opt span { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.3rem 0.7rem; border-radius: 0.65rem; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); color: rgb(203, 213, 225); font-size: 0.78rem; }
.grade-seg-opt input:checked + span { border-color: rgba(52, 211, 153, 0.6); background: rgba(16, 185, 129, 0.14); color: #fff; }
.grade-seg-opt input:focus-visible + span { outline: 2px solid rgb(52, 211, 153); outline-offset: 2px; }
.grade-library, .grade-class { margin-top: 0.6rem; display: grid; gap: 0.45rem; }
.grade-select { width: 100%; min-height: 2.5rem; padding: 0.35rem 0.6rem; border-radius: 0.65rem; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(2, 6, 23, 0.8); color: rgb(226, 232, 240); font-size: 0.82rem; }
.grade-select:disabled { opacity: 0.5; }
.grade-hint { margin-top: 0.5rem; font-size: 0.76rem; line-height: 1.5; color: rgb(148, 163, 184); }
.grade-hint a { color: rgb(110, 231, 183); text-decoration: underline; text-underline-offset: 2px; }
.grade-preflight { margin-top: 0.55rem; font-size: 0.8rem; font-weight: 600; color: rgb(110, 231, 183); }
.grade-preflight:empty { display: none; }
.grade-preflight.is-warn { color: rgb(252, 211, 77); }

/* ── /grade/results and run history (roadmap Plan 9) ─────────────────────────────── */
.grade-res { padding-top: 0.5rem; }
.grade-res-back a { font-size: 0.82rem; color: rgb(148, 163, 184); }
.grade-res-back a:hover { color: rgb(226, 232, 240); }
.grade-res-head { margin-top: 0.75rem; }
.grade-res-eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(52, 211, 153, 0.8); }
.grade-res-title { margin-top: 0.25rem; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.grade-res-sub { margin-top: 0.3rem; font-size: 0.86rem; color: rgb(148, 163, 184); }
.grade-res-actions { margin-top: 0.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.grade-res-btn { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.4rem 0.9rem; border-radius: 0.7rem; border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(16, 185, 129, 0.1); color: rgb(167, 243, 208); font-size: 0.84rem; font-weight: 600; }
.grade-res-btn:hover { background: rgba(16, 185, 129, 0.18); }
.grade-res-btn:disabled { opacity: 0.5; }
.grade-res-note { margin-top: 0.5rem; font-size: 0.82rem; color: rgb(203, 213, 225); }
.grade-res-note:empty, .grade-res-status:empty { display: none; }
.grade-res-card { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(2, 6, 23, 0.5); }
.grade-res-card h2 { font-size: 1rem; font-weight: 600; color: #fff; }
.grade-res-hint { margin-top: 0.3rem; font-size: 0.8rem; line-height: 1.5; color: rgb(148, 163, 184); }
.grade-res-scroll { margin-top: 0.6rem; overflow-x: auto; }
.grade-res-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.grade-res-table th { padding: 0.4rem 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); text-align: left; font-size: 0.72rem; font-weight: 600; color: rgb(148, 163, 184); }
.grade-res-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: rgb(226, 232, 240); vertical-align: middle; }
.grade-res-table td a { color: rgb(110, 231, 183); }
.grade-res-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.grade-res-table input, .grade-res-table select { width: 100%; min-width: 5rem; min-height: 2.25rem; padding: 0.25rem 0.45rem; border-radius: 0.5rem; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(2, 6, 23, 0.8); color: rgb(226, 232, 240); font-size: 0.82rem; }
.grade-res-review { margin-top: 0.6rem; display: grid; gap: 0.5rem; }
.grade-res-review li { padding: 0.6rem 0.7rem; border-radius: 0.7rem; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); }
.grade-res-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; font-size: 0.82rem; color: rgb(226, 232, 240); }
.grade-res-review p { margin-top: 0.35rem; font-size: 0.8rem; line-height: 1.5; color: rgb(148, 163, 184); }
.grade-res-tag { padding: 0.1rem 0.4rem; border-radius: 0.4rem; background: rgba(148, 163, 184, 0.12); color: rgb(148, 163, 184); font-size: 0.7rem; }
.grade-res-tag--warn { background: rgba(245, 158, 11, 0.14); color: rgb(252, 211, 77); }
.grade-res-fix { margin-left: auto; min-height: 2rem; padding: 0.2rem 0.7rem; border-radius: 0.5rem; border: 1px solid rgba(52, 211, 153, 0.35); background: transparent; color: rgb(110, 231, 183); font-size: 0.74rem; }
.grade-res-row-actions { margin-top: 0.8rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.grade-res-status { font-size: 0.82rem; color: rgb(203, 213, 225); }
.grade-res-remove { min-width: 2.25rem; min-height: 2.25rem; border: 0; background: none; color: rgb(148, 163, 184); font-size: 1.1rem; }
.grade-res-open { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.4rem 1rem; border-radius: 0.7rem; border: 1px solid rgba(52, 211, 153, 0.5); background: rgba(16, 185, 129, 0.2); color: #fff; font-size: 0.86rem; font-weight: 600; }
.grade-runs { margin-top: 1.25rem; }
.grade-runs-title { font-size: 0.95rem; font-weight: 600; color: #fff; }
.grade-runs-list { margin-top: 0.5rem; display: grid; gap: 0.35rem; }
.grade-runs-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.6rem; border-radius: 0.6rem; background: rgba(255, 255, 255, 0.03); font-size: 0.84rem; }
.grade-runs-list a { color: rgb(110, 231, 183); }
.grade-runs-list span { color: rgb(148, 163, 184); font-size: 0.76rem; font-variant-numeric: tabular-nums; }

/* ▼▼ LIGHT THEME — GENERATED by scripts/build_light_theme.py from the rules above. Do not edit by hand: run the builder. Hand tuning goes in 36-theme-light.css. ▼▼ */
html[data-theme="light"] #grade-page h1.font-display{background-image:linear-gradient(118deg, rgb(38 66 94) 0%, rgb(0 111 125) 42%, rgb(1 87 132) 72%, rgb(0 63 133) 100%);filter:none}
html[data-theme="light"] #grade-page p.text-xs.uppercase{text-shadow:none}
html[data-theme="light"] #grade-page .hero-icon{box-shadow:0px 13px 44px -6px rgb(15 23 42/0.084),0px 26px 88px -24px rgb(15 23 42/0.05)}
html[data-theme="light"] #grade-page #grade-form.glass-panel{box-shadow:inset 0px 0px 0px 1px rgb(15 23 42/0.12),0px 28px 56px -14px rgb(15 23 42/0.16),0px 19px 64px -18px rgb(15 23 42/0.05),0px 30px 100px -30px rgb(15 23 42/0.05)}
html[data-theme="light"] #grade-page #grade-prompt{background-image:linear-gradient(168deg, rgb(245 247 250/0.9) 0%, rgb(248 249 252/0.94) 100%);box-shadow:inset 0px 1px rgb(15 23 42/0.03),0px 12px 40px -12px rgb(15 23 42/0.05);caret-color:rgb(6 107 122)}
html[data-theme="light"] #grade-page #grade-prompt::placeholder{color:rgb(1 81 109/0.85)}
html[data-theme="light"] #grade-page #grade-prompt:focus{box-shadow:0px 0px 0px 1px rgb(14 158 180/0.374),inset 0px 1px rgb(15 23 42/0.032),0px 14px 48px -8px rgb(15 23 42/0.05)}
html[data-theme="light"] #grade-page #grade-prompt:focus-visible{box-shadow:0px 0px 0px 2px rgb(14 158 180/0.55),inset 0px 1px rgb(15 23 42/0.032),0px 14px 48px -8px rgb(15 23 42/0.05)}
html[data-theme="light"] #grade-page #grade-btn:focus-visible{box-shadow:0px 0px 0px 2px rgb(35 159 114/0.55),0px 4px 28px -4px rgb(15 23 42/0.176)}
html[data-theme="light"] #grade-page #grade-btn{box-shadow:inset 0px 0px 0px 1px rgb(15 23 42/0.16),0px 4px 28px -4px rgb(15 23 42/0.176),0px 16px 52px -12px rgb(15 23 42/0.112)}
html[data-theme="light"] #grade-page #grade-btn:hover:not(:disabled){box-shadow:inset 0px 0px 0px 1px rgb(15 23 42/0.16),0px 10px 40px -6px rgb(15 23 42/0.198),0px 22px 56px -12px rgb(15 23 42/0.134)}
html[data-theme="light"] #grade-page .drop-zone[data-accent="emerald"]{box-shadow:inset 0px 0px 0px 1px rgb(15 178 124/0.17),0px 10px 32px -8px rgb(15 23 42/0.05)}
html[data-theme="light"] #grade-page .drop-zone[data-accent="cyan"]{box-shadow:inset 0px 0px 0px 1px rgb(10 159 184/0.17),0px 10px 32px -8px rgb(15 23 42/0.05)}
html[data-theme="light"] #grade-page .drop-zone[data-accent="amber"]{box-shadow:inset 0px 0px 0px 1px rgb(184 119 10/0.17),0px 10px 32px -8px rgb(15 23 42/0.05)}
html[data-theme="light"] #grade-page .drop-zone[data-accent="violet"]{box-shadow:inset 0px 0px 0px 1px rgb(63 10 184/0.17),0px 10px 32px -8px rgb(15 23 42/0.05)}
html[data-theme="light"] #grade-page .drop-zone[data-accent="emerald"] .drop-zone-icon{box-shadow:0px 0px 0px 0.5px rgb(15 178 124/0.255),0px 5px 18px -2px rgb(15 23 42/0.088)}
html[data-theme="light"] #grade-page .drop-zone[data-accent="cyan"] .drop-zone-icon{box-shadow:0px 0px 0px 0.5px rgb(10 159 184/0.255),0px 5px 18px -2px rgb(15 23 42/0.084)}
html[data-theme="light"] #grade-page .drop-zone[data-accent="amber"] .drop-zone-icon{box-shadow:0px 0px 0px 0.5px rgb(184 119 10/0.255),0px 5px 18px -2px rgb(15 23 42/0.07)}
html[data-theme="light"] #grade-page .drop-zone[data-accent="violet"] .drop-zone-icon{box-shadow:0px 0px 0px 0.5px rgb(63 10 184/0.255),0px 5px 18px -2px rgb(15 23 42/0.084)}
html[data-theme="light"] #grade-page .feature-card{box-shadow:0px 13px 44px -14px rgb(15 23 42/0.05)}
html[data-theme="light"] #grade-page .grid > .feature-card:nth-child(1):hover{box-shadow:0px 14px 44px -12px rgb(15 23 42/0.07)}
html[data-theme="light"] #grade-page .grid > .feature-card:nth-child(2):hover{box-shadow:0px 14px 44px -12px rgb(15 23 42/0.064)}
html[data-theme="light"] #grade-page .grid > .feature-card:nth-child(3):hover{box-shadow:0px 14px 44px -12px rgb(15 23 42/0.064)}
html[data-theme="light"] #grade-page .grid > .feature-card:nth-child(1) > div:first-child{box-shadow:0px 0px 0px 0.5px rgb(15 178 124/0.204),0px 3px 10px -1px rgb(15 23 42/0.062)}
html[data-theme="light"] #grade-page .grid > .feature-card:nth-child(2) > div:first-child{box-shadow:0px 0px 0px 0.5px rgb(14 158 180/0.204),0px 3px 10px -1px rgb(15 23 42/0.055)}
html[data-theme="light"] #grade-page .grid > .feature-card:nth-child(3) > div:first-child{box-shadow:0px 0px 0px 0.5px rgb(63 10 184/0.204),0px 3px 10px -1px rgb(15 23 42/0.055)}
html[data-theme="light"] .drop-zone.has-file .drop-zone-icon::after{color:rgb(51 63 82);box-shadow:0px 0px 0px 2px rgb(16 47 178/0.55),0px 4px 14px -2px rgb(15 23 42/0.11)}
html[data-theme="light"] .gen-spinner-dot{box-shadow:none}
html[data-theme="light"] .error-panel{background-color:rgb(247 239 239/0.4);color:rgb(131 1 1)}
html[data-theme="light"] .error-panel-action{color:rgb(133 0 0)}
html[data-theme="light"] .grade-step{border-color:rgb(15 23 42/0.112);background-color:rgb(250 251 252/0.45)}
html[data-theme="light"] .grade-step-title{color:rgb(51 63 82)}
html[data-theme="light"] .grade-step-num{color:rgb(16 111 73)}
html[data-theme="light"] .grade-seg-opt span{border-color:rgb(15 23 42/0.14);background-color:rgb(15 23 42/0.03);color:rgb(48 65 85)}
html[data-theme="light"] .grade-seg-opt input:checked + span{color:rgb(51 63 82)}
html[data-theme="light"] .grade-select{border-color:rgb(15 23 42/0.14);background-color:rgb(250 251 252/0.8);color:rgb(44 63 88)}
html[data-theme="light"] .grade-hint{color:rgb(61 75 94)}
html[data-theme="light"] .grade-hint a{color:rgb(16 111 73)}
html[data-theme="light"] .grade-preflight{color:rgb(16 111 73)}
html[data-theme="light"] .grade-preflight.is-warn{color:rgb(126 96 0)}
html[data-theme="light"] .grade-res-back a{color:rgb(61 75 94)}
html[data-theme="light"] .grade-res-back a:hover{color:rgb(44 63 88)}
html[data-theme="light"] .grade-res-eyebrow{color:rgb(17 86 61/0.85)}
html[data-theme="light"] .grade-res-title{color:rgb(51 63 82)}
html[data-theme="light"] .grade-res-sub{color:rgb(61 75 94)}
html[data-theme="light"] .grade-res-btn{color:rgb(13 112 66)}
html[data-theme="light"] .grade-res-note{color:rgb(48 65 85)}
html[data-theme="light"] .grade-res-card{border-color:rgb(15 23 42/0.112);background-color:rgb(250 251 252/0.5)}
html[data-theme="light"] .grade-res-card h2{color:rgb(51 63 82)}
html[data-theme="light"] .grade-res-hint{color:rgb(61 75 94)}
html[data-theme="light"] .grade-res-table th{border-bottom-color:rgb(15 23 42/0.112);color:rgb(61 75 94)}
html[data-theme="light"] .grade-res-table td{border-bottom-color:rgb(15 23 42/0.07);color:rgb(44 63 88)}
html[data-theme="light"] .grade-res-table td a{color:rgb(16 111 73)}
html[data-theme="light"] .grade-res-table input,html[data-theme="light"] .grade-res-table select{border-color:rgb(15 23 42/0.14);background-color:rgb(250 251 252/0.8);color:rgb(44 63 88)}
html[data-theme="light"] .grade-res-review li{border-color:rgb(15 23 42/0.098);background-color:rgb(15 23 42/0.02)}
html[data-theme="light"] .grade-res-review-head{color:rgb(44 63 88)}
html[data-theme="light"] .grade-res-review p{color:rgb(61 75 94)}
html[data-theme="light"] .grade-res-tag{color:rgb(61 75 94)}
html[data-theme="light"] .grade-res-tag--warn{color:rgb(126 96 0)}
html[data-theme="light"] .grade-res-fix{color:rgb(16 111 73)}
html[data-theme="light"] .grade-res-status{color:rgb(48 65 85)}
html[data-theme="light"] .grade-res-remove{color:rgb(61 75 94)}
html[data-theme="light"] .grade-res-open{color:rgb(51 63 82)}
html[data-theme="light"] .grade-runs-title{color:rgb(51 63 82)}
html[data-theme="light"] .grade-runs-list li{background-color:rgb(15 23 42/0.03)}
html[data-theme="light"] .grade-runs-list a{color:rgb(16 111 73)}
html[data-theme="light"] .grade-runs-list span{color:rgb(61 75 94)}
/* ▲▲ LIGHT THEME END ▲▲ */
