/* Production-oriented visual system overrides. */
:root {
  --bg: #f3f5f7;
  --bg-soft: #f8fafb;
  --ink: #172126;
  --muted: #66747c;
  --line: #e1e7eb;
  --line-strong: #cbd5db;
  --card: #ffffff;
  --card-strong: #ffffff;
  --accent: #087f73;
  --accent-deep: #07645c;
  --accent-warm: #b7791f;
  --accent-cool: #2563eb;
  --danger: #b5473a;
  --shadow: 0 1px 2px rgba(19, 33, 40, 0.04), 0 8px 24px rgba(19, 33, 40, 0.06);
  --shadow-raised: 0 18px 44px rgba(19, 33, 40, 0.14);
}

*,
*::before,
*::after {
  letter-spacing: 0;
}

body {
  color: var(--ink);
  background: var(--bg);
}

button,
input,
select,
textarea {
  border-radius: 6px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.2);
  outline-offset: 2px;
}

/* Login — cyan accents (no harsh yellow) */
.login-screen {
  background: #050a14;
}

.login-brand .brand-mark {
  display: none;
}

.login-form-panel {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(8, 14, 26, 0.78);
}

.role-option,
.role-option.active,
.login-input-shell,
.login-submit {
  border-radius: 12px;
}

.login-submit {
  color: #0a1424;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.login-submit:hover {
  background: #f2f6fa;
}

.sidebar-brand-logo {
  display: block;
  width: 100%;
  max-width: 196px;
  height: auto;
  border-radius: 4px;
  background: #000;
}

.brand {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.brand > div {
  min-width: 0;
  padding-left: 2px;
}

.brand h1 {
  color: #ffd400;
  font-size: 15px;
}

.brand p {
  color: #9aabbd;
  text-transform: none;
}

/* Application shell */
.app-shell {
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  gap: 18px;
  overflow-y: auto;
  padding: 22px 16px 16px;
  color: #eff6f5;
  background: #18282c;
  border-right: 1px solid #263a3e;
}

.brand {
  min-height: 46px;
  gap: 11px;
  padding: 0 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand .brand-mark {
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 800;
}

.brand h1 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.3;
}

.brand p {
  color: #91a6a6;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.nav-list {
  gap: 3px;
}

.nav-group-label {
  margin: 13px 10px 5px;
  color: #7f9697;
  font-size: 10px;
  font-weight: 800;
}

.nav-group-label:first-child {
  margin-top: 0;
}

.nav-item {
  position: relative;
  min-height: 38px;
  padding: 9px 12px 9px 17px;
  border-radius: 6px;
  color: #b9c9c8;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  transition: color 140ms ease, background 140ms ease;
}

.nav-item::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 3px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: none;
}

.nav-item.active {
  color: #ffffff;
  background: #244044;
  transform: none;
}

.nav-item.active::before {
  background: #33b9aa;
}

.sidebar-note {
  margin-top: auto;
  padding: 14px 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
  color: #90a5a5;
  background: transparent;
}

.sidebar-note strong {
  margin-bottom: 5px;
  color: #d9e4e3;
  font-size: 11px;
}

.sidebar-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.sidebar-user {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 9px;
  padding: 13px 7px 0;
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #b7791f;
}

.sidebar-user-meta strong {
  color: #f2f7f6;
}

.sidebar-user-meta small {
  color: #8fa5a5;
}

.main-content {
  min-width: 0;
  padding: 0 34px 40px;
}

.hero.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  margin: 0 -34px 28px;
  padding: 20px 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.workspace-heading {
  min-width: 0;
}

.workspace-header .eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.workspace-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.workspace-context {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.workspace-header-meta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.system-state,
.workspace-date {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  align-items: center;
}

.system-state i {
  grid-row: 1 / 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a46f;
  box-shadow: 0 0 0 4px rgba(22, 164, 111, 0.1);
}

.system-state span,
.workspace-date span {
  color: var(--muted);
  font-size: 10px;
}

.system-state strong,
.workspace-date strong {
  font-size: 12px;
  font-weight: 700;
}

.section-panel {
  animation: system-rise 180ms ease;
}

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

/* Shared work surfaces */
.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(19, 33, 40, 0.04);
  backdrop-filter: none;
}

.highlight-card,
.demo-readiness-card {
  background: #ffffff;
}

.card-header {
  gap: 16px;
  margin-bottom: 17px;
}

