/* Luminous primitives: one shared chrome layer; domain sheets own geometry only. */
/* Shared section navigation: Courses, Communications, and Coach tracking share this DOM contract. */
html.luminous-root .course-type-navigation { width: 100%; margin: 2px 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--course-line, var(--le-line)); }
html.luminous-root .course-type-navigation a { position: relative; min-height: 48px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; color: var(--course-muted, var(--le-muted)); background: transparent; font: 750 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-decoration: none; }
html.luminous-root .course-type-navigation a span { color: inherit; font-variant-numeric: tabular-nums; }
html.luminous-root .course-type-navigation a::after { position: absolute; right: 16px; bottom: -1px; left: 16px; height: 2px; content: ""; background: transparent; }
html.luminous-root .course-type-navigation a:is(:hover, :focus-visible) { color: var(--course-text, var(--le-text)); background: color-mix(in srgb, var(--accent-soft) 68%, transparent); }
html.luminous-root .course-type-navigation a:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
html.luminous-root .course-type-navigation a[aria-current="page"] { color: var(--course-text, var(--le-text)); background: var(--accent-soft); }
html.luminous-root .course-type-navigation a[aria-current="page"]::after { background: var(--accent); }

/* One keyboard focus language. Native focus must never leak through themed product UI. */
html.luminous-root body:is(.admin-body, .student-body) :where(
  a[href],
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex='-1'])
):focus {
  outline: none;
}
html.luminous-root body:is(.admin-body, .student-body) :where(
  a[href],
  button,
  input,
  select,
  textarea,
  summary,
  [tabindex]:not([tabindex='-1'])
):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
/* Overlay readability contract. Shadow muted slots only in dialogs: page hierarchy stays unchanged. */
html.luminous-root body:is(.admin-body, .student-body) dialog {
  --le-muted: var(--le-overlay-muted);
  --le-subtle: var(--le-overlay-subtle);
  color: var(--le-text);
}
html.luminous-root body:is(.admin-body, .student-body) dialog :is(label, legend) {
  color: var(--le-text);
}
html.luminous-root body:is(.admin-body, .student-body) dialog :is(input, select, textarea) {
  color: var(--le-text);
}
html.luminous-root body:is(.admin-body, .student-body) dialog :is(input, textarea)::placeholder {
  color: var(--le-overlay-placeholder);
  opacity: 1;
}
html.luminous-root body:is(.admin-body, .student-body) dialog :is(button, input, select, textarea):disabled,
html.luminous-root body:is(.admin-body, .student-body) dialog [aria-disabled="true"] {
  opacity: var(--le-overlay-disabled);
}
/* Shared reservation-right card: Admin manual booking and Student booking use one DOM contract. */
html.luminous-root :is(body.admin-body .reservation-dialog, body.student-body .student-session-dialog) .entitlement-choice {
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--le-line);
  border-radius: 6px;
  color: var(--le-text);
  background: var(--le-surface-raised);
  cursor: pointer;
  touch-action: manipulation;
}
html.luminous-root :is(body.admin-body .reservation-dialog, body.student-body .student-session-dialog) .entitlement-choice:has(input:disabled) {
  opacity: .58;
  cursor: not-allowed;
}
html.luminous-root :is(body.admin-body .reservation-dialog, body.student-body .student-session-dialog) .entitlement-choice input {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 0;
  accent-color: var(--accent);
}
html.luminous-root :is(body.admin-body .reservation-dialog, body.student-body .student-session-dialog) .entitlement-choice > span {
  min-width: 0;
}
html.luminous-root :is(body.admin-body .reservation-dialog, body.student-body .student-session-dialog) .entitlement-choice strong,
html.luminous-root :is(body.admin-body .reservation-dialog, body.student-body .student-session-dialog) .entitlement-choice small {
  display: block;
}
html.luminous-root :is(body.admin-body .reservation-dialog, body.student-body .student-session-dialog) .entitlement-choice strong {
  color: var(--le-text);
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
html.luminous-root :is(body.admin-body .reservation-dialog, body.student-body .student-session-dialog) .entitlement-choice small {
  margin-top: 3px;
  color: var(--le-muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
html.luminous-root .luminous-field-shell {
  position: relative;
  display: block;
}
html.luminous-root .luminous-field-shell > .app-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  color: var(--le-muted);
  pointer-events: none;
  transform: translateY(-50%);
}
html.luminous-root .luminous-field {
  --admin-period-control-height: var(--le-control-height);
  --admin-period-control-radius: var(--le-radius-control);
  --admin-period-control-padding: var(--le-control-padding);
  --admin-period-control-border: var(--le-line);
  --admin-period-control-bg: color-mix(
    in srgb,
    var(--le-bg-deep) 72%,
    var(--le-surface-warm) 28%
  );
  width: 100%;
  color-scheme: inherit;
  accent-color: var(--accent);
}
html.luminous-root .luminous-field-shell > .luminous-field {
  padding-inline-start: 38px;
}
html.luminous-root input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}
html.luminous-root input[type="search"]::-webkit-search-cancel-button,
html.luminous-root input[type="search"]::-webkit-search-decoration {
  appearance: none;
  -webkit-appearance: none;
}
html.luminous-root input[type="date"] {
  padding-inline-end: 38px;
}
html.luminous-root
  :is(.luminous-field-shell, label, span):has(
    > .app-icon + input[type="search"]
  ) {
  position: relative;
  display: block;
}
html.luminous-root
  :is(.luminous-field-shell, label, span):has(
    > .app-icon + input[type="search"]
  )
  > .app-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  color: var(--le-muted);
  pointer-events: none;
  transform: translateY(-50%);
}
html.luminous-root
  :is(.luminous-field-shell, label, span):has(
    > .app-icon + input[type="search"]:focus
  )
  > .app-icon {
  color: var(--accent);
}
html.luminous-root
  :is(.luminous-field-shell, label, span):has(
    > .app-icon + input[type="search"]
  )
  > input[type="search"] {
  width: 100%;
  padding-inline-start: 38px;
}
html.luminous-root input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
  filter: sepia(0.35) saturate(0.75) brightness(1.35);
}
html.luminous-root
  input[type="date"].luminous-field::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.62;
  filter: sepia(0.35) saturate(0.75) brightness(1.35);
  transition:
    filter 160ms ease,
    opacity 160ms ease;
}
html.luminous-root
  input[type="date"].luminous-field:is(
    :hover,
    :focus-visible
  )::-webkit-calendar-picker-indicator {
  opacity: 0.9;
  filter: sepia(0.5) saturate(1.25) brightness(1.45);
}
html.luminous-root body.admin-body {
  color: var(--le-text);
  background-color: var(--app-bg-color);
}
html.luminous-root .admin-shell {
  background-color: var(--app-bg-color);
  background-image:
    linear-gradient(
      color-mix(
        in srgb,
        var(--app-bg-overlay) var(--app-bg-overlay-strength),
        transparent
      ),
      color-mix(
        in srgb,
        var(--app-bg-overlay) var(--app-bg-overlay-strength),
        transparent
      )
    ),
    var(--app-bg-gradient), var(--app-bg-image);
  background-position: center, center, var(--app-bg-position);
  background-size: cover, cover, var(--app-bg-size);
  background-repeat: no-repeat, no-repeat, var(--app-bg-repeat);
}
html.luminous-root .admin-main {
  background-color: transparent;
}
/* Luminous field contract: every icon-bearing search/date input uses `.luminous-field`;
   search icons additionally use `.luminous-field-shell` to reserve 38px on the left.
   Never style these controls through a page-local selector or legacy rule. */
