/* Component ownership: presentation.js renders markup, callers own business
   state and sizing variants. Both themes use exactly the same geometry. */
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}
.text-button:hover:not(:disabled) {
  text-decoration: underline;
}
.text-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
/* The existing approval class is shared by registration approval and the
   asynchronous site confirmation; its appearance belongs to neither business. */
.registration-approval-dialog {
  padding: 0;
  width: 500px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
}
.registration-approval-dialog::backdrop {
  background: var(--shade);
}
.registration-approval-dialog > header,
.registration-approval-dialog > footer {
  padding: 16px 22px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.registration-approval-dialog > header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}
.registration-approval-dialog h2 {
  font-size: 17px;
  color: var(--ink);
  margin: 0;
}
.registration-approval-dialog > section {
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.7;
}
.registration-approval-dialog > section p {
  margin: 0 0 10px;
}
.registration-approval-dialog > footer {
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}
.site-confirmation .site-confirmation-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ui-tabs--underline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ui-tabs-gap, 26px);
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
.ui-tabs--underline .ui-tab {
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}
.ui-tabs--underline .ui-tab.active {
  border-bottom-color: var(--ui-tab-accent, var(--accent));
  color: var(--ui-tab-accent, var(--accent));
  font-weight: 600;
}
.ui-tabs .ui-tab.active::after {
  content: none;
}
.ui-tabs--segmented {
  display: flex;
  width: fit-content;
  gap: 2px;
  margin: 0 0 14px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--wash);
}
.ui-tabs--segmented .ui-tab {
  margin: 0;
  padding: 5px 18px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}
.ui-tabs--segmented .ui-tab.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.ui-tabs--segmented.student-directory-switch {
  gap: 0;
}
.ui-tabs--segmented.student-directory-switch .ui-tab {
  padding: 7px 18px;
}
.ui-tabs--segmented.student-directory-switch .ui-tab.active {
  background: var(--accent-weak);
  box-shadow: none;
}
.ui-tabs .ui-tab:hover:not(:disabled) {
  color: var(--ui-tab-accent, var(--accent));
}
.ui-tabs .ui-tab:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.ui-tabs .ui-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Camp learning and the simple management tabs use the original inset line,
   rather than the full-width line of the data-detail tabs. */
.ui-tabs--underline.learning-matrix-tabs,
.ui-tabs--underline.model-admin-tabs,
.ui-tabs--underline.secondary-tabs {
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
}
.ui-tabs--underline.learning-matrix-tabs .ui-tab,
.ui-tabs--underline.model-admin-tabs .ui-tab,
.ui-tabs--underline.secondary-tabs .ui-tab {
  padding: 9px 14px 10px;
  border-bottom: 0;
  color: var(--faint);
  font-size: 13.5px;
}
.ui-tabs--underline.learning-matrix-tabs .ui-tab:focus-visible,
.ui-tabs--underline.model-admin-tabs .ui-tab:focus-visible,
.ui-tabs--underline.secondary-tabs .ui-tab:focus-visible {
  border-radius: 4px;
}
.ui-tabs--underline.learning-matrix-tabs .ui-tab.active,
.ui-tabs--underline.model-admin-tabs .ui-tab.active,
.ui-tabs--underline.secondary-tabs .ui-tab.active {
  color: var(--ink);
  font-weight: 700;
}
.ui-tabs--underline.learning-matrix-tabs .ui-tab:hover:not(:disabled),
.ui-tabs--underline.model-admin-tabs .ui-tab:hover:not(:disabled),
.ui-tabs--underline.secondary-tabs .ui-tab:hover:not(:disabled) {
  color: var(--ink);
}
.ui-tabs--underline.learning-matrix-tabs .ui-tab.active::after,
.ui-tabs--underline.model-admin-tabs .ui-tab.active::after,
.ui-tabs--underline.secondary-tabs .ui-tab.active::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2.5px;
  border-radius: 1px;
  background: var(--accent);
}
.ui-status {
  --ui-status-ink: var(--muted);
  --ui-status-wash: transparent;
}
.ui-status--registration {
  --ui-status-wash: var(--wash);
}
:root .ui-status,
:root .student-overview-state.ui-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  width: auto;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--ui-status-ink);
  background: var(--ui-status-wash);
  font-size: 11.5px;
  line-height: 1.4;
  white-space: nowrap;
}
:root .ui-status.ui-status--registration {
  display: inline;
  padding: 3px 7px;
  font-size: 11px;
  line-height: inherit;
}
.ui-status.ui-status--success {
  --ui-status-ink: var(--ok);
  --ui-status-wash: var(--ok-weak);
}
.ui-status.ui-status--danger {
  --ui-status-ink: var(--bad);
  --ui-status-wash: var(--bad-weak);
}
.ui-status.ui-status--warning {
  --ui-status-ink: var(--warn);
  --ui-status-wash: var(--warn-weak);
}
.ui-status.ui-status--info {
  --ui-status-ink: var(--accent);
  --ui-status-wash: var(--accent-weak);
}
.student-overview-open:hover .ui-status {
  text-decoration: underline;
}
/* Matrix results have their own measured density; compact badges elsewhere
   retain the smaller default. Preserve existing pending / missing hues. */