.card-kicker {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.card h3 {
  font-size: 19px;
  line-height: 1.35;
}

.card-header .muted {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.65;
}

.two-columns,
.panel-grid {
  gap: 16px;
}

.status-pill,
.tag,
.profile-badge,
.mini-tag {
  border-radius: 4px;
}

.stat-block,
.timeline li,
.project-item,
.feedback-item,
.recommendation-item,
.provider-card,
.audit-item,
.course-item,
.output-block,
.result-status-card,
.digest-empty,
.digest-hero,
.digest-panel,
.record-detail-hero {
  border-radius: 7px;
  background: #f8fafb;
  box-shadow: none;
}

.primary-btn,
.ghost-btn,
.switch-btn,
.test-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.primary-btn svg,
.ghost-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.primary-btn {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(8, 127, 115, 0.16);
}

.primary-btn:hover {
  background: var(--accent-deep);
  box-shadow: 0 6px 14px rgba(8, 127, 115, 0.2);
  transform: none;
}

.ghost-btn,
.switch-btn {
  color: #344249;
  border: 1px solid var(--line-strong);
  background: #ffffff;
}

.ghost-btn:hover,
.switch-btn:hover,
.test-btn:hover {
  border-color: #96a6ae;
  background: #f7f9fa;
  transform: none;
}

.primary-btn:disabled,
.ghost-btn:disabled,
.switch-btn:disabled,
.test-btn:disabled {
  color: #9aa6ac;
  border-color: #e3e7e9;
  background: #f2f4f5;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

input,
select,
textarea,
.stack-form input,
.stack-form select,
.stack-form textarea {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: none;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #9faeb5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 127, 115, 0.1);
}

.toast {
  right: 22px;
  bottom: 22px;
  padding: 12px 14px;
  border-radius: 7px;
  background: #17282b;
  box-shadow: var(--shadow-raised);
  font-size: 12px;
}

/* Gradebook */
#gradebook {
  max-width: 1500px;
  margin: 0 auto;
}

.gradebook-workspace-card {
  display: grid;
  gap: 16px;
  margin: 0;
}

.gradebook-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 0 4px;
}

.gradebook-page-heading h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.gradebook-page-heading .muted {
  max-width: 720px;
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.65;
}

.gradebook-page-heading .header-actions {
  flex: 0 0 auto;
}

.gradebook-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px minmax(250px, auto);
  align-items: end;
  gap: 14px;
  margin: 0;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.gradebook-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.gradebook-toolbar label > span,
.gradebook-field-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.gradebook-toolbar select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
}

.gradebook-filter-status {
  display: grid;
  align-content: center;
  justify-items: end;
  min-height: 40px;
}

.gradebook-filter-status span {
  color: var(--muted);
  font-size: 10px;
}

.gradebook-filter-status strong {
  margin-top: 4px;
  font-size: 12px;
}

.gradebook-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 16px;
  align-items: stretch;
}

.gradebook-policy-form,
.gradebook-summary-surface,
.gradebook-roster-surface {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.gradebook-policy-form {
  display: grid;
  gap: 16px;
}

.gradebook-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.gradebook-section-heading > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0 10px;
  align-items: center;
}

.gradebook-section-heading .section-index {
  grid-row: 1 / 3;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--accent-deep);
  background: #e8f5f3;
  font-size: 10px;
  font-weight: 800;
}

.gradebook-section-heading strong {
  font-size: 14px;
}

.gradebook-section-heading small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.gradebook-weight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  gap: 9px;
}

.gradebook-weight-grid label,
.gradebook-threshold-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9fbfb;
}

.gradebook-weight-grid label > span,
.gradebook-threshold-grid label > span {
  color: #46545b;
  font-size: 11px;
  font-weight: 700;
}

.gradebook-weight-grid label > div,
.gradebook-threshold-grid label > div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.gradebook-weight-grid input,
.gradebook-threshold-grid input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  font-weight: 700;
}

.gradebook-weight-grid em,
.gradebook-threshold-grid em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.gradebook-policy-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.gradebook-threshold-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 160px));
  gap: 9px;
}

.gradebook-policy-action {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.gradebook-policy-action .muted {
  font-size: 10px;
  line-height: 1.4;
}

.gradebook-summary-surface {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 16px;
}

.gradebook-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--line);
}

.gradebook-summary > div {
  display: grid;
  align-content: center;
  min-height: 74px;
  padding: 12px 14px;
  background: #ffffff;
}

.gradebook-summary > div span {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 10px;
}

.gradebook-summary > div strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.gradebook-summary > div small {
  margin-top: 6px;
  color: #8a969c;
  font-size: 9px;
}

.gradebook-roster-surface {
  padding: 0;
  overflow: hidden;
}

