:root { color-scheme: dark; font-family: Inter, "Segoe UI", Arial, sans-serif; background: #10171b; color: #e9f0ef; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button, .open-link { cursor: pointer; border: 1px solid #2d9f73; background: #117957; color: white; padding: 9px 13px; border-radius: 5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
button:hover, .open-link:hover { background: #159568; }
button.quiet { background: #1d2a31; border-color: #3a4a51; }
button.quiet:hover { background: #293c43; }
button.danger { background: transparent; color: #edaaa4; border-color: #734642; }
button.danger:hover { background: #432d2d; }
input, select { min-height: 38px; min-width: 0; border: 1px solid #3a4a51; border-radius: 5px; padding: 7px 9px; background: #172229; color: #f0f5f4; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid #76c5a1; outline-offset: 2px; }
label { display: grid; gap: 5px; color: #a9c5cf; font-size: 13px; }
h1, h2, p { margin-top: 0; }
.topbar { border-bottom: 1px solid #35454c; background: #172229; }
.topbar-inner { max-width: 1400px; margin: auto; min-height: 70px; padding: 12px 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.brand, .account { display: flex; align-items: center; gap: 14px; }
.home-link { color: #b9e8d3; text-decoration: none; font-size: 14px; white-space: nowrap; }
.home-link:hover { color: white; text-decoration: underline; }
.brand strong, .brand small, .account small, td small { display: block; }
.brand small, .account small, td small { color: #94adb8; font-size: 12px; margin-top: 3px; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; background: #e4b256; color: #182123; border-radius: 5px; font-size: 13px; font-weight: 800; }
.content { max-width: 1400px; margin: auto; padding: 28px 24px 56px; }
.section-heading { display: flex; align-items: baseline; gap: 18px; }
.section-heading h1 { font-size: 23px; }
.section-heading span { color: #99b3bd; }
.table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid #35454c; border-bottom: 1px solid #35454c; }
table { border-collapse: collapse; width: 100%; min-width: 750px; text-align: left; }
th { color: #93b8c3; font-size: 12px; font-weight: 600; text-transform: uppercase; padding: 12px; }
td { border-top: 1px solid #29383e; padding: 12px; vertical-align: middle; }
td code { color: #a9c5cf; font-size: 12px; }
.inline-form, .actions { display: flex; gap: 7px; align-items: center; }
.inline-form select { max-width: 170px; }
.kit-assignment-form { display: grid; gap: 8px; min-width: 170px; max-width: 250px; }
.kit-assignment-form > button { justify-self: start; }
.student-checkboxes { border: 0; padding: 0; margin: 0; min-width: 0; max-height: 144px; overflow-y: auto; }
.student-choice { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 8px; padding: 4px 0; }
.student-choice input { min-height: 0; width: 16px; height: 16px; padding: 0; margin: 0; accent-color: #159568; }
.student-choice span { overflow-wrap: anywhere; }
.status { display: inline-block; font-size: 12px; font-weight: 700; }
.status.enabled { color: #7dddac; }
.status.disabled { color: #dba4a0; }
.open-link { display: inline-flex; align-items: center; gap: 6px; }
.admin-section { margin-top: 36px; border-top: 1px solid #35454c; padding-top: 20px; }
.admin-section h2 { font-size: 17px; }
.form-grid { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.form-grid label { flex: 1 1 150px; }
.form-grid .url-field { flex: 2 1 260px; }
.form-grid button { height: 38px; }
.student-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
.student-list > div { display: flex; align-items: center; gap: 8px; }
.student-list button { padding: 5px 8px; }
.empty { color: #a7bbc0; padding: 14px 0; }
.error { color: #ffc3bd; background: #412f31; padding: 12px; border-left: 3px solid #d87269; }
.login-page { display: grid; place-items: center; }
.login-wrap { width: min(420px, calc(100% - 32px)); }
.login-heading { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.login-heading h1 { font-size: 21px; margin: 0; }
.login-form { display: grid; gap: 18px; border-top: 1px solid #4a5c60; padding-top: 24px; }
.login-form h2 { font-size: 17px; margin: 0; }
.login-form input { width: 100%; }
@media (max-width: 700px) {
  .topbar-inner { flex-wrap: wrap; }
  .topbar-inner, .content { padding-left: 16px; padding-right: 16px; }
  .account > span { display: none; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  thead { display: none; }
  tbody, tr, td { display: block; }
  tr { border-top: 1px solid #35454c; padding: 12px 0 18px; }
  td { border: 0; padding: 6px 0; min-width: 0; }
  td::before { content: attr(data-label); display: block; color: #93b8c3; font-size: 11px; font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }
  td code { overflow-wrap: anywhere; }
  td .open-link { margin-top: 4px; }
  .inline-form { flex-wrap: wrap; }
  .inline-form select { flex: 1 1 180px; max-width: none; }
  .form-grid { display: grid; }
  .form-grid label { width: 100%; }
  .form-grid button { width: 100%; }
  .student-list { display: grid; }
  .student-list > div { flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #29383e; }
}