html.luminous-root input.luminous-field {
  appearance: none;
  -webkit-appearance: none;
}

/* Common Luminous date shell: custom icon owns the left text reserve. */
html.luminous-root
  .luminous-field-shell:has(> .app-icon + input[type="date"].luminous-field) {
  position: relative;
  display: block;
}
html.luminous-root
  .luminous-field-shell:has(> .app-icon + input[type="date"].luminous-field)
  > .app-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  color: var(--le-muted);
  pointer-events: none;
  transform: translateY(-50%);
}
html.luminous-root
  .luminous-field-shell:has(> .app-icon + input[type="date"].luminous-field)
  > input[type="date"].luminous-field.admin-period-control {
  width: 100%;
  padding-inline-start: 38px;
}

/* Shared Luminous page header. Replaces legacy `.admin-page-header` on migrated pages. */
.luminous-page-header {
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(42px, 4vw, 52px) 0 clamp(30px, 3vw, 36px);
  border-bottom: 1px solid var(--le-line);
}
.luminous-page-header :is(.kicker, .eyebrow) {
  margin: 0 0 12px;
  color: var(--accent);
  font: 700 10px/1.3 ui-monospace;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.luminous-page-header h1 {
  margin: 0;
  color: var(--le-text);
  font-size: var(--le-page-title-size);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.luminous-page-header--compact {
  padding-block: 28px 22px;
}
.luminous-page-header--compact h1 {
  font-size: var(--le-page-title-compact-size);
}
.luminous-page-header > div > p:last-child {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--le-muted);
  font-size: 14px;
  line-height: 1.55;
}
.luminous-page-header-actions {
  display: flex;
  flex: none;
  align-items: center;
}
.luminous-page-header-action {
  flex: none;
}
.admin-main > .luminous-page-header + *,
.luminous-v2-canvas > .luminous-page-header + * {
  margin-block-start: clamp(22px, 2vw, 30px);
}
@media (max-width: 620px) {
  .luminous-page-header {
    align-items: start;
    flex-direction: column;
    gap: 18px;
    padding: 34px 0 28px;
  }
  .luminous-page-header :is(.kicker, .eyebrow) { margin-bottom: 10px; }
  .luminous-page-header > div > p:last-child { margin-top: 14px; }
}

/* Shared button primitive. Page styles may only control placement and width. */
html.luminous-root body:is(.admin-body, .student-body) .button {
  box-sizing: border-box;
  height: var(--le-button-height);
  min-height: var(--le-button-height);
  padding: 0 var(--le-button-padding-inline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--le-radius-control);
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: none;
  font: var(--le-font-control);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}
html.luminous-root body:is(.admin-body, .student-body) .button:is(:hover, :focus-visible) {
  color: var(--accent-ink);
  background: var(--accent);
  filter: brightness(1.07);
  box-shadow: 0 0 18px var(--accent-glow);
}
html.luminous-root body:is(.admin-body, .student-body) .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
html.luminous-root body:is(.admin-body, .student-body) .button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

/* Auth uses same token contract; auth sheet owns placement only. */
html.luminous-root body.auth-body .button {
  box-sizing:border-box;min-height:var(--le-button-height);padding:0 var(--le-button-padding-inline);display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:var(--le-radius-control);color:var(--accent-ink);background:var(--accent);font:var(--le-font-control);cursor:pointer;transition:border-color 160ms ease,background-color 160ms ease,filter 160ms ease
}
html.luminous-root body.auth-body .button:is(:hover,:focus-visible){color:var(--accent-ink);background:var(--accent);filter:brightness(1.07);box-shadow:0 0 18px var(--accent-glow)}
html.luminous-root body.auth-body .button:focus-visible,html.luminous-root body.auth-body :is(a,input,button):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
html.luminous-root body.auth-body .button:disabled{cursor:wait;opacity:.72;filter:none}.auth-body .button[aria-busy=true]>span{opacity:0}.auth-body .button[aria-busy=true]::after{content:"";position:absolute;width:15px;height:15px;border:2px solid color-mix(in srgb,var(--accent-ink) 38%,transparent);border-top-color:var(--accent-ink);border-radius:50%;animation:auth-spin 700ms linear infinite}.auth-body .button[aria-busy=true]{position:relative}
html.luminous-root body.auth-body .button-secondary{border-color:var(--le-line);color:var(--le-text);background:var(--le-surface-raised)}
html.luminous-root body.auth-body .button-secondary:is(:hover,:focus-visible){border-color:color-mix(in srgb,var(--le-line) 52%,var(--accent) 48%);color:var(--le-text);background:var(--accent-soft);filter:none}
html.luminous-root body.auth-body .auth-form input{box-sizing:border-box;height:var(--le-control-height);min-height:var(--le-control-height);padding:0 var(--le-control-padding);border:1px solid var(--le-line);border-radius:var(--le-radius-control);color:var(--le-text);background:var(--le-bg-deep);font:var(--le-font-control);font-size:16px;transition:border-color 160ms ease,box-shadow 160ms ease}
html.luminous-root body.auth-body .auth-form input:is(:hover,:focus-visible){border-color:color-mix(in srgb,var(--le-line) 55%,var(--accent) 45%)}
html.luminous-root body.auth-body .auth-form input:focus-visible{box-shadow:var(--le-focus-ring)}
@keyframes auth-spin{to{transform:rotate(360deg)}}
html.luminous-root body:is(.admin-body, .student-body) .button-secondary {
  border-color: var(--le-line);
  color: var(--le-text);
  background: var(--le-surface-raised);
}
html.luminous-root
  body:is(.admin-body, .student-body)
  .button-secondary:is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--le-line) 52%, var(--accent) 48%);
  color: var(--le-text);
  background: var(--accent-soft);
}

