/* Administration only. Load last: one work surface, compact navigation, natural document flow. */
html body #app .shell .main.page-admin {
  --admin-ink: #253246;
  --admin-muted: #67758a;
  --admin-line: #e5eaf1;
  --admin-accent: #365fba;
  --admin-soft: #f2f5fa;
  --ink: var(--admin-ink);
  --muted: var(--admin-muted);
  --line: var(--admin-line);
  --accent: var(--admin-accent);
  --blue: var(--admin-accent);
  --surface: #fff;
  min-width: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 20px clamp(16px, 2vw, 32px) 32px;
  color: var(--admin-ink);
  background: #f3f5f8;
}
html body #app .shell .main.page-admin *,
html body #app .shell .main.page-admin *::before,
html body #app .shell .main.page-admin *::after {
  box-sizing: border-box;
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html body #app .shell .main.page-admin .admin-console:not(.admin-review-only) {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}
html body #app .shell .main.page-admin .admin-sidebar {
  top: calc(var(--workspace-header-height, 76px) + 20px);
  max-height: calc(100dvh - var(--workspace-header-height, 76px) - 36px);
  padding: 10px 8px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}
html body #app .shell .main.page-admin .admin-sidebar-heading { gap: 9px; padding: 0 4px 10px; }
html body #app .shell .main.page-admin .admin-sidebar-heading h2 { font-size: 14px; line-height: 1.5; white-space: nowrap; }
html body #app .shell .main.page-admin .admin-sidebar-heading p { display: none; }
html body #app .shell .main.page-admin .admin-sidebar-mark { width: 28px; height: 28px; border-radius: 4px; background: var(--admin-soft); }
html body #app .shell .main.page-admin .admin-sidebar-mark .icon { width: 16px; height: 16px; }
html body #app .shell .main.page-admin .admin-navigation { margin: 0; padding: 0; border: 0; background: transparent; }
html body #app .shell .main.page-admin .admin-nav-group { margin: 8px 0 0; }
html body #app .shell .main.page-admin .admin-nav-group-title { margin: 0 10px 4px; color: #8490a2; font-size: 10px; line-height: 1.6; letter-spacing: .02em; }
html body #app .shell .main.page-admin .admin-nav-item { min-height: 36px; margin: 1px 0 0; padding: 7px 10px; gap: 9px; border-radius: 4px; font-size: 12px; line-height: 1.5; transform: none !important; }
html body #app .shell .main.page-admin .admin-nav-item .icon { width: 16px; height: 16px; }
html body #app .shell .main.page-admin .admin-nav-item[aria-current="page"] { background: #edf2fc; color: var(--admin-accent); }
html body #app .shell .main.page-admin .admin-nav-item.active::after { top: 8px; bottom: 8px; width: 2px; border-radius: 0; }
html body #app .shell .main.page-admin .admin-nav-badge { padding: 0 5px; min-width: 19px; border-radius: 3px; font-size: 10px; }
html body #app .shell .main.page-admin :is(.admin-workspace, .admin-content, .admin-main-panel, .admin-list, .admin-overview, .admin-overview-main, .admin-overview-aside) { min-width: 0; max-width: 100%; }
html body #app .shell .main.page-admin .admin-console > .admin-workspace { padding: 20px 22px 24px; border: 0; border-radius: 6px; background: #fff; box-shadow: none; }
html body #app .shell .main.page-admin .admin-main-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html body #app .shell .main.page-admin .admin-module-heading { align-items: center; gap: 16px; margin: 0 0 18px; padding: 0 0 16px; }
html body #app .shell .main.page-admin .admin-module-heading h1 { font-size: 22px; line-height: 1.35; font-weight: 650; letter-spacing: -.02em; }
html body #app .shell .main.page-admin .admin-module-heading h1 .icon { width: 20px; height: 20px; }
html body #app .shell .main.page-admin .admin-module-heading h1:focus:not(:focus-visible) { outline: none; }
html body #app .shell .main.page-admin .admin-module-heading h1:focus-visible { outline: 2px solid var(--admin-accent); outline-offset: 4px; border-radius: 3px; }
html body #app .shell .main.page-admin .admin-module-heading p { margin: 5px 0 0; max-width: 760px; font-size: 12px; line-height: 1.55; }
html body #app .shell .main.page-admin .admin-module-eyebrow { margin: 0 0 4px; color: var(--admin-muted); font-size: 10px; line-height: 1.5; letter-spacing: .04em; }
html body #app .shell .main.page-admin :is(.admin-section-heading, .admin-operations-heading) { gap: 14px; margin: 0 0 14px; align-items: flex-start; }
html body #app .shell .main.page-admin :is(.admin-section-heading, .admin-operations-heading) h2 { font-size: 16px; font-weight: 600; line-height: 1.5; }
html body #app .shell .main.page-admin :is(.admin-subtitle, .admin-chart-coverage, .admin-field-note, .speech-note) { color: var(--admin-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
html body #app .shell .main.page-admin .admin-subtitle { margin-top: 4px; }
html body #app .shell .main.page-admin .admin-button { min-height: 36px; padding: 7px 12px; border-radius: 4px; font-size: 12px; line-height: 1.5; transform: none !important; box-shadow: none !important; }
html body #app .shell .main.page-admin .admin-button .icon { width: 14px; height: 14px; }
html body #app .shell .main.page-admin .admin-button:disabled { background: #f2f4f7; border-color: var(--admin-line); color: #99a3b2; }
html body #app .shell .main.page-admin :is(button, a, input, select, textarea, summary, .hb-select-trigger):focus-visible { outline: 2px solid var(--admin-accent) !important; outline-offset: 3px; box-shadow: none !important; }
html body #app .shell .main.page-admin :is(.admin-error, .admin-notice, .admin-loading) { border: 0; border-radius: 4px; padding: 10px 12px; font-size: 12px; }

