:root {
  color: #102b2b;
  background: #eaf3f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button { font: inherit; }
select, textarea { font: inherit; }
[hidden] { display: none !important; }

.shell {
  min-height: 100vh;
  padding: 32px;
  background: #eaf3f8;
}

.login-card {
  width: min(460px, 100%);
  margin: 10vh auto 0;
  padding: 48px;
  border: 1px solid rgba(22, 73, 70, .14);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 30px 80px rgba(24, 65, 59, .14);
  text-align: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: #174e4a;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.04em;
}

.eyebrow { margin: 0 0 7px; color: #50736e; font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
.brand-home {
  padding: 0;
  border: 0;
  background: transparent;
  color: #50736e;
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}
.brand-home:hover { color: #174e4a; }
.brand-home:focus-visible { outline: 2px solid #397d73; outline-offset: 4px; border-radius: 4px; }
h1, h2 { margin: 0; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: 1.45rem; }
.lead { margin: 16px auto 28px; max-width: 34ch; color: #58706d; line-height: 1.6; }
.google-button { display: flex; min-height: 44px; justify-content: center; }
.status { min-height: 1.5em; margin: 18px 0 0; color: #5f7773; font-size: .9rem; }
.status.success { color: #267052; }
.status.error { color: #a33a3a; }
.test-data-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; color: #526f6a; font-size: .86rem; font-weight: 700; cursor: pointer; }
.test-data-toggle input { width: 18px; height: 18px; margin: 0; accent-color: #174e4a; }
.access-note { margin: 16px 0 0; color: #7b8f8c; font-size: .78rem; }
.version-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0 auto 20px;
  padding: 5px 9px;
  border: 1px solid #b7cbc6;
  border-radius: 999px;
  background: #f2f7f5;
  color: #426b65;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: none;
}
.topbar .version-badge { margin: 0 0 0 6px; vertical-align: middle; }

.dashboard { width: min(1180px, 100%); margin: 0 auto; }
.topbar, .section-heading, .profile { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar { margin-bottom: 34px; }
.profile { text-align: right; }
.profile div { display: grid; gap: 3px; }
.profile span { color: #5f7773; font-size: .85rem; }
.workspace-switch { display: inline-flex; padding: 3px; border: 1px solid rgba(22, 73, 70, .18); border-radius: 10px; background: rgba(255,255,255,.72); }
.workspace-switch-button { min-height: 42px; padding: 8px 13px; border: 0; border-radius: 8px; background: transparent; color: #365d57; font-weight: 750; cursor: pointer; }
.workspace-switch-button[aria-pressed="true"] { background: #174e4a; color: #fff; }
.instructor-workspace { width: min(900px, 100%); margin: 0 auto; }
.instructor-group-sections { display: grid; gap: 22px; }
.instructor-group-section h2 { margin: 0 0 10px; font-size: 1.12rem; }
.instructor-group-list, .instructor-student-list { display: grid; gap: 12px; }
.instructor-group-card { width: 100%; min-height: 76px; padding: 15px 17px; border: 1px solid rgba(22, 73, 70, .15); border-radius: 13px; background: rgba(255,255,255,.88); color: #102b2b; text-align: left; cursor: pointer; }
.instructor-group-card strong, .instructor-group-card span { display: block; }
.instructor-group-card span { margin-top: 5px; color: #5f7773; }
.instructor-detail { margin-top: 18px; }
.instructor-practice-actions { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: end; gap: 12px; margin: 18px 0; }
.instructor-practice-actions label { margin: 0; }
.instructor-student-card { padding: 15px 17px; border: 1px solid rgba(22, 73, 70, .12); border-radius: 12px; background: rgba(255,255,255,.72); }
.instructor-student-card h3 { margin: 0 0 8px; font-size: 1rem; }
.instructor-student-card p { margin: 4px 0; color: #365d57; }
.instructor-phone { display: inline-block; min-height: 40px; padding: 8px 0; color: #174e4a; font-weight: 750; }
.instructor-phone-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.secondary {
  padding: 10px 16px;
  border: 1px solid #aac0bc;
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  color: #174e4a;
  cursor: pointer;
  font-weight: 700;
}
.secondary:hover { background: #fff; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0 18px; }
.metric-card, .data-card { border: 1px solid rgba(22, 73, 70, .12); background: rgba(255,255,255,.9); box-shadow: 0 16px 50px rgba(24,65,59,.08); }
.metric-card { display: grid; gap: 6px; padding: 24px; border-radius: 20px; }
.metric-card span, .metric-card small { color: #617a76; }
.metric-card strong { font-size: 2.2rem; }
.practice-metric small { line-height: 1.45; }
.practice-metric small b { color: #365d57; }
.practice-stats-years { display: grid; gap: 8px; margin-top: 14px; }
.practice-stats-year { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 14px; padding: 10px 12px; border-bottom: 1px solid #dce7e3; }
.practice-stats-year strong { color: #173b37; }
.practice-stats-year span { color: #526f6a; }
.data-card { padding: 26px; border-radius: 22px; }
.review-card { margin-top: 18px; }
.workspace-card { margin-top: 18px; }
.workspace-controls { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(280px, 1.3fr); gap: 16px; margin-top: 22px; }
.workspace-controls label { display: grid; gap: 7px; color: #365d57; font-size: .82rem; font-weight: 750; }
.workspace-controls select, .workspace-controls input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #adc2be;
  border-radius: 10px;
  background: #fff;
  color: #173b37;
  font: inherit;
}
.section-note { color: #617a76; line-height: 1.5; }
#course-certificate-folder-open {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  text-decoration: none;
}
#course-certificate-folder-open[hidden] { display: none; }
.contract-generation-status {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border: 1px solid #9bbab4;
  border-radius: 12px;
  background: #edf5f2;
  color: #174e4a;
  font-weight: 750;
}
.contract-generation-status.success { border-color: #94c3a8; background: #eff8f2; color: #267052; }
.contract-generation-status.error { border-color: #d8a3a3; background: #fff1f1; color: #a33a3a; }
.contract-generation-status[hidden] { display: none; }
.contract-sent-actions { gap: 10px; }
.contract-sent-actions p { margin: 0; }
.contract-sent-actions textarea {
  width: 100%;
  min-height: 112px;
  padding: 11px 12px;
  border: 1px solid #adc2be;
  border-radius: 10px;
  background: #f8fbfa;
  color: #173b37;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}
.sms-link { display: inline-block; width: max-content; text-decoration: none; }
.training-activation { gap: 10px; }
.training-activation dl { margin: 0; }
.training-activation textarea {
  width: 100%;
  min-height: 360px;
  padding: 11px 12px;
  border: 1px solid #adc2be;
  border-radius: 10px;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}
.training-activation textarea:read-only { background: #f1f6f5; }
.review-queue { display: grid; gap: 10px; margin-top: 20px; }
.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid #dce7e3;
  border-radius: 15px;
  background: #fbfdfc;
}
.review-row > div { display: grid; gap: 4px; }
.review-row span { color: #6a817d; font-size: .84rem; }
.empty-panel { margin: 0; padding: 24px; border-radius: 14px; background: #f3f7f5; color: #6c817e; text-align: center; }
.table-wrap { overflow-x: auto; margin-top: 22px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid #dce7e3; text-align: left; }
th { color: #5a716e; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.empty { color: #718581; text-align: center; }
#roster-body td:first-child, #roster-body td:nth-child(2) { display: table-cell; }
#roster-body td:first-child strong, #roster-body td:first-child small, #roster-body td:nth-child(2) span { display: block; }
#roster-body td:first-child small, #roster-body td:nth-child(2) span { margin-top: 3px; color: #6a817d; font-size: .8rem; }
.roster-together-select { float: left; margin: 3px 9px 12px 0; }
.together-status { color: #2f6658 !important; font-weight: 700; }
.stage-badge { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #edf5f1; color: #2f6658; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.payment-state { display: block; width: max-content; margin-top: 5px; padding: 4px 8px; border-radius: 999px; font-size: .72rem; font-weight: 750; }
.payment-state-paid { background: #e8f5ed; color: #267052; }
.payment-state-partial { background: #fff3cd; color: #8a6410; }
.payment-state-none { background: #fde5e2; color: #9d2d26; }
.contract-acceptance-badge { display: block; width: max-content; margin-top: 5px; padding: 3px 7px; border-radius: 999px; font-size: .7rem; font-weight: 750; }
.contract-acceptance-accepted { background: #e8f5ed; color: #267052; }
.contract-acceptance-found { background: #e8f5ed; color: #267052; }
.contract-acceptance-none { background: #f0f3f2; color: #6a817d; }
.contract-acceptance-review { margin: -4px 0 10px; color: #7b4b14; font-size: .78rem; font-weight: 650; }
.promised-payment { font-weight: 750; }
.promised-payment-paid { color: #267052; }
.promised-payment-overdue { color: #a33a3a; }
.payment-history-item, .stage-history-item { display: grid; gap: 3px; padding: 8px 0; border-bottom: 1px solid #e5edea; }
.payment-history-item:last-child, .stage-history-item:last-child { border-bottom: 0; padding-bottom: 0; }
.payment-history-item strong, .stage-history-item strong { font-size: .82rem; }
.payment-history-item span, .stage-history-item span { color: #6a817d; font-size: .78rem; font-weight: 500; }
.student-process-history {
  margin-top: 24px;
  border: 1px solid rgba(22, 73, 70, .12);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}
.student-process-history > summary {
  padding: 14px 16px;
  color: #365d57;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.student-process-history > summary span { color: #6a817d; font-weight: 700; }
.process-history-list { padding: 0 16px 14px; }
.process-history-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #e5edea;
}
.process-history-item > div { display: grid; gap: 3px; min-width: 0; }
.process-history-item strong { color: #102b2b; font-size: .86rem; }
.process-history-item span { color: #6a817d; font-size: .78rem; overflow-wrap: anywhere; }
.process-history-marker {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #397d73;
}
.primary {
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  background: #174e4a;
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}
.primary:disabled { cursor: wait; opacity: .55; }
#contract-sms-send-btn:disabled { cursor: not-allowed; }
dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid rgba(22, 73, 70, .18);
  border-radius: 22px;
  color: #102b2b;
  box-shadow: 0 30px 100px rgba(12, 43, 40, .3);
}

#practice-assignments-dialog {
  width: min(1100px, calc(100% - 32px));
  height: min(840px, calc(100vh - 40px));
  max-height: calc(100vh - 40px);
  overflow: hidden;
}
#practice-assignments-dialog[open] { display: flex; flex-direction: column; }
.practice-assignments-header {
  position: sticky;
  top: 0;
  z-index: 2;
  flex: 0 0 auto;
  padding: 22px 28px;
  border-bottom: 1px solid #dce7e3;
  background: #fff;
}
.practice-assignments-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 28px 28px; }
.practice-assignments-scroll > label { margin: 14px 0; }

#person-profile-resend-label {
  padding: 14px;
  border: 1px solid #94c3a8;
  border-radius: 12px;
  background: #eff8f2;
}
#person-profile-resend-note {
  color: #50736e;
  font-weight: 500;
  line-height: 1.4;
}
dialog::backdrop { background: rgba(9, 31, 29, .58); backdrop-filter: blur(3px); }
dialog form { display: grid; gap: 18px; padding: 28px; }

.practice-availability-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
}
.practice-availability-dialog > h3 {
  margin: 0;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #dce7e3;
  background: #f8fbfa;
  font-size: 1.2rem;
}
.practice-availability-dialog form { gap: 14px; padding: 20px 24px 24px; }
.practice-availability-dialog form > p {
  margin: 0;
  color: #607a75;
  font-size: .86rem;
  line-height: 1.45;
}
.practice-availability-dialog input[type="date"],
.practice-availability-dialog input[type="text"],
.practice-availability-dialog textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #adc2be;
  border-radius: 10px;
  background: #fff;
  color: #173b37;
  font: inherit;
}
.practice-availability-dialog textarea { min-height: 96px; }
.practice-availability-dates {
  margin: 2px 0 0;
  padding: 14px;
  border: 1px solid #dce7e3;
  border-radius: 12px;
  background: #f8fbfa;
}
.practice-availability-dates[hidden] { display: none; }
.practice-availability-dates legend {
  padding: 0 6px;
  color: #365d57;
  font-size: .82rem;
  font-weight: 800;
}
.practice-availability-date-row {
  display: grid;
  grid-template-columns: minmax(150px, .7fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.practice-availability-date-row + .practice-availability-date-row { margin-top: 12px; }
.practice-availability-date-row > button { min-height: 42px; }
.practice-availability-add { justify-self: start; }
.practice-availability-status:empty { display: none; }
.practice-availability-status:not(:empty) {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f1df;
  color: #735a19;
}
.practice-availability-actions {
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid #e5edea;
}
.practice-availability-actions .primary { min-width: 130px; }
.icon-button { border: 0; background: transparent; color: #496c67; cursor: pointer; font-size: 2rem; line-height: 1; }
.payload-grid { display: grid; grid-template-columns: minmax(130px, .4fr) 1fr; margin: 0; border: 1px solid #dce7e3; border-radius: 14px; overflow: hidden; }
.payload-grid dt, .payload-grid dd { margin: 0; padding: 9px 12px; border-bottom: 1px solid #e5edea; overflow-wrap: anywhere; }
.payload-grid dt { background: #f3f7f5; color: #607a75; font-size: .82rem; font-weight: 750; }
dialog label { display: grid; gap: 7px; color: #365d57; font-size: .86rem; font-weight: 700; }
dialog select, dialog textarea { width: 100%; padding: 11px 12px; border: 1px solid #adc2be; border-radius: 10px; background: #fff; color: #173b37; }
.date-input-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 8px; align-items: center; }
.date-input-row > input[type="text"] { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #adc2be; border-radius: 10px; background: #fff; color: #173b37; font: inherit; }
.calendar-button { display: grid; place-items: center; width: 48px; min-width: 48px; height: 42px; padding: 0; border: 1px solid #adc2be; border-radius: 10px; background: #fff; color: #174e4a; cursor: pointer; line-height: 1; }
.calendar-button svg { display: block; width: 22px; height: 22px; }
.calendar-button:hover { background: #f4f8f6; }
.native-date-picker { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
dialog textarea { min-height: 92px; resize: vertical; }
.preview-result { padding: 14px; border: 1px solid #94c3a8; border-radius: 12px; background: #eff8f2; color: #285f43; line-height: 1.5; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.dialog-actions button { flex: 0 0 auto; }
noscript { display: block; padding: 20px; text-align: center; }

.protocol-finalize-dialog { width: min(760px, calc(100% - 24px)); }
.protocol-finalize-dialog > * { margin-left: 24px; margin-right: 24px; }
.protocol-finalize-dialog > .section-heading { margin-top: 24px; }
.protocol-finalize-dialog > .dialog-actions { margin-bottom: 24px; }
.protocol-finalize-dialog fieldset { margin-top: 18px; padding: 16px; border: 1px solid #dce7e3; border-radius: 14px; }
.protocol-task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.protocol-task-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border-radius: 10px; background: #f8fbfa; }
.protocol-task-row input { width: 22px; height: 22px; margin: 0; }
.protocol-signature-canvas { display: block; width: 100%; aspect-ratio: 10 / 3; margin: 10px 0 12px; border: 2px solid #adc2be; border-radius: 12px; background: #fff; touch-action: none; }

@media (max-width: 700px) {
  .shell { padding: 18px; }
  .login-card { margin-top: 4vh; padding: 32px 22px; }
  .topbar, .profile { align-items: flex-start; flex-direction: column; text-align: left; }
  .cards { grid-template-columns: 1fr; }
  .workspace-controls { grid-template-columns: 1fr; }
  .instructor-topbar { gap: 14px; }
  .workspace-switch { width: 100%; }
  .workspace-switch-button { flex: 1; }
  .instructor-group-card { min-height: 88px; }
  .instructor-practice-actions { grid-template-columns: 1fr; }
  .instructor-practice-actions button, .instructor-practice-actions .button-link { width: 100%; text-align: center; }
  .data-card { padding: 20px 16px; }
  .review-row { align-items: stretch; flex-direction: column; }
  .payload-grid { grid-template-columns: 1fr; }
  .payload-grid dt { padding-bottom: 3px; }
  .payload-grid dd { padding-top: 3px; }
   .dialog-actions { align-items: stretch; flex-direction: column; }
  #practice-assignments-dialog { width: calc(100% - 16px); height: calc(100vh - 16px); max-height: calc(100vh - 16px); }
  .practice-assignments-header { padding: 16px; }
  .practice-assignments-scroll { padding: 8px 16px 20px; }
  .protocol-task-list { grid-template-columns: 1fr; }
  .protocol-finalize-dialog > * { margin-left: 14px; margin-right: 14px; }
}

/* Student Workspace styles */
.student-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.student-header h3 {
  margin: 0;
  font-size: 1.8rem;
}
#student-registration-id {
  color: #6a817d;
  font-size: .84rem;
}
.student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.student-section {
  border: 1px solid rgba(22, 73, 70, .1);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255,255,255,.6);
}
.student-section h4 {
  margin: 0 0 12px;
  font-size: .84rem;
  color: #365d57;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.contract-acceptance-status {
  margin: 0 0 12px;
  color: #365d57;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
}
.contract-acceptance-status.error { color: #a33a3a; }
.contract-acceptance-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
}
.contract-acceptance-date {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #adc2be;
  border-radius: 10px;
  background: #fff;
  color: #173b37;
  font: inherit;
}
.contract-acceptance-candidate {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #dce7e3;
  border-radius: 12px;
  background: #f8fbfa;
}
.contract-acceptance-candidate p { margin: 0 0 8px; }
.contract-acceptance-candidate button { margin-top: 6px; margin-right: 8px; }
.student-section dl {
  margin: 0;
}
.student-section dt {
  color: #6a817d;
  font-size: .76rem;
  margin-bottom: 2px;
}
.student-section dd {
  margin: 0 0 12px;
  font-size: .9rem;
  font-weight: 600;
  color: #102b2b;
}
.student-section dd.promised-payment-paid { color: #267052; }
.student-section dd.promised-payment-overdue { color: #a33a3a; }
.student-section dd:empty::before {
  content: "—";
  color: #98aba7;
}
.student-section dl > div:last-child dd {
  margin-bottom: 0;
}
#roster-body tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
#roster-body tr:hover {
  background: rgba(23, 78, 74, .06);
}
#roster-body tr.selected {
  background: rgba(23, 78, 74, .15);
  border-left: 3px solid #174e4a;
}

.candidate-status-badge { display: inline-block; width: fit-content; padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.candidate-status-badge.is-suitable { background: #dff4e7; color: #17643a; }
.candidate-status-badge.is-unsuitable { background: #fde5e2; color: #9d2d26; }
.candidate-name { color: var(--ink); font-weight: 800; }
.candidate-blocker { color: #9d2d26; }
/* Dashboard UI closure 2026-09-14 */
.table-sort {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
}

.table-sort:focus-visible {
  outline: 2px solid #174e4a;
  outline-offset: 3px;
}

.metric-card-button {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.metric-card-button:hover {
  border-color: #7fa49d;
  background: #fff;
}

.metric-card-button:focus-visible {
  outline: 3px solid #397d73;
  outline-offset: 3px;
}

.data-card > summary {
  cursor: pointer;
  list-style-position: outside;
}

.data-card > summary strong {
  display: block;
  color: #102b2b;
  font-size: 1.3rem;
}

.data-card > summary .eyebrow {
  display: block;
  margin-bottom: 5px;
}

.collapsible-content {
  padding-top: 12px;
}

#medical-panel > summary {
  padding: 0;
}

#medical-panel > summary strong {
  font-size: 1.3rem;
}

.student-medical-card {
  margin: 0 0 24px;
  border: 1px solid rgba(22, 73, 70, .1);
  border-radius: 12px;
  background: rgba(255,255,255,.6);
  overflow: hidden;
}

.student-medical-card > summary {
  padding: 16px;
  cursor: pointer;
  color: #365d57;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.student-medical-card[open] > summary {
  border-bottom: 1px solid #dce7e3;
}

.student-medical-card > .collapsible-content {
  padding: 16px;
}
#invoice-accounting-content {
  display: grid;
  gap: 18px;
}

.invoice-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.invoice-toolbar input[type="search"] {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #adc2be;
  border-radius: 10px;
  background: #fff;
  color: #173b37;
  font: inherit;
}

.invoice-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 18px;
  border: 1px solid #dce7e3;
  border-radius: 16px;
  background: #f8fbfa;
}

.invoice-form-title,
.invoice-form > p,
.invoice-form > div,
.invoice-form > button,
.invoice-form > label:last-of-type {
  grid-column: 1 / -1;
}

.invoice-student-lookup {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #dce7e3;
  border-radius: 12px;
  background: #fff;
}

.invoice-student-lookup > label {
  max-width: 560px;
}

.invoice-student-lookup-status {
  margin: 0;
  color: #617a76;
  font-size: .78rem;
}

.invoice-student-lookup-results {
  display: grid;
  gap: 7px;
}

.invoice-student-result {
  display: grid;
  gap: 3px;
  width: 100% !important;
  padding: 10px 12px;
  border: 1px solid #dce7e3;
  border-radius: 10px;
  background: #f8fbfa;
  color: #173b37;
  text-align: left;
}

.invoice-student-result strong {
  font-size: .88rem;
}

.invoice-student-result span {
  color: #617a76;
  font-size: .76rem;
}

.invoice-save-status {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #94c3a8;
  border-radius: 10px;
  background: #eff8f2;
  color: #267052;
  font-weight: 750;
}

.invoice-save-status[hidden] {
  display: none;
}

.invoice-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #365d57;
  font-size: .82rem;
  font-weight: 750;
}

.invoice-form input,
.invoice-form select {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #adc2be;
  border-radius: 10px;
  background: #fff;
  color: #173b37;
  font: inherit;
}

.invoice-form button {
  width: max-content;
  max-width: 100%;
  white-space: normal;
}

.invoice-form .invoice-confirmation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invoice-confirmation input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
}

.invoice-toolbar > button {
  max-width: 100%;
  white-space: normal;
}

#invoice-accounting-content .table-wrap {
  margin-top: 4px;
}

@media (max-width: 980px) {
  .invoice-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .invoice-form {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .invoice-toolbar > * {
    width: 100%;
  }
}

/* Instructor workspace closure 2026-09-14 */

.instructor-workspace {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.instructor-topbar {
  margin-bottom: 22px;
}

.instructor-scope {
  display: grid;
  gap: 7px;
  width: min(360px, 100%);
  margin: 0 0 18px;
  color: #365d57;
  font-size: .82rem;
  font-weight: 750;
}

.instructor-scope select {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #adc2be;
  border-radius: 10px;
  background: #fff;
  color: #173b37;
  font: inherit;
}

#instructor-status {
  margin: 0 0 18px;
}

.instructor-group-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.instructor-group-section {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(22, 73, 70, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 14px 40px rgba(24, 65, 59, .07);
}

.instructor-group-section h2 {
  margin: 0 0 14px;
  color: #365d57;
  font-size: .96rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.instructor-group-list {
  display: grid;
  gap: 10px;
}

.instructor-group-list > .section-note {
  margin: 0;
  padding: 14px;
  border: 1px dashed #c5d5d1;
  border-radius: 12px;
  background: #f8fbfa;
  color: #718581;
  font-size: .84rem;
  text-align: center;
}

.instructor-group-card {
  width: 100%;
  min-height: 0;
  padding: 13px 14px;
  border: 1px solid rgba(22, 73, 70, .14);
  border-radius: 12px;
  background: #fff;
  color: #102b2b;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(24, 65, 59, .04);
  transition:
    border-color .15s ease,
    box-shadow .15s ease,
    transform .15s ease;
}

.instructor-group-card:hover {
  border-color: #8fb0aa;
  box-shadow: 0 9px 24px rgba(24, 65, 59, .09);
  transform: translateY(-1px);
}

.instructor-group-card:focus-visible {
  outline: 3px solid #397d73;
  outline-offset: 3px;
}

.instructor-group-card strong {
  display: block;
  color: #102b2b;
  font-size: 1rem;
}

.instructor-group-card span {
  display: block;
  margin-top: 4px;
  color: #5f7773;
  font-size: .8rem;
  line-height: 1.38;
}

.instructor-detail {
  width: 100%;
  margin-top: 18px;
}

.instructor-detail > .section-heading {
  align-items: flex-start;
}

.instructor-practice-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, auto);
  align-items: end;
  gap: 10px;
  margin: 18px 0;
}

.instructor-practice-actions label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #365d57;
  font-size: .82rem;
  font-weight: 750;
}

.instructor-practice-actions select {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #adc2be;
  border-radius: 10px;
  background: #fff;
  color: #173b37;
  font: inherit;
}

.instructor-practice-actions .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
}

.instructor-student-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.instructor-student-card {
  min-width: 0;
  padding: 15px 17px;
  border: 1px solid rgba(22, 73, 70, .12);
  border-radius: 14px;
  background: #fff;
}

.instructor-student-card h3 {
  margin: 0 0 8px;
  color: #102b2b;
  font-size: 1rem;
}

.instructor-student-card p {
  margin: 4px 0;
  color: #526f6a;
  font-size: .86rem;
  line-height: 1.4;
}

.instructor-phone-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

#instructor-protocol-batch-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #dce7e3;
}

#instructor-protocol-batch-section h3 {
  margin-top: 0;
}

#instructor-protocol-batch-section label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #365d57;
  font-size: .86rem;
  font-weight: 700;
}

#instructor-protocol-batch-subject,
#instructor-protocol-batch-body {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #adc2be;
  border-radius: 10px;
  background: #fff;
  color: #173b37;
  font: inherit;
}

#instructor-protocol-batch-body {
  min-height: 260px;
  line-height: 1.5;
  resize: vertical;
}

@media (max-width: 980px) {
  .instructor-group-sections {
    grid-template-columns: 1fr;
  }

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

  .instructor-practice-actions {
    grid-template-columns: 1fr 1fr;
  }

  .instructor-practice-actions label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .instructor-workspace {
    width: 100%;
  }

  .instructor-group-section {
    padding: 14px;
    border-radius: 15px;
  }

  .instructor-group-card {
    min-height: 0;
  }

  .instructor-practice-actions {
    grid-template-columns: 1fr;
  }

  .instructor-practice-actions label {
    grid-column: auto;
  }

  .instructor-practice-actions button,
  .instructor-practice-actions .button-link {
    width: 100%;
    text-align: center;
  }

  .instructor-detail > .section-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
.medical-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin: 1rem 0; }
.medical-toolbar label, #medical-content td label { display: flex; flex-direction: column; gap: 0.25rem; }
#medical-content table { min-width: 950px; }
#medical-content td { vertical-align: top; }
#medical-content td input:not([type="checkbox"]), #medical-content td select { max-width: 16rem; }
#medical-count { font-size: 1.15rem; }

/* Compact medical orders; accounting tables retain their own layout. */
#medical-content .medical-orders-table { min-width: 0; table-layout: fixed; }
.medical-orders-table th, .medical-orders-table td { padding: 10px 6px; overflow-wrap: anywhere; }
.medical-orders-table th:first-child { width: 7%; }
.medical-orders-table th:nth-child(2) { width: 25%; }
.medical-orders-table th:nth-child(3) { width: 9%; }
.medical-orders-table th:nth-child(4) { width: 18%; }
.medical-orders-table th:nth-child(5) { width: 14%; }
.medical-orders-table th:nth-child(6) { width: 13%; }
.medical-orders-table th:nth-child(7) { width: 14%; }
.medical-orders-table p { margin: 6px 0; }
.medical-orders-table button, .medical-orders-table select { width: 100%; min-width: 0; padding: 8px 6px; white-space: normal; }
.medical-row-actions button + button { margin-top: 6px; }
.medical-row-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding: 12px; background: #f3f7f5; }
#medical-content .medical-row-editor input { width: 100%; max-width: none; min-width: 0; }
.medical-batch-action { background: #174e4a; color: white; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; }
.medical-batch-action:disabled { opacity: .5; cursor: not-allowed; }
#registration-auto-reply-panel > summary,
#registration-inbox-panel > summary {
  padding: 0;
}

#registration-auto-reply-panel > summary strong,
#registration-inbox-panel > summary strong {
  font-size: 1.3rem;
}

.registration-panel-status {
  min-height: 0;
  margin: 12px 0 0;
  color: #5f7773;
  font-size: .86rem;
}

.registration-panel-status:empty {
  display: none;
}

.registration-panel-status:not(:empty) {
  padding: 10px 12px;
  border: 1px solid #dce7e3;
  border-radius: 10px;
  background: #f8fbfa;
}

#registration-auto-reply-content {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.registration-auto-reply-effective,
.registration-auto-reply-preview {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #dce7e3;
  border-radius: 12px;
  background: #f3f7f5;
  color: #365d57;
  font: inherit;
  font-size: .86rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.registration-settings-section {
  overflow: hidden;
  border: 1px solid rgba(22, 73, 70, .12);
  border-radius: 14px;
  background: #fff;
}

.registration-settings-section > summary {
  padding: 13px 15px;
  cursor: pointer;
  color: #365d57;
  font-size: .9rem;
  font-weight: 800;
}

.registration-settings-section[open] > summary {
  border-bottom: 1px solid #dce7e3;
  background: #f8fbfa;
}

.registration-settings-section > p,
.registration-settings-section > button,
.registration-settings-section > label,
.registration-settings-section > pre,
.registration-settings-section > .registration-settings-editor {
  margin-left: 15px;
  margin-right: 15px;
}

.registration-settings-section > p {
  color: #607a75;
  font-size: .84rem;
  line-height: 1.5;
}

.registration-settings-section > button {
  margin-top: 12px;
  margin-bottom: 12px;
}

.registration-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 0;
  padding: 10px 12px;
  border: 1px solid #e3ece9;
  border-radius: 10px;
  background: #f8fbfa;
}

.registration-settings-row button {
  flex: 0 0 auto;
}

.registration-settings-editor {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 15px;
  padding: 14px;
  border: 1px solid #dce7e3;
  border-radius: 12px;
  background: #f8fbfa;
}

#registration-auto-reply-content label {
  display: grid;
  gap: 6px;
  color: #365d57;
  font-size: .82rem;
  font-weight: 750;
}

#registration-auto-reply-content input:not([type="checkbox"]),
#registration-auto-reply-content select,
#registration-auto-reply-content textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #adc2be;
  border-radius: 10px;
  background: #fff;
  color: #173b37;
  font: inherit;
}

#registration-auto-reply-content textarea {
  min-height: 150px;
  line-height: 1.5;
  resize: vertical;
}

#registration-auto-reply-content input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #174e4a;
}

#registration-auto-reply-content button {
  min-height: 40px;
}

.registration-inbox-note {
  margin: 16px 0 0;
}

.registration-inbox-toolbar {
  margin-top: 14px;
}

#registration-inbox-content {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.registration-inbox-card {
  padding: 16px;
  border: 1px solid rgba(22, 73, 70, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(24, 65, 59, .04);
}

.registration-inbox-card h3 {
  margin: 0 0 8px;
  color: #102b2b;
  font-size: 1.05rem;
}

.registration-inbox-card p {
  margin: 5px 0;
  color: #526f6a;
  font-size: .86rem;
  line-height: 1.45;
}

.registration-inbox-classification {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #edf5f2;
  color: #267052;
  font-size: .76rem;
  font-weight: 800;
}

.registration-inbox-comment,
.registration-inbox-review {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid #dce7e3;
  border-radius: 10px;
  background: #f8fbfa;
  color: #365d57;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  font-size: .84rem;
  line-height: 1.5;
}

.registration-inbox-duplicates {
  margin-top: 12px !important;
  padding-top: 10px;
  border-top: 1px solid #e5edea;
}

.registration-inbox-actions {
  margin-top: 12px;
}

#registration-inbox-panel button:disabled,
#registration-auto-reply-panel button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

@media (max-width: 700px) {
  .registration-settings-row {
    align-items: stretch;
    flex-direction: column;
  }

  .registration-settings-row button {
    width: 100%;
  }

  .registration-inbox-toolbar,
  .registration-inbox-actions {
    align-items: stretch;
  }

  .registration-inbox-toolbar button,
  .registration-inbox-actions button {
    width: 100%;
  }
}
