:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --line-soft: rgba(0, 0, 0, 0.06);
  --blue: #007aff;
  --blue-soft: #e8f2ff;
  --green: #34c759;
  --green-soft: #e8f8ed;
  --amber: #ff9f0a;
  --amber-soft: #fff4df;
  --red: #ff3b30;
  --red-soft: #ffe9e7;
  --gray-soft: #eeeeef;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 122, 255, 0.11), transparent 32%),
    radial-gradient(circle at top right, rgba(52, 199, 89, 0.09), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(245, 245, 247, 0.78);
  backdrop-filter: blur(22px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 28px));
  min-height: 54px;
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: #1d1d1f;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.brand-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.brand-subtitle {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.nav-links {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.nav-link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link {
  border-color: transparent;
  color: var(--muted);
}

.nav-link.active,
.nav-link:hover,
.btn:hover {
  border-color: var(--line);
  background: white;
}

.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.btn:disabled {
  border-color: var(--line);
  background: var(--gray-soft);
  color: var(--faint, var(--muted));
  cursor: not-allowed;
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  min-height: 26px;
  padding: 0 9px;
  font-size: 12px;
}

.main {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 28px;
}

.glass,
.panel {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.student-page,
.admin-page {
  display: grid;
  gap: 12px;
}

.student-hero,
.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
}

.student-hero h1,
.admin-hero h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.student-hero p,
.admin-hero p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.access-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

