:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202631;
  background: #fff;
  --blue: #405ff5;
  --line: #e4e8ee;
  --muted: #626e80;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
.top { height: 65px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 3vw, 44px); }
.brand { font-weight: 700; display: flex; align-items: center; gap: 9px; }
.brand span { color: var(--blue); background: #eef2ff; padding: 6px 9px; border-radius: 9px; }
nav a { color: var(--blue); border-bottom: 2px solid var(--blue); padding: 0 0 10px; }
.layout { min-height: calc(100vh - 65px); display: grid; grid-template-columns: 232px minmax(0, 1fr); }
aside { background: #f5f6f8; border-right: 1px solid var(--line); padding: 21px 13px; }
aside h2 { margin: 0 0 16px; font-size: 14px; }
button { cursor: pointer; font: inherit; }
button:disabled { cursor: wait; opacity: .65; }
.new { width: 100%; padding: 11px 14px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 30px; font-weight: 600; }
.selected { margin-top: 15px; padding: 10px 12px; background: #e9edf4; border-radius: 9px; font-size: 14px; }
main { width: min(100%, 892px); margin: 0 auto; padding: 36px clamp(18px, 4vw, 52px) 64px; }
.breadcrumb, .intro, small { color: var(--muted); }
.breadcrumb { margin: 0 0 14px; font-size: 13px; }
h1 { font-size: clamp(24px, 4vw, 32px); margin: 0; }
.intro { margin: 10px 0 24px; }
form, section { padding: clamp(16px, 3vw, 26px); border: 1px solid var(--line); border-radius: 15px; }
main h2 { font-size: 17px; margin: 0 0 19px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
label { font-size: 14px; font-weight: 600; }
.full { grid-column: 1 / -1; }
input:not([type=checkbox]), textarea { display: block; margin-top: 7px; width: 100%; padding: 10px; border: 1px solid #cfd6e0; border-radius: 8px; background: #fff; font: inherit; font-weight: 400; color: inherit; }
textarea { resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 18px; }
input[type=checkbox] { accent-color: var(--blue); }
.actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.primary { color: #fff; background: var(--blue); border: 0; border-radius: 8px; padding: 10px 17px; }
section, #error { margin-top: 16px; }
#error { color: #a1212a; }
#result { background: #f2f8f4; overflow-wrap: anywhere; }
dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 650px) {
  .layout { grid-template-columns: 1fr; }
  aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 18px; }
  aside h2, .selected { display: none; }
  .new { width: auto; }
  main { padding-top: 24px; }
  .fields { grid-template-columns: 1fr; }
}
.records-nav { margin-top: 10px; }
#records-list { list-style: none; padding: 0; display: grid; gap: 8px; }
#records-list button { overflow-wrap: anywhere; border-radius: 8px; }
#records-status { color: var(--muted); }

.top .workbench-nav { display: flex; align-items: center; gap: clamp(8px, 2vw, 18px); }
.top .workbench-nav a { padding: 7px 0; border: 0; color: #364052; font-size: 14px; }
.top .workbench-nav a[aria-current="page"] { color: var(--blue); box-shadow: 0 2px var(--blue); }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--blue); font-size: 14px; }

.probation-summary { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.review-actions input { flex: 1 1 200px; }
.probation-digest { display: grid; gap: 6px; margin: 10px 0; }
.probation-digest .digest-row { text-align: left; font-size: 13px; }
.probation-report { border: 1px solid #d8dee9; border-radius: 10px; padding: 12px; margin: 10px 0; background: #fbfcfe; }
.probation-report pre { white-space: pre-wrap; font-size: 13px; line-height: 1.6; margin: 8px 0; }
.health-banner { margin: 8px 0; padding: 8px 12px; border-radius: 8px; background: #fff4e5; color: #8a4b00; font-size: 13px; }

.supervisor-summary { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.supervisor-list { display: grid; gap: 10px; }
.supervisor-row { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #e3e8f0; background: #fff; font-size: 14px; }
.supervisor-row.has-needs { border-color: #f0b26b; background: #fffaf3; }
.supervisor-row span { color: var(--muted); font-size: 13px; }
.need-tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.need-review { background: #fde7e7; color: #a11d1d; }
.need-silent { background: #fff0d9; color: #8a4b00; }
.need-gap { background: #eef1f6; color: #4a5568; }