:root .ui-status.ui-status--matrix {
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.55;
}
/* Keep the existing matrix cell width and line height. */
:root .student-overview-state.ui-status {
  line-height: 1.25;
}
:root .student-overview-state.ui-status:is(.is-pass, .is-fail) {
  box-sizing: border-box;
  width: 88px;
}
.ui-status--matrix.ui-status--success {
  --ui-status-wash: color-mix(in srgb, var(--ok) 5%, var(--surface));
}
.ui-status--matrix.ui-status--danger {
  --ui-status-wash: color-mix(in srgb, var(--bad) 6%, var(--surface));
}
.ui-status--matrix.is-pending {
  --ui-status-ink: #315ea8;
  --ui-status-wash: #f3f7ff;
}
.ui-status--matrix.is-todo {
  --ui-status-ink: #8a6414;
  --ui-status-wash: #fffbeb;
}
@media (prefers-color-scheme: dark) {
  .ui-status--matrix.ui-status--success {
    --ui-status-wash: var(--ok-weak);
  }
  .ui-status--matrix.ui-status--danger {
    --ui-status-wash: var(--bad-weak);
  }
  .ui-status--matrix.is-pending {
    --ui-status-ink: var(--accent);
    --ui-status-wash: var(--accent-weak);
  }
  .ui-status--matrix.is-todo {
    --ui-status-ink: var(--warn);
    --ui-status-wash: var(--warn-weak);
  }
}
.role-table th:first-child {
  width: 18%;
}
.role-table th:nth-child(2) {
  width: 20%;
}
.role-table th:last-child {
  width: 150px;
}
.role-table .role-scope-cell {
  white-space: normal;
  line-height: 1.7;
}
.role-error {
  margin-bottom: 16px;
}
.permission-editor-page {
  --permission-label-width: 150px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 28px 32px;
  background: var(--surface);
  color: var(--ink);
}
.permission-editor-page .camp-page-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.permission-editor-page .permission-basics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.permission-editor-page .field-group {
  margin: 0;
  min-width: 0;
}
.permission-editor-page .field-group > label,
.scope-multi-field > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}
.permission-editor-page .field {
  width: 100%;
  max-width: none;
  min-height: 38px;
}
.permission-editor-page .permission-topic-row,
.permission-editor-page .permission-section {
  display: grid;
  grid-template-columns: var(--permission-label-width) minmax(0, 1fr);
  align-items: start;
}
.permission-editor-page h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 600;
}
.permission-topic-content,
.permission-kind-columns {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
}
.permission-main-scope {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.permission-scope-guide {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.8;
}
.permission-scope-guide p {
  margin: 0;
}
.permission-scope-guide p + p {
  margin-top: 7px;
  color: var(--muted);
}
.scope-mode-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.scope-mode-choices legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}
.scope-mode-choices label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.permission-editor-page input[type='checkbox'],
.permission-editor-page input[type='radio'] {
  accent-color: var(--accent);
}
.role-range-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 20px;
}
.scope-multi {
  position: relative;
}
.scope-multi summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 9px 12px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--surface);
  font-size: 13px;
  cursor: pointer;
}
.scope-multi summary::-webkit-details-marker {
  display: none;
}
.scope-multi summary > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.scope-multi[open] summary {
  border-color: var(--accent);
}
.scope-multi-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.scope-multi-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px;
  font-size: 13px;
  cursor: pointer;
}
.scope-multi-option:hover {
  background: var(--wash);
}
.scope-relation-rules {
  margin: 18px 0 0;
  padding: 0;
}
.scope-relation-rules > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}
.scope-relation-rules dt,
.scope-relation-rules dd {
  margin: 0;
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.scope-relation-rules dd {
  color: var(--muted);
}
.permission-functions-title {
  padding: 24px 0 8px;
}
.permission-functions-title p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.permission-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.permission-block-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-right: 20px;
}
.permission-block-head h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
}
.permission-block-head label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}
.permission-kind-title {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
}
.permission-kind + .permission-kind {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.permission-grid {
  display: block;
  padding: 0;
}
.permission-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 9px 0;
}
.permission-option input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
}
.permission-option span {
  display: block;
  min-width: 0;
}
.permission-option b {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}
.permission-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.permission-learning-note {
  margin: 18px 0 0;
  padding-left: calc(var(--permission-label-width) + 24px);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.permission-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.permission-footer .role-error {
  margin: 0 auto 0 0;
}
.permission-editor-page summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .permission-editor-page {
    --permission-label-width: 120px;
    padding: 20px;
  }
  .role-range-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .permission-topic-content,
  .permission-kind-columns {
    padding-left: 16px;
  }
}
@media (max-width: 480px) {
  .permission-editor-page {
    --permission-label-width: 96px;
    padding: 16px;
  }
  .permission-editor-page .permission-basics {
    grid-template-columns: minmax(0, 1fr);
  }
  .permission-learning-note {
    padding-left: 0;
  }
  .permission-footer {
    flex-wrap: wrap;
  }
}
.account-profile-page .breadcrumb {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
}
.account-profile-page .breadcrumb .text-button {
  padding: 3px 5px;
  border: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.account-profile-page .account-profile-heading {
  margin-bottom: 20px;
}
.account-profile-page .account-profile-heading h1 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
}
.account-profile-page .account-profile-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.account-profile-page .form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.account-profile-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: visible;
  background: var(--surface);
}
.account-profile-panel .profile-columns,
.account-profile-panel .profile-section {
  display: grid;
  grid-template-columns: 112px minmax(0, 1.06fr) minmax(0, 1fr);
}
.account-profile-panel .profile-columns {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.account-profile-panel .profile-columns > strong,
.account-profile-panel .profile-columns > span {
  padding: 13px 24px;
  font-weight: 400;
}
.account-profile-panel .profile-columns > strong {
  color: var(--ink);
}
.account-profile-panel .profile-columns > :last-child {
  border-left: 1px solid var(--line);
}
.account-profile-panel .profile-section {
  border-bottom: 1px solid var(--line);
}
.account-profile-panel .profile-section:last-child {
  border-bottom: 0;
}
.account-profile-panel .profile-section > h3 {
  margin: 0;
  padding: 24px 18px 24px 22px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.account-profile-panel .profile-core,
.account-profile-panel .profile-extra {
  min-width: 0;
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}
.account-profile-panel .profile-span {
  grid-column: 2 / 4;
}
.account-profile-panel .profile-section .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 18px;
}
.account-profile-panel .profile-section .field-group {
  margin: 0;
}
.account-profile-panel .field-group:has(input[name='name']) {
  grid-column: 1 / -1;
}
.account-profile-panel .profile-section label,
.account-profile-panel .profile-field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}
.account-profile-panel .name-required {
  margin-left: 4px;
  color: var(--bad);
}
.account-profile-panel .profile-section .field {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}
.account-profile-panel .profile-auto-fields {
  margin: 17px 0 0;
}
.account-profile-panel .profile-auto-fields .field {
  font-size: 13px;
}
.account-profile-panel .profile-section .field[readonly] {
  color: var(--ink);
  background: var(--wash);
  cursor: default;
}
.account-profile-panel .profile-span > .staff-multiselect {
  max-width: 560px;
}
.account-profile-panel .profile-training-selectors {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  max-width: 760px;
}
.account-profile-panel .staff-multiselect summary {
  height: auto;
  min-height: 36px;
  white-space: normal;
  line-height: 1.7;
}
.account-profile-panel .staff-multiselect summary span {
  white-space: normal;
  overflow-wrap: anywhere;
}
.account-profile-panel .staff-options {
  background: var(--surface);
}
.account-profile-panel .staff-multiselect .staff-options label {
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 8px;
  font-size: 12px;
}
.account-profile-panel .staff-multiselect .staff-options input[type='checkbox'] {
  flex: none;
  accent-color: var(--accent);
}
.account-profile-panel .profile-camp-select .staff-options {
  max-height: 310px;
  overflow: auto;
}
.account-profile-panel .profile-camp-select[open] .staff-options {
  top: auto;
  bottom: calc(100% + 6px);
}
.account-profile-panel .profile-selected-camps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.account-profile-panel .profile-binding-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.6;
}
.account-profile-panel .profile-binding-chip select.field {
  width: auto;
  min-width: 90px;
  height: 30px;
  margin-left: 8px;
  padding: 3px 24px 3px 8px;
  font-size: 12px;
}
.account-profile-panel .profile-binding-chip button {
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.account-profile-panel .profile-binding-chip button:hover:not(:disabled) {
  color: var(--bad);
}
.account-profile-panel .profile-binding-chip button:disabled {
  cursor: default;
  opacity: 0.5;
}
.account-profile-panel .profile-no-bindings,
.account-profile-panel .profile-camp-hint {
  color: var(--muted);
  font-size: 11px;
}
.account-profile-panel .profile-camp-hint {
  margin: 10px 0 0;
  line-height: 1.7;
}
.account-table-section .account-management-table {
  min-width: 2100px;
  table-layout: auto;
}
.account-table-section .account-management-table th,
.account-table-section .account-management-table td {
  white-space: nowrap;
}
.account-table-section .account-edit-profile {
  margin-right: 10px;
  padding: 3px 5px;
  border: 0;
  color: var(--accent);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 1100px) {
  .account-profile-panel .profile-columns,
  .account-profile-panel .profile-section {
    grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr);
  }
  .account-profile-panel .profile-core,
  .account-profile-panel .profile-extra,
  .account-profile-panel .profile-columns > strong,
  .account-profile-panel .profile-columns > span {
    padding-left: 18px;
    padding-right: 18px;
  }
  .account-profile-panel .profile-section > h3 {
    padding-left: 16px;
  }
  .account-profile-panel .profile-section .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .account-profile-panel .profile-columns {
    display: none;
  }
  .account-profile-panel .profile-section {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-profile-panel .profile-section > h3 {
    padding-bottom: 0;
  }
  .account-profile-panel .profile-core,
  .account-profile-panel .profile-extra {
    padding: 18px;
    border-left: 0;
  }
  .account-profile-panel .profile-span {
    grid-column: auto;
  }
  .account-profile-panel .profile-extra {
    border-top: 1px dashed var(--line);
  }
  .account-profile-panel .profile-training-selectors {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}
.registration-page {
  min-width: 0;
  max-width: 100%;
  color: var(--text);
}
.registration-page .name-required {
  color: var(--bad);
}
.registration-page h1 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
}
.registration-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.registration-heading p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.registration-heading p span {
  padding: 0 8px;
}
.registration-title {
  display: flex;
  gap: 13px;
  align-items: center;
}
.registration-heading-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.registration-surface {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.registration-batch-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.registration-link {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 3px 5px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.registration-review-list .registration-title-link {
  display: block;
  padding: 0;
  color: var(--ink);
  font-weight: 500;
}
.registration-review-list .registration-title-link:hover {
  color: var(--accent);
}
.registration-notice {
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  margin-bottom: 20px;
}
.registration-notice strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.registration-notice p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.registration-notice.is-needs_changes {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--warn) 28%, var(--line));
}
.registration-context {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 20px;
  flex-wrap: wrap;
}
.registration-context label {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.registration-context select {
  width: auto;
  min-width: 150px;
}
.registration-context p {
  margin: 0 0 0 auto;
  font-size: 11px;
  color: var(--muted);
}
[data-registration-save-state] {
  margin-left: 12px;
  color: var(--ok);
}
.registration-grid-scroll {
  min-width: 0;
  max-width: 100%;
  max-height: calc(100vh - 375px);
  min-height: 240px;
  overflow: auto;
  border-radius: 0 0 8px 8px;
  scrollbar-width: auto;
  scrollbar-color: var(--faint) var(--wash);
}
.registration-grid-scroll::-webkit-scrollbar {
  height: 10px;
  width: 9px;
}
.registration-grid-scroll::-webkit-scrollbar-thumb {
  background: var(--faint);
  border: 2px solid var(--wash);
  border-radius: 8px;
}
.registration-sheet-grid {
  width: 3152px;
  min-width: 3152px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.registration-sheet-grid col {
  width: 150px;
}
.registration-sheet-grid .registration-col-index {
  width: 48px;
}
.registration-sheet-grid .registration-col-name {
  width: 135px;
}
.registration-sheet-grid .registration-col-workEmail {
  width: 210px;
}
.registration-sheet-grid .registration-col-campIds {
  width: 240px;
}
.registration-sheet-grid .registration-col-createdAt,
.registration-sheet-grid .registration-col-lastLoginAt {
  width: 185px;
}
.registration-sheet-grid th,
.registration-sheet-grid td {
  padding: 0;
  height: 49px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  vertical-align: middle;
  text-align: left;
}
.registration-sheet-grid thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--wash);
  height: 41px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.registration-sheet-grid .registration-row-index {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 48px;
  text-align: center;
  font-size: 11px;
  color: var(--faint);
}
.registration-sheet-grid thead .registration-row-index {
  z-index: 5;
}
.registration-row-index button {
  display: block;
  margin: 2px auto;
  padding: 0 5px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
}
.registration-sheet-grid .name-column {
  position: sticky;
  left: 48px;
  z-index: 2;
  background: var(--surface);
  box-shadow: 3px 0 4px rgb(0 0 0 / 3%);
}
.registration-sheet-grid thead .name-column {
  z-index: 5;
  background: var(--wash);
  color: var(--ink);
}
.registration-sheet-input {
  display: block;
  width: calc(100% - 12px);
  min-width: 0;
  height: 32px;
  margin: 0 6px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  font: 13px inherit;
  outline: 0;
}
.registration-sheet-input:not([readonly]):not(:disabled):hover {
  border-color: var(--line);
  background: var(--wash);
}
.registration-sheet-input:focus {
  border-color: var(--accent);
  background: var(--surface);
}
.registration-sheet-input[readonly],
.registration-sheet-input:disabled {
  opacity: 1;
  color: var(--text);
  cursor: default;
}
.registration-reference {
  display: block;
  border: 0;
  padding: 0 14px 4px;
  color: var(--accent);
  background: none;
  font-size: 10px;
  cursor: pointer;
}
.registration-system {
  padding: 0 14px !important;
  background: var(--wash) !important;
  color: var(--muted);
  font-size: 12px;
}
.registration-system span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.registration-row-camps summary {
  list-style: none;
  min-width: 0;
  padding: 9px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.registration-row-camps summary::after {
  content: '⌄';
  margin-left: 8px;
  color: var(--muted);
}
.registration-camp-menu {
  position: fixed;
  z-index: 200;
  width: 300px;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-2);
}
.registration-camp-menu label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 7px;
  font-size: 12px;
  cursor: pointer;
}
.registration-camp-menu label span {
  white-space: normal;
}
.registration-camp-menu small {
  display: block;
  padding: 9px 7px 4px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.registration-camp-readonly {
  display: block;
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.registration-table-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}
.registration-table-foot small,
.registration-muted {
  color: var(--muted);
  font-size: 12px;
}
.registration-field-error,
.registration-error {
  color: var(--bad);
  font-size: 12px;
  line-height: 1.7;
}
.registration-field-error {
  display: block;
  padding: 0 12px;
}
.registration-error[hidden] {
  display: none;
}
.registration-reference-panel {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}
.registration-reference-panel label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
  font-size: 12px;
}
.registration-reference-panel p {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
}
.registration-candidate {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 10px;
  margin: 10px 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
}
.registration-candidate span {
  color: var(--muted);
  font-size: 12px;
}
.registration-tabs {
  display: flex;
  gap: 24px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.registration-tabs button {
  padding: 17px 0;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: none;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.registration-tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.registration-review-list {
  max-width: 100%;
  overflow: auto;
}
.registration-review-list table {
  min-width: 760px;
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
.registration-review-list th,
.registration-review-list td {
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.registration-review-list th {
  padding: 12px 18px;
  background: var(--wash);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.registration-review-list td {
  padding: 20px 18px;
}
.registration-review-list tbody tr:last-child td {
  border-bottom: 0;
}
.registration-review-list tbody tr:hover {
  background: var(--wash);
}
.registration-review-list .registration-empty {
  text-align: center !important;
  color: var(--muted);
}
.registration-review-shade {
  position: fixed;
  inset: 0;
  z-index: 170;
}
.registration-review-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgb(20 30 45 / 22%);
}
.registration-review-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  width: 440px;
  max-width: calc(100vw - 24px);
  height: 100dvh;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.registration-review-drawer > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 18px;
  flex-shrink: 0;
}
.registration-review-drawer h2 {
  font-size: 19px;
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 600;
}
.registration-review-drawer > header p {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
.registration-review-drawer > header > button {
  font-size: 24px;
}
.registration-review-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.registration-comment-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px 4px;
}
.registration-comment {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.registration-comment header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.registration-comment strong {
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.registration-comment small {
  font-size: 10px;
  color: var(--faint);
}
.registration-comment p {
  font-size: 12px;
  line-height: 1.8;
  margin: 7px 0 11px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.registration-comment-reply {
  padding: 12px 14px;
  margin: 12px 0;
  background: var(--wash);
  border-radius: 5px;
  border-bottom: 0;
}
.registration-composer {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.registration-composer label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.registration-composer textarea {
  width: 100%;
  resize: vertical;
  max-height: 25vh;
  min-height: 85px;
  line-height: 1.7;
}
.registration-composer > button:last-child {
  float: right;
  font-size: 11px;
  margin-top: 8px;
}
.registration-review-drawer > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.registration-review-drawer > footer .btn {
  min-width: 106px;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .registration-context p {
    margin-left: 0;
    width: 100%;
  }
  .registration-heading {
    flex-wrap: wrap;
  }
}

/* Adopted 1015 detail, thread and confirmation structure, using shared tokens. */
.registration-breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 13px;
}
.registration-breadcrumb span {
  margin: 0 9px;
  color: var(--faint);
}
.registration-notice {
  display: flex;
  align-items: center;
  gap: 13px;
}
.registration-notice > .registration-link {
  margin-left: auto;
  white-space: nowrap;
}
.registration-notice-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--wash);
  color: var(--accent);
  font-size: 12px;
}
.registration-notice.is-approved .registration-notice-mark {
  color: var(--ok);
  background: var(--ok-weak);
}
.registration-notice.is-needs_changes .registration-notice-mark {
  color: var(--warn);
  background: var(--warn-weak);
}
.registration-sheet-grid .registration-col-hireDate {
  width: 118px;
}
.registration-sheet-grid .registration-col-staffingOrg,
.registration-sheet-grid .registration-col-companyId {
  width: 130px;
}
.registration-sheet-grid .registration-col-department,
.registration-sheet-grid .registration-col-team,
.registration-sheet-grid .registration-col-season {
  width: 100px;
}
.registration-sheet-grid .registration-col-jobTitle {
  width: 128px;
}
.registration-sheet-grid .registration-col-jobLevel {
  width: 75px;
}
.registration-sheet-grid .registration-col-supervisor {
  width: 115px;
}
.registration-sheet-grid .registration-col-workTg,
.registration-sheet-grid .registration-col-personalTg {
  width: 160px;
}
.registration-sheet-grid .registration-col-roles,
.registration-sheet-grid .registration-col-status {
  width: 110px;
}
.registration-sheet-grid .registration-col-username {
  width: 170px;
}
.registration-sheet-grid tbody tr:last-child td,
.registration-sheet-grid tbody tr:last-child th {
  border-bottom: 0;
}
.registration-sheet-grid tbody tr:hover td,
.registration-sheet-grid tbody tr:hover .registration-row-index {
  background: var(--wash);
}
.registration-sheet-grid td[data-registration-editable] {
  cursor: text;
}
.registration-sheet-grid td[data-registration-editable]:hover {
  background: var(--wash);
}
.registration-sheet-grid td[data-registration-editable]:focus-within {
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--surface);
}
.registration-sheet-grid td[data-registration-editable] input:focus {
  border-color: transparent;
  box-shadow: none;
  outline: 0;
}
.registration-camp-menu label > span {
  flex: 1;
  min-width: 0;
}
.registration-camp-menu .registration-camp-state {
  display: inline-block;
  border: 0;
  font-size: 10px;
  white-space: nowrap;
  color: var(--accent);
  background: var(--accent-weak);
  border-radius: 3px;
  padding: 2px 5px;
}
.registration-comment {
  display: flex;
  gap: 10px;
}
.registration-comment-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wash);
  color: var(--muted);
  font-size: 11px;
}
.registration-thread-content {
  flex: 1;
  min-width: 0;
}
.registration-comment-reply strong {
  color: var(--accent);
}
.registration-comment-reply {
  padding: 10px 12px 1px;
  background: var(--wash);
  border-radius: 5px;
}
.registration-opinion-badge {
  color: var(--warn);
  background: var(--warn-weak);
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 10px;
}
.registration-review-event {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}
.registration-review-event header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10px;
}
.registration-review-event strong {
  font-weight: 400;
}
.registration-review-event p {
  margin: 7px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.registration-reply-form {
  margin-top: 10px;
  padding: 12px;
  background: var(--wash);
  border-radius: 5px;
}
.registration-reply-form[hidden] {
  display: none;
}
.registration-reply-form label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.registration-reply-form textarea {
  width: 100%;
  min-height: 80px;
  box-sizing: border-box;
  resize: vertical;
  font-size: 12px;
  line-height: 1.7;
}
.registration-reply-form > div {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.registration-reply-form button {
  font-size: 11px;
}
.registration-comment-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.registration-comment-footer small {
  color: var(--muted);
  font-size: 11px;
}
.registration-tab-count {
  font-size: 10px;
  color: var(--faint);
  margin-left: 7px;
}
.registration-list-created,
.registration-recent-activity small {
  display: block;
  font-size: 10px;
  color: var(--faint);
  margin-top: 6px;
}
.registration-recent-activity {
  color: var(--muted);
  font-size: 11px;
}

.registration-camp-menu .registration-camp-state.is-ongoing {
  color: var(--ok);
  background: var(--ok-weak);
}
.history-context-toolbar {
  margin: 0 0 18px;
}
.history-context-toolbar > label,
.log-date-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--muted);
}
.history-context-toolbar .field {
  width: auto;
  min-width: 160px;
}
.log-date-filter .field {
  width: 145px;
}
.survey-config-page {
  max-width: 1260px;
}
.survey-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.survey-page-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.survey-config-page .breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 9px;
}
.survey-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.survey-page-actions > span {
  font-size: 12px;
  color: var(--muted);
  margin-right: 6px;
}
.catalog-rule {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 18px;
  line-height: 1.7;
}
.survey-page-head > span,
.survey-page-head .small {
  color: var(--muted);
  font-size: 12px;
}
.survey-catalog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.survey-catalog table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.survey-catalog th,
.survey-catalog td {
  padding: 22px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.survey-catalog th {
  white-space: nowrap;
  padding-block: 14px;
  font-size: 12px;
  font-weight: 500;
  background: var(--wash);
}
.survey-catalog th:first-child {
  width: 28%;
}
.survey-catalog .small {
  margin: 0;
  padding: 16px 20px;
}
.catalog-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
}
.catalog-sub {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.default-survey {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--accent-weak);
  color: var(--accent);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}