/* Six real headline figures take at most two compact rows at common desktop sizes. */
html body #app .shell .main.page-admin .admin-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 16px; padding: 0; background: #f6f8fb; border-radius: 5px; }
html body #app .shell .main.page-admin .admin-stat { min-height: 80px; padding: 12px 16px; border: 0; border-right: 1px solid #e5eaf1; border-bottom: 1px solid #e5eaf1; border-radius: 0; background: transparent; box-shadow: none; transform: none !important; }
html body #app .shell .main.page-admin .admin-stat:nth-child(3n) { border-right: 0; }
html body #app .shell .main.page-admin .admin-stat:nth-last-child(-n+3) { border-bottom: 0; }
html body #app .shell .main.page-admin .admin-stat > span { font-size: 11px; line-height: 1.5; }
html body #app .shell .main.page-admin .admin-stat > strong { margin: 5px 0 0; font-size: 25px; font-weight: 650; line-height: 1.2; }
html body #app .shell .main.page-admin .admin-stat > small { display: none; }
html body #app .shell .main.page-admin .admin-stat:hover { background: #eff3fa; }
html body #app .shell .main.page-admin :is(.admin-analytics, .admin-operations, .admin-priorities, .admin-model-service, .admin-speech-entry, .admin-service-entry, .admin-services, .admin-record-editor) { margin: 0; padding: 20px 0; border: 0; border-top: 1px solid var(--admin-line); border-radius: 0; background: transparent; box-shadow: none; }
html body #app .shell .main.page-admin .admin-overview-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); align-items: start; gap: 24px; }
html body #app .shell .main.page-admin .admin-overview-main :is(.admin-analytics, .admin-priorities) { padding: 18px 0; }
html body #app .shell .main.page-admin .admin-operations-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 14px; padding: 12px 16px; border: 0; border-radius: 5px; background: #f7f9fc; }
html body #app .shell .main.page-admin .admin-operation-summary-item { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; min-width: 0; color: var(--admin-muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
html body #app .shell .main.page-admin .admin-operation-summary-item :is(h3, p) { margin: 0; font-size: 11px; line-height: 1.6; }
html body #app .shell .main.page-admin .admin-operation-summary-item :is(h3, strong) { color: var(--admin-ink); font-size: 12px; font-weight: 550; }
html body #app .shell .main.page-admin .admin-operation-summary-item > .icon { width: 14px; height: 14px; flex: none; color: var(--admin-accent); }
html body #app .shell .main.page-admin button.admin-operation-summary-item { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-family: inherit; text-align: left; box-shadow: none; transform: none; }
html body #app .shell .main.page-admin .admin-operation-summary-item > span { display: flex; align-items: center; gap: 6px; }
html body #app .shell .main.page-admin .admin-operation-summary-item .icon { width: 14px; height: 14px; }
html body #app .shell .main.page-admin .admin-operation-summary-item > small { flex-basis: 100%; color: var(--admin-muted); font-size: 10px; }
html body #app .shell .main.page-admin .admin-analytics-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 0 12px; }
html body #app .shell .main.page-admin .admin-analytics-facts > div { gap: 4px; }
html body #app .shell .main.page-admin .admin-analytics-facts span { font-size: 10px; line-height: 1.5; }
html body #app .shell .main.page-admin .admin-analytics-facts strong { font-size: 20px; line-height: 1.3; }
html body #app .shell .main.page-admin div.admin-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
html body #app .shell .main.page-admin .admin-overview-main div.admin-chart-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
html body #app .shell .main.page-admin .admin-chart-card header { gap: 6px; min-height: 30px; margin-bottom: 8px; }
html body #app .shell .main.page-admin .admin-chart-card h3 { font-size: 12px; }
html body #app .shell .main.page-admin .admin-chart-svg { max-height: 205px; min-height: 120px; width: 100%; overflow: visible; }
html body #app .shell .main.page-admin .admin-chart-empty { min-height: 150px; border-radius: 4px; background: #f8fafc; }
html body #app .shell .main.page-admin .admin-chart-coverage { margin: 10px 0 0; font-size: 10px; }
html body #app .shell .main.page-admin .admin-period-control { flex: none; padding: 2px; border: 0; border-radius: 4px; background: var(--admin-soft); }
html body #app .shell .main.page-admin .admin-period-control button { min-height: 28px; padding: 4px 8px; border-radius: 3px; font-size: 11px; }
html body #app .shell .main.page-admin .admin-priority-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
html body #app .shell .main.page-admin .admin-priority { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--admin-line); border-radius: 0; background: transparent; transform: none !important; }
html body #app .shell .main.page-admin .admin-priority:first-child { padding-top: 4px; }
html body #app .shell .main.page-admin .admin-priority:last-child { border-bottom: 0; }
html body #app .shell .main.page-admin .admin-priority:hover { background: #fafbfd; box-shadow: none; }
html body #app .shell .main.page-admin .admin-priority-icon { grid-row: 1 / 4; width: 30px; height: 30px; margin: 0; border-radius: 4px; }
html body #app .shell .main.page-admin .admin-priority strong { grid-column: 2; font-size: 12px; line-height: 1.6; }
html body #app .shell .main.page-admin .admin-priority strong > span { font-size: 16px; color: var(--admin-accent); }
html body #app .shell .main.page-admin .admin-priority p { grid-column: 2; margin: 0; color: var(--admin-muted); font-size: 11px; line-height: 1.6; }
html body #app .shell .main.page-admin .admin-priority small { grid-column: 2; color: var(--admin-accent); font-size: 10px; }
html body #app .shell .main.page-admin .admin-overview-diagnostics { margin-top: 12px; border-top: 1px solid var(--admin-line); }
html body #app .shell .main.page-admin .admin-overview-diagnostics > summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; color: var(--admin-muted); font-size: 12px; cursor: pointer; }
html body #app .shell .main.page-admin .admin-overview-diagnostics > summary small { margin-left: auto; color: #8390a2; font-size: 10px; }
html body #app .shell .main.page-admin .admin-overview-note { margin: 12px 0 0; color: #8390a2; font-size: 10px; line-height: 1.6; }
html body #app .shell .main.page-admin .admin-overview-diagnostics .admin-operations { padding-top: 8px; border: 0; }
html body #app .shell .main.page-admin .admin-operation-card { padding: 16px; border: 0; border-radius: 4px; background: #f7f9fc; }
html body #app .shell .main.page-admin .admin-operation-recent { border-radius: 0; background: transparent; }
html body #app .shell .main.page-admin .admin-operation-state { border: 0; border-radius: 3px; }
html body #app .shell .main.page-admin .admin-usage { margin: 0; padding: 14px 0; border: 0; border-top: 1px solid var(--admin-line); border-radius: 0; background: transparent; }
html body #app .shell .main.page-admin .admin-usage-split > div { flex-wrap: wrap; max-width: 100%; }

