/* Portal composition. Visual tokens and engine surfaces remain unchanged. */
html { scrollbar-gutter: stable; }
[hidden] { display: none !important; }
details:not([open]) > :not(summary) { display: none !important; }
.app-shell :is(h1, h2, h3, p, span, strong, button, input, select, textarea, label, small) { letter-spacing: 0 !important; }
.app-shell :is(button, a) > svg { flex-shrink: 0; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.text-button > svg { width: 16px; height: 16px; flex: 0 0 16px; }
.inner-topbar .inner-actions { margin-left: auto; }

/* Shared portal frame; the reading column is constrained inside it. */
.app-shell .portal-page { --r: 8px; --r-sm: 6px; --r-lg: 8px; }
.app-shell .portal-page > .inner-topbar,
.app-shell .home-page > .inner-topbar { height: 60px; min-height: 60px; padding: 8px 24px; flex-wrap: nowrap; }
.app-shell .inner-page.portal-page > :is(.page-container, .operations-shell),
.app-shell .home-page :is(.home-heading, .atlas, .lp-body) { width: min(1600px, calc(100% - 48px)); margin-inline: 24px; }
.app-shell .inner-page.portal-page > :is(.page-container, .operations-shell) { padding-top: 16px; }
.app-shell .portal-page :is(.page-heading, .training-catalog-header, .me-intro, .operations-hero) { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.app-shell .portal-page :is(.page-heading, .training-catalog-header, .me-intro, .operations-hero) h1,
.app-shell .home-page .home-heading h1 { margin: 0; font-size: 28px; font-weight: 650; line-height: 36px; }
.app-shell .portal-page :is(h2, h3) { line-height: 1.5; }
.app-shell .portal-page :is(p, input, select, textarea, td, dd) { font-size: 14px; }
.app-shell .portal-page :is(button, input, select, textarea) { font-family: inherit; }
.app-shell .portal-page :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-shell .portal-page :is(.page-primary, .ghost-action, .primary-button, .secondary-button) { min-height: 40px; }
.app-shell .portal-page h4 { margin: 0; }
.app-shell .portal-page :is(.eyebrow, .page-eyebrow, .detail-kicker, .me-intro-meta) { display: none; }
.app-shell .home-page .home-heading { min-height: 52px; margin-block: 16px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.app-shell .home-page .atlas { margin-top: 0; }
.app-shell .home-page :is(h2, .lp-section-head h2) { margin: 0; font-size: 18px; line-height: 28px; }

/* Navigation keeps icon hit areas stable in both states. */
.sidebar-nav .nav-item > svg { width: 18px; height: 18px; flex: 0 0 18px; }
.sidebar-nav .nav-item { border-radius: 6px; }
/* The whole menu, 계정·시스템 included, fits a 900px-high window without scrolling. */
.app-shell .sidebar-nav .nav-item { min-height: 40px; padding-block: 8px; }
.app-shell .sidebar-nav .nav-divider:not(:first-child) { margin-top: 12px; }
/* 계정·시스템 sub-groups and 진행 현황 -> 새 과제. */
.operations-tab-sublabel { align-self: center; margin: 0 2px 0 10px; color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.operations-tab-sublabel:first-of-type { margin-left: 0; }
.operations-tab-sublabel[data-for="audit"] { padding-left: 12px; border-left: 1px solid var(--line); }
.ops-progress-panel > header [data-ops-new-assignment] { margin-left: auto; }
/* Discussion empty state: no posts at all vs. nothing matching the filters. */
#discussionFeedEmpty[data-reason="filtered"] .feed-empty-none, #discussionFeedEmpty[data-reason="none"] .feed-empty-filtered { display: none; }
#discussionFeedEmpty > div { display: grid; justify-items: center; gap: 8px; }
@media (min-width: 901px) {
  .app-shell[data-navigation-collapsed="true"] { --sidebar-w: 92px; }
  .app-shell[data-navigation-collapsed="true"] .sidebar { padding-inline: 8px; }
  .app-shell[data-navigation-collapsed="true"] :is(.sidebar-logo-name, .nav-divider, .profile-copy) { display: none; }
  .app-shell[data-navigation-collapsed="true"] .sidebar-logo { justify-content: center; padding-inline: 0; }
  .app-shell[data-navigation-collapsed="true"] .nav-item { justify-content: center; padding-inline: 0; }
  .app-shell[data-navigation-collapsed="true"] .nav-item > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .app-shell[data-navigation-collapsed="true"] .nav-item b { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 3px; font-size: 10px; }
  .app-shell[data-navigation-collapsed="true"] .sidebar-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
  .app-shell[data-navigation-collapsed="true"] .utility-pair { flex-direction: column; }
  .app-shell[data-navigation-collapsed="true"] .profile-card { justify-content: center; padding: 8px 0; }
  .app-shell[data-navigation-collapsed="true"] .sync-badge { width: 100%; height: auto; padding: 4px; font-size: 11px; }
}
@media (max-width: 900px) { #sidebarCollapse { display: none; } }

/* Lists and query controls. */
.list-search { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 0 12px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.app-shell .list-search:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -1px; }
.list-search svg { width: 16px; height: 16px; flex: 0 0 16px; }
.list-search input { width: 100%; min-width: 0; min-height: 40px; padding: 0; border: 0; background: none; font: inherit; }
.app-shell .portal-page .list-search input:focus-visible { outline: none; box-shadow: none; }
.app-shell .portal-page :is(.catalog-query, .case-browser-tools) { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.catalog-query { margin-bottom: 12px; }
.catalog-query > label:not(.list-search), .case-browser-tools label:not(.list-search) { display: grid; gap: 6px; min-width: 140px; color: var(--ink-2); font-size: 12px; }
.catalog-query .list-search, .case-browser-tools .list-search { flex: 1 1 260px; max-width: 400px; }
.app-shell .portal-page :is(.catalog-query, .case-browser-tools) select { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 14px; }
.catalog-query > .text-button { width: 40px; height: 40px; padding: 0; }
.catalog-query > span { align-self: end; display: flex; align-items: center; min-height: 40px; color: var(--ink-3); font-size: 13px; }
.catalog-query #trainingRefreshButton { margin-left: auto; }
.training-path-links { flex-wrap: wrap; margin-bottom: 12px; }
.training-path-links [aria-current="page"] { color: var(--accent); font-weight: 700; }
.training-analysis-action { margin-left: auto; min-height: 40px; padding: 8px 0 8px 16px; color: var(--ink-2); }
.app-shell .training-catalog-header .training-catalog-counts { margin: 0; min-height: 0; color: var(--ink-2); font-size: 13px; }
.app-shell .training-library-workbench { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.app-shell .training-library-workbench #trainingScenarioList { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); gap: 16px; }
.app-shell .training-scenario-card { display: flex; min-width: 0; min-height: 0; border: 1px solid var(--line); border-radius: 8px; box-shadow: none; background: var(--surface); }
.app-shell .training-scenario-card > div:last-child { display: flex; flex-direction: column; gap: 6px; width: 100%; min-width: 0; padding: 16px; }
.app-shell .training-scenario-card header { display: flex; align-items: center; min-height: 24px; }
.app-shell .training-scenario-card h2 { margin: 0; font-size: 18px; line-height: 26px; overflow-wrap: anywhere; }
.app-shell .training-catalog-page .training-scenario-card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.app-shell .training-scenario-card .training-scenario-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: auto 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.training-scenario-meta > div { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.app-shell .training-catalog-page .training-scenario-card .training-scenario-meta dt { margin-bottom: 0; color: var(--ink-3); font-size: 12px; }
.app-shell .training-catalog-page .training-scenario-card .training-scenario-meta dd { margin: 0; font-size: 14px; line-height: 22px; white-space: normal; overflow-wrap: anywhere; }
.app-shell .training-scenario-card footer { display: flex; justify-content: flex-end; margin: 0; padding-top: 4px; border: 0; }
.app-shell .portal-page .training-scenario-card footer .page-primary { min-width: 132px; min-height: 40px; padding: 8px 12px; gap: 16px; }
.app-shell .training-scenario-card .scenario-brief { margin: 0; padding: 0; border: 0; }
.app-shell .training-catalog-page .scenario-brief > summary { display: flex; align-items: center; gap: 8px; min-height: 24px; padding: 0; color: var(--ink-2); font-size: 13px; line-height: 20px; cursor: pointer; }
.scenario-brief summary svg { width: 14px; height: 14px; }
.app-shell .training-library-workbench :is(.training-section-heading, .training-history > summary) { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin: 0 0 8px; padding: 0; }
.app-shell .training-library-workbench :is(.training-section-heading, .training-history > summary) h2 { margin: 0; font-size: 18px; line-height: 28px; }
.app-shell .training-library-workbench .training-history { padding: 0 0 0 20px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.training-history > summary { cursor: pointer; list-style: none; }
.training-history > summary::-webkit-details-marker { display: none; }
.history-chevron { width: 16px; height: 16px; transition: transform .15s; }
.training-history[open] .history-chevron { transform: rotate(180deg); }
.training-history > .text-button { min-height: 36px; padding: 0; white-space: nowrap; font-size: 13px; }
.training-library-workbench #trainingRunList { max-height: none; padding: 0; }
.app-shell .training-library-workbench .training-run-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.training-run-card > div { grid-column: 1 / -1; }
.app-shell .training-library-workbench .training-run-card > strong { margin: 0; font-size: 14px; line-height: 22px; white-space: normal; overflow-wrap: anywhere; }
.training-library-workbench .training-run-card footer { margin: 0; padding: 0; justify-content: end; }
.app-shell .training-library-workbench .training-run-card footer button { min-height: 32px; padding: 4px 8px; }
.training-history .training-run-archive > summary { padding: 12px 0; cursor: pointer; }
#scenarioSearchStatus { padding: 24px 0; color: var(--ink-2); }

/* Personal overview precedes the task query and the actual task rows. */
/* 내 훈련: runs that can be continued come first. */
/* 홈: the same page for every role; blocks show only when they have content for this user. */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.dash-block { display: grid; gap: 8px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.dash-block > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash-block h2 { margin: 0; font-size: 15px; }
.dash-block > header .text-button { min-height: 32px; padding: 0; font-size: 13px; }
.dashboard-grid .me-active-runs { margin: 0; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-greeting { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.dash-block.is-empty { display: none; }
.dash-list { display: grid; }
.dash-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 8px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.dash-row:first-child { border-top: 0; }
.dash-row:hover b { color: var(--accent); }
.dash-row-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.dash-row-main b { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dash-row-main small { color: var(--ink-3); font-size: 12px; }
.dash-row.is-unread b::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.dash-badge { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.dash-badge.soon { background: var(--amber-soft); color: var(--amber); }
.dash-badge.late { background: var(--danger-soft, #fde8e8); color: var(--danger); }
.dash-bar { display: block; height: 4px; margin-top: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.dash-bar > i { display: block; height: 100%; background: var(--accent); }
.dash-empty { margin: 0; padding: 6px 0; color: var(--ink-3); font-size: 13px; }
/* 과제 대상자 명단 and a manager's person records view. */
.ops-assignment-targets ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ops-target { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.ops-target:first-child { border-top: 0; }
.ops-target small { color: var(--ink-3); font-size: 12px; }
.ops-target .text-button { justify-self: start; min-height: 32px; padding: 0; font-weight: 600; }
.records-back { margin-left: 12px; min-height: 32px; font-size: 13px; }
/* 내 훈련 기록: 과제훈련 / 자율훈련 label on each run. */
.app-shell .route-page .records-heading:has(.status-tabs) { align-items: flex-end; min-height: 0; padding-bottom: 0; }
.app-shell .route-page .records-heading .status-tabs { border-bottom: 0; }
.process-run-kind { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 4px; font-size: 11px; font-weight: 600; vertical-align: middle; }
.process-run-kind.is-assignment { background: var(--accent-soft); color: var(--accent); }
.process-run-kind.is-free { background: var(--surface-3); color: var(--ink-2); }
/* 과제 설명: what to do before the simulator opens. */
.assignment-briefing { display: grid; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.assignment-briefing > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.assignment-briefing h2 { margin: 2px 0 0; font-size: 22px; font-weight: 700; }
.assignment-briefing header p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.assignment-briefing h3 { margin: 0 0 6px; color: var(--accent); font-size: 14px; }
.assignment-briefing-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.assignment-briefing-facts > div { display: flex; gap: 8px; align-items: baseline; }
.assignment-briefing-facts dt { color: var(--ink-3); font-size: 12px; }
.assignment-briefing-facts dd { margin: 0; font-size: 15px; font-weight: 600; }
.assignment-briefing-case p, .assignment-briefing-instructions p { max-width: 72ch; margin: 0 0 6px; font-size: 15px; line-height: 1.8; }
.assignment-briefing-note { margin: 0; color: var(--ink-3); font-size: 12.5px; }
.assignment-briefing > footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
/* Result: 복기 and next actions. */
.training-debrief { padding: 14px 8px; border-top: 1px solid var(--line); }
.training-debrief h3 { margin: 0 0 6px; font-size: 16px; }
.training-debrief h4 { margin: 10px 0 4px; color: var(--accent); font-size: 14px; }
.training-debrief p { max-width: 72ch; margin: 0 0 6px; font-size: 15px; line-height: 1.8; }
.training-debrief-title { font-weight: 600; }
.training-next-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 8px; border-top: 1px solid var(--line); }
/* Practice card for a scenario that is my open assignment. */
.scenario-assigned-note { margin: 10px 0 0; padding: 8px 10px; border-radius: 6px; background: var(--amber-soft); color: var(--amber); font-size: 13px; font-weight: 600; }
.me-active-runs { margin: 0 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 8px; background: var(--surface); }
.me-active-runs h2 { margin: 0 0 6px; font-size: 15px; }
.me-active-run-list .training-run-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 8px 0; border: 0; border-top: 1px solid var(--line); background: none; box-shadow: none; }
.me-active-run-list .training-run-card:first-child { border-top: 0; }
.me-active-run-list .training-run-card > div { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; grid-column: 1; color: var(--ink-3); font-size: 12px; }
.me-active-run-list .training-run-card > strong { grid-column: 1; font-size: 14px; }
.me-active-run-list .training-run-card footer { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding: 0; }
.me-active-run-list .training-run-card footer button { min-height: 36px; padding: 6px 14px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 600; }
/* The organisation query is opened from 훈련 현황 (member drill-down); the personal page does not show it closed. */
.process-organization-query:not([open]) { display: none; }
.work-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.work-tabs button { min-height: 40px; padding: 8px 16px; color: var(--ink-2); border-bottom: 2px solid transparent; font-size: 14px; }
.work-tabs [aria-pressed="true"] { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.app-shell .me-intro-copy { min-width: 0; }
.me-intro :is(.training-purpose, .training-boundary) { display: none; }
.app-shell .training-personal-status { margin: 6px 0 0; color: var(--ink-2); font-size: 13px; }
.me-affiliation { display: grid; gap: 4px; min-width: 0; text-align: right; }
.me-affiliation > span { color: var(--ink-3); font-size: 12px; }
.me-affiliation .me-org { margin: 0; padding: 0; border: 0; background: none; font-size: 13px; overflow-wrap: anywhere; }
.monthly-workbench { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.my-training-summary-error { padding: 12px 0; color: var(--danger); border-bottom: 1px solid var(--line); font-size: 14px; }
.my-training-summary-error button { margin-left: 12px; color: var(--accent); }
.monthly-workbench > .me-hero { display: block; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
.me-page .monthly-workbench .me-hero-perf { display: grid; grid-template-columns: 80px minmax(200px, 1fr) auto; align-items: center; gap: 8px 20px; padding: 12px 16px; border-radius: 8px; text-align: left; }
.me-page .monthly-workbench .me-ring { grid-row: 1 / 3; width: 80px; height: 80px; justify-self: start; }
.me-page .monthly-workbench .me-ring-center strong { font-size: 26px; }
.me-page .monthly-workbench .me-ring-center em { font-size: 14px; }
.me-page .monthly-workbench .me-ring-center small { font-size: 11px; }
.me-page .monthly-workbench .me-hero-figures { display: block; min-width: 0; }
.me-page .monthly-workbench .me-hero-figures h2 { margin: 0; font-size: 18px; line-height: 28px; }
.me-page .monthly-workbench .me-hero-note { margin: 4px 0 0; font-size: 13px; line-height: 22px; font-weight: 400; }
.me-page .monthly-workbench .me-hero-chips { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; grid-column: 3; grid-row: 1; font-size: 13px; }
.me-hero-chips button { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 8px; border: 1px solid transparent; border-radius: 6px; color: inherit; font-size: 13px; }
.me-hero-chips button svg { width: 14px; height: 14px; margin-left: 4px; }
.me-hero-chips button:hover, .me-hero-chips [aria-pressed="true"] { background: var(--accent-soft); border-color: var(--line-strong); }
.me-hero-chips button:disabled { opacity: .55; cursor: default; }
.me-peer-comparison { grid-column: 2 / -1; align-self: start; }
.me-peer-comparison > summary { display: flex; align-items: center; gap: 8px; width: fit-content; cursor: pointer; color: var(--ink-2); font-size: 13px; }
.me-peer-comparison summary svg { width: 14px; height: 14px; }
.me-page .monthly-workbench .me-compare { max-width: 600px; margin-top: 12px; gap: 8px; }
.me-page[data-empty-assignments="true"] .me-hero { display: none; }
.me-page .assignment-period-controls { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 12px; border: 0; border-bottom: 1px solid var(--line); background: none; }
.assignment-month-field { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.assignment-month-field input { width: 160px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.assignment-month-switch { display: inline-flex; gap: 2px; }
.assignment-month-switch button { min-height: 40px; padding: 8px 10px; font-size: 13px; border-radius: 6px; }
.assignment-month-switch [aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.assignment-period-controls #assignmentPeriodSummary { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.binary-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; }
.binary-toggle::before { content: ""; width: 28px; height: 16px; border-radius: 8px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.binary-toggle::after { content: ""; position: absolute; left: 3px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); transform: translateY(-50%); }
.binary-toggle[aria-checked="true"]::before { background: var(--accent); box-shadow: none; }
.binary-toggle[aria-checked="true"]::after { left: 15px; background: var(--surface); }
.assignment-view-menu { position: relative; }
.assignment-period-controls :is(.assignment-calendar-disclosure, .assignment-view-menu) { flex: 0 0 40px; }
.assignment-period-controls :is(.assignment-calendar-disclosure, .assignment-view-menu) > summary { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); background: var(--surface); cursor: pointer; list-style: none; }
.assignment-period-controls summary::-webkit-details-marker { display: none; }
.assignment-period-controls summary > svg { width: 18px; height: 18px; }
.assignment-period-controls details[open] > summary { color: var(--accent); border-color: var(--accent); }
.assignment-calendar-disclosure[open] .assignment-calendar { position: absolute; z-index: 5; top: var(--calendar-top, calc(100% + 8px)); bottom: var(--calendar-bottom, auto); left: 0; width: min(520px, 100%); max-width: none; max-height: var(--calendar-max-height, 520px); min-height: 0; margin: 0; padding: 16px; overflow: auto; background: #123444; border: 1px solid #244c5d; border-radius: 8px; box-shadow: var(--shadow-card); }
.assignment-calendar-disclosure .assignment-calendar h3 { font-size: 18px; line-height: 26px; }
.assignment-calendar-disclosure .calendar-days > :is(button, span) { min-height: 48px; border-radius: 6px; }
.assignment-calendar-disclosure .calendar-days button { padding: 4px; gap: 2px; }
.assignment-calendar-disclosure .calendar-days b { font-size: 14px; }
.assignment-view-menu .assignment-view-switch { position: absolute; z-index: 5; top: 48px; right: 0; display: grid; width: 160px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow-card); }
.assignment-view-menu .assignment-view-switch button { min-height: 36px; padding: 6px 12px; text-align: left; }
.assignment-view-menu .assignment-view-switch [aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.me-page .assignment-stage-meter { display: flex; align-items: center; gap: 16px; margin: 0; padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
.me-page .assignment-state-labels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1; gap: 20px; margin: 0; color: var(--ink-2); font-size: 13px; }
.me-page .assignment-state-labels > span { display: flex; align-items: center; gap: 6px; padding-right: 20px; border-right: 1px solid var(--line); }
.me-page .assignment-state-labels > span:last-child { border: 0; }
.me-page .assignment-state-labels b { margin-left: auto; color: var(--ink); font-size: 24px; line-height: 32px; }
.me-page .assignment-state-labels [data-stage="3"] i { background: var(--ink-3); }
.assignment-overdue-summary { color: var(--danger); font-size: 13px; white-space: nowrap; }
.monthly-workbench > .me-card-list { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.me-page .me-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 40px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.me-page .me-card-head h2 { margin: 0; font-size: 18px; }
.monthly-workbench .assignment-board { display: flex; flex-direction: column; }
.monthly-workbench .assignment-list { width: 100%; }
.monthly-workbench .assignment-list:not(.is-stage-view) { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.me-page .assignment-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px; align-items: start; gap: 16px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.me-page .assignment-row .assignment-main { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 4px 12px; }
.me-page .assignment-row .assignment-labels { grid-column: 1; grid-row: 1; }
.me-page .assignment-row h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.me-page .assignment-row :is(.assignment-context, .assignment-metrics, .assignment-reference) { grid-column: 2; margin: 0; }
.me-page .assignment-row .assignment-context { gap: 4px 12px; color: var(--ink-2); font-size: 13px; }
.me-page .assignment-row .assignment-metrics { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.me-page .assignment-row .assignment-metrics > div { display: flex; align-items: baseline; gap: 6px; }
.me-page .assignment-row .assignment-metrics dt { margin: 0; color: var(--ink-3); font-size: 12px; }
.me-page .assignment-row .assignment-metrics dd { margin: 0; font-size: 14px; line-height: 22px; font-variant-numeric: tabular-nums; }
.me-page .assignment-row .assignment-footer { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 10px; margin: 0; padding: 0; border: 0; }
.assignment-reference > summary { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; color: var(--ink-2); font-size: 13px; cursor: pointer; list-style: none; }
.assignment-reference summary svg { width: 12px; height: 12px; }
.assignment-reference[open] summary svg { transform: rotate(90deg); }
.assignment-reference :is(p, dl) { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; overflow-wrap: anywhere; }
.assignment-reference dl > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px; margin: 4px 0; }
.assignment-reference dd { margin: 0; }
.assignment-reference dt { color: var(--ink-3); }
.me-page .assignment-list.is-stage-view { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 12px 0; }
.me-page .assignment-lane { padding: 0; border: 0; border-radius: 0; background: none; }
.me-page .assignment-lane .assignment-row { grid-template-columns: minmax(0, 1fr); }
.me-page .assignment-lane .assignment-row .assignment-footer { align-items: flex-start; }
.me-page #myAssignmentList .training-empty { min-height: 0; padding: 28px 16px; border: 0; border-radius: 0; background: none; }
.me-page[data-empty-assignments="true"] :is(.assignment-view-switch, #meFilterToggle, .assignment-calendar-disclosure) { display: none; }

/* Run history is a comparison list, not another card dashboard. */
.me-page .process-panel { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.process-panel .me-card-head { padding: 0 0 16px; }
.process-panel .report-controls { padding: 12px 0 16px; }
.process-organization-query { flex-basis: 100%; order: 1; border-top: 1px solid var(--line); }
.process-organization-query > summary { padding: 10px 0; cursor: pointer; color: var(--ink-2); font-size: 13px; }
.process-organization-query > div { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 8px; }
.process-column-head, .app-shell .process-list .process-run > summary { display: grid; grid-template-columns: 170px minmax(180px, 1fr) 112px 100px 100px; gap: 16px; align-items: center; }
.process-column-head { padding: 12px 16px; color: var(--ink-3); font-size: 12px; border-bottom: 1px solid var(--line); }
.process-column-head:not([data-organization-query="true"]) .process-person-column { display: none; }
.process-column-head[data-organization-query="true"], .app-shell .process-list[data-organization-query="true"] .process-run > summary { grid-template-columns: 170px 140px minmax(160px, 1fr) 112px 100px 100px; }
.app-shell .process-list .process-run { border-radius: 0; border-inline: 0; }
.app-shell .process-list .process-run > summary { min-height: 64px; padding: 12px 16px; }
.process-list .process-run > summary > :is(span, time) { min-width: 0; }
.process-list .process-run-date { color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.process-list .process-run-person { display: grid; gap: 4px; }
.process-list .process-run-person small, .process-list .process-run-result { color: var(--ink-2); font-size: 12px; }
.process-list .process-run > summary .status-chip { justify-self: start; white-space: nowrap; }
.process-list .process-run-title strong { line-height: 22px; overflow-wrap: anywhere; }
.process-list .process-expand { justify-content: flex-end; white-space: nowrap; }
.app-shell .process-list .process-run-body { padding: 16px 20px; }
.process-panel .process-stats { padding: 12px 0; gap: 24px; }
.process-panel .process-stats b { font-size: 18px; }
#processStats > span { padding: 12px 18px; }
#processStats b { margin-top: 6px; font-size: 24px; }
.process-panel .process-periods { padding-bottom: 12px; }
.process-summary, .me-support-disclosure { margin-top: 16px; border-top: 1px solid var(--line); }
.process-summary > summary, .me-support-disclosure > summary { padding: 12px 0; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.me-page .me-support { margin-top: 0; }

/* Accident library: query, selection and readable incident narrative. */
.app-shell .fault-library-page .case-workbench { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px 24px; align-items: start; }
.case-browser-tools { grid-column: 1 / -1; margin: 0; }
.case-extra-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.case-filter-status { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.case-filter-status #faultCaseResultCount { margin: 0; font-size: 13px; }
.case-filter-status .text-button { min-height: 40px; padding: 0; font-size: 13px; }
.case-browser { position: sticky; top: 76px; min-width: 0; }
.case-browser > header { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-bottom: 12px; }
.case-browser > header h2 { margin: 0; font-size: 18px; }
.case-browser > header > span { color: var(--ink-3); font-size: 13px; }
.app-shell .fault-library-page .case-index { position: static; max-height: calc(100dvh - 160px); min-height: 0; padding: 0; overflow: auto; border: 0; border-radius: 0; background: none; color: var(--ink); }
/* List row: title, then 변전소 · 설비 · 날짜, then the fault type chip (no number or arrow columns). */
.app-shell .fault-library-page .case-index > button { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; gap: 0; border-radius: 4px; color: var(--ink); border-bottom: 1px solid var(--line); }
.app-shell .fault-library-page .case-index > button > svg, .app-shell .fault-library-page .case-index-number { display: none; }
.app-shell .fault-library-page .case-index button b { margin: 0; font-size: 15px; font-weight: 650; line-height: 22px; }
.app-shell .fault-library-page .case-index small { margin-top: 3px; font-size: 12px; line-height: 18px; }
.case-index-type { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 4px; background: var(--surface-3); color: var(--ink-2); font-size: 11.5px; line-height: 18px; }
.app-shell .fault-library-page .case-index > button[aria-pressed="true"] .case-index-type { background: var(--surface); }
.app-shell .fault-library-page .case-index > button :is(small, em, .case-index-number) { color: var(--ink-2); }
.app-shell .fault-library-page .case-index > button[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.case-index-copy { min-width: 0; }
.case-index-preview { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; color: var(--ink-2); font-size: 13px; line-height: 20px; font-weight: 400; }
.app-shell .fault-library-page .case-dossier { --dossier-inset: 0px; min-width: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.app-shell .case-dossier > header { min-height: 40px; padding: 0 0 10px; }
.app-shell .case-dossier h3 { margin: 4px 0 14px; font-size: 24px; font-weight: 700; line-height: 34px; overflow-wrap: anywhere; }
/* One summary line under the case title: 변전소 · 대상 설비 · 고장 유형. */
.app-shell .case-dossier .fault-case-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 16px; padding: 0; border-block: 0; border-radius: 0; background: none; color: var(--ink); }
.app-shell .case-dossier .fault-case-facts > div { display: flex; align-items: baseline; gap: 8px; }
.app-shell .case-dossier .fault-case-facts dt { color: var(--ink-3); font-size: 12px; }
.app-shell .case-dossier .fault-case-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
/* 발생 상황 -> 고장 원인 -> 대응 기록 read as one document: section label, then body text in the ink colour. */
.case-overview { margin-top: 0; padding: 18px 0 2px; border-top: 1px solid var(--line); }
.case-overview h4 { color: var(--accent); font-size: 14px; line-height: 22px; }
.case-overview p { max-width: 72ch; margin: 6px 0 0; color: var(--ink); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.case-launch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.case-binding { min-width: 0; margin: 0; }
.case-binding dt { color: var(--ink-3); font-size: 12px; }
.case-binding dd { margin: 4px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }
.case-binding dd > strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.case-launch-row .case-binding { flex: 1 1 260px; }
.case-binding #caseScenarioStatus { display: block; margin-top: 4px; }
.case-reference-info > summary { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--ink-2); font-size: 12px; cursor: pointer; list-style: none; }
.case-reference-info summary svg { width: 12px; height: 12px; }
.case-reference-info[open] summary svg { transform: rotate(90deg); }
.case-reference-info > p { margin: 8px 0 0; font-size: 13px; }
.case-launch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.case-launch-actions button { min-height: 40px; }
/* 연결 시나리오가 없을 때 초록 버튼이 반투명으로 남아 눌릴 것처럼 보이지 않게 회색 비활성으로 표시합니다. */
.case-launch-actions .page-primary:disabled { opacity: 1; color: var(--ink-3); background: var(--surface-2); border: 1px dashed var(--line-strong); box-shadow: none; }
.case-launch-actions .page-primary:disabled svg { display: none; }

/* 훈련 현황: 개요·조직별 실적·실행 분석을 한 메뉴의 탭으로 묶습니다. */
.status-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 0; border-bottom: 1px solid var(--line); }
.status-tabs button { min-height: 40px; padding: 8px 16px; color: var(--ink-2); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.status-tabs button:hover { color: var(--ink); }
.status-tabs [aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 650; }
.status-tabs :focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.app-shell .home-page .home-heading:has(.status-tabs) { min-height: 0; padding-bottom: 0; border-bottom: 0; }

/* 연습: one menu, two tabs (시나리오 연습 | 자유 단선도 연습) under the title, same as 훈련 현황. */
.status-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; color: var(--ink-2); font-size: 14px; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.status-tabs a:hover { color: var(--ink); }
.app-shell .route-page :is(.training-catalog-header, .station-heading):has(.status-tabs) { align-items: flex-end; min-height: 0; padding-bottom: 0; border-bottom: 1px solid var(--line); }
.app-shell .route-page :is(.training-catalog-header, .station-heading) .status-tabs { border-bottom: 0; }
.app-shell .training-catalog-header .training-analysis-action { margin: 0 0 6px auto; }
.app-shell .training-history .training-catalog-counts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; color: var(--ink-2); font-size: 13px; }
.app-shell .station-page .station-shell { width: min(1600px, calc(100% - 48px)); margin-inline: 24px; padding-top: 28px; }
.station-start-row { display: flex; justify-content: flex-start; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

/* UX 2026-10-08: one notification entry in the sidebar; the empty page top bars are gone. */
.utility-pair .sidebar-notification { position: relative; }
.utility-pair .sidebar-notification .notification-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.inner-topbar .top-icon.notification { display: none; }
.app-shell .route-page > .page-container:first-child, .app-shell .route-page > .operations-shell:first-child { padding-top: 28px; }
.report-heading .heading-refresh { align-self: center; margin-left: 4px; }
.operations-hero-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.operations-hero-copy .heading-refresh { order: 2; }
.operations-kicker { display: none; }


/* 운영 화면: 사이드바가 묶음(과제 관리·검토·신고·계정·시스템)을 고르므로 현재 묶음의 탭만 보입니다. */
.operations-page[data-ops-section] .operations-tab-group[data-ops-group]:not(.is-current-section) { display: none; }
.operations-page[data-ops-section] .operations-tab-group + .operations-tab-group { padding-top: 0; border-top: 0; }
.operations-page[data-ops-section] .operations-tab-group-label { display: none; }
/* 같은 대기 건수를 머리 버튼·지표 카드로 반복하지 않습니다(탭 배지·사이드바 배지로 충분). */
.operations-page .operations-metrics, .operations-page [data-ops-main-action] { display: none; }
.ops-progress-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ops-progress-panel > header span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; }
.ops-progress-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 16px 0 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ops-progress-metrics article { min-width: 0; padding: 14px 18px; display: grid; gap: 2px; }
.ops-progress-metrics article + article { border-left: 1px solid var(--line); }
.ops-progress-metrics small { color: var(--ink-2); font-size: 13px; }
.ops-progress-metrics strong { font-size: 28px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ops-progress-metrics em { color: var(--ink-3); font-size: 12px; font-style: normal; }
.ops-progress-metrics article.has-overdue strong { color: var(--danger, #b42318); }
.ops-progress-panel > footer { display: flex; justify-content: flex-end; }
@media (max-width: 720px) {
  .ops-progress-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-progress-metrics article:nth-child(3) { border-left: 0; }
  .ops-progress-metrics article:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* The record source is a footnote under the narrative. */
.app-shell .case-dossier footer { padding-block: 12px 0; margin-top: 18px; border-top: 1px dashed var(--line); background: none; }
.app-shell .case-dossier footer small { max-width: none; color: var(--ink-3); font-size: 12px; }
.app-shell .case-dossier footer small > span { display: inline; margin: 0 6px 0 0; }

/* Discussion rows keep type, title and metadata together. */
.discussion-page-container .discussion-layout { display: block; max-width: 1240px; }
.app-shell .discussion-page-container .discussion-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; padding-bottom: 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.discussion-toolbar > .chip-filter { display: flex; width: fit-content; min-height: 40px; border: 0; padding: 0; background: none; }
.discussion-toolbar > .chip-filter button { min-height: 40px; padding: 8px 12px; }
.discussion-query-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.discussion-query-controls .list-search { flex: 1 1 200px; max-width: 320px; }
.discussion-status-filter { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.discussion-query-controls select { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; }
.discussion-query-controls .discussion-view-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-left: auto; }
.discussion-mine-filter { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13px; }
.discussion-display-options { position: relative; }
.discussion-display-options > summary { display: flex; align-items: center; justify-content: center; gap: 4px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; list-style: none; }
.discussion-display-options summary::-webkit-details-marker { display: none; }
.discussion-display-options summary svg { width: 16px; height: 16px; }
.discussion-display-options .discussion-view-switch { position: absolute; z-index: 3; right: 0; top: 46px; box-shadow: var(--shadow-card); }
.discussion-view-switch { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.discussion-view-switch button { min-height: 36px; padding: 6px 12px; color: var(--ink-2); border: 0; border-radius: 4px; background: none; }
.discussion-view-switch [aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); font-weight: 650; }
.discussion-result-count { margin: 12px 0; color: var(--ink-3); font-size: 13px; }
.discussion-result-count:empty { display: none; }
.discussion-title-link { padding: 0; text-align: left; color: inherit; font-size: inherit; line-height: inherit; font-weight: inherit; overflow-wrap: anywhere; }
.discussion-title-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.app-shell .discussion-page-container .discussion-feed:not(.is-card-view) { display: block; }
.app-shell .discussion-feed:not(.is-card-view) article { padding: 16px 0; min-height: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.app-shell .discussion-feed .feed-copy { min-width: 0; }
.app-shell .discussion-feed:not(.is-card-view) .feed-copy { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; gap: 6px 12px; }
.app-shell .discussion-feed:not(.is-card-view) .feed-copy > div:first-child { grid-column: 1; grid-row: 1; min-width: 0; }
.app-shell .discussion-feed:not(.is-card-view) .feed-copy > div:first-child .feed-source { display: none; }
.app-shell .discussion-feed:not(.is-card-view) .feed-copy > h2 { grid-column: 2; grid-row: 1; margin: 0; font-size: 16px; line-height: 24px; }
.app-shell .discussion-feed:not(.is-card-view) .feed-copy > p { grid-column: 2; margin: 0; color: var(--ink-2); font-size: 14px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-shell .discussion-feed:not(.is-card-view) .training-result-inline { grid-column: 2; margin: 0; padding: 0; border: 0; }
.app-shell .discussion-feed:not(.is-card-view) .feed-copy > footer { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px 16px; margin: 4px 0 0; padding: 0; border: 0; }
.app-shell .discussion-feed .article-author { margin-right: 0; }
.app-shell .discussion-feed:not(.is-card-view) .article-author .avatar-token { display: none; }
.discussion-feed:not(.is-card-view) .article-author > span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.app-shell .discussion-feed:not(.is-card-view) .vote-box { margin: 0; }
.app-shell .discussion-feed:not(.is-card-view) .vote-box button { width: auto; min-width: 40px; min-height: 28px; height: 28px; padding: 4px 8px; flex-direction: row; gap: 6px; background: none; }
.app-shell .discussion-feed.is-card-view { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.app-shell .discussion-feed.is-card-view article { min-width: 0; padding: 18px; border-radius: 8px; box-shadow: none; }
.discussion-aside { position: static; display: block; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.discussion-aside .discussion-queue { padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); }
.discussion-queue > summary { display: flex; align-items: center; justify-content: space-between; min-height: 40px; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.discussion-queue summary svg { width: 16px; height: 16px; }
.discussion-queue #discussionQueue { padding: 0; }
.discussion-queue #discussionQueue button { padding: 12px 0; color: var(--ink); border-top: 1px solid var(--line); }
.discussion-queue #discussionQueue button :is(small, span) { color: var(--ink-2); }

/* Article width is bounded without moving the page heading to a different axis. */
.app-shell .thread-container .thread-layout { display: block; max-width: 880px; }
.thread-container > .breadcrumb { display: none; }
.app-shell .thread-container .thread-question { padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.app-shell .thread-question h1 { margin: 0 0 12px; font-size: 28px; line-height: 36px; }
.app-shell .thread-question > div:last-child > .article-author { margin: 12px 0 20px; }
.app-shell .thread-question .thread-detail-footer { justify-content: flex-start; gap: 8px; }
.app-shell .thread-body { max-width: 72ch; font-size: 16px; line-height: 1.8; }
.app-shell .thread-body p { margin: 0 0 18px; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.app-shell .thread-body p:last-child { margin-bottom: 0; }
.server-thread-body { white-space: normal; }
.thread-question > div:last-child { min-width: 0; }
.app-shell .thread-question :is(.thread-intro, #threadIntro) { max-width: 72ch; line-height: 1.7; }
.thread-result-facts { margin-block: 12px 20px; }
.app-shell .answers-section .answer p { max-width: 76ch; line-height: 1.75; overflow-wrap: anywhere; }
.app-shell .thread-container .answers-section { padding: 20px 0; border: 0; border-radius: 0; background: none; }
.app-shell .thread-container .answers-section .answer { padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.app-shell .thread-container .reply-composer { margin: 0; padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.app-shell .thread-container .reply-composer > .article-author, .app-shell .thread-container .reply-composer footer small { display: none; }
.thread-aside { position: static; display: block; margin-top: 20px; }
.thread-aside > section, .thread-metadata > section { padding: 0; border: 0; border-radius: 0; background: none; }
.thread-metadata > summary { min-height: 40px; padding-block: 8px; color: var(--ink-2); cursor: pointer; font-size: 14px; }
.thread-metadata .card-label, .thread-metadata [data-action="reply-inline"] { display: none; }
.thread-aside dl { display: flex; flex-wrap: wrap; gap: 16px; }
.thread-aside dl > div { display: grid; gap: 6px; }

/* Reports retain a fixed selection inspector beside the organization table. */
.report-page:has([data-compliance-scope]) { display: flex; flex-direction: column; align-items: stretch; }
.report-page:has([data-compliance-scope]) .report-overview { display: contents; }
.report-page:has([data-compliance-scope]) .report-timeline { order: 1; }
.report-page:has([data-compliance-scope]) .report-method { order: 2; }
.app-shell .portal-page .report-heading .report-switch { margin: 0; padding: 0; border: 0; background: none; }
.report-heading .report-switch button { min-height: 40px; padding: 8px 12px; }
.app-shell .portal-page .report-controls { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: end; gap: 12px; margin: 0; padding: 0 0 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.app-shell .portal-page .report-controls > label { flex: 0 1 180px; min-width: 140px; }
.app-shell .portal-page .report-controls :is(input, select, .chip-filter) { height: 40px; min-height: 40px; }
.report-controls .chip-filter button { height: 34px; min-height: 34px; padding-block: 6px; }
.app-shell .portal-page .report-controls > button, .app-shell .portal-page .report-filter-actions > button { height: 40px; min-height: 40px; }
.app-shell .portal-page .report-filter-actions { margin-left: 0; }
.app-shell .portal-page .stat-row { margin: 0 0 12px; padding-block: 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.app-shell .portal-page .stat-row > div { display: flex; flex-direction: column; gap: 4px; min-height: 0; padding: 0 20px; background: none; }
.app-shell .portal-page .stat-row > div:first-child { padding-left: 0; }
.app-shell .portal-page .stat-row .report-key-metric { background: none; }
.app-shell .portal-page .report-key-metric :is(span, small) { color: var(--ink-2); }
.app-shell .portal-page .report-key-metric strong { color: var(--accent); }
.app-shell .portal-page .stat-row strong { margin: 0; font-size: 24px; line-height: 32px; }
.app-shell .portal-page .report-organizations { margin-top: 0; container-type: inline-size; }
.app-shell .portal-page .panel { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.app-shell .portal-page .panel > header { min-height: 44px; padding: 8px 0; background: none; }
.app-shell .portal-page .panel > header h2 { margin: 0; font-size: 18px; line-height: 28px; }
.app-shell .portal-page .report-series { min-height: 0; padding: 12px 0; }
.report-series-readout { min-height: 44px; margin-bottom: 14px; }
.app-shell .report-series-readout strong { font-size: 26px; line-height: 32px; }
.report-series-value { display: grid; justify-items: end; }
.report-series-value small { color: var(--ink-3); font-size: 12px; }
.report-page .report-period-track { height: 120px; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.report-page .report-period-axis { height: 120px; }
.report-page .report-periods { overflow-x: auto; padding-bottom: 4px; }
.report-page .report-periods button { flex: 1 0 54px; padding-inline: 4px; font-size: 12px; }
.report-page .report-periods button > span:last-child { overflow-wrap: anywhere; }
.app-shell .report-page :is(.report-series, .analytics-list, [data-analytics-members]) > .training-empty { display: flex; align-items: center; gap: 10px; min-height: 0; padding: 14px 0; border: 0; border-radius: 0; background: none; text-align: left; }
.app-shell .report-page .training-empty .training-empty-icon { width: 20px; height: 20px; margin: 0; }
.report-empty { margin: 0; color: var(--ink-2); font-size: 14px; }
.performance-table-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 0; }
.performance-table-view .report-table-scroll { max-height: 480px; overflow: auto; }
.app-shell .portal-page .report-data-table { width: 100%; min-width: 720px; table-layout: fixed; }
.app-shell .portal-page .report-data-table th:first-child { width: 20%; }
.app-shell .portal-page .report-data-table th:nth-last-child(2) { width: 16%; }
.app-shell .portal-page .report-data-table th:last-child { width: 12%; }
.app-shell .portal-page .report-data-table :is(th, td) { padding: 9px 10px; font-variant-numeric: tabular-nums; }
.app-shell .portal-page .report-data-table td { text-align: right; }
.app-shell .portal-page .report-data-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); white-space: normal; font-size: 12px; line-height: 20px; text-align: right; }
.app-shell .portal-page .report-data-table th:first-child { text-align: left; }
.app-shell .portal-page .report-data-table tbody th { font-size: 14px; line-height: 22px; }
.report-data-table th [data-performance-org] { padding: 3px 0; color: var(--accent); text-align: left; overflow-wrap: anywhere; }
.report-data-table th [data-performance-org] small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.report-data-table tr:has([aria-pressed="true"]) { background: var(--accent-soft); }
.performance-table-view .performance-dock { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; gap: 16px; min-width: 0; padding: 0; border: 0; }
.performance-table-view .performance-inspector { --accent: #b6ecd5; padding: 16px; border-radius: 8px; }
.performance-inspector-head h3 { margin: 4px 0 0; font-size: 20px; }
.performance-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.performance-summary strong { font-size: 24px; color: var(--accent); }
.performance-summary small { flex-basis: 100%; color: var(--ink-3); font-size: 13px; }
.report-data-table [data-performance-sort] { display: inline-flex; justify-content: flex-end; align-items: center; gap: 4px; width: 100%; min-height: 32px; color: inherit; font-size: inherit; line-height: 18px; text-align: right; }
.report-data-table [data-performance-sort] svg { flex: 0 0 12px; width: 12px; height: 12px; transform: rotate(90deg); }
.report-data-table th:is([aria-sort="ascending"], [aria-sort="descending"]) { color: var(--accent); }
.report-data-table th[aria-sort="none"] svg { opacity: .35; }
.report-data-table th[aria-sort="ascending"] svg { transform: rotate(-90deg); }
.process-recorded-result, .process-timeline { min-width: 0; }
.process-result-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.process-result-facts dt { color: var(--ink-3); font-size: 12px; }
.process-result-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.process-run-actions { display: flex; justify-content: flex-start; margin-top: 12px; }
.process-timeline { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.performance-table-view .performance-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.performance-facts > div { padding: 0; border: 0; }
.performance-facts dd { font-size: 16px; }
.performance-facts:empty { display: none; }
.performance-table-view .performance-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.performance-table-view .performance-comparison { padding: 16px; border-radius: 6px; gap: 16px; }
.performance-inspector-rate strong { font-size: 24px; }
@container (min-width: 1100px) {
  .performance-table-view { grid-template-columns: minmax(0, 1fr) 280px; }
}
@container (max-width: 1099px) {
  .performance-table-view .performance-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .performance-dock .performance-compare-control, .performance-dock .performance-comparison { grid-column: 2; }
  .performance-dock .performance-inspector { grid-row: span 2; }
}
.app-shell .analytics-page .report-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.analytics-metric-group { padding-top: 16px; }
.analytics-metric-group > h2 { margin: 0 0 8px; font-size: 18px; line-height: 28px; }
.app-shell .analytics-page [aria-labelledby="analyticsExecutionTitle"] { grid-column: span 3; }
.app-shell .analytics-page [aria-labelledby="analyticsAssignmentTitle"] { grid-column: span 1; }
.app-shell .analytics-page .report-overview > .panel { grid-column: span 2; }
.app-shell .analytics-page .analytics-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.app-shell .analytics-page .analytics-metric-group .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding-block: 12px; }
.app-shell .analytics-page [aria-labelledby="analyticsAssignmentTitle"] .stat-row { grid-template-columns: minmax(0, 1fr); }
.analytics-row-meta { font-size: 12px; }

/* Account, notifications and composition reuse the portal type scale. */
#profileDrawer > header { position: absolute; top: 16px; right: 16px; left: auto; width: auto; padding: 0; }
.profile-hero :is(.online-pill, .drawer-actions) { display: none; }
.profile-drawer .profile-hero { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 4px 16px; padding: 24px 56px 20px 24px; text-align: left; }
.profile-drawer .profile-hero .member-avatar-xl { grid-row: span 2; width: 48px; height: 48px; margin: 0; font-size: 16px; }
.profile-drawer .profile-hero h2 { margin: 0; min-width: 0; font-size: 20px; line-height: 28px; overflow-wrap: anywhere; }
.profile-drawer .profile-hero p { margin: 0; color: var(--ink-2); font-size: 13px; }
.profile-identity { display: grid; gap: 8px; margin: 0; padding: 0 24px 20px; }
.profile-identity > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; font-size: 13px; }
.profile-identity dt { color: var(--ink-3); }
.profile-identity dd { margin: 0; overflow-wrap: anywhere; }
.profile-drawer-body { padding-top: 12px; }
.profile-drawer-body section { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.profile-drawer-body > section > .text-button { justify-content: flex-start; width: 100%; min-height: 40px; padding-inline: 0; }
.profile-drawer .account-session { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.profile-drawer .account-session > div:first-child { display: block; padding-block: 16px; }
.profile-drawer .account-session > div:first-child p { display: grid; gap: 4px; margin: 8px 0 0; }
.profile-drawer #sessionExpiry { color: var(--ink-3); font-size: 12px; }
.profile-drawer .account-session :is(.card-label, #sessionRole) { display: none; }
.profile-drawer .account-session-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; width: 100%; }
.profile-drawer .account-session-actions > button { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 40px; margin: 0; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; text-align: left; font-size: 14px; }
.profile-drawer .account-session-actions > button:hover { color: var(--accent); background: var(--accent-soft); }
.profile-drawer #logoutButton { color: var(--danger); }
.floating-panel { top: 16px; bottom: auto; max-height: calc(100dvh - 32px); height: auto; overflow-y: auto; border-radius: 8px; }
.floating-panel .notification-list { min-height: 100px; max-height: 480px; overflow: auto; }
.floating-panel .notification-list button { padding: 12px 18px; border-bottom: 1px solid var(--line); }
.floating-panel .notification-list button[data-read="false"] { background: var(--accent-soft); }
.floating-panel .notification-list button > span { min-width: 0; }
.floating-panel .notification-list strong { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.floating-panel .notification-list small { font-size: 13px; line-height: 1.5; }
.floating-panel .notification-meta { display: flex; gap: 12px; margin-top: 4px; color: var(--ink-3); font-size: 12px; }
.floating-panel .notification-meta small { font-size: inherit; }
.floating-panel .notification-target { display: block; margin-top: 6px; color: var(--accent); font-size: 12px; }
.floating-panel .notification-meta { justify-content: space-between; }
#postModal .modal-panel { width: min(680px, calc(100% - 48px)); max-width: 680px; border-radius: 8px; }
#postModal .modal-panel h2 { font-size: 20px; line-height: 28px; }
.modal #postForm { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 16px; }
.modal #postForm > label { margin: 0; font-size: 13px; }
.modal .modal-panel :is(input, select) { min-height: 40px; }
#postModal .modal-panel textarea { min-height: 200px; font-size: 14px; line-height: 24px; resize: vertical; }
.modal #postForm > :not(.compose-title):not(.compose-kind) { grid-column: 1 / -1; }
.modal .modal-actions { justify-content: flex-end; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
#postModal .modal-actions { position: sticky; bottom: -24px; padding-bottom: 16px; margin-bottom: -16px; background: var(--surface); z-index: 1; }
.modal .modal-actions button { min-height: 40px; }
#postModal .review-toggle { padding: 12px; border-radius: 6px; background: var(--surface-2); }
#postModal .review-toggle small { font-size: 12px; line-height: 18px; }
#postModal .compose-kind { min-width: 0; max-width: 200px; }
.compose-publication > summary { display: flex; align-items: center; justify-content: space-between; min-height: 36px; cursor: pointer; color: var(--ink-2); font-size: 13px; list-style: none; }
.compose-publication summary::-webkit-details-marker { display: none; }
.compose-publication summary svg { width: 14px; height: 14px; }
.compose-publication[open] summary svg { transform: rotate(90deg); }
.compose-publication .review-toggle { margin: 8px 0 0; }
#postModal input[aria-invalid="true"], #postModal textarea[aria-invalid="true"] { border-color: var(--danger); }
#postModal #postFormError { margin: -8px 0 0; }
#localSignInDialog { width: min(440px, calc(100% - 48px)); border-radius: 8px; }
#localSignInForm { gap: 16px; }
#localSignInForm .ops-dialog-confirm { justify-self: end; min-width: 112px; min-height: 40px; }

/* Existing non-portal simulator/editor rules are retained within their boundary. */
.app-shell .inner-page:not(.portal-page):not(.training-workspace-page) > .inner-topbar { height: 60px; min-height: 60px; padding-block: 8px; flex-wrap: nowrap; }
.app-shell .inner-page:not(.portal-page):not(.training-workspace-page) > :is(.page-container, .operations-shell) { width: min(1840px, calc(100% - 48px)); padding-top: 16px; }
.app-shell .inner-page:not(.portal-page) :is(h2, h3) { line-height: 1.5; }
.app-shell .inner-page:not(.portal-page) :is(p, input, select, textarea, td, dd) { font-size: 14px; }
.app-shell .inner-page:not(.portal-page) :is(button, input, select, textarea) { font-family: inherit; }
.app-shell .inner-page:not(.portal-page) :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.query-basis { margin: 12px 0; color: var(--ink-3); }
.query-basis summary, .station-identifier summary { cursor: pointer; }
.query-basis .process-note { margin: 8px 0 0; }
.station-catalog-details h3 { white-space: normal; overflow-wrap: anywhere; }
.station-voltage { display: inline-block; white-space: nowrap; }
.app-shell .station-shell { width: min(1840px, calc(100% - 48px)); padding-top: 24px; }
.app-shell .station-heading { min-height: 61px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.app-shell .station-heading h1 { font-size: 28px; line-height: 36px; font-weight: 650; }
.app-shell .station-toolbar { align-items: flex-end; gap: 12px; }
.app-shell .station-toolbar label { display: grid; align-items: stretch; gap: 6px; flex: 1 1 360px; min-width: 0; max-width: 680px; }
.app-shell .station-toolbar label > span { white-space: nowrap; }
.app-shell .station-toolbar select { width: 100%; max-width: none; height: 44px; font-size: 14px; }
.app-shell .station-toolbar > button { height: 44px; min-height: 44px; flex-shrink: 0; }
.app-shell .station-start-row #stationStartPractice { margin-left: 0; min-height: 44px; padding: 10px 18px; font-size: 14px; }
.app-shell .station-catalog-details { padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.app-shell .station-catalog-details h3 { margin: 0 0 16px; font-size: 18px; line-height: 26px; }
.station-origin { display: flex; flex-wrap: wrap; gap: 18px 32px; margin: 0; }
.station-origin > div, .station-configuration > div { min-width: 0; }
.station-equipment-table { width: 100%; margin-top: 20px; border-collapse: collapse; color: var(--ink); font-size: 14px; }
.station-equipment-table :is(th, td) { padding: 12px 0; text-align: left; border-top: 1px solid var(--line); line-height: 24px; }
.station-equipment-table th { width: 112px; font-weight: 500; color: var(--ink-2); }
.station-equipment-count { display: inline-block; white-space: nowrap; }
.app-shell .station-catalog-details dd { font-size: 16px; line-height: 24px; }
.station-identifier { margin-top: 20px; color: var(--ink-2); }
.station-configuration { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
#diagnosisForm { border: 0; border-radius: 0; padding: 0 0 16px; background: none; border-bottom: 1px solid var(--line); }
#diagnosisForm > label { flex: 1; }
.diagnosis-options { flex-basis: 100%; order: 1; font-size: 14px; color: var(--ink-2); }
.diagnosis-options > summary { padding-block: 10px; cursor: pointer; }
.diagnosis-options label { max-width: 260px; }
.training-workspace-page .run-progress b { display: none; }
/* Simulator workspace: one header row (back, title, steps, status, 3D menu, actions). */
.app-shell .training-workspace-page > .inner-topbar { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 6px 16px; flex-wrap: nowrap; border-bottom: 1px solid var(--line); }
.app-shell .training-workspace-page .training-topbar-copy { flex: 0 1 auto; min-width: 140px; max-width: 34%; display: grid; }
.app-shell .training-workspace-page .training-topbar-copy h1 { margin: 0; overflow: hidden; color: var(--ink); font-size: 18px; font-weight: 700; line-height: 26px; text-overflow: ellipsis; white-space: nowrap; }
.app-shell .training-workspace-page > .inner-topbar .run-progress { display: flex; flex: 0 0 auto; gap: 10px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.app-shell .training-workspace-page > .inner-topbar .run-progress li { min-height: 30px; padding: 4px 0; gap: 6px; border: 0; background: none; color: var(--ink-3); }
.app-shell .training-workspace-page > .inner-topbar .run-progress li + li::before { content: "/"; margin-right: 4px; color: var(--line-strong); }
.app-shell .training-workspace-page > .inner-topbar .run-progress strong { font-size: 12px; font-weight: 600; }
.app-shell .training-workspace-page > .inner-topbar .run-progress li[aria-current="step"] { color: var(--accent); box-shadow: inset 0 -2px var(--accent); }
.app-shell .training-workspace-page > .inner-topbar .run-progress li.is-complete:not([aria-current]) { color: var(--accent); }
.app-shell .training-workspace-page > .inner-topbar .training-workspace-heading { display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; background: none; }
.app-shell .training-workspace-page > .inner-topbar #trainingWorkspaceHint { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; margin: 0; color: var(--ink-2); font-size: 12px; line-height: 17px; }
.app-shell .training-workspace-page > .inner-topbar .inner-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.training-view-menu { position: relative; }
.training-view-menu[hidden] { display: none; }
.training-view-menu > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-2); font-size: 13px; cursor: pointer; list-style: none; }
.training-view-menu > summary::-webkit-details-marker { display: none; }
.training-view-menu > summary svg { width: 16px; height: 16px; }
.training-view-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; display: grid; min-width: 160px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 24px #0b1c2614; }
.training-view-menu-list button { justify-content: flex-start; min-height: 36px; border: 0; }
/* Event window opened inside the page when the popup is blocked: a side panel, the simulator stays usable. */
.recovery-panel-dialog { position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(760px, 62vw); height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line-strong); background: var(--surface); box-shadow: -12px 0 32px #0b1c2624; }
.recovery-panel-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.recovery-panel-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.recovery-panel-dialog h2 { margin: 0; font-size: 15px; }
.recovery-panel-dialog header p { margin: 2px 0 0; color: var(--ink-3); font-size: 12px; }
.recovery-panel-dialog iframe { width: 100%; height: 100%; border: 0; background: #0d1014; }
.training-workspace-page .training-topbar-copy small { max-width: 48ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Authentication gate does not disclose technical diagnostics by default. */
.auth-gate .auth-film { display: block; width: min(560px, 100%); margin: auto; }
.auth-gate .auth-headline { font-size: 28px; line-height: 1.4; letter-spacing: 0; }
.auth-gate .auth-sub { margin-top: 12px; font-size: 14px; }
.auth-connection-details { margin-top: 20px; text-align: left; }
.auth-connection-details > summary { cursor: pointer; font-size: 13px; color: #b8cbd2; padding-block: 12px; }
.auth-blocked-actions .auth-sign-in, .auth-blocked-actions .auth-sso-link { order: -1; min-height: 44px; padding: 10px 18px; color: #102b3b; background: var(--accent); border-radius: 6px; }
.auth-blocked-actions .auth-retry { background: none; color: #d8e8e9; }

@media (max-width: 1400px) {
  .app-shell .training-library-workbench { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .app-shell .training-library-workbench .training-history { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 1280px) {
  .app-shell .analytics-page .report-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-shell .analytics-page .report-controls > label { min-width: 0; }
  .app-shell .analytics-page .report-filter-actions { align-self: end; }
}
@media (max-width: 1180px) {
  .app-shell .fault-library-page .case-workbench { grid-template-columns: 280px minmax(0, 1fr); gap: 16px; }
  .process-column-head, .app-shell .process-list .process-run > summary { grid-template-columns: 146px minmax(130px, 1fr) 100px 76px 80px; gap: 10px; }
  .process-column-head[data-organization-query="true"], .app-shell .process-list[data-organization-query="true"] .process-run > summary { grid-template-columns: 126px 110px minmax(120px, 1fr) 90px 76px 72px; gap: 8px; }
  .app-shell .analytics-page .report-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .analytics-page [aria-labelledby="analyticsExecutionTitle"], .app-shell .analytics-page [aria-labelledby="analyticsAssignmentTitle"] { grid-column: span 2; }
  .app-shell .analytics-page .report-overview > .panel { grid-column: span 1; }
}
@media (max-width: 1000px) {
  .app-shell .training-library-workbench { grid-template-columns: minmax(0, 1fr); }
  .app-shell .training-library-workbench .training-history { padding-left: 0; border-left: 0; }
  .discussion-query-controls { flex-basis: 100%; }
  .me-page .monthly-workbench .me-hero-perf { grid-template-columns: 80px minmax(0, 1fr); }
  .me-page .monthly-workbench .me-hero-chips { grid-column: 2; grid-row: auto; }
}
@media (max-width: 900px) {
  .app-shell .fault-library-page .case-workbench { grid-template-columns: minmax(0, 1fr); }
  .case-browser { position: static; }
  .app-shell .fault-library-page .case-index { max-height: 280px; }
}

/* Title hierarchy (2026-10-08): the page title is the heaviest text on every page,
   then card/detail titles, then section headings. Kept last so it wins over older page rules. */
.app-shell .route-page :is(.page-heading, .report-heading, .home-heading, .station-heading, .me-intro, .training-catalog-header, .operations-hero-copy) h1 { font-weight: 750; }
.app-shell .route-page :is(.panel, .ops-panel, .case-dossier, .fault-case-card) h2 { font-weight: 650; }
.app-shell .route-page :is(.case-overview, .ops-panel, .panel) h4 { font-weight: 600; }
