:root {
  color-scheme: light;
  --ink: #192e28;
  --forest: #214f40;
  --light: #f6f7f3;
  --line: #dce2d8;
  --muted: #64726b;
  --lime: #d9efa0;
  --paper: #fff;
  font-family: Inter, 'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  color: var(--ink);
  background: var(--light);
  font-size: 16px;
}
.student-page { max-width: 640px; margin: 32px auto; padding: 0 18px; }
main.student-page { max-width: 640px; }
.student-page > p, .student-card p, #queue-schedule, #queue-list > p { color: var(--muted); margin: 8px 0 14px; line-height: 1.5; }
.student-card, .homework-queue { margin: 18px 0; padding: clamp(16px, 3vw, 28px); }
.student-card label { display: block; font-weight: 650; }
.student-card fieldset { padding: 0; }
.student-card #name { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px; }
.student-card input { max-width: 100%; margin: 8px 0 14px; }
.student-card input[type=file] { width: 100%; }
.student-name-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(9rem,.65fr); align-items:center; gap:8px; margin-top:8px; }
.student-name-fields select { width:100%; min-width:0; height:43px; border:1px solid var(--line); background:white; border-radius:8px; padding:0 8px; font:inherit; }
.identity .student-name-fields input, .student-card .student-name-fields #name { margin:0; height:43px; }
#student-search-note { display:block; color:var(--muted); margin:5px 0 14px; }
@media (max-width:480px) { .student-name-fields { grid-template-columns:minmax(0,1fr); } }
.student-books legend { font-size:.94rem; font-weight:700; }
.student-card .photo-page-read { color: var(--muted); font-size: 14px; }
.book-modes { display:flex; gap:8px; flex-wrap:wrap; margin:6px 0; }
.book-modes label { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); border-radius:8px; padding:9px 13px; cursor:pointer; }
.book-modes label:has(input:checked) { background:#eff5e7; border-color:var(--forest); }
.book-modes input { margin:0; accent-color:var(--forest); }
#student-book-field, #grade-book-field { margin-top:10px; }
#student-book, #grade-book { width:100%; max-width:100%; margin-top:5px; border:1px solid var(--line); border-radius:8px; padding:10px; }
.roster-card { margin: 16px 0; }
#roster-form { padding: 0 20px; }
#roster-fields { display: grid; gap: 12px; border: 0; padding: 0; margin: 0; }
#roster-fields > label { display: grid; gap: 4px; max-width: 30rem; }
.roster-books { border: 0; margin: 0; padding: 0; min-width: 0; }
.roster-books legend { font-weight: 600; }
.roster-book-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#roster-book-count, #roster-book-matches, #roster-book-position { color: var(--muted); font-size: 14px; }
#roster-books { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; gap: 6px; max-height: 12rem; overflow-y: auto; }
#roster-books:not(:empty) { margin-top: 10px; }
#roster-books li { min-width: 0; padding: 5px 9px; border-radius: 6px; background: #eff2f7; color: var(--forest); font-size: 14px; overflow-wrap: anywhere; }
#roster-status { margin: 8px 20px 14px; }
#book-note { font-size:.86rem; }
.student-card #receipt-link { color: var(--forest); text-decoration: underline; margin-right: 12px; }
.queue-heading, .queue-actions, .homework-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.queue-heading { justify-content: space-between; }
.homework-row { border-top: 1px solid var(--line); padding: 10px 0; }
.homework-row > div { flex: 1 1 190px; }
.homework-row small { display: block; color: var(--muted); line-height: 1.6; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.66;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #80ab57;
  outline-offset: 3px;
}
.hidden,
[hidden] {
  display: none !important;
}
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.top {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.top-inner {
  height: 100%;
  max-width: 1280px;
  padding: 0 48px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 52px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -1.6px;
}
.brand-icon {
  background: #254d3d;
  color: #e2f3b7;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
}
.brand-icon .ico {
  width: 25px;
  height: 25px;
}
.top nav {
  height: 100%;
  display: flex;
  gap: 30px;
}
.top nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--muted);
  position: relative;
}
.top nav a[aria-current] {
  color: var(--forest);
}
.top nav a[aria-current]:after {
  content: '';
  height: 3px;
  background: var(--forest);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 2px;
}
.top nav .ico,
.help-btn .ico {
  width: 17px;
  height: 17px;
}
.help-btn,
.small-btn,
.icon-button {
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 650;
}
.help-btn {
  margin-left: auto;
  border-radius: 22px;
  padding: 8px 13px;
  font-size: 0.875rem;
}
.help-btn:hover,
.small-btn:hover,
.icon-button:hover {
  background: #f2f5ed;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 28px 48px 50px;
}
.hero {
  border: 1px solid #d1ddc6;
  background: #eaf1df;
  min-height: 173px;
  border-radius: 17px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-copy {
  z-index: 1;
  padding: 25px 34px;
  max-width: 66%;
}
.date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.84rem;
  font-weight: 650;
  color: #4c674c;
}
.date .ico {
  width: 15px;
  height: 15px;
}
h1 {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  letter-spacing: -0.08em;
  line-height: 1.18;
  font-weight: 800;
}
.hero h1 {
  margin: 10px 0;
}
.hero-dot {
  color: #619342;
  margin-left: 2px;
}
.hero-copy p,
.history-heading p {
  font-size: 1rem;
  line-height: 1.55;
  color: #495f50;
  letter-spacing: -0.03em;
}
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(90deg, #eaf1df, transparent 42%), linear-gradient(#acbd9c44 1px, transparent 1px),
    linear-gradient(90deg, #acbd9c44 1px, transparent 1px);
  background-size:
    auto,
    17px 17px,
    17px 17px;
}
.hero-art canvas {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(250px, 0.91fr);
  gap: 20px;
  margin-top: 22px;
  align-items: start;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 2px 5px #20352804;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 21px 24px;
  border-bottom: 1px solid #e5e8e1;
}
h2 {
  font-size: 1.19rem;
  line-height: 1.4;
  letter-spacing: -0.055em;
}
.title-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf4e3;
  color: var(--forest);
}
.small-btn {
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.875rem;
}
.small-btn .ico {
  width: 15px;
  height: 15px;
}
.sample {
  margin-left: auto;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 23px 24px 24px;
  min-width: 0;
}
.identity {
  display: grid;
}
label,
h3 {
  font-weight: 700;
  font-size: 0.935rem;
  letter-spacing: -0.038em;
}
label small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.identity input,
.search input {
  display: block;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd7ce;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.94rem;
}
.identity input {
  margin-top: 8px;
  height: 43px;
}
input::placeholder {
  color: #7c867f;
  font-weight: 400;
}
.photo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 23px 0 9px;
}
.photo-head span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.upload-grid {
  display: grid;
}
button.camera-grade { display: none; }
.grade-camera-actions { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.scan-capture { min-height:44px; }
@media screen and (max-width: 760px), screen and (any-pointer: coarse) {
  .staff-app button.camera-grade { display:block; flex:2 1 auto; min-height:44px; }
  .grade-camera-actions .scan-capture { flex:1 1 auto; }
}
.photo-box {
  position: relative;
  min-width: 0;
}
.drop {
  width: 100%;
  min-height: 148px;
  height: 100%;
  border: 1.5px dashed #aabca9;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  background: #f8faf5;
  color: var(--ink);
  text-align: center;
  overflow: hidden;
  padding: 16px 8px;
}
.drop:hover,
.drop.dragging {
  border-color: var(--forest);
  background: #edf4e4;
}
.file-icon {
  width: 40px;
  height: 40px;
  background: #e7efdf;
  border: 1px solid #d8e4cf;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #47694b;
  margin-bottom: 3px;
}
.file-icon .ico {
  width: 23px;
  height: 23px;
}
.drop strong {
  font-size: 0.96rem;
  letter-spacing: -0.04em;
}
.drop-text {
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop img {
  height: 68px;
  max-width: 85%;
  object-fit: contain;
  border: 1px solid #d2d9d0;
  border-radius: 3px;
}
.remove {
  position: absolute;
  right: 7px;
  top: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100%;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
}
.remove .ico {
  width: 15px;
}
.mode p {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.6;
}
.mode {
  margin: 17px 0 16px;
}
.mode > div {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.mode label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475950;
  font-size: 0.86rem;
}
.mode label .ico {
  height: 16px;
  width: 16px;
}
.mode select,
.result-table select {
  border: 1px solid #ced8ce;
  border-radius: 6px;
  padding: 5px 27px 5px 8px;
  font-size: 0.85rem;
  color: var(--forest);
  background: #fff
    url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23486651' stroke-width='1.6'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  appearance: none;
}
.mode p {
  margin-top: 5px;
}
.primary {
  background: var(--forest);
  color: white;
  border: 1px solid var(--forest);
  border-radius: 9px;
  padding: 12px 19px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.primary:hover {
  background: #173d32;
}
.submit {
  width: 100%;
  height: 47px;
}
.submit .ico {
  width: 19px;
  height: 19px;
}
.error {
  color: #9c402c;
  background: #fff3ef;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 10px 0;
}
aside {
  display: grid;
  gap: 16px;
}
.stats,
.recent {
  padding: 22px;
}
.side-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-title > .ico {
  color: #4b6c50;
  width: 19px;
}
.side-title h2 {
  font-size: 1.04rem;
}
.side-title > span,
.side-title > a {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
}
.side-title > a:hover {
  text-decoration: underline;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 21px;
}
.metrics > div + div {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 3px;
}
.metrics strong {
  font-family: Inter, Arial, sans-serif;
  font-size: 2.3rem;
  letter-spacing: -0.06em;
  font-weight: 650;
  line-height: 1.15;
}
.metrics small {
  color: var(--muted);
  margin-left: 5px;
  font-size: 0.85rem;
}
.recent {
  min-height: 188px;
}
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 9px;
  color: var(--muted);
  padding: 26px 8px 9px;
}
.empty-art {
  display: grid;
  place-items: center;
  background: #f1f4ed;
  color: #76916f;
  width: 45px;
  height: 45px;
  border-radius: 14px;
}
.empty-art .ico {
  width: 23px;
  height: 23px;
}
.empty strong {
  font-weight: 650;
  font-size: 0.91rem;
  color: #495b50;
}
.empty p {
  font-size: 0.83rem;
  line-height: 1.5;
}
.recent-row,
.archive-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 1px solid #e4e8df;
  text-align: left;
}
.recent-row:last-child,
.archive-row:last-child {
  border-bottom: 0;
}
.recent-row:hover,
.archive-row:hover {
  background: #f7f9f4;
}
.recent-row:first-child {
  margin-top: 9px;
}
.avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e7efdf;
  color: #52704f;
  font-weight: 700;
  flex: none;
}
.record-text {
  min-width: 0;
  flex: 1;
}
.record-text strong,
.record-text small {
  display: block;
  overflow-wrap: anywhere;
}
.record-text strong {
  font-size: 0.92rem;
  line-height: 1.5;
}
.record-text small {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 2px;
}
.status {
  font-weight: 650;
  border-radius: 6px;
  display: inline-block;
  padding: 4px 7px;
  font-size: 0.78rem;
  background: #eff3e9;
  color: #446746;
}
.status.wrong {
  background: #f9ebe2;
  color: #9b4c32;
}
.status.review {
  background: #f8f1d9;
  color: #806422;
}
.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 26px;
}
.history-heading p {
  margin-top: 8px;
}
.history-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.history-actions { justify-content: flex-end; }
@media screen and (max-width: 640px) {
  #history-view .history-heading { flex-wrap: wrap; gap: 12px; }
}
.archive {
  padding: 24px;
}
.archive-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.archive-bar h2 span {
  color: #648446;
  font-size: 1rem;
}
.history-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; font-size: 14px; }
.history-pager button:disabled { cursor: default; }
#history-view .search, #history-view .search input { min-width: 0; max-width: 100%; }
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding-left: 10px;
  color: var(--muted);
  width: 285px;
}
.search input {
  border: 0;
}
.archive-row {
  padding: 16px 4px;
}
.archive-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.archive-entry:last-child { border-bottom: 0; }
.archive-entry .archive-row { flex: 1; min-width: 0; border: 0; }
.delete-record { color: #a12e2d; flex-shrink: 0; }
#delete-dialog, #inbox-delete-dialog, #catalog-delete-dialog { max-width: min(440px, calc(100% - 24px)); }
#delete-target, #inbox-delete-target, #catalog-delete-target { font-weight: 700; overflow-wrap: anywhere; }
#delete-note, #inbox-delete-note, #catalog-delete-note { margin-top: 8px; }
#confirm-delete, #inbox-delete-confirm, #catalog-delete-confirm { background: #a12e2d; color: white; }
.archive-row .ico {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.archive .empty {
  padding: 48px 10px;
}
.archive-date {
  font-size: 0.82rem;
  color: var(--muted);
}
dialog {
  width: min(600px, 94vw);
  max-height: 88vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 65px #14291840;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #182d2580;
}
.dialog-head,
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  overflow-wrap: anywhere;
}
.icon-button {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  flex: none;
}
.icon-button .ico {
  width: 17px;
}
.dialog-content {
  padding: 17px 23px;
}
#result-book {
  line-height: 1.75;
  color: var(--muted);
  font-size: 0.95rem;
}
.guide-heading, .management-heading > .guide-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.guide-heading h1, .guide-heading h2 { overflow-wrap: anywhere; }
.guide-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #536379;
  font: 700 13px/1 system-ui, sans-serif;
  vertical-align: middle;
  cursor: pointer;
}
.guide-icon::before {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.guide-icon:hover { background: #edf1f6; }
.guide-icon:focus-visible { outline: 2px solid #5075b5; outline-offset: 1px; }
#help-dialog { width: min(28rem, calc(100% - 32px)); max-height: 85dvh; }
#help-dialog .dialog-head { position: sticky; top: 0; background: var(--paper); }
#help-dialog .dialog-head h2 { font-size: 18px; }
#help-dialog ol { margin: 0; padding-inline-start: 1.5em; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
#help-dialog li { padding-inline-start: 4px; }
#help-dialog li + li { margin-top: 10px; }
#help-dialog li::marker { font-weight: 700; color: var(--forest); }
@media (pointer: coarse) {
  .guide-icon { width: 44px; height: 44px; }
}
.dialog-footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: 0;
  background: #fff;
}
.dialog-footer span,
.result-top {
  color: var(--muted);
  font-size: 0.84rem;
}
#roster-book-dialog { max-height: min(88vh, 48rem); max-height: min(88dvh, 48rem); }
#roster-book-dialog[open] { display: flex; flex-direction: column; }
#roster-book-dialog.large-catalog { height: min(88vh, 44rem); height: min(88dvh, 44rem); }
#roster-book-dialog.large-catalog #roster-book-options { flex: 1; }
#roster-book-dialog .dialog-head h2 { font-size: 19px; }
#roster-book-dialog .dialog-head, #roster-book-dialog .dialog-footer { flex: none; }
#roster-book-dialog .dialog-footer { position: static; gap: 8px; }
#roster-book-total { margin-right: auto; font-weight: 650; color: var(--forest); }
.roster-book-filters { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 20px 10px; }
.roster-book-filters .search { width: 100%; }
.roster-book-filters .search input { width: 100%; min-width: 0; padding: 10px; font-size: 16px; }
.roster-book-only, #roster-book-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.roster-book-only { font-size: 14px; min-height: 32px; }
#roster-book-dialog input[type=checkbox] { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--forest); }
#roster-book-options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; }
#roster-book-options label { min-height: 44px; padding: 8px; border-top: 1px solid var(--line); overflow-wrap: anywhere; font-size: 15px; }
#roster-book-options label:has(:checked) { background: #eff3f9; }
#roster-book-pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px; }
#roster-book-pager button:disabled { cursor: default; }
@media (max-height: 480px) {
  #roster-book-dialog[open] { display: block; }
}
.result-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.result-top .ico {
  width: 15px;
  height: 15px;
}
#result-summary {
  margin: 12px 0 14px;
  padding: 13px 15px;
  border-radius: 9px;
  background: #f0f5e9;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#result-summary p + p {
  font-size: 0.86rem;
  color: #816126;
}
.result-table {
  overflow-x: auto;
}
.result-table .reading-note {
  display: block;
  margin-top: 0.25rem;
  color: #80530c;
  white-space: normal;
}
#marked-sheet {
  margin: 0;
}
.result-photo-tools {
  margin: 0 0 16px;
}
#marked-sheet[hidden] + #result-details .result-photo-tools {
  display: none;
}
.photo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-weight: 700;
}
.photo-actions {
  display: inline-flex;
  gap: 6px;
}
#photo-status:not(:empty) {
  margin: 0 0 8px;
  font-size: 0.86rem;
}
.marked-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.marked-photo canvas {
  display: block;
  width: 100%;
  height: auto;
}
.mark-legend, #unplaced-marks {
  margin: 6px 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}