.catalog-actions {
  white-space: nowrap;
}
.catalog-actions button + button {
  margin-left: 14px;
}
.catalog-actions .table-action {
  border: 0;
  background: none;
  padding: 3px 0;
  cursor: pointer;
  color: var(--accent);
  font-size: 12px;
}
.survey-config-page .schedule-status {
  padding: 4px 9px;
  border-radius: 4px;
  color: var(--muted);
  background: var(--wash);
  font-size: 12px;
}
.survey-config-page .schedule-status.current {
  background: var(--accent-weak);
  color: var(--accent);
}
.survey-catalog .schedule-status {
  padding: 0;
  border-radius: 0;
  background: none;
}
.survey-catalog .schedule-status.current {
  color: var(--ok);
}
@media (prefers-color-scheme: dark) {
  .survey-catalog .schedule-status.current {
    color: var(--ok);
    background: var(--ok-weak);
  }
}
.survey-back {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}
.survey-name-section {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.survey-name-section > label {
  font-size: 13px;
  white-space: nowrap;
}
.survey-name-section > input {
  max-width: 520px;
}
.survey-usage-note {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 2px 22px;
}
.survey-question-workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.survey-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.survey-question-head h2 {
  margin: 0;
  font-size: 14px;
}
.survey-question-head small {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.survey-config-page .question-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  margin: 0 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.question-number {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 25px;
  color: var(--text);
}
.question-number b {
  white-space: nowrap;
  font-size: 13px;
  line-height: 26px;
}
.drag-handle {
  cursor: grab;
  color: var(--muted);
  font-size: 23px;
  line-height: 26px;
  user-select: none;
}
.drag-handle[draggable='false'] {
  cursor: default;
  opacity: 0.4;
}
.question-type-field {
  display: block;
  width: 102px;
  flex-shrink: 0;
  margin-left: 12px;
}
.question-type-field > span {
  display: block;
  font-size: 12px;
  line-height: 20px;
}
.question-type-field select {
  width: 102px;
  font-size: 12px;
}
.question-content {
  min-width: 0;
  position: relative;
}
.question-content::before {
  content: '';
  position: absolute;
  left: -24px;
  top: -6px;
  bottom: -6px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--line) 18%,
    var(--line) 82%,
    transparent
  );
  pointer-events: none;
}
.question-title-row {
  display: flex;
  align-items: end;
  gap: 18px;
}
.question-title-field {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 9px;
}
.question-title-field > span,
.setting-label {
  font-size: 12px;
  color: var(--muted);
}
.delete-question,
.option-remove,
.add-option {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.delete-question {
  height: 38px;
  padding: 0 4px;
}
.delete-question:hover,
.option-remove:hover {
  color: var(--bad);
}
.answer-settings {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.answer-settings .small-number {
  width: 68px;
}
.setting-hint {
  font-size: 12px;
  color: var(--muted);
}
.option-list {
  margin-top: 18px;
}
.option-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.option-row .field {
  flex: 1;
  min-width: 0;
}
.option-letter {
  width: 15px;
  color: var(--muted);
  font-size: 12px;
}
.option-remove {
  width: 28px;
  font-size: 20px;
}
.add-option {
  padding: 5px 0;
  margin-left: 27px;
  color: var(--accent);
}
.survey-config-page button:disabled {
  cursor: default;
  opacity: 0.5;
}
.survey-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 24px;
}
.survey-add-question-row {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 20px 24px 20px 284px;
}
.survey-add-question-row label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.survey-config-page .question-score {
  padding-block: 20px;
  align-items: center;
}
.question-score .question-number {
  padding-top: 0;
}
.question-score .question-content {
  display: flex;
  align-items: center;
  gap: 14px;
}
.question-score .question-title-row {
  display: contents;
}
.question-score .question-title-field > span,
.question-score .setting-label {
  display: none;
}
.question-score .question-title-field {
  flex: 1;
  min-width: 140px;
}
.question-score .answer-settings {
  margin: 0;
  gap: 7px;
  white-space: nowrap;
  order: 3;
}
.question-score .small-number {
  width: 54px;
  min-height: 32px;
}
.question-score .delete-question {
  order: 4;
}
.survey-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
}
.survey-fill-dialog {
  width: min(760px, calc(100vw - 40px));
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 80px #0004;
  overflow: hidden;
}
.survey-fill-dialog[open] {
  display: flex;
  flex-direction: column;
}
.survey-fill-dialog::backdrop {
  background: #0007;
}
.survey-fill-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex: none;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.survey-fill-head h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.survey-fill-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.survey-fill-close {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
}
.survey-fill-body {
  min-height: 0;
  padding: 20px 28px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.reviewed-survey .small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.review-question {
  margin: 0;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.review-question h3 {
  margin: 0 0 13px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}
.ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ratings label {
  position: relative;
  cursor: pointer;
}
.ratings input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ratings span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}
.ratings input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-weak);
  font-weight: 600;
}
.ratings input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.review-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.review-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
}
.review-options input {
  accent-color: var(--accent);
}
.review-question textarea {
  width: 100%;
  resize: vertical;
  min-height: 82px;
}
.survey-fill-footer {
  flex: none;
  padding: 14px 28px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  text-align: right;
}
.survey-fill-footer .error {
  margin: 8px 0 0;
  font-size: 12px;
}
.survey-fill-footer .error:empty {
  display: none;
}
.survey-fill-body .reviewed-survey {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.survey-required {
  color: var(--bad);
}
.learning-session-entry {
  display: grid;
  gap: 6px;
}
.learning-session-entry button.glist-live {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
@media (max-width: 760px) {
  .survey-add-question-row {
    padding: 16px;
    flex-wrap: wrap;
  }
  .survey-page-head {
    flex-wrap: wrap;
  }
  .survey-name-section {
    padding: 16px;
    flex-wrap: wrap;
  }
  .survey-config-page .question-item {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .question-content {
    padding-left: 0;
    border-left: 0;
  }
  .question-content::before {
    display: none;
  }
  .question-score .question-content {
    flex-wrap: wrap;
  }
  .question-score .question-title-field {
    flex: 1 1 100%;
  }
  .question-number {
    align-items: center;
  }
  .question-type-field {
    display: flex;
    align-items: center;
    margin-left: 0;
  }
  .survey-page-head {
    align-items: flex-start;
  }
}

.survey-config-page > .error {
  position: sticky;
  top: 76px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--bad);
  border-radius: 6px;
  box-shadow: 0 3px 12px #0001;
}
.survey-config-page [aria-invalid='true'] {
  border-color: var(--bad);
}
.survey-config-page [data-question-field],
.survey-config-page [data-question-option] {
  scroll-margin-top: 145px;
}
.learning-matrix-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}
.learning-help-drawer {
  width: min(640px, 94vw);
}
.learning-matrix [data-graduation-return] {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.roster-work-cell .outline-muted small {
  display: block;
  font-size: 10.5px;
  margin-top: 3px;
}
.learning-matrix .roster-filters {
  display: flex;
  gap: 8px;
  max-width: 460px;
}
.learning-matrix .roster-filters .field {
  width: auto;
  min-width: 150px;
}
.learning-matrix .roster-course-wrap {
  max-height: 520px;
  isolation: isolate;
}
.learning-matrix .roster-course-table thead th,
.own-attendance thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--wash);
}
.learning-matrix .roster-course-table thead .roster-person,
.learning-matrix .roster-course-table thead .roster-company,
.learning-matrix .roster-course-table thead .roster-job,
.own-attendance thead .roster-person {
  z-index: 6;
}
.learning-matrix .roster-course-table td,
.own-attendance td {
  background: var(--surface);
}
.attendance-state {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}
.attendance-state.is-normal {
  color: var(--ok);
}
.attendance-state small {
  font-size: 10.5px;
  color: var(--muted);
}
.attendance-correct {
  display: block;
  margin: 4px auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
}
.learning-matrix-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
}
.own-attendance {
  margin: 24px 0 36px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.own-attendance h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
}
.own-attendance .roster-course-wrap {
  max-height: 320px;
  isolation: isolate;
}
.attendance-correction-dialog {
  width: 440px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
}
.attendance-correction-dialog::backdrop {
  background: var(--shade);
}
.attendance-correction-dialog h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--ink);
}
.attendance-correction-dialog label {
  display: block;
  margin-bottom: 6px;
}
.attendance-correction-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.with-graduation .roster-filters {
  max-width: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.with-graduation .roster-course-table .roster-person {
  width: 128px;
  min-width: 128px;
}
.with-graduation .roster-course-table .roster-company {
  left: 128px;
}
.with-graduation .roster-course-table .roster-job {
  left: 248px;
}
.with-graduation .roster-course-table .roster-graduation {
  position: sticky;
  left: 368px;
  width: 112px;
  min-width: 112px;
  z-index: 3;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.with-graduation .roster-course-table thead .roster-graduation {
  z-index: 6;
  background: var(--wash);
}
.with-graduation .roster-person input {
  margin: 0 8px 0 0;
  vertical-align: middle;
}
.graduation-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}
.graduation-tools > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.graduation-tools span {
  font-size: 12px;
  color: var(--muted);
}
.graduation-state {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 12px;
  background: var(--wash);
  color: var(--muted);
  white-space: nowrap;
}
button.graduation-state {
  cursor: pointer;
}
.graduation-state.is-graduated {
  color: var(--ok);
  background: var(--ok-weak);
}
.graduation-state.is-retraining {
  color: var(--warn);
  background: var(--warn-weak);
}
.graduation-state.is-shadowing {
  color: var(--accent);
  background: var(--accent-weak);
}
.graduation-names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  max-height: 180px;
  overflow: auto;
}
.graduation-names span {
  font-size: 12px;
  padding: 5px 9px;
  background: var(--wash);
  border-radius: 4px;
}
.graduation-choices small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.graduation-names small {
  color: var(--muted);
  margin-left: 6px;
}
.graduation-dialog .graduation-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 16px 0;
}
.graduation-dialog .graduation-choices label {
  display: flex;
  flex: 1;
  gap: 7px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}