/* Legacy headings must follow current light/dark semantic ink. */
html.luminous-root :is(.admin-main, .student-main) :is(h1, h2, h3) {
  color: var(--le-text);
}
html.luminous-root body.admin-body .button-danger {
  border-color: var(--le-danger);
  color: #fff4ef;
  background: var(--le-danger);
}
html.luminous-root body.admin-body .button-small {
  --le-button-height: 36px;
  --le-button-padding-inline: 12px;
}
html.luminous-root body:is(.admin-body, .student-body) .icon-button {
  width: var(--le-control-height);
  height: var(--le-control-height);
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--le-radius-control);
  color: var(--le-muted);
  background: transparent;
  box-shadow: none;
}
html.luminous-root body:is(.admin-body, .student-body) .icon-button:is(:hover, :focus-visible) {
  border-color: var(--le-line);
  color: var(--le-text);
  background: var(--accent-soft);
}
html.luminous-root body:is(.admin-body, .student-body) .icon-button > :is(svg, img) {
  width: 18px;
  height: 18px;
}

/* Toolbars share only safe composition behavior; pages keep order and geometry. */
html.luminous-root body:is(.admin-body, .student-body) :is(
  .luminous-toolbar,
  .calendar-toolbar,
  .reservation-toolbar,
  .student-toolbar,
  .payment-filters,
  .payment-history-filters,
  .communication-history-toolbar
) {
  min-width: 0;
  flex-wrap: wrap;
}
html.luminous-root body:is(.admin-body, .student-body) :is(
  .luminous-toolbar,
  .calendar-toolbar,
  .reservation-toolbar,
  .student-toolbar,
  .payment-filters,
  .payment-history-filters,
  .communication-history-toolbar
) > * {
  min-width: 0;
}

