/* 总览使用独立样式，详情页保留原有布局。 */
.overview-main { max-width: 1680px; padding: 18px 24px; }
.overview-toolbar, .overview-period { display: flex; align-items: center; gap: 18px; }
.overview-toolbar { justify-content: space-between; margin-bottom: 12px; }
.overview-period h1 { font-size: 16px; letter-spacing: 0; white-space: nowrap; }
.overview-main .scopebar { margin: 0; }
.overview-main .scopebar > span { display: none; }
.overview-main .scope-controls { flex-wrap: nowrap; }
.overview-main .scope-controls select { max-width: 180px; }
.overview-metrics { margin-bottom: 18px; }
.overview-main .kpis { gap: 12px; }
.overview-main .kpi { padding: 13px 16px; min-height: 80px; }
.overview-main .kpi-value { font-size: 27px; margin: 6px 0 0; }
.overview-main .kpi-note { display: none; }
.overview-main #metrics-source { font-size: 10px; margin-top: 7px; line-height: 1.4; }
.overview-board { grid-template-columns: 1.15fr 1fr 1.2fr .65fr; gap: 14px; }
.overview-board > .column { min-width: 0; }
.overview-board .column-title { margin-bottom: 10px; }
.overview-board h2 { font-size: 14px; }
.module-count { color: var(--theme-muted, #8a96a9); font-size: 10px; font-weight: 400; }
.overview-board .card, .learning-cards { height: clamp(330px, calc(100dvh - 390px), 440px); margin: 0; }
.overview-board .card { display: flex; flex-direction: column; border-radius: 12px; }
.overview-board .card-footer { margin-top: auto; padding: 11px 8px; font-size: 11px; flex: none; }
.card-subhead { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 14px 13px 11px; color: var(--theme-muted, #7e899b); font-size: 11px; }
.card-subhead small { font-size: 9px; }
.card-note { color: var(--theme-muted, #909aab); font-size: 9px; line-height: 1.5; padding: 9px 13px; }
.diagnosis-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(3,1fr); gap: 8px; padding: 0 10px 10px; flex: 1; min-height: 0; }
.overview-board .home-anchor-filters { grid-template-rows:repeat(4,minmax(0,1fr)); }
.overview-board .home-anchor-filters .diagnosis-tile { display:flex; flex-direction:column; justify-content:center; min-height:64px; }
.overview-board .home-anchor-filters .diagnosis-title { padding:6px 9px 3px; font-size:12px; line-height:1.4; }
.overview-board .home-anchor-filters .summary-number { display:flex; align-items:baseline; gap:5px; padding:2px 9px 6px; font-size:24px; line-height:1.2; }
.overview-board .home-anchor-filters .summary-number small { display:inline; margin:0; font-size:10px; }
@media (min-width:1051px) and (max-height:800px) {
  /* Keep all eight entry points above the fold on shorter desktop screens. */
  .overview-page #panel-anchors > .card { align-self:start; height:280px; }
  .overview-board #anchor-card .card-subhead { padding:8px 10px; }
  .overview-board .home-anchor-filters { gap:6px; }
  .overview-board .home-anchor-filters .diagnosis-tile { min-height:52px; }
  .overview-board .home-anchor-filters .diagnosis-title { padding:5px 9px 2px; font-size:11px; line-height:1.2; }
  .overview-board .home-anchor-filters .summary-number { padding:0 9px 4px; font-size:22px; line-height:1.1; }
}
.diagnosis-tile { border: 1px solid var(--theme-line, #e9edf4); border-radius: 9px; background: var(--theme-surface, #fcfdff); min-width: 0; overflow: hidden; }
.diagnosis-title { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 8px 9px 5px; color: var(--theme-muted, #4f6081); font-size: 11px; }
.diagnosis-title b { font-size: 17px; font-variant-numeric: tabular-nums; }
.diagnosis-title small { font-size: 9px; font-weight: 400; margin-left: 3px; }
.tone-0 .diagnosis-title, .tone-2 .diagnosis-title, .tone-7 .diagnosis-title { color: var(--theme-red, #b77367); }
.tone-1 .diagnosis-title, .tone-5 .diagnosis-title { color: var(--theme-amber, #ad8c50); }
.tone-3 .diagnosis-title, .tone-4 .diagnosis-title, .tone-6 .diagnosis-title { color: var(--theme-muted, #4f8d80); }
.diagnosis-preview { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.6fr); column-gap: 5px; padding: 0 9px 7px; color: var(--theme-muted, #526079); font-size: 10px; }
.diagnosis-preview > strong, .diagnosis-preview > span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.diagnosis-preview > span { color: var(--theme-muted, #96a0af); font-size: 9px; margin-top: 0; text-align: right; }
.diagnosis-preview > div { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 3px; margin-top: 5px; }
.diagnosis-preview small { font-size: 8px; color: var(--theme-muted, #97a0af); }
.diagnosis-preview b { font-size: 11px; }
.diagnosis-none { color: var(--theme-muted, #a0a9b7); font-size: 10px; padding: 14px 9px; }
.channel-table-wrap { padding: 0 10px; flex: 1; }
.channel-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10px; }
.channel-table th, .channel-table td { padding: 8px 3px; text-align: right; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--theme-line, #f0f2f7); }
.channel-table th:first-child { text-align: left; width: 31%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.channel-table thead th { color: var(--theme-muted, #95a0b1); font-size: 9px; font-weight: 400; padding-top: 7px; padding-bottom: 9px; }
.channel-table tbody td:last-child { color: var(--theme-blue, #337ac7); font-weight: 650; }
.channel-table tfoot { color: var(--theme-blue, #4e6992); background: var(--theme-blue-soft, #f5f8ff); }
.channel-table tfoot th, .channel-table tfoot td { border: 0; font-weight: 650; }
.channel-table .channel-empty { text-align: center; padding: 45px 4px; color: var(--theme-muted, #9aa4b3); }
.card-pagination { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 8px 12px; color: var(--theme-muted, #95a0af); font-size: 9px; min-height: 34px; }
.card-pagination > div { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.card-pagination button { width: 22px; height: 22px; border: 1px solid var(--theme-line, #e6ebf3); border-radius: 6px; background: var(--theme-surface, white); color: var(--theme-muted, #6e80a0); font-size: 15px; }
.live-switch { display: flex; gap: 3px; padding: 9px; flex: none; }
.live-switch button { flex: 1; padding: 8px 2px; border-radius: 7px; background: var(--theme-raised, #f7f9fc); color: var(--theme-muted, #8794a8); font-size: 10px; }
.live-switch button.active { background: var(--theme-blue-soft, #edf3ff); color: var(--theme-blue, #4875c5); }
.live-switch b { margin-left: 3px; }
.room-previews { display: flex; flex-direction: column; gap: 8px; padding: 0 10px; flex: 1; min-height: 0; }
.room-preview { display: flex; flex-direction: column; justify-content: center; padding: 12px 10px; border: 1px solid var(--theme-line, #e9edf5); border-radius: 9px; background: var(--theme-surface, #fcfdff); color: var(--theme-muted, #4f5e75); min-width: 0; flex: 1; }
.room-preview:hover { text-decoration: none; border-color: var(--theme-line, #b4c9ee); }
.room-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.room-title strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.room-flag { color: var(--theme-muted, #589989); background: var(--theme-raised, #eef9f5); padding: 3px 5px; border-radius: 4px; font-size: 8px; max-width: 53%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.room-flag.is-alert { color: var(--theme-red, #be7469); background: var(--theme-red-soft, #fff3ef); }
.room-owner { color: var(--theme-muted, #99a3b3); font-size: 9px; margin-top: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.room-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 3px; margin-top: 14px; }
.room-metrics b { display: block; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.room-metrics small { display: block; color: var(--theme-muted, #9ba5b4); font-size: 8px; margin-top: 5px; }
.learning-cards { display: grid; grid-template-rows: repeat(2,1fr); gap: 12px; }
.learning-card { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: 18px; border: 1px solid var(--theme-line, #e0e8f7); border-radius: 12px; color: var(--theme-blue, #526c9d); background: linear-gradient(145deg,var(--theme-blue-soft, #f2f6ff),var(--theme-surface, #fff)); }
.learning-card:hover { text-decoration: none; border-color: var(--theme-line, #b3c8eb); }
.learning-icon { width: 32px; height: 32px; padding: 6px; border-radius: 9px; background: var(--theme-blue-soft, #e9f0ff); color: var(--theme-blue, #7194d2); margin-bottom: 13px; }
.learning-icon svg { width: 100%; height: 100%; }
.learning-card strong { font-size: 14px; }
.learning-card small { margin-top: 8px; color: var(--theme-muted, #96a3b8); font-size: 9px; white-space: nowrap; }
.learning-action { font-size: 10px; margin-top: 20px; }
.learning-exam { color: var(--theme-muted, #668d87); border-color: var(--theme-line, #e2eee9); background: linear-gradient(145deg,var(--theme-raised, #f0f8f5),var(--theme-surface, #fff)); }
.learning-exam .learning-icon { background: var(--theme-subtle, #e5f1ed); color: var(--theme-muted, #78a79b); }
.overview-mobile-tabs { display: none; }
@media (min-width: 1051px) and (max-height: 760px) {
  .overview-page .topbar-inner { padding-top: 13px; padding-bottom: 10px; }
  .overview-main { padding-top: 12px; padding-bottom: 12px; }
  .overview-metrics { margin-bottom: 12px; }
  .overview-main .kpi { min-height: 70px; padding: 10px 14px; }
  .overview-board .card, .learning-cards { height: clamp(320px, calc(100dvh - 355px), 388px); }
  .channel-table th, .channel-table td { padding-top: 7px; padding-bottom: 7px; }
  .diagnosis-preview > span { display: block; }
}
@media (max-width: 1050px) {
  .overview-main { padding: 12px 16px; }
  .overview-toolbar { gap: 8px; }
  .overview-period { gap: 10px; }
  .overview-main .scope-controls select { max-width: 140px; }
  .overview-mobile-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin: 0 0 12px; padding: 4px; background: var(--theme-subtle, #e9eef6); border-radius: 8px; }
  .overview-mobile-tabs button { background: transparent; color: var(--theme-muted, #7c899e); border-radius: 6px; padding: 9px 3px; font-size: 11px; }
  .overview-mobile-tabs button[aria-selected="true"] { color: var(--theme-blue, #3b6fc4); background: var(--theme-surface, #fff); box-shadow: 0 1px 4px #2235500c; }
  .overview-board { display: block; max-width: 680px; margin: auto; }
  .overview-board > .column { display: none; }
  .overview-board > .column.is-selected { display: block; }
  .overview-board .column-title { display: none; }
  .overview-board .card, .learning-cards { height: clamp(330px, calc(100dvh - 390px), 440px); }
  .learning-cards { grid-template-columns: repeat(2,1fr); grid-template-rows: 1fr; }
  .learning-card { align-items: center; }
  .diagnosis-preview > span { display: block; }
}
@media (max-width: 600px) {
  .overview-toolbar { align-items: stretch; flex-direction: column; gap: 8px; margin-bottom: 10px; }
  .overview-period { justify-content: space-between; }
  .overview-main .scopebar { justify-content: flex-end; }
  .overview-main .scope-controls select { max-width: 180px; font-size: 10px; padding: 5px 22px 5px 8px; }
  .overview-main .kpis { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .overview-main .kpi { min-height: 60px; padding: 9px 10px; }
  .overview-main .kpi-label { font-size: 9px; }
  .overview-main .kpi-value { font-size: 20px; margin-top: 4px; }
  .overview-main .kpi-value small { font-size: 9px; }
  .overview-metrics { margin-bottom: 10px; }
  .overview-main #metrics-source { font-size: 8px; }
  .overview-board .card, .learning-cards { height: clamp(315px, calc(100dvh - 477px), 400px); }
  .card-subhead { padding-top: 10px; padding-bottom: 9px; }
  .diagnosis-title { padding-top: 6px; }
  .diagnosis-preview > span { display: block; }
  .diagnosis-preview > div { margin-top: 3px; }
  .channel-table th, .channel-table td { padding-top: 8px; padding-bottom: 8px; }
  .room-preview { padding-top: 9px; padding-bottom: 9px; }
  .room-metrics { margin-top: 10px; }
}
@media (max-width: 600px) {
  .overview-page .topbar-inner { padding: 12px 16px; }
  .overview-page .brand > span:last-child { display: none; }
  .overview-page .user-meta { max-width: 155px; }
  .overview-page .user-meta strong, .overview-page .user-meta small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .overview-page #logout { white-space: nowrap; }
}
.channel-table .channel-empty { color: var(--theme-muted, #9aa4b3); font-weight: 400; }
.overview-page .user-meta small { display: none; }

.overview-card-content { display:contents; }

/* Channel summaries share the neighboring cards' typography and soft panels. */
.overview-channel-list { display:grid; grid-template-rows:repeat(var(--channel-count,3),minmax(0,1fr)); flex:1; min-height:0; gap:6px; margin:0 12px; }
.overview-channel-tile,.overview-channel-total { min-width:0; padding:5px 8px; border:1px solid var(--theme-line,#e7edf6); border-radius:9px; background:var(--theme-surface,#fafcff); }
.overview-channel-tile { display:flex; flex-direction:column; justify-content:center; }
.overview-channel-tile h3,.overview-channel-total h3 { margin:0; color:var(--theme-muted,#6a7e9c); font-size:12px; line-height:1.25; font-weight:600; flex:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.overview-channel-total { flex:none; margin:6px 12px 0; padding:11px 8px; background:var(--theme-blue-soft,#f2f6ff); }
.overview-channel-total h3 small { font-size:10px; font-weight:400; margin-left:3px; }
.overview-channel-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; margin-top:4px; flex:none; }
.overview-channel-metrics > div { min-width:0; }
.overview-channel-metrics b { display:block; color:var(--theme-blue,#4e6b93); font-size:20px; line-height:1.1; font-weight:650; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.overview-channel-metrics small { display:block; margin-top:2px; color:var(--theme-muted,#98a3b4); font-size:10px; line-height:1.2; }
.overview-channel-empty { display:flex; align-items:center; justify-content:center; border:1px solid var(--theme-line,#e7edf6); border-radius:9px; background:var(--theme-surface,#fafcff); }
#recruitment-card .card-pagination { flex:none; min-height:28px; padding:5px 12px; font-size:10px; }
@media(max-height:760px) and (min-width:1051px) {
 .overview-channel-list { gap:6px; }
 .overview-channel-tile { padding:5px 8px; }
 .overview-channel-metrics { margin-top:4px; }
 .overview-channel-metrics b { font-size:18px; }
}
@media(max-width:1050px) { .overview-channel-metrics b { font-size:18px; } }