.learning-report-dialog.graduation-dialog {
  width: 540px;
  padding: 0;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.graduation-dialog > header {
  padding: 19px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.learning-report-dialog.graduation-dialog h2 {
  font-size: 17px;
  margin: 0;
}
.graduation-dialog .graduation-close {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}
.graduation-body {
  padding: 22px 24px;
}
.graduation-dialog .graduation-body > p {
  margin: 0 0 16px;
}
.learning-report-dialog.graduation-dialog footer {
  padding: 16px 24px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.graduation-choices label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-weak);
}
.graduation-totals {
  display: flex;
  gap: 0;
  padding: 18px;
  margin-bottom: 24px;
  background: var(--wash);
  border-radius: 6px;
}
.graduation-totals > div {
  flex: 1;
  text-align: center;
}
.graduation-totals b,
.graduation-totals span {
  display: block;
}
.graduation-totals b {
  font-size: 24px;
}
.graduation-totals span {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.graduation-dialog .graduation-choices small {
  font-size: 11px;
  margin-top: 4px;
}
.graduation-dialog .graduation-body > p {
  font-size: 14px;
  color: var(--text);
}
.graduation-dialog .graduation-body > .graduation-warning {
  padding: 14px;
  background: var(--warn-weak);
  border-radius: 6px;
  color: var(--warn);
}
.graduation-warning strong {
  font-size: 22px;
  margin: 0 4px;
}
.camp-management-actions {
  display: flex;
  gap: 8px;
}

@media (prefers-color-scheme: dark) {
  .learning-matrix .roster-course-head.is-common {
    background: linear-gradient(var(--gold-weak), var(--gold-weak)), var(--wash) !important;
  }
  .learning-matrix .course-work-state.st-todo,
  .learning-matrix .course-work-state.st-returned {
    color: var(--warn);
    background: var(--warn-weak);
  }
  .learning-matrix .course-work-state.st-pending {
    color: var(--accent);
    background: var(--accent-weak);
  }
}

@media (prefers-color-scheme: dark) {
  .staff-multiselect .staff-options {
    background: var(--surface);
  }
}

/* T150: scoped dark-theme correction; the frozen base stylesheet stays intact. */
.submit-drawer.homework-drawer .submit-requirement {
  background: var(--surface);
}
.log-attendance-detail .log-line b {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* 窄屏横滚时，跨行作业格须高于后续行的固定课件格，仍低于表头。 */
.glist tbody .glist-hw {
  z-index: 3;
}

/* When the fixed columns exceed the container, keep file/work controls inside
   its edges and let the course title scroll instead of clipping the work column. */
.glist-scroll {
  container-type: inline-size;
}
@container (max-width: 456px) {
  .glist:has(.glist-hw) .glist-c1,
  .glist:has(.glist-hw) .glist-group-left {
    position: static;
  }
  .glist:has(.glist-hw) .glist-cw {
    left: 0;
    right: 104px;
  }
  .glist .glist-hw {
    left: 104px;
    right: 0;
  }
}

.prototype-outline-row-actions {
  display: flex;
  gap: 6px;
}

.prototype-outline-row-actions > .btn {
  min-height: 36px;
  height: 36px;
}

.prototype-outline-phase-picker {
  grid-column: 1 / -1;
  padding: 8px 0;
}

.prototype-outline-phase-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prototype-outline-phase-controls > select {
  flex: 1;
}
.camp-home-grid.camp-top-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) minmax(0,1fr);gap:12px;align-items:stretch;margin:0 0 36px}
.camp-home-grid .card{min-width:0;min-height:200px;display:flex;flex-direction:column;padding:12px 16px;border-radius:8px}
.camp-home-grid .card-head{margin:0 0 8px;min-height:22px;flex-shrink:0}
.camp-home-grid .card-head h3{margin:0;font-size:13.5px;line-height:22px}
.home-info{background:color-mix(in srgb,var(--accent) 3%,var(--surface))}
.home-notices{background:color-mix(in srgb,var(--gold-weak) 16%,var(--surface))}
.home-study{background:color-mix(in srgb,var(--ok-weak) 15%,var(--surface))}
.home-muted{font-size:11.5px;color:var(--muted)}
.home-text-button{border:0;background:none;padding:0;color:var(--accent);font:inherit;font-size:11.5px;cursor:pointer}
.home-info-row{display:grid;grid-template-columns:52px 1fr;gap:9px;font-size:12px;line-height:1.65;margin:3px 0}
.home-info-row>span{color:var(--muted)}
.home-info-row>b{font-weight:500;min-width:0;overflow-wrap:anywhere}
.home-content-count{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;overflow-x:auto;scrollbar-width:thin;border-top:1px solid var(--hairline);padding-top:7px;margin-top:auto;font-size:11px;color:var(--muted)}
.home-content-count>span{flex:none;white-space:nowrap}
.home-content-count b{font-weight:600;color:var(--ink)}
.home-notice-body{max-height:148px;overflow:auto}
.home-notice-body article{display:grid;grid-template-columns:40px 1fr;gap:12px;padding:0 0 12px;margin-bottom:12px;border-bottom:1px solid var(--hairline)}
.home-notice-body article:last-child{border:0;margin-bottom:0}
.home-notice-body time{font-size:11px;color:var(--muted);padding-top:2px}
.home-notice-body b{font-size:12px;font-weight:600}
.home-notice-body p{font-size:12px;line-height:1.8;margin:5px 0;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.home-metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 8px}
.home-study-column{min-width:0}
.home-study-column+.home-study-column{border-left:1px solid var(--line);padding-left:16px}
.home-metric{display:block;width:100%;background:none;border:0;text-align:left;padding:0;cursor:pointer;color:var(--ink);font-family:inherit;font-size:13px;line-height:1.55;appearance:none}
.home-metric.is-readonly{cursor:default}
.home-metric>span{display:block;min-height:18px;font-size:11.5px;color:var(--muted)}
.home-metric i{font-style:normal;color:var(--accent)}
.home-metric strong{display:block;font-size:28px;font-weight:650;line-height:1.2;margin:4px 0;font-variant-numeric:tabular-nums;white-space:nowrap}
.home-metric strong small{font-size:15px;color:var(--muted);font-weight:400}
.home-metric em{display:block;min-height:28px;line-height:1.35;font-size:10.5px;color:var(--muted);font-style:normal}
.home-metric-notes{display:flex;flex-direction:column;gap:2px;margin-top:6px;font-size:11px;line-height:1.6;color:var(--muted)}
.home-metric-notes b{font-weight:600;color:var(--ink)}
.home-study-footer{line-height:1.55;border-top:1px solid var(--hairline);padding-top:6px;margin-top:auto;font-size:10.5px;color:var(--muted)}
.home-study-footer p{margin:0}
.camp-home-stage{display:grid;grid-template-columns:76px minmax(0,1fr);column-gap:12px;align-items:center;margin:0 0 12px;padding:0}
.camp-home-stage>header{font-size:13.5px;color:var(--ink)}
.camp-home-timeline-scroll{overflow-x:auto;overflow-y:hidden;padding:0 5px;scrollbar-width:thin}
.camp-home-timeline{position:relative;margin:0 1px}
.home-time-axis{position:absolute;left:0;right:0;height:2px;background:var(--line)}
.home-phase{position:absolute;height:60px;padding:0 6px;border:0;background:none;color:inherit;font:inherit;cursor:pointer;text-align:center;z-index:2;--phase:var(--phase-course)}
.home-phase.phase-accompany{--phase:var(--phase-accompany)}
.home-phase.phase-review{--phase:var(--phase-review)}
.home-phase-name{display:inline-block;position:absolute;top:0;left:50%;transform:translateX(-50%);padding:2px 8px;line-height:18px;font-size:11px;font-weight:600;border-radius:3px;color:var(--phase);background:color-mix(in srgb,var(--phase) 12%,var(--surface));white-space:nowrap}
.home-phase.is-current .home-phase-name{background:var(--phase);color:var(--surface)}
.home-phase-line{position:absolute;left:6px;right:6px;top:30px;height:4px;border-radius:99px;background:var(--phase)}
.home-phase-line i{position:absolute;top:-3px;width:10px;height:10px;background:var(--phase);border-radius:50%;z-index:1}
.home-phase-line i:first-child{left:-1px}.home-phase-line i:last-child{right:-1px}
.home-phase-dates{position:absolute;left:3px;right:3px;top:42px;display:flex;justify-content:space-between;gap:6px;color:var(--muted);font-size:10.5px;font-weight:500;font-variant-numeric:tabular-nums}
.home-phase:hover .home-phase-name{text-decoration:underline;text-underline-offset:3px}
.home-today{position:absolute;top:0;z-index:3;border-left:2px solid var(--accent);pointer-events:none}
.home-today>span{position:absolute;top:1px;left:0;transform:translateX(-50%);white-space:nowrap;background:var(--wash);border-radius:3px;padding:1px 7px;color:var(--accent);font-size:10px;line-height:17px}
.home-today i{position:absolute;top:45px;left:-8px;width:14px;height:14px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--surface)}
.home-today i::after{content:"";position:absolute;inset:-4px;border:1px solid var(--accent);border-radius:50%;animation:home-today-pulse 3.2s ease-out infinite}
@keyframes home-today-pulse{0%,100%{opacity:.18;transform:scale(.9)}50%{opacity:.65;transform:scale(1.3)}}
@media(prefers-reduced-motion:reduce){.home-today i::after{animation:none;opacity:.35}}
.home-timeline-pending{grid-column:2;font-size:11px;color:var(--muted);margin:7px 0 14px}
@media(max-width:850px){.camp-home-grid.camp-top-grid{grid-template-columns:1fr}.camp-home-grid .card{min-height:auto}.camp-home-stage{grid-template-columns:68px minmax(0,1fr);column-gap:10px}}
.learning-dashboard {
  max-width: none;
  min-width: 0;
}
.learning-dashboard h1 {
  margin: 0;
}
.learning-dashboard .camp-page-header {
  align-items: center;
  margin-bottom: 0;
}
.learning-dashboard .camp-page-header p {
  font-size: 12px;
  line-height: 1.55;
  margin: 5px 0 0;
}
.learning-dashboard h2 {
  font-size: 18px;
  margin: 26px 0 4px;
}
.learning-dashboard h3 {
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--ink);
}
.learning-dashboard h4 {
  font-size: 12px;
  margin: 0 0 10px;
}
.learning-dashboard p {
  margin: 4px 0 12px;
  color: var(--muted);
}
.learning-dashboard small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.learning-dashboard .card {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  min-width: 0;
  background: var(--surface);
}
.analytics-filters {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
  margin: 18px 0 20px;
}
.analytics-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.analytics-filters select {
  min-width: 150px;
  width: auto;
}
.analytics-filters select {
  height: 32px;
  border-radius: 6px;
}
.analytics-filters > span {
  margin-left: auto;
  font-weight: 600;
}
.analytics-filters > span small {
  display: block;
}
.learning-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 0;
}
.overview-metric {
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.overview-metric:last-child {
  border: 0;
}
.overview-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.overview-metric > strong {
  display: block;
  font-size: 34px;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 12px 0 8px;
}
.overview-metric > p {
  margin: 0;
  font-size: 11px;
}
.overview-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 11px;
}
.metric-secondary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
  color: var(--text);
  font-size: 12px;
}
.dashboard-section-heading {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin: 26px 0 12px;
}
.dashboard-section-heading h2,
.dashboard-section-heading p {
  margin: 0;
}
.dashboard-section-heading h2 {
  font-size: 17px;
  white-space: nowrap;
}
.dashboard-section-heading p {
  font-size: 12px;
}
.dashboard-metric-definitions {
  box-sizing: border-box;
  inset: 0 0 0 auto;
  width: min(800px, 100%);
  height: 100vh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 24px;
  background: var(--surface);
  color: var(--ink);
  overflow: auto;
}
.dashboard-metric-definitions::backdrop {
  background: #17223755;
}
.dashboard-metric-definitions header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dashboard-metric-definitions h2 {
  font-size: 20px;
  margin: 0;
}
.dashboard-metric-definitions th {
  white-space: nowrap;
}
.overview-caption p {
  width: 100%;
  margin: 0;
}
.learning-trend-grid,
.learning-comparison-grid,
.learning-followup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}
.attendance-phases {
  display: flex;
  gap: 14px;
}
.attendance-phase {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.attendance-ring {
  width: 114px;
  max-width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 12px auto;
  border: 0;
  padding: 0;
  background: conic-gradient(
    var(--result-pass) 0 var(--live-end),
    var(--accent) var(--live-end) var(--replay-end),
    var(--warn) var(--replay-end) var(--other-end),
    var(--line) var(--other-end) 100%
  );
}
.attendance-ring > span {
  width: 80%;
  height: 80%;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.attendance-ring:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.attendance-source-legend {
  display: grid;
  gap: 6px;
  font-size: 10px;
}
.attendance-source-legend span {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 4px;
}
.attendance-source-legend b {
  margin-left: auto;
}
.attendance-source-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.attendance-source-live {
  background: var(--result-pass);
}
.attendance-source-replay {
  background: var(--accent);
}
.attendance-source-other {
  background: var(--warn);
}
.attendance-source-pending {
  background: var(--line);
}
.attendance-ring strong {
  font-size: 22px;
  color: var(--ink);
}
.metric-table-scroll {
  overflow-x: auto;
}
.phase-work-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 11px;
}
.phase-work-table th,
.phase-work-table td {
  padding: 12px 8px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.state-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--ball);
  height: var(--ball);
  border-radius: 50%;
  font-weight: 600;
  background: color-mix(in srgb, var(--state-color) 13%, var(--surface));
  color: var(--state-color);
}
.state-passed {
  --state-color: var(--result-pass);
}
.state-failed {
  --state-color: var(--bad);
}
.state-returned {
  --state-color: var(--warn);
}
.state-pending {
  --state-color: var(--accent);
}
.state-missing {
  --state-color: var(--muted);
}
.metric-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  background: var(--state-color);
  margin-right: 4px;
}
.rework-summary {
  background: var(--wash);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.score-distribution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 155px;
  gap: 20px;
  align-items: center;
}
.learning-dashboard svg {
  width: 100%;
  display: block;
  overflow: visible;
  color: var(--text);
}
.learning-dashboard svg text {
  font: 11px var(--sans);
  fill: var(--muted);
}
.metric-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.metric-cdf {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
}
.score-distribution circle {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 1.5;
}
.metric-quantile {
  stroke: var(--muted);
  stroke-dasharray: 4 4;
  fill: none;
  opacity: 0.7;
}
.metric-quantile.p10 {
  stroke: var(--warn);
}
.metric-quantile.p90 {
  stroke: var(--result-pass);
}
.score-distribution-layout aside {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.score-distribution-layout aside > div {
  margin: 10px 0;
}
.score-distribution-layout aside span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.score-distribution-layout aside strong {
  font-size: 24px;
  color: var(--ink);
}
.score-bins {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.score-bins > div {
  background: var(--wash);
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.score-bins span,
.score-bins em {
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
}
.score-bins b {
  font-size: 20px;
  color: var(--ink);
}
.metric-empty {
  padding: 38px 16px;
  text-align: center;
  color: var(--muted);
}
.dimension-bubble {
  fill: var(--camp-color);
  fill-opacity: 0.12;
  stroke: var(--surface);
  stroke-width: 1.5;
}
.learning-dashboard svg .bubble-number {
  fill: var(--ink);
  font-weight: 600;
  pointer-events: none;
}
.dimension-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dimension-legend button {
  display: block;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px;
  border-radius: 6px;
  min-width: 0;
  font-size: 11px;
}
.dimension-legend i {
  font-style: normal;
  color: var(--camp-color);
  border-left: 3px solid var(--camp-color);
  padding-left: 4px;
  margin-right: 6px;
}
.comparison-point-detail {
  padding: 12px;
  margin: 10px 0;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--wash);
}
.comparison-point-detail > b {
  display: block;
  margin-bottom: 8px;
}
[data-analytics-cluster] {
  cursor: pointer;
}
[data-analytics-cluster]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.organization-cross-scroll {
  overflow: auto;
  max-height: 450px;
  margin-top: 14px;
}
.organization-cross-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
  font-size: 11px;
}
.organization-cross-table th {
  min-width: 100px;
  max-width: 160px;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
  background: var(--surface);
}
.organization-cross-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.organization-cross-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
}
.organization-cross-table button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  text-align: left;
  font: inherit;
}
.organization-cross-table small {
  display: block;
  margin-top: 4px;
}
.organization-cross-table td {
  min-width: 100px;
  padding: 14px 6px;
  text-align: center;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) var(--cell-strength), var(--wash));
  color: var(--ink);
}
.organization-cross-table td b {
  font-size: 18px;
}
.organization-cross-table td small {
  color: inherit;
}
.organization-cross-scale {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 10px;
  color: var(--muted);
}
.organization-cross-scale i {
  width: 90px;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--wash), var(--accent));
}
.dimension-legend small {
  display: block;
  margin-left: 12px;
}
.metric-note {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 12px !important;
}
.learner-issues {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px 0;
}
.learner-issues > div {
  font-size: 11px;
}
.learner-issues strong {
  display: block;
  font-size: 22px;
  margin: 10px 0;
  color: var(--ink);
}
.learner-issues small {
  display: block;
}
.teacher-followup {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.teacher-followup th,
.teacher-followup td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.feedback-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.choice-result {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  font-size: 11px;
}
.choice-result i {
  height: 5px;
  background: linear-gradient(to right, var(--accent) var(--share), var(--line) 0);
  border-radius: 3px;
}
.choice-result b {
  font-weight: 500;
}
.feedback-choice-grid small {
  display: block;
}
@media (max-width: 1050px) {
  .learning-trend-grid,
  .learning-comparison-grid,
  .learning-followup-grid {
    grid-template-columns: 1fr;
  }
  .feedback-choice-grid {
    grid-template-columns: 1fr;
  }
  .overview-metric {
    padding: 0 14px;
  }
  .score-distribution-layout {
    grid-template-columns: minmax(0, 1fr) 140px;
  }
}
@media (max-width: 650px) {
  .learning-overview {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
  }
  .overview-metric:nth-child(2) {
    border: 0;
  }
  .score-distribution-layout {
    grid-template-columns: 1fr;
  }
  .score-distribution-layout aside {
    display: flex;
    gap: 16px;
    border: 0;
    padding: 0;
    flex-wrap: wrap;
  }
  .score-distribution-layout aside p {
    width: 100%;
  }
  .score-bins {
    gap: 4px;
  }
  .score-bins > div {
    padding: 8px 4px;
  }
  .attendance-phases {
    gap: 8px;
  }
  .dimension-legend {
    grid-template-columns: 1fr;
  }
  .learner-issues {
    grid-template-columns: 1fr;
  }
  .learner-issues strong {
    margin: 3px 0;
  }
}

.analytics-detail-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
.analytics-detail-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.learning-followup-grid h3 > .analytics-detail-link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}
.learner-issues .analytics-detail-link {
  display: grid;
  width: 100%;
  gap: 6px;
}
.analytics-detail-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.feedback-score-card h3 > small {
  margin-left: auto;
}
.feedback-landscape {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(230px, 1fr);
  gap: 32px;
  align-items: center;
  margin: 18px 0;
}
.feedback-scatter,
.feedback-distribution {
  min-width: 0;
}
.feedback-distribution {
  padding: 0;
}
.feedback-strong {
  --feedback-color: var(--result-pass);
}
.feedback-practical {
  --feedback-color: var(--warn);
}
.feedback-experience {
  --feedback-color: var(--accent);
}
.feedback-priority {
  --feedback-color: var(--bad);
}
.feedback-unclassified {
  --feedback-color: var(--accent);
}
.feedback-region {
  fill: var(--feedback-color);
  fill-opacity: 0.09;
}
.learning-dashboard svg .feedback-region-label {
  fill: var(--feedback-color);
}
.feedback-reference {
  stroke: var(--muted);
  stroke-dasharray: 5 5;
}
.feedback-dot {
  fill: var(--feedback-color);
  stroke: var(--surface);
  stroke-width: 1.5;
  cursor: pointer;
}
.feedback-dot.selected,
.feedback-dot:focus-visible {
  stroke: var(--ink);
  stroke-width: 2;
  outline: none;
}
.learning-dashboard svg .feedback-overlap {
  fill: var(--surface);
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
}
.quadrant-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.quadrant-counts > div,
.quadrant-counts span,
.quadrant-counts small {
  display: block;
}
.quadrant-counts i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--feedback-color);
  margin-right: 5px;
}
.quadrant-counts strong {
  display: block;
  font-size: 20px;
  margin: 5px 0;
}
.quadrant-size-key {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}
.quadrant-size-key span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.quadrant-size-key i {
  display: inline-block;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}
