/* Shared by the tutor, team and student pages. System fonts only: no third-party
   requests, so the pages also load from mainland China. */
:root {
  --bg: #f6f5f2; --card: #ffffff; --ink: #17171a; --muted: #6b6b72; --line: #e6e3dc;
  --gold: #b8892b; --gold-soft: #f6ecd4; --dark: #111113; --on-dark: #f0d48a;
  --red: #c2412d; --red-soft: #fbe7e3; --green: #2f7d4f; --green-soft: #e3f3e8;
  --blue: #2f5f9e; --blue-soft: #e5edf8; --grey-soft: #efeee9;
  --alert-red: #e00000;
  --gold-line: #e6d3a3; --gold-shadow: 0 1px 2px rgba(184,137,43,.10), 0 3px 10px rgba(184,137,43,.10);
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.04);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121214; --card: #1b1b1f; --ink: #ededee; --muted: #a0a0a8; --line: #2c2c32;
    --gold: #d9ad55; --gold-soft: #2f2817; --dark: #0b0b0c; --on-dark: #f0d48a;
    --red: #ef8a78; --red-soft: #3a1f1a; --green: #7fcf9c; --green-soft: #183223;
    --blue: #8fb4ea; --blue-soft: #1a2638; --grey-soft: #26262b; --shadow: none;
    --alert-red: #ff5a5a;
    --gold-line: #5a4a26; --gold-shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 64px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 22px; gap: 12px; }
.brand { font-weight: 800; letter-spacing: .06em; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--gold); }
.brand small { font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
.linkbtn { background: none; border: 0; color: var(--muted); padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--dark); color: var(--on-dark); }
.btn-primary:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: var(--grey-soft); color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.startnote { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--blue); color: var(--ink); font-size: 14px; padding: 10px 14px; border-radius: 10px; margin: -8px 0 16px; }
.demo { background: var(--blue-soft); color: var(--blue); font-size: 13px; padding: 8px 12px; border-radius: 10px; margin-bottom: 16px; }

/* Login */
.login { max-width: 420px; margin: 8vh auto 0; padding: 30px 26px; }
.login h1 { font-size: 22px; margin: 0 0 6px; }
.login p { color: var(--muted); margin: 0 0 20px; }
label { display: block; font-weight: 600; margin: 0 0 6px; }
input[type=email], textarea { width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 11px 12px; font: inherit; }
input[type=email]:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.login .btn { width: 100%; margin-top: 14px; }
.msg { margin-top: 14px; font-size: 14px; }
.msg.err { color: var(--red); }