/* Shared form-control primitive. Icon geometry remains owned by `.luminous-field-shell`. */
html.luminous-root
  body.admin-body
  .admin-main
  :where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]):not(.course-setting-control),
    select,
    textarea,
    .luminous-control,
    .luminous-field,
    .level-filter-trigger
  ) {
  box-sizing: border-box;
  height: var(--le-control-height);
  min-height: var(--le-control-height);
  padding-block: 0;
  padding-inline: var(--le-control-padding);
  border: 1px solid var(--le-line);
  border-radius: var(--le-radius-control);
  outline: 0;
  color: var(--le-text);
  background-color: var(--le-bg-deep);
  font: var(--le-font-control);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}
/* Shared choice primitive: raised surface distinguishes pickers from typed values. */
html.luminous-root body.admin-body .admin-main :is(select, .level-filter-trigger) {
  background-color: var(--le-surface-raised);
  cursor: pointer;
}
html.luminous-root
  body.admin-body
  .admin-main
  :where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]):not(.course-setting-control),
    select,
    textarea,
    .luminous-control,
    .luminous-field,
    .level-filter-trigger
  ):is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--le-line) 55%, var(--accent) 45%);
}
html.luminous-root
  body.admin-body
  .admin-main
  :where(
    input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]):not(.course-setting-control),
    select,
    textarea,
    .luminous-control,
    .luminous-field,
    .level-filter-trigger
  ):focus-visible {
  background-color: var(--le-bg-deep);
  box-shadow: var(--le-focus-ring);
}
html.luminous-root body.admin-body .admin-main :is(select, .level-filter-trigger):focus-visible {
  background-color: var(--le-surface-raised);
}
html.luminous-root body.admin-body .admin-main textarea {
  height: auto;
  min-height: 92px;
  padding-block: 11px;
  resize: vertical;
}
html.luminous-root body.admin-body .admin-main ::placeholder {
  color: var(--le-muted);
  opacity: 1;
}

/* Shared expandable search field used by Admin toolbars. Keep geometry here:
   route CSS may tune density, but must not own icon, clear-action or hidden behavior. */