.gradebook-roster-surface > .gradebook-section-heading {
  align-items: center;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.gradebook-roster-legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.gradebook-roster-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.gradebook-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.gradebook-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

.gradebook-table th,
.gradebook-table td {
  height: 54px;
  padding: 10px 13px;
  border-bottom: 1px solid #edf0f2;
  color: #445159;
  text-align: center;
  font-size: 12px;
}

.gradebook-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 40px;
  color: #6d7980;
  background: #f7f9fa;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.gradebook-table tbody tr:hover td {
  background: #f8fbfb;
}

.gradebook-table td:first-child,
.gradebook-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  text-align: left;
  background: #ffffff;
}

.gradebook-table th:first-child {
  z-index: 3;
  background: #f7f9fa;
}

.gradebook-table tbody tr:hover td:first-child {
  background: #f8fbfb;
}

.gradebook-table td:first-child strong {
  color: var(--ink);
  font-size: 12px;
}

.gradebook-table td:first-child span,
.gradebook-table td:nth-child(8) span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.gradebook-metric {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 24px;
  margin: 0 !important;
  border-radius: 4px;
  font-size: 11px !important;
  font-weight: 700;
}

.gradebook-metric-high {
  color: #176c49 !important;
  background: #ecf8f1;
}

.gradebook-metric-medium {
  color: #2458a6 !important;
  background: #eef5ff;
}

.gradebook-metric-low {
  color: #8a5b16 !important;
  background: #fff8e8;
}

.gradebook-final-score {
  color: var(--accent-deep);
  font-size: 15px;
}