/* One continuous table tools area; wide tables scroll inside their own wrapper. */
html body #app .shell .main.page-admin .admin-list-toolbar { padding: 12px 0; border-top: 1px solid var(--admin-line); border-bottom: 1px solid var(--admin-line); }
html body #app .shell .main.page-admin .admin-toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(120px, 170px) auto 36px; align-items: center; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; background: transparent; }
html body #app .shell .main.page-admin .admin-toolbar-simple { grid-template-columns: minmax(180px, 1fr) auto 36px; }
html body #app .shell .main.page-admin .admin-search { min-height: 36px; height: 36px; padding: 0 10px; border: 1px solid #dbe2ec; border-radius: 4px; }
html body #app .shell .main.page-admin .admin-search input { min-height: 34px; height: 34px; padding: 6px 0; border: 0; border-radius: 0; background: transparent; font-size: 13px; }
/* Keep one static search border even when shared field focus rules apply. */
html body #app .shell.workspace-shell .main[class].page-admin .admin-toolbar label.admin-search input,
html body #app .shell.workspace-shell .main[class].page-admin .admin-toolbar label.admin-search input:is(:focus, :focus-visible) {
  border: 0 !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
html body #app .shell .main.page-admin label.admin-search:focus-within {
  border-color: #dbe2ec !important;
  outline: none !important;
  box-shadow: none !important;
  background: #f7f9fc;
}
html body #app .shell .main.page-admin .admin-search .icon { width: 15px; height: 15px; }
html body #app .shell .main.page-admin .admin-filter-label { flex: none; min-width: 0; }
html body #app .shell .main.page-admin .admin-filter-label :is(select, .hb-select-trigger) { height: 36px; min-height: 36px; border-color: #dbe2ec; border-radius: 4px; font-size: 12px; }
html body #app .shell .main.page-admin .admin-toolbar > .admin-button { min-height: 36px; padding: 7px 12px; }
html body #app .shell .main.page-admin .admin-toolbar > .admin-button.icon-only { min-width: 36px; padding: 7px; }
html body #app .shell .main.page-admin .admin-table-tools { gap: 10px; margin: 0; padding: 0; }
html body #app .shell .main.page-admin .admin-table-tools-left,
html body #app .shell .main.page-admin .admin-table-tools-right { gap: 8px; }
html body #app .shell .main.page-admin :is(.admin-list-meta, .admin-active-filters) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; margin: 12px 0; color: var(--admin-muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
html body #app .shell .main.page-admin .admin-list-meta { justify-content: space-between; }
html body #app .shell .main.page-admin .admin-list-results { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
html body #app .shell .main.page-admin .admin-list-results .admin-active-filters { margin: 0; }
html body #app .shell .main.page-admin .admin-list-diagnostics { margin: 0 0 16px; }
html body #app .shell .main.page-admin :is(.admin-list-diagnostics, .admin-role-guide-help) > summary { padding: 8px 0; color: var(--admin-muted); font-size: 12px; cursor: pointer; }
html body #app .shell .main.page-admin .admin-role-guide-help { margin-bottom: 10px; }
html body #app .shell .main.page-admin .admin-active-filters > span { max-width: 100%; padding: 3px 7px; border-radius: 3px; background: var(--admin-soft); overflow-wrap: anywhere; }
html body #app .shell .main.page-admin .admin-page-size { gap: 6px; font-size: 11px; white-space: nowrap; }
html body #app .shell .main.page-admin .admin-page-size select { min-height: 32px; height: 32px; border-radius: 4px; }
html body #app .shell .main.page-admin .admin-column-menu { min-width: 180px; max-width: min(260px, calc(100vw - 40px)); border-radius: 5px; padding: 8px; }
html body #app .shell .main.page-admin .admin-role-guide { margin: 12px 0; padding: 10px 12px; border: 0; border-radius: 4px; background: #f7f9fc; }
html body #app .shell .main.page-admin :is(.admin-table-wrap, .table-scroll) { width: 100%; max-width: 100%; min-width: 0; border: 1px solid var(--admin-line); border-radius: 4px; overflow-x: auto !important; overflow-y: hidden !important; overscroll-behavior-x: contain; }
html body #app .shell .main.page-admin .admin-table { display: table; width: 100%; min-width: 720px; max-width: none; table-layout: auto; border-collapse: collapse; }
html body #app .shell .main.page-admin .admin-table :is(th, td) { padding: 11px 14px; font-size: 12px; line-height: 1.65; color: var(--admin-ink); }
html body #app .shell .main.page-admin .admin-table th { background: #f7f9fc; color: var(--admin-muted); font-size: 11px; font-weight: 550; }
html body #app .shell .main.page-admin .admin-table th:first-child { min-width: 150px; }
html body #app .shell .main.page-admin .admin-table td { border-bottom: 1px solid #edf0f5; }
html body #app .shell .main.page-admin .admin-table tr:hover td { background: #fafbfd; }
html body #app .shell .main.page-admin .admin-table :is(th, td)[hidden] { display: none !important; }
html body #app .shell .main.page-admin .admin-record { max-width: 320px; }
html body #app .shell .main.page-admin .admin-record strong { color: var(--admin-ink); font-size: 12px; font-weight: 550; }
html body #app .shell .main.page-admin :is(.admin-record span, .admin-stage, .admin-protected) { color: var(--admin-muted); font-size: 11px; }
html body #app .shell .main.page-admin .admin-row-actions { display: flex; flex-wrap: wrap; gap: 3px; }
html body #app .shell .main.page-admin .admin-actions .admin-button { min-height: 30px; margin: 0; padding: 5px 7px; font-size: 11px; }
html body #app .shell .main.page-admin .admin-pagination { margin: 0; padding: 14px 0 0; font-size: 12px; }
html body #app .shell .main.page-admin .admin-status { border-radius: 3px; font-size: 10px; }
html body #app .shell .main.page-admin .admin-feedback-card { padding: 16px 0; border: 0; border-bottom: 1px solid var(--admin-line); border-radius: 0; background: transparent; }
html body #app .shell .main.page-admin .admin-empty { min-height: 180px; padding: 28px 12px; border: 0; border-radius: 4px; background: #f9fafc; color: var(--admin-muted); }
html body #app .shell .main.page-admin .admin-empty h3 { color: var(--admin-muted); }