.mark-legend span, .mark-legend b {
  color: #df1823;
  font-weight: 700;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.91rem;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid #e1e6dd;
  padding: 9px 5px;
}
td {
  overflow-wrap: anywhere;
  max-width: 110px;
}
th {
  font-size: 0.84rem;
  color: var(--muted);
}
td:last-child {
  width: 109px;
  max-width: none;
}
summary {
  cursor: pointer;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #203e31;
  color: white;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.875rem;
  z-index: 5;
  box-shadow: 0 4px 18px #18372429;
}
.busy .submit .ico {
  animation: throb 1s infinite alternate;
}
@keyframes throb {
  to {
    opacity: 0.28;
  }
}
@media (prefers-reduced-motion: reduce) {
  .busy .submit .ico {
    animation: none;
  }
}
@media (min-width: 1450px) {
  main {
    padding-top: 36px;
  }
  .hero {
    min-height: 192px;
  }
  .workspace {
    margin-top: 26px;
  }
  .drop {
    min-height: 165px;
  }
}
@media (max-width: 900px) {
  .top-inner {
    padding: 0 24px;
    gap: 28px;
  }
  main {
    padding: 21px 24px 40px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 14px;
  }
  .stats,
  .recent {
    padding: 17px;
  }
  .card-head {
    padding: 17px;
  }
  .entry fieldset {
    padding: 17px;
  }
  .hero-copy {
    padding-left: 25px;
  }
}
@media (max-width: 760px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  aside {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .hero-art {
    width: 39%;
  }
  .hero-copy {
    max-width: 72%;
  }
  .top nav {
    gap: 18px;
  }
  .top-inner {
    gap: 25px;
  }
  .recent {
    min-height: 0;
  }
  .hero {
    min-height: 150px;
  }
  .hero h1 {
    margin: 7px 0;
  }
  .top {
    height: 62px;
  }
}
@media (max-width: 560px) {
  .top-inner {
    padding: 0 14px;
    gap: 18px;
  }
  .brand {
    font-size: 21px;
    gap: 6px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .brand-icon .ico {
    width: 21px;
  }
  .top nav {
    gap: 14px;
  }
  .top nav a {
    font-size: 0.85rem;
  }
  .top nav .ico,
  .help-btn span {
    display: none;
  }
  .help-btn {
    padding: 7px;
    width: 33px;
    height: 33px;
  }
  .hero-copy {
    padding: 17px;
    max-width: 74%;
  }
  .hero-copy p {
    font-size: 0.89rem;
  }
  .hero-art {
    width: 37%;
    right: -6%;
    opacity: 0.85;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero {
    min-height: 145px;
  }
  .date {
    font-size: 0.78rem;
  }
  .workspace {
    margin-top: 13px;
  }
  main {
    padding: 14px 12px 32px;
  }
  .drop {
    min-height: 139px;
    padding: 12px 4px;
  }
  .drop-text {
    font-size: 0.76rem;
    white-space: normal;
  }
  .card-head {
    gap: 8px;
  }
  .small-btn {
    font-size: 0.81rem;
  }
  .stats,
  .recent {
    padding: 16px;
  }
  aside {
    grid-template-columns: 1fr;
  }
  .recent .empty {
    padding: 17px;
  }
  .metrics {
    margin-top: 14px;
  }
  .history-heading {
    align-items: flex-start;
  }
  .history-heading .primary {
    padding: 9px;
    font-size: 0.84rem;
  }
  .archive {
    padding: 15px;
  }
  .archive-bar {
    display: grid;
  }
  .search {
    width: 100%;
  }
  .archive-date {
    display: none;
  }
  .dialog-content,
  .dialog-head,
  .dialog-footer {
    padding: 14px;
  }
  .toast {
    min-width: 70%;
    text-align: center;
  }
}
.entry .grade-books {
  padding: 0;
  margin-top: 16px;
}
#grade-book-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .86rem;
}
.catalog-card {
  padding: 21px;
}
.catalog-card p,
.catalog-file p,
#catalog-status {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 10px 0;
}
#catalog-fields {
  padding: 0;
  margin: 0 0 18px;
}
.catalog-meta {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.catalog-meta input,
.pdf-number input {
  width: 100%;
  display: block;
  margin: 6px 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.catalog-file {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
}
.catalog-file input[type='file'] {
  width: 100%;
  display: block;
  font-size: 0.84rem;
  margin-top: 8px;
}
.catalog-file .pdf-number {
  display: block;
  margin: 8px 0;
}
.source-preview {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: var(--light);
}
.catalog-search { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-bottom: 18px; }
.catalog-search .search { min-width: 0; flex: 0 1 290px; }
.catalog-search .search input { width: 100%; min-width: 0; }
#catalog-status:empty, #catalog-detail-status:empty { display: none; }
#catalog-list { list-style: none; margin: 0; padding: 0; }
.catalog-columns, #catalog-list a {
  display: grid; grid-template-columns: 4em minmax(0, 1fr) 5em; align-items: center;
  gap: 12px; padding: 12px 16px;
}
.catalog-columns { background: var(--light); border-block: 1px solid var(--line); font-size: 13px; color: var(--muted); }
#catalog-list a { min-height: 52px; background: white; border-bottom: 1px solid var(--line); font-size: 15px; }
#catalog-list a:hover, #catalog-list a:focus-visible { background: var(--light); }
#catalog-list strong, #catalog-detail-title { overflow-wrap: anywhere; }
#catalog-list a span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.catalog-columns > :last-child, #catalog-list a > :last-child { text-align: right; }
#catalog-empty { padding: 25px 12px; margin: 0; border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); }
#catalog-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px; margin: 20px 0 0; }
#catalog-pagination > :is(a,span) {
  display: inline-flex; justify-content: center; align-items: center; min-width: 34px; min-height: 40px;
  padding: 4px 7px; border-radius: 6px; font-size: 14px; font-variant-numeric: tabular-nums;
}
#catalog-pagination a:hover { background: var(--light); }
#catalog-pagination a[aria-current] { font-weight: 700; background: var(--forest); color: white; }
#catalog-pagination [aria-disabled] { color: var(--muted); opacity: .6; }
#catalog-pagination i { color: var(--muted); font-size: 12px; font-style: normal; }
#catalog-pagination small { flex-basis: 100%; margin-top: 4px; text-align: center; color: var(--muted); }
.catalog-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  gap: 6px;
  padding: 10px;
}
.catalog-page-grid > div { display: flex; align-items: center; gap: 6px; }
.catalog-page-grid button { flex: 1; padding: 8px 3px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.catalog-page-grid button:hover { background: var(--light); }
#catalog-page-dialog { width: min(900px, 94vw); }
.catalog-page-images { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(260px,100%),1fr)); gap: 16px; }
.catalog-page-images figure { margin: 0; min-width: 0; }
.catalog-page-images figcaption { font-weight: 600; margin-bottom: 6px; }
.catalog-page-images img { display: block; width: 100%; height: auto; }
#grade-next-field, .sheet-page-editor { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
#grade-next-field { margin-top:12px; }
#grade-next-page, .sheet-page-editor input { width:6rem; min-width:0; padding:8px; border:1px solid var(--line); border-radius:7px; }
.sheet-page-editor label { font-size:.85rem; }
#grade-next-error, .sheet-page-editor small { color:#9b392b; }
#grade-next-error:empty, .sheet-page-editor small:empty { display:none; }
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.candidate {
  display: grid;
  gap: 5px;
  justify-items: center;
  background: white;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 8px;
  max-width: 170px;
  font-size: 0.82rem;
}
.candidate img {
  width: 90px;
  height: 85px;
  object-fit: contain;
}
.usage-panel {
  background: #f4f6f2;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 9px;
  margin: 10px 0;
  font-size: 0.92rem;
}
.usage-panel p,
.usage-panel small {
  display: block;
  margin: 4px 0;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#ungraded:not(:empty) {
  margin-top: 22px;
}
.usage-item {
  margin-top: 12px;
}
.key-preview { margin: 6px 0; }
.key-preview img, #catalog-key-preview { display:block; width:100%; height:auto; max-height:440px; object-fit:contain; }
#catalog-key-crop { display:block; max-width:100%; height:auto; touch-action:none; cursor:crosshair; }
#bulk-fields { display: grid; gap: 12px; padding: 0 0 16px; }
#bulk-fields label { display: grid; gap: 4px; }
#bulk-fields input, #bulk-fields select { max-width: 100%; }
#bulk-fields details label { margin: 8px 0; }
#bulk-missing, #bulk-status { font-size: .91rem; line-height: 1.5; }
.sheet-list {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.sheet-list:empty, #receipt-pages:empty, #sheet-info:empty { display: none; }
.sheet-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.sheet-list li > span { flex: 1; min-width: 8em; overflow-wrap: anywhere; }
.sheet-list img { width: 40px; height: 48px; object-fit: contain; }
.sheet-list .sheet-thumbnail { position: relative; cursor: zoom-in; }
.sheet-thumbnail .ico {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 16px;
  height: 16px;
  padding: 1px;
  border-radius: 50%;
  background: white;
  color: var(--forest);
}
#sheet-preview-dialog {
  width: min(64rem, calc(100% - 16px));
  height: min(94vh, 64rem);
  height: min(94dvh, 64rem);
  max-height: none;
}
#sheet-preview-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
#sheet-preview-dialog .dialog-head, #sheet-preview-page { flex: none; padding: 6px 12px; gap: 8px; }
#sheet-preview-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
#sheet-preview-dialog button { min-height: 44px; }
#sheet-preview-area {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f5f6f8;
}
#sheet-preview-image { flex: none; margin: auto; max-width: 100%; max-height: 100%; cursor: zoom-in; }
#sheet-preview-area.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }
#sheet-preview-page { position: static; justify-content: flex-start; flex-wrap: wrap; }
#preview-page-number { width: 6rem; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
#sheet-info, #file-info, #receipt-pages { font-size: .9rem; line-height: 1.6; }
#receipt-pages { list-style: none; padding: 0; }
.compare-homework { width: 100%; }
.compare-pages { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 8px 0; }
.compare-pages figure { margin: 0; }
.compare-pages img { width: 100%; height: auto; }
.compare-pages figcaption { font-size: .85rem; margin-bottom: 4px; }
.homework-row > .homework-page-actions { flex:1 1 100%; min-width:0; display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px; }
.homework-page-actions label { display:grid; gap:4px; min-width:0; }
.homework-page-actions label:first-child { flex:1 1 15rem; max-width:28rem; }
.homework-page-actions label:nth-child(2) { width:6rem; }
.homework-page-actions input, .homework-page-actions select {
  width:100%; min-width:0; min-height:40px; padding:7px 10px;
  border:1px solid var(--line); border-radius:7px; background:white; color:var(--ink);
}
.homework-page-actions input[aria-invalid=true] { border-color:#ae443a; }
.homework-page-actions .page-input-feedback { flex-basis:100%; }
.homework-page-actions .page-input-feedback:empty { display:none; }
.homework-row > .page-choice-warning { flex:1 1 100%; padding:10px 12px; border-radius:8px; background:#fff5e8; color:#754708; }
.page-choice-warning label { display:flex; gap:6px; align-items:center; margin-top:6px; }
.upload-batch {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.upload-batch > summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 12px;
  padding: 13px 14px;
  background: #f5f8f0;
  list-style: none;
}
.upload-batch > summary::-webkit-details-marker { display: none; }
.upload-batch > summary::after {
  content: '⌄';
  grid-column: 2;
  grid-row: 1 / 4;
  color: var(--forest);
}
.upload-batch[open] > summary::after { transform: rotate(180deg); }
#inbox-delete-status { color: var(--muted); font-size: .85rem; }
#inbox-delete-status:empty { margin: 0; }
.upload-batch > summary time, .upload-batch > summary span { grid-column: 1; font-size: .81rem; color: var(--muted); overflow-wrap:anywhere; }
.upload-children { padding: 0 12px; }
.upload-result { display:flex; align-items:center; gap:8px; padding:10px 0; flex-wrap:wrap; }
.file-selection { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; padding:8px 12px; border-bottom:1px solid var(--line); }
.file-selection label { display:inline-flex; align-items:center; gap:8px; font-weight:600; cursor:pointer; }
.file-selection span { color:var(--muted); font-size:.85rem; }
.file-selection button { margin-left:auto; }
.file-selection input, .upload-children input[type=checkbox], .catalog-page-grid input { width:18px; height:18px; flex:none; accent-color:var(--forest); }
.upload-result + .upload-result { border-top:1px solid var(--line); }
.upload-result .record-text { flex:1; min-width:min(120px,100%); overflow-wrap:anywhere; }
.upload-thumb { width:40px; height:52px; object-fit:contain; flex:none; }
#upload-status-photo { max-width:100%; height:auto; margin-top:10px; }
#upload-status-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
#upload-status-dialog .dialog-head, #upload-photo-nav { flex:none; }
#upload-status-dialog .dialog-content { min-height:0; overflow-y:auto; }
#upload-photo-nav { position:static; padding:4px 12px; }
#upload-photo-nav button { min-height:44px; }
#result-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
#result-dialog .dialog-head, #result-dialog .dialog-footer { flex-shrink: 0; }
#result-dialog .dialog-content { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
#open-regrade { margin-left:auto; white-space:nowrap; }
#result-dialog .dialog-head > #open-regrade { margin-right:8px; }
#regrade-form:not([hidden]) { display:grid; grid-template-columns:minmax(0,1fr) 6rem; gap:8px 12px; border-bottom:1px solid var(--line); padding:12px 0; margin-bottom:12px; }
#regrade-form label { min-width:0; }
#regrade-form select, #regrade-form input { display:block; width:100%; min-width:0; margin-top:4px; border:1px solid var(--line); border-radius:6px; padding:8px; }
#regrade-photo-label, #regrade-note { grid-column:1/-1; }
#regrade-note { color:var(--muted); }
#result-regrade-status:not([hidden]) { padding:8px 10px; background:var(--light); border-radius:6px; margin:4px 0 8px; }
#run-regrade { grid-column:1/-1; justify-self:end; }
#result-dialog .dialog-footer { position: static; flex-wrap: wrap; gap: 8px 12px; }
#result-nav { display: flex; align-items: center; gap: 8px; }
#marked-image.swipe-enabled, #upload-status-photo.swipe-enabled { touch-action: pan-y pinch-zoom; }
#result-nav button { min-height: 36px; white-space: nowrap; }
#result-nav button:disabled { cursor: default; }
#result-nav button span { font: inherit; color: inherit; }
#result-position { white-space: nowrap; font-variant-numeric: tabular-nums; }
#save-result { margin-left: auto; }
#result-position, #scan-note, #scan-file, #scan-help { font-size:.9rem; color:var(--muted); }
#scan-dialog { width:min(820px,95vw); max-height:92vh; max-height:92dvh; }
#scan-camera { width:min(660px,96vw); max-height:95vh; max-height:95dvh; }
#scan-camera[open] { display:flex; flex-direction:column; }
#scan-camera .dialog-content { overflow:auto; min-height:0; text-align:center; padding:10px; }
#scan-camera .dialog-footer { position:static; flex:none; }
#scan-camera .dialog-footer button { min-height:44px; }
.camera-frame { display:inline-block; position:relative; max-width:100%; line-height:0; background:#172123; }
#scan-video { display:block; max-width:100%; max-height:59vh; max-height:59dvh; }
#camera-outline { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
#camera-note { margin:8px 0 0; font-size:.94rem; }
#scan-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
#scan-dialog .dialog-head, #scan-dialog .dialog-footer { flex:none; }
#scan-file { overflow-wrap:anywhere; margin-top:4px; }
#scan-dialog .dialog-content { padding:16px; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.scan-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.scan-columns figure { min-width:0; margin:12px 0; padding:12px 15px 17px; text-align:center; border:1px solid var(--line); border-radius:8px; }
.scan-columns figcaption { text-align:left; font-weight:650; margin-bottom:16px; }
.scan-stage { position:relative; display:inline-block; max-width:100%; vertical-align:top; }
.scan-stage canvas, #scan-preview canvas { display:block; max-width:100%; max-height:46vh; margin:auto; }
.scan-stage button { position:absolute; transform:translate(-50%,-50%); width:32px; height:32px; padding:0; border:0; background:transparent; touch-action:none; cursor:grab; }
.scan-stage button::after { content:''; display:block; width:15px; height:15px; margin:auto; border-radius:50%; background:#fff; border:3px solid var(--forest); }
.scan-split-choice { display:inline-flex; align-items:center; gap:6px; min-height:44px; font-weight:600; }
.scan-stage .fold-handle::after { border-color:#9e460f; background:#fff2dd; }
#scan-preview.split-preview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:6px; }
#scan-dialog .dialog-footer { position:static; justify-content:flex-end; }
#scan-dialog .dialog-footer button { min-height:44px; }
@media (max-width:560px) {
  .scan-columns { grid-template-columns:1fr; gap:0; }
  .scan-columns figure { margin:7px 0; }
  .scan-stage canvas { max-height:36vh; }
  #scan-preview canvas { max-height:23vh; }
}

/* Teacher workspace */
.mobile-tabs { display: none; }
.staff-sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
@media screen {
  .staff-app {
    --rail-width: 212px;
    --gutter: clamp(20px, 2.8vw, 44px);
    --ink: #252a32; --muted: #626975; --line: #e1e3e7; --light: #f6f7f9;
    --forest: #354a70;
    color: var(--ink); background: #fff; min-height: 100vh;
  }
  .staff-app.rail-compact { --rail-width: 60px; }
  .staff-app > main { margin: 0 0 0 var(--rail-width); padding: 0 0 48px; max-width: none; min-width: 0; }
  .staff-app main > [data-screen], .staff-app #load-error { margin: 24px var(--gutter) 0; }
  .staff-sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 5; width: var(--rail-width);
    display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: #f3f4f5; border-right: 1px solid var(--line); padding: 0 10px;
  }
  .staff-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 79px; padding: 0 4px; }
  .staff-brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 750; letter-spacing: -.045em; }
  .staff-brand > .ico { width: 29px; height: 29px; padding: 4px; border-radius: 7px; background: #354f86; color: white; }
  .staff-brand small { display: block; margin-top: 2px; font-size: 11px; font-weight: 550; color: var(--muted); letter-spacing: 0; }
  .rail-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #636a75; }
  .rail-toggle .ico { width: 17px; height: 17px; }
  #staff-menu { flex: 1; }
  #staff-menu section { padding: 14px 0; border-top: 1px solid #dfe1e5; }
  #staff-menu h2 { font-size: 11px; font-weight: 650; color: var(--muted); letter-spacing: .015em; margin: 0 9px 6px; }
  #staff-menu a, .staff-help {
    display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 5px 9px;
    border: 0; border-radius: 5px; background: transparent; color: #414751; font-size: 14px; font-weight: 500;
  }
  #staff-menu a + a { margin-top: 2px; }
  #staff-menu a .ico, .staff-help .ico { width: 17px; height: 17px; }
  #staff-menu a:hover, .staff-help:hover, .rail-toggle:hover { background: #e8eaed; }
  #staff-menu a[aria-current] { background: #e1e4e8; color: #252c39; font-weight: 700; }
  .staff-help { flex: none; margin: 12px 0; }
  .rail-compact .staff-brand, .rail-compact #staff-menu h2 { display: none; }
  .rail-compact #staff-menu a span, .rail-compact .staff-help span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
  .rail-compact .staff-brand-row, .rail-compact #staff-menu a, .rail-compact .staff-help { justify-content: center; }
  .staff-submenu {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 80px; padding: 15px var(--gutter); border-bottom: 1px solid var(--line);
  }
  .staff-submenu [data-submenu] { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
  .staff-submenu a { font-size: clamp(18px, 1.7vw, 25px); font-weight: 700; color: #777e8a; letter-spacing: -.055em; line-height: 1.5; }
  .staff-submenu a[aria-current], .staff-submenu a:hover { color: #232b38; }
  .staff-date { display: flex; align-items: center; gap: 6px; flex: none; font-size: 12px; color: var(--muted); }
  .staff-date .ico { width: 15px; height: 15px; }
  .staff-app :is(h1, h2, h3) { letter-spacing: -.035em; }
  .staff-app h1 { font-size: 19px; line-height: 1.4; font-weight: 700; }
  .staff-app :is(button, a, input, select, summary):focus-visible { outline: 2px solid #5075b5; outline-offset: 2px; }
  .staff-app .card { border-radius: 8px; box-shadow: none; }
  .staff-app .primary, .staff-app .small-btn { border-radius: 6px; min-height: 34px; padding: 7px 12px; font-size: 13px; }
  .staff-app .primary:hover { background: #283b5c; }
  .staff-app .small-btn:hover { background: var(--light); }
  .staff-app .history-heading { margin: 0 0 18px; gap: 12px; }
  .staff-app .history-heading p { font-size: 14px; color: var(--muted); }
  .staff-app .card-head { border-color: var(--line); }
  .staff-app .title-icon, .staff-app .empty-art, .staff-app .file-icon { color: var(--forest); background: #edf1f7; border-color: #dbe1eb; }
  .staff-app .drop { background: #fafbfc; border-color: #b9c2d0; }
  .staff-app .drop:hover, .staff-app .drop.dragging { background: #f1f4f9; border-color: var(--forest); }
  .staff-app .side-title > .ico, .staff-app .archive-bar h2 span { color: var(--forest); }
  .staff-app .homework-queue { padding: 0; margin: 0; }
  .staff-app .queue-heading { margin-bottom: 20px; }
  .staff-app #queue-schedule { margin: 4px 0 0; font-size: 13px; }
  .staff-app .upload-batch { margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .staff-app .upload-batch > summary { background: white; cursor: pointer; }
  .staff-app .upload-batch > summary:hover, .staff-app .upload-batch[open] > summary { background: #f7f8fa; }
  .staff-app .upload-batch strong { font-size: 14px; }
  .staff-app .submission-id { display: block; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .staff-app .upload-batch > summary span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #7889a4; vertical-align: .12em; }
  .staff-app .upload-batch[data-state="attention"] > summary span::before { background: #aa7419; }
  .staff-app .upload-batch[data-state="done"] > summary span::before { background: #368262; }
  .staff-app .upload-children { border-left: 2px solid #dfe4ec; margin: 0 12px 8px; }
  .staff-app .entry { max-width: 920px; }
  .overview-layout { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
  .management-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
  .management-heading > div { display: flex; align-items: baseline; gap: 8px; }
  .management-count { font-size: 13px; color: var(--muted); }
  .add-sign { font-size: 19px; line-height: 1; }
  .back-link { display: inline-flex; align-items: center; min-height: 40px; margin-bottom: 8px; font-size: 14px; color: var(--forest); }
  .management-form { max-width: 760px; }
  .roster-search { max-width: 100%; margin-bottom: 16px; }
  .roster-columns, #roster-list a { display: grid; grid-template-columns: minmax(7rem, .6fr) minmax(0, 1.65fr) 12px; gap: 14px; align-items: center; padding: 12px 14px; }
  .roster-columns { background: var(--light); border-block: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
  #roster-list { margin: 0; padding: 0; list-style: none; }
  #roster-list li { border-bottom: 1px solid var(--line); }
  #roster-list a { min-height: 52px; overflow-wrap: anywhere; font-size: 15px; }
  #roster-list a:hover { background: var(--light); }
  #roster-list a span { color: var(--muted); font-size: 14px; }
  #roster-list a::after { content: ''; width: 7px; height: 7px; border-top: 1.5px solid #89919c; border-right: 1.5px solid #89919c; transform: rotate(45deg); }
  .roster-empty { padding: 24px 14px; color: var(--muted); }
  #roster-list-status:not(:empty) { margin: 10px 0; font-size: 14px; }
  #roster-list-retry { margin-bottom: 12px; }
  .staff-app .roster-card { max-width: 690px; margin: 0; padding: 22px; }
  .staff-app #roster-form { padding: 0; }
  .staff-app #roster-fields { gap: 16px; }
  .staff-app #roster-fields > label :is(select, input), .staff-app #bulk-fields input:not([type=file], [type=checkbox]) {
    border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: white; min-width: 0; width: 100%;
  }
  .staff-app .roster-books { border-top: 1px solid var(--line); margin-top: 4px; }
  .staff-app #roster-status { margin: 8px 0 0; }
}
@media screen and (max-width: 1060px) {
  .overview-layout { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 760px) {
  .staff-app {
    --gutter: clamp(16px, 4.8vw, 28px); --tab-space: calc(66px + env(safe-area-inset-bottom, 0px));
    --mobile-accent: #155c64; background: #f6f7f8;
  }
  .staff-app > main {
    display: flow-root; margin: 0; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) calc(var(--tab-space) + 24px) env(safe-area-inset-left, 0px);
  }
  html:has(.staff-app) { scroll-padding-bottom: 84px; }
  .staff-sidebar, .staff-submenu { display: none; }
  .staff-app main > [data-screen] { margin-top: 24px; }
  .staff-app main > [data-screen="today"] { margin-top: 28px; }
  .mobile-tabs {
    position: fixed; inset: auto 0 0; z-index: 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 3px env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: #fff; border-top: 1px solid #e3e6e8;
  }
  .mobile-tabs a {
    min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    color: #626a73; font-size: 12px; font-weight: 550; line-height: 1.2;
  }
  .mobile-tabs .ico { width: 22px; height: 22px; }
  .mobile-tabs a[aria-current] { color: var(--mobile-accent); font-weight: 750; }
  .mobile-tabs a[aria-current] .ico { background: #e2f2f0; border-radius: 8px; box-shadow: 0 0 0 3px #e2f2f0; }
  .staff-app .toast { bottom: calc(var(--tab-space) + 10px); }
  .home-heading, .home-brand, .home-date, .home-section-head, .home-section-head a,
  .home-shortcuts a, .more-identity, #mobile-directory a { display: flex; align-items: center; }
  .home-heading, .home-section-head { justify-content: space-between; gap: 10px; }
  .home-brand { margin: 0 0 7px; gap: 5px; font-size: 12px; font-weight: 650; color: #56636c; }
  .home-brand .ico { width: 16px; height: 16px; color: var(--mobile-accent); }
  .home-date { gap: 8px; align-items: baseline; }
  .staff-app #today-date { font-size: clamp(28px, 7.7vw, 36px); line-height: 1.25; letter-spacing: -.055em; }
  #today-weekday { font-size: 14px; color: var(--muted); }
  .mobile-help-icon, #home-search button {
    width: 44px; height: 44px; display: grid; place-items: center; flex: none; border: 0; border-radius: 50%; background: transparent; color: #505f68;
  }
  .mobile-help-icon .ico { width: 23px; height: 23px; }
  #home-search {
    display: flex; align-items: center; gap: 10px; min-height: 57px; margin: 21px 0 12px; padding: 3px 6px 3px 15px;
    border-radius: 15px; background: white; border: 1px solid #e7eaec; box-shadow: 0 3px 12px #22323e0a;
  }
  #home-search > .ico { color: #6c7782; }
  #home-search input { flex: 1; min-width: 0; width: 100%; border: 0; border-radius: 4px; padding: 7px 0; font-size: 16px; background: transparent; }
  #home-search button { color: var(--mobile-accent); }
  .home-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 23px; }
  .home-shortcuts a {
    justify-content: center; flex: 1 1 auto; gap: 6px; padding: 8px; min-height: 44px; min-width: 0;
    border: 1px solid var(--line); background: white; border-radius: 12px; font-size: 14px; font-weight: 650; white-space: nowrap;
  }
  .home-shortcuts .ico { width: 17px; height: 17px; color: #12777b; }
  .home-shortcuts a[href="#students"] .ico { color: #8564b2; }
  .home-shortcuts a[href="#catalog"] .ico { color: #4f72ab; }
  .home-panel { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 16px; margin-top: 14px; }
  .home-section-head h2 { font-size: 17px; }
  .home-section-head a { min-height: 44px; gap: 2px; color: #596570; font-size: 13px; margin-block: -6px; }
  .home-section-head a .ico { width: 14px; height: 14px; }
  .home-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 12px 0 0; padding-top: 15px; border-top: 1px solid #eef0f2; }
  .home-counts > div { padding-inline: 12px; }
  .home-counts > div:first-child { padding-left: 0; }
  .home-counts > div + div { border-left: 1px solid #eef0f2; }
  .home-counts dt { font-size: 12px; color: var(--muted); }
  .home-counts dd { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
  .home-counts strong { margin-right: 3px; font-size: 26px; line-height: 1.25; color: #27353c; font-variant-numeric: tabular-nums; }
  #home-queued { color: var(--mobile-accent); }
  #home-attention { color: #98631b; }
  .home-empty, #home-queue-error { margin: 12px 0 0; padding: 12px 0; font-size: 14px; color: var(--muted); }
  #home-recent .recent-row { min-height: 60px; padding-block: 10px; gap: 9px; border-color: var(--line); }
  #home-recent .recent-row:last-child { padding-bottom: 2px; }
  #home-recent .avatar { border-radius: 50%; color: #41596c; background: #ecf1f5; }
  #home-recent .status { flex: none; }
  #home-recent .upload-batch > summary { padding-inline: 0; }
  .staff-app:has([data-screen="more"]:not([hidden])) { background: white; }
  .more-identity { gap: 13px; padding: 9px 2px 24px; border-bottom: 1px solid var(--line); }
  .more-logo { display: grid; place-items: center; width: 52px; height: 52px; background: #e0f1ef; color: var(--mobile-accent); border-radius: 16px; }
  .more-logo .ico { width: 31px; height: 31px; }
  .more-identity strong { display: block; font-size: 23px; letter-spacing: -.04em; }
  .more-identity div span { color: var(--muted); font-size: 14px; }
  [data-screen="more"] > .guide-heading { margin: 18px 0 4px; }
  .staff-app #more-title { margin: 0; color: var(--muted); font-size: 14px; }
  #mobile-directory a { width: 100%; min-height: 56px; gap: 15px; padding-inline: 4px; font-size: 16px; font-weight: 600; }
  #mobile-directory a .ico:last-child { width: 16px; height: 16px; margin-left: auto; color: #838d96; }
  .staff-app [data-screen] > h1.staff-sr-only { position: static; width: auto; height: auto; clip-path: none; margin-bottom: 16px; }
  .staff-app .card { border-radius: 14px; }
  .staff-app .homework-queue { background: transparent; }
  .staff-app .small-btn, .staff-app .primary { min-height: 44px; }
  .staff-app #queue-list .upload-batch, .staff-app #archive-list .upload-batch {
    margin: 8px 0; border: 1px solid var(--line); border-radius: 12px; background: white;
  }
  .staff-app .history-actions a { white-space: nowrap; }
  .staff-app .queue-actions { gap: 6px; }
  .staff-app .queue-heading { align-items: flex-start; gap: 12px; }
  .staff-app .roster-card, .staff-app .catalog-card { padding: 16px; }
  .roster-columns { display: none; }
  .catalog-columns, #catalog-list a { grid-template-columns: 2.8em minmax(0, 1fr) 4.4em; gap: 6px; padding: 12px 8px; }
  .catalog-search .search { flex: 1 1 125px; background: white; }
  #catalog-pagination { column-gap: 2px; }
  #catalog-pagination > :is(a,span) { min-height: 44px; }
  .roster-search { width: 100%; background: white; }
  #roster-list:not(:empty) { background: white; border: 1px solid var(--line); border-radius: 12px; }
  #roster-list li:last-child { border-bottom: 0; }
  #roster-list a { grid-template-columns: minmax(0, 1fr) 12px; gap: 4px 10px; }
  #roster-list a span { grid-column: 1; }
  #roster-list a::after { grid-row: 1 / 3; grid-column: 2; }
}
@media screen and (max-width: 600px) {
  .staff-app .upload-children { margin-inline: 0; padding-inline: 6px; }
}
.grading-board { background: white; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.board-toolbar, .board-toolbar > div, .board-filters, .board-toolbar label, .board-filters label { display: flex; align-items: center; gap: 8px; }
.board-toolbar { min-height: 62px; padding: 14px 18px; justify-content: space-between; flex-wrap: wrap; }
.board-toolbar > div, .board-filters { flex-wrap: wrap; }
.board-toolbar h2 { margin: 0; font-size: 17px; }
.board-count, .board-note, .board-receipt, .board-filters label, .board-toolbar label { color: var(--muted); font-size: 13px; }
.board-count b { font-weight: 600; }
.board-filters { gap: 8px 14px; padding: 0 18px 16px; }
.board-filters .search { max-width: 300px; flex: 1 1 200px; }
.board-filters .search input { width: 100%; padding: 8px; background: transparent; }
.grading-board select, .grading-board input[type=date] { max-width:100%; min-height: 36px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); font-size: 14px; }
.board-table { table-layout: fixed; font-size: 14px; font-variant-numeric: tabular-nums; }
.board-table :is(td,th) { padding: 10px 12px; max-width: none; border-bottom: 1px solid #e7eaf0; overflow-wrap: anywhere; }
.board-table td:last-child { width: auto; }
.board-table thead th { padding-block: 9px; font-size: 12px; background: #f3f5f8; border-block: 1px solid #e1e5ec; color: #515d70; }
.records-table thead th:nth-child(1) { width: 17%; }
.records-table thead th:nth-child(2) { width: 34%; }
.records-table thead th:nth-child(3) { width: 9%; }
.records-table thead th:nth-child(4) { width: 20%; }
#history-view .records-table thead th:nth-child(2) { width: 29%; }
.records-table th.board-manage { width: 5rem; }
.board-manage { text-align: right; }
.board-manage button { white-space: nowrap; }
.board-table small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.board-action { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; min-height:32px; border: 0; background: transparent; text-align:left; color: #30496d; font-weight: 700; font-size: 14px; overflow-wrap:anywhere; }
.board-action::after { content: ''; flex: none; width: 5px; height: 5px; border-right: 1.5px solid #8694a5; border-top: 1.5px solid #8694a5; transform: rotate(45deg); }
.board-action[aria-expanded]::after { transform: rotate(135deg); }
.board-action[aria-expanded=true]::after { transform: rotate(-45deg); }
.record-line,.day-line { cursor: pointer; }
.board-table :is(.record-line,.day-line):is(:hover,:focus-within), .record-line:has([aria-expanded=true]) { background: #f6f8fc; }
.board-book strong { font-weight: 550; }
.board-when { color: #47536a; }
.board-photos { color: var(--muted); }
.board-badge { display:inline-block; border-radius: 5px; padding: 3px 8px; font-size: 12px; font-weight: 650; background: #eef1f5; color: #535e70; }
.board-badge.done { background: #e7f3ee; color: #23664d; }
.board-badge.review { background: #fff0d6; color: #80510b; }
.board-badge.working { background: #e9eefb; color: #3a568b; }
.board-detail > td { background: #f8fafc; }
.board-receipt { padding: 6px 8px; }
.inbox-photo { display: inline-flex; flex: none; padding: 2px; border: 1px solid var(--line); background: white; border-radius: 5px; }
.inbox-photo:hover { border-color: var(--forest); }
.inbox-photo .upload-thumb { width: 56px; height: 64px; }
.homework-queue .homework-row > div:first-of-type { min-width: 0; overflow-wrap:anywhere; }
.homework-queue .board-detail .file-selection { padding-inline: 8px; }
.homework-queue .history-pager { margin: 14px 0; }
.homework-queue .board-filters .search input { min-width:0; }
.board-note, .board-empty { margin: 0; padding: 14px 18px; line-height: 1.55; }
.board-empty { padding-block: 28px; color: var(--muted); text-align: center; }
.board-recent { margin-top: 16px; border-block: 1px solid var(--line); }
.board-recent > summary { cursor: pointer; padding: 14px 6px; font-size: 14px; font-weight: 650; }
.days-table thead th:first-child { width: 27%; }
.days-table :is(th,td):not(:first-child) { text-align: right; }
.day-review.has-count { color: #875608; font-weight: 700; }
.day-done.has-count { color: #21654c; }
.mobile-cell-label { display: none; }
@media screen and (max-width: 760px) {
  .board-toolbar { padding: 12px; }
  .board-filters { display:grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); padding: 0 12px 12px; gap: 8px; }
  #history-view .board-filters .search, .homework-queue .board-filters .search { grid-column:1 / -1; width:100%; max-width:none; }
  .board-filters label:not(.search) { display:grid; gap: 3px; }
  .board-filters select, .board-filters input[type=date] { min-width:0; width:100%; }
  #history-all-days, .board-reset { grid-column:1 / -1; grid-row:3; justify-self:start; }
  .board-table, .board-table tbody, .board-table .board-detail, .board-table .board-detail > td { display: block; width: 100%; }
  .board-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .board-table .record-line, .board-table .day-line { display: grid; gap: 3px 10px; border-block-start: 1px solid var(--line); padding: 10px 12px; }
  .board-table :is(.record-line,.day-line) > :is(td,th) { padding: 0; border: 0; text-align: left; width: auto; }
  .record-line { grid-template-columns: minmax(0,1fr) auto; }
  .board-student { grid-column:1; grid-row:1; }
  .board-book { grid-column:1 / -1; grid-row:2; }
  .board-book small { display:inline; margin-left:6px; }
  .board-state { grid-column:2; grid-row:1; justify-self:end; align-self:center; }
  .board-state small { display:inline; margin-left:4px; }
  .board-when { grid-column:1; grid-row:3; font-size:12px; }
  .board-when small { display:inline; margin-left:5px; }
  .board-photos { grid-column:2; grid-row:3; justify-self:end; font-size:12px; }
  #archive-list .record-line { grid-template-columns:minmax(0,1fr) auto auto; }
  #archive-list .board-state { grid-column:2 / -1; }
  #archive-list :is(.board-when,.board-photos) { align-self:center; }
  #archive-list .board-manage { grid-column:3; grid-row:3; justify-self:end; }
  .homework-queue .board-state { max-width: 48vw; text-align:right; }
  .homework-queue .board-state small { display:block; }
  .homework-queue .homework-row { gap: 6px; }
  .homework-queue .homework-row > div:first-of-type { flex-basis: min(112px, 42%); }
  .day-line { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .day-line .board-day { grid-column:1 / -1; }
  .day-line td { font-size:13px; }
  .day-line .mobile-cell-label { display:inline; color: var(--muted); font-size:12px; }
  .board-note { padding: 10px 12px; border-top:1px solid var(--line); }
}
@media screen and (max-width: 760px), screen and (pointer: coarse) and (max-height: 540px) {
  #result-dialog {
    --result-x: calc(8px + env(safe-area-inset-left) + env(safe-area-inset-right));
    --result-y: calc(8px + env(safe-area-inset-top) + env(safe-area-inset-bottom));
    inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    width: calc(100vw - var(--result-x));
    height: calc(100vh - var(--result-y));
    height: calc(100dvh - var(--result-y));
    max-width: none;
    max-height: none;
    border-radius: 10px;
  }
  #result-dialog .dialog-head, #result-dialog .dialog-footer {
    gap: 4px;
    padding: 2px 8px;
    flex-wrap: nowrap;
  }
  #result-dialog .dialog-head > div { display: flex; flex: 1; align-items: center; min-width: 0; gap: 6px; }
  #result-dialog .dialog-head .guide-heading { display: contents; }
  #result-dialog .result-top { margin: 0; white-space: nowrap; }
  #result-dialog .result-top .ico { display: none; }
  #result-student {
    order: 1;
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #result-dialog .dialog-head .guide-icon { order: 2; }
  #result-dialog .dialog-head button, #result-nav button { min-width: 44px; min-height: 44px; }
  #result-dialog .dialog-content {
    flex: 1;
    container-type: size;
    padding: 4px 6px 8px;
  }
  #marked-preview { border: 0; border-radius: 0; }
  #marked-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - var(--result-y) - 120px);
    max-height: 100cqh;
    margin-inline: auto;
  }
  #result-nav { gap: 4px; }
  #result-nav button { padding-inline: 8px; font-size: 18px; }
  #result-dialog .result-nav-label, #result-dialog #save-state {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #result-dialog.single-result #result-nav,
  #result-dialog.single-result:not(.result-changed):not(.is-regrading) .dialog-footer:has(#delete-result[hidden]) { display: none; }
}
@media screen and (orientation: landscape), screen and (min-width: 761px) and (hover: hover) and (pointer: fine) {
  #result-dialog {
    width: min(96rem, calc(100% - var(--result-x, 32px)));
    height: calc(100vh - var(--result-y, 32px));
    height: calc(100dvh - var(--result-y, 32px));
    max-width: none;
    max-height: none;
  }
  #result-dialog .dialog-content {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
    container-type: normal;
  }
  #marked-sheet:not([hidden]) {
    display: flex;
    flex-direction: column;
    padding: clamp(6px, 1.2vw, 18px);
    border-inline-end: 1px solid var(--line);
  }
  #marked-preview:not([hidden]) {
    display: grid;
    flex: 1;
    min-height: 0;
    place-items: center;
    container-type: size;
    background: #f5f6f8;
  }
  #marked-image {
    width: auto;
    height: auto;
    max-width: 100cqw;
    max-height: 100cqh;
  }
  #result-details {
    padding: clamp(10px, 1.5vw, 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    overflow-wrap: anywhere;
  }
  #marked-sheet[hidden] + #result-details { grid-column: 1 / -1; }
}
@media print {
  .staff-sidebar, .staff-submenu, .mobile-tabs { display: none; }
}