html.luminous-root .course-mobile-toolbar {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
html.luminous-root .course-search-panel {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
}
html.luminous-root .course-search-panel[hidden] {
  display: none !important;
}
html.luminous-root .course-search-panel .luminous-field::placeholder {
  color: var(--le-muted);
  opacity: 1;
}
html.luminous-root body.admin-body .admin-main .course-search-panel > .luminous-field {
  width: 100%;
  min-width: 0;
  height: var(--admin-search-height, 52px);
  min-height: var(--admin-search-height, 52px);
  padding: 0 50px 0 38px;
  display: block;
  border: 1px solid var(--le-line);
  border-radius: var(--le-radius-control);
  outline: 0;
  color: var(--le-text);
  background: var(--le-bg-deep);
  font-size: var(--admin-search-font-size, 16px);
}
html.luminous-root body.admin-body .admin-main .course-search-panel:focus-within > .luminous-field {
  border-color: color-mix(in srgb, var(--le-line) 55%, var(--accent) 45%);
  box-shadow: var(--le-focus-ring);
}
html.luminous-root .course-search-panel > .app-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--le-muted);
  pointer-events: none;
  transform: translateY(-50%);
}
html.luminous-root .course-search-panel .icon-button {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 2px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border: 0;
  color: var(--le-muted);
  background: transparent;
  transform: translateY(-50%);
}
html.luminous-root .course-search-trigger .app-icon {
  flex: 0 0 auto;
}
html.luminous-root body.admin-body .admin-main .luminous-courses .course-mobile-toolbar:has(.course-search-panel:not([hidden]))
  > :is(.course-status-menu, .course-search-trigger, .course-filter-trigger) {
  display: none;
}
html.luminous-root body.admin-body .admin-main .luminous-courses .course-mobile-toolbar:has(.course-search-panel:not([hidden])) {
  border: 0;
  background: transparent;
}
html.luminous-root .luminous-courses .course-search-panel:not([hidden]) {
  display: block !important;
}

/* Shared form copy: explicitly scoped Luminous forms must not inherit legacy light ink. */
html.luminous-root body.admin-body .admin-main :where(.series-form label, .series-form legend, [data-control-scope] label, [data-control-scope] legend) {
  color: var(--le-muted);
}