/* Provider connections are readable groups, rather than three dense columns. */
html body #app .shell .main.page-admin .admin-services { padding: 0; border: 0; }
html body #app .shell .main.page-admin .admin-services-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
html body #app .shell .main.page-admin .admin-service-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; min-width: 0; margin: 0; padding: 12px 14px; border: 0; border-radius: 4px; background: #f5f7fb; color: var(--admin-ink); text-align: left; font-family: inherit; font-size: 12px; overflow-wrap: anywhere; }
html body #app .shell .main.page-admin .admin-service-summary-name { min-width: 0; font-weight: 550; }
html body #app .shell .main.page-admin .admin-service-summary > small { grid-column: 1 / -1; color: var(--admin-muted); font-size: 11px; }
html body #app .shell .main.page-admin .admin-service-summary:hover:not(:disabled) { background: #edf2fb; }
html body #app .shell .main.page-admin .admin-service-summary :is(h3, strong) { margin: 0 0 4px; font-size: 13px; font-weight: 550; }
html body #app .shell .main.page-admin .admin-service-summary p { margin: 5px 0 0; color: var(--admin-muted); font-size: 11px; }
html body #app .shell .main.page-admin .admin-provider-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
html body #app .shell .main.page-admin .admin-provider { display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--admin-line); border-radius: 0; scroll-margin-top: calc(var(--workspace-header-height, 76px) + 20px); }
html body #app .shell .main.page-admin .admin-provider legend { padding: 0 14px 0 0; font-size: 16px; font-weight: 600; color: var(--admin-ink); }
html body #app .shell .main.page-admin .admin-provider-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
html body #app .shell .main.page-admin .admin-provider-description { flex: 1 1 240px; margin: 0; color: var(--admin-muted); font-size: 12px; line-height: 1.65; }
html body #app .shell .main.page-admin .admin-provider-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
html body #app .shell .main.page-admin .admin-provider-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
html body #app .shell .main.page-admin .admin-provider-field { display: flex; flex-direction: column; min-width: 0; gap: 7px; margin: 0; color: var(--admin-ink); font-size: 12px; }
html body #app .shell .main.page-admin .admin-provider-field[data-field="endpoint"] { grid-column: 1 / -1; }
html body #app .shell .main.page-admin .admin-key-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
html body #app .shell .main.page-admin .admin-key-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
html body #app .shell .main.page-admin .admin-key-actions .admin-field-note { margin: 0; }
html body #app .shell .main.page-admin .admin-check { align-items: flex-start; min-width: 0; color: var(--admin-muted); font-size: 12px; line-height: 1.65; }
html body #app .shell .main.page-admin .admin-check input { margin-top: 3px; width: 15px; height: 15px; flex: none; }
html body #app .shell .main.page-admin .admin-clear-key { color: #9a5260; font-size: 11px; }
html body #app .shell .main.page-admin .admin-service-features { margin: 26px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--admin-line); border-radius: 0; }
html body #app .shell .main.page-admin .admin-service-features legend { padding: 0 14px 0 0; font-size: 15px; font-weight: 600; }
html body #app .shell .main.page-admin .admin-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; }
html body #app .shell .main.page-admin .admin-feature-option { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 12px; border-radius: 4px; background: #f7f9fc; }
html body #app .shell .main.page-admin .admin-feature-option :is(strong, span) { min-width: 0; font-size: 12px; line-height: 1.6; }
html body #app .shell .main.page-admin .admin-feature-option small { display: block; margin-top: 4px; color: var(--admin-muted); font-size: 11px; line-height: 1.6; }
html body #app .shell .main.page-admin .admin-service-footer { margin-top: 24px; padding: 16px 0 0; gap: 16px; border-top: 1px solid var(--admin-line); }
html body #app .shell .main.page-admin .admin-services-draft-status { min-width: 0; color: var(--admin-muted); font-size: 12px; }
html body #app .shell .main.page-admin .admin-service-footer .admin-services-draft-status { margin: 0 0 4px; color: var(--admin-muted); font-size: 12px; }
html body #app .shell .main.page-admin .admin-service-footer .admin-services-draft-status[data-dirty="true"] { color: var(--admin-accent); }
html body #app .shell .main.page-admin .admin-field-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-weight: 500; }
html body #app .shell .main.page-admin .admin-field-label small { color: #8390a2; font-size: 11px; font-weight: 400; }

