/* Shared visual layer. Grading, permission and submission states stay in their modules. */
.schedule-fields { border: 0; padding: 0; margin: 16px 0; min-width: 0; }
.schedule-common { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 14px; background: var(--bg); border-radius: 8px; }
.schedule-common .field { flex: 1 1 160px; min-width: 0; margin: 0; font-size: .8125rem; }
.schedule-selection { margin: 8px 0; gap: 4px; }
.schedule-row { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 10px; }
.schedule-exam { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.schedule-exam input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--teal); }
.schedule-exam strong, .schedule-exam small { display: block; }
.schedule-exam small { color: var(--muted); font-size: .75rem; }
.schedule-row .field { margin: 0; font-size: .8125rem; }
.schedule-save { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.schedule-empty { padding: 16px 0; }
:root {
  --navy: #253f3d;
  --navy2: #1a3331;
  --ink: #263735;
  --muted: #657571;
  --teal: #24766b;
  --line: #e1e7e3;
  --bg: #f7f9f7;
  --radius: 12px;
}
.shell { grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { background: #fff; color: var(--ink); padding: 28px 16px 20px; gap: 28px; overflow-y: auto; }
.sidebar .brand { color: var(--ink); padding: 0 12px; }
.sidebar .mark { background: var(--teal); color: white; border-radius: 10px; }
.sidebar nav { gap: 20px; }
.student-shell .sidebar nav { gap: 8px; }
.sidebar .navitem { color: #52645e; border-radius: 8px; padding: 10px 12px; min-height: 44px; gap: 12px; font-size: .875rem; }
.sidebar .navitem:hover { background: #f3f6f3; color: var(--ink); }
.sidebar .navitem.active { background: #eaf3ed; color: #235c4c; box-shadow: none; font-weight: 700; }
.sidebar .navitem .icon { width: 18px; height: 18px; }
.nav-group { display: grid; gap: 3px; }
.nav-group-label { padding: 0 12px 5px; font-size: .6875rem; color: var(--muted); font-weight: 650; letter-spacing: .04em; }
.sidebar-bottom { padding-top: 20px; border-top: 1px solid var(--line); }
.profile { padding: 0 8px; }
.profile strong { color: var(--ink); }
.profile small { color: var(--muted); }
.profile .avatar { background: #f1f5f1; color: var(--teal); border-color: var(--line); border-radius: 10px; }
.topbar { height: 66px; background: var(--bg); border-bottom: 0; padding: 0 40px; }
.breadcrumb { font-size: .8125rem; }
.breadcrumb > span { padding: 0 12px; color: #a5afa9; }
.content { max-width: 1220px; padding: 30px 40px 56px; }
.page-heading { align-items: center; margin-bottom: 28px; gap: 16px; }
.page-heading h1 { font-size: 1.75rem; letter-spacing: -.055em; font-weight: 750; }
.page-heading p { margin-top: 7px; font-size: .875rem; }
.page-heading .eyebrow { font-size: .6875rem; margin-bottom: 6px; letter-spacing: .12em; }
.page-actions { display: flex; gap: 8px; flex-shrink: 0; }
.teacher-mobile-menu { display: none; }
.btn { border-radius: 8px; min-height: 44px; font-size: .875rem; padding: 9px 16px; }
.btn.secondary:hover { background: #f2f6f2; }
.btn.text:hover { background: #ecf1ed; }
.btn.small { min-height: 40px; }
.input { min-height: 44px; padding: 9px 12px; border-color: #ced8d0; border-radius: 8px; }
.panel { padding: 24px; box-shadow: none; }
.notice { background: #f0f4f1; color: #53655d; border-radius: 8px; }
.section-heading h2 { font-size: 1.0625rem; }
.section-heading h2 small { color: var(--muted); font-size: .8125rem; margin-left: 7px; font-weight: 500; }
.badge { font-size: .75rem; border-radius: 5px; font-weight: 550; }
.badge.teal { color: #286250; background: #edf6ef; border-color: #dcecdf; }
.badge.blue { color: #465f70; background: #eff4f7; border-color: #e2e9ee; }
.filter { background: #edf1ee; border-radius: 8px; }
.filter button { border-radius: 6px; }
.filter button.active { background: white; color: var(--ink); box-shadow: 0 1px 3px #26373512; }

/* Keep overview information in one short, scannable list. */
.ops-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.ops-metrics section { border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; background: white; }
.ops-metrics section > span { color: var(--muted); font-size: .8125rem; }
.ops-metrics strong { display: block; font-size: 2rem; font-weight: 650; letter-spacing: -.045em; margin-top: 6px; line-height: 1.35; }
.ops-metrics small { margin-left: 6px; color: var(--muted); font-size: .8125rem; font-weight: 400; }
.ops-exams { margin-bottom: 16px; padding: 0 24px; }
.ops-exams .section-heading { min-height: 72px; margin: 0; gap: 12px; }
.ops-exam-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.ops-exam-name { min-width: 0; }
.ops-exam-name h3 { font-size: .9375rem; font-weight: 650; overflow-wrap: anywhere; }
.ops-exam-name p { color: var(--muted); font-size: .8125rem; margin-top: 4px; }
.ops-exam-name p span { padding: 0 5px; }
.ops-status { display: flex; gap: 14px; align-items: center; }
.ops-release { color: var(--muted); font-size: .75rem; white-space: nowrap; }
details.exam-list-controls { padding: 0; margin-bottom: 20px; background: transparent; border: 0; }
.exam-list-controls summary, .pending-exams summary { cursor: pointer; display: flex; align-items: center; gap: 10px; list-style: none; min-height: 44px; font-size: .8125rem; }
.exam-list-controls summary::-webkit-details-marker, .pending-exams summary::-webkit-details-marker { display: none; }
.exam-list-controls summary::before, .pending-exams summary::before { content: '›'; font-size: 1.25rem; line-height: 1; transition: transform .15s; }
.exam-list-controls[open] > summary::before, .pending-exams[open] > summary::before { transform: rotate(90deg); }
.exam-list-controls summary > :last-child, .pending-exams summary > :last-child { margin-left: auto; color: var(--muted); font-size: .75rem; }
.exam-filter-body { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-top: 8px; }
.exam-filter-body .exam-list-fields { margin: 0 0 14px; }
.pending-exams { padding: 10px 24px; margin-bottom: 20px; }
.pending-exams summary small { margin-left: 5px; color: var(--muted); }
.pending-exams-body { padding: 12px 0; border-top: 1px solid var(--line); font-size: .8125rem; }
.pending-exam-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; }
.pending-exams-body > .btn { margin-top: 10px; }
summary:focus-visible { outline: 3px solid #47b8cd; outline-offset: 3px; border-radius: 6px; }

/* Student screens use the same quiet surfaces and a single accent. */
.welcome-grid { gap: 16px; margin-bottom: 30px; }
.metric { border-radius: 12px; padding: 22px; min-height: 148px; }
.metric.primary { background: #edf4ee; border-color: #dce8dd; color: var(--ink); }
.metric.primary label, .metric.primary p, .metric.primary strong small { color: #526e5d; }
.metric.primary .metric-icon { color: var(--teal); }
.metric strong { font-size: 2.5rem; font-weight: 650; }
.exam-list { display: grid; gap: 10px; border: 0; background: transparent; overflow: visible; }
.exam-row { border: 1px solid var(--line); background: white; border-radius: 12px; box-shadow: none; }
.exam-row:hover { border-color: #abc4b3; box-shadow: none; }
.exam-symbol { color: #537966; background: #eef4ef; border-radius: 10px; }
.submission-callout { background: #edf5f0; border-color: #d8e7db; border-radius: 12px; }
.home-note { font-size: .8125rem; color: var(--muted); line-height: 1.7; }
.result-top { border-radius: 12px; background: #294c43; }
.login-main { background: #fff; }
.login-card .tabs { margin-top: 26px; }
.roster-tools { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr) auto; }
.roster-tools > * { min-width: 0; }
.roster-tools > button { white-space: nowrap; }

@media (min-width: 701px) and (max-width: 1050px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .content { padding-inline: 24px; }
  .topbar { padding-inline: 24px; }
  .ops-exam-row { gap: 16px; }
  .ops-status { align-items: flex-start; flex-direction: column; gap: 5px; }
  .page-heading { flex-wrap: wrap; }
  .roster-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 62px; padding: 0 20px; background: white; border-bottom: 1px solid var(--line); }
  .topbar .brand { color: var(--ink); }
  .content { padding: 24px 18px 94px; }
  .teacher-shell .content { padding-bottom: 36px; }
  .teacher-mobile-menu { display: flex; align-items: center; gap: 14px; margin: -4px 0 24px; }
  .teacher-mobile-menu label { font-size: .8125rem; color: var(--muted); white-space: nowrap; }
  .teacher-mobile-menu select { min-width: 0; background: white; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
  .page-heading h1 { font-size: 1.5rem; }
  .page-heading p { font-size: .8125rem; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .roster-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 18px; }
  .ops-metrics { gap: 8px; margin-bottom: 20px; }
  .ops-metrics section { padding: 15px 12px; border-radius: 10px; }
  .ops-metrics section > span { font-size: .75rem; }
  .ops-metrics strong { font-size: 1.6rem; }
  .ops-metrics small { font-size: .6875rem; margin-left: 4px; }
  .ops-exams { padding: 0 16px; }
  .ops-exams .section-heading { flex-direction: row; align-items: center; min-height: 66px; gap: 6px; }
  .ops-exams .section-heading .btn { padding-inline: 0; font-size: .75rem; }
  .ops-exam-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 18px 0; }
  .ops-exam-name { grid-column: 1 / -1; }
  .ops-status { gap: 8px; flex-wrap: wrap; }
  .ops-exam-row > .btn { font-size: .75rem; padding-inline: 10px; }
  .pending-exams { padding: 8px 16px; }
  .pending-exams summary { font-size: .8125rem; }
  .pending-exams summary > :last-child { font-size: .6875rem; }
  .exam-filter-body { padding: 16px; }
  .welcome-grid { gap: 10px; }
  .metric { padding: 18px; min-height: 125px; }
  .metric strong { font-size: 2.1rem; }
  .bottom-nav { background: white; border-top-color: var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav .navitem { color: var(--muted); box-shadow: none; }
  .bottom-nav .navitem { padding-inline: 2px; font-size: .625rem; white-space: nowrap; gap: 4px; }
  .bottom-nav .navitem.active { color: #286250; background: #f0f6f1; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .exam-list-controls summary::before, .pending-exams summary::before { transition: none; }
}

/* Separate date-only drafts from new exam registration. */
.setup-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.setup-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); padding: 12px 16px; min-height: 48px; font: inherit; cursor: pointer; }
.setup-tabs button[aria-selected="true"] { color: var(--teal); border-bottom-color: var(--teal); font-weight: 700; }
.setup-tabs button:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; border-radius: 6px; }
.setup-tabs .badge { margin-left: 4px; }
.setup-pending .schedule-row { grid-template-columns: minmax(0, 1fr) minmax(160px, 220px); align-items: center; }
@media(max-width: 600px) { .setup-tabs button { padding: 10px 8px; font-size: .8125rem; } .setup-pending .schedule-row { grid-template-columns: minmax(0, 1fr); } }

/* Clear inset chevron and compact per-exam settings. */
.exam-list-controls > summary { padding: 8px 12px; }
.exam-list-controls > summary::before { content: none; }
.exam-filter-chevron { width: 28px; height: 28px; flex-shrink: 0; padding: 5px; border-radius: 7px; color: var(--teal); background: var(--bg); transition: transform .15s; }
.exam-list-controls[open] > summary .exam-filter-chevron { transform: rotate(90deg); }
.release-exam { padding: 0; margin-top: 12px; }
.release-summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 16px; cursor: pointer; }
.release-summary::-webkit-details-marker { display: none; }
.release-summary::before { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); flex-shrink: 0; margin: 0 6px 0 2px; }
.release-exam[open] > .release-summary::before { transform: rotate(45deg); }
.release-summary > div:first-of-type { min-width: 0; }
.release-summary h3 { font-size: .9375rem; overflow-wrap: anywhere; }
.release-summary small { color: var(--muted); font-size: .75rem; }
.release-summary-status { margin-left: auto; gap: 6px; flex-shrink: 0; }
.release-body { border-top: 1px solid var(--line); padding: 16px; }
.pending-exam-controls { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 16px; margin: 16px 0 24px; }
.pending-exam-controls h3 { font-size: .875rem; }
.pending-exam-controls .exam-list-fields { grid-template-columns: repeat(3,minmax(0,1fr)); margin: 12px 0; }
@media(max-width:600px) { .release-summary { flex-wrap: wrap; gap: 10px; } .release-summary-status { width: 100%; margin-left: 28px; } .pending-exam-controls .exam-list-fields { grid-template-columns: minmax(0,1fr); } }
@media(prefers-reduced-motion:reduce) { .exam-filter-chevron { transition: none; } }

.student-filter-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:18px 22px;margin-bottom:24px}
.student-filter-heading,.student-filter-heading>div{display:flex;align-items:center;gap:9px}.student-filter-heading{justify-content:space-between;margin-bottom:12px}.student-filter-heading strong{font-size:.9375rem}.student-filter-icon{color:var(--teal);font-size:1.25rem;line-height:1}
.student-filter-fields{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px}.student-filter-field{display:grid;gap:7px;min-width:0}.student-filter-field>span{font-size:.75rem;font-weight:600;color:var(--muted)}
.student-filter-field select{appearance:none;width:100%;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:9px;background-color:var(--bg);color:var(--ink);font:inherit;font-size:.875rem;padding:10px 34px 10px 12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%236a9487' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;text-overflow:ellipsis;cursor:pointer}
.student-filter-field select:focus-visible{outline:2px solid var(--teal);outline-offset:2px}.student-filter-summary{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:.75rem;color:var(--muted)}.student-filter-summary strong{color:var(--teal);margin-left:7px}.student-filter-summary small{font-size:inherit}.submission-group{margin-bottom:30px}.submission-group .section-heading{margin-bottom:12px}.submission-group h2{font-size:1.05rem}.submission-group h2 small{color:var(--muted);font-weight:500}
@media(max-width:700px){.student-filter-card{padding:16px;border-radius:12px}.student-filter-fields{grid-template-columns:1fr 1fr;gap:12px 10px}.student-filter-fields .type-field{grid-column:1/-1}.student-filter-summary{display:grid;line-height:1.6}.student-filter-field select{padding-left:10px;font-size:.8125rem}}
