:root {
  color-scheme: light;
  --bg: #f3f7f4;
  --ink: #152d24;
  --muted: #4d6659;
  --line: #dfe8e1;
  --white: #fff;
  --accent: #12634b;
  --dark: #163e33;
  --light: #e5f1ea;
  --amber: #763d16;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 6vw, 2.4rem); line-height: 1.22; font-weight: 750; }
h2 { font-size: 1.21rem; line-height: 1.35; }
h3 { font-size: 1.05rem; }
.wrap { width: min(calc(100% - 32px), 850px); margin: 0 auto; }
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-size: 1.05rem; font-weight: 750; flex: none; }
#account { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; overflow-wrap: anywhere; }
main { padding: 32px 0 56px; }
button, input, textarea, select { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .62; cursor: wait; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #247b60;
  outline-offset: 3px;
}
.btn { min-height: 44px; font-weight: 680; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; }
.primary { color: #fff; background: var(--accent); }
.secondary { color: #174a39; background: var(--light); }
.quiet { color: var(--accent); background: transparent; border: 0; padding: 8px; min-height: 42px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.row-actions .btn { flex: 1 1 145px; }
.card, .notice, .person { border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.card { padding: clamp(17px, 4vw, 26px); margin-bottom: 15px; }
.notice { padding: 14px 17px; }
.notice.warning { background: #fbefe4; border-color: #f0dfcf; color: var(--amber); margin-bottom: 15px; }
.status { display: inline-block; color: #36564a; background: #edf2ef; border-radius: 99px; font-weight: 650; padding: 5px 10px; font-size: .875rem; white-space: nowrap; }
.status-submitted, .status-published { color: #155743; background: #dcefe4; }
.status-returned { color: var(--amber); background: #fae9db; }
.status-confirmed { color: #fff; background: var(--dark); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.description { margin-top: 6px; }
.auth-panel { margin: clamp(14px, 5vh, 50px) auto 0; max-width: 465px; border-top: 4px solid var(--accent); }
.auth-panel .btn { width: 100%; margin-top: 18px; }
.field { display: block; margin-top: 14px; font-weight: 650; }
.input { display: block; width: 100%; min-height: 47px; padding: 9px 11px; margin-top: 6px; border: 1px solid #cbd9d0; border-radius: 9px; background: #f7faf8; font-weight: 400; }
textarea.input { min-height: 92px; resize: vertical; }
select.input { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, #3e6152 50%), linear-gradient(135deg, #3e6152 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.error { color: #952f27; overflow-wrap: anywhere; margin: 12px 0 0; }
.hero { background: var(--dark); color: #fff; border-radius: 17px; padding: clamp(19px, 4vw, 30px); display: flex; gap: 20px; justify-content: space-between; align-items: end; margin-bottom: 25px; flex-wrap: wrap; }
.hero .small { color: #cfebde; margin-bottom: 3px; }
.hero select { border-color: #c1e0d0; color: var(--ink); min-width: 160px; }
.hero label { margin-top: 0; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 11px; }
.list { display: grid; gap: 10px; margin-top: 10px; }
.person { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; text-align: left; width: 100%; padding: 14px 16px; }
.person:hover { border-color: #96b9a8; }
.person-name { font-size: 1.08rem; font-weight: 700; }
.person-info { min-width: 0; overflow-wrap: anywhere; }
.back { display: inline-block; margin: -8px 0 13px -8px; }
.detail-head { margin-bottom: 20px; }
.detail-head > div { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin: 4px 0; }
.detail-head h1 { min-width: 0; overflow-wrap: anywhere; }
.metric { padding-top: 15px; padding-bottom: 15px; }
fieldset { padding: 0; margin: 0; border: 0; min-inline-size: 0; }
legend { padding: 0; font-weight: 700; }
.weight { font-size: .875rem; color: var(--accent); padding-left: 8px; }
.rubric { margin: 6px 0 9px; }
.rubric summary { color: var(--accent); font-weight: 650; cursor: pointer; min-height: 36px; align-content: center; }
.standards { background: #f1f6f2; border-radius: 9px; padding: 11px 13px; font-size: .875rem; margin: 3px 0 12px; }
.standards ul { margin: 6px 0; padding-left: 1.2em; }
.standards li { margin: 2px 0; }
.scores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice { flex: 1 1 43px; position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: grid; place-content: center; min-height: 44px; border: 1px solid #cbdcd1; border-radius: 9px; background: #f2f6f3; font-weight: 680; }
.choice input:checked + span { color: white; background: var(--accent); border-color: var(--accent); }
.choice input:focus-visible + span { outline: 3px solid #247b60; outline-offset: 3px; }
.read-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0; }
.data-value { font-variant-numeric: tabular-nums; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.training-line { padding: 13px 0; border-top: 1px solid var(--line); }
.training-line:first-of-type { margin-top: 15px; }
.training-line label { margin-top: 5px; }
.checkbox { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.checkbox input { width: 20px; height: 20px; }
.history { list-style: none; padding: 0; margin-bottom: 0; }
.history li + li { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.note { white-space: pre-wrap; overflow-wrap: anywhere; }
.result { overflow: hidden; padding: 0; }
.result-head { padding: 18px 20px; background: var(--dark); color: white; }
.result-head .small { color: #d6eee1; }
.score-number { font-size: 2.3rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.result-body { padding: 17px 20px; }
.due { display: flex; justify-content: space-between; gap: 9px; flex-wrap: wrap; padding: 0 0 8px; font-size: 1.2rem; font-weight: 750; }
.due strong { color: var(--accent); overflow-wrap: anywhere; }
.allowances { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
#queue-error { margin-bottom: 14px; }
@media (max-width: 400px) {
  main { padding-top: 23px; }
  .topbar-row { min-height: 58px; }
  #account { gap: 4px; }
  .wrap { width: calc(100% - 24px); }
}

.wrap { width: min(calc(100% - 32px), 1050px); }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-icon { display: block; width: 20px; height: 20px; border: 5px solid var(--accent); border-radius: 6px 6px 6px 2px; }
.role-name { color: var(--accent); font-weight: 700; }
.auth-context { color: var(--accent); font-size: .9rem; font-weight: 700; margin-bottom: 9px; }
.period-controls { display: grid; grid-template-columns: minmax(112px, auto) minmax(91px, auto); gap: 10px; }
.period-controls.with-position { grid-template-columns: minmax(125px, auto) minmax(112px, auto) minmax(91px, auto); }
.hero .period-controls .input { min-width: 0; }
.period-controls label { font-size: .875rem; }
.status-scored { color: #174b67; background: #dfeef5; }
.status-draft { color: #62522c; background: #f5efd9; }
.person-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0; color: var(--accent); background: #e6f0e9; font-weight: 750; }
.person-info { margin-right: auto; }
.detail-actions .btn { flex: 0 1 auto; }
.lead-notice { margin-bottom: 13px; }
.options-panel > summary { font-weight: 720; cursor: pointer; }
.options-panel > .btn { margin-top: 12px; }
.professional-score { display: grid; grid-template-columns: 1fr minmax(66px, 84px); align-items: center; gap: 12px; }
.professional-score > span > span { display: block; margin-top: 4px; }
.professional-score .input { margin: 0; }
.score-progress { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; }
.score-progress progress { flex: 0 1 180px; width: 160px; height: 9px; accent-color: var(--accent); }
.result-score { display: flex; gap: 9px; align-items: baseline; flex-wrap: wrap; }
.grade-label { display: inline-block; margin-left: 3px; padding: 3px 10px; border-radius: 8px; color: var(--dark); background: #edf8ef; }
.account-list { margin: 0; padding: 0; list-style: none; }
.account-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 9px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.account-row:last-child { border-bottom: 0; }
.account-buttons { display: flex; align-items: center; }
.issue { border-color: #9ecbbb; }
.credential { display: flex; flex-wrap: wrap; margin: 9px 0; gap: 6px 20px; overflow-wrap: anywhere; }
.issue .btn { margin-top: 10px; }
#adjustment-panel { border-color: #a3cabc; }
#adjustment-panel + .card { margin-top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.review-sheet { --sheet-dark: #006185; --sheet-blue: #049fd7; --sheet-line: #b8c7d9; margin-bottom: 15px; border: 1px solid var(--sheet-line); background: white; }
.sheet-title { color: #fff; background: var(--sheet-dark); text-align: center; font-size: 1.07rem; padding: 4px 12px; }
.sheet-meta { display: grid; grid-template-columns: .92fr 1.35fr 1fr; margin: 0; font-size: .9rem; }
.sheet-meta > div { display: grid; grid-template-columns: minmax(63px, .82fr) minmax(0, 1fr); border-bottom: 1px solid var(--sheet-line); }
.sheet-meta dt { display: grid; place-items: center; padding: 8px 5px; text-align: center; font-weight: 700; background: #d9f3fd; }
.sheet-meta dd { display: grid; place-items: center; margin: 0; border-left: 1px solid var(--sheet-line); border-right: 1px solid var(--sheet-line); padding: 7px 5px; text-align: center; overflow-wrap: anywhere; }
.sheet-section { color: #fff; background: var(--sheet-dark); padding: 4px 8px; font-size: .85rem; font-weight: 680; }
.review-grid { width: 100%; table-layout: fixed; border-collapse: collapse; color: #172627; }
.review-grid th, .review-grid td { vertical-align: middle; border: 1px solid var(--sheet-line); padding: 7px; }
.review-grid tr > :first-child { border-left: 0; }
.review-grid tr > :last-child { border-right: 0; }
.review-grid tbody tr:last-child > * { border-bottom: 0; }
.review-grid thead th { color: #fff; background: var(--sheet-blue); font-size: .88rem; }
.review-grid thead th:first-child { width: 16%; }
.review-grid thead th:nth-child(2) { width: 9%; }
.self-sheet .review-grid thead th:nth-child(3) { width: 25%; }
.self-sheet .review-grid thead th:nth-child(4) { width: 28%; }
.upper-sheet .review-grid thead th:nth-child(2) { width: 7%; }
.upper-sheet .review-grid thead th:nth-child(3) { width: 18%; }
.upper-sheet .review-grid thead th:nth-child(4) { width: 23%; }
.upper-sheet .review-grid thead th:nth-child(5) { width: 6%; }
.upper-sheet .review-grid thead th:nth-child(6) { width: 18%; }
.metric-name, .metric-weight, .upper-self { text-align: center; }
.metric-reference, .metric-evidence { font-size: .875rem; line-height: 1.38; }
.metric-reference { text-align: center; }
.metric-evidence { color: #4c5e5e; }
.review-grid .score-cell { background: #eaf0df; }
.score-field .scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 0; }
.score-field .choice span { min-height: 42px; background: #fff; }
.score-field .choice input:checked + span { background: var(--accent); }
.score-caption { padding-top: 6px; color: #345245; }
.mobile-standards, .mobile-self-label, .metric-name .weight { display: none; }

@media (min-width: 715px) {
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 714px) {
  .wrap { width: calc(100% - 24px); }
  .sheet-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: .82rem; }
  .review-grid, .review-grid tbody { display: block; }
  .review-grid thead, .review-grid .metric-weight, .review-grid .metric-reference, .review-grid .metric-evidence { display: none; }
  .review-grid tbody tr { display: block; padding: 12px 11px; border-bottom: 1px solid var(--sheet-line); }
  .review-grid tbody tr:last-child { border-bottom: 0; }
  .review-grid .metric-name, .review-grid .score-cell { display: block; width: 100%; border: 0; text-align: left; padding: 0; background: transparent; }
  .review-grid .score-cell { padding-top: 6px; }
  .score-field .scores { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mobile-standards, .mobile-self-label, .metric-name .weight { display: inline; }
  .review-grid .score-caption { min-height: 1.55em; }
  .review-grid .rubric { margin-bottom: 0; }
  .score-actions { position: sticky; bottom: 0; z-index: 1; background: var(--bg); padding: 8px 0 9px; margin-bottom: 0; }
}
@media (max-width: 430px) {
  .hero { gap: 12px; padding: 15px; margin-bottom: 15px; }
  .hero .period-controls { width: 100%; }
  .hero .period-controls.with-position { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .position-control { grid-column: 1 / -1; }
  .account-name .role-name { display: none; }
  .topbar-row { gap: 5px; }
  .brand-icon { width: 16px; height: 16px; border-width: 4px; }
  #account .quiet { padding: 6px; }
  .person { padding: 11px; }
}