/* Details and forms keep the full available column, with large readable evidence. */
html body #app .shell .main.page-admin .admin-detail-header { margin: 0 0 20px; padding: 0 0 16px; border-bottom: 1px solid var(--admin-line); }
html body #app .shell .main.page-admin .admin-detail-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
html body #app .shell .main.page-admin .admin-detail-title { min-width: 0; }
html body #app .shell .main.page-admin .admin-detail-title { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
html body #app .shell .main.page-admin .admin-detail-title > div { min-width: 0; }
html body #app .shell .main.page-admin .admin-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html body #app .shell .main.page-admin .admin-detail-navigation .admin-back { margin-bottom: 0; }
html body #app .shell .main.page-admin .admin-detail-context { color: var(--admin-muted); font-size: 11px; }
html body #app .shell .main.page-admin .admin-detail-title h2 { margin: 0; font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
html body #app .shell .main.page-admin :is(.admin-course-preview, .admin-learner-report) { width: 100%; max-width: none; margin: 0; }
html body #app .shell .main.page-admin :is(.admin-record-editor, .admin-knowledge-editor) { padding: 20px 0; border: 0; border-top: 1px solid var(--admin-line); border-bottom: 1px solid var(--admin-line); border-radius: 0; background: #fff; box-shadow: none; }
html body #app .shell .main.page-admin .admin-editor-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
html body #app .shell .main.page-admin :is(.admin-editor-fields, .admin-provider, .admin-model-form, .speech-settings) :is(input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea, .hb-select-trigger) { min-width: 0; width: 100%; max-width: 100%; min-height: 40px; border: 1px solid #dbe2ec; border-radius: 4px; padding: 9px 11px; background-color: #fff; color: var(--admin-ink); font-size: 13px; box-shadow: none; }
html body #app .shell .main.page-admin :is(.admin-editor-fields, .admin-provider, .admin-model-form, .speech-settings) select { padding-right: 30px; }
html body #app .shell .main.page-admin :is(.admin-editor-fields, .speech-settings) textarea { min-height: 120px; resize: vertical; line-height: 1.75; }
html body #app .shell .main.page-admin .admin-editor-actions { margin-top: 20px; padding-top: 14px; gap: 8px; }
html body #app .shell .main.page-admin .admin-record-detail { gap: 20px 24px; padding: 8px 0; }
html body #app .shell .main.page-admin .admin-record-detail dd { font-size: 14px; line-height: 1.7; }
html body #app .shell .main.page-admin .admin-course-chapter { border-radius: 4px; }
html body #app .shell .main.page-admin .admin-job-diagnostics-body { border: 0; border-radius: 4px; background: #f5f7fa; }
html body #app .shell .main.page-admin .admin-job-diagnostics { max-width: 420px; }
html body #app .shell .main.page-admin .speech-settings { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html body #app .shell .main.page-admin .admin-model-status { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 4px; background: #f7f9fc; }
html body #app .shell .main.page-admin .admin-model-form { max-width: 720px; }
html body #app .shell .main.page-admin :is(.admin-evaluation-metric, .admin-writing-plan-group, .admin-source-evidence, .admin-quality-evidence-metrics > div, .admin-english-entry, .admin-quality-entry, .maintenance-card) { border-radius: 4px; box-shadow: none; }

