/* Portal design pass (2026-10-08). Loaded after workspace-ui.css; removing this file's <link> restores the
   previous look. 1 layout fixes · 2 depth and motion shared by portal pages · 3 홈. */

/* ── 1. Layout fixes ─────────────────────────────────────────────────────── */
/* The page scrollbar followed the dark sign-in scheme and showed as a dark band on light pages. */
html:has(body.authenticated):not(.soft-dark) { color-scheme: light; background: #f2f5f7; }
/* Route changes move focus to the page title for screen readers; no box is drawn around it. */
.app-shell .route-page h1[tabindex="-1"]:focus { outline: none; }
/* The closed notification panel waits just off screen; its shadow must not tint the right edge. */
.floating-panel:not(.open) { box-shadow: none; }
/* Same space on both sides of the reading column (32px), centred when the window is wider. */
.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% - 64px)); margin-inline: auto; }
.app-shell .station-page .station-shell { width: min(1600px, calc(100% - 64px)); margin-inline: auto; }
/* Page content starts level with the top of the side menu (16px). */
.app-shell .route-page > :is(.page-container, .operations-shell):first-child,
.app-shell .station-page .station-shell { padding-top: 16px; }

/* ── 2. Depth and motion ─────────────────────────────────────────────────── */
.app-shell {
  --ds-shadow-1: 0 1px 2px rgba(19, 44, 59, .04), 0 6px 18px rgba(19, 44, 59, .05);
  --ds-shadow-2: 0 2px 4px rgba(19, 44, 59, .06), 0 14px 30px rgba(19, 44, 59, .10);
  --ds-ease: cubic-bezier(.2, .7, .2, 1);
  --ds-radius: 14px;
}
html.soft-dark .app-shell {
  --ds-shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .25);
  --ds-shadow-2: 0 2px 4px rgba(0, 0, 0, .4), 0 14px 30px rgba(0, 0, 0, .35);
}
.app-shell .route-page.is-active > :is(.page-container, .operations-shell) { animation: dsPageIn .2s ease-out both; }
@keyframes dsPageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dsRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dsShimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