.gradebook-score-excellent { color: #176c49; }
.gradebook-score-passing { color: #2458a6; }
.gradebook-score-warning { color: #a34a3d; }

.gradebook-status {
  min-width: 52px;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.gradebook-status-draft {
  color: #8a5b16;
  background: #fff8e8;
}

.gradebook-status-confirmed {
  color: #2458a6;
  background: #eef5ff;
}

.gradebook-status-archived {
  color: #18704a;
  background: #ecf8f1;
}

.gradebook-row-actions {
  gap: 5px;
}

.gradebook-row-actions .ghost-btn {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 10px;
}

.gradebook-empty {
  height: 180px !important;
  color: var(--muted) !important;
  text-align: center !important;
}

.gradebook-event-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(430px, 100vw);
  height: 100vh;
  margin: 0;
  overflow-y: auto;
  padding: 24px;
  border: 0;
  background: #ffffff;
  box-shadow: -18px 0 50px rgba(19, 33, 40, 0.18);
}

.gradebook-event-panel[hidden] {
  display: none;
}

.gradebook-event-panel .academic-section-heading {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.gradebook-event-list {
  gap: 10px;
}

.gradebook-event-list article {
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9fbfb;
}

.gradebook-event-list article strong {
  font-size: 12px;
}

.gradebook-event-list span,
.gradebook-event-list p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 1280px) {
  .gradebook-config-grid {
    grid-template-columns: 1fr;
  }

  .gradebook-summary {
    grid-template-columns: repeat(6, minmax(100px, 1fr));
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 10px 16px;
    overflow: visible;
  }

  .brand {
    min-height: auto;
    padding: 0 14px 0 0;
    border: 0;
  }

  .brand p,
  .nav-group-label,
  .sidebar-note,
  .sidebar-user-meta {
    display: none;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .nav-item {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 11px;
    white-space: nowrap;
  }

  .nav-item::before {
    display: none;
  }

  .sidebar-user {
    display: block;
    padding: 0 0 0 10px;
    border: 0;
  }

  .sidebar-avatar {
    display: none;
  }

  .main-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .hero.workspace-header {
    margin-right: -24px;
    margin-left: -24px;
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 820px) {
  .workspace-header-meta {
    display: none;
  }

  .gradebook-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .gradebook-page-heading .header-actions {
    justify-content: flex-start;
  }

  .gradebook-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .gradebook-filter-status {
    grid-column: 1 / -1;
    justify-items: start;
    min-height: 0;
    padding-top: 4px;
  }

  .gradebook-weight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gradebook-policy-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .gradebook-threshold-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gradebook-policy-action {
    justify-items: stretch;
  }

  .gradebook-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .sidebar {
    grid-template-columns: 40px minmax(0, 1fr) 36px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand {
    padding-right: 0;
  }

  .brand > div {
    display: none;
  }

  .brand .brand-mark {
    width: 36px;
    height: 36px;
  }

  .main-content {
    padding: 0 14px 28px;
  }

  .hero.workspace-header {
    min-height: 80px;
    margin: 0 -14px 20px;
    padding: 15px 14px;
  }

  .workspace-header h2 {
    font-size: 20px;
  }

  .workspace-context {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card {
    padding: 16px;
    border-radius: 8px;
  }

  .gradebook-page-heading h3 {
    font-size: 19px;
  }

  .gradebook-page-heading .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gradebook-page-heading .header-actions .primary-btn {
    grid-column: 1 / -1;
  }

  .gradebook-toolbar {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .gradebook-filter-status {
    grid-column: auto;
  }

  .gradebook-policy-form,
  .gradebook-summary-surface {
    padding: 14px;
  }

  .gradebook-section-heading {
    align-items: flex-start;
  }

  .gradebook-section-heading small {
    line-height: 1.45;
  }

  .gradebook-weight-grid,
  .gradebook-threshold-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gradebook-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gradebook-summary > div {
    min-height: 68px;
  }

  .gradebook-roster-surface > .gradebook-section-heading {
    padding: 14px;
  }

  .gradebook-roster-legend {
    display: none;
  }
}


/* Academic roster import experience */
.academic-roster-import {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #dce6f0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #f4f9f8 100%);
}
.academic-roster-import-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.academic-roster-import-head > div { display: grid; gap: 5px; }
.academic-roster-import-head span { color: #0f766e; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.academic-roster-import-head p { margin: 0; color: #667085; font-size: 13px; line-height: 1.55; }
.academic-roster-upload-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 16px; }
.academic-file-picker { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; overflow: hidden; color: #14532d; border: 1px solid #b8d9c3; border-radius: 8px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 700; white-space: nowrap; }
.academic-file-picker:hover { border-color: #2f8f63; background: #f4fbf6; }
.academic-file-picker input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.academic-file-picker:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.academic-roster-upload-row > strong { overflow: hidden; color: #344054; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.academic-roster-field-hint { margin: 12px 0 0; color: #667085; font-size: 12px; line-height: 1.6; }
.academic-roster-field-hint b { color: #344054; }
.academic-roster-confirm-row { margin: 14px 0 0; }
.academic-roster-manual-form { margin-top: 16px; background: #fff; }
.academic-roster-manual-form .academic-section-heading { margin-bottom: 2px; }
.academic-roster-preview { margin-top: 14px; border: 1px solid #dce6f0; border-radius: 10px; overflow: hidden; background: #fff; }
.academic-roster-preview-summary { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; }
.academic-roster-preview-summary strong { font-size: 13px; }
.academic-roster-preview-summary span { color: #667085; font-size: 12px; }
.academic-roster-preview-summary.is-ready { background: #effaf3; color: #166534; }
.academic-roster-preview-summary.has-error { background: #fff5f3; color: #b42318; }
.academic-roster-error-list { display: grid; gap: 6px; margin: 0; padding: 12px 16px 14px 30px; color: #b42318; border-top: 1px solid #f3d4cf; font-size: 12px; line-height: 1.45; }
.academic-roster-preview-table { overflow-x: auto; border-top: 1px solid #e6eaf0; }
.academic-roster-preview-table table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 12px; }
.academic-roster-preview-table th, .academic-roster-preview-table td { padding: 9px 12px; border-bottom: 1px solid #eef1f4; text-align: left; }
.academic-roster-preview-table th { color: #475467; background: #f8fafc; font-weight: 700; }
.academic-roster-preview-table td { color: #344054; }
.academic-roster-preview-table p { margin: 0; padding: 9px 12px; color: #667085; font-size: 12px; }
@media (max-width: 620px) {
  .academic-roster-import-head { display: grid; }
  .academic-roster-import-head .ghost-btn { justify-self: start; }
  .academic-roster-upload-row { grid-template-columns: auto 1fr; }
  .academic-roster-upload-row .primary-btn { grid-column: 1 / -1; width: 100%; }
  .academic-roster-preview-summary { display: grid; gap: 4px; }
}


/* Classroom visual question and rubric builders */
.classroom-builder { margin-top: 16px; padding: 16px; border: 1px solid #dce4e9; border-radius: 8px; background: #f8fafb; }
.classroom-builder-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.classroom-builder-heading > div { display: grid; gap: 3px; }
.classroom-builder-heading span { color: var(--accent); font-size: 11px; font-weight: 800; }
.classroom-builder-heading strong { color: #172126; font-size: 14px; }
.classroom-builder-heading p { margin: 0; color: #66747c; font-size: 12px; line-height: 1.5; }
.classroom-question-editor-list { display: grid; gap: 12px; }
.classroom-builder-empty { padding: 20px; border: 1px dashed #cbd5db; border-radius: 6px; color: #66747c; background: #fff; font-size: 12px; line-height: 1.6; text-align: center; }
.classroom-question-editor { padding: 14px; border: 1px solid #dce4e9; border-radius: 7px; background: #fff; }
.classroom-question-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #edf1f3; }
.classroom-question-editor-head > strong { color: #172126; font-size: 13px; }
.classroom-question-editor-actions { display: flex; gap: 4px; }
.classroom-question-editor-actions button { min-height: 28px; padding: 0 8px; border: 0; color: #66747c; background: transparent; font-size: 11px; cursor: pointer; }
.classroom-question-editor-actions button:hover:not(:disabled) { color: var(--accent); background: #edf8f6; }
.classroom-question-editor-actions button:last-child:hover { color: #b42318; background: #fff2f0; }
.classroom-question-editor-actions button:disabled { opacity: .35; cursor: default; }
.classroom-question-editor-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.classroom-question-editor-grid label { display: grid; gap: 6px; }
.classroom-question-editor-grid label > span, .classroom-short-answer > span { color: #344054; font-size: 11px; font-weight: 700; }
.classroom-question-editor-grid em { color: #98a2b3; font-style: normal; font-weight: 400; }
.classroom-question-title-field { grid-column: 1 / -1; }
.classroom-question-editor textarea { min-height: 62px; font-family: inherit; font-size: 13px; }
.classroom-question-options { display: grid; gap: 8px; margin-top: 12px; }
.classroom-question-option-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) 30px; align-items: center; gap: 8px; }
.classroom-answer-choice { display: grid !important; place-items: center; cursor: pointer; }
.classroom-answer-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.classroom-answer-choice span { width: 18px; height: 18px; border: 2px solid #b8c4ca; border-radius: 50%; background: #fff; }
.classroom-answer-choice input:checked + span { border: 5px solid var(--accent); }
.classroom-row-remove { width: 28px; height: 28px; padding: 0; border: 0; color: #98a2b3; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; }
.classroom-row-remove:hover:not(:disabled) { color: #b42318; background: #fff2f0; }
.classroom-row-remove:disabled { opacity: .25; cursor: default; }
.classroom-row-spacer { width: 28px; }
.classroom-option-add { margin: 10px 0 0 34px; min-height: 30px; padding: 0 10px; border: 1px dashed #9fb7b4; color: var(--accent-deep); background: #f3fbf9; font-size: 11px; cursor: pointer; }
.classroom-short-answer { display: grid; gap: 6px; }
.classroom-rubric-table-head, .classroom-rubric-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 42px; align-items: center; gap: 10px; }
.classroom-rubric-table-head { padding: 0 8px 7px; color: #66747c; font-size: 11px; font-weight: 700; }
.classroom-rubric-editor-list { display: grid; gap: 8px; }
.classroom-rubric-editor-row { padding: 8px; border: 1px solid #e3e9ed; border-radius: 6px; background: #fff; }
.classroom-weight-input { position: relative; display: block !important; }
.classroom-weight-input input { padding-right: 34px; }
.classroom-weight-input span { position: absolute; top: 50%; right: 12px; color: #66747c; transform: translateY(-50%); pointer-events: none; }
.classroom-rubric-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; margin-top: 10px; padding: 10px 12px; border-top: 1px solid #dce4e9; }
.classroom-rubric-total span { color: #475467; font-size: 12px; font-weight: 700; }
.classroom-rubric-total strong { color: #b42318; font-size: 18px; }
.classroom-rubric-total strong.is-valid { color: #087f5b; }
.classroom-rubric-total small { grid-column: 1 / -1; color: #66747c; font-size: 11px; text-align: right; }
.student-answer-text { display: grid; gap: 7px; }
.student-answer-text > span { color: #475467; font-size: 12px; font-weight: 700; }
.student-answer-text textarea { width: 100%; min-height: 100px; padding: 12px; border: 1px solid #cbd5db; border-radius: 6px; color: #172126; background: #fff; font: inherit; resize: vertical; }
@media (max-width: 720px) {
  .classroom-builder-heading { display: grid; }
  .classroom-builder-heading .ghost-btn { justify-self: start; }
  .classroom-question-editor-grid { grid-template-columns: 1fr; }
  .classroom-question-title-field { grid-column: auto; }
  .classroom-rubric-table-head { display: none; }
  .classroom-rubric-editor-row { grid-template-columns: minmax(0, 1fr) 96px 30px; }
}


/* Login stage motion — do NOT lock photo opacity (kenburns lives in styles.css) */
.login-hero-visual {
  animation: login-visual-rise 0.85s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .login-hero-visual {
    animation: none;
  }
}

@keyframes login-visual-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