/* Management child screens use the same type scale; saved evidence stays readable. */
html body #app .shell .main.page-admin :is(.speech-settings, .maintenance-workspace, .culture-review, .course-quality, .english-review, .admin-model-service) { min-width: 0; max-width: none; margin: 0; color: var(--admin-ink); font-size: 13px; line-height: 1.75; }
html body #app .shell .main.page-admin :is(.speech-settings, .maintenance-workspace, .culture-review, .course-quality, .english-review) h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.5; font-weight: 600; }
html body #app .shell .main.page-admin :is(.speech-settings, .maintenance-workspace, .culture-review, .course-quality, .english-review) h3 { margin: 14px 0 8px; font-size: 15px; line-height: 1.6; font-weight: 600; }
html body #app .shell .main.page-admin :is(.culture-review, .course-quality, .english-review) h4 { font-size: 13px; line-height: 1.7; font-weight: 550; }
html body #app .shell .main.page-admin :is(.speech-settings, .maintenance-workspace, .culture-review, .course-quality, .english-review) :is(p, li, label, summary, legend, dt, dd) { font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
html body #app .shell .main.page-admin :is(.speech-settings, .maintenance-workspace, .culture-review, .course-quality, .english-review) :is(small, time, code, .eyebrow) { font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
html body #app .shell .main.page-admin :is(.speech-settings, .maintenance-workspace, .culture-review, .course-quality, .english-review) :is(form, fieldset) { min-width: 0; max-width: 100%; gap: 16px; }
html body #app .shell .main.page-admin :is(.speech-settings, .maintenance-workspace, .culture-review, .course-quality, .english-review) label { min-width: 0; gap: 7px; margin-block: 0; }
html body #app .shell .main.page-admin :is(.speech-settings, .maintenance-workspace, .culture-review, .course-quality, .english-review) :is(input:not([type="checkbox"], [type="radio"]), select, textarea, .hb-select-trigger) { width: 100%; min-width: 0; max-width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #dbe2ec; border-radius: 4px; background-color: #fff; color: var(--admin-ink); font-family: inherit; font-size: 13px; line-height: 1.65; box-shadow: none; }
html body #app .shell .main.page-admin :is(.speech-settings, .maintenance-workspace, .culture-review, .course-quality, .english-review) .hb-select-value { white-space: normal; overflow-wrap: anywhere; }
html body #app .shell .main.page-admin :is(.speech-settings, .maintenance-workspace, .culture-review, .course-quality, .english-review) input:is([type="checkbox"], [type="radio"]) { width: 16px; height: 16px; flex: none; margin-top: 3px; accent-color: var(--admin-accent); }
html body #app .shell .main.page-admin :is(.culture-review, .course-quality, .english-review) .admin-button { min-height: 36px; padding: 7px 12px; border-radius: 4px; font-size: 12px; line-height: 1.5; }
html body #app .shell .main.page-admin .speech-settings > header { flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
html body #app .shell .main.page-admin .speech-settings-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; padding: 12px; border-radius: 4px; background: #f7f9fc; }
html body #app .shell .main.page-admin .speech-settings-facts > div { min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
html body #app .shell .main.page-admin .speech-settings-facts dt { font-size: 11px; }
html body #app .shell .main.page-admin .speech-settings-facts dd { margin: 4px 0 0; font-size: 13px; }
html body #app .shell .main.page-admin .speech-settings [data-speech-settings-form] { max-width: 820px; }
html body #app .shell .main.page-admin .speech-settings :is(.speech-settings-unknown, .speech-settings-conflict) { padding: 12px 14px; border: 0; border-radius: 4px; font-size: 12px; }
html body #app .shell .main.page-admin .speech-settings .speech-setting-toggle { padding: 10px 0; border-top: 1px solid var(--admin-line); font-size: 13px; }
html body #app .shell .main.page-admin .speech-settings button[type="submit"] { justify-self: start; }
html body #app .shell .main.page-admin .admin-model-status { gap: 14px 24px; margin: 16px 0; padding: 14px 16px; }
html body #app .shell .main.page-admin .admin-model-status dt { font-size: 11px; color: var(--admin-muted); }
html body #app .shell .main.page-admin .admin-model-status dd { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
html body #app .shell .main.page-admin .admin-model-status > div { min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
html body #app .shell .main.page-admin .maintenance-head { margin-bottom: 18px; gap: 16px; }
html body #app .shell .main.page-admin .maintenance-head p { margin: 5px 0 0; color: var(--admin-muted); }
html body #app .shell .main.page-admin .maintenance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
html body #app .shell .main.page-admin .maintenance-card { padding: 18px 0; border: 0; border-top: 1px solid var(--admin-line); border-radius: 0; background: transparent; }
html body #app .shell .main.page-admin .maintenance-card h3 { margin-top: 0; }
html body #app .shell .main.page-admin .maintenance-workspace button { min-height: 36px; padding: 7px 12px; border-radius: 4px; font-size: 12px; }
html body #app .shell .main.page-admin .maintenance-workspace button[type="submit"] { background: var(--admin-accent); border-color: var(--admin-accent); }
html body #app .shell .main.page-admin .maintenance-workspace form { max-width: none; margin: 20px 0; gap: 16px; }
html body #app .shell .main.page-admin .maintenance-workspace :is(.maintenance-actions, nav) { margin: 16px 0; gap: 8px; }
html body #app .shell .main.page-admin :is(.culture-review-text, .culture-review-claims > article, .culture-review-event, .english-review-text, .english-review-criterion, .english-review-event, .course-quality-slot-editor, .course-quality-event, .course-quality-claim, .course-quality-preview, .course-quality-empty) { margin: 16px 0; padding: 16px 0; border: 0; border-top: 1px solid var(--admin-line); border-radius: 0; background: transparent; box-shadow: none; }
html body #app .shell .main.page-admin :is(.culture-review, .course-quality, .english-review) fieldset { padding: 16px; margin: 16px 0; border: 1px solid var(--admin-line); border-radius: 4px; }
html body #app .shell .main.page-admin :is(.culture-review, .course-quality, .english-review) details { margin: 14px 0; border-radius: 4px; }
html body #app .shell .main.page-admin :is(.culture-review, .course-quality, .english-review) summary { min-height: 40px; padding: 10px 12px; }
html body #app .shell .main.page-admin :is(.culture-review-note, .culture-review-warning, .course-quality-note, .course-quality-warning, .english-review-note, .english-review-warning, .admin-culture-entry, .admin-course-quality-entry, .admin-english-entry) { margin: 16px 0; padding: 12px 14px; border: 0; border-radius: 4px; font-size: 12px; line-height: 1.75; }
html body #app .shell .main.page-admin :is(.culture-review-text p, .english-review-text p, .course-quality .course-quality-original, .course-quality [lang="en"]) { font-size: 15px; line-height: 1.9; white-space: pre-wrap; }
html body #app .shell .main.page-admin :is(.course-quality-dimensions, .course-quality-fields) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
html body #app .shell .main.page-admin .course-quality-dimensions > article { padding: 14px; border: 0; border-radius: 4px; background: #f7f9fc; }
html body:has(#app .main.page-admin) .hb-select-menu :is(.hb-select-option, .hb-select-empty) { font-size: 13px; line-height: 1.65; white-space: normal; }

/* Only explicitly marked administration dialogs receive these modal overrides. */
#modal-root .admin-dialog { width: min(1080px, calc(100vw - 48px)); max-width: calc(100vw - 48px); max-height: calc(100dvh - 48px); margin: 24px auto; padding: 24px; border-radius: 6px; background: #fff; overflow-y: auto; overflow-x: hidden; box-shadow: 0 16px 60px rgb(24 38 62 / 16%); }
#modal-root .admin-dialog :is(input, select, textarea) { max-width: 100%; min-width: 0; border-radius: 4px; }
#modal-root .admin-dialog :is(button, a, input, select, textarea):focus-visible { outline: 2px solid #365fba; outline-offset: 3px; }
#modal-root .admin-dialog *, #modal-root .admin-dialog *::after { animation: none !important; transition: none !important; }

@media (min-width: 1200px) {
  html body #app .shell .main.page-admin .admin-stat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  html body #app .shell .main.page-admin .admin-stat { border-bottom: 0; border-right: 1px solid var(--admin-line); }
  html body #app .shell .main.page-admin .admin-stat:nth-child(3n) { border-right: 1px solid var(--admin-line); }
  html body #app .shell .main.page-admin .admin-stat:last-child { border-right: 0; }
  html body #app .shell .main.page-admin .admin-module-heading { margin-bottom: 14px; padding-bottom: 12px; }
  html body #app .shell .main.page-admin .admin-module-heading .admin-module-eyebrow { margin: 0 0 3px; font-size: 10px; line-height: 1.4; }
  html body #app .shell .main.page-admin .admin-module-heading p:not(.admin-module-eyebrow) { margin-top: 3px; line-height: 1.5; }
  html body #app .shell .main.page-admin .admin-operations-summary { padding-block: 10px; margin-bottom: 10px; }
  html body #app .shell .main.page-admin .admin-model-status { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 14px 0; padding: 12px 14px; }
}
@media (min-width: 1024px) {
  html body #app .shell .main.page-admin .admin-nav-label { display: block; position: static; max-width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 769px) and (max-width: 1023px) {
  html body #app .shell .main.page-admin .admin-console:not(.admin-review-only) { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
  html body #app .shell .main.page-admin .admin-sidebar-heading { padding-bottom: 10px; }
  html body #app .shell .main.page-admin .admin-nav-item { justify-content: center; min-height: 40px; padding: 9px; }
  html body #app .shell .main.page-admin .admin-overview-main { grid-template-columns: minmax(0, 1fr); }
  html body #app .shell .main.page-admin .admin-overview-main div.admin-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body #app .shell .main.page-admin .admin-priority-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 1100px) {
  html body #app .shell .main.page-admin .admin-overview-main { grid-template-columns: minmax(0, 1fr); gap: 0; }
  html body #app .shell .main.page-admin .admin-feature-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  html body #app .shell .main.page-admin .admin-services-overview { gap: 8px; }
}
@media (max-width: 768px) {
  html body #app .shell .main.page-admin { padding: 12px 12px 24px; }
  html body #app .shell .main.page-admin .admin-console:not(.admin-review-only) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  html body #app .shell .main.page-admin .admin-sidebar { position: static; max-height: none; padding: 4px; border-radius: 5px; overflow: visible; }
  html body #app .shell .main.page-admin .admin-sidebar-heading { display: none; }
  html body #app .shell .main.page-admin .admin-module-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 0; border-radius: 4px; background: #fff; color: var(--admin-ink); font-size: 13px; text-align: left; }
  html body #app .shell .main.page-admin .admin-toggle-chevron { margin-left: auto; }
  html body #app .shell .main.page-admin .admin-navigation { display: none; }
  html body #app .shell .main.page-admin .admin-sidebar.is-open .admin-navigation { display: block; max-height: min(55svh, 440px); padding: 0 6px 8px; overflow-y: auto; }
  html body #app .shell .main.page-admin .admin-nav-group-title { position: static; width: auto; height: auto; padding: 0; margin: 8px 10px 4px; clip-path: none; overflow: visible; }
  html body #app .shell .main.page-admin .admin-nav-item { justify-content: flex-start; min-height: 42px; padding: 10px; }
  html body #app .shell .main.page-admin .admin-nav-label { display: block; position: static; width: auto; max-width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; transform: none; pointer-events: auto; overflow-wrap: anywhere; }
  html body #app .shell .main.page-admin .admin-nav-badge { display: inline-flex; }
  html body #app .shell .main.page-admin .admin-console > .admin-workspace { padding: 16px 14px 20px; border-radius: 5px; }
  html body #app .shell .main.page-admin .admin-module-heading { align-items: flex-start; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; }
  html body #app .shell .main.page-admin .admin-module-heading h1 { font-size: 20px; }
  html body #app .shell .main.page-admin .admin-module-heading > .admin-button { min-height: 40px; }
  html body #app .shell .main.page-admin .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body #app .shell .main.page-admin .admin-stat { min-height: 76px; padding: 12px; border-right: 1px solid var(--admin-line); border-bottom: 1px solid var(--admin-line); }
  html body #app .shell .main.page-admin .admin-stat:nth-child(3n) { border-right: 1px solid var(--admin-line); }
  html body #app .shell .main.page-admin .admin-stat:nth-child(2n) { border-right: 0; }
  html body #app .shell .main.page-admin .admin-stat:nth-last-child(-n+3) { border-bottom: 1px solid var(--admin-line); }
  html body #app .shell .main.page-admin .admin-stat:nth-last-child(-n+2) { border-bottom: 0; }
  html body #app .shell .main.page-admin .admin-stat > strong { font-size: 24px; }
  html body #app .shell .main.page-admin :is(.admin-overview-main, div.admin-chart-grid, .admin-overview-main div.admin-chart-grid, .admin-operations-grid, .admin-priority-grid, .admin-feedback-list, .admin-editor-fields, .admin-record-detail, .admin-provider-fields, .admin-services-overview, .admin-model-status, .admin-evaluation-grid, .admin-writing-plan-grid) { grid-template-columns: minmax(0, 1fr); }
  html body #app .shell .main.page-admin .admin-operations-summary { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 12px; }
  html body #app .shell .main.page-admin .admin-analytics-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html body #app .shell .main.page-admin :is(.admin-section-heading, .admin-operations-heading) { flex-wrap: wrap; }
  html body #app .shell .main.page-admin .admin-period-control button { min-height: 36px; }
  html body #app .shell .main.page-admin .admin-toolbar { grid-template-columns: minmax(0, 1fr) 40px; gap: 8px; }
  html body #app .shell .main.page-admin .admin-search { grid-column: 1 / -1; min-height: 40px; height: 40px; }
  html body #app .shell .main.page-admin .admin-search input { height: 38px; min-height: 38px; }
  html body #app .shell .main.page-admin .admin-filter-label { grid-column: 1 / -1; }
  html body #app .shell .main.page-admin .admin-filter-label :is(select, .hb-select-trigger) { height: 40px; min-height: 40px; }
  html body #app .shell .main.page-admin .admin-toolbar > .admin-button { min-height: 40px; }
  html body #app .shell .main.page-admin .admin-toolbar > * { grid-row: auto !important; grid-column: auto !important; width: auto; }
  html body #app .shell .main.page-admin .admin-toolbar > :is(.admin-search, .admin-filter-label) { grid-column: 1 / -1 !important; width: 100%; }
  html body #app .shell .main.page-admin .admin-table-tools { gap: 10px; }
  html body #app .shell .main.page-admin :is(.admin-table-tools-left, .admin-table-tools-right) { flex-wrap: wrap; margin-left: 0; max-width: 100%; }
  html body #app .shell .main.page-admin .admin-table-tools-right { margin-left: auto; }
  html body #app .shell .main.page-admin .admin-table { display: table; min-width: 720px; }
  html body #app .shell .main.page-admin .admin-table thead { display: table-header-group; }
  html body #app .shell .main.page-admin .admin-table tbody { display: table-row-group; width: auto; }
  html body #app .shell .main.page-admin .admin-table tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; }
  html body #app .shell .main.page-admin .admin-table :is(th, td),
  html body #app .shell .main.page-admin .admin-table td.admin-actions,
  html body #app .shell .main.page-admin .admin-table .admin-confirm-row td { display: table-cell; margin: 0; padding: 11px 12px; border-top: 0; }
  html body #app .shell .main.page-admin .admin-table td::before { display: none; }
  html body #app .shell .main.page-admin .admin-button { min-height: 40px; }
  html body #app .shell .main.page-admin .admin-actions .admin-button { min-height: 34px; }
  html body #app .shell .main.page-admin .admin-service-entry { align-items: flex-start; }
  html body #app .shell .main.page-admin .admin-provider-header { flex-direction: column; gap: 10px; }
  html body #app .shell .main.page-admin .admin-provider-description { flex: none; }
  html body #app .shell .main.page-admin .admin-service-footer { flex-direction: column; align-items: stretch; }
  html body #app .shell .main.page-admin .admin-service-footer .admin-button { width: 100%; }
  html body #app .shell .main.page-admin .admin-pagination { flex-wrap: wrap; gap: 12px; }
  html body #app .shell .main.page-admin .admin-pagination > div { margin-left: auto; }
  html body #app .shell .main.page-admin :is(.maintenance-grid, .maintenance-version-pair, .speech-settings-facts, .course-quality-dimensions, .course-quality-fields) { grid-template-columns: minmax(0, 1fr); }
  html body #app .shell .main.page-admin .speech-settings-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 10px 12px; }
  html body #app .shell .main.page-admin .speech-settings-facts > div:last-child { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
  html body #app .shell .main.page-admin .speech-settings-facts > div:last-child dd { margin: 0; }
  html body #app .shell .main.page-admin .maintenance-head { flex-direction: column; }
  html body #app .shell .main.page-admin :is(.culture-review, .course-quality, .english-review) .admin-button { min-height: 40px; }
  html body #app .shell .main.page-admin .admin-overview-diagnostics > summary { flex-wrap: wrap; }
  html body #app .shell .main.page-admin .admin-overview-diagnostics > summary small { margin-left: 0; }
  #modal-root .admin-dialog { width: calc(100vw - 24px); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); margin: 12px auto; padding: 16px; border-radius: 5px; }
}