input,
select,
textarea {
  width: 100%;
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 62px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.search:focus {
  border-color: rgba(0, 122, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

input[readonly] {
  background: var(--surface-soft);
  color: var(--muted);
}

.student-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.25fr 1.35fr 0.92fr;
  gap: 12px;
  align-items: start;
}

.student-grid.is-locked {
  opacity: 0.58;
}

.compact-panel,
.admin-card {
  padding: 12px;
}

.panel-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-head-row h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.soft-copy,
.micro-note,
.micro-info {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.soft-copy {
  margin: 0 0 10px;
}

.micro-note {
  margin: 8px 0 0;
}

.micro-info {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.step-list {
  display: grid;
  gap: 7px;
}

.mini-step {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.mini-step.done {
  background: var(--green-soft);
}

.mini-step span {
  display: grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.mini-step strong {
  display: block;
  font-size: 13px;
}

.mini-step p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.video-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.video-strip span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-exam {
  display: grid;
  gap: 8px;
}

.question {
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.question-title {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.question-title span {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #1f5eb8;
  font-size: 10px;
  font-weight: 760;
}

.option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 8px;
}

.option {
  display: flex;
  gap: 5px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.35;
}

.option input {
  width: auto;
  min-height: auto;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.text-option input {
  width: 100%;
  min-height: 30px;
  margin: 0;
}

.details-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.details-list div {
  display: grid;
  gap: 2px;
}

.details-list dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.details-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pill.green {
  background: var(--green-soft);
  color: #178a34;
}

.pill.blue {
  background: var(--blue-soft);
  color: #0056b3;
}

.pill.amber {
  background: var(--amber-soft);
  color: #9a5d00;
}

.pill.red {
  background: var(--red-soft);
  color: #b3261e;
}

.pill.gray {
  background: var(--gray-soft);
  color: #5f6368;
}

.admin-hero {
  grid-template-columns: minmax(0, 1fr) 190px 360px;
}

.admin-hero > *,
.admin-grid > *,
.code-card,
.metric-strip {
  min-width: 0;
}

.code-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.code-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.code-card strong {
  font-size: 20px;
  letter-spacing: 0;
}

.code-card .btn {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.metric-tiny {
  min-width: 70px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.metric-tiny span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.metric-tiny strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1fr) minmax(320px, 1.1fr);
  gap: 12px;
  align-items: start;
}

.app-shell.is-admin .topbar-inner,
.app-shell.is-admin .main {
  width: min(1180px, calc(100% - 24px));
}

.app-shell.is-admin .main {
  padding-top: 8px;
}

.app-shell.is-admin .brand-title {
  font-size: 0.94rem;
}

.app-shell.is-admin .brand-subtitle {
  font-size: 0.7rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(230px, 270px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.admin-detail {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.admin-mode-tabs {
  display: inline-flex;
  width: fit-content;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-mode-tab {
  min-height: 26px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 760;
}

.admin-mode-tab.active {
  background: var(--blue-soft);
  color: #1f5eb8;
}

.admin-page {
  display: grid;
  gap: 10px;
}

.admin-login-page {
  display: grid;
  min-height: calc(100vh - 96px);
  place-items: center;
}

.admin-login-card {
  display: grid;
  width: min(460px, 100%);
  gap: 14px;
  padding: 20px;
}

.admin-login-card h1 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.18;
}

.admin-login-card p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-login-form {
  display: grid;
  gap: 10px;
}

.batch-sidebar {
  position: sticky;
  top: 10px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.batch-list,
.batch-actions {
  display: grid;
  gap: 7px;
}

.batch-button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.batch-button.active {
  border-color: rgba(79, 134, 247, 0.42);
  background: var(--blue-soft);
}

.batch-button strong,
.batch-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-button strong {
  font-size: 0.78rem;
  line-height: 1.25;
}

.batch-button span {
  color: var(--muted);
  font-size: 0.68rem;
}

.admin-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.24fr) minmax(260px, 0.4fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.admin-summary-card h1 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.18;
}

.admin-summary-card p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.admin-detail .admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.resource-page,
.question-page {
  width: 100%;
}

.resource-summary-card {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
}

.resource-grid {
  grid-template-columns: minmax(280px, 0.76fr) minmax(420px, 1.24fr);
}

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

.video-upload-form {
  margin-bottom: 10px;
}

.video-drop-field input[type="file"] {
  min-height: 36px;
  padding: 7px 8px;
}

.video-file-list {
  display: grid;
  gap: 8px;
}

.video-file-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.video-file-row > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: #167348;
  font-size: 0.7rem;
  font-weight: 760;
}

.video-file-row strong,
.video-file-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-file-row strong {
  font-size: 0.78rem;
}

.video-file-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
}

.app-shell.is-admin .admin-card {
  padding: 10px;
}

.app-shell.is-admin .panel-head-row {
  margin-bottom: 8px;
}

.app-shell.is-admin .panel-head-row h2 {
  font-size: 0.9rem;
}

.app-shell.is-admin .eyebrow,
.app-shell.is-admin .field span,
.app-shell.is-admin .metric-tiny span,
.app-shell.is-admin th,
.app-shell.is-admin .person span,
.app-shell.is-admin td span {
  font-size: 0.66rem;
}

.app-shell.is-admin input,
.app-shell.is-admin select,
.app-shell.is-admin textarea {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 0.78rem;
}

.app-shell.is-admin textarea {
  min-height: 54px;
}

.app-shell.is-admin .usage-notice-editor-card textarea {
  min-height: 210px;
}

.app-shell.is-admin .btn,
.app-shell.is-admin .tab {
  min-height: 27px;
  font-size: 0.76rem;
}

.app-shell.is-admin .btn.small {
  min-height: 24px;
  font-size: 0.7rem;
}

.app-shell.is-admin .metric-tiny {
  min-width: 0;
  padding: 7px 8px;
}

.app-shell.is-admin .metric-tiny strong,
.app-shell.is-admin .code-card strong {
  font-size: 1rem;
}

.app-shell.is-admin .question-editor {
  gap: 6px;
  padding: 8px;
}

.roster-card {
  grid-column: 1 / -1;
}

.tight-form {
  display: grid;
  gap: 8px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.three {
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
}

.form-row.three.even {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-row.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 4px;
}

.field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.form-actions,
.row-actions,
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.admin-toolbar {
  justify-content: space-between;
  margin-bottom: 8px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tab {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.tab.active {
  border-color: rgba(0, 122, 255, 0.3);
  background: var(--blue-soft);
  color: #0056b3;
}

.file-action {
  position: relative;
  overflow: hidden;
}

.file-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.search {
  width: min(240px, 100%);
}

.question-preview {
  display: grid;
  gap: 7px;
}

.question-preview article {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.question-preview span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #0056b3;
  font-size: 11px;
  font-weight: 700;
}

.question-preview p {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
}

.question-bank-form,
.question-editor-list {
  display: grid;
  gap: 8px;
}

.question-editor {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.question-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.question-editor-head span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #0056b3;
  font-size: 11px;
  font-weight: 700;
}

.question-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.type-options,
.type-judge,
.type-blank {
  display: grid;
  gap: 7px;
}

.answer-row {
  align-items: end;
}

.multi-answer-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.answer-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
  align-items: center;
}

.answer-checks label {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.answer-checks input {
  width: auto;
  min-height: auto;
  margin: 0;
  accent-color: var(--blue);
}

.question-type-single .multi-answer-field,
.question-type-single .type-judge,
.question-type-single .type-blank,
.question-type-multiple .single-answer-field,
.question-type-multiple .type-judge,
.question-type-multiple .type-blank,
.question-type-judge .type-options,
.question-type-judge .type-blank,
.question-type-blank .type-options,
.question-type-blank .type-judge {
  display: none;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
  font-size: 12px;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.person {
  display: grid;
  gap: 2px;
}

.person strong {
  font-size: 13px;
}

.person span,
td span {
  color: var(--muted);
  font-size: 11px;
}

.learning-code {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(79, 134, 247, 0.22);
  border-radius: 999px;
  background: var(--blue-soft);
  color: #244f9f;
  font-weight: 760;
  white-space: nowrap;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(340px, calc(100% - 36px));
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(20px);
}

@media (max-width: 1100px) {
  .student-grid,
  .admin-grid,
  .student-hero,
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .main {
    width: min(100% - 20px, 1240px);
    padding-top: 10px;
  }

  .app-shell.is-student .topbar-inner,
  .app-shell.is-student .main {
    width: min(100% - 20px, 920px);
  }

  .app-shell.is-student .main {
    padding-top: 6px;
  }

  .student-hero h1,
  .admin-hero h1 {
    font-size: 20px;
  }

  .access-form,
  .study-entry,
  .video-strip,
  .form-row.two,
  .form-row.three,
  .form-row.four,
  .metric-strip,
  .option-list {
    grid-template-columns: 1fr;
  }

  .access-form {
    display: grid;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }
}

/* Student pass redesign */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f3f6f4;
  --ink: #1f2933;
  --muted: #667085;
  --faint: #8b98a7;
  --line: #e3e7ec;
  --line-soft: #edf0f3;
  --blue: #4f86f7;
  --blue-soft: #eaf1ff;
  --green: #39b978;
  --green-soft: #e9f7ef;
  --amber: #d8921f;
  --amber-soft: #fff4df;
  --red: #d6453d;
  --red-soft: #ffe9e7;
  --shadow: 0 12px 32px rgba(31, 41, 51, 0.07);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 250, 0.96)),
    radial-gradient(circle at 18% 10%, rgba(191, 231, 219, 0.28), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(244, 210, 143, 0.2), transparent 30%),
    var(--bg);
}

.topbar {
  position: static;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.topbar-inner {
  min-height: 48px;
}

.app-shell.is-student .topbar-inner,
.app-shell.is-student .main {
  width: min(920px, calc(100% - 28px));
}

.app-shell.is-student .topbar-inner {
  min-height: 44px;
}

.app-shell.is-student .main {
  padding-top: 6px;
}

.app-shell.is-student .brand {
  gap: 8px;
}

.brand-mark {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid rgba(79, 134, 247, 0.18);
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(79, 134, 247, 0.88), rgba(79, 134, 247, 0.54) 48%, transparent 48%),
    linear-gradient(145deg, rgba(191, 231, 219, 0.92), rgba(244, 210, 143, 0.86));
  box-shadow: 0 10px 22px rgba(79, 134, 247, 0.12);
  clip-path: polygon(25% 4%, 75% 4%, 100% 50%, 75% 96%, 25% 96%, 0 50%);
}

.app-shell.is-student .brand-mark {
  flex-basis: 34px;
  width: 34px;
  height: 34px;
  border-color: rgba(57, 185, 120, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(234, 241, 255, 0.98), rgba(233, 247, 239, 0.98) 58%, rgba(255, 244, 223, 0.98)),
    #ffffff;
  clip-path: none;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  left: 9px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  content: "";
}

.brand-mark::before {
  top: 9px;
  width: 16px;
}

.brand-mark::after {
  top: 15px;
  width: 11px;
}

.app-shell.is-student .brand-mark::before {
  top: 10px;
  left: 8px;
  width: 18px;
  height: 13px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 -5px 0 rgba(79, 134, 247, 0.15),
    0 4px 10px rgba(31, 41, 51, 0.07);
}

.app-shell.is-student .brand-mark::after {
  top: 13px;
  left: 14px;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid #2f65d1;
  border-left: 2px solid #2f65d1;
  border-radius: 0;
  background: transparent;
  transform: rotate(-45deg);
}

.brand-title {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 780;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.76rem;
}

.app-shell.is-student .brand-title {
  font-size: 0.92rem;
}

.app-shell.is-student .brand-subtitle {
  font-size: 0.68rem;
}

.glass,
.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.student-page {
  width: min(920px, 100%);
  margin: 0 auto;
  gap: 8px;
}

.student-gate {
  display: grid;
  min-height: calc(100vh - 92px);
  place-items: start center;
  padding-top: clamp(18px, 7vh, 76px);
}

.gate-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(18px, 3vw, 34px);
  width: min(920px, 100%);
  padding: clamp(18px, 3vw, 28px);
}

.gate-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.gate-mini-flow {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.gate-mini-flow span {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.gate-copy h1,
.student-ticket h1 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.16;
}

.gate-copy p,
.ticket-location {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.42;
}

.gate-form {
  display: grid;
  gap: 10px;
}

.gate-stack {
  display: grid;
  gap: 10px;
}

.gate-submit {
  min-height: 38px;
}

.continue-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.continue-card span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 740;
}

.continue-card strong {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
}

.lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.student-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.28fr);
  gap: 10px;
  align-items: stretch;
  padding: clamp(8px, 1.2vw, 11px);
}

.ticket-main {
  display: grid;
  gap: 5px;
}

.ticket-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ticket-tags span {
  display: inline-flex;
  min-height: 21px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 680;
}

.account-note {
  color: var(--muted);
  font-size: 0.76rem;
}

.ticket-status {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-soft);
}

.ticket-status strong {
  font-size: 0.82rem;
  line-height: 1.3;
}

.ticket-status small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.ticket-code {
  font-weight: 760;
}

.student-section-head {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.student-section-head h2 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

.student-section-title {
  margin-bottom: 7px;
}

.student-section-title h2 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.25;
}

.student-section-head.compact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.student-flow-card,
.notice-card,
.learning-card,
.exam-card {
  padding: clamp(9px, 1.4vw, 12px);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  min-height: auto;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.flow-step.done {
  border-color: rgba(57, 185, 120, 0.24);
  background: var(--green-soft);
}

.flow-step span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #2f65d1;
  font-size: 0.68rem;
  font-weight: 760;
}

.flow-step.done span {
  background: #ffffff;
  color: #24824f;
}

.flow-step strong {
  display: block;
  font-size: 0.8rem;
}

.flow-step p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.notice-grid article {
  display: grid;
  gap: 3px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.notice-grid span,
.study-entry span,
.video-entry span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 740;
}

.notice-grid strong,
.study-entry strong,
.video-entry strong {
  font-size: 0.82rem;
  line-height: 1.35;
}

.notice-grid p,
.notice-copy,
.study-entry small,
.video-entry small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.38;
}

.notice-copy {
  margin: 5px 0 0;
}

.learning-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.entry-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
}

.study-entry,
.video-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.study-entry div,
.video-entry div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.study-entry strong,
.video-entry strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-page .exam-card {
  min-width: 0;
}

.student-page .question {
  background: #ffffff;
}

.student-page .option-list {
  grid-template-columns: 1fr;
}

.student-page .compact-exam {
  gap: 9px;
}

.student-subpage-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: clamp(10px, 1.5vw, 14px);
}

.student-subpage-head h1 {
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
  line-height: 1.16;
}

.student-subpage-head p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.video-player-card {
  display: grid;
  gap: 10px;
  padding: clamp(10px, 1.5vw, 14px);
}

.video-stack {
  display: grid;
  gap: 10px;
}

.video-resource-card {
  gap: 8px;
}

.video-resource-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.video-resource-head > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: #167348;
  font-size: 0.72rem;
  font-weight: 760;
}

.video-resource-head strong,
.video-resource-head small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-resource-head small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.video-player-card video,
.video-placeholder {
  width: 100%;
  min-height: clamp(210px, 42vw, 430px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101828;
}

.video-resource-card video,
.video-resource-card .video-placeholder {
  min-height: clamp(150px, 28vw, 300px);
}

.video-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  color: #ffffff;
  text-align: center;
}

.video-placeholder span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 740;
}

.video-placeholder strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-placeholder p,
.video-meta p,
.video-meta small {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.video-meta {
  display: grid;
  gap: 8px;
}

.in-page-exam {
  padding: clamp(10px, 1.5vw, 14px);
}

.exam-actions {
  justify-content: flex-end;
}

.notice-read-page {
  width: min(840px, 100%);
}

.usage-notice {
  padding: clamp(16px, 2.5vw, 24px);
}

.usage-notice h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.18;
}

.notice-version {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.usage-notice-body {
  display: grid;
  max-height: min(56vh, 560px);
  gap: 10px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.usage-notice-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.72;
}

.usage-notice-body mark {
  padding: 0 0.2em;
  border-radius: 4px;
  background: rgba(255, 213, 79, 0.42);
  color: inherit;
}

.usage-notice-body strong {
  color: #1c4d9c;
  font-weight: 790;
}

.notice-heading {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.35;
}

.notice-callout {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.65;
}

.notice-callout.danger {
  border-color: rgba(214, 69, 61, 0.22);
  background: var(--red-soft);
  color: #8f241f;
}

.notice-callout.info {
  border-color: rgba(79, 134, 247, 0.24);
  background: var(--blue-soft);
  color: #244f9f;
}

.notice-read-status {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.notice-progress {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: var(--line-soft);
}

.notice-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.25s ease;
}

.notice-confirm-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.notice-confirm-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.usage-notice-editor-card textarea {
  min-height: 260px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.format-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 900px) {
  .admin-shell,
  .admin-hero,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .batch-sidebar {
    position: static;
  }

  .admin-summary-card,
  .admin-detail .admin-grid {
    grid-template-columns: 1fr;
  }

  .gate-card,
  .student-ticket,
  .learning-shell {
    grid-template-columns: 1fr;
  }

  .flow-steps,
  .notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    align-items: center;
    flex-direction: row;
    padding: 0;
  }

  .student-gate {
    min-height: auto;
    padding-top: 12px;
  }

  .gate-card {
    gap: 16px;
  }

  .flow-steps,
  .notice-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .student-subpage-head,
  .question-option-grid,
  .continue-card,
  .lookup-form {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: auto;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .study-entry,
  .video-entry {
    grid-template-columns: 1fr;
  }

  .notice-confirm-row {
    grid-template-columns: 1fr;
  }

  .study-entry .btn,
  .video-entry .btn {
    width: 100%;
  }
}

/* Mini-program administration stays inside the existing workspace. */
.app-shell.is-admin .ad-portal {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.app-shell.is-admin .ad-portal .ad-subtabs { flex: none; flex-wrap: wrap; gap: 20px; }
.app-shell.is-admin .ad-portal .ad-subtabs button { min-height: 44px; }
.app-shell.is-admin .ad-portal .ad-toolbar .ad-inline-field { flex-wrap: wrap; }
.app-shell.is-admin .ad-portal .ad-resource-item { width: 100%; }
.app-shell.is-admin .ad-portal .ad-resource-item > div { display: grid; gap: 5px; }
.app-shell.is-admin .ad-portal .ad-resource-item strong { font-size: 12px; font-weight: 500; }
.app-shell.is-admin .ad-portal .ad-resource-item small { display: block; font-size: 10px; color: var(--muted); }
.app-shell.is-admin .ad-portal :is(strong, small, p, dd) { overflow-wrap: anywhere; }
.app-shell.is-admin .ad-portal .ad-plain-table small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.app-shell.is-admin .ad-portal .ad-editor-title,
.app-shell.is-admin .ad-portal .row-actions,
.app-shell.is-admin .ad-portal-document-actions { flex-wrap: wrap; }
.app-shell.is-admin .ad-portal :is(input, select, textarea) { width: 100%; }
.app-shell.is-admin .ad-portal textarea { max-width: 100%; }
.app-shell.is-admin .ad-portal .btn { min-height: 44px; white-space: normal; }
.app-shell.is-admin .ad-portal-settings form { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
.app-shell.is-admin .ad-portal-settings form + form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.app-shell.is-admin .ad-portal :is(h2, legend) { margin: 0; font-size: 14px; font-weight: 600; }
.app-shell.is-admin .ad-portal h2 small { color: var(--muted); font-size: 11px; margin-left: 8px; }
.app-shell.is-admin .ad-portal-specs { border: 0; padding: 0; margin: 0; }
.app-shell.is-admin .ad-portal-specs legend { padding: 0 0 12px; }
.app-shell.is-admin .ad-portal-specs > .btn { margin-top: 12px; }
.app-shell.is-admin .ad-portal-spec { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: 12px; align-items: end; margin-bottom: 12px; }
.app-shell.is-admin .ad-portal-inbox > section + section { margin-top: 28px; }
.app-shell.is-admin .ad-portal-inbox h2 { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.app-shell.is-admin .ad-portal-record { padding: 16px 0; border-bottom: 1px solid #edf1f5; font-size: 12px; }
.app-shell.is-admin .ad-portal-record-head,
.app-shell.is-admin .ad-portal-record-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.app-shell.is-admin .ad-portal-record-head strong { font-weight: 500; }
.app-shell.is-admin .ad-portal-record-head > span,
.app-shell.is-admin .ad-portal-record-meta > span { color: var(--muted); font-size: 11px; }
.app-shell.is-admin .ad-portal-record p { margin: 10px 0; line-height: 1.8; white-space: pre-wrap; }
.app-shell.is-admin .ad-portal-record dl { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 8px; margin: 12px 0 0; line-height: 1.8; }
.app-shell.is-admin .ad-portal-record dt { color: var(--muted); }
.app-shell.is-admin .ad-portal-record dd { margin: 0; white-space: pre-wrap; }
.app-shell.is-admin .ad-portal .ad-footer > span { max-width: 100%; }
.app-shell.is-admin .ad-portal-filters { align-items: end; flex-wrap: wrap; gap: 10px; }
.app-shell.is-admin .ad-portal-filters .field { flex: 1 1 130px; min-width: 0; }
.app-shell.is-admin .ad-portal-filters .field:has([name="q"]) { flex-grow: 2; }
.app-shell.is-admin .ad-portal-metrics { display: flex; flex-wrap: wrap; gap: 24px; padding: 12px 24px; border-bottom: 1px solid var(--line); font-size: 12px; }
.app-shell.is-admin .ad-portal-metrics > div { display: flex; align-items: center; gap: 12px; }
.app-shell.is-admin .ad-portal-metrics span { color: var(--muted); }
.app-shell.is-admin .ad-portal-metrics strong { font-size: 16px; }
.app-shell.is-admin .ad-portal .ad-delivery-table { min-width: 820px; table-layout: fixed; }
.app-shell.is-admin .ad-question-preview { padding: 0; max-width: 320px; text-align: left; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.app-shell.is-admin .ad-question-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,0.7fr); align-items: start; gap: 24px; }
.app-shell.is-admin .ad-question-thread { min-width: 0; padding-left: 20px; border-left: 1px solid var(--line); }
.app-shell.is-admin .ad-question-thread article { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.app-shell.is-admin .ad-question-thread small { display: block; color: var(--muted); margin-top: 4px; }
.app-shell.is-admin .ad-question-thread p { white-space: pre-wrap; line-height: 1.7; }
.app-shell.is-admin .ad-question-thread form { display: grid; gap: 14px; padding-top: 16px; }
.app-shell.is-admin .ad-question-topics { margin-top: 24px; }
.app-shell.is-admin .ad-question-topics > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.app-shell.is-admin .ad-question-topics > div > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.app-shell.is-admin #ad-portal-profile, .app-shell.is-admin #ad-portal-code { display: grid; gap: 14px; margin-bottom: 20px; }
.app-shell.is-admin #ad-device-dialog:has(#ad-portal-profile) { max-height: calc(100dvh - 32px); overflow: auto; }
.app-shell.is-admin .ad-account-history { margin: 20px 0; }
.app-shell.is-admin .ad-account-history summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.app-shell.is-admin .ad-account-history table { min-width: 560px; }
.app-shell.is-admin .ad-account-actions { flex-wrap: wrap; margin-bottom: 16px; }
.app-shell.is-admin .ad-detail-list { display: grid; gap: 10px; margin: 16px 0 24px; font-size: 12px; }
.app-shell.is-admin .ad-detail-list > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
.app-shell.is-admin .ad-detail-list dt { color: var(--muted); }
.app-shell.is-admin .ad-detail-list dd { margin: 0; overflow-wrap: anywhere; }
.app-shell.is-admin .ad-announcement-audience[hidden] { display: none; }
.app-shell.is-admin .ad-account-history small { display: block; font-size: 10px; color: var(--muted); margin-top: 6px; }
.app-shell.is-admin .ad-signup-settings { min-width: 0; }
.app-shell.is-admin .ad-signup-published { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; }
.app-shell.is-admin .ad-signup-published > span:first-child { color: var(--muted); }
.app-shell.is-admin .ad-signup-published strong { overflow-wrap: anywhere; }
.app-shell.is-admin .ad-signup-enabled { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.app-shell.is-admin .ad-signup-enabled input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.app-shell.is-admin .ad-signup-settings :is(input:not([type="checkbox"]), select) { width: 100%; min-width: 0; }
.app-shell.is-admin .ad-roster .roster-joint-tag { margin-top: 5px; font-size: 10px; }
.app-shell.is-admin .roster-summary { flex-wrap: wrap; }
.app-shell.is-admin .roster-joint-info { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }
.app-shell.is-admin .roster-joint-info h3 { margin: 0 0 12px; font-size: 13px; }
.app-shell.is-admin .roster-joint-info .roster-dates { margin: 0 0 12px; }
.app-shell.is-admin .roster-attendance-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.app-shell.is-admin .roster-attendance-list { display: grid; gap: 0; max-height: 280px; overflow-y: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.app-shell.is-admin .roster-attendance-list > label { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.app-shell.is-admin .roster-attendance-list > label:last-child { border-bottom: 0; }
.app-shell.is-admin .roster-attendance-list input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--blue); }
.app-shell.is-admin .roster-attendance-list label > span { flex: 1; min-width: 0; }
.app-shell.is-admin .roster-attendance-list :is(strong, small) { display: block; overflow-wrap: anywhere; }
.app-shell.is-admin .roster-attendance-list small { color: var(--muted); font-size: 11px; }
.app-shell.is-admin .roster-attendance-list label > small { flex-shrink: 0; }
.app-shell.is-admin .roster-more > .field { margin-top: 12px; }
.app-shell.is-admin .roster-danger { color: var(--red); border-color: #e6c5c3; }
@media (max-width: 760px) {
  .app-shell.is-admin .ad-roster-selectors { grid-template-columns: minmax(0,1fr); max-width: none; flex-basis: 100%; }
  .app-shell.is-admin .ad-question-layout { display: block; }
  .app-shell.is-admin .ad-question-layout > .ad-table-wrap { display: none; }
  .app-shell.is-admin .ad-question-thread { border-left: 0; padding-left: 0; margin-top: 0; }
  .app-shell.is-admin .ad-portal .ad-plain-table:not(.ad-delivery-table) { min-width: 520px; }
  .app-shell.is-admin .ad-portal-content .ad-list-scroll { max-height: 106px; }
  .app-shell.is-admin .ad-portal-content .ad-resource-item { width: 200px; flex: 0 0 200px; }
  .app-shell.is-admin .ad-portal .ad-editor-title { align-items: flex-start; }
  .app-shell.is-admin .ad-portal-spec { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .app-shell.is-admin .ad-portal-spec > button { grid-column: 2; justify-self: end; }
}
