:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #182c25; background: #f5f7f5; font-synthesis: none;
  --ink: #182c25; --muted: #607169; --line: #dce4dd; --green: #17583f; --lime: #dcf78d;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, a { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #73a760; outline-offset: 3px; }
a { color: var(--green); text-decoration: none; }
h1, h2, p { margin: 0; }
.layout { min-height: 100dvh; display: grid; grid-template-columns: 218px minmax(0,1fr); }
aside { position: sticky; top: 0; z-index: 3; height: 100dvh; background: #fcfdfb; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 29px 16px 16px; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 13px; }
.brand img { border-radius: 12px; }
.brand strong { display: block; color: #184a36; font-size: 1.52rem; font-weight: 850; line-height: 1.15; letter-spacing: .07em; }
.brand small { display: block; font-size: .72rem; font-weight: 750; letter-spacing: .13em; line-height: 1.5; color: #486b50; }
.side-title { font-size: .8rem; color: #728078; margin: 51px 14px 11px; }
.nav-item { color: #53665a; padding: 13px 15px; display: flex; align-items: center; gap: 14px; border-radius: 8px; margin: 3px 0; font-size: .96rem; }
.nav-item:hover { background: #eef3ed; }
.nav-item.active { background: #dfefdf; color: #17563d; font-weight: 700; }
.account { margin-top: auto; border-top: 1px solid var(--line); padding: 20px 2px 3px; display: flex; align-items: center; gap: 9px; }
.avatar { border-radius: 50%; width: 37px; height: 37px; display: grid; place-items: center; background: #e5efde; color: #396441; font-weight: 700; }
.account b,.account small { display: block; }
.account b { font-size: .9rem; }
.account small { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.account .icon-btn { margin-left: auto; }
.workspace { min-width: 0; }
.topbar { height: 65px; padding: 0 clamp(20px,3vw,50px); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.crumb,.topbar time { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; }
.crumb i { color: #a8b4aa; font-style: normal; }
.crumb b { color: #43554b; font-weight: 600; }
.topbar time { gap: 8px; }
#main { max-width: 1650px; margin: auto; padding: 32px clamp(20px,3vw,50px) 50px; }
.heading,.actions,.panel-title,.hero-meta,.hero-kicker,.button,.picker,.text-btn,.icon-btn { display: flex; align-items: center; }
.heading,.panel-title { justify-content: space-between; gap: 12px; }
.heading { margin-bottom: 24px; }
h1 { font-size: clamp(1.7rem,2.3vw,2.3rem); letter-spacing: -.055em; font-weight: 760; line-height: 1.2; }
.heading p,.rule-intro p,.hint,.panel>p { margin-top: 8px; color: var(--muted); line-height: 1.65; }
.heading p { font-size: .94rem; }
.actions { flex-wrap: wrap; gap: 9px; }
.button,.picker,select,input { min-height: 40px; border: 1px solid #cfdad1; border-radius: 7px; background: #fff; color: var(--ink); }
.button,.icon-btn,.text-btn { justify-content: center; gap: 7px; font-size: .9rem; font-weight: 550; }
.button { display: inline-flex; padding: 8px 14px; }
.button:hover:not(:disabled),select:hover { border-color: #83a68c; }
.button.primary { background: var(--green); border-color: var(--green); color: white; }
.button.primary:hover { background: #104632; }
.text-btn,.icon-btn { border: 0; background: transparent; color: var(--green); padding: 5px; }
.text-btn:hover { text-decoration: underline; }
.icon-btn { border-radius: 6px; height: 34px; min-width: 32px; color: var(--muted); }
.icon-btn:hover { background: #e9f0e8; }
.mobile-menu { display: none; }
.picker { padding-left: 12px; gap: 6px; color: var(--green); max-width: 100%; }
select { appearance: none; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='9' viewBox='0 0 13 9'%3E%3Cpath d='m2 2 4.5 4.5L11 2' fill='none' stroke='%23586d60' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 8px 32px 8px 11px; font-size: .88rem; max-width: 100%; }
.picker select { min-height: 38px; padding-left: 0; border: 0; min-width: 0; }
.hero { min-height: 168px; border-radius: 14px; padding: 28px clamp(21px,2.7vw,44px); background: #164b38; color: white; position: relative; overflow: hidden; isolation: isolate; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.hero:before { content:""; position:absolute; inset:0; background: linear-gradient(110deg,#154c39 16%,#1b5940 66%,#214d37); z-index:-2; }
.lanes { position:absolute; inset:0; overflow:hidden; z-index:-1; }
.lanes i { --inset: calc(var(--lane) * 11px); display:block; position:absolute; width:calc(500px + var(--inset) * 2); height:calc(157px + var(--inset) * 2); border:1px solid #9cd18b58; border-radius:200px; right:calc(-167px - var(--inset)); top:calc(125px - var(--inset)); transform:rotate(-31deg); transform-origin:50% 50%; }
.hero-content { min-width: 0; }
.hero-kicker { gap: 8px; font-size: .85rem; color: #d9ecd9; font-weight: 550; }
.hero-kicker span { background: #d9f58b; color: #294c2b; border-radius: 4px; font-size: .76rem; font-weight: 700; padding: 3px 7px; margin-left: 3px; }
.hero h2 { font-size: clamp(1.35rem,2.15vw,2.25rem); margin: 14px 0; line-height: 1.25; letter-spacing: -.04em; overflow-wrap:anywhere; }
.hero-meta { gap: 18px; flex-wrap: wrap; font-size: .85rem; color: #e2eee2; }
.hero-meta span,.batch-card>p { display: flex; align-items: center; gap: 7px; }
.hero-rate { flex: 0 0 auto; text-align: right; padding: 8px 0; }
.hero-rate>span { color: #e3efdf; font-size: .86rem; }
.hero-rate strong { display:block; line-height:1.04; color:#e2fd9d; font-family: "Arial",sans-serif; font-size:clamp(3.1rem,4.3vw,4.5rem); letter-spacing:-.065em; font-weight:650; }
.hero-rate em { font-size: .47em; font-style:normal; letter-spacing:-.02em; margin-left:2px; }
.hero-meter { height: 4px; margin-top: 8px; background: #548063; width: 108px; border-radius: 4px; display:inline-flex; vertical-align:top; }
.hero-meter b,.bar i { display:block; border-radius: inherit; height:100%; background: #d7f58b; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:18px 0; }
.stat,.panel { border:1px solid var(--line); border-radius:12px; background:#fff; }
.stat { padding:16px 20px; }
.stat>div { display:flex; align-items:center; justify-content:space-between; gap:5px; }
.stat>div>span { font-size:.94rem; color:#52655a; font-weight:550; }
.stat-icon { display:grid; place-items:center; width:31px; height:31px; border-radius:8px; }
.mint { background:#e6f2e5;color:#4d7e57; }.blue { background:#e6f1f4;color:#41768a; }.amber { background:#faf0dc;color:#a27a30; }.lilac { background:#eeeaf5;color:#7d6797; }
.stat strong { display:block;font-family:Inter,Arial,sans-serif;font-size:clamp(1.8rem,2.6vw,2.65rem);font-weight:650;letter-spacing:-.05em;margin:5px 0 4px; }
.stat strong small { font-size:.86rem;color:var(--muted);margin-left:6px;font-weight:500;letter-spacing:0; }
.stat p,.panel-title>span,.person small,.score-box p,.rule-intro p,.revision small { color:var(--muted); font-size:.82rem; }
.charts { display:grid;grid-template-columns:1.12fr 1fr;gap:16px;margin-bottom:18px; }
.panel { min-width:0;padding:21px 23px; }
.panel-title h2,.panel h2,.dialog-head h2 { font-size:1.12rem;font-weight:700;letter-spacing:-.025em; }
.panel-title { min-height:28px; }
.class-list { margin-top:15px;max-height:198px;overflow:auto; }
.class-item { display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:10px;row-gap:6px;font-size:.88rem;margin-bottom:12px; }
.class-item:last-child { margin-bottom:0; }
.class-item b { font-size:.82rem; font-variant-numeric:tabular-nums; }
.class-item small { font-weight:400;color:var(--muted);font-size:inherit; }
.bar { height:6px;border-radius:5px;background:#eaf0e9;grid-column:1/-1; }
.bar i { background:#4d906a; }
.class-item:nth-child(2) .bar i { background:#74a881; }.class-item:nth-child(3) .bar i { background:#337d59; }
.distribution { display:flex;align-items:center;justify-content:space-evenly;gap:24px;margin-top:20px;min-height:147px; }
.donut { flex:0 0 auto;width:clamp(105px,10.5vw,160px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center; }
.donut>div { width:71%;height:71%;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex-direction:column; }
.donut strong { font:650 2rem/1.2 Inter,Arial,sans-serif;letter-spacing:-.055em; }
.donut small { color:var(--muted);font-size:.8rem; }
.legend { min-width:115px;display:grid;gap:10px; }
.legend>div,.rules>div { display:flex;align-items:center;gap:9px;font-size:.88rem; }
.legend i,.rules i { width:9px;height:9px;border-radius:3px;display:inline-block; }
.legend b { margin-left:auto;font-weight:600; }
.table-panel { padding:0;overflow:hidden; }
.table-panel>.panel-title { padding:17px 23px; }
.scroll { overflow:auto; }
table { border-collapse:collapse;width:100%;font-size:.88rem;white-space:nowrap;text-align:left; }
th { background:#f4f7f3;color:#5b6b5f;font-weight:550; }
td,th { padding:12px 16px;border-bottom:1px solid #e6ebe6; }
td:first-child,th:first-child { padding-left:23px; }
tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#fafcf8; }
td small { color:var(--muted);font-size:.83rem; }
.person { display:flex;flex-direction:column;gap:2px;min-width:72px; }
.person b { font-weight:600; }
.badge { display:inline-block;white-space:nowrap;border-radius:5px;padding:3px 8px;font-size:.8rem;font-weight:550; }
.status-DONE { background:#e3f1e5;color:#2e6540; }.status-DRAFT { background:#e4eef5;color:#3e6b85; }.status-PENDING { background:#edf0ed;color:#5a685d; }.status-DEFERRED { background:#f8efd9;color:#815f28; }.status-EXEMPT { background:#f0ebf4;color:#796086; }
.batch-list { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr));gap:16px; }
.batch-card h2 { margin:20px 0 12px; }
.batch-card>p { margin:8px 0;font-size:.9rem; }
.batch-card .class-item { margin:20px 0; }
.toolbar,.pager,.pager>div { display:flex;align-items:center;gap:10px; }
.toolbar { padding:16px 22px;flex-wrap:wrap; }
.search { display:flex;align-items:center;gap:6px;border:1px solid #cfdad1;border-radius:7px;padding:0 11px;max-width:100%;color:var(--muted); }
.search input { min-width:0;min-height:38px;border:0;padding:6px 0; }
input { padding:8px 10px;min-width:0;max-width:100%; }
input::placeholder { color:#77857b; }
.pager { justify-content:space-between;padding:13px 20px;border-top:1px solid var(--line);color:var(--muted);font-size:.84rem; }
.button.small { min-height:32px;font-size:.83rem;padding:4px 9px; }
.rules { display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:17px; }
.rules span,.hint { font-size:.86rem; }
.space-top { margin-top:18px; }
.rule-intro { padding:8px 23px 18px; }
.empty,.loading { text-align:center;color:var(--muted);padding:35px 15px; }
.empty svg { color:#73917d; }
.empty p { margin:8px auto;max-width:520px;line-height:1.6; }
.welcome { display:grid;justify-items:center; }
dialog { width:min(480px,calc(100% - 28px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:14px;padding:24px;color:var(--ink);box-shadow:0 16px 80px #14342433; }
dialog.wide { width:min(720px,calc(100% - 28px)); }
dialog::backdrop { background:#10231c75; }
.dialog-head,.form-foot { display:flex;align-items:center;justify-content:space-between;gap:15px; }
.dialog-head { margin-bottom:20px; }
dialog p { line-height:1.6; }
.form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px; }
form label { display:grid;gap:6px;font-weight:550;font-size:.88rem; }
form label input,form label select { width:100%;font-weight:400; }
.form-foot { justify-content:flex-end;border-top:1px solid var(--line);margin-top:18px;padding-top:16px;flex-wrap:wrap; }
.error { color:#a63d34;font-size:.9rem; }
.error:not(:empty) { background:#fff1ed;border-radius:6px;padding:9px 12px;margin-top:14px; }
.entry-ident { display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;background:#f2f6f1;border-radius:8px;padding:12px 14px;margin-bottom:18px; }
.entry-ident small { color:var(--muted);font-size:.84rem; }
.entry-ident small:last-child { width:100%; }
.sp-attempt {min-width:0;border:0;border-bottom:1px solid var(--line);padding:0 0 12px;margin:14px 0;}
.sp-attempt legend {font-size:.93rem;font-weight:650;margin-bottom:7px;}
.sp-attempt>div {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.sp-attempt label {font-size:.78rem;color:var(--muted);font-weight:450;}
.sp-attempt-result {display:block;color:var(--muted);font-size:.75rem;font-weight:400;line-height:1.45;margin-top:3px;}
.metrics { margin-bottom:16px; }
.score-box { background:#edf5e9;border:1px solid #d8e7d4;padding:15px;border-radius:8px;margin-bottom:16px; }
.score-head { display:flex;align-items:baseline;gap:20px; }
.score-head strong { font-size:1.4rem;color:var(--green); }
.score-head small { font-size:.88rem; }
.point-grid { display:flex;flex-wrap:wrap;gap:5px 14px;margin-top:10px;font-size:.82rem; }
.point-grid b { margin-left:5px; }
details { margin-top:16px;font-size:.9rem; }
summary { cursor:pointer;color:var(--green);font-weight:600; }
.revision { display:grid;gap:3px;padding:10px 0;border-bottom:1px solid var(--line); }
.revision p { color:var(--muted);font-size:.83rem; }
.checklist { max-height:42dvh;overflow:auto;border-top:1px solid var(--line);margin-top:10px; }
.check { display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:7px 0; }
.check input { width:17px;min-height:17px;accent-color:var(--green); }
.check small { display:block;color:var(--muted);font-weight:400; }
.file-label { margin-top:16px; }
#import-form>.button { margin:10px 0; }
#toast { position:fixed;bottom:24px;left:50%;transform:translateX(-50%);border-radius:8px;background:#193d2d;color:white;padding:10px 18px;z-index:8;opacity:0;pointer-events:none;max-width:90vw;transition:opacity .15s; }
#toast.show { opacity:1; }
.login { min-height:100dvh;display:grid;place-items:center;padding:20px;background:linear-gradient(140deg,#deecd9,#f5f7f5 54%); }
.login-box { border:1px solid var(--line);background:white;padding:34px;width:min(420px,100%);border-radius:16px; }
.login-box .brand { margin:0; }
.login h1 { font-size:1.62rem;margin:25px 0 20px; }
.login form { display:grid;gap:14px; }
.login-box>.button { margin-top:12px;width:100%; }
@media(max-width:1100px) {
  .layout { grid-template-columns:182px minmax(0,1fr); }
  aside { padding-left:10px;padding-right:10px; }
  .stat { padding:13px; }
  .panel:not(.table-panel) { padding:17px; }
  .distribution { gap:12px; }
  .legend { min-width:96px; }
}
@media(max-width:840px) {
  .layout { grid-template-columns:1fr; }
  aside { display:none; }
  aside.opened { display:flex;position:fixed;top:56px;bottom:0;width:214px;height:calc(100dvh - 56px);box-shadow:10px 0 30px #1a422426; }
  aside .side-title { margin-top:26px; }
  .mobile-menu { display:flex; }
  .topbar { height:56px; }
  .hero { min-height:150px; }
  .heading { flex-wrap:wrap; }
  .stats { gap:10px; }
}
@media(max-width:620px) {
  #main { padding:20px 14px 32px; }
  .topbar { padding:0 13px; }
  .topbar time { font-size:.76rem;gap:4px; }
  .crumb { gap:6px;font-size:.8rem; }
  .heading { margin-bottom:15px; }
  .heading .actions,.heading .picker { max-width:100%; }
  .hero { padding:18px;gap:10px; }
  .hero h2 { font-size:1.3rem; }
  .hero-meta { gap:5px 10px;font-size:.77rem; }
  .hero-rate strong { font-size:2.65rem; }
  .hero-meter { width:65px; }
  .stats { grid-template-columns:1fr 1fr;margin:12px 0; }
  .charts { grid-template-columns:1fr;gap:12px;margin-bottom:12px; }
  .distribution { margin:12px auto;min-height:110px; }
  .donut { width:110px; }
  .class-list { max-height:190px; }
  .panel-title { flex-wrap:wrap; }
  .toolbar,.table-panel>.panel-title { padding:13px; }
  .search { width:100%; }
  .search input { flex:1; }
  .pager { padding:11px; }
  td:first-child,th:first-child { padding-left:13px; }
  dialog { padding:17px; }
  .form-grid { gap:12px 9px; }
}
@media(prefers-reduced-motion:reduce) { * { transition:none!important; } }

.account-tools { margin-top:auto; padding:10px 0; }
.account-tools + .account { margin-top:0; }
.password-fields { display:grid; gap:14px; }
.demo-choices { border-top:1px solid var(--line);margin-top:22px;padding-top:16px; }
.demo-choices small { display:block;margin-bottom:10px;color:var(--muted); }
.demo-choices .button { flex:1;white-space:nowrap; }
aside nav { overflow-y:auto; }

/* 专项测评报告 */
.sp-filters,.sp-report-tools,.sp-tabs,.sp-sports,.sp-milestones,.sp-milestone,.sp-methods article footer {
  display:flex;align-items:center;gap:12px;
}
.sp-filters,.sp-report-tools { flex-wrap:wrap;justify-content:space-between; }
.sp-filters label,.sp-report-tools label { display:flex;align-items:center;gap:8px;color:var(--muted);font-size:.87rem; }
.sp-filters select { max-width:min(280px,70vw); }
.sp-sports { padding:4px;border:1px solid #d7e1d7;border-radius:9px;gap:2px;background:white; }
.sp-sports button,.sp-tabs button { font:inherit;font-weight:600;min-height:36px;color:#506058;border:0;background:transparent; }
.sp-sports button { border-radius:6px;padding:4px 19px; }
.sp-sports [aria-pressed=true] { background:#205b46;color:white; }
.sp-tabs { gap:24px;margin-top:17px;border-bottom:1px solid var(--line); }
.sp-tabs button { padding:9px 1px 12px;margin-bottom:-1px;border-bottom:3px solid transparent; }
.sp-tabs [aria-pressed=true] { color:var(--green);border-color:var(--green); }
.sp-report-tools { margin:14px 0; }
.sp-report-tools small,.sp-card small,.sp-methods small { color:var(--muted); }
.sp-report-tools .button { min-height:34px;font-size:.83rem; }
.sp-banner { background:#154b3e;color:#fff;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px clamp(16px,3vw,38px); }
.sp-banner p { color:#c8e6bd;font-size:.84rem;font-weight:650; }
.sp-banner h2 { margin:6px 0;font-size:clamp(1.45rem,2.25vw,2.2rem);letter-spacing:-.045em; }
.sp-banner small { display:block;font-size:.8rem;color:#d3e6dd; }
.sp-banner-score { white-space:nowrap;text-align:right;line-height:1.15; }
.sp-banner-score strong { font:650 clamp(2.6rem,5vw,4.3rem)/1 Arial,sans-serif;color:#d9f795;letter-spacing:-.05em; }
.sp-banner-score span { font-weight:550;color:#e3f1dd; }
.sp-banner-score small { margin-top:5px; }
.sp-milestones { background:#fff;border:1px solid var(--line);border-radius:10px;padding:13px clamp(10px,3vw,38px);justify-content:space-between;margin:12px 0; }
.sp-milestone { gap:8px; }
.sp-milestone:not(:last-child) { flex:1; }
.sp-milestone:not(:last-child):after { content:'';height:1px;flex:1;background:var(--line);margin:0 15px; }
.sp-milestone>span { display:grid;place-items:center;width:23px;height:23px;background:#edf1ed;border-radius:50%;font-size:.7rem; }
.sp-milestone.done>span { color:#fff;background:#24765a; }
.sp-milestone b,.sp-milestone small { display:block;font-size:.83rem; }
.sp-milestone small { color:var(--muted);font-size:.74rem;margin-top:2px; }
.sp-card { margin-top:14px; }
.sp-growth-grid,.sp-plan-grid,.sp-analysis { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px; }
.sp-growth-grid { align-items:center;grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr); }
.sp-insight strong { display:block;font:650 clamp(2.1rem,3vw,3.1rem)/1.2 Inter,"PingFang SC",sans-serif;color:var(--green);margin-top:14px; }
.sp-insight small { font-size:.95rem; }
.sp-insight p,.sp-drills p,.sp-dose p { color:var(--muted);font-size:.88rem;line-height:1.6;margin:5px 0; }
.sp-insight b { display:inline-block;font-size:.85rem;margin:8px 0;color:#295f48; }
.sp-trend { width:100%;display:block;max-height:175px;overflow:visible; }
.sp-trend text,.sp-radar text,.sp-route text { font:10px Inter,"PingFang SC",sans-serif;fill:#52675c; }
.sp-trend circle { fill:#236a4e;stroke:white;stroke-width:2; }
.sp-trend .sp-value { fill:#20573f;font-size:12px;font-weight:bold; }
.sp-gridline { stroke:#dce5de;fill:none; }
.sp-gridline.target { stroke:#a2b68f;stroke-dasharray:4 4; }
.sp-line { fill:none;stroke:#428165;stroke-width:2.5; }
.sp-plan-grid { grid-template-columns:minmax(0,1.4fr) minmax(190px,.65fr);align-items:stretch;margin:14px 0; }
.sp-drills>div { padding:10px 0;border-top:1px solid var(--line); }
.sp-drills span { color:#8b532f;margin-left:8px;font-size:.81rem; }
.sp-drills .sp-coach-cue {border-left:2px solid var(--line);padding-left:10px;margin-top:8px;}
.sp-coach-cue strong {display:block;font-size:.77rem;color:var(--ink);}
.sp-priority {overflow-wrap:anywhere;}
.sp-generate {margin-top:10px;}
.sp-visits,.sp-three-values {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
.sp-visits {margin:12px 0;}
.sp-tabs+.sp-banner {margin-top:12px;}
.sp-visits>button,.sp-visits>div {display:grid;align-content:center;gap:3px;text-align:left;padding:10px 8px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);}
.sp-visits>button:hover {border-color:var(--green);}
.sp-visits b {font-size:1.22rem;font-variant-numeric:tabular-nums;}
.sp-visits small,.sp-three-values small {font-size:.74rem;color:var(--muted);}
.sp-visits em,.sp-three-values em {font-size:.75rem;font-weight:500;font-style:normal;}
.sp-family-summary>p {color:var(--ink);line-height:1.7;}
.sp-family-summary .panel-title,.sp-family-plan .panel-title,.sp-evidence .panel-title {align-items:baseline;flex-wrap:wrap;gap:4px 10px;}
.sp-overall,.sp-weekly {display:flex;align-items:baseline;gap:5px 10px;flex-wrap:wrap;}
.sp-overall {margin-top:10px;color:var(--muted);font-size:.84rem;}
.sp-overall b {color:var(--ink);font-variant-numeric:tabular-nums;}
.sp-weekly {margin:12px 0;padding:10px 12px;border-radius:8px;background:#f4f5ef;}
.sp-weekly strong {color:var(--green);font-size:1.15rem;}
.sp-weekly span,.sp-family-plan footer {font-size:.8rem;color:var(--muted);}
.mobile-app .sp-weekly {background:#fff3e6;}
.sp-family-plan article,.sp-evidence article {padding:12px 0;border-bottom:1px solid var(--line);}
.sp-family-plan h3,.sp-evidence h3 {font-size:1rem;margin:0;}
.sp-family-plan article p {font-size:.9rem;line-height:1.6;margin:5px 0 0;}
.sp-family-plan .sp-watch,.sp-evidence article p {font-size:.82rem;color:var(--muted);}
.sp-watch b {margin-right:6px;}
.sp-family-plan footer {margin-top:8px;}
.sp-evidence-title {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;}
.sp-delta {font-size:.76rem;color:var(--muted);}
.sp-delta.up {color:#17674f;}.sp-delta.down {color:#984827;}
.sp-three-values {list-style:none;margin:10px 0 0;padding:0;}
.sp-three-values b,.sp-three-values small {display:block;}
.sp-three-values b {font-size:1rem;font-variant-numeric:tabular-nums;}
.sp-chart-detail summary {min-height:40px;cursor:pointer;font-weight:650;}
.sp-copy-text {display:block;width:100%;font:inherit;}
@media print {
  .sp-card.sp-family-plan,.sp-card.sp-evidence {break-inside:auto;}
  .sp-family-plan article,.sp-evidence article {break-inside:avoid;}
}
.sp-dose { background:#f1f6eb;border-radius:8px;padding:15px; }
.sp-dose span,.sp-dose b,.sp-dose small { display:block;font-size:.8rem; }
.sp-dose strong { display:block;color:#29573d;font-size:1.35rem;margin:6px 0; }
.sp-dose b { margin-top:8px; }
.sp-card .sp-strength { padding-top:10px;border-top:1px solid var(--line);font-size:.86rem; }
.sp-radar { width:100%;max-height:210px; }
.sp-radar polygon,.sp-radar path { fill:none;stroke:#d8e3da; }
.sp-radar .sp-profile { fill:#7bb09055;stroke:#318463;stroke-width:2; }
.sp-radar tspan { fill:#266447;font-weight:bold; }
.sp-bars { margin:23px 0; }
.sp-bars>div { display:grid;grid-template-columns:46px 1fr 40px;gap:8px;align-items:center;margin:14px 0;font-size:.85rem; }
.sp-bars i,.sp-bars u { display:block;height:7px;background:#eaf0ea;border-radius:5px; }
.sp-bars b { text-align:right; }
.sp-methods { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(275px,100%),1fr));gap:14px;margin:18px 0; }
.sp-methods article { border:1px solid var(--line);padding:16px;border-radius:9px;display:flex;flex-direction:column;align-items:stretch; }
.sp-methods h3 { margin:0 0 4px;font-size:1rem; }
.sp-methods article p,.sp-card details p { color:var(--muted);font-size:.88rem;line-height:1.65;margin:12px 0; }
.sp-methods article footer { margin-top:auto;padding-top:9px;border-top:1px solid var(--line);color:var(--green);font-size:.8rem; }
.sp-methods footer i { height:12px;width:1px;background:var(--line); }
.sp-route { max-height:100px;width:100%;background:#f2f6f0;margin-bottom:12px;fill:#225941; }
.sp-route .court { stroke:#bfd2bd;fill:none; }.sp-route .route { stroke:#4b8465;stroke-width:2;stroke-dasharray:4 3;fill:none; }.sp-route .cones { fill:#c87740; }
.sp-analysis { gap:14px; }
@media(max-width:700px) {
  .sp-growth-grid,.sp-plan-grid,.sp-analysis { grid-template-columns:1fr;gap:9px; }
  .sp-trend { margin-top:8px; }
  .sp-milestones { gap:5px; }.sp-milestone { gap:5px; }.sp-milestone:not(:last-child):after { margin:0 3px; }
  .sp-report-tools { gap:5px; }.sp-report-tools select { max-width:67vw; }
}
@media(max-width:440px) {
  .sp-sports button { padding:4px 13px; }.sp-milestone>span { width:17px;height:17px; }.sp-milestone small { font-size:.65rem; }
  .sp-banner { gap:8px;padding:16px 12px; }.sp-banner-score strong { font-size:2.5rem; }
  .sp-banner h2 { font-size:1.25rem; }
}
@media print {
  .sp-generate {display:none!important;}
  body:has(.sp-banner) { background:white; }
  body:has(.sp-banner) :is(#sidebar,.topbar,.sp-heading,.sp-filters,.sp-tabs,.sp-report-tools,#toast) { display:none; }
  body:has(.sp-banner) .layout { display:block; }
  body:has(.sp-banner) #main { padding:0;max-width:none; }
  .sp-card,.sp-banner,.sp-milestones { break-inside:avoid;print-color-adjust:exact; }
  .sp-card .scroll { overflow:visible; }.sp-card table { min-width:0; }
}

.station-selectors { display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:15px;margin-bottom:18px; }
.station-selectors label { display:grid;gap:7px;min-width:0;font-size:.86rem;font-weight:600; }
.station-selectors select { width:100%;font-weight:400; }
.station-layout { display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.43fr);align-items:start;gap:18px; }
.station-summary { position:sticky;top:14px; }
.station-summary progress { display:block;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;accent-color:var(--green);background:#e6eee6; }
.station-summary progress::-webkit-progress-bar { background:#e6eee6; }
.station-summary progress::-webkit-progress-value { background:var(--green); }
.station-summary progress::-moz-progress-bar { background:var(--green); }
.station-count { margin:14px 0 10px;color:var(--muted);font-size:.88rem; }
.station-count strong { font-size:2rem;font-variant-numeric:tabular-nums;letter-spacing:-.04em;color:var(--green); }
.station-missing { margin:10px 0 0;padding:0;list-style:none;max-height:40vh;overflow-y:auto; }
.station-missing button { width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;padding:7px 1px;color:var(--ink); }
.station-missing button:hover { color:var(--green);background:#f1f7ef; }
.station-missing small,.station-roster h2 small { font-size:.81rem;font-weight:400;color:var(--muted); }
.station-toggle { display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:.88rem; }
.station-toggle input { width:17px;height:17px;min-height:0;accent-color:var(--green); }
.station-roster td { padding-top:7px;padding-bottom:7px; }
.station-value { width:8em;max-width:100%;font-size:1rem;font-variant-numeric:tabular-nums; }
.station-value[aria-invalid=true] { border-color:#ae473b; }
.station-readonly { padding-left:10px;font-variant-numeric:tabular-nums; }
.station-conflict { white-space:normal;max-width:20em;font-size:.82rem;color:#8b4438;margin-top:5px; }
.station-conflict button { border:0;background:#f7ede7;margin:2px;padding:4px;color:#743b2e; }
.station-footer { position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 -3px 14px #193b2610;padding:12px 18px;margin-top:14px; }
.station-footer strong,.station-footer small { display:block; }
.station-footer strong { font-size:.91rem; }
.station-footer small { margin-top:3px;color:var(--muted);font-size:.8rem; }
.station-footer button { white-space:nowrap; }
@media(max-width:920px) {
  .station-layout { grid-template-columns:minmax(0,1fr); }
  .station-summary { grid-row:1;position:static; }
  .station-missing { display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));column-gap:15px;max-height:110px; }
}
@media(max-width:620px) {
  .station-selectors { grid-template-columns:1fr 1fr;gap:10px; }
  .station-selectors label:first-child { grid-column:1/-1; }
  .station-layout { gap:12px; }
  .station-count { margin:5px 0; }
  .station-summary details { margin-top:9px; }
  .station-roster td,.station-roster th { padding-left:9px;padding-right:8px; }
  .station-roster .person { min-width:0; }
  .station-value { width:5.5em; }
  .station-footer { gap:8px;padding:10px; }
}
body:has(#station) #toast { bottom:100px; }
.sp-th-level { font-weight:400;color:var(--muted); }
.sp-goals { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px;margin-top:12px; }
.sp-goals>div { border-top:1px solid var(--line);padding-top:10px; }
.sp-goals span { margin-left:8px;color:var(--green); }
.sp-goals small { display:block;margin-top:4px; }
@media(max-width:620px) {
  body:has(.sp-heading) .crumb>span,body:has(.sp-heading) .crumb>i { display:none; }
  .sp-comparison table { table-layout:fixed;white-space:normal;font-size:.76rem;line-height:1.5; }
  .sp-comparison th,.sp-comparison td { padding:7px 2px;text-align:center; }
  .sp-comparison th:first-child,.sp-comparison td:first-child { width:29%;text-align:left;padding-left:10px; }
  .sp-comparison .sp-th-level { display:block; }
  .sp-comparison button { display:inline-block;padding:0;font-size:inherit; }
  .sp-comparison button span { display:block;font-size:.68rem; }
}

.login-tabs { display:flex;gap:3px;padding:3px;background:#eef3ed;border-radius:9px;margin:0 0 19px; }
.login-tabs button { flex:1;border:0;border-radius:6px;background:transparent;color:var(--muted);padding:8px; }
.login-tabs button[aria-pressed=true] { background:white;color:var(--green);font-weight:650;box-shadow:0 1px 4px #193b261a; }
.platform-bar { background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px clamp(16px,5vw,70px); }
.platform-bar .brand { margin:0; }
.platform-bar .actions b { font-size:.88rem; }
.platform-main { max-width:1150px;margin:0 auto;padding:36px clamp(15px,4vw,55px); }
.tenant-name { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(44vw,23em); }
@media (max-width:620px) {
  .platform-bar .actions { gap:4px; }
  .platform-bar .actions b { display:none; }
  .platform-main { padding-top:22px; }
  .tenant-name { max-width:25vw; }
}

.signup-intro,.sub-current small { color:var(--muted);font-size:.89rem;line-height:1.6; }
.signup-intro { margin:-4px 0 16px; }
.signup-link { margin:14px auto 0;width:fit-content; }
.school-service { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px clamp(15px,4vw,52px);background:#eef6ec;color:var(--green);font-size:.88rem; }
.school-service.ended { background:#fff3dc;color:#714b19; }
.school-service strong,.school-service small,.sub-current strong,.sub-current small { display:block; }
.school-service .text-btn { flex-shrink:0; }
.sub-current { padding:12px 14px;margin-bottom:14px;border-radius:7px;background:#eff5ee; }
.subscription-preview { font-size:.9rem;color:var(--green);background:#f3f7f1;padding:10px 12px;border-radius:6px; }
#renewal-payee [hidden], #renewal-prices [hidden], #subscription-form [hidden], #renewal-apply [hidden], #renewal-review [hidden] { display:none; }
.subscription-history ol { list-style:none;padding:0;margin:10px 0;max-height:240px;overflow:auto; }
.subscription-history li { padding:9px 0;border-top:1px solid var(--line); }
.subscription-history li div { display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap; }
.subscription-history span,.subscription-history small { font-size:.8rem;color:var(--muted); }
.subscription-history p { font-size:.85rem;margin:5px 0; }

#platform-renewal-queue { margin-bottom:20px; }
.renewal-queue { margin:0; padding:0 20px; list-style:none; }
.renewal-queue li { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:12px 0; }
.renewal-queue li + li { border-top:1px solid var(--line); }
.renewal-empty { margin:0; padding:12px 20px 18px; color:var(--muted); }
.school-service { flex-wrap:wrap; }
.school-service small { margin-top:3px; }
.subscription-history { margin-top:14px; }

.renewal-amount { display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:6px;background:#eff5ee; }
.renewal-amount strong { font-size:1.3rem;color:var(--green);font-variant-numeric:tabular-nums; }
.payment-proof { display:block;max-width:100%;max-height:300px;object-fit:contain; }
.proof-download { color:var(--green);overflow-wrap:anywhere; }

.payee-section { padding:14px;border:1px solid var(--line);border-radius:8px; }
.payee-section h3 { margin:0 0 10px;font-size:1rem; }
.payee-instructions { display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px; }
.payee-bank { display:grid;grid-template-columns:auto 1fr;gap:7px 12px;flex:1 1 200px;margin:0;font-size:.92rem; }
.payee-bank dt { color:var(--muted); }
.payee-bank dd { margin:0;overflow-wrap:anywhere; }
.payee-number { font-variant-numeric:tabular-nums;user-select:all; }
.payee-qr { margin:0;text-align:center; }
.payee-qr img,.payee-preview { display:block;width:160px;max-width:100%;height:auto;max-height:220px;object-fit:contain; }
.payee-qr a { color:var(--green);font-size:.83rem; }
.order-payee { margin:9px 0; }
.order-payee .payee-instructions { margin-top:8px; }

dialog.order-book-dialog {width:min(900px,calc(100% - 28px));}
.order-filters,.ledger-overview {display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;}
.order-filters label {flex:1 1 135px;min-width:0;}
.order-filters select,.order-filters input {width:100%;min-width:0;}
.ledger-overview {align-items:center;justify-content:space-between;margin:14px 0;font-size:.92rem;}
.ledger-row {border-top:1px solid var(--line);padding:11px 0;}
.ledger-row>summary {display:grid;grid-template-columns:minmax(120px,1fr) minmax(130px,1fr) auto;gap:8px;align-items:center;cursor:pointer;}
.ledger-row>summary b,.ledger-row>summary small {display:block;overflow-wrap:anywhere;}
.ledger-row>summary small,.ledger-detail dt {color:var(--muted);font-size:.84rem;}
.ledger-status {color:var(--green);font-size:.85rem;}
.ledger-status[data-stage=PENDING],.ledger-status[data-stage=AWAITING_PROOF] {color:#815b15;}
.ledger-status[data-stage=DECLINED] {color:#954435;}
.ledger-status::after {content:'⌄';display:inline-block;margin-inline-start:6px;}
.ledger-row[open]>summary .ledger-status::after {transform:rotate(180deg);}
.ledger-detail {padding:8px 0;overflow-wrap:anywhere;}
.ledger-detail dl {display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:6px 0;}
.ledger-detail dd {margin:0;}
.order-book .pager:empty {display:none;}
@media(max-width:520px) {
  .ledger-row>summary {grid-template-columns:1fr auto;}
  .ledger-row>summary span:nth-child(2) {grid-row:2;grid-column:1/-1;}
  .ledger-status {grid-column:2;grid-row:1;}
}
