/* Meeting page additions on top of style.css */
.home-link { color: inherit; text-decoration: none; }
.space { margin-top: 22px; }
h1 { margin: 4px 0 4px; font-size: 24px; }
h3.sub { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 22px 0 8px; }
label { font-size: 14px; color: var(--muted); font-weight: 600; }
label.block { display: block; margin-top: 12px; }
label input, label select, label textarea { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
/* Checkboxes sit beside their text, never on a line of their own. */
label input:where([type=checkbox], [type=radio]) { display: inline-block; width: auto; margin-top: 0; flex: none; }
input.plain, input[type=date], input[type=number], input[type=datetime-local], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  color: var(--ink); font: inherit; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-top: 6px; }

.course-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.course-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
  font: inherit; cursor: pointer; text-align: left; }
.course-list li.group { margin-top: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.course-list li.group:first-child { margin-top: 0; }
.course-list .meta { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.view-by { display: inline-flex; margin-top: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); }
.view-by button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.view-by button.on { background: var(--brand); color: #fff; }
.course-list button:hover { border-color: var(--brand-2); background: var(--brand-soft); }
.badge { flex: none; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--grey); color: var(--muted); white-space: nowrap; }
.badge.d { background: var(--brand-soft); color: var(--brand); }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--yellow); color: var(--ink); }

.course-head { margin-top: 24px; }
.crumbs { font-size: 14px; }
.next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.next .when { font-weight: 600; flex: 1 1 260px; }
.next .when small { display: block; font-weight: 400; color: var(--muted); }
.req { margin-top: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid var(--brand); }
.req p { margin: 0 0 6px; }
.req .times { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.req .times label { font-weight: 400; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.req .times input { width: auto; display: inline; margin: 0; }

.tabs { display: flex; gap: 4px; margin: 18px 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }

.items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.items li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.items .meta { color: var(--muted); font-size: 13px; }
.items .x { float: right; margin-left: 10px; }
.empty { color: var(--muted); font-size: 14px; }

.act { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.act.done { opacity: .7; }
.act-top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.act-text { font-weight: 600; flex: 1 1 240px; }
.act-meta { color: var(--muted); font-size: 13px; }
.act select { padding: 6px 10px; }
.act .prog { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.act .upd { display: flex; gap: 8px; margin-top: 8px; }
.act .upd input { flex: 1; }
.group-h { margin: 18px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

details.add { margin-top: 16px; }
details.add summary { cursor: pointer; color: var(--brand); font-weight: 600; }

/* Reports */
.step { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.step.taken { opacity: .65; }
.step-top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.step-title { font-weight: 600; flex: 1 1 260px; }
.step .meta, .rep .meta { color: var(--muted); font-size: 13px; font-weight: 400; }
.step ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.step details summary { cursor: pointer; color: var(--brand); font-size: 14px; margin-top: 6px; }
.rep { padding: 12px 0; border-top: 1px solid var(--line); }
.rep:first-child { border-top: 0; }
.rep-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rep .row { margin-top: 8px; flex-wrap: wrap; }
.rep iframe { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; background: #fff; }
.rub { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.rub th, .rub td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.tally { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
#rep-file { flex: 1 1 240px; }
pre.log { max-height: 240px; overflow: auto; background: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: 12px; white-space: pre-wrap; }
#g-files .row { flex-wrap: wrap; }

/* Agenda */
.agenda h2 { margin-bottom: 0; }
.agenda .label { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--muted); margin: 4px 0 12px; }
.agenda h3 { font-size: 16px; margin: 18px 0 4px; color: var(--brand); }
.agenda ul { margin: 4px 0; padding-left: 20px; }
.agenda .fact { margin: 6px 0; }
.agenda .who { display: inline; background: none; padding: 0; font-size: 13px; color: var(--muted); }
.agenda .notes-box { margin-top: 6px; }
.agenda .notes-read { white-space: pre-wrap; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.held { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; margin-top: 14px; }
.held input { width: 18px; height: 18px; accent-color: var(--brand); }

.ov { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; align-items: start; margin-top: 12px; }
.ov dt { font-weight: 600; color: var(--muted); font-size: 14px; padding-top: 9px; }
.ov dd { margin: 0; }
.ov dd .ro { padding-top: 9px; white-space: pre-wrap; }
.ov .pair { display: flex; gap: 8px; flex-wrap: wrap; }
.ov .pair select { flex: 1 1 200px; }
.ov .check { margin-top: 0; }

.dialog-wrap { position: fixed; inset: 0; background: rgba(10, 14, 20, .45); display: grid; place-items: center; padding: 16px; z-index: 10; }
.dialog { width: 100%; max-width: 620px; margin: 0; }

body.teacher .d-only { display: none !important; }

@media (max-width: 600px) {
  .rub th:nth-child(3), .rub td:nth-child(3) { display: none; }
  .ov { grid-template-columns: 1fr; }
  .ov dt { padding-top: 0; }
}
@media print {
  .top, .tabs, footer, .course-head, .card:not(.agenda), .no-print { display: none !important; }
  .agenda { box-shadow: none; border: 0; break-after: page; }
}

/* One teacher's meetings across their courses */
.sub-line { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.t-course { margin-top: 16px; }
.t-course h2 { margin: 0; }
.t-list { margin: 6px 0 0; padding-left: 20px; }
.t-list li { margin-bottom: 6px; }
.t-meeting { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 8px; }
.t-meeting summary { cursor: pointer; font-weight: 600; }
.t-meeting .agenda { margin-top: 8px; }
.row.between { justify-content: space-between; margin-top: 0; }
.t-list .who { font-size: 13px; color: var(--muted); }
.group-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); font-size: 14px; }
.t-group { margin-top: 16px; }
.t-group .checks { display: grid; gap: 6px; margin-top: 8px; }
.t-group .checks label { font-weight: 400; color: var(--ink); display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.t-group .checks input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); }
.course-tag { font-weight: 600; color: var(--brand); }