/* Shared compact multi-choice menu used by filters across admin surfaces. */
html.luminous-root body.admin-body .admin-main .level-filter {
  position: relative;
}
html.luminous-root body.admin-body .admin-main .level-filter-menu {
  position: absolute;
  z-index: 21;
  top: calc(100% + 4px);
  left: 0;
  width: max(100%, 14rem);
  max-height: 17rem;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--le-line);
  border-radius: var(--le-radius-control);
  color: var(--le-text);
  background: var(--le-surface-raised);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--le-bg-deep) 70%, transparent);
}
html.luminous-root body.admin-body .admin-main .level-filter-option {
  position: relative;
  min-height: 44px;
  padding: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
html.luminous-root body.admin-body .admin-main .level-filter-option:is(:hover, :focus-within) {
  background: var(--accent-soft);
}
html.luminous-root body.admin-body .admin-main .level-filter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
html.luminous-root body.admin-body .admin-main .level-filter-option span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
html.luminous-root body.admin-body .admin-main .level-filter-option span::before {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid var(--le-line);
  border-radius: var(--radius-xs);
  color: var(--accent-ink);
  content: "";
  font: 800 12px/1 ui-monospace;
}
html.luminous-root body.admin-body .admin-main .level-filter-option input:checked + span::before {
  border-color: var(--accent);
  background: var(--accent);
  content: "✓";
}
html.luminous-root body.admin-body .admin-main .level-filter-option input:focus-visible + span::before {
  box-shadow: var(--le-focus-ring);
}

/* Shared compact picker and transactional multi-select. */
html.luminous-root body.admin-body .admin-main .luminous-picker {
  position: relative;
  min-width: 0;
  display: block;
}
html.luminous-root body.admin-body .admin-main .luminous-picker-select {
  min-width: 0;
  padding-inline-end: 42px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.luminous-root body.admin-body .admin-main .luminous-picker > .app-icon {
  position: absolute;
  top: 50%;
  right: var(--le-control-padding);
  color: var(--le-muted);
  pointer-events: none;
  transform: translateY(-50%);
}
html.luminous-root body.admin-body .admin-main .luminous-multi-select {
  min-width: 0;
  display: grid;
  gap: var(--space-2);
}
html.luminous-root body.admin-body .admin-main .luminous-multi-select-label {
  color: var(--le-muted);
  font: 650 10px ui-monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html.luminous-root body.admin-body .admin-main .luminous-multi-select-trigger {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  color: var(--le-text);
  background: var(--le-surface-raised);
  text-align: left;
  cursor: pointer;
}
html.luminous-root body.admin-body .admin-main .luminous-multi-select-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html.luminous-root body.admin-body .admin-main .luminous-multi-select-trigger > .app-icon {
  flex: none;
  color: var(--le-muted);
}
html.luminous-root .luminous-multi-select-sheet:not([open]) {
  display: none;
}
html.luminous-root .luminous-multi-select-sheet {
  width: min(30rem, calc(100dvw - 32px));
  max-height: min(78dvh, 38rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--le-line);
  border-radius: var(--le-radius-dialog);
  color: var(--le-text);
  background: var(--le-surface-raised);
}
html.luminous-root .luminous-multi-select-sheet::backdrop {
  background: var(--le-dialog-backdrop);
}
html.luminous-root .luminous-multi-select-sheet > section {
  max-height: inherit;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
html.luminous-root .luminous-multi-select-sheet header,
html.luminous-root .luminous-multi-select-sheet footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
}
html.luminous-root .luminous-multi-select-sheet header {
  border-bottom: 1px solid var(--le-line);
}
html.luminous-root .luminous-multi-select-sheet footer {
  border-top: 1px solid var(--le-line);
}
html.luminous-root .luminous-multi-select-sheet h2 {
  margin: 0;
  color: var(--le-text);
  font-size: 18px;
}
html.luminous-root .luminous-multi-select-options {
  min-height: 0;
  padding: var(--space-2);
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--le-text);
  font: 600 14px/1.4 ui-sans-serif, system-ui;
  letter-spacing: normal;
  text-transform: none;
}
html.luminous-root .luminous-multi-select-options .level-filter-option {
  min-height: 44px;
}

@media (max-width: 540px) {
  html.luminous-root .luminous-multi-select-sheet {
    width: 100dvw;
    max-width: none;
    max-height: min(82dvh, 38rem);
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: var(--le-radius-dialog) var(--le-radius-dialog) 0 0;
  }
  html.luminous-root .luminous-multi-select-sheet footer {
    padding-bottom: calc(var(--space-4) + var(--mobile-safe-area-bottom));
  }
  html.luminous-root .luminous-multi-select-sheet footer .button {
    min-height: 44px;
    flex: 1;
    font-size: 16px;
  }
}

/* iOS Safari zooms focused text controls rendered below 16px. This is the final
   mobile form primitive: page sheets must not reduce editable control type. */
@media (max-width: 767px) {
  html.luminous-root body:is(.admin-body, .student-body) .button-small {
    --le-button-height: 44px;
  }
  html.luminous-root body:is(.admin-body, .student-body) .icon-button {
    min-width: 44px;
    min-height: 44px;
  }
  html.luminous-root
    body.admin-body
    .admin-main
    :is(
      input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not(
          [type="color"]
        ),
      select,
      textarea
    ) {
    font-size: 16px !important;
    line-height: 1.25;
    transform: none;
    zoom: 1;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

/* Shared surface primitive. Domain sheets own layout only. */
html.luminous-root
  body.admin-body
  .admin-main
  :where(.panel, .glass-surface, .luminous-surface) {
  border: var(--le-surface-border);
  border-radius: var(--le-radius-card);
  color: var(--le-text);
  background: var(--le-surface-background);
  box-shadow: none;
}

/* Shared compact status chrome; semantic classes still own colors. */
html.luminous-root
  body.admin-body
  .admin-main
  :where(.badge, .calendar-status, .reservation-event-status) {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-width: 1px;
  border-style: solid;
  border-radius: var(--radius-pill);
  font: 700 10px/1.2 ui-monospace;
  white-space: nowrap;
}

/* Shared identity navigation: quiet at rest, obvious on intent. */
html.luminous-root body.admin-body .admin-main .student-profile-link {
  min-width: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}
html.luminous-root body.admin-body .admin-main .student-profile-link:is(:hover, :focus-visible) {
  color: var(--accent);
  text-decoration-color: currentColor;
}
html.luminous-root body.admin-body .admin-main .student-profile-link:focus-visible {
  border-radius: var(--radius-xs);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (pointer: coarse) {
  html.luminous-root body.admin-body .admin-main .student-profile-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 620px) {
  .luminous-page-header-actions,
  .luminous-page-header-action {
    width: 100%;
  }
  .luminous-page-header.luminous-courses-header .luminous-page-header-actions,
  .luminous-page-header.luminous-courses-header .luminous-page-header-action {
    width: auto;
  }
}
