:root {
  /* Bordó aproximado a partir de la referencia visual de la facultad. */
  --brand: #a30b3b;
  --brand-dark: #63001f;
  --brand-hover: #85052e;
  --brand-soft: #fbeef2;
  --brand-border: #edc8d4;
  --on-brand: #f8dce5;
  --ink: #2b2026;
  --muted: #76666f;
  --line: #eee4e8;
  --bg: #faf7f8;
  --green: #13734e;
  --amber: #945800;
  --red: #b53643;
  --shadow: 0 12px 35px rgba(75, 23, 42, 0.055);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
a {
  color: var(--brand);
}
.sidebar :focus-visible,
.auth-brand :focus-visible,
.student-header :focus-visible,
.session-card :focus-visible {
  outline-color: #e891ad;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  line-height: 1.25;
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}
.sidebar {
  background: var(--brand-dark);
  color: var(--on-brand);
  padding: 27px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 28px;
  color: #fff;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 4px 11px #0004;
}
.brand-logo svg {
  width: 39px;
  height: 39px;
}
.brand-name {
  font-size: 19px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.brand small {
  display: block;
  font-weight: 500;
  color: var(--on-brand);
  font-size: 9px;
  letter-spacing: 1.1px;
  margin-top: 6px;
}
.nav-label {
  padding: 8px 12px;
  color: #e6afc1;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav button {
  border: 0;
  background: transparent;
  color: var(--on-brand);
  text-align: left;
  padding: 11px 12px;
  border-radius: 9px;
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 13px;
}
.nav button.active,
.nav button:hover {
  background: var(--brand);
  color: #fff;
}
.nav .icon {
  width: 20px;
  text-align: center;
  font-size: 17px;
}
.sidefoot {
  margin-top: auto;
  border-top: 1px solid #8a2948;
  padding: 17px 12px 0;
  color: var(--on-brand);
  font-size: 11px;
}
.sidefoot b {
  color: var(--on-brand);
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}
.main {
  min-width: 0;
}
.topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 12px;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
}
.crumb b {
  color: var(--ink);
}
.topright {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 750;
}
.user-name {
  font-size: 12px;
  color: var(--ink);
  font-weight: 650;
}
.user-role {
  font-size: 10px;
}
.content {
  padding: 31px 34px 40px;
  max-width: 1490px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 10px;
  color: var(--brand);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 1.3px;
}
.page-head h1 {
  margin: 5px 0 6px;
  font-size: 27px;
  letter-spacing: -0.8px;
}
.sub {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  max-width: 700px;
}
.button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  line-height: 1.5;
  font-size: 12px;
  white-space: nowrap;
}
.button:hover {
  border-color: var(--brand-border);
  background: #fdf8fa;
}
.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.button.primary:hover {
  background: var(--brand-hover);
}
.button.danger {
  color: var(--red);
}
.button.small {
  font-size: 11px;
  padding: 6px 9px;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.button.chosen {
  box-shadow: 0 0 0 2px currentColor inset;
  font-weight: 800;
}
.button.present {
  color: var(--green);
}
.button.late {
  color: var(--amber);
}
.button.absent {
  color: var(--red);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 21px;
}
.card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.stat {
  padding: 18px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}
.stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 15px;
  flex: none;
}
.stat-value {
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1px;
  margin: 7px 0 0;
}
.stat-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}
.panel {
  padding: 20px;
  margin-bottom: 18px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel h2 {
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.25px;
}
.hint {
  color: var(--muted);
  font-size: 11px;
  margin: 5px 0 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 650;
  background: #edf8f3;
  color: var(--green);
  white-space: nowrap;
}
.pill.warn {
  background: #fff5e5;
  color: var(--amber);
}
.pill.bad {
  background: #fff0f0;
  color: var(--red);
}
.pill.neutral {
  background: #f3eef0;
  color: var(--muted);
}
.pill.blue {
  background: var(--brand-soft);
  color: var(--brand);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 9px;
  border-bottom: 1px solid #f5eef1;
  font-size: 12px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.namecell {
  font-weight: 650;
}
.idcell {
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--muted);
  font-size: 11px;
}
.cell-sub {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.progress {
  height: 5px;
  background: #f0e6eb;
  border-radius: 9px;
  width: 65px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  overflow: hidden;
}
.progress i {
  height: 100%;
  display: block;
  background: var(--brand);
  border-radius: 9px;
}
.session-card {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: 12px;
  color: #fff;
  padding: 21px;
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
}
.session-card:after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  right: -70px;
  top: -95px;
  box-shadow:
    0 0 0 24px #ffffff09,
    0 0 0 48px #ffffff06;
  pointer-events: none;
}
.session-card > * {
  position: relative;
  z-index: 1;
}
.session-card h2 {
  font-size: 16px;
  margin: 0;
}
.session-card p {
  color: var(--on-brand);
  font-size: 12px;
  margin: 5px 0 17px;
}
.session-card label {
  color: var(--on-brand);
}
.session-card .button {
  margin-top: 14px;
}
.field {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
  border-radius: 7px;
  outline: none;
  font-size: 12px;
  min-width: 0;
}
.field:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #a30b3b1b;
}
.field.note {
  min-width: 140px;
  padding: 7px 9px;
  font-size: 11px;
}
textarea.field {
  resize: vertical;
  min-height: 75px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 6px;
}
label:first-child {
  margin-top: 0;
}
.notice {
  border: 1px solid #f2dfb7;
  background: #fff9ee;
  color: #75500f;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 11px;
  margin: 12px 0 17px;
}
.notice.blue {
  border-color: var(--brand-border);
  background: #fdf5f8;
  color: #783149;
}
.notice.error {
  border-color: #f1ced2;
  background: #fff4f5;
  color: #9f2836;
}
.toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 15px;
}
.toolbar .field {
  width: auto;
  min-width: 190px;
  max-width: 320px;
}
.toolbar label {
  margin: 0;
}
.spacer {
  flex: 1;
}
.actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.actions.nowrap {
  flex-wrap: nowrap;
}
.alert-list {
  display: grid;
  gap: 10px;
}
.alert {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert-symbol {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #fff3e3;
  color: var(--amber);
  display: grid;
  place-items: center;
  flex: none;
}
.alert b {
  font-size: 12px;
}
.alert small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.activity {
  display: grid;
  gap: 14px;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.activity-mark {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex: none;
}
.activity-row b {
  display: block;
  font-size: 12px;
}
.activity-row small {
  color: var(--muted);
  font-size: 10px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 31px 14px;
  font-size: 12px;
  white-space: normal;
}
.empty b {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 5px;
}
.empty .button {
  margin-top: 12px;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--brand-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  font-size: 12px;
  transition: 0.2s;
  z-index: 100;
  max-width: calc(100vw - 32px);
  width: max-content;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.toast.error {
  background: #9f2836;
}
dialog {
  width: min(510px, calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 70px #2b102044;
  color: var(--ink);
  max-height: 90vh;
}
dialog::backdrop {
  background: #2b102080;
}
dialog h2 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -0.4px;
}
dialog p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.modal-close {
  position: absolute;
  right: 15px;
  top: 13px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
}
.checklist {
  max-height: 330px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.checkrow {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 12px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.checkrow:last-child {
  border: 0;
}
.checkrow input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}
.checkrow small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.checkrow span {
  font-size: 12px;
}
.qr-image {
  width: 215px;
  height: 215px;
  display: block;
  margin: 12px auto;
}
.qr-link {
  font-size: 11px;
  word-break: break-all;
  text-align: center;
}
.footnote {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin: 23px 0 0;
}
.loading-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  gap: 14px;
}
.loading-dot {
  width: 25px;
  height: 25px;
  border: 3px solid var(--brand-border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  padding: 65px clamp(35px, 7vw, 110px);
  background: var(--brand-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-brand:after {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  border: 1px solid #ffffff10;
  border-radius: 50%;
  right: -300px;
  bottom: -200px;
  box-shadow:
    0 0 0 55px #ffffff03,
    0 0 0 110px #ffffff03;
  pointer-events: none;
}
.auth-brand .brand {
  padding: 0 0 65px;
}
.auth-brand h1 {
  font-size: 40px;
  letter-spacing: -1.4px;
  max-width: 420px;
  font-weight: 700;
}
.auth-brand > p {
  color: var(--on-brand);
  font-size: 14px;
  max-width: 370px;
  line-height: 1.8;
}
.auth-points {
  display: grid;
  gap: 14px;
  margin-top: 25px;
  font-size: 12px;
  color: var(--on-brand);
}
.auth-point {
  display: flex;
  gap: 12px;
  align-items: center;
}
.auth-point i {
  font-style: normal;
  color: #ffc1d4;
}
.auth-form-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
  background: #fff;
}
.auth-form {
  max-width: 360px;
  width: 100%;
}
.auth-form h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin: 8px 0;
}
.auth-form .sub {
  margin-bottom: 30px;
  font-size: 12px;
}
.auth-form label {
  margin-top: 18px;
}
.auth-form .field {
  padding: 12px;
  font-size: 13px;
}
.auth-form .button {
  width: 100%;
  padding: 12px;
  margin-top: 24px;
  font-size: 13px;
}
.auth-meta {
  color: var(--muted);
  font-size: 10px;
  margin-top: 23px;
  text-align: center;
}
.auth-device-change {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.auth-device-change h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.auth-device-change .hint {
  line-height: 1.65;
}
.auth-device-change .button {
  margin-top: 12px;
}
.device-requests {
  display: grid;
  gap: 12px;
}
.device-request {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.device-request-details {
  min-width: 0;
  overflow-wrap: anywhere;
}
.device-request h3 {
  margin: 0 0 6px;
  font-size: 13px;
}
.device-request p {
  font-size: 12px;
  line-height: 1.65;
  margin: 7px 0 0;
}
.device-request .cell-sub {
  display: block;
}
.device-reason {
  white-space: pre-wrap;
  color: var(--muted);
}
.device-request .actions {
  flex-shrink: 0;
}
.device-table {
  min-width: 650px;
}
.device-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 220px;
}
@media (max-width: 720px) {
  .device-request {
    flex-direction: column;
    gap: 12px;
  }
  .device-request .actions {
    flex-wrap: wrap;
  }
}
.onboarding-steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
}
.step:before {
  counter-increment: step;
  content: counter(step);
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  flex: none;
}
.step b {
  color: var(--ink);
  display: block;
  font-size: 12px;
}
.class-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.roster-title {
  max-width: 420px;
  white-space: normal;
}
.roster-title p {
  margin: 5px 0 0;
}
.visible-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 38px;
  }
  .page-head {
    margin-bottom: 29px;
  }
  .stat {
    padding: 22px;
  }
}
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .content {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .auth-brand {
    padding: 45px;
  }
  .auth-brand h1 {
    font-size: 34px;
  }
}
@media (max-width: 720px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 11px 12px 9px;
    display: block;
    height: auto;
  }
  .sidebar .brand {
    padding: 0 4px 10px;
  }
  .sidebar .brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .sidebar .brand-logo svg {
    width: 28px;
    height: 28px;
  }
  .sidebar .brand-name {
    font-size: 16px;
  }
  .sidebar .brand small {
    display: inline;
    font-size: 8px;
    margin-left: 9px;
  }
  .nav-label,
  .sidefoot {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .nav button {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 11px;
  }
  .nav .icon {
    display: none;
  }
  .topbar {
    height: 56px;
    padding: 0 15px;
  }
  .user-role,
  .topbar .avatar {
    display: none;
  }
  .topright {
    gap: 4px;
  }
  .content {
    padding: 23px 14px 30px;
  }
  .page-head h1 {
    font-size: 23px;
  }
  .page-head {
    align-items: center;
    gap: 10px;
  }
  .page-head .sub {
    font-size: 11px;
  }
  .cards {
    gap: 9px;
    margin-bottom: 17px;
  }
  .stat {
    padding: 14px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-note {
    font-size: 9px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-icon {
    width: 25px;
    height: 25px;
  }
  .panel {
    padding: 15px;
  }
  .toolbar .field {
    min-width: 0;
    flex: 1;
    max-width: none;
  }
  .hide-mobile {
    display: none;
  }
  .button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .auth-layout {
    display: block;
  }
  .auth-brand {
    padding: 25px;
  }
  .auth-brand .brand {
    padding: 0;
  }
  .auth-brand > h1,
  .auth-brand > p,
  .auth-points {
    display: none;
  }
  .auth-form-wrap {
    min-height: calc(100vh - 94px);
    padding: 35px 26px;
  }
  .alert {
    align-items: flex-start;
  }
  .class-summary .pill {
    font-size: 9px;
  }
  .panel-head {
    align-items: flex-start;
  }
  .roster-title {
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Keep wide tables inside their own scrolling region on small screens. */
.grid-main > * {
  min-width: 0;
}
.activity-row > div:not(.activity-mark) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.user-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .grid-main {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .user-name {
    max-width: 155px;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head > div {
    min-width: 0;
  }
  .panel-head > div:first-child {
    min-width: 0;
  }
  .panel-head .button {
    flex-shrink: 0;
  }
}
.qr-expiry {
  font-size: 14px !important;
  font-weight: 700;
  color: var(--brand) !important;
  text-align: center;
  margin: 10px 0 !important;
}
.qr-expiry.expired {
  color: var(--red) !important;
}
.qr-registered {
  font-size: 12px;
  text-align: center;
  padding: 9px;
  border-radius: 8px;
  background: #edf8f3;
  color: var(--green);
  font-weight: 650;
}
.qr-actions {
  justify-content: center;
  gap: 8px;
}
.student-layout {
  min-height: 100vh;
}
.student-header {
  background: var(--brand);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 17px max(20px, calc((100% - 970px) / 2));
}
.student-header .brand {
  padding: 0;
}
.student-header .button {
  color: var(--on-brand);
}
.student-header .brand-logo {
  background: var(--brand-dark);
  width: 37px;
  height: 37px;
}
.student-header .brand-logo svg {
  width: 34px;
  height: 34px;
}
.student-header .brand-name {
  font-size: 18px;
}
.student-account-name {
  font-size: 12px;
  color: var(--on-brand);
}
.student-content {
  max-width: 1010px;
  padding: 30px 20px;
  margin: 0 auto;
}
.student-stats {
  margin-top: 22px;
}
.student-check-in {
  border: 1px solid var(--brand-border);
  box-shadow: 0 8px 24px #a30b3b0b;
}
.student-check-in h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin: 7px 0 4px;
}
.student-check-in.success {
  border-color: #b9dfcf;
}
.check-in-topic {
  font-size: 13px;
  color: var(--ink);
  margin: 0 0 6px;
}
.check-in-confirm {
  padding: 12px 20px;
  margin: 0 0 12px;
  font-size: 13px;
}
.check-in-success {
  background: #edf8f3;
  border-radius: 9px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 17px;
  color: #146e4d;
}
.check-in-success > span {
  width: 32px;
  height: 32px;
  background: #d9f0e5;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}
.check-in-success b {
  font-size: 13px;
}
.check-in-success p {
  font-size: 12px;
  margin: 3px 0 0;
}
.student-scan-bar {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 19px;
}
.student-scan-bar b {
  font-size: 13px;
}
.student-scan-bar p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.student-courses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.student-course {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.student-course h3 {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}
.student-course p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0;
}
.student-course-rate {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-direction: column;
}
.student-course-rate strong {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.student-course-detail {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 10px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  margin-top: 3px;
}
.student-history {
  display: grid;
}
.student-history-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.student-history-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.student-history-row:first-child {
  padding-top: 0;
}
.student-history-row > div {
  flex: 1;
  min-width: 0;
}
.student-history-row h3 {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.student-history-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0;
}
.student-history-row small {
  font-size: 10px;
  color: var(--muted);
}
.student-note {
  font-style: italic;
  color: var(--ink) !important;
}
.student-scanner {
  margin-top: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  padding: 15px;
}
.student-scanner video {
  max-width: 100%;
  max-height: 320px;
  display: block;
  margin: auto;
  border-radius: 9px;
  background: #111;
}
.student-scanner .button {
  margin-top: 10px;
}
@media (max-width: 720px) {
  .student-header {
    padding: 13px 15px;
  }
  .student-header .brand-name {
    font-size: 16px;
  }
  .student-header .brand small {
    font-size: 8px;
  }
  .student-header .brand-logo {
    width: 31px;
    height: 31px;
  }
  .student-header .brand-logo svg {
    width: 29px;
    height: 29px;
  }
  .student-account-name {
    display: none;
  }
  .student-content {
    padding: 24px 14px;
  }
  .student-content .page-head {
    align-items: center;
  }
  .student-scan-bar {
    padding: 15px;
    align-items: flex-start;
    gap: 10px;
  }
  .student-scan-bar p {
    font-size: 10px;
  }
  .student-scan-bar .button {
    flex: none;
  }
  .student-courses {
    grid-template-columns: minmax(0, 1fr);
  }
  .student-check-in h2 {
    font-size: 21px;
  }
  .check-in-confirm {
    width: 100%;
    padding: 12px;
    font-size: 13px;
  }
  .student-history-row {
    gap: 9px;
  }
  .student-history-row .pill {
    font-size: 9px;
  }
  .student-history-row h3 {
    font-size: 12px;
  }
  .student-header .button {
    font-size: 12px;
  }
  .qr-actions .button {
    font-size: 11px;
  }
  .student-stats .stat-note {
    font-size: 10px;
  }
  .student-stats .stat-top {
    font-size: 11px;
  }
}

/* Separate staff workspaces share the faculty palette and table components. */
.panel-identity {
  color: white;
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin: -12px 12px 18px;
  padding: 6px 9px;
  border: 1px solid #ffffff25;
  border-radius: 7px;
  width: fit-content;
}
.management-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin: 0 0 23px;
}
.management-shortcut {
  position: relative;
  min-width: 0;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 11px;
  padding: 17px;
  transition: border-color 0.15s;
}
.management-shortcut:hover {
  border-color: var(--brand-border);
}
.management-shortcut > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
  margin-bottom: 11px;
  font-size: 16px;
}
.management-shortcut b {
  display: block;
  font-size: 12px;
}
.management-shortcut small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.7;
}
.management-shortcut i {
  position: absolute;
  top: 22px;
  right: 17px;
  font-style: normal;
  color: var(--muted);
}
.teacher-steps {
  margin-top: 18px;
}
#teacherPanel .session-card {
  border-top: 3px solid #db819e;
}
@media (max-width: 1100px) {
  .management-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .panel-identity {
    display: none;
  }
  .management-shortcuts {
    gap: 9px;
    margin-bottom: 17px;
  }
  .management-shortcut {
    padding: 14px;
  }
  .management-shortcut b {
    font-size: 11px;
  }
  .management-shortcut small {
    font-size: 10px;
  }
}
