:root {
  --ink: #111820;
  --ink-soft: #25303a;
  --court: #171f27;
  --orange: #f3a631;
  --orange-dark: #9a5e08;
  --orange-pale: #fff3df;
  --cream: #f3f6f8;
  --paper: #fff;
  --white: #fff;
  --line: #dce3e9;
  --line-dark: #43505b;
  --muted: #66737f;
  --green: #159a73;
  --red: #c93429;
  --blue: #2c6cf6;
  --shadow: 0 18px 46px rgba(25, 42, 58, .08);
  --radius: 22px;
  --sidebar: 244px;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --display: "Arial Narrow", "DIN Alternate", "Roboto Condensed", "PingFang SC", sans-serif;
  --utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; background: var(--cream); }
body { min-height: 100vh; margin: 0; background: var(--cream); color: var(--ink); font: 15px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(44, 108, 246, .26); outline-offset: 3px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; border-radius: 9px; background: var(--paper); color: var(--ink); font-weight: 800; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { display: block; margin-bottom: 10px; color: var(--orange-dark); font: 850 11px/1.3 var(--utility); letter-spacing: .13em; }

/* 游客入口沿用服务总览与两套旧系统的品牌头。 */
.guest-shell { min-height: 100vh; }
.auth-topbar { width: min(1340px, calc(100% - 48px)); min-height: 108px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.auth-brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.auth-brand img { width: 51px; height: 51px; border-radius: 15px; object-fit: cover; background: #fff; }
.auth-brand span { display: grid; line-height: 1.2; }
.auth-brand strong { font-size: 15px; font-weight: 900; letter-spacing: .02em; }
.auth-brand small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.suite-nav { padding: 5px; display: flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.76); }
.suite-nav a, .suite-nav span { padding: 8px 12px; border-radius: 9px; color: #64717c; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.suite-nav a:hover { background: #fff; color: var(--ink); }
.suite-nav [aria-current=page] { background: var(--ink); color: #fff; }
.guest-main { width: min(1340px, calc(100% - 48px)); margin: 0 auto; }
.hero { position: relative; min-height: 470px; padding: 64px 62px; overflow: hidden; border-radius: 34px; background: var(--ink); color: var(--white); box-shadow: 0 28px 70px rgba(17,24,32,.18); }
.hero-copy { position: relative; z-index: 2; max-width: 59%; }
.hero .eyebrow { color: var(--orange); }
.hero h1 { margin-bottom: 22px; font: 950 clamp(46px, 5vw, 70px)/1.06 var(--display); letter-spacing: -.06em; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-copy > p { max-width: 610px; margin-bottom: 25px; color: #b7c1c9; font-size: 15px; line-height: 1.85; }
.hero-warning { max-width: 610px; padding: 14px 16px; display: flex; align-items: flex-start; gap: 11px; border: 1px solid #34414c; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; background: #1d2730; color: #cbd3d8; font-size: 12px; }
.hero-warning i { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #241507; font: 900 12px/1 var(--utility); }
.hero-warning b { display: block; margin-bottom: 2px; color: #fff; }
.half-court { position: absolute; right: 2%; bottom: -148px; width: 590px; height: 590px; border: 2px solid #414c55; border-radius: 50% 0 0 0; opacity: .92; }
.half-court::before { position: absolute; inset: 46px; border: 2px solid #414c55; border-radius: 50% 0 0 0; content: ""; }
.court-label { position: absolute; top: 48px; right: 150px; color: #76818a; font: 9px/1 var(--utility); letter-spacing: .12em; transform: rotate(-90deg); transform-origin: right top; }
.court-midline { position: absolute; left: -230px; right: 0; bottom: 147px; height: 2px; background: #414c55; }
.court-circle { position: absolute; left: -100px; bottom: 70px; width: 155px; height: 155px; border: 2px solid #414c55; border-radius: 50%; }
.court-key { position: absolute; left: 178px; bottom: 147px; width: 105px; height: 108px; border: 2px solid #414c55; border-bottom: 0; }
.court-arc { position: absolute; left: 192px; bottom: 203px; width: 78px; height: 78px; border: 2px solid #414c55; border-radius: 50%; }
.half-court b { position: absolute; right: 150px; bottom: 167px; color: var(--orange); font: 950 130px/.8 var(--display); letter-spacing: -.08em; }
.half-court small { position: absolute; right: 152px; bottom: 125px; color: #84909a; font: 9px/1 var(--utility); letter-spacing: .14em; }
.status-region { margin: 16px 0; }
.loading-card { min-height: 84px; padding: 18px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.loading-card > i { width: 22px; height: 22px; border: 3px solid var(--orange-pale); border-top-color: var(--orange); border-radius: 50%; animation: spin .75s linear infinite; }
.loading-card div { display: grid; }
.loading-card span { color: var(--muted); font-size: 12px; }
.loading-card button { margin-left: auto; min-height: 42px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 800; }
.loading-card.is-error > i { display: grid; place-items: center; border: 0; background: var(--red); color: #fff; animation: none; }
.loading-card.is-error > i::after { content: "!"; font: 800 12px var(--utility); }
@keyframes spin { to { transform: rotate(360deg); } }
.guest-layout { margin: 18px 0 34px; display: grid; grid-template-columns: minmax(300px,.68fr) minmax(0,1.32fr); align-items: start; gap: 18px; }
.login-gate { position: sticky; top: 18px; padding: 35px; border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.login-gate h2 { margin-bottom: 14px; font: 900 clamp(30px,4vw,46px)/1.13 var(--display); letter-spacing: -.045em; }
.login-gate p { color: var(--muted); font-size: 13px; }
.primary-link { min-height: 50px; margin-top: 22px; padding: 10px 15px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; text-decoration: none; font-weight: 850; box-shadow: 0 12px 24px rgba(17,24,32,.16); }
.primary-link span { color: var(--orange); font-size: 20px; }
.auth-filing { padding: 24px 20px 34px; color: #7a8590; font-size: 11px; text-align: center; }
.auth-filing a { color: inherit; text-decoration: none; }

/* 登录后统一工作台壳层。 */
.app-shell { min-height: 100vh; }
.side-nav { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar); padding: 26px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fff; }
.nav-brand { padding: 0 8px 24px; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.nav-brand img { width: 43px; height: 43px; border-radius: 13px; object-fit: cover; background: #fff; }
.nav-brand span { display: grid; }
.nav-brand strong { font-size: 14px; font-weight: 900; }
.nav-brand small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.side-nav > nav { display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 13px; display: flex; align-items: center; gap: 12px; background: transparent; color: #586571; text-align: left; font-size: 14px; font-weight: 720; }
.nav-item:hover { background: #f5f7f9; }
.nav-item.is-active { background: var(--ink); color: #fff; }
.nav-icon { width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 19px; }
.side-suite { margin-top: 24px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; display: grid; gap: 7px; background: #f7f9fb; }
.side-suite small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.side-suite span, .side-suite a { min-height: 34px; padding: 0 9px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 750; text-decoration: none; }
.side-suite span { background: var(--ink); color: #fff; }
.side-suite a { color: var(--blue); }
.side-suite a:hover { background: #edf3fc; }
.side-security { margin-top: auto; padding: 16px 13px; border-radius: 15px; display: flex; gap: 10px; background: #f2f8f6; color: #4f6d63; font-size: 11px; line-height: 1.65; }
.side-security i { width: 9px; height: 9px; margin-top: 4px; flex: 0 0 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(21,154,115,.12); }
.app-main { min-height: 100vh; margin-left: var(--sidebar); }
.top-bar { position: sticky; z-index: 15; top: 0; height: 68px; padding: 0 clamp(22px,4vw,52px); display: flex; align-items: center; justify-content: flex-end; border-bottom: 1px solid rgba(220,227,233,.85); background: rgba(243,246,248,.9); backdrop-filter: blur(16px); }
.mobile-brand, .mobile-suite-link { display: none; }
.top-status { margin-right: 18px; display: flex; align-items: center; gap: 8px; color: #71808b; font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(21,154,115,.11); }
.account-menu { position: relative; }
.account-button { height: 42px; padding: 0 10px 0 7px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 9px; background: #fff; }
.account-button > span { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 850; }
.account-button b { font-size: 12px; }
.account-button i { width: 7px; height: 7px; margin: -3px 2px 0 3px; border-right: 1.5px solid #74808a; border-bottom: 1.5px solid #74808a; transform: rotate(45deg); }
.account-popover { position: absolute; top: 49px; right: 0; width: 205px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.account-role { padding: 9px 10px 12px; border-bottom: 1px solid #edf1f4; color: var(--muted); font-size: 11px; }
.account-popover button, .account-popover a { width: 100%; min-height: 38px; padding: 0 10px; border: 0; border-radius: 9px; display: flex; align-items: center; background: transparent; color: var(--ink); text-align: left; text-decoration: none; font-size: 12px; }
.account-popover button:hover, .account-popover a:hover { background: #f5f7f9; }
.suite-context { min-height: 38px; margin: 14px clamp(22px,4vw,52px) 0; padding: 8px 12px; border: 1px solid #d7e3f2; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #f2f7fd; color: var(--muted); font-size: 11px; }
.suite-context a { color: #245fae; font-weight: 800; text-decoration: none; white-space: nowrap; }
.page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 70px; }
.app-filing { padding: 0 20px 28px; color: #7a8590; font-size: 11px; text-align: center; }
.app-filing a { color: inherit; text-decoration: none; }
.mobile-nav { display: none; }

/* 工作区 */
.workspace-shell { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 17px; align-items: start; }
.level-lane { position: sticky; top: 86px; min-height: 660px; padding: 13px 5px 11px; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--ink); border-radius: 22px; background: var(--court); color: #fff; }
.trial-level-lane { min-height: 820px; }
.lane-title, .lane-foot { writing-mode: vertical-rl; color: #a7b1b9; font: 8px/1 var(--utility); letter-spacing: .12em; }
.lane-title { margin-bottom: 8px; }
.lane-foot { margin-top: 8px; }
.level-rail { position: relative; flex: 1; width: 100%; display: grid; align-content: space-around; justify-items: center; }
.level-rail::before { position: absolute; top: 18px; bottom: 18px; left: calc(50% - 1px); width: 2px; background: #4c5862; content: ""; }
.level-button { position: relative; z-index: 1; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 2px solid #66727d; border-radius: 50%; background: var(--court); color: #dbe1e5; font: 850 12px/1 var(--utility); }
.level-button:hover { border-color: var(--orange); }
.level-button.is-active { border-color: var(--orange); background: var(--orange); color: #241507; box-shadow: 0 0 0 4px var(--court); }
.trial-level-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.trial-level-button b { font: 850 11px/1 var(--utility); }
.trial-level-button small { font: 750 7px/1 var(--utility); }
.observe-main, .content-view { min-width: 0; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.content-view { margin-bottom: 24px; }
.section-heading { margin-bottom: 21px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { margin: 0; font: 900 clamp(28px,4vw,42px)/1.12 var(--display); letter-spacing: -.04em; }
.section-heading p { max-width: 660px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.level-badge { min-width: 54px; min-height: 54px; padding: 6px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 17px; background: var(--orange); color: #241507; font: 900 18px/1 var(--display); }
.trial-badge { width: 64px; height: 64px; align-content: center; text-align: center; }
.trial-badge b { font: 900 18px/1 var(--display); }
.trial-badge small { margin-top: 4px; font: 800 8px/1 var(--utility); }
.notice { margin-bottom: 15px; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px; border: 1px solid #f1d39d; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; background: #fff8e9; color: #76551c; font-size: 12px; }
.notice b { color: var(--ink); }
.notice p { margin: 2px 0 0; }
.notice a { align-self: center; color: var(--orange-dark); font-weight: 850; }
.context-card { margin-bottom: 15px; padding: 16px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 17px; background: #f7f9fb; }
label { display: grid; gap: 7px; color: #586571; font-size: 12px; font-weight: 750; }
select, input, textarea { width: 100%; min-width: 0; min-height: 48px; padding: 10px 13px; border: 1px solid #d7dfe5; border-radius: 13px; background: #f9fbfc; color: var(--ink); }
select:focus, input:focus, textarea:focus { border-color: #93a8bb; background: #fff; box-shadow: 0 0 0 4px rgba(44,108,246,.07); outline: 0; }
textarea { resize: vertical; }
select:disabled, input:disabled, textarea:disabled, button:disabled { opacity: .56; cursor: not-allowed; }
.age-match { margin: -3px 0 16px; padding: 11px 13px; display: flex; align-items: flex-start; gap: 10px; border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; background: #f2f7fd; color: var(--muted); font-size: 11px; }
.age-match b { flex: 0 0 auto; color: var(--ink); }
.route-board { position: relative; margin-bottom: 18px; padding: 19px 17px 16px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 18px; background: var(--court); color: #fff; }
.route-board::after { position: absolute; right: -56px; bottom: -92px; width: 180px; height: 180px; border: 1px solid #4d5963; border-radius: 50%; content: ""; pointer-events: none; }
.route-board-head, .scoreboard-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.route-board-head small, .scoreboard-head small { color: var(--orange); font: 800 9px/1 var(--utility); letter-spacing: .12em; }
.route-board-head h3, .scoreboard-head h3 { margin: 5px 0 0; font: 900 21px/1.2 var(--display); }
.route-board-head > span { max-width: 180px; padding: 6px 8px; border: 1px solid #53606a; border-radius: 8px; color: #d7dee3; font: 750 8px/1.4 var(--utility); text-align: right; }
.route-steps { position: relative; z-index: 1; margin: 18px 0 13px; padding: 0; display: flex; gap: 18px; overflow-x: auto; list-style: none; scrollbar-color: var(--orange) var(--court); }
.route-steps li { position: relative; min-width: 108px; padding: 12px 11px; border: 1px solid #4d5963; border-radius: 11px; background: #202a33; }
.route-steps li:not(:last-child)::after { position: absolute; top: 50%; right: -16px; color: var(--orange); content: "→"; transform: translateY(-50%); }
.route-steps small { display: block; margin-bottom: 7px; color: #96a1a9; font: 700 8px/1 var(--utility); }
.route-steps span { display: block; font-size: 11px; font-weight: 800; line-height: 1.4; }
.route-note { position: relative; z-index: 1; margin: 0; color: #aeb8c0; font-size: 10px; }
.attempts-section, .test-section { border-top: 1px solid var(--line); }
.test-section-head { padding: 18px 0 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.test-section-head small { color: var(--orange-dark); font: 800 9px var(--utility); letter-spacing: .06em; }
.test-section-head h3 { margin: 4px 0 0; font: 900 23px/1.2 var(--display); }
.test-section-head > span { color: var(--muted); font: 10px var(--utility); }
.attempt-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.attempt-card { padding: 0 14px 14px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 10px 26px rgba(25,42,58,.045); }
.attempt-card > header { min-height: 56px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.attempt-card > header span { color: var(--orange-dark); font: 800 8px/1 var(--utility); letter-spacing: .08em; }
.attempt-card > header h4 { margin: 0; font-size: 15px; }
.attempt-card > header i { color: var(--muted); font-size: 9px; font-style: normal; }
.attempt-measures { margin: 14px 0; display: grid; align-items: start; gap: 11px; }
.attempt-measures.has-shooting { grid-template-columns: repeat(2,minmax(0,1fr)); }
.measure-input { display: grid; grid-template-columns: 1fr auto; border: 1px solid #cbd5dc; border-radius: 13px; overflow: hidden; background: #f9fbfc; }
.measure-input input, .measure-input select { min-height: 54px; border: 0; border-radius: 0; background: transparent; font: 900 24px/1 var(--display); box-shadow: none; }
.measure-input b { min-width: 52px; padding: 0 10px; display: grid; place-items: center; border-left: 1px solid var(--line); color: var(--muted); font: 800 9px/1 var(--utility); }
.attempt-measures label > small { color: var(--muted); font-size: 9px; font-weight: 500; }
.action-audit { margin: 0 0 12px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fff; }
.action-audit summary { min-height: 45px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: 11px; font-weight: 800; list-style: none; }
.action-audit summary::-webkit-details-marker { display: none; }
.action-audit summary b { padding: 4px 7px; border-radius: 7px; background: #eef2f5; color: var(--muted); font: 750 8px var(--utility); }
.action-audit[open] summary b { background: #fff0ee; color: var(--red); }
.action-audit > p { margin: 0; padding: 10px 11px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.action-chip-grid { padding: 10px 10px 11px; display: flex; flex-wrap: wrap; gap: 7px; }
.action-chip-grid label { position: relative; cursor: pointer; }
.action-chip-grid input, .choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.action-chip-grid span { min-height: 36px; padding: 8px 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #f5f7f9; color: var(--muted); font-size: 9px; }
.action-chip-grid input:checked + span { border-color: #efb9b4; background: #fff0ee; color: var(--red); font-weight: 800; }
.action-confirm { margin: 0 10px 11px; padding: 11px; display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 9px; border: 1px solid #d5dde3; border-radius: 10px; background: #f7f9fb; color: var(--muted); font-size: 10px; cursor: pointer; }
.action-confirm input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 1px 0 0; accent-color: var(--orange); }
.action-confirm b { color: var(--ink); }
.attempt-note input { min-height: 43px; font-size: 11px; }
.score-preview { margin-top: 18px; padding: 17px; border: 2px solid var(--ink); border-radius: 18px; background: #f7f9fb; }
.secondary-button, .primary-button { min-height: 46px; padding: 9px 15px; border-radius: 13px; font-size: 11px; font-weight: 850; }
.secondary-button { border: 1px solid var(--line); background: #fff; }
.secondary-button:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.primary-button { border: 1px solid var(--ink); background: var(--ink); color: #fff; box-shadow: 0 12px 24px rgba(17,24,32,.14); }
.primary-button:hover { transform: translateY(-1px); }
.scoreboard-body { margin-top: 14px; display: grid; gap: 9px; }
.score-placeholder { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 13px; border: 1px dashed #b8c3cc; border-radius: 12px; color: var(--muted); }
.score-placeholder b { color: var(--ink); font: 900 36px/1 var(--display); }
.score-placeholder span { font-size: 10px; }
.score-total { padding: 14px; display: grid; grid-template-columns: 1fr auto auto; align-items: end; border-radius: 12px; background: var(--ink); color: #fff; }
.score-total small { align-self: center; color: #c5cfd6; font: 700 9px var(--utility); }
.score-total b { color: var(--orange); font: 950 48px/.9 var(--display); }
.score-total span { margin-left: 5px; color: #aeb8c0; font-size: 9px; }
.attempt-score-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.attempt-score { padding: 11px; display: grid; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.attempt-score.is-best { border-color: var(--orange); box-shadow: inset 0 3px var(--orange); }
.attempt-score small { color: var(--muted); font: 700 8px var(--utility); }
.attempt-score b { margin: 4px 0; font: 900 24px/1 var(--display); }
.attempt-score span { color: var(--muted); font-size: 9px; }
.preview-boundary { padding: 9px 11px; display: flex; justify-content: space-between; gap: 8px; border-radius: 10px; background: #e9eef2; font-size: 9px; }
.preview-boundary span { color: var(--muted); font-family: var(--utility); }
.score-disclaimer { margin: 10px 0 0; color: var(--muted); font-size: 9px; }
.boundary-note { margin-bottom: 18px; padding: 16px 16px 16px 19px; display: grid; gap: 5px; border-left: 5px solid var(--orange); border-radius: 0 12px 12px 0; background: var(--ink); color: #cbd4db; font-size: 12px; }
.boundary-note b { color: #fff; font-size: 13px; }
.test-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.test-card { position: relative; min-height: 190px; padding: 17px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.test-card::before { position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--line); content: ""; }
.test-card[data-state=training]::before { background: var(--orange); }
.test-card[data-state=observed]::before { background: var(--green); }
.test-title { margin-bottom: 13px; display: flex; align-items: baseline; gap: 9px; }
.test-title small { color: var(--muted); font: 9px var(--utility); }
.test-title h4 { margin: 0; font-size: 15px; line-height: 1.35; }
.status-choice { margin: 0 0 12px; padding: 0; border: 0; }
.status-choice legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.choice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.choice-grid label { position: relative; min-width: 0; cursor: pointer; }
.choice-grid span { min-height: 42px; padding: 7px 4px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #f5f7f9; color: var(--muted); font-size: 10px; text-align: center; }
.choice-grid input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice-grid label:nth-child(2) input:checked + span { border-color: var(--orange); background: var(--orange); color: #241507; }
.choice-grid label:nth-child(3) input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.test-note { margin-top: auto; font-weight: 600; }
.test-note input { min-height: 43px; font-size: 12px; }
.session-notes { position: relative; margin-top: 18px; }
.session-notes small { position: absolute; right: 11px; bottom: 8px; padding: 2px 5px; border-radius: 6px; background: #fff; color: var(--muted); font: 9px var(--utility); }
.form-message { min-height: 22px; margin-top: 10px; color: var(--red); font-size: 12px; white-space: pre-line; }
.save-bar { position: sticky; bottom: 8px; z-index: 5; margin-top: 6px; padding: 13px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.save-bar p { margin: 0; display: grid; color: var(--muted); font-size: 10px; }
.save-bar p b { color: var(--ink); font-size: 12px; }
.history-filter { min-width: 170px; }
.history-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.history-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.history-card-head { display: flex; justify-content: space-between; gap: 12px; }
.history-card-head > div { min-width: 0; }
.history-card-head small { color: var(--orange-dark); font: 800 9px var(--utility); }
.history-card-head h3 { margin: 5px 0 3px; font-size: 16px; }
.history-card-head p { margin: 0; color: var(--muted); font-size: 11px; }
.history-count { flex: 0 0 auto; text-align: right; }
.history-count b { display: block; color: var(--green); font: 900 24px/1 var(--display); }
.history-count span { color: var(--muted); font-size: 9px; }
.history-statuses { margin: 13px 0 0; padding: 11px 0 0; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); }
.history-statuses span { padding: 5px 8px; border-radius: 8px; background: #eef2f5; color: var(--muted); font-size: 9px; }
.history-statuses .is-training { background: var(--orange-pale); color: #765012; }
.history-statuses .is-observed { background: #e8f7f1; color: #127b5d; }
.history-statuses .is-issue { background: #fff0ee; color: var(--red); }
.is-trial-record { border-top: 4px solid var(--orange); }
.history-count.trial-score b { color: var(--orange-dark); }
.history-notes { margin: 10px 0 0; color: #52606c; font-size: 11px; white-space: pre-wrap; }
.delete-record { margin-top: 12px; padding: 6px 0; border: 0; background: transparent; color: var(--red); font-size: 11px; font-weight: 800; }
.empty-state { padding: 36px 20px; border: 1px dashed #b8c3cc; border-radius: 15px; color: var(--muted); text-align: center; }
.empty-state b { display: block; margin-bottom: 5px; color: var(--ink); }

/* 标准目录 */
.standard-catalog { display: grid; gap: 15px; }
.standard-card { padding: 31px; border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.standard-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.standard-meta h2 { margin: 5px 0 8px; font: 900 clamp(27px,4vw,40px)/1.13 var(--display); letter-spacing: -.04em; }
.standard-meta p { margin: 0; color: var(--muted); font-size: 11px; }
.edition-stamp { flex: 0 0 auto; padding: 8px; border: 2px solid var(--orange); border-radius: 8px; color: var(--orange-dark); font: 800 10px/1.2 var(--utility); text-align: center; transform: rotate(2deg); }
.source-link { display: inline-block; margin-top: 10px; color: var(--orange-dark); font-size: 11px; font-weight: 800; }
.readiness-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.readiness-item { min-height: 72px; padding: 10px 9px; display: grid; align-content: space-between; border: 1px solid var(--line); border-radius: 11px; background: #f7f9fb; }
.readiness-item span { color: var(--muted); font-size: 9px; }
.readiness-item b { font-size: 11px; }
.readiness-item.is-ready { border-top: 3px solid var(--green); }
.readiness-item.is-waiting { border-top: 3px solid var(--orange); }
.readiness-item.is-disabled { border-top: 3px solid var(--ink); }
.catalog-boundary { margin: 12px 0 18px; padding: 12px 13px; border-radius: 11px; background: var(--ink); color: #cbd4db; font-size: 11px; }
.catalog-boundary b { color: var(--orange); }
.catalog-levels { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.catalog-level { padding: 13px; display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfd; }
.catalog-level-number { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: var(--orange); font: 900 17px/1 var(--display); }
.catalog-level h3 { margin: 0 0 6px; font-size: 14px; }
.catalog-tests { display: flex; flex-wrap: wrap; gap: 5px; }
.catalog-tests span { padding: 4px 7px; border-radius: 7px; background: #eef2f5; color: #5b6873; font-size: 9px; }
.catalog-pages { color: var(--muted); font: 9px/1.6 var(--utility); text-align: right; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; width: max-content; max-width: calc(100% - 32px); padding: 12px 17px; border-left: 4px solid var(--orange); border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 12px 35px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transform: translate(-50%,10px); transition: opacity .18s, transform .18s; font-size: 12px; text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.noscript { margin: 20px; padding: 15px; border-radius: 12px; background: #fff; color: var(--red); }

@media (max-width: 1040px) {
  :root { --sidebar: 204px; }
  .half-court { right: -150px; }
  .hero-copy { max-width: 68%; }
  .catalog-levels, .history-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .auth-topbar { width: calc(100% - 28px); min-height: 0; padding: 18px 0 13px; display: grid; gap: 13px; }
  .auth-brand img { width: 42px; height: 42px; border-radius: 12px; }
  .auth-brand strong { font-size: 13px; }
  .auth-brand small { font-size: 8px; }
  .suite-nav { width: 100%; overflow-x: auto; }
  .suite-nav a, .suite-nav span { flex: 1 0 auto; padding: 8px 9px; text-align: center; }
  .guest-main { width: calc(100% - 28px); }
  .hero { min-height: 0; padding: 42px 24px 38px; border-radius: 25px; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(38px,11.5vw,53px); }
  .hero-copy > p { font-size: 13px; }
  .half-court { right: -145px; bottom: -210px; width: 430px; height: 430px; opacity: .66; }
  .half-court b { right: 132px; bottom: 192px; font-size: 92px; }
  .half-court small { display: none; }
  .guest-layout { grid-template-columns: 1fr; }
  .login-gate { position: static; padding: 25px 22px; }
  .standard-card { padding: 21px 17px; border-radius: 18px; }
  .catalog-levels { grid-template-columns: 1fr; }
  .catalog-level { grid-template-columns: 44px minmax(0,1fr); }
  .catalog-pages { grid-column: 2; text-align: left; }

  .side-nav { display: none; }
  .app-main { margin-left: 0; padding-bottom: 72px; }
  .top-bar { height: 61px; padding: 0 15px; justify-content: space-between; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; color: inherit; font-size: 12px; font-weight: 850; text-decoration: none; }
  .mobile-brand img { width: 33px; height: 33px; border-radius: 10px; object-fit: cover; }
  .mobile-suite-link { margin-left: auto; margin-right: 9px; padding: 7px 9px; border-radius: 9px; display: inline-flex; background: var(--orange-pale); color: #765012; font-size: 10px; font-weight: 800; text-decoration: none; }
  .top-status { display: none; }
  .account-button { width: 42px; padding: 0 6px; }
  .account-button b, .account-button i { display: none; }
  .suite-context { margin: 10px 14px 0; font-size: 10px; }
  .page { width: calc(100% - 28px); padding: 15px 0 28px; }
  .mobile-nav { position: fixed; z-index: 25; inset: auto 0 0; height: calc(64px + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
  .mobile-nav-item { border: 0; border-radius: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: transparent; color: #77828c; }
  .mobile-nav-item span { font-size: 20px; line-height: 1; }
  .mobile-nav-item small { font-size: 9px; }
  .mobile-nav-item.is-active { color: var(--orange-dark); font-weight: 850; }
  .app-filing { padding: 2px 20px 88px; }
  .workspace-shell { display: block; }
  .level-lane { position: relative; top: auto; width: 100%; min-height: 0; margin-bottom: 10px; padding: 8px; flex-direction: row; gap: 8px; overflow-x: auto; border-radius: 14px; }
  .level-lane .lane-title { flex: 0 0 auto; margin: 0; writing-mode: horizontal-tb; align-self: center; }
  .level-lane .lane-foot { display: none; }
  .level-rail { width: max-content; display: flex; align-items: center; gap: 7px; }
  .level-rail::before { top: calc(50% - 1px); right: 22px; bottom: auto; left: 22px; width: auto; height: 2px; }
  .level-button { flex: 0 0 44px; }
  .observe-main, .content-view { padding: 20px 15px 16px; border-radius: 17px; box-shadow: 0 12px 30px rgba(25,42,58,.05); }
  .section-heading h2 { font-size: 27px; }
  .context-card { grid-template-columns: 1fr; }
  .attempt-grid, .test-list, .history-list { grid-template-columns: 1fr; }
  .attempt-measures.has-shooting { grid-template-columns: 1fr; }
  .save-bar { position: static; grid-template-columns: 1fr; }
  .notice { grid-template-columns: 1fr; }
  .readiness-grid { gap: 6px; }
  .history-filter { min-width: 135px; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

@media (max-width: 430px) {
  .hero-warning { padding: 12px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 25px; }
  .trial-badge { width: 58px; height: 58px; }
  .attempt-score-list { grid-template-columns: 1fr; }
  .score-total { grid-template-columns: 1fr auto; }
  .score-total span { display: none; }
  .readiness-grid { grid-template-columns: 1fr; }
  .standard-meta h2 { font-size: 27px; }
  .edition-stamp { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body { background: #fff; }
  .side-nav, .top-bar, .suite-context, .mobile-nav, .level-lane, .save-bar, .delete-record, .app-filing { display: none !important; }
  .app-main { margin: 0; }
  .page { width: 100%; }
  .observe-main, .content-view, .standard-card { border: 0; box-shadow: none; }
}