.lecturer-overview strong {
  font-size: 30px;
  color: var(--ink);
}
.quadrant-rating-distribution {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.quadrant-rating-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.quadrant-rating-head select {
  width: auto;
  min-width: 105px;
  height: 30px;
  font-size: 11px;
}
.feedback-bin {
  display: grid;
  grid-template-columns: 58px 1fr 36px;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  font-size: 11px;
}
.feedback-bin > div {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
}
.feedback-bin i {
  display: block;
  height: 6px;
  background: var(--accent);
  border-radius: 3px;
}
.feedback-selected {
  display: grid;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin: 14px 0;
}
.feedback-summary-option {
  grid-area: 1 / 1;
  min-width: 0;
  visibility: hidden;
}
.feedback-summary-option[aria-hidden='false'] {
  visibility: visible;
}
.feedback-hover {
  position: fixed;
  z-index: 100;
  box-sizing: border-box;
  width: 430px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 80px);
  overflow: auto;
  pointer-events: none;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 6px 24px #0003;
}
.feedback-hover[hidden] {
  display: none;
}
.feedback-point-item + .feedback-point-item {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.feedback-point-item h4 {
  margin-bottom: 5px;
}
.feedback-point-scores {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 11px;
}
.feedback-point-scores small {
  display: block;
  margin-top: 5px;
}
.feedback-point-item p {
  font-size: 11px;
}
.feedback-choice-grid {
  margin-top: 16px;
}
.choice-result {
  grid-template-columns: minmax(60px, 1fr) 1fr auto;
}
.choice-result span {
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .feedback-landscape {
    grid-template-columns: 1fr;
  }
  .feedback-distribution {
    border-left: 0;
    padding: 0;
  }
}
@media (max-width: 650px) {
  .quadrant-counts {
    grid-template-columns: 1fr 1fr;
  }
}

.quadrant-selection {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}
.quadrant-selection > div:first-child {
  min-width: 0;
}
.quadrant-selection > div:first-child span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.quadrant-selection-scores {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}
.feedback-detail-dialog {
  width: 900px;
  overflow: hidden;
}
.feedback-detail-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feedback-detail-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.feedback-detail-dialog > header h2 {
  margin: 0;
}
.feedback-dialog-body {
  min-height: 0;
  overflow: auto;
}
.feedback-detail-dialog .feedback-point-item h4 {
  font-size: 14px;
  margin: 0 0 8px;
}
.feedback-detail-dialog .feedback-point-item p {
  margin: 7px 0;
  font-size: 12px;
}
.feedback-detail-dialog .feedback-point-scores {
  padding: 12px 0;
}
.feedback-detail-dialog .analytics-detail-link {
  color: var(--accent);
}

.grading-summary {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 1.1fr;
  gap: 16px;
  margin-top: 24px;
}
.grading-summary > div {
  min-width: 0;
}
.grading-summary .analytics-detail-link {
  display: block;
  text-align: left;
  color: inherit;
}
.grading-summary span,
.grading-summary em {
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
}
.grading-summary b {
  display: block;
  margin: 7px 0;
  color: var(--warn);
  font-size: 25px;
  font-weight: 600;
}
.grading-summary b > span {
  font: inherit;
  color: inherit;
}
.grading-summary b small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.grading-summary strong {
  display: block;
  margin: 9px 0;
  font-size: 19px;
  color: var(--ink);
  white-space: nowrap;
}
.comparison-card h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}
.comparison-card h3 > .analytics-detail-link {
  margin-left: auto;
  font-size: 11px;
}