.app-shell :is(.portal-page, .home-page) :is(.dash-block, .dash-kpi, .dash-tile, .training-scenario-card) {
  border: 1px solid var(--line); border-radius: var(--ds-radius); background: var(--surface); box-shadow: var(--ds-shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.app-shell :is(.portal-page, .home-page) :is(.dash-kpi, .dash-tile, .training-scenario-card):hover {
  transform: translateY(-2px); border-color: var(--accent-line); box-shadow: var(--ds-shadow-2);
}
.app-shell .portal-page :is(.page-primary, .ghost-action, .primary-button, .secondary-button, .dash-cta, .dash-tile) {
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.app-shell .portal-page :is(.page-primary, .dash-cta):hover { box-shadow: 0 6px 16px rgba(13, 77, 74, .22); }
.app-shell .portal-page :is(.page-primary, .ghost-action, .primary-button, .secondary-button, .dash-cta, .dash-tile):active { transform: scale(.97); }

/* Loading placeholder shaped like the content it replaces. */
.ds-skeleton {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 40%, var(--surface-3) 80%);
  background-size: 300% 100%; animation: dsShimmer 1.4s ease-in-out infinite;
}

/* ── 3. 홈 ──────────────────────────────────────────────────────────────── */
.app-shell .dashboard-page .page-container { display: grid; gap: 20px; }

.dash-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 32px 36px;
  border-radius: 20px; background: #0d4d4a; color: #ffffff; box-shadow: 0 12px 32px rgba(13, 77, 74, .22);
  animation: dsRise .45s var(--ds-ease) both;
}
.dash-hero[data-role="manager"] { background: #132c3b; box-shadow: 0 12px 32px rgba(19, 44, 59, .22); }
.dash-hero-main { flex: 999 1 420px; min-width: 0; display: grid; gap: 16px; }
.dash-hero-date { margin: 0; color: #a9dccd; font-size: 13px; font-weight: 600; }
.dash-hero[data-role="manager"] .dash-hero-date { color: #8fb0bd; }
.app-shell .dashboard-page .dash-hero h1 { margin: 0; color: #ffffff; font-size: 30px; font-weight: 800; line-height: 1.3; }
.dash-hero-body { display: grid; gap: 12px; }
.dash-hero-task, .dash-hero-item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: #ffffff; text-align: left;
}
.dash-hero-item { flex-wrap: nowrap; width: 100%; padding: 13px 16px; border-radius: 12px; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.dash-hero-item:hover { background: rgba(255, 255, 255, .14); }
.dash-hero-item > svg { width: 18px; height: 18px; flex: 0 0 18px; color: #7fd8c0; }
.dash-hero-copy { flex: 1 1 220px; min-width: 0; display: grid; gap: 4px; }
.dash-hero-copy b { font-size: 16px; font-weight: 750; }
.dash-hero-copy small { color: #cfe8e1; font-size: 13px; }
.dash-hero[data-role="manager"] .dash-hero-copy small { color: #a9c2cc; }
.dash-chip { flex: 0 0 auto; min-width: 44px; padding: 6px 10px; border-radius: 8px; background: #f2b84b; color: #3b2600; font-size: 13px; font-weight: 800; text-align: center; }
.dash-chip.is-late { background: #f6c3cc; color: #5c0f1e; }
.dash-chip.is-calm { background: rgba(255, 255, 255, .16); color: #ffffff; }
.dash-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px;
  background: #e5f3ef; color: #0d4d4a; font-size: 15px; font-weight: 800; cursor: pointer;
}
.dash-cta > svg { width: 16px; height: 16px; }
.dash-hero-continue { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: #cfe8e1; font-size: 14px; }
.dash-hero-continue > svg { width: 16px; height: 16px; }
.dash-hero-continue button { padding: 0; color: #ffffff; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.dash-hero-side { flex: 1 1 180px; display: grid; justify-items: center; gap: 10px; }
.dash-ring { position: relative; width: 148px; height: 148px; }
.dash-ring svg { width: 148px; height: 148px; transform: rotate(-90deg); }
.dash-ring circle { fill: none; stroke-width: 10; }
.dash-ring .track { stroke: rgba(255, 255, 255, .14); }
.dash-ring .value { stroke: #7fd8c0; stroke-linecap: round; animation: dsRing 1.1s var(--ds-ease) .2s both; }
@keyframes dsRing { from { stroke-dasharray: 0 340; } }
.dash-ring > span { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; }
.dash-ring strong { font-size: 32px; font-weight: 800; line-height: 1.1; }
.dash-ring small { color: #cfe8e1; font-size: 12px; }
.dash-ring-label { margin: 0; color: #cfe8e1; font-size: 13px; font-weight: 600; text-align: center; }
.dash-hero .ds-skeleton { background: linear-gradient(90deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.22) 40%, rgba(255,255,255,.10) 80%); background-size: 300% 100%; }

.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.dash-kpi { display: grid; gap: 10px; align-content: start; padding: 20px 22px; animation: dsRise .45s var(--ds-ease) both; }
.dash-kpi:nth-child(2) { animation-delay: .05s; } .dash-kpi:nth-child(3) { animation-delay: .1s; } .dash-kpi:nth-child(4) { animation-delay: .15s; }
.dash-kpi-label { color: var(--ink-2); font-size: 13px; font-weight: 650; }
.dash-kpi-value { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 40px; }
.dash-kpi-value strong { font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-kpi small { color: var(--ink-3); font-size: 12px; }
.dash-spark { width: 86px; height: 32px; flex: 0 0 86px; }
.dash-spark polyline { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 240; animation: dsSpark 1.2s ease-out .3s both; }
@keyframes dsSpark { from { stroke-dashoffset: 240; } to { stroke-dashoffset: 0; } }
.dash-kpi.is-loading .ds-skeleton:nth-child(2) { height: 30px; width: 55%; }

/* Rows fill the width: a full-width 과제 진행 kept empty grid tracks open and left the last row ragged. */
.app-shell .dashboard-page .dashboard-grid { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }
.app-shell .dashboard-page .dashboard-grid > * { flex: 1 1 380px; min-width: 0; }
.app-shell .dashboard-page .dash-block { gap: 6px; padding: 22px 24px; animation: dsRise .45s var(--ds-ease) .1s both; }
.app-shell .dashboard-page .dash-block h2 { font-size: 18px; font-weight: 800; }
.app-shell .dashboard-page .dash-block > header { margin-bottom: 6px; }
.app-shell .dashboard-page .dashboard-grid > #dashProgress { flex-basis: 100%; }
/* 관리자: 과제 진행 first, then the smaller blocks side by side. */
.app-shell .dashboard-page:has(.dash-hero[data-role="manager"]) #dashProgress { order: -1; }
/* 이어할 훈련 is shown inside the banner on 홈; the run list stays in 내 훈련 기록. */
.app-shell .dashboard-page #myActiveRunsSection { display: none !important; }
.app-shell .dashboard-page .dash-row { min-height: 56px; padding: 10px 10px; border-top: 0; border-radius: 12px; transition: background-color .15s ease; }
.app-shell .dashboard-page .dash-row:hover { background: var(--surface-2); }
.app-shell .dashboard-page .dash-row:hover b { color: inherit; }
.app-shell .dashboard-page .dash-row-main b { font-size: 15px; font-weight: 700; }
.dash-date { flex: 0 0 64px; white-space: nowrap; display: grid; justify-items: center; gap: 2px; padding-right: 14px; border-right: 2px solid var(--line); }
.dash-date b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dash-date small { color: var(--ink-3); font-size: 11px; }
.app-shell .dashboard-page .dash-badge { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.dash-verdict { flex: 0 0 56px; padding: 5px 0; border-radius: 8px; font-size: 12px; font-weight: 800; text-align: center; background: var(--surface-3); color: var(--ink-2); }
.dash-verdict.pass { background: #e7f6f1; color: #0a5c48; }
.dash-verdict.fail { background: #fdeff2; color: #a3243c; }
html.soft-dark .dash-verdict.pass { background: #12392f; color: #9fe3c9; }
html.soft-dark .dash-verdict.fail { background: #3d1a22; color: #f5b3c0; }
.app-shell .dashboard-page .dash-bar { display: flex; height: 10px; margin-top: 8px; border-radius: 5px; }
.app-shell .dashboard-page .dash-bar > i { transform-origin: left center; animation: dsGrow .9s var(--ds-ease) .25s both; }
.app-shell .dashboard-page .dash-bar > i.is-doing { background: #7fc4b4; }
@keyframes dsGrow { from { transform: scaleX(0); } }
.dash-legend { display: flex; flex-wrap: wrap; gap: 12px; color: var(--ink-2); font-size: 12px; }
.dash-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; background: var(--accent); }
.dash-legend i.is-doing { background: #7fc4b4; }
.dash-legend i.is-waiting { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-strong); }

.dash-start { display: grid; gap: 12px; }
.app-shell .dashboard-page .dash-start h2 { margin: 4px 0 0; font-size: 18px; font-weight: 800; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.dash-tile { display: flex; align-items: center; gap: 16px; padding: 20px 22px; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.dash-tile-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.dash-tile-icon svg { width: 22px; height: 22px; }
.dash-tile-copy { flex: 1 1 auto; display: grid; gap: 4px; min-width: 0; }
.dash-tile-copy b { font-size: 16px; font-weight: 750; }
.dash-tile-copy small { color: var(--ink-3); font-size: 13px; }
.dash-tile > svg { width: 18px; height: 18px; color: var(--accent); }

/* ── 4. 훈련 분석 · 내 성적 (insights.js) ──────────────────────────────────── */
.insights { display: grid; gap: 20px; margin: 0 0 24px; }
.insights:empty { display: none; }
.insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.app-shell .portal-page .insights .dash-block { display: grid; align-content: start; gap: 12px; padding: 22px 24px; animation: dsRise .45s var(--ds-ease) .1s both; }
.app-shell .portal-page .insights .dash-block h2 { margin: 0; font-size: 17px; font-weight: 800; }
.app-shell .portal-page .insights .dash-block > header span { color: var(--ink-3); font-size: 12px; }
.records-insights { display: grid; gap: 14px; }
.app-shell .portal-page .records-insights > h2 { margin: 4px 0 0; font-size: 18px; font-weight: 800; }
.records-insights h2 small { margin-left: 6px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
/* 훈련 분석: the new figures replace the older execution counters and the started-run timeline; the organisation
   comparison and per-person lists below stay. Hidden only once the new block has rendered. */
.analytics-page:has([data-analytics-insights] :is(.insight-grid, .insight-empty)) :is(.report-overview, .panel:has([data-analytics-faults])) { display: none; }
.insight-note { margin: 0; color: var(--ink-3); font-size: 12px; }
.insight-chart { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 6px; }
.insight-axis { display: flex; flex-direction: column; justify-content: space-between; height: 200px; color: var(--ink-3); font-size: 11px; }
.insight-plot { position: relative; height: 200px; border-bottom: 1px solid var(--line-strong); }
.insight-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.insight-plot line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.insight-plot polygon { fill: var(--accent-soft); stroke: none; opacity: .8; }
.insight-plot polyline { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.insight-points { position: absolute; inset: 0; display: grid; }
.insight-points > span { position: relative; }
.insight-points i { position: absolute; left: 50%; top: var(--y); width: 12px; height: 12px; border: 3px solid var(--accent); border-radius: 50%; background: var(--surface); transform: translate(-50%, -50%); box-sizing: border-box; }
.insight-points b { position: absolute; left: 50%; top: calc(var(--y) - 30px); transform: translateX(-50%); font-size: 12px; font-weight: 800; }
.insight-labels { display: grid; margin-left: 44px; color: var(--ink-3); font-size: 11px; text-align: center; }
.insight-bars { display: grid; gap: 12px; align-items: end; height: 210px; border-bottom: 1px solid var(--line-strong); }
.insight-bars > div { display: grid; justify-items: center; align-content: end; gap: 6px; height: 100%; }
.insight-bars b { font-size: 12px; font-weight: 800; }
.insight-bars small { color: var(--ink-3); font-size: 11px; }
.insight-stack { display: flex; flex-direction: column; justify-content: flex-end; width: min(44px, 70%); height: 150px; border-radius: 8px 8px 0 0; overflow: hidden; transform-origin: center bottom; animation: dsGrowY .9s var(--ds-ease) .2s both; }
.insight-stack i { display: block; background: var(--accent); }
.insight-stack i.is-free { background: #9fd3c5; }
@keyframes dsGrowY { from { transform: scaleY(0); } }
.insight-track { display: block; height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.insight-track i { display: block; height: 100%; border-radius: 5px; background: var(--accent); transform-origin: left center; animation: dsGrow .9s var(--ds-ease) .25s both; }
.insight-kind { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) 130px; align-items: center; gap: 12px; font-size: 13px; }
.insight-kind > span:first-child { font-weight: 700; }
.insight-kind small { color: var(--ink-3); text-align: right; }
.insight-kind small b { color: var(--ink); font-size: 14px; }
.insight-kind.is-low .insight-track i { background: #e0a43a; }
.insight-miss { display: grid; grid-template-columns: 34px minmax(0, 1fr) 52px; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; }
.insight-miss:hover { background: var(--surface-2); }
.insight-rank { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--danger-soft, #fdeff2); color: #a3243c; font-size: 13px; font-weight: 800; }
.insight-miss-main { display: grid; gap: 6px; min-width: 0; }
.insight-miss-main b { font-size: 14px; }
.insight-miss-main small { color: var(--ink-3); font-size: 12px; }
.insight-track.is-miss { height: 6px; background: #f6d3da; }
.insight-track.is-miss i { background: var(--danger); }
.insight-miss > strong { font-size: 15px; text-align: right; }
.insight-recent { display: grid; gap: 10px; }
.insight-recent > span { color: var(--ink-2); font-size: 12px; font-weight: 700; }
.insight-strip { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.insight-strip i { height: 28px; border-radius: 6px; animation: dsRise .4s var(--ds-ease) both; }
.insight-strip i.is-pass { background: var(--accent); }
.insight-strip i.is-fail { border: 2px solid var(--danger); background: var(--surface); box-sizing: border-box; }
.dash-legend i.is-fail-key { border: 2px solid var(--danger); background: transparent; box-sizing: border-box; }

/* ── 5. 과제 실적 (task-summary.js) ────────────────────────────────────── */
.app-shell .home-page .task-kpis { width: min(1600px, calc(100% - 64px)); margin: 0 auto 20px; }
.app-shell .home-page .task-outstanding { display: grid; gap: 6px; margin: 28px 0; padding: 22px 24px; }
.app-shell .home-page .task-outstanding[hidden] { display: none; }
.app-shell .home-page .task-outstanding > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.app-shell .home-page .task-outstanding h2 { margin: 0; font-size: 17px; font-weight: 800; }
.app-shell .home-page .task-outstanding > header span { color: var(--ink-3); font-size: 12px; }
.app-shell .home-page .task-outstanding .dash-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.app-shell .home-page .task-outstanding .dash-row:hover { background: var(--surface-2); }
.app-shell .home-page .task-outstanding .dash-badge { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.dash-avatar { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-hover, #0d4d4a); font-size: 12px; font-weight: 800; }

/* ── 6. Server review fixes (2026-10-09) ─────────────────────────────────── */
/* 과제 관리 progress figures use the same cards as 홈 and 훈련 현황. */
.app-shell .ops-progress-metrics { gap: 16px; border: 0; border-radius: 0; overflow: visible; }
.app-shell .ops-progress-metrics article, .app-shell .ops-progress-metrics article + article {
  padding: 18px 20px; gap: 6px; border: 1px solid var(--line); border-radius: var(--ds-radius); background: var(--surface); box-shadow: var(--ds-shadow-1);
}
.app-shell .ops-progress-metrics strong { font-size: 30px; font-weight: 800; }
/* 과제 실적 on a narrow window: the headquarters table scrolls inside its box instead of widening the page. */
.app-shell .home-page .lp-pair-side { grid-template-columns: minmax(0, 1fr); }
.app-shell .home-page .lp-chart.is-hq { min-width: 0; }
.app-shell .home-page #lpHeadquarters { overflow-x: auto; }
/* Report headings keep title left and refresh right on narrow windows (they were stacked and centred). */
@media (max-width: 900px) {
  .app-shell .route-page .report-heading { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .app-shell .ops-progress-metrics article:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* One message instead of four empty panels when nothing has been completed yet. */
.insight-empty { display: grid; gap: 6px; padding: 28px 24px; text-align: center; }
.insight-empty b { font-size: 16px; }
.insight-empty p { margin: 0; color: var(--ink-3); font-size: 13px; }

/* ── 7. Wide windows (≥1330px 훈련 현황 container) ───────────────────────── */
/* The map + headquarters grid was pinned left (margin 24px) while the title and figures were centred. */
@container home (min-width: 1330px) {
  .app-shell .home-page .atlas-overview { width: min(1600px, calc(100% - 64px)); margin-inline: auto; }
  .app-shell .home-page .atlas-overview .task-outstanding { grid-column: 1 / -1; }
}
/* 훈련 결과·토론: the list was capped at 1240px and pinned left under a full-width title. */
.app-shell .discussion-page-container .discussion-layout { max-width: none; }
.app-shell .discussion-page-container .discussion-toolbar { padding-inline: 0; }

/* ── 8. Full-screen review (2026-10-09): pages brought to the mockup at 1920px ── */
/* 과제 실적: figures above, map and the right column side by side, no duplicated numbers or notice cards. */
@container home (min-width: 1330px) {
  .app-shell .home-page .atlas-overview { grid-template-columns: minmax(0, 1fr) minmax(560px, .85fr); }
  .app-shell .home-page .atlas-overview .lp-pair-side { padding-top: 0; }
}
.app-shell .home-page .atlas .atlas-footer :is(.atlas-main-stat, .atlas-stats) { display: none; }
.app-shell .home-page .lp-desk { display: none; }
/* 지사 관리자: the headquarters table only says 범위 밖, so the right column keeps the monthly trend alone. */
.app-shell .home-page .atlas-overview:has(#trainingAtlas[data-scope="office_manager"]) .lp-pair-side :is(.lp-section-head, .lp-chart-head, #lpHeadquarters) { display: none; }
.app-shell .home-page .atlas-history > summary { font-size: 17px; font-weight: 800; color: var(--ink); }
/* The shared icon rule strokes every svg; chart labels must not get that outline. */
.tr-host svg text, .tr-tick, .tr-mark-label { stroke: none; font-family: inherit; font-weight: 500; }
.app-shell .home-page .atlas-history { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--ds-radius); background: var(--surface); box-shadow: var(--ds-shadow-1); }
.app-shell .home-page .lp-pair > .atlas-history { grid-column: 1 / -1; }
/* 지사 관리자: monthly trend and unfinished trainees stack in the right column beside the map. */
.app-shell .home-page .lp-chart.is-hq > .task-outstanding { margin: 20px 0 0; }
.tr-tick { font-size: 11px; }
/* Report pages (조직별 상세, 훈련 분석): figures and panels as cards, the scope switch beside refresh. */
.app-shell .portal-page .report-page .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; padding: 0; border: 0; }
.app-shell .portal-page .report-page .stat-row > div, .app-shell .portal-page .report-page .stat-row > div:first-child {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--ds-radius); background: var(--surface); box-shadow: var(--ds-shadow-1);
}
.app-shell .portal-page .report-page .stat-row strong { font-size: 30px; font-weight: 800; }
.app-shell .portal-page .report-page .panel { margin-top: 20px; padding: 6px 24px 20px; border: 1px solid var(--line); border-radius: var(--ds-radius); background: var(--surface); box-shadow: var(--ds-shadow-1); }
.app-shell .portal-page .report-page .panel > header { border-bottom: 1px solid var(--line); }
.app-shell .portal-page .analytics-page .analytics-split { gap: 20px; }
.app-shell .portal-page .analytics-page .analytics-split > .panel { margin-top: 20px; }
.app-shell .route-page .report-heading .report-switch { margin-left: auto; }
/* 훈련 분석 filters keep their two-row grid but stop stretching across a wide page. */
.app-shell .portal-page .analytics-page .report-controls[data-analytics-controls] { max-width: 1040px; }
/* 과제 실적: the branch-office table sits in a card like the blocks above it. */
.app-shell .home-page .lp-pair-main { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--ds-radius); background: var(--surface); box-shadow: var(--ds-shadow-1); }
/* 훈련 분석 · 내 성적: two by two, as in the mockup (four in a row squeezed the labels). */
.insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .insight-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── 9. 과제 관리 진행 현황 · 내 성적 최근 결과 (2026-10-09) ─────────────── */
.app-shell .ops-progress-list { display: grid; gap: 4px; margin-top: 24px; }
.app-shell .ops-progress-list > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.app-shell .ops-progress-list h3 { margin: 0; font-size: 17px; font-weight: 800; }
.app-shell .ops-progress-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(160px, 1fr) 56px 84px; align-items: center; gap: 18px; width: 100%;
  min-height: 64px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}
.app-shell .ops-progress-row + .ops-progress-row { margin-top: 8px; }
.app-shell .ops-progress-row:hover { border-color: var(--accent-line); box-shadow: var(--ds-shadow-1); }
.app-shell .ops-progress-row.is-finished { opacity: .72; }
.ops-progress-main { display: grid; gap: 4px; min-width: 0; }
.ops-progress-main b { overflow: hidden; font-size: 15px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ops-progress-main small { color: var(--ink-3); font-size: 12px; }
.ops-progress-bar { display: flex; height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.ops-progress-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left center; animation: dsGrow .9s var(--ds-ease) .2s both; }
.ops-progress-bar i.is-doing { background: #7fc4b4; }
.ops-progress-rate { font-size: 15px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.ops-progress-badge { justify-self: end; padding: 5px 10px; border-radius: 8px; background: var(--surface-3); color: var(--ink-2); font-size: 12px; font-weight: 800; white-space: nowrap; }
.ops-progress-badge.is-soon { background: #fdf1d8; color: #7a4b00; }
.ops-progress-badge.is-late { background: var(--danger-soft, #fdeff2); color: #a3243c; }
.ops-progress-badge.is-done { background: #e7f6f1; color: #0a5c48; }
.ops-progress-more { margin: 8px 0 0; color: var(--ink-3); font-size: 12px; }
@media (max-width: 760px) { .app-shell .ops-progress-row { grid-template-columns: minmax(0, 1fr) auto; } .ops-progress-bar { grid-column: 1 / -1; grid-row: 2; } .ops-progress-rate { display: none; } }
.insight-recent-head { display: flex; align-items: center; gap: 20px; }
.insight-ring { position: relative; width: 104px; height: 104px; flex: 0 0 104px; }
.insight-ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.insight-ring circle { fill: none; stroke-width: 11; }
.insight-ring .track { stroke: var(--surface-3); }
.insight-ring .value { stroke: var(--accent); stroke-linecap: round; animation: dsRing 1.1s var(--ds-ease) .2s both; }
.insight-ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.insight-recent-copy { display: grid; gap: 6px; }
.insight-recent-copy b { font-size: 17px; font-weight: 800; }
.insight-recent-copy span { color: var(--ink-2); font-size: 13px; }
.insight-recent-label { margin-top: 6px; color: var(--ink-2); font-size: 12px; font-weight: 700; }

@media (max-width: 720px) {
  .dash-hero { padding: 24px 20px; }
  .app-shell .dashboard-page .dash-hero h1 { font-size: 24px; }
  .dash-ring, .dash-ring svg { width: 120px; height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell *, .app-shell *::before, .app-shell *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
