:root {
  color-scheme: light;
  --brand: #003763;
  --blue: #145e96;
  --ink: #12283b;
  --muted: #5e7080;
  --line: #e0e8ef;
  --canvas: #f4f7fa;
  --white: #fff;
  --ease: cubic-bezier(.23,1,.32,1);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button { border: 0; background: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #317ab1; outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
.sr,.skip:not(:focus) { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; padding: 10px 15px; background: white; left: 12px; top: 12px; }
.shell { display: grid; grid-template-columns: 210px minmax(0,1fr); min-height: 100vh; }
.rail { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 25px 15px 16px; }
.brand { display: block; width: 150px; margin: 0 auto 26px 10px; }
.brand img { width: 100%; height: auto; display: block; }
nav { display: grid; gap: 5px; }
nav a,.rail-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 9px; color: #4e6375; text-align: left; font-weight: 550; }
nav a[aria-current] { color: var(--brand); background: #e7f0f7; font-weight: 750; }
nav a[aria-current]::after { content: ''; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.rail-bottom { margin-top: auto; }
.rail-link { width: 100%; }
.data-chip i { display: inline-block; border-radius: 50%; width: 6px; height: 6px; background: #2c8c6f; flex: none; }
.workspace { min-width: 0; }
.topbar { width: calc(100% - 54px); max-width: 1496px; margin: 24px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
body[data-page="overview"] .topbar { color: white; background: linear-gradient(110deg,#003763,#075687); border-radius: 14px; padding: 17px 20px; min-height: 76px; }
.topbar h1 { margin: 0; font-size: clamp(23px,2.45vw,33px); line-height: 1.25; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.data-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; color: #165d4b; background: #e8f4ee; font-size: 12px; font-weight: 650; white-space: nowrap; }
main { max-width: 1550px; padding: 0 27px; margin: 0 auto; }
main:focus { outline: 2px solid #317ab1; outline-offset: -2px; }
footer { max-width: 1550px; margin: 0 auto; padding: 18px 27px 24px; font-size: 11px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
h1 { letter-spacing: -.025em; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 18px 0 14px; }
.period-meta { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.period-meta strong { font-size: 15px; }
.period-meta span,.muted { color: var(--muted); font-size: 12px; }
.small { font-size: 11px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filters label,.searchbox { display: flex; gap: 7px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 8px; padding-left: 10px; color: var(--muted); font-size: 12px; }
.filters label:has(.sr):not(:has(svg)) { padding-left: 0; }
select { border: 0; background: transparent; padding: 8px 8px 8px 7px; color: #263e53; font-weight: 600; min-height: 34px; border-radius: 7px; }
.searchbox { padding-right: 10px; min-width: 0; }
.searchbox input { border: 0; background: transparent; min-width: 0; padding: 9px 0; outline: 0; flex: 1; }
.searchbox:focus-within { outline: 2px solid #317ab1; outline-offset: 1px; }
.searchbox input:focus-visible { outline: 2px solid #317ab1; outline-offset: 2px; border-radius: 3px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.stat,.panel { border: 1px solid var(--line); border-radius: 13px; background: var(--white); box-shadow: 0 2px 4px #183d5a04; min-width: 0; }
.stat { padding: 13px 15px 12px; }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #40596e; font-weight: 700; }
.tile { width: 31px; height: 31px; background: #e8f2fb; color: #17659c; border-radius: 8px; display: inline-grid; place-items: center; flex: none; }
.tile.teal { background: #e8f4f1; color: #147960; }
.tile.purple { background: #eeeaf9; color: #674ba5; }
.tile.sand { background: #faf0df; color: #8d5d16; }
.stat-number { font-size: clamp(24px,3vw,34px); line-height: 1.27; letter-spacing: -.04em; font-weight: 760; margin: 5px 0 3px; font-variant-numeric: tabular-nums; }
.stat-number small,.mini-stats small,.score small { font-size: 12px; color: var(--muted); margin-left: 5px; font-weight: 550; letter-spacing: 0; }
.stat p { font-size: 11px; color: var(--muted); }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 13px; margin-top: 13px; }
.panel { padding: 16px; }
.panel.flush { padding: 0; }
.panel.flush .panel-head { padding: 16px 16px 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.panel-head h2 { font-size: 16px; line-height: 1.4; }
.panel-head p { font-size: 11px; margin-top: 3px; color: var(--muted); }
.chart { width: 100%; display: block; min-height: 135px; overflow: visible; }
.chart text { fill: #607489; font: 12px system-ui,sans-serif; }
.legend { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); padding-top: 3px; white-space: nowrap; }
.legend span { display: flex; align-items: center; gap: 4px; }
.legend i { width: 11px; border-top: 2px solid #176ba8; }
.legend .dash { border-top: 2px dashed #6c8aa5; }
.load-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding-top: 11px; border-top: 1px solid #edf2f6; gap: 7px; }
.load-strip span,.load-strip strong { display: block; }
.load-strip span { font-size: 11px; color: var(--muted); }
.load-strip span small { font-size: 9px; white-space: nowrap; }
.load-strip strong { font-size: 17px; }
.load-strip strong small { font-size: 11px; color: var(--muted); }
.subject-panel { display: flex; flex-direction: column; }
.segment { display: inline-flex; background: #eff4f8; padding: 3px; border-radius: 7px; flex: none; gap: 2px; }
.segment button { font-size: 11px; padding: 3px 8px; border-radius: 5px; color: var(--muted); }
.segment button[aria-pressed=true] { color: var(--brand); background: #fff; box-shadow: 0 1px 3px #17345216; font-weight: 700; }
.bars { display: grid; gap: 5px; margin: 0 -4px 8px; }
.bar-item { width: 100%; display: grid; grid-template-columns: 1fr auto; text-align: left; align-items: center; gap: 4px 8px; border-radius: 7px; padding: 4px; font-size: 12px; }
.bar-item strong { font-variant-numeric: tabular-nums; }
.bar-item small { font-weight: 500; font-size: 10px; color: var(--muted); }
.bar-track { display: block; grid-column: 1/-1; border-radius: 3px; height: 6px; background: #edf2f6; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; }
.panel-foot { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; margin-top: auto; padding-top: 8px; }
.flush .panel-foot { padding: 12px 16px; }
.table-scroll { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th,td { padding: 9px 13px; }
th:first-child,td:first-child { padding-left: 16px; }
th:last-child,td:last-child { padding-right: 16px; }
th { color: var(--muted); font-weight: 650; font-size: 11px; background: #f6f9fc; }
td { border-top: 1px solid #edf2f6; font-size: 12px; }
.number { font-variant-numeric: tabular-nums; font-weight: 700; }
.person { display: flex; gap: 8px; align-items: center; text-align: left; padding: 2px; border-radius: 7px; }
.person strong,.person small { display: block; }
.person small,.cell-hint { color: var(--muted); font-size: 10px; }
.avatar { display: inline-grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #e5f1fa; color: #0c548a; font-weight: 750; font-size: 13px; flex: none; }
.avatar.large { width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }
.avatar.tone-1 { background: #ebedf9; color: #514e9b; }
.avatar.tone-2 { background: #e7f3ee; color: #2a7059; }
.avatar.tone-3 { background: #fbefdf; color: #8c5b16; }
.avatar.tone-4 { background: #f8eaf3; color: #844871; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; white-space: nowrap; padding: 3px 7px; font-size: 10px; font-weight: 700; background: #eef2f6; color: #516578; }
.tag.blue { background: #e7f1fa; color: #165789; }
.tag.success { background: #e6f4ed; color: #17654d; }
.tag.warning { background: #fcf0dd; color: #85540d; }
.button,.icon-button,.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; border-radius: 8px; font-size: 12px; font-weight: 670; }
.button { padding: 7px 10px; min-height: 33px; }
.button.outline,.icon-button { border: 1px solid var(--line); background: #fff; color: var(--brand); }
.button.primary { background: var(--brand); color: #fff; }
.button.subtle { background: #edf4fa; color: var(--brand); }
.icon-button { padding: 5px; min-width: 31px; min-height: 31px; }
.text-link { padding: 4px 0; }
.sort { font: inherit; padding: 0; }
.todo-list,.list-lines { display: grid; }
.todo-row,.list-lines>div { display: flex; align-items: center; gap: 9px; justify-content: space-between; padding: 10px 1px; text-align: left; border-top: 1px solid #edf2f6; }
.todo-row>span:nth-child(2),.list-lines>div>span:first-child { flex: 1; min-width: 0; }
.todo-row strong,.todo-row small,.list-lines small { display: block; }
.todo-row strong,.list-lines strong { font-size: 12px; }
.todo-row small,.list-lines small { color: var(--muted); font-size: 11px; }
.empty { display: grid; place-items: center; gap: 6px; text-align: center; padding: 32px 14px; color: var(--muted); }
.empty p { font-size: 12px; }
.empty strong { color: var(--ink); }
.growth-summary { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 17px 21px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.growth-summary h2 { font-size: 24px; }
.growth-summary p,.level-path small { color: var(--muted); font-size: 12px; }
.level-path { display: flex; align-items: center; gap: 14px; color: #49718e; }
.level-path div { min-width: 69px; padding: 7px 10px; border-radius: 8px; background: #eef4f9; }
.level-path strong,.level-path small { display: block; }
.level-path strong,.score { font-size: 26px; color: var(--brand); font-weight: 750; line-height: 1.25; }
.score { margin-top: 4px; }
.growth-grid { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
.condition { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid #edf2f6; }
.condition>div { min-width: 0; flex: 1; }
.condition strong,.condition small { display: block; }
.condition strong { font-size: 12px; }
.condition small { color: var(--muted); font-size: 11px; }
.condition-count { font-size: 12px; white-space: nowrap; }
.citation { margin: 10px 0 7px; padding: 7px 9px; border-radius: 7px; background: #eef4fa; color: #345e7e; font-size: 11px; display: flex; gap: 6px; align-items: center; }
.citation svg { flex: none; }
.mini-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mini-stats>div { flex: 1 1 80px; padding: 9px; background: #f3f7fb; border-radius: 8px; }
.mini-stats span,.mini-stats strong { display: block; }
.mini-stats span { font-size: 11px; color: var(--muted); }
.mini-stats strong { font-size: 20px; color: var(--brand); }
.ability-list { display: grid; }
.ability-list>div { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border-top: 1px solid #edf2f6; padding: 7px 0; font-size: 12px; }
.ability-list>div>span:nth-child(2) { color: var(--muted); }
dialog { padding: 0; border: 1px solid var(--line); background: white; color: var(--ink); box-shadow: 0 16px 54px #15344b2c; max-height: 92dvh; }
dialog::backdrop { background: #0a223458; }
dialog.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(530px,100%); max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 15px 0 0 15px; }
dialog[open].drawer { animation: slide-in 200ms var(--ease); }
@keyframes slide-in { from { transform: translateX(18px); opacity: .6; } }
dialog.center-dialog { width: min(450px, calc(100% - 22px)); border-radius: 15px; }
.dialog-content { padding: 23px; position: relative; }
.dialog-close { position: absolute; top: 15px; right: 15px; }
.dialog-heading { margin: 0 29px 16px 0; }
.dialog-heading h2 { font-size: 25px; margin: 3px 0; }
.dialog-heading p { font-size: 12px; color: var(--muted); }
.detail-person { display: flex; align-items: center; gap: 11px; padding-right: 34px; margin-bottom: 15px; }
.detail-person h2 { font-size: 24px; display: flex; align-items: center; gap: 8px; }
.detail-person p { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { padding: 7px 8px; font-size: 12px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button[aria-pressed=true] { font-weight: 740; color: var(--brand); border-bottom-color: var(--brand); }
.detail-body h3,.answer h3 { margin: 12px 0 7px; font-size: 15px; }
.detail-body h3 small { color: var(--muted); font-size: 11px; font-weight: 500; }
.detail-body .muted { margin-bottom: 9px; }
.profile-list { margin: 0 0 10px; }
.profile-list div { padding: 8px 0; border-top: 1px solid #edf2f6; }
.profile-list dt { color: var(--muted); font-size: 11px; }
.profile-list dd { margin: 0; font-size: 13px; }
.evidence-details { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; }
.evidence-details summary span { margin-left: 7px; color: var(--muted); font-size: 11px; font-weight: 500; }
.evidence-details[open] summary { margin-bottom: 7px; }
.rule-list details,.rule-hours { padding: 8px 0; border-top: 1px solid #edf2f6; }
summary { font-weight: 680; color: var(--brand); }
.excerpt { white-space: pre-line; color: #3d566b; font-size: 13px; padding-top: 6px; overflow-wrap: anywhere; }
.knowledge-form { display: flex; gap: 8px; }
.knowledge-form .searchbox { flex: 1; }
.query-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 12px; }
.query-chips .button { font-size: 11px; min-height: 28px; padding: 4px 8px; }
.notice { padding: 10px; display: flex; gap: 7px; align-items: center; color: #42637e; background: #f0f5f9; border-radius: 8px; font-size: 12px; }
.answer { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; }
.source-list small { margin-top: 4px; }
.plan-form { display: grid; gap: 11px; }
.plan-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; }
.plan-form input,.plan-form textarea { border: 1px solid var(--line); border-radius: 7px; padding: 7px; background: #f9fbfd; width: 100%; }
.form-actions { display: flex; justify-content: end; gap: 8px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; background: var(--brand); color: white; border-radius: 9px; padding: 10px 15px; box-shadow: 0 8px 24px #193a5750; }
@media (hover:hover) {
  nav a:hover,.rail-link:hover,.bar-item:hover,.person:hover,.todo-row:hover { background: #eef4f9; }
  .button.outline:hover,.icon-button:hover { background: #edf4fa; border-color: #b9cfdf; }
  .button.primary:hover { background: #075282; }
  .button.subtle:hover { background: #e1eef8; }
  .text-link:hover { text-decoration: underline; }
}
.button,.icon-button,.bar-item,.person { transition: background-color 120ms ease, transform 110ms var(--ease); }
.button:active,.icon-button:active { transform: scale(.975); }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 175px minmax(0,1fr); }
  .brand { width: 134px; margin-left: 4px; }
  main,footer { padding-left: 17px; padding-right: 17px; }
  .topbar { width: calc(100% - 34px); }
  .overview-grid { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); }
  .stat { padding: 11px; }
  .load-strip span small { display: block; }
}
@media (max-width: 850px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; align-items: center; gap: 13px; padding: 9px 13px; border: 0; border-bottom: 1px solid var(--line); }
  .brand { width: 116px; flex: none; margin: 0; }
  .rail-bottom { display: none; }
  nav { display: flex; flex-wrap: wrap; gap: 3px; }
  nav a { padding: 6px; gap: 4px; font-size: 11px; }
  nav a svg { width: 14px; height: 14px; }
  nav a[aria-current]::after { display: none; }
  .topbar { min-height: 40px; margin-top: 13px; }
}
@media (max-width: 650px) {
  main,footer { padding-left: 12px; padding-right: 12px; }
  .topbar { width: calc(100% - 24px); gap: 8px; }
  body[data-page="overview"] .topbar { padding: 13px; min-height: 57px; }
  .top-actions { gap: 6px; }
  .rail { gap: 6px; }
  .brand { width: 90px; }
  nav a { padding: 5px; }
  nav a svg { display: none; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .overview-grid { grid-template-columns: 1fr; }
  .panel { padding: 12px; }
  .toolbar { margin-top: 12px; }
  .growth-summary { flex-wrap: wrap; padding: 12px; gap: 9px; }
  .growth-summary h2 { font-size: 20px; }
  .level-path { gap: 4px; }
  .level-path div { padding: 5px; min-width: 48px; }
  .level-path strong,.score { font-size: 19px; }
  .panel-head .button { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.footer-sources { display: none; padding: 0; color: var(--blue); font-weight: 650; }
@media (max-width: 850px) { .footer-sources { display: inline; } }

.segment a { display: inline-flex; align-items: center; border-radius: 5px; padding: 6px 13px; font-size: 13px; color: var(--muted); }
.segment a[aria-current] { background: #fff; color: var(--brand); font-weight: 700; box-shadow: 0 1px 3px #17345216; }
.annual-table { min-width: 1060px; table-layout: fixed; }
.annual-table th,.annual-table td { text-align: center; padding: 7px 4px; }
.annual-table th:first-child { width: 151px; padding: 8px 12px; text-align: left; }
.annual-table thead tr:first-child>th:last-child { width: 88px; }
.annual-table thead tr:first-child>th { border-bottom: 1px solid var(--line); }
.annual-table thead th[aria-sort] { color: var(--brand); background: #e8f1f8; }
.annual-table tbody th { background: #fff; border-top: 1px solid #edf2f6; font-weight: 500; }
.annual-table thead tr:first-child>th:first-child,.annual-table tbody th,.annual-table tfoot th { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--line); }
.annual-table tfoot th,.annual-table tfoot td { background: #eef4f9; border-top: 1px solid var(--line); padding: 11px 4px; }
.annual-table .person { gap: 7px; }
.annual-table .person strong { font-size: 12px; }
.annual-total { color: var(--brand); background: #f8fafc; }
.heat-cell { width: 100%; min-height: 32px; padding: 5px 2px; border-radius: 5px; font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; }
.heat-0 { background: #f7f9fb; color: #5e7080; }
.heat-1 { background: #e8f2fa; color: #144e7c; }
.heat-2 { background: #c9e0f2; color: #12456f; }
.heat-3 { background: #86b8dc; color: #0a3659; }
.heat-4 { background: #226b9f; color: #fff; }
.unavailable { color: #8a99a6; }
.annual-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 16px; color: var(--muted); font-size: 11px; }
.heat-legend { display: inline-flex; align-items: center; gap: 4px; }
.heat-legend i { display: inline-block; width: 16px; height: 10px; border-radius: 2px; }
@media (hover:hover) { .heat-cell:hover { box-shadow: inset 0 0 0 2px #003763; } }
@media (max-width: 650px) {
  .annual-table { min-width: 1010px; }
  .annual-table th:first-child { width: 130px; }
  .annual-table .avatar { display: none; }
}

.stat-open { display: block; text-align: left; width: 100%; cursor: pointer; }
.stat-open .stat-number { display: block; }
.stat-sub { display: block; font-size: 11px; color: var(--muted); }
figure { margin: 0; }
.annual-insights { margin: 0 0 14px; }
.chart-scroll { overflow-x: auto; position: relative; }
.monthly-chart { min-width: 560px; }
.chart-note { font-size: 10px; color: var(--muted); padding-top: 3px; }
.histogram { display: grid; gap: 15px; padding: 18px 0; }
.histogram-row { display: grid; grid-template-columns: 85px 1fr 30px; align-items: center; gap: 8px; font-size: 11px; }
.histogram-track { height: 22px; background: #f2f6f9; }
.histogram-track i { height: 100%; display: block; background: #145e96; }
.histogram-row strong { text-align: right; }
.histogram-row small { color: var(--muted); font-weight: 400; }
.trial-outcomes { display: grid; gap: 10px; }
.outcome-row { display: grid; grid-template-columns: 35px 1fr 28px; gap: 12px; align-items: center; font-size: 12px; padding: 3px; text-align: left; border-radius: 5px; }
.outcome-track { height: 14px; background: #edf2f6; display: block; border-radius: 3px; overflow: hidden; }
.outcome-track i { display: block; height: 100%; min-width: 0; background: #176ba8; }
.outcome-track .outcome-1 { background: #8e759c; }
.outcome-track .outcome-2 { background: #c49342; }
.outcome-track .outcome-3 { background: #92a3b1; }
.outcome-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.attention-grid { display: grid; gap: 5px; }
.attention-grid button { display: flex; align-items: center; gap: 12px; padding: 7px 5px; text-align: left; border-radius: 6px; }
.attention-grid strong { font-size: 23px; color: var(--brand); min-width: 27px; font-variant-numeric: tabular-nums; }
.attention-grid span { font-size: 12px; flex: 1; }
.detail-table th,.detail-table td { padding: 8px; font-size: 11px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 12px; }
button:disabled { opacity: .4; cursor: default; }
.training-plans { margin-bottom: 16px; }
@media (hover:hover) {
  .stat-open:hover { border-color: #afcadf; }
  .outcome-row:hover,.attention-grid button:hover { background: #f1f6fa; }
}
.metric-back { margin-bottom: 12px; }
.profile-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.checkbox-label { display: flex !important; flex-direction: row; align-items: center; gap: 8px; }
.checkbox-label input { width: auto; }
.assessment-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.assessment-dimensions { display: grid; gap: 12px; margin: 14px 0; }
.assessment-dimensions article { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.assessment-dimensions h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.assessment-dimensions p,.assessment-dimensions li { font-size: 12px; color: #40596e; }
.assessment-dimensions ul { margin: 8px 0; padding-left: 18px; }
.evidence-links { display: flex; gap: 6px; flex-wrap: wrap; }
.evidence-links button { color: var(--blue); font-size: 11px; padding: 2px 5px; border-radius: 4px; background: #eef4f9; }
.evidence-json { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 ui-monospace,monospace; background: #f5f8fb; padding: 12px; border-radius: 8px; }
.assessment-scope { margin-top: 14px; }
.notification-button { min-width: 34px; }
.notification-button span { border-radius: 99px; background: #fae9ca; color: #7d500c; font-size: 10px; padding: 0 5px; }
@media (max-width: 650px) {
  .dialog-content { padding: 18px; }
  .tabs { gap: 2px; }
  .tabs button { font-size: 11px; padding: 7px 5px; }
}
 .profile-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0 12px}.profile-dates dt{font-size:12px;color:var(--muted)}.profile-dates dd{margin:5px 0 0;font-weight:600;font-variant-numeric:tabular-nums}.import-options{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.import-file{position:relative;overflow:hidden;cursor:pointer}.import-file input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.import-file:focus-within{outline:2px solid var(--brand);outline-offset:2px}
 .request-id{overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.live-stats{max-width:680px;margin:20px 0}.live-scope{margin-top:14px;font-size:12px}.live-intro .profile-list dd{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.live-intro .profile-list dt{font-weight:600;color:var(--ink)}
#live-results table{table-layout:fixed;width:100%;min-width:850px}#live-results th:nth-child(1){width:17%}#live-results th:nth-child(2){width:25%}#live-results th:nth-child(3){width:16%}#live-results th:nth-child(4){width:20%}#live-results th:nth-child(5){width:16%}#live-results th:nth-child(6){width:6%}#live-results td{white-space:normal}#live-results .live-courses{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}#live-results .person{max-width:100%}
.real-directory{min-width:900px}.real-directory td:nth-child(4){max-width:180px}.real-wrap{white-space:normal;display:block}.real-footnote{font-size:12px;margin-top:16px;line-height:1.8}.real-chart{width:100%;min-width:0}.real-chart [role=button]{cursor:pointer}.real-chart [role=button]:focus{outline:2px solid #145e96;outline-offset:3px}.real-chart text{font-size:11px;fill:#63798b}.real-distribution{display:grid;gap:18px;padding:12px 0}.real-distribution>div{display:grid;grid-template-columns:120px 1fr 45px;align-items:center;gap:12px}.real-distribution i{height:9px;border-radius:10px;background:#edf2f6;overflow:hidden}.real-distribution b{display:block;height:100%;background:#2d719e;border-radius:10px}.real-distribution strong{text-align:right}.course-labels{display:grid;gap:7px;margin:14px 0}.course-labels strong{font-size:12px;color:var(--muted)}.course-labels .tag{margin:2px 2px 2px 0}.real-tabs{margin-top:20px}.period-label{font-weight:650;color:var(--brand)}.annual-table td button{font-variant-numeric:tabular-nums;width:100%;min-height:32px}.annual-table thead small{display:block;color:var(--muted);font-size:9px}.detail-body>h3{margin:20px 0 10px}.profile-list dd{white-space:pre-wrap;overflow-wrap:anywhere}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.stats .stat{min-width:0}.stats .stat-number{font-size:32px}@media(max-width:900px){.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}@media(max-width:540px){.stats .stat{padding:14px}.stats .stat-number{font-size:26px}.real-distribution>div{grid-template-columns:80px 1fr 35px}}

/* History and operational inspection */
.history-chart {width:100%;height:auto;display:block;min-height:180px}
.history-chart text{font-size:11px;fill:#657788;font-variant-numeric:tabular-nums}
.history-chart [role=button]{cursor:pointer;outline-offset:3px}
.history-chart [role=button]:hover{opacity:.78}
.history-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:6px 0 18px}
.history-stats strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.history-stats small{display:block;font-size:12px;font-weight:400;color:#788995;margin-top:6px}
.chart-legend{display:flex;flex-wrap:wrap;gap:8px 16px;padding:8px 0 16px;font-size:12px;color:#586d7d}
.chart-legend span{display:flex;align-items:center;gap:6px}
.chart-legend i{width:9px;height:9px;border-radius:2px;flex:none}
.course-hours-table th:first-child{min-width:240px;max-width:320px;white-space:normal}
.trial-summary{font-size:13px;color:#64798a;padding:8px 0}
.trial-records td:nth-child(3){min-width:200px;max-width:340px;white-space:normal}
.score-history td{white-space:nowrap;font-variant-numeric:tabular-nums}
body[data-page=history] #main>.panel,body[data-page=quality] #main>.panel{margin-bottom:22px}
body[data-page=history] .toolbar .filters,body[data-page=quality] .toolbar .filters{flex-wrap:wrap}
.real-tabs{overflow-x:auto;white-space:nowrap}
@media(max-width:650px){.history-stats{display:grid;grid-template-columns:1fr;gap:18px}.history-chart{min-height:140px}.history-stats strong{font-size:27px}.chart-legend{font-size:11px}.filters select{max-width:100%}}

.quality-switch button{border:0;background:transparent;padding:9px 15px;color:var(--muted);border-radius:6px;font:inherit;cursor:pointer;white-space:nowrap}
.quality-switch button[aria-pressed=true]{background:#fff;color:var(--brand);box-shadow:0 1px 4px #12334a12}
body[data-page=history] .panel>.table-scroll,body[data-page=quality] .panel>.table-scroll{max-height:440px;overflow:auto}
body[data-page=history] .panel>.table-scroll thead,body[data-page=quality] .panel>.table-scroll thead{position:sticky;top:0;z-index:2;background:#f5f8fb}
.history-chart{max-height:315px}
.history-chart [role=button]{pointer-events:bounding-box}

@media(max-width:650px){.history-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.history-stats>div:nth-child(3){grid-column:1/-1}.history-stats strong{font-size:23px}.history-chart text{font-size:16px}}

/* Score analysis and career level entry */
.score-spark{width:118px;height:40px;display:block}
.score-heatmap td.score-cell{padding:0;text-align:center;min-width:90px}
.score-cell button{display:block;width:100%;min-height:46px;padding:10px 12px;text-align:center}
.score-exam-table{min-width:1300px}
.subject-score-bars{display:grid;gap:12px;margin:12px 0 22px}
.subject-score-row{display:grid;grid-template-columns:140px 1fr 110px;gap:16px;align-items:center;border:0;background:transparent;text-align:left;padding:8px;color:inherit;font:inherit;cursor:pointer;border-radius:7px}
.subject-score-row:hover{background:#f3f7fa}
.subject-score-row>i{position:relative;height:15px;background:#f0f4f7;border-radius:3px}
.subject-score-row b{position:absolute;top:0;bottom:0;border-radius:3px;min-width:1px}
.subject-score-row em{position:absolute;top:-3px;bottom:-3px;width:1px;background:#a9bccb}
.subject-score-row strong{text-align:right;font-variant-numeric:tabular-nums}
.subject-score-row small{display:block;font-size:11px;font-weight:400;color:var(--muted)}
.level-gate{max-width:600px;margin:40px auto;padding:30px}
.level-gate h2{font-size:22px;margin-bottom:28px}
.level-entry{display:flex;align-items:end;gap:16px;flex-wrap:wrap}
.level-entry label{display:grid;gap:8px;flex:1;min-width:180px;font-size:13px}
.level-entry select{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);font:inherit}
.level-entry p{width:100%;margin:0;font-size:12px}
.growth-directions{padding-left:20px;line-height:1.9;font-size:14px;color:var(--muted)}
.score-year-chart,.score-exam-chart{width:100%;max-height:300px}
@media(max-width:650px){.level-gate{margin:16px 0;padding:22px}.level-entry{align-items:stretch}.level-entry .button{width:100%}.subject-score-row{grid-template-columns:92px 1fr 76px;gap:8px;font-size:12px}.score-year-chart text,.score-exam-chart text{font-size:16px}}
.qualification-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stage-checks{display:flex;gap:12px;flex-wrap:wrap;border:1px solid var(--line);border-radius:7px;padding:10px;margin:15px 0}.stage-checks label{display:flex;align-items:center;gap:4px}.promotion-condition{margin:10px 0 10px calc(var(--condition-depth)*10px);padding:9px 12px;border-left:2px solid #d9e6ef}.promotion-condition>div:first-child{display:flex;justify-content:space-between;align-items:start;gap:10px}.promotion-condition strong{font-size:13px}.source-refresh{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}@media(max-width:600px){.qualification-fields{grid-template-columns:1fr}.promotion-condition{padding:7px}}
.training-task{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.training-task>span:first-child{flex:1}.training-task small{display:block;color:var(--muted);margin-top:5px}.recommendation{padding:12px 0;border-bottom:1px solid var(--line)}.recommendation p{font-size:14px;line-height:1.7}
.filter-panel{margin-bottom:18px}.filter-panel>summary{font-size:13px;cursor:pointer;color:var(--muted);padding:5px 0}.filter-panel>.filters{margin-top:12px;flex-wrap:wrap}.filter-panel label{font-size:12px;color:var(--muted)}input[type=time]{border:1px solid var(--line);border-radius:6px;padding:7px;background:#fff;color:var(--ink);font:inherit}.qualification-fields select,.plan-form select{padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink)}