.attendance-phase h4 {
  padding: 5px 0;
  border-radius: 4px;
  background: color-mix(in srgb, var(--phase-course) 8%, var(--surface));
  color: var(--phase-course);
  font-size: 12px;
}
.attendance-phase[data-phase='accompany'] h4 {
  background: color-mix(in srgb, var(--result-pass) 9%, var(--surface));
  color: var(--result-pass);
}
.attendance-phase[data-phase='review'] h4 {
  background: color-mix(in srgb, var(--warn) 10%, var(--surface));
  color: var(--warn);
}
[data-work-progress] h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}
[data-work-progress] h3 > .analytics-detail-link {
  margin-left: auto;
  font-size: 11px;
}
[data-work-progress] .rework-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 9px;
  margin-top: 18px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--result-pass) 6%, var(--surface));
  border: 0;
  border-radius: 5px;
}
.rework-summary > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.rework-summary b {
  font-size: 20px;
  color: var(--result-pass);
}
.rework-summary span {
  font-size: 11px;
}
.rework-summary small,
.rework-summary .analytics-detail-link {
  font-size: 10px;
}
.rework-summary p {
  margin: 0;
  width: 100%;
  color: var(--muted);
  font-size: 9px;
}
.score-distribution-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.score-distribution-heading h3 {
  font-size: 14px;
}
.score-distribution-insight {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  font-size: 11px;
  color: var(--muted);
}
.score-distribution-insight b {
  font-size: 17px;
  color: var(--accent);
}
.score-distribution-insight b small {
  font-size: 11px;
  font-weight: 400;
}
.score-distribution-insight .analytics-detail-link {
  margin-left: 18px;
  font-size: 11px;
}
.score-distribution-layout {
  grid-template-columns: minmax(0, 1fr) 174px;
  gap: 34px;
  margin-top: 17px;
}
.score-distribution-layout aside {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.score-bins {
  gap: 0;
  margin-top: 15px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.score-bins > div {
  background: transparent;
  padding: 0 20px 0 0;
  border-radius: 0;
}
.score-bins > div > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.score-bins > div > span {
  font-size: 12px;
}

.learning-followup-grid > .card:first-child {
  border-top: 3px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 3%, var(--surface));
}
.learning-followup-grid > .card:last-child {
  border-top: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 3%, var(--surface));
}