/* Profile */
.profile { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center; padding: 20px 22px; margin-bottom: 22px; background: var(--dark); color: #f4f4f5; border: 0; }
.profile h1 { margin: 0; font-size: 21px; }
.profile .sub { color: #a9a9b1; font-size: 13px; }
.payroll { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid #2a2a2e; }
.payroll .lbl { color: #a9a9b1; font-size: 13px; }
.payroll code { font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--on-dark); background: #1f1f23; padding: 6px 9px; border-radius: 7px; }
.payroll .btn-sm { background: #26262b; color: #f4f4f5; }
.payroll a.btn-sm { background: var(--on-dark); color: #111; }
.stat { text-align: right; }
.stat b { display: block; font-size: 26px; line-height: 1; color: var(--on-dark); }
.stat span { font-size: 12px; color: #a9a9b1; }

/* Tabs */
.tabs { display: flex; gap: 6px; margin: 0 0 14px; overflow-x: auto; }
.tab { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 14px; font-weight: 600; white-space: nowrap; }
.tab[aria-selected=true] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tab .n { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--grey-soft); color: var(--ink); font-size: 12px; text-align: center; }
.tab[aria-selected=true] .n { background: var(--gold); color: #111; }
.tab.alert .n { background: var(--red); color: #fff; }

/* Session list */
.list { display: grid; gap: 10px; }
.item { padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; }
.item h3 { margin: 0; font-size: 15.5px; font-weight: 650; }
.meta { color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.meta .id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.preview { grid-column: 1 / -1; font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; display: grid; gap: 4px; }
.preview b { color: var(--ink); font-weight: 600; }
.preview p { margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: pre-wrap; }
.badge { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.b-todo { background: var(--red-soft); color: var(--red); }
.b-edit { background: var(--green-soft); color: var(--green); }
.b-lock { background: var(--grey-soft); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--green); } /* green outline, same size as the other badges */
.b-up { background: var(--blue-soft); color: var(--blue); }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); }

/* Session form */
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-size: 14px; }
.sess-head { padding: 20px 22px; margin-bottom: 14px; }
.sess-head h1 { font-size: 20px; margin: 6px 0 8px; }
.form { padding: 20px 22px; }
.field { margin-bottom: 18px; }
.field .hint { color: var(--muted); font-size: 13px; margin: -2px 0 8px; }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
textarea[readonly] { background: var(--grey-soft); }
.count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 13.5px; color: var(--muted); }
.banner { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.banner.ok { background: var(--green-soft); color: var(--green); }
.banner.info { background: var(--gold-soft); color: var(--ink); }
.banner.err { background: var(--red-soft); color: var(--red); }
.tasks { margin: 0 0 10px; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 8px; }
.task { display: flex; align-items: center; gap: 6px; counter-increment: t; }
.task::before { content: counter(t) "."; width: 22px; text-align: right; color: var(--muted); font-weight: 600; flex: none; }
.task-input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 10px 12px; font: inherit; }
.task-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.icon { flex: none; width: 34px; height: 38px; border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 8px; font-size: 16px; }
.icon:hover { color: var(--ink); }
.icon.up { filter: grayscale(1); opacity: .45; }
.icon.up[aria-pressed=true] { filter: none; opacity: 1; background: var(--gold-soft); border-color: var(--gold); }
.clip { color: var(--gold); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ro-list { list-style: decimal; padding-left: 22px; gap: 6px; }
.ro-list li { padding-left: 4px; }
.ro { margin: 0; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-top: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.add { margin-top: 2px; }
.opt { font-weight: 400; color: var(--muted); }
.form .actions { margin-top: 6px; }
.form .note { margin: 12px 0 0; }
fieldset.fields { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Indeterminate progress bar shown while a request is running */
.progress { margin-top: 14px; }
.progress[hidden] { display: none; }
.progress .bar { position: relative; height: 4px; border-radius: 2px; background: var(--grey-soft); overflow: hidden; }
.progress .bar span { position: absolute; top: 0; bottom: 0; left: -35%; width: 35%; border-radius: 2px; background: var(--gold); animation: progress-slide 1.2s ease-in-out infinite; }
.progress p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
@keyframes progress-slide { from { left: -35%; } to { left: 100%; } }
@keyframes progress-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .progress .bar span { left: 0; width: 100%; animation: progress-pulse 1.6s ease-in-out infinite; }
}
ol.mini { margin: 0; padding-left: 0; list-style: decimal inside; color: var(--ink); }
ol.mini li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.mini li.more { list-style: none; color: var(--muted); }
.dialog { border: 0; border-radius: var(--radius); padding: 22px; max-width: 480px; width: calc(100% - 32px); background: var(--card); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.dialog::backdrop { background: rgba(0,0,0,.45); }
.dialog h2 { margin: 0 0 8px; font-size: 18px; }
.dialog p { color: var(--muted); }
.dialog .actions { margin-top: 18px; }
@media (max-width: 560px) { .form .actions .btn { width: 100%; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

@media (max-width: 560px) {
  .profile { grid-template-columns: 1fr; }
  .stat { text-align: left; }
  .item { grid-template-columns: 1fr; }
  .brand small { display: none; }
}

/* Shared additions: attachments, collapsible homework, team portal, student page */
.task { display: grid; grid-template-columns: 22px 1fr; gap: 6px; align-items: start; }
.task::before { margin-top: 10px; }
.task-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.task-files { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.task-files:empty { display: none; }
.icon.attach { width: auto; padding: 0 9px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 5px 8px; font-size: 13px; color: var(--ink); text-decoration: none; }
a.chip:hover { border-color: var(--gold); }
.chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.chip .sz { color: var(--muted); font-size: 12px; }
.chip .x { border: 0; background: none; color: var(--muted); padding: 0 2px; font-size: 15px; line-height: 1; }
.chip.busy { color: var(--muted); }
.chip.bad { border-color: var(--red); color: var(--red); }
.ro-files { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.hw-body[hidden] { display: none; }
.hw-collapsed { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.edited { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); margin-left: 6px; }
.b-team { background: var(--blue-soft); color: var(--blue); }
.b-sent { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.b-miss { background: var(--red-soft); color: var(--red); }
.b-review { background: var(--gold-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14px; }
.facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.search { flex: 1; min-width: 200px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 9px 12px; font: inherit; }
.search:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.who-line { color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
details.orig { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--card); }
details.orig summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.orig pre { white-space: pre-wrap; font: inherit; font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.btn-send { background: var(--green); color: #fff; }
.btn-send:disabled { opacity: .55; cursor: default; }
.student { max-width: 680px; margin: 0 auto; }
.student .sess-head h1 { font-size: 22px; }

/* Task options line: reading material + hand-in, in words rather than icons */
.task-opts { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.opt-btn { border: 0; background: none; padding: 2px 0; color: var(--gold); font-size: 13.5px; font-weight: 600; }
.opt-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.handin { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; padding: 2px 8px 2px 4px; border-radius: 999px; }
.handin input { width: 16px; height: 16px; margin: 0; accent-color: #2f5f9e; }
.handin.on { color: var(--green); background: var(--green-soft); font-weight: 600; }
fieldset:disabled .opt-btn, fieldset:disabled .handin { opacity: .5; cursor: default; }
.clip { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
@media (max-width: 560px) {
  /* Phones: "Add reading material" and ↑ ↓ × share a line; the hand-in tick goes underneath. */
  .handin { order: 3; }
}

/* Task text grows with its content */
textarea.task-input { display: block; width: 100%; min-height: 0; resize: none; overflow: hidden; line-height: 1.45; padding: 10px 12px; }

/* "Student must hand in a file": solid blue with white text when ticked, so it stands out */
.handin.on { color: #fff; background: #2f5f9e; font-weight: 600; }
.handin.on input { accent-color: #fff; }
.clip { background: #2f5f9e; color: #fff; }

/* Each task in the editor sits in its own light-gold box */
.tasks:not(.ro-list) { gap: 12px; }
.tasks:not(.ro-list) > .task { border: 1px solid var(--gold-line); border-radius: 12px; padding: 12px 14px 10px 10px; background: var(--card); box-shadow: var(--gold-shadow); row-gap: 8px; }
@media (max-width: 560px) {
  .form { padding: 16px 14px; }
  .tasks:not(.ro-list) > .task { padding: 10px 10px 8px 6px; grid-template-columns: 18px 1fr; column-gap: 4px; }
  .task-opts { column-gap: 10px; }
}

/* Remove: a quiet text button at the end of the options line */
.remove-btn { margin-left: auto; border: 0; background: none; padding: 2px 4px; color: var(--muted); font-size: 13.5px; font-weight: 600; border-radius: 6px; }
.remove-btn:hover { color: var(--red); background: var(--red-soft); }
@media (max-width: 560px) { .remove-btn { order: 2; } }

/* Tips: one per line, with a bullet */
ul.tips { margin: 0 0 10px; padding-left: 18px; }
ul.tips li { margin: 2px 0; }
ul.tips li::marker { color: var(--gold); }
.form ul.note.tips { margin-top: 12px; }

/* Why "Send to Student" can't be used: bright red so it is noticed */
ul.tips.blockers li { color: var(--alert-red); font-weight: 600; }
ul.tips.blockers li::marker { color: var(--alert-red); }
.alert-red { color: var(--alert-red); font-weight: 600; }

/* Sessions not on the portal: visible for context, greyed out, nothing to click */
.item.off { opacity: .62; background: var(--grey-soft); box-shadow: none; }
.b-off { background: var(--grey-soft); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* Student portal */
.top-r { display: flex; gap: 14px; }
a.item.link { color: inherit; text-decoration: none; }
a.item.link:hover { border-color: var(--gold); }
.sid { display: inline-flex; align-items: center; gap: 8px; }
.payroll .req { margin-left: auto; }
.s-todo { background: var(--red-soft); color: var(--red); }
.s-draft { background: var(--gold-soft); color: var(--ink); }
.s-redo, .s-overdue { background: var(--alert-red); color: #fff; }
.s-submitted { background: var(--blue-soft); color: var(--blue); }
.s-completed { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
.s-cancelled { background: var(--grey-soft); color: var(--muted); }
.st-tasks { gap: 12px; }
.st-tasks > .st-task { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.st-tasks > .st-task::before { content: none; }
.st-tasks > .st-task.redo { border-color: var(--alert-red); }
.st-text { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.st-text::before { content: counter(t) "."; color: var(--muted); }
.st-text .clip { margin-left: 0; }
.st-body { display: grid; gap: 8px; margin-top: 8px; }
.st-body:empty { display: none; }
.st-body .lbl { color: var(--muted); font-size: 13px; margin-right: 2px; }
.st-body .ro-files { align-items: center; margin: 0; }
.st-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.st-done { margin: 0; }
textarea.st-comment { min-height: 0; font-size: 14px; }
.st-ro p { margin: 0; font-size: 14px; }
.review-note { margin: 0; color: var(--alert-red); font-weight: 600; font-size: 14px; }
.ts-submitted, .ts-not-done { background: var(--blue-soft); color: var(--blue); }
.ts-not-done { background: var(--grey-soft); color: var(--muted); }
.ts-reviewed { background: var(--green-soft); color: var(--green); }
.ts-needs-redo { background: var(--alert-red); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Loading: a small spinning ring above the text */
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.loading::before { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--gold-soft); border-top-color: var(--gold); animation: ao-spin .8s linear infinite; }
.loading .spinner { display: none; }
@keyframes ao-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading::before { animation-duration: 2.4s; } }

/* Homework as cards: one per task, tutor's side left, student's side right */
.sum { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.sum .bar { flex: 1 1 100%; height: 6px; border-radius: 3px; background: var(--grey-soft); overflow: hidden; display: flex; }
.sum .bar i { display: block; height: 100%; }
.sum .tools { margin-left: auto; display: flex; gap: 12px; }
.sum .tools .linkbtn { padding: 0; font-size: 13.5px; }
.notes-line { display: flex; gap: 8px; align-items: baseline; font-size: 14px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.notes-line b { flex: none; }
.notes-line .nt { white-space: pre-wrap; overflow-wrap: anywhere; }
.tcards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tcard { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.tcard.need { border-color: var(--gold); box-shadow: var(--gold-shadow); }
.tcard.redo { border-color: var(--alert-red); }
.tcard > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.tcard > summary::-webkit-details-marker { display: none; }
.tcard .num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grey-soft); color: var(--ink); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.tcard .ttl { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.tcard .ttl small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tcard .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tcard .tags .clip { margin-left: 0; }
.tcard .chev { flex: none; color: var(--muted); transition: transform .15s; }
.tcard[open] .chev { transform: rotate(90deg); }
.zones { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.zones.one { grid-template-columns: 1fr; }
.zone { padding: 12px 14px; display: grid; gap: 8px; align-content: start; font-size: 14px; min-width: 0; }
.zone + .zone { border-left: 1px solid var(--line); }
.zone h4 { margin: 0; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.zone.tutor { background: #fbf7ee; }
.zone.stud { background: #f3f6fb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zone.tutor { background: #211d14; } :root:not([data-theme="light"]) .zone.stud { background: #161c26; } }
.zone p { margin: 0; }
.zone .ro-files { margin: 0; }
.zone .empty-line { color: var(--muted); font-style: italic; }
.zone textarea { min-height: 0; font-size: 14px; }
.decide { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13.5px; }
.pill.ok.on { background: var(--green); color: #fff; border-color: var(--green); }
.pill.back.on { background: var(--alert-red); color: #fff; border-color: var(--alert-red); }
.tab-hint { margin: -6px 0 12px; font-size: 13.5px; color: var(--muted); }
.b-ready { background: var(--green-soft); color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }
@media (max-width: 640px) {
  .zones { grid-template-columns: 1fr; }
  .zone + .zone { border-left: 0; border-top: 1px solid var(--line); }
  .tcard > summary { flex-wrap: wrap; }
  .tcard .tags { order: 3; flex-basis: 100%; justify-content: flex-start; padding-left: 36px; }
  .tcard .chev { order: 2; }
}
.pill { display: inline-flex; align-items: center; gap: 4px; height: 34px; line-height: 1; }
.zone h4 { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 650; }

/* Approve / Send back: a light tint on hover, filled once chosen */
.pill { cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.pill.ok:not(.on):hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.pill.back:not(.on):hover { border-color: var(--alert-red); color: var(--alert-red); background: var(--red-soft); }

/* "Show more" under long lists */
.more-wrap { display: flex; justify-content: center; padding: 6px 0 2px; }
.more-wrap[hidden] { display: none; }
.more-btn { min-width: 220px; }