/* Effective 1015 learning layout, including its supplied theme adaptation. */
.learning-trend-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}
.learning-trend-grid > .card {
  padding: 18px 20px;
  min-width: 0;
}
.learning-trend-grid h3 {
  font-size: 14px;
}
.learning-trend-grid h3 > small {
  margin-left: auto;
}
.attendance-ring {
  width: 77.5%;
  max-width: 147.25px;
}
.attendance-phase h4 {
  background: #eff5ff;
  color: #2466b7;
}
.attendance-phase[data-phase='accompany'] h4 {
  background: #edf7f0;
  color: #208556;
}
.attendance-phase[data-phase='review'] h4 {
  background: #fff5e5;
  color: #ae781a;
}
@media (prefers-color-scheme: dark) {
  .attendance-phase h4 {
    background: #2b354f;
    color: #aac2ff;
  }
  .attendance-phase[data-phase='accompany'] h4 {
    background: #253d36;
    color: #78d6b0;
  }
  .attendance-phase[data-phase='review'] h4 {
    background: #3c3223;
    color: #edc275;
  }
  [data-work-progress] .rework-summary {
    background: var(--surface);
  }
  .rework-summary b {
    color: var(--ink);
  }
  .rework-summary span,
  .rework-summary small {
    color: var(--muted);
  }
}
.learning-directory {
  min-width: 0;
  max-width: none;
}
.learning-directory h1 {
  margin: 0;
}
.learning-directory .camp-page-header p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 12px;
}
.learning-directory-content {
  margin-top: 0;
}
.directory-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.directory-toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.directory-filter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.directory-toolbar input {
  min-width: 200px;
  width: 220px;
}
.directory-toolbar select,
.directory-toolbar input {
  height: 34px;
  min-height: 34px;
  border-radius: 6px;
}
.directory-toolbar select {
  width: 120px;
  min-width: 120px;
  max-width: 260px;
  font-size: 13px;
}
.directory-toolbar [data-directory-filter='campId'] {
  width: 240px;
}
.directory-toolbar [data-directory-filter='companyId'] {
  width: 150px;
}
.directory-toolbar [data-directory-filter='sessionId'] {
  width: 260px;
}
.directory-toolbar [data-directory-filter='questionnaireId'] {
  width: 210px;
}
.learning-directory[data-directory-view='student-data'] [data-directory-filter='learningStatus'] {
  width: 160px;
}
.learning-directory[data-directory-view='student-data'] [data-directory-action='reset'] {
  margin-left: auto;
}
.directory-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 14px;
}
.directory-search-row label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.directory-search-row input {
  width: 220px;
  height: 34px;
}
.directory-toolbar > [data-directory-total] {
  color: var(--muted);
  font-size: 12px;
  padding: 6px 0;
}
.directory-search-row [data-directory-total] {
  color: var(--muted);
  font-size: 12px;
}
.learning-directory-scroll {
  overflow: auto;
  max-height: calc(100vh - 270px);
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  scrollbar-gutter: stable;
}
.learning-directory-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  table-layout: fixed;
}
.learning-directory-table th,
.learning-directory-table td {
  padding: 11px 13px;
  white-space: nowrap;
  min-width: 92px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 12px;
}
.learning-directory-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--wash);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 0 var(--line);
}
.learning-directory-table thead tr:nth-child(2) th {
  top: 37px;
}
.learning-directory-table thead tr:first-child:has([rowspan]) {
  height: 37px;
}
.learning-directory-table th[scope='colgroup'] {
  text-align: center;
  border-left: 1px solid var(--line);
}
.learning-directory-table .directory-identity {
  position: sticky;
  left: 0;
  z-index: 3;
  white-space: normal;
  overflow-wrap: anywhere;
}
.learning-directory-table thead .directory-identity {
  z-index: 8;
  background: var(--wash);
}
.learning-directory-table td.mentor-camp-list,
.learning-directory-table td.directory-business-text {
  white-space: normal;
  overflow-wrap: anywhere;
}
.mentor-camp-list > div + div {
  margin-top: 4px;
}
.learning-directory-table tbody td {
  background: var(--surface);
}
.learning-directory-table tbody tr:last-child td {
  border-bottom: 0;
}
.learning-directory-table .empty {
  text-align: center;
  padding: 36px;
}
.learning-directory-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.learning-directory-pager > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.anonymous-directory-table th {
  min-width: 0;
  white-space: normal;
}
.anonymous-directory-table {
  table-layout: fixed;
}
.anonymous-directory-table td:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
}
.anonymous-directory-table .anonymous-answer {
  white-space: pre-wrap;
  min-width: 320px;
  max-width: 440px;
  overflow-wrap: anywhere;
}
.student-directory-table {
  table-layout: fixed;
  min-width: 0;
}
.student-directory-table th {
  height: 76px;
  white-space: normal;
  text-align: center;
}
.student-directory-table th small,
.student-directory-table th span,
.student-directory-table th time {
  display: block;
}
.student-directory-table th small,
.student-directory-table th time {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.student-directory-table td {
  text-align: center;
  min-width: 0;
  overflow-wrap: anywhere;
}
.student-directory-table .student-fixed {
  position: sticky;
  z-index: 3;
  white-space: normal;
  text-align: left;
  background: var(--surface);
}
.student-directory-table thead .student-fixed {
  z-index: 8;
  background: var(--wash);
}
.student-directory-table .fixed-0 {
  left: 0;
}
.student-directory-table .fixed-1 {
  left: 110px;
}
.student-directory-table .fixed-2 {
  left: 240px;
}
.student-directory-table .fixed-3 {
  left: 350px;
}
.student-directory-table .fixed-4 {
  left: 470px;
  box-shadow: 1px 0 0 var(--line);
}
.student-directory-table .fixed-4 .text-button {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.student-directory-table .student-overview-state {
  white-space: normal;
}
.student-directory-table .is-disabled td {
  color: var(--muted);
}
/* F19：固定身份单元格以实底遮住横滚内容；停用文字及只读语义保持。
   见 docs/engineering/business-contracts.md#findings。 */
.student-directory-table .is-disabled td.student-fixed {
  opacity: 1;
}
@media (max-width: 700px) {
  .learning-data-tabs {
    gap: 6px;
  }
  .directory-toolbar label {
    min-width: 110px;
  }
  .learning-directory-pager {
    align-items: start;
    flex-direction: column;
  }
}

.learning-directory-table th > button[data-directory-sort] {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.learning-directory-table th > button[data-directory-sort]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* F17：沿有效深色语义色修复状态浅底；见 docs/engineering/business-contracts.md#findings。 */
@media (prefers-color-scheme: dark) {
  .student-directory-table .student-overview-state.is-pending {
    color: var(--accent);
    background: var(--accent-weak);
  }
  .student-directory-table .student-overview-state.is-todo,
  .student-directory-table .student-overview-state.is-returned {
    color: var(--warn);
    background: var(--warn-weak);
  }
}
.learning-report-dialog {
  box-sizing: border-box;
  width: 620px;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 20px 80px #0005;
  overflow: auto;
}
.learning-report-dialog::backdrop {
  background: #0006;
}
.learning-report-dialog h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.learning-report-dialog p {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 18px;
}
.learning-report-dialog form > label {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}
.learning-report-dialog .field {
  height: 32px;
  border-radius: 6px;
  min-width: 0;
}
.learning-report-dialog fieldset {
  display: grid;
  gap: 10px;
  margin: 20px 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.learning-report-dialog fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.learning-report-dialog [hidden] {
  display: none;
}
.learning-report-dialog [role='alert'] {
  color: var(--danger, #be3434);
  border: 1px solid currentColor;
  padding: 10px;
  border-radius: 6px;
}
.learning-report-dialog footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.learning-report-dialog button {
  height: 32px;
  border-radius: 6px;
}
.report-export-dialog {
  width: 560px;
  max-width: calc(100vw - 32px);
  border: 0;
  border-radius: 7px;
  color: #35445a;
}
.report-export-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-export-dialog h2 {
  font-size: 18px;
  margin: 0;
  color: var(--ink);
}
.report-export-dialog .field {
  color: var(--ink);
}
.report-export-dialog .cap {
  color: inherit;
  margin: 1em 0;
}
@media (prefers-color-scheme: dark) {
  .report-export-dialog {
    color: var(--text);
  }
}
.report-fields {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}
.report-fields > label {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  font-size: 13px;
}
.report-scope {
  background: var(--wash);
  padding: 12px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
}
.report-export-dialog .report-content-hint {
  font-size: 12px;
  margin: 8px 0;
}
.report-export-dialog footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
