:root {
  --green-950: #0c2819;
  --green-900: #123522;
  --green-800: #19452d;
  --green-700: #245b3c;
  --green-600: #35734e;
  --ivory: #fffdf6;
  --ivory-2: #f8f3e6;
  --ink: #183225;
  --muted: #6d756f;
  --gold: #d5aa52;
  --gold-light: #f2d58b;
  --gold-dark: #8e681f;
  --line: #ded6c2;
  --danger: #a34a36;
  --warning: #b87520;
  --shadow: 0 16px 40px rgba(10, 39, 25, 0.12);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--font); background: #f1eee5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid rgba(213, 170, 82, 0.55); outline-offset: 3px; }

.toast-stack { position: fixed; z-index: 100; top: 16px; left: 50%; transform: translateX(-50%); }
.toast { min-width: 240px; padding: 12px 18px; border: 1px solid var(--gold); border-radius: 12px; color: var(--green-900); background: var(--ivory); box-shadow: var(--shadow); }

/* 登录 */
.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(97, 139, 101, 0.24), transparent 34%),
    radial-gradient(circle at 78% 80%, rgba(225, 197, 126, 0.11), transparent 30%),
    repeating-radial-gradient(ellipse at 20% 15%, transparent 0 22px, rgba(255, 255, 255, 0.025) 23px 24px),
    linear-gradient(145deg, var(--green-950), var(--green-800));
}
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 1fr) minmax(420px, 0.85fr); }
.auth-shell.single { display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-brand { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(42px, 8vw, 112px); color: var(--ivory); }
.auth-brand::after { content: ""; position: absolute; inset: auto -10% -25% 5%; height: 58%; opacity: 0.23; background: linear-gradient(155deg, transparent 25%, #0a2115 26% 54%, transparent 55%), linear-gradient(22deg, transparent 40%, #9bb69b 41% 44%, transparent 45%); clip-path: polygon(0 54%, 18% 30%, 30% 44%, 45% 14%, 64% 48%, 83% 28%, 100% 42%, 100% 100%, 0 100%); }
.brand-insignia { position: relative; z-index: 1; width: 112px; height: 126px; display: grid; place-items: center; margin-bottom: 30px; color: var(--gold-light); filter: drop-shadow(0 8px 12px rgba(0,0,0,.22)); }
.brand-insignia::before { content: ""; position: absolute; inset: 4px 10px 17px; border: 4px double var(--gold-light); border-radius: 44% 44% 48% 48% / 28% 28% 62% 62%; transform: perspective(100px) rotateX(-4deg); }
.brand-insignia::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 28px; border-bottom: 3px solid var(--gold-light); border-radius: 50%; }
.brand-insignia span { position: relative; z-index: 1; font-size: 46px; text-shadow: 0 2px 0 #8a641a; }
.brand-insignia.small { width: 58px; height: 62px; margin: 0; flex: 0 0 auto; }
.brand-insignia.small::before { inset: 2px 6px 9px; border-width: 2px; }
.brand-insignia.small::after { height: 14px; bottom: 1px; border-width: 2px; }
.brand-insignia.small span { font-size: 22px; }
.eyebrow { margin: 0 0 13px; color: var(--gold-light); font-size: 14px; font-weight: 750; letter-spacing: .18em; }
.auth-brand h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(46px, 6vw, 78px); line-height: 1.1; letter-spacing: .06em; }
.auth-brand-copy { position: relative; z-index: 1; margin: 26px 0 30px; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.9; }
.honor-line { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; width: min(350px, 100%); color: var(--gold-light); }
.honor-line span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.honor-line span:last-child { transform: rotate(180deg); }
.honor-line i { font-style: normal; }
.honor-line b { font-weight: 500; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: clamp(22px, 5vw, 74px); background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,240,225,.96)); }
.auth-shell.single .auth-panel { width: min(560px, 100%); padding: 0; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.auth-card { width: min(480px, 100%); padding: 38px; border: 1px solid rgba(188, 147, 64, .45); border-radius: 24px; background: rgba(255, 253, 246, .86); box-shadow: inset 0 0 0 5px rgba(255,255,255,.55), var(--shadow); }
.auth-card-head { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.mini-shield { display: grid; place-items: center; width: 52px; height: 58px; flex: 0 0 auto; color: var(--ivory); font-size: 23px; background: linear-gradient(145deg, var(--gold-light), var(--gold-dark)); clip-path: polygon(50% 0, 92% 16%, 86% 70%, 50% 100%, 14% 70%, 8% 16%); filter: drop-shadow(0 5px 6px rgba(123, 86, 18, .24)); }
.auth-card-head p { margin: 0 0 4px; color: var(--gold-dark); font-size: 12px; font-weight: 800; letter-spacing: .2em; }
.auth-card-head h1, .auth-card-head h2 { margin: 0; color: var(--green-900); font-size: 25px; }
.auth-form { display: grid; gap: 19px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 750; }
.field input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid #cfc8b8; border-radius: 11px; color: var(--ink); background: #fffef9; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--green-600); outline: none; box-shadow: 0 0 0 4px rgba(53,115,78,.12); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.password-toggle { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); padding: 6px; border: 0; color: var(--green-700); background: transparent; font-size: 13px; }
.primary-button { min-height: 52px; margin-top: 3px; padding: 0 20px; border: 1px solid var(--gold); border-radius: 12px; color: var(--ivory); background: linear-gradient(135deg, var(--green-700), var(--green-900)); box-shadow: 0 10px 22px rgba(17,60,38,.24), inset 0 0 0 2px rgba(255,255,255,.08); font-weight: 800; letter-spacing: .05em; }
.primary-button:hover { background: linear-gradient(135deg, #2f6e4a, #0e2f1e); }
.auth-help, .form-intro { margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.form-intro { margin: -12px 0 24px; }
.form-alert { padding: 11px 13px; border: 1px solid #dfaa9d; border-radius: 10px; color: #7a2e20; background: #fff1ed; font-size: 13px; }
.field-error { margin: 0; color: var(--danger); font-size: 12px; }

/* 工作台 */
.app-body { min-height: 100vh; background: #f3f0e7; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.desktop-sidebar { position: sticky; top: 0; z-index: 20; display: flex; flex-direction: column; height: 100vh; padding: 24px 16px 18px; color: rgba(255,255,255,.86); background: radial-gradient(circle at 15% 8%, rgba(97,139,101,.24), transparent 25%), repeating-radial-gradient(ellipse at 10% 5%, transparent 0 22px, rgba(255,255,255,.025) 23px 24px), linear-gradient(170deg, var(--green-900), var(--green-950)); }
.side-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 23px; border-bottom: 1px solid rgba(238,211,145,.18); color: var(--ivory); }
.side-brand b { display: block; font-size: 18px; letter-spacing: .08em; }
.side-brand small { display: block; margin-top: 4px; color: rgba(255,255,255,.5); font-size: 11px; }
.side-nav { display: grid; gap: 7px; margin-top: 22px; }
.side-nav a { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 10px; color: rgba(255,255,255,.64); font-size: 14px; transition: .2s ease; }
.side-nav a:hover, .side-nav a.active { color: var(--ivory); background: rgba(255,255,255,.09); }
.side-nav a.active { box-shadow: inset 3px 0 var(--gold); }
.side-nav a span { color: var(--gold-light); font-size: 18px; }
.side-nav a em { color: rgba(255,255,255,.3); font-size: 9px; font-style: normal; }
.side-footer { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.side-footer p { margin: 0 0 3px; color: white; font-weight: 700; }
.side-footer span { color: rgba(255,255,255,.45); font-size: 12px; }
.side-footer button { margin-top: 14px; padding: 0; border: 0; color: rgba(255,255,255,.52); background: none; font-size: 12px; }
.workspace { min-width: 0; padding: 0 34px 70px; }
.workspace-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 86px; margin: 0 -34px 26px; padding: 0 34px; border-bottom: 1px solid rgba(94,96,81,.12); background: rgba(255,253,247,.82); backdrop-filter: blur(12px); }
.workspace-topbar p { margin: 0 0 4px; color: var(--gold-dark); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.workspace-topbar h1 { margin: 0; font-size: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.notification-button { position: relative; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--green-800); background: var(--ivory); }
.notification-button span { position: absolute; top: 5px; right: 8px; color: #c6773a; font-size: 20px; }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ivory); background: var(--green-700); font-weight: 800; }
.user-chip b, .user-chip small { display: block; }
.user-chip b { font-size: 13px; }
.user-chip small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.role-switcher { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 0 auto 18px; padding: 9px 11px 9px 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,253,246,.8); }
.role-switcher > span { color: var(--muted); font-size: 12px; }
.role-switcher div { display: flex; gap: 4px; flex-wrap: wrap; }
.role-switcher a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 12px; }
.role-switcher a.active { color: var(--ivory); background: var(--green-700); }
.hero-panel { position: relative; display: flex; align-items: flex-end; justify-content: space-between; min-height: 220px; max-width: 1180px; margin: 0 auto 18px; overflow: hidden; padding: 38px 42px; border: 1px solid rgba(224,190,112,.4); border-radius: 24px; color: var(--ivory); background: radial-gradient(circle at 85% 0, rgba(226,199,134,.13), transparent 28%), repeating-radial-gradient(ellipse at 10% 5%, transparent 0 26px, rgba(255,255,255,.028) 27px 28px), linear-gradient(135deg, var(--green-900), #28573b); box-shadow: var(--shadow); }
.hero-panel::after { content: ""; position: absolute; right: -20px; bottom: -52px; width: 46%; height: 92%; opacity: .28; background: linear-gradient(155deg, transparent 35%, #071f13 36% 60%, transparent 61%); clip-path: polygon(0 60%, 22% 32%, 40% 47%, 59% 14%, 80% 52%, 100% 26%, 100% 100%, 0 100%); }
.hero-copy, .hero-status { position: relative; z-index: 1; }
.hero-copy h2 { margin: 0 0 10px; font-size: clamp(40px, 5vw, 66px); letter-spacing: .08em; }
.hero-copy > p:last-child { margin: 0; color: rgba(255,255,255,.74); font-size: 17px; }
.hero-status { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.83); background: rgba(0,0,0,.14); font-size: 13px; }
.hero-status span { width: 8px; height: 8px; border-radius: 50%; background: #86d89e; box-shadow: 0 0 0 5px rgba(134,216,158,.12); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto 18px; }
.metric-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { position: relative; min-height: 164px; overflow: hidden; padding: 24px; border: 1px solid #d9cdaE; border-radius: 18px; background: linear-gradient(145deg, #fffef8, #f7f2e5); box-shadow: 0 10px 26px rgba(23,58,38,.08), inset 0 0 0 4px rgba(255,255,255,.5); }
.metric-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(197,153,63,.25); border-radius: 12px; pointer-events: none; }
.metric-card > * { position: relative; z-index: 1; }
.metric-card > span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card > strong { display: block; margin-top: 14px; color: var(--green-900); font-size: 38px; line-height: 1; }
.metric-card > strong small { margin-right: 4px; font-size: 20px; }
.metric-card > p { margin: 12px 0 0; color: #8a8b82; font-size: 11px; }
.metric-icon { float: right; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--gold-dark); background: rgba(213,170,82,.17); font-size: 21px; }
.stars { display: flex; gap: 4px; margin-top: 14px; }
.stars i { color: #d8d2c5; font-size: 22px; font-style: normal; }
.stars i.on { color: #e9b93e; text-shadow: 0 2px 2px rgba(123,86,15,.18); }
.task-card dl { margin: 16px 0 0; }
.task-card dl div { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid #e4ddce; }
.task-card dt { color: var(--ink); font-size: 13px; }
.task-card dd { margin: 0; color: var(--gold-dark); font-size: 24px; font-weight: 800; }
.task-card dd small { font-size: 11px; }
.metric-card.alert strong { color: var(--danger); }
.metric-card strong.version { font-size: 30px; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 0 auto 18px; }
.action-card { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 18px; min-height: 220px; padding: 28px; overflow: hidden; border: 1px solid #d7c69d; border-radius: 20px; background: var(--ivory); box-shadow: var(--shadow); }
.action-card::after { content: "★"; position: absolute; right: -12px; bottom: -30px; color: rgba(213,170,82,.08); font-size: 150px; }
.action-badge { display: grid; place-items: center; width: 84px; height: 94px; color: var(--gold-dark); font-size: 40px; background: linear-gradient(145deg, #fff9e9, #e1b85f); clip-path: polygon(50% 0, 94% 18%, 86% 70%, 50% 100%, 14% 70%, 6% 18%); filter: drop-shadow(0 8px 8px rgba(113,77,10,.14)); }
.action-card span { color: var(--gold-dark); font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.action-card h3 { margin: 7px 0 9px; font-size: 25px; }
.action-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.action-card button, .action-link { grid-column: 2; align-self: end; justify-self: start; min-height: 38px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; color: #8c8b82; background: #f5f2ea; font-size: 12px; }
.action-link { color: var(--ivory); border-color: var(--green-700); background: var(--green-700); font-weight: 750; }
.action-card button span, .action-link span { margin-left: 10px; color: inherit; }
.pending-strip, .worklist-card, .admin-entry-grid { max-width: 1180px; margin: 0 auto; }
.pending-strip { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,246,.9); }
.pending-strip > div { display: flex; align-items: center; gap: 13px; }
.strip-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ivory); background: var(--green-700); }
.pending-strip p, .pending-strip b, .pending-strip small { display: block; margin: 0; }
.pending-strip small { margin-top: 4px; color: var(--muted); }
.pending-strip button, .worklist-card button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #f3f0e7; }
.section-heading { display: flex; align-items: center; justify-content: space-between; max-width: 1180px; margin: 22px auto 24px; padding: 26px 30px; border-radius: 20px; color: var(--ivory); background: linear-gradient(135deg, var(--green-900), var(--green-700)); box-shadow: var(--shadow); }
.section-heading p { margin: 0 0 7px; color: var(--gold-light); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.section-heading h2 { margin: 0; font-size: 27px; }
.heading-badge, .heading-link { padding: 9px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: rgba(255,255,255,.8); background: rgba(0,0,0,.12); font-size: 12px; }
.heading-badge.gold { color: var(--gold-light); }
.worklist-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--ivory); box-shadow: var(--shadow); }
.worklist-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.worklist-head p { margin: 0 0 4px; color: var(--gold-dark); font-size: 11px; font-weight: 800; }
.worklist-head h3 { margin: 0; }
.empty-preview { padding: 64px 24px; color: var(--muted); text-align: center; }
.admin-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-entry-grid a { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 13px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--ivory); box-shadow: 0 8px 24px rgba(23,58,38,.07); }
.admin-entry-grid a > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: var(--gold-dark); background: rgba(213,170,82,.16); font-weight: 900; }
.admin-entry-grid b, .admin-entry-grid small { display: block; }
.admin-entry-grid small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.mobile-nav { display: none; }

/* 业务页面与成长记录表 */
.page-heading, .form-heading { position: relative; max-width: 1180px; margin: 0 auto 18px; overflow: hidden; padding: 34px 38px; border: 1px solid rgba(221,190,117,.38); border-radius: 22px; color: var(--ivory); background: radial-gradient(circle at 88% 4%, rgba(245,218,153,.15), transparent 30%), linear-gradient(135deg, var(--green-900), var(--green-700)); box-shadow: var(--shadow); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.page-heading::after, .form-heading::after { content: "★"; position: absolute; right: 8%; bottom: -60px; color: rgba(255,255,255,.05); font-size: 210px; }
.page-heading > *, .form-heading > * { position: relative; z-index: 1; }
.page-heading p, .form-heading p { margin: 0 0 7px; color: var(--gold-light); font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.page-heading h2, .form-heading h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 45px); letter-spacing: .04em; }
.page-heading div > span, .form-heading > span { display: block; max-width: 720px; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.75; }
.gold-button, .heading-outline-button { flex: 0 0 auto; padding: 12px 18px; border: 1px solid var(--gold-light); border-radius: 11px; color: var(--green-950); background: linear-gradient(145deg, #f7dfa3, var(--gold)); box-shadow: 0 8px 22px rgba(4,24,14,.22); font-size: 13px; font-weight: 800; }
.heading-outline-button { color: var(--ivory); border-color: rgba(255,255,255,.3); background: rgba(0,0,0,.13); box-shadow: none; }
.record-list-card, .form-section, .training-form, .calendar-layout, .import-layout { max-width: 1180px; margin-right: auto; margin-left: auto; }
.record-list-card { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--ivory); box-shadow: var(--shadow); }
.record-list-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #fffdf7, #f8f3e6); }
.record-list-head p { margin: 0 0 4px; color: var(--gold-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.record-list-head h3 { margin: 0; font-size: 19px; }
.record-list-head > a, .record-list-head > span { color: var(--muted); font-size: 12px; }
.record-list, .course-list { display: grid; }
.record-row, .course-row { display: grid; grid-template-columns: 78px minmax(0,1fr) auto 100px; align-items: center; gap: 18px; min-height: 104px; padding: 18px 24px; border-bottom: 1px solid #ebe5d8; }
.record-row:last-child, .course-row:last-child { border-bottom: 0; }
.record-date { display: grid; place-items: center; width: 66px; height: 66px; border: 1px solid #ddc98f; border-radius: 15px; color: var(--green-900); background: #faf4e3; }
.record-date strong { font-size: 19px; }
.record-date small { color: var(--gold-dark); font-size: 10px; }
.record-main { min-width: 0; }
.record-main h4 { margin: 0 0 7px; overflow: hidden; text-overflow: ellipsis; font-size: 16px; white-space: nowrap; }
.record-main p, .record-main > span { display: block; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 78px; padding: 7px 10px; border: 1px solid #d9d3c7; border-radius: 999px; color: var(--muted); background: #f5f3ed; font-size: 11px; white-space: nowrap; }
.status-guide_pending, .status-leader_pending, .status-processing { color: #85591b; border-color: #e1c17c; background: #fff6dd; }
.status-draft, .status-withdrawn { color: #56615a; border-color: #d2d8d3; background: #f2f5f2; }
.status-guide_confirmed, .status-leader_approved, .status-passed, .status-success { color: #1f6b42; border-color: #9fc9af; background: #eaf7ee; }
.status-returned, .status-failed { color: #963d2c; border-color: #e0a99e; background: #fff0ed; }
.row-actions { display: flex; justify-content: flex-end; }
.row-actions a, .row-actions button, .locked-action { display: inline-flex; align-items: center; min-height: 35px; padding: 0 12px; border: 1px solid var(--green-700); border-radius: 9px; color: var(--green-800); background: #f4faf6; font-size: 12px; }
.row-actions form { margin: 0; }
.row-actions button { color: var(--danger); border-color: #dab3aa; background: #fff7f5; }
.locked-action { color: var(--muted); border-color: #ddd8ce; background: #f5f2eb; }
.empty-state { padding: 70px 24px; color: var(--muted); text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 72px; height: 78px; margin: 0 auto 17px; color: var(--gold-dark); background: linear-gradient(145deg,#fff8e8,#dfb659); clip-path: polygon(50% 0,94% 18%,86% 70%,50% 100%,14% 70%,6% 18%); font-size: 31px; }
.empty-state h3 { margin: 0 0 8px; color: var(--ink); }
.empty-state p { margin: 0 0 20px; font-size: 13px; }
.primary-link { display: inline-flex; padding: 10px 15px; border-radius: 9px; color: var(--ivory); background: var(--green-700); font-size: 12px; font-weight: 750; }
.course-row { grid-template-columns: 58px minmax(0,1fr) auto 100px; min-height: 130px; }
.course-symbol { display: grid; place-items: center; width: 52px; height: 58px; color: var(--gold-dark); background: linear-gradient(145deg,#fff8e8,#dfb659); clip-path: polygon(50% 0,94% 18%,86% 70%,50% 100%,14% 70%,6% 18%); font-size: 24px; }
.course-row .record-main h4 { margin: 4px 0; font-size: 17px; }
.course-row .record-main > p { color: var(--gold-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.course-row .record-main > small { display: block; margin-top: 8px; font-size: 11px; }
.timing-good { color: #28704a; }
.timing-neutral { color: var(--gold-dark); }
.timing-danger { color: var(--danger); font-weight: 750; }

.form-heading { padding-top: 30px; }
.form-heading > a { display: inline-block; margin-bottom: 28px; color: rgba(255,255,255,.68); font-size: 12px; }
.training-form { display: grid; gap: 16px; padding-bottom: 40px; }
.form-section { padding: 26px 30px 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--ivory); box-shadow: 0 9px 28px rgba(23,58,38,.07); }
.form-section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; padding-bottom: 17px; border-bottom: 1px solid #e6dfd0; }
.form-section-title > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; color: var(--gold-dark); background: rgba(213,170,82,.17); font-size: 12px; font-weight: 900; }
.form-section-title p { margin: 0 0 3px; color: var(--gold-dark); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.form-section-title h3 { margin: 0; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.form-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.field-block { position: relative; display: grid; align-content: start; gap: 8px; }
.field-block.wide { margin-top: 3px; }
.field-block + .field-block.wide { margin-top: 26px; padding-top: 25px; border-top: 1px solid #eee7da; }
.field-block label, .dimension-input label { font-size: 13px; font-weight: 750; }
.field-block input, .field-block select, .field-block textarea, .dimension-input input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #cec7b9; border-radius: 10px; color: var(--ink); background: #fffefa; }
.field-block textarea { min-height: 190px; resize: vertical; line-height: 1.8; }
.field-block input:focus, .field-block select:focus, .field-block textarea:focus, .dimension-input input:focus { border-color: var(--green-600); outline: 0; box-shadow: 0 0 0 4px rgba(53,115,78,.11); }
.field-block > small, .dimension-input > small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.readonly-field { display: flex; align-items: center; min-height: 48px; padding: 0 13px; border: 1px solid #ded8ca; border-radius: 10px; color: #606862; background: #f5f2ea; font-size: 13px; }
.errorlist { margin: 0; padding: 0; color: var(--danger); font-size: 11px; list-style: none; }
.form-errors { padding: 13px 16px; border: 1px solid #e0aaa0; border-radius: 11px; color: #8b3727; background: #fff1ee; font-size: 12px; }
.form-actions { position: sticky; z-index: 10; bottom: 12px; display: flex; justify-content: flex-end; gap: 10px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 13px; border: 1px solid rgba(211,200,178,.9); border-radius: 15px; background: rgba(255,253,246,.9); box-shadow: 0 10px 34px rgba(18,53,34,.14); backdrop-filter: blur(12px); }
.secondary-button, .primary-button.inline { min-height: 47px; margin: 0; padding: 0 18px; border-radius: 10px; font-size: 13px; font-weight: 800; }
.secondary-button { border: 1px solid #c7bfae; color: var(--green-800); background: #fffefa; }
.readonly-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.readonly-grid > div { padding: 16px; border: 1px solid #ded7c7; border-radius: 12px; background: #f8f4e9; }
.readonly-grid small, .readonly-grid b { display: block; }
.readonly-grid small { margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.readonly-grid b { font-size: 13px; }
.rating-field { max-width: 330px; }
.rating-field input { padding-right: 60px; font-size: 20px; font-weight: 800; }
.rating-field > span { position: absolute; right: 14px; top: 43px; color: var(--muted); font-size: 12px; }
.dimension-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.dimension-input { position: relative; display: grid; gap: 8px; padding: 16px; border: 1px solid #ded6c4; border-radius: 13px; background: #fbf7ed; }
.dimension-input input { padding-right: 48px; font-size: 18px; font-weight: 800; }
.dimension-input > span { position: absolute; right: 28px; top: 56px; color: var(--muted); font-size: 10px; }

/* 完整成长记录 */
.form-heading-line { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.form-heading-line > div:first-child { min-width: 0; }
.form-heading-line h2 { margin-bottom: 10px; }
.record-code-badge { flex: 0 0 auto; min-width: 190px; padding: 12px 16px; border: 1px solid rgba(242,213,139,.45); border-radius: 12px; color: var(--ivory); background: rgba(0,0,0,.14); }
.record-code-badge small, .record-code-badge b { display: block; }
.record-code-badge small { margin-bottom: 4px; color: var(--gold-light); font-size: 9px; letter-spacing: .12em; }
.record-code-badge b { font-size: 13px; letter-spacing: .06em; }
.form-progress-panel { position: sticky; z-index: 11; top: 12px; display: grid; grid-template-columns: minmax(160px,.8fr) minmax(220px,1.6fr) minmax(170px,.8fr); align-items: center; gap: 18px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 13px 18px; border: 1px solid rgba(207,195,169,.92); border-radius: 14px; background: rgba(255,253,246,.94); box-shadow: 0 8px 26px rgba(18,53,34,.09); backdrop-filter: blur(12px); }
.form-progress-panel p { margin: 0 0 3px; color: var(--gold-dark); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.form-progress-panel b { font-size: 12px; }
.form-progress-panel > small { color: var(--muted); font-size: 10px; text-align: right; }
.form-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e7e2d7; }
.form-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-700), var(--gold)); transition: width .25s ease; }
.readonly-grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.readonly-grid.five { grid-template-columns: repeat(5,minmax(0,1fr)); }
.readonly-grid em { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.validation-note { min-height: 70px; line-height: 1.6; }
.writing-prompts { display: flex; flex-wrap: wrap; gap: 7px; margin: -6px 0 16px; }
.writing-prompts span { padding: 7px 10px; border: 1px solid #dccb9e; border-radius: 999px; color: #76581d; background: #fff8e7; font-size: 10px; }
.character-count { justify-self: end; }
.character-count.is-ok { color: #247047; font-weight: 750; }
.client-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(163,74,54,.12) !important; }
.client-summary { max-width: 1180px; width: 100%; margin: 0 auto; }
.return-notice { display: grid; grid-template-columns: 44px 1fr; gap: 13px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 15px 17px; border: 1px solid #dfa99e; border-radius: 13px; color: #7e3426; background: #fff1ee; }
.return-notice > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: white; background: var(--danger); font-size: 20px; }
.return-notice p, .return-notice b, .return-notice small { display: block; margin: 0; }
.return-notice p { margin-bottom: 4px; font-size: 10px; font-weight: 850; letter-spacing: .05em; }
.return-notice b { color: #64291f; font-size: 12px; line-height: 1.65; }
.return-notice small { margin-top: 5px; color: #98685e; font-size: 9px; }
.locked-review-section { overflow: hidden; background: linear-gradient(145deg, #fffdf7, #f5f1e6); }
.form-section-title mark { margin-left: auto; padding: 7px 10px; border-radius: 999px; color: #795714; background: #f6e6b8; font-size: 10px; font-weight: 750; }
.guide-feedback-preview { margin-bottom: 20px; padding: 17px 18px; border: 1px dashed #c8bea8; border-radius: 13px; background: rgba(255,255,255,.55); }
.guide-feedback-preview > span { display: block; margin-bottom: 7px; color: var(--gold-dark); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.guide-feedback-preview p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }

.radar-workbench { display: grid; grid-template-columns: minmax(300px,.85fr) minmax(360px,1.15fr); gap: 24px; align-items: center; padding: 22px; border: 1px solid #d8cfbc; border-radius: 16px; background: radial-gradient(circle at 20% 20%, rgba(213,170,82,.12), transparent 38%), #f8f5ec; }
.radar-workbench.compact { margin-top: 4px; }
.radar-visual { position: relative; display: grid; place-items: center; min-height: 330px; }
.radar-chart { width: min(100%, 390px); height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: #d7d1c5; stroke-width: 1; }
.radar-axis { stroke: #c8c0ae; stroke-width: 1; }
.radar-label { fill: #3a5746; font-size: 12px; font-weight: 750; }
.radar-area { fill: rgba(47,123,81,.26); stroke: #276a46; stroke-width: 2.5; filter: drop-shadow(0 4px 8px rgba(31,92,59,.16)); }
.radar-point { fill: var(--gold); stroke: var(--green-900); stroke-width: 2; }
.radar-placeholder { position: absolute; max-width: 180px; margin: 0; padding: 9px 12px; border: 1px solid #ded7c7; border-radius: 9px; color: var(--muted); background: rgba(255,253,246,.92); font-size: 10px; text-align: center; }
.radar-placeholder[hidden] { display: none; }
.radar-side { min-width: 0; }
.radar-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
.radar-stats > div { min-height: 75px; padding: 13px; border: 1px solid #ded6c4; border-radius: 11px; background: #fffdf8; }
.radar-stats small, .radar-stats strong { display: block; }
.radar-stats small { margin-bottom: 7px; color: var(--muted); font-size: 9px; }
.radar-stats strong { overflow: hidden; color: var(--green-800); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.radar-verdict { padding: 13px 15px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: #f1ead8; }
.radar-verdict span, .radar-verdict b, .radar-verdict small { display: block; }
.radar-verdict span { color: var(--gold-dark); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.radar-verdict b { margin: 4px 0; font-size: 14px; }
.radar-verdict small { color: var(--muted); font-size: 9px; }
.radar-dimension-list, .dimension-edit-list { display: grid; gap: 0; margin-top: 12px; }
.radar-dimension-list > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 9px 3px; border-bottom: 1px solid #e3dccf; }
.radar-dimension-list span b, .radar-dimension-list span small { display: block; }
.radar-dimension-list span b { font-size: 11px; }
.radar-dimension-list span small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.radar-dimension-list > div > strong { color: var(--green-700); font-size: 12px; }
.radar-empty { color: var(--muted); font-size: 11px; }
.dimension-edit { display: grid; grid-template-columns: minmax(100px,.8fr) minmax(190px,1.2fr); align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e2dbce; }
.dimension-edit label, .dimension-edit small { display: block; }
.dimension-edit label { font-size: 11px; font-weight: 800; }
.dimension-edit small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.dimension-controls { display: grid; grid-template-columns: 60px 31px minmax(90px,1fr); align-items: center; gap: 4px; }
.dimension-controls input[type="number"] { width: 60px; height: 38px; padding: 6px 8px; border: 1px solid #c9c1b2; border-radius: 8px; color: var(--green-900); background: #fff; font-weight: 850; }
.dimension-controls span { color: var(--muted); font-size: 9px; }
.dimension-controls input[type="range"] { width: 100%; accent-color: var(--green-700); }
.score-rubric { margin-top: 17px; border: 1px solid #ddd4c0; border-radius: 12px; background: #fffdf8; }
.score-rubric summary { padding: 13px 15px; color: var(--green-800); font-size: 11px; font-weight: 800; cursor: pointer; }
.score-rubric > div { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; padding: 0 14px 13px; }
.score-rubric > div span { padding: 10px; border-radius: 9px; color: var(--muted); background: #f4f1e8; font-size: 9px; line-height: 1.5; }
.score-rubric > div b { display: block; margin-bottom: 3px; color: var(--gold-dark); font-size: 10px; }
.score-rubric > small { display: block; padding: 0 14px 13px; color: var(--danger); font-size: 9px; }
.rating-workbench { display: grid; grid-template-columns: 310px 1fr; align-items: center; gap: 26px; }
.deadline-strip { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 13px; margin: -5px 0 22px; padding: 12px 15px; border: 1px solid #d8c795; border-radius: 11px; background: #fff8e5; }
.deadline-strip > span { padding: 7px 8px; border-radius: 8px; color: var(--ivory); background: var(--gold-dark); font-size: 10px; font-weight: 800; text-align: center; }
.deadline-strip b, .deadline-strip p { display: block; margin: 0; }
.deadline-strip b { font-size: 11px; }
.deadline-strip p { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.deadline-strip.good { border-color: #a9ccb5; background: #edf8f0; }
.deadline-strip.good > span { background: var(--green-700); }
.deadline-strip.danger { border-color: #e0aaa0; background: #fff1ee; }
.deadline-strip.danger > span { background: var(--danger); }
.rating-gauge > div { position: relative; height: 9px; margin-bottom: 12px; border-radius: 99px; background: linear-gradient(90deg,#cf7866 0 40%,#d9b55b 70%,#3c8a5c 100%); }
.rating-gauge > div span { display: block; height: 100%; border-radius: inherit; background: rgba(255,255,255,.25); }
.rating-gauge > div i { position: absolute; top: 50%; left: 0; width: 15px; height: 15px; border: 3px solid var(--ivory); border-radius: 50%; background: var(--green-900); box-shadow: 0 2px 7px rgba(0,0,0,.2); transform: translate(-50%,-50%); transition: left .2s; }
.rating-gauge b { display: block; color: var(--green-800); font-size: 14px; }
.rating-gauge p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.course-rating-rubric { margin-top: 20px; }
.confirmation-pair { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; max-width: 760px; margin: 0 auto; }
.confirmation-pair > div { position: relative; min-height: 115px; padding: 20px 18px 16px 66px; border: 1px solid #d9d0bd; border-radius: 14px; background: #faf7ef; }
.confirmation-pair > div > span { position: absolute; top: 20px; left: 18px; display: grid; place-items: center; width: 34px; height: 38px; color: var(--green-950); background: linear-gradient(145deg,#f5daa0,var(--gold)); clip-path: polygon(50% 0,94% 18%,86% 70%,50% 100%,14% 70%,6% 18%); font-size: 12px; font-weight: 900; }
.confirmation-pair b { font-size: 13px; }
.confirmation-pair p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.confirmation-pair > i { color: var(--gold-dark); font-style: normal; text-align: center; }

.submit-preview { width: min(820px,calc(100% - 30px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; border: 1px solid var(--gold); border-radius: 20px; color: var(--ink); background: var(--ivory); box-shadow: 0 30px 90px rgba(6,31,18,.36); }
.submit-preview::backdrop { background: rgba(5,27,16,.72); backdrop-filter: blur(5px); }
.preview-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px 25px; color: var(--ivory); background: linear-gradient(135deg,var(--green-900),var(--green-700)); }
.preview-head p { margin: 0 0 4px; color: var(--gold-light); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.preview-head h2 { margin: 0; font-size: 23px; }
.preview-head button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: white; background: rgba(0,0,0,.15); font-size: 22px; }
.preview-code { display: flex; justify-content: space-between; gap: 12px; margin: 20px 25px 0; padding: 12px 15px; border: 1px solid #dcc98e; border-radius: 10px; background: #fff8e7; }
.preview-code span { color: var(--muted); font-size: 10px; }
.preview-code b { font-size: 11px; letter-spacing: .05em; }
.preview-section { margin: 19px 25px 0; }
.preview-section h3 { margin: 0 0 9px; padding-bottom: 8px; border-bottom: 1px solid #e4ddcf; color: var(--green-900); font-size: 13px; }
.preview-section dl { display: grid; grid-template-columns: 130px 1fr; margin: 0; }
.preview-section dt, .preview-section dd { margin: 0; padding: 9px 8px; border-bottom: 1px solid #eee8dc; font-size: 11px; }
.preview-section dt { color: var(--muted); }
.preview-section dd { white-space: pre-wrap; line-height: 1.65; }
.preview-long-text { max-height: 160px; overflow: auto; }
.confirmation-panel { display: grid; grid-template-columns: 58px 1fr; gap: 15px; margin: 22px 25px; padding: 17px; border: 1px solid #d9cda9; border-radius: 13px; background: #f9f4e6; }
.signature-seal { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid #a25a45; border-radius: 50%; color: #964c3a; background: #fff9ee; font-size: 21px; font-weight: 850; box-shadow: inset 0 0 0 3px #fff9ee, inset 0 0 0 4px rgba(162,90,69,.45); }
.confirmation-panel p { margin: 0 0 8px; color: var(--green-900); font-size: 12px; font-weight: 800; }
.confirmation-panel small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; }
.truth-check { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 1.6; cursor: pointer; }
.truth-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--green-700); }
.preview-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 25px; border-top: 1px solid #ddd4c2; background: rgba(255,253,246,.96); }
.preview-actions button { min-width: 170px; }

.record-detail { display: grid; gap: 16px; max-width: 1180px; margin: 0 auto 40px; }
.record-detail .form-section { width: 100%; }
.detail-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--ivory); }
.detail-toolbar small, .detail-toolbar b { display: block; }
.detail-toolbar small { margin-bottom: 3px; color: var(--muted); font-size: 9px; }
.detail-toolbar b { font-size: 12px; letter-spacing: .06em; }
.detail-toolbar button { min-height: 40px; }
.long-answer { color: #39493f; font-size: 13px; line-height: 2; }
.long-answer p { margin: 0 0 11px; }
.answer-grid { display: grid; gap: 13px; }
.answer-grid article { padding: 17px 18px; border: 1px solid #e0d8c7; border-radius: 12px; background: #faf7ee; }
.answer-grid article > span { display: block; margin-bottom: 8px; color: var(--gold-dark); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.signature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.signature-card { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 14px; padding: 17px; border: 1px dashed #cbc4b5; border-radius: 13px; background: #f7f4ed; opacity: .72; }
.signature-card.signed { border-style: solid; border-color: #bdad7f; background: #fff9e9; opacity: 1; }
.signature-card small, .signature-card b, .signature-card p { display: block; margin: 0; }
.signature-card small { color: var(--muted); font-size: 9px; }
.signature-card b { margin: 4px 0; font-size: 13px; }
.signature-card p { color: var(--muted); font-size: 9px; }
.detail-rating { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 5px; padding: 13px 16px; border: 1px solid #dcca96; border-radius: 12px; background: #fff8e7; }
.detail-rating span, .detail-rating small { color: var(--muted); font-size: 10px; }
.detail-rating strong { color: var(--green-900); font-size: 27px; }
.event-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.event-timeline li { position: relative; display: grid; grid-template-columns: 20px 1fr; gap: 10px; min-height: 56px; }
.event-timeline li::before { content: ""; position: absolute; top: 16px; bottom: -8px; left: 5px; width: 1px; background: #d7c99f; }
.event-timeline li:last-child::before { display: none; }
.event-timeline li > span { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; border: 2px solid var(--ivory); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px #b48b33; }
.event-timeline b { display: block; font-size: 11px; }
.event-timeline p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.approval-history { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.approval-history li { display: grid; grid-template-columns: 125px 1fr; gap: 15px; padding: 15px; border: 1px solid #ded6c6; border-radius: 12px; background: #faf7ef; }
.approval-round > span, .approval-round > b { display: block; }
.approval-round > span { margin-bottom: 8px; color: var(--gold-dark); font-size: 10px; font-weight: 850; }
.approval-content p { margin: 0 0 7px; font-size: 12px; line-height: 1.75; }
.approval-content small { color: var(--muted); font-size: 9px; }
.row-actions { gap: 6px; }

/* 审核工作台 */
.review-heading { background: radial-gradient(circle at 84% 12%,rgba(242,213,139,.13),transparent 24%),linear-gradient(135deg,#183d29,#2d6242); }
.review-metrics { margin-bottom: 16px; }
.review-queue-card { margin-bottom: 16px; }
.review-task-list { display: grid; }
.review-task-row { display: grid; grid-template-columns: 58px minmax(0,1fr) auto 110px; align-items: center; gap: 16px; min-height: 118px; padding: 19px 23px; border-bottom: 1px solid #e9e2d5; }
.review-task-row:last-child { border-bottom: 0; }
.review-kind { display: grid; place-items: center; width: 52px; height: 58px; color: var(--green-950); background: linear-gradient(145deg,#f6dea3,#d7aa4f); clip-path: polygon(50% 0,94% 18%,86% 70%,50% 100%,14% 70%,6% 18%); font-size: 18px; font-weight: 900; }
.review-kind.kind-battle { color: var(--ivory); background: linear-gradient(145deg,#3e8359,#153b27); }
.review-task-row .record-main > p { color: var(--gold-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.review-task-row .primary-link { justify-content: center; }
.review-history-card { margin-bottom: 40px; }
.review-history-list { display: grid; }
.review-history-list > a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; min-height: 78px; padding: 13px 22px; border-bottom: 1px solid #ebe5d9; }
.review-history-list > a:last-child { border-bottom: 0; }
.review-history-list .review-kind { width: 40px; height: 44px; font-size: 13px; }
.review-history-list b, .review-history-list small { display: block; }
.review-history-list b { font-size: 12px; }
.review-history-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.status-passed { color: #1f6b42; border-color: #9fc9af; background: #eaf7ee; }
.status-returned { color: #963d2c; border-color: #e0a99e; background: #fff0ed; }
.status-cancelled { color: #666d68; border-color: #d2d5d2; background: #f1f2ef; }
.review-detail-layout { display: grid; gap: 16px; max-width: 1180px; margin: 0 auto 44px; }
.review-detail-layout .form-section { width: 100%; }
.decision-result { display: flex; align-items: center; gap: 15px; padding: 17px 20px; border: 1px solid #a9ccb5; border-radius: 14px; background: #edf8f0; }
.decision-result > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: white; background: var(--green-700); font-size: 20px; font-weight: 900; }
.decision-result p, .decision-result h3, .decision-result small { display: block; margin: 0; }
.decision-result p { color: var(--muted); font-size: 9px; }
.decision-result h3 { margin: 2px 0 4px; font-size: 17px; }
.decision-result small { color: var(--muted); font-size: 9px; }
.decision-result.status-returned { border-color: #dfaaa0; background: #fff1ee; }
.decision-result.status-returned > span { background: var(--danger); }
.decision-result.status-cancelled { border-color: #d2d5d2; background: #f2f2ef; }
.decision-result.status-cancelled > span { background: #6a716c; }
.review-source-answer { margin-top: 12px; padding: 18px 20px; border: 1px solid #ded5c3; border-radius: 13px; background: #faf7ee; }
.review-source-answer > span { display: block; margin-bottom: 9px; color: var(--gold-dark); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.review-source-radar { margin-top: 18px; }
.review-source-radar > p { margin: 0 0 9px; color: var(--gold-dark); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.review-decision-form { display: grid; gap: 16px; }
.review-signature-section .confirmation-panel { max-width: 760px; margin: 0 auto; }
.review-actions { position: sticky; z-index: 12; bottom: 12px; display: flex; justify-content: flex-end; gap: 9px; padding: 13px; border: 1px solid rgba(211,200,178,.9); border-radius: 15px; background: rgba(255,253,246,.92); box-shadow: 0 10px 34px rgba(18,53,34,.14); backdrop-filter: blur(12px); }
.review-actions button { min-height: 47px; padding: 0 17px; border-radius: 10px; font-size: 12px; font-weight: 800; }
.return-button { border: 1px solid #d19b90; color: var(--danger); background: #fff3f0; }
.dashboard-review-list { display: grid; }
.dashboard-review-list > a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 70px; padding: 13px 20px; border-top: 1px solid #e8e1d4; }
.dashboard-review-list b, .dashboard-review-list small { display: block; }
.dashboard-review-list b { font-size: 12px; }
.dashboard-review-list small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.dashboard-review-list > a > span { color: var(--green-700); font-size: 10px; }

/* 督查批次与审定 */
.inspection-heading, .inspection-form-heading, .inspection-detail-heading, .inspection-item-heading { background: radial-gradient(circle at 84% 12%,rgba(242,213,139,.16),transparent 26%),linear-gradient(135deg,#0f3020,#285b3d); }
.inspection-batch-card, .inspection-items-card { margin-bottom: 40px; }
.compact-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid #ded5c4; border-radius: 10px; background: #f5f1e7; }
.compact-tabs a { padding: 7px 12px; border-radius: 7px; color: var(--muted); font-size: 11px; }
.compact-tabs a.active { color: var(--ivory); background: var(--green-700); }
.inspection-batch-list, .inspection-item-list { display: grid; }
.inspection-batch-row { display: grid; grid-template-columns: 52px minmax(220px,1fr) minmax(180px,.75fr) auto 92px; align-items: center; gap: 16px; min-height: 116px; padding: 18px 23px; border-bottom: 1px solid #e8e1d4; }
.inspection-batch-row:last-child, .inspection-item-row:last-child { border-bottom: 0; }
.inspection-batch-row:hover, .inspection-item-row:hover { background: #fffaf0; }
.batch-medal { display: grid; place-items: center; width: 48px; height: 54px; color: var(--green-950); background: linear-gradient(145deg,#f7dfa3,#d5aa52); clip-path: polygon(50% 0,94% 18%,86% 70%,50% 100%,14% 70%,6% 18%); font-weight: 900; }
.batch-progress b, .batch-progress small { display: block; }
.batch-progress b { color: var(--green-800); font-size: 14px; }
.batch-progress small { margin: 4px 0 8px; color: var(--muted); font-size: 9px; }
.batch-progress > span { display: block; height: 6px; overflow: hidden; border-radius: 99px; background: #e6e1d5; }
.batch-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--green-600),var(--gold)); }
.inspection-batch-row > em, .inspection-item-row > em { color: var(--green-700); font-size: 11px; font-style: normal; font-weight: 750; text-align: right; }
.status-active, .status-pending { color: #85591b; border-color: #e1c17c; background: #fff6dd; }
.status-completed { color: #546159; border-color: #cad2cc; background: #f0f3f0; }
.button-link { display: inline-flex; align-items: center; justify-content: center; }
.inspection-create-form { display: grid; gap: 16px; padding-bottom: 40px; }
.inspection-mode-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.inspection-mode-option { position: relative; display: block; cursor: pointer; }
.inspection-mode-option input { position: absolute; opacity: 0; }
.inspection-mode-option > span { display: block; min-height: 128px; padding: 23px; border: 1px solid #d8cfbd; border-radius: 15px; background: #faf7ef; transition: .2s ease; }
.inspection-mode-option input:checked + span { border-color: var(--gold); background: linear-gradient(145deg,#fffaf0,#f1e5c4); box-shadow: inset 4px 0 var(--green-700),0 7px 20px rgba(32,72,48,.08); }
.inspection-mode-option b, .inspection-mode-option small { display: block; }
.inspection-mode-option b { margin-bottom: 9px; color: var(--green-900); font-size: 18px; }
.inspection-mode-option small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.batch-freeze-notice { display: grid; grid-template-columns: 42px 1fr; gap: 14px; margin-top: 20px; padding: 16px; border: 1px solid #dac98f; border-radius: 13px; background: #fff8e5; }
.batch-freeze-notice > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ivory); background: var(--gold-dark); font-size: 11px; font-weight: 850; }
.batch-freeze-notice b, .batch-freeze-notice p { display: block; margin: 0; }
.batch-freeze-notice b { font-size: 12px; }
.batch-freeze-notice p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.batch-confirm { margin-top: 17px; padding: 15px 17px; border: 1px solid #d8d1c2; border-radius: 12px; background: #f7f4ec; }
.inspection-rule-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; max-width: 1180px; margin: 0 auto 16px; padding: 15px 18px; border: 1px solid #daca9e; border-radius: 14px; background: #fff9e9; }
.inspection-rule-strip > div { display: flex; align-items: center; gap: 12px; }
.inspection-rule-strip > div:first-child > span { display: grid; place-items: center; width: 38px; height: 42px; color: var(--green-950); background: linear-gradient(145deg,#f7dfa3,#d5aa52); clip-path: polygon(50% 0,94% 18%,86% 70%,50% 100%,14% 70%,6% 18%); font-size: 11px; font-weight: 900; }
.inspection-rule-strip p, .inspection-rule-strip b, .inspection-rule-strip small { display: block; margin: 0; }
.inspection-rule-strip b { font-size: 12px; }
.inspection-rule-strip small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.inspection-rule-strip .secondary-button { min-height: 39px; }
.inspection-filter-form { display: grid; grid-template-columns: 170px 170px minmax(210px,1fr) auto auto; align-items: end; gap: 10px; padding: 14px 20px; border-bottom: 1px solid #e6dfd1; background: #faf7ef; }
.inspection-filter-form > div { display: grid; gap: 5px; }
.inspection-filter-form label { color: var(--muted); font-size: 9px; }
.inspection-filter-form select, .inspection-filter-form input { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #cec7b9; border-radius: 9px; color: var(--ink); background: #fffefa; font-size: 11px; }
.inspection-filter-form .secondary-button { min-height: 40px; }
.inspection-filter-form > a { align-self: center; padding-top: 17px; color: var(--muted); font-size: 10px; }
.inspection-item-row { display: grid; grid-template-columns: 52px minmax(260px,1fr) minmax(150px,.55fr) auto 86px; align-items: center; gap: 15px; min-height: 112px; padding: 17px 22px; border-bottom: 1px solid #e8e1d4; }
.failure-preview b, .failure-preview small { display: block; }
.failure-preview b { color: var(--danger); font-size: 11px; }
.failure-preview small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.failure-preview.passed b { color: var(--green-700); }
.inspection-decision-note { display: grid; grid-template-columns: 38px 1fr; gap: 12px; margin-bottom: 20px; padding: 14px 15px; border: 1px solid #dfaaa0; border-radius: 12px; background: #fff2ef; }
.inspection-decision-note > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: white; background: var(--danger); font-weight: 900; }
.inspection-decision-note p, .inspection-decision-note b, .inspection-decision-note small { display: block; margin: 0; }
.inspection-decision-note b { color: #773326; font-size: 12px; }
.inspection-decision-note small { margin-top: 4px; color: #91675e; font-size: 9px; line-height: 1.55; }
.decision-grid { grid-template-columns: 240px minmax(0,1fr); align-items: start; }
.decision-grid .field-block.wide { margin: 0; padding: 0; border: 0; }
.decision-grid .field-block textarea { min-height: 160px; }
.decision-result.status-failed { border-color: #dfaaa0; background: #fff1ee; }
.decision-result.status-failed > span { background: var(--danger); }
.inspection-actions { bottom: 12px; }

/* 排班与导入 */
.calendar-legend { display: flex; gap: 8px; }
.calendar-legend span { padding: 7px 10px; border-radius: 999px; color: white; font-size: 10px; }
.calendar-legend .office, .schedule-chip.office { background: #2f7b51; }
.calendar-legend .teaching, .schedule-chip.teaching { background: #a47a27; }
.calendar-legend .leave, .schedule-chip.leave { background: #707a73; }
.calendar-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 16px; align-items: start; }
.month-card, .calendar-side-card, .import-card, .import-guide { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--ivory); box-shadow: var(--shadow); }
.schedule-table-wrap { overflow-x: auto; }
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td { padding: 13px 20px; border-bottom: 1px solid #ece6d9; text-align: left; font-size: 12px; }
.schedule-table th { color: var(--muted); background: #f7f3e9; font-size: 10px; letter-spacing: .06em; }
.schedule-table tr.today { background: #fffae9; box-shadow: inset 3px 0 var(--gold); }
.schedule-table td b, .schedule-table td small { display: block; }
.schedule-table td small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.schedule-table td > strong { color: var(--gold-dark); }
.schedule-chip, .muted-chip { display: inline-flex; min-width: 55px; justify-content: center; padding: 6px 9px; border-radius: 999px; color: white; font-size: 10px; }
.muted-chip { color: #8b8c85; background: #eeece6; }
.calendar-side-card { padding: 22px; }
.calendar-side-card > p, .import-guide > p { margin: 0 0 5px; color: var(--gold-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.calendar-side-card > h3, .import-guide > h3 { margin: 0 0 18px; font-size: 24px; }
.calendar-side-card > a { display: block; padding: 13px 0; border-top: 1px solid #e6dfd0; }
.calendar-side-card b, .calendar-side-card span { display: block; }
.calendar-side-card b { overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.calendar-side-card span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.small-empty { padding: 25px 0; color: var(--muted); font-size: 12px; text-align: center; }
.import-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 16px; align-items: start; }
.import-card { padding: 28px; }
.upload-form { display: grid; gap: 15px; }
.file-drop { display: grid; place-items: center; min-height: 190px; padding: 25px; border: 1px dashed #b9a873; border-radius: 15px; background: #fbf7ec; text-align: center; }
.file-drop > span { margin-bottom: 13px; color: var(--gold-dark); font-size: 35px; }
.file-drop input { max-width: 100%; }
.file-drop p { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.upload-form .primary-button { justify-self: end; }
.import-guide { padding: 27px; }
.import-guide ol { display: grid; gap: 19px; margin: 0; padding: 0; list-style: none; }
.import-guide li { display: grid; grid-template-columns: 35px 1fr; gap: 11px; align-items: start; }
.import-guide li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ivory); background: var(--green-700); font-size: 12px; font-weight: 900; }
.import-guide b, .import-guide small { display: block; }
.import-guide b { font-size: 12px; }
.import-guide small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.import-errors, .import-success { margin-top: 22px; padding: 18px; border: 1px solid #e1aaa0; border-radius: 13px; background: #fff2ef; }
.import-errors h3 { margin: 0 0 13px; color: var(--danger); font-size: 14px; }
.error-table-wrap { overflow-x: auto; }
.import-errors table { width: 100%; border-collapse: collapse; font-size: 11px; }
.import-errors th, .import-errors td { padding: 8px 9px; border-top: 1px solid #ebc9c2; text-align: left; }
.import-success { color: #215e3e; border-color: #a9ccb5; background: #edf8f0; }
.import-success p { margin: 6px 0 0; font-size: 11px; }
.import-history { margin-top: 16px; }
.import-history .record-row { grid-template-columns: minmax(0,1fr) auto 110px; }

@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .desktop-sidebar { padding-inline: 10px; }
  .workspace { padding-inline: 22px; }
  .workspace-topbar { margin-inline: -22px; padding-inline: 22px; }
  .metric-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-card { grid-template-columns: 68px 1fr; padding: 22px; }
  .action-badge { width: 66px; height: 74px; font-size: 30px; }
  .admin-entry-grid { grid-template-columns: 1fr; }
  .form-grid.three, .dimension-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .readonly-grid.four, .readonly-grid.five { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .radar-workbench { grid-template-columns: 1fr; }
  .radar-visual { min-height: 300px; }
  .calendar-layout, .import-layout { grid-template-columns: 1fr; }
  .inspection-batch-row { grid-template-columns: 52px minmax(0,1fr) auto 86px; }
  .inspection-batch-row .batch-progress { grid-column: 2; }
  .inspection-batch-row .status-pill { grid-column: 3; grid-row: 1; }
  .inspection-batch-row > em { grid-column: 4; grid-row: 1 / span 2; }
  .inspection-item-row { grid-template-columns: 52px minmax(0,1fr) auto 86px; }
  .inspection-item-row .failure-preview { grid-column: 2; }
  .inspection-item-row .status-pill { grid-column: 3; grid-row: 1; }
  .inspection-item-row > em { grid-column: 4; grid-row: 1 / span 2; }
  .calendar-side-card { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; }
  .calendar-side-card > p, .calendar-side-card > h3 { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { background: #f1eee5; }
  .auth-shell { display: block; min-height: 100vh; padding: 0; }
  .auth-brand { min-height: 42vh; padding: 42px 24px 56px; justify-content: flex-end; }
  .auth-brand .brand-insignia { width: 72px; height: 82px; margin-bottom: 17px; }
  .auth-brand .brand-insignia span { font-size: 30px; }
  .auth-brand h1 { font-size: 41px; }
  .auth-brand-copy { margin: 14px 0 0; font-size: 14px; line-height: 1.7; }
  .honor-line { display: none; }
  .auth-panel { min-height: 58vh; margin-top: -22px; padding: 22px 16px 38px; border-radius: 24px 24px 0 0; }
  .auth-card { padding: 28px 22px; border-radius: 19px; box-shadow: none; }
  .auth-shell.single { padding: 16px; }
  .auth-shell.single .auth-panel { min-height: auto; margin: 0; }

  .app-shell { display: block; }
  .desktop-sidebar, .workspace-topbar { display: none; }
  .workspace { padding: 0 14px 104px; }
  .role-switcher { display: block; margin: 0 -14px; padding: 14px; border-width: 0 0 1px; border-radius: 0; overflow-x: auto; white-space: nowrap; }
  .role-switcher > span { display: none; }
  .role-switcher div { display: inline-flex; flex-wrap: nowrap; }
  .hero-panel { min-height: 280px; margin: 0 -14px 14px; padding: 42px 24px 28px; border-width: 0 0 1px; border-radius: 0 0 24px 24px; align-items: flex-end; }
  .hero-panel::after { width: 80%; height: 60%; }
  .hero-copy h2 { font-size: 48px; }
  .hero-copy > p:last-child { font-size: 15px; }
  .hero-status { position: absolute; top: 22px; right: 20px; padding: 9px 12px; font-size: 11px; }
  .metric-grid, .metric-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
  .teacher-metrics .task-card { grid-column: 1 / -1; min-height: 136px; }
  .metric-card { min-height: 150px; padding: 19px 17px; border-radius: 16px; }
  .metric-card > strong { font-size: 32px; }
  .metric-grid.four .metric-card { min-height: 130px; }
  .action-grid { grid-template-columns: 1fr; gap: 11px; margin-bottom: 12px; }
  .action-card { grid-template-columns: 68px 1fr; min-height: 170px; padding: 20px 17px; border-radius: 17px; }
  .action-card h3 { font-size: 21px; }
  .action-card p { font-size: 12px; }
  .pending-strip { align-items: flex-start; gap: 12px; padding: 16px; }
  .pending-strip > div { align-items: flex-start; }
  .pending-strip button { display: none; }
  .section-heading { margin: 0 -14px 14px; padding: 66px 20px 28px; border-radius: 0 0 24px 24px; align-items: flex-end; }
  .section-heading h2 { font-size: 23px; }
  .heading-badge, .heading-link { position: absolute; top: 16px; right: 18px; }
  .worklist-head { padding: 18px; }
  .empty-preview { padding: 42px 18px; font-size: 13px; }
  .admin-entry-grid { gap: 10px; }
  .page-heading, .form-heading { margin: 0 -14px 14px; padding: 68px 20px 25px; border-width: 0 0 1px; border-radius: 0 0 24px 24px; }
  .page-heading { display: block; }
  .page-heading h2, .form-heading h2 { font-size: 30px; }
  .page-heading div > span, .form-heading > span { font-size: 12px; }
  .page-heading .gold-button, .page-heading .heading-outline-button { display: inline-flex; margin-top: 18px; }
  .form-heading > a { position: absolute; top: 20px; left: 20px; margin: 0; }
  .form-heading-line { display: block; }
  .record-code-badge { display: inline-block; min-width: 0; margin: 7px 0 4px; padding: 8px 11px; }
  .record-code-badge small { display: none; }
  .form-progress-panel { position: static; grid-template-columns: 1fr; gap: 8px; padding: 13px 15px; }
  .form-progress-panel > small { text-align: left; }
  .record-list-card, .form-section, .month-card, .calendar-side-card, .import-card, .import-guide { border-radius: 16px; }
  .inspection-list-head { align-items: flex-end; }
  .inspection-list-head .compact-tabs { margin-top: 13px; }
  .inspection-mode-grid { grid-template-columns: 1fr; }
  .inspection-mode-option > span { min-height: 0; padding: 18px; }
  .inspection-rule-strip { display: block; padding: 14px; }
  .inspection-rule-strip > div:last-child { justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2d5b4; }
  .inspection-filter-form { grid-template-columns: 1fr 1fr; padding: 14px; }
  .inspection-filter-form .filter-search { grid-column: 1 / -1; }
  .inspection-filter-form > a { align-self: center; padding: 0; }
  .inspection-batch-row, .inspection-item-row { grid-template-columns: 46px minmax(0,1fr) auto; gap: 10px; padding: 15px; }
  .inspection-batch-row .batch-medal { width: 43px; height: 48px; }
  .inspection-batch-row .batch-progress, .inspection-item-row .failure-preview { grid-column: 2 / -1; }
  .inspection-batch-row .status-pill, .inspection-item-row .status-pill { grid-column: 2; grid-row: 2; justify-self: start; }
  .inspection-batch-row > em, .inspection-item-row > em { grid-column: 3; grid-row: 1 / span 2; }
  .decision-grid { grid-template-columns: 1fr; }
  .record-list-head { min-height: 70px; padding: 15px 17px; }
  .record-list-head > span { display: none; }
  .record-row, .course-row { grid-template-columns: 54px minmax(0,1fr) auto; gap: 11px; padding: 15px; }
  .record-date { width: 51px; height: 55px; border-radius: 12px; }
  .record-date strong { font-size: 16px; }
  .record-row .status-pill, .course-row .status-pill { grid-column: 2; justify-self: start; }
  .row-actions { grid-column: 3; grid-row: 1 / span 2; }
  .course-symbol { width: 48px; height: 54px; }
  .record-main h4 { white-space: normal; }
  .form-section { padding: 21px 17px 24px; }
  .form-grid, .form-grid.three, .dimension-grid, .readonly-grid { grid-template-columns: 1fr; gap: 15px; }
  .readonly-grid.four, .readonly-grid.five { grid-template-columns: 1fr; }
  .field-block textarea { min-height: 170px; }
  .form-section-title mark { display: none; }
  .radar-workbench { gap: 8px; padding: 10px; }
  .radar-visual { min-height: 280px; }
  .radar-chart { max-width: 330px; }
  .radar-stats > div { min-height: 68px; padding: 10px; }
  .radar-stats strong { font-size: 12px; }
  .dimension-edit { grid-template-columns: 1fr; gap: 7px; }
  .dimension-controls { grid-template-columns: 58px 28px 1fr; }
  .score-rubric > div { grid-template-columns: 1fr; }
  .rating-workbench { grid-template-columns: 1fr; gap: 18px; }
  .rating-field { max-width: none; }
  .confirmation-pair { grid-template-columns: 1fr; gap: 9px; }
  .confirmation-pair > i { transform: rotate(90deg); }
  .review-task-row { grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; padding: 15px; }
  .review-task-row .review-kind { width: 44px; height: 50px; }
  .review-task-row .status-pill { grid-column: 2; justify-self: start; }
  .review-task-row .primary-link { grid-column: 3; grid-row: 1 / span 2; padding-inline: 10px; }
  .review-history-list > a { padding-inline: 15px; }
  .review-actions { bottom: 74px; display: grid; grid-template-columns: 1fr 1fr; padding: 9px; }
  .review-actions .primary-button { grid-column: 1 / -1; }
  .review-actions button { padding-inline: 8px; }
  .inspection-actions { bottom: 74px; grid-template-columns: 1fr; }
  .submit-preview { width: calc(100% - 20px); max-height: calc(100vh - 20px); border-radius: 16px; }
  .preview-head { padding: 18px; }
  .preview-code, .preview-section, .confirmation-panel { margin-right: 17px; margin-left: 17px; }
  .preview-section dl { grid-template-columns: 1fr; }
  .preview-section dt { padding-bottom: 2px; border-bottom: 0; color: var(--gold-dark); font-weight: 750; }
  .preview-section dd { padding-top: 3px; }
  .confirmation-panel { grid-template-columns: 45px 1fr; padding: 13px; }
  .confirmation-panel .signature-seal { width: 42px; height: 42px; font-size: 17px; }
  .preview-actions { padding: 11px 17px; }
  .preview-actions button { min-width: 0; flex: 1; padding-inline: 8px; }
  .detail-toolbar { padding: 12px 14px; }
  .detail-toolbar button { padding-inline: 11px; }
  .signature-grid { grid-template-columns: 1fr; }
  .approval-history li { grid-template-columns: 1fr; gap: 8px; }
  .form-actions { bottom: 74px; padding: 9px; border-radius: 13px; }
  .form-actions > * { flex: 1; padding: 0 10px; }
  .calendar-legend { margin-top: 16px; }
  .calendar-side-card { display: block; }
  .schedule-table th, .schedule-table td { padding: 11px 12px; white-space: nowrap; }
  .import-card, .import-guide { padding: 20px 17px; }
  .import-history .record-row { grid-template-columns: minmax(0,1fr) auto; }
  .import-history .record-row > span:last-child { display: none; }
  .mobile-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px max(5px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left)); border-top: 1px solid #ded8ca; background: rgba(255,254,249,.96); box-shadow: 0 -10px 30px rgba(17,44,29,.08); backdrop-filter: blur(12px); }
  .mobile-nav a { display: grid; place-items: center; gap: 2px; min-height: 52px; color: #777b77; }
  .mobile-nav a span { font-size: 22px; line-height: 1; }
  .mobile-nav a b { font-size: 10px; font-weight: 650; }
  .mobile-nav a.active { color: var(--green-700); }
}

@media (max-width: 390px) {
  .metric-card { padding-inline: 14px; }
  .metric-card > span { font-size: 11px; }
  .metric-card > strong { font-size: 28px; }
  .action-card { grid-template-columns: 58px 1fr; }
  .action-badge { width: 56px; height: 64px; }
}

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

@media print {
  body, .app-body { background: white; }
  .desktop-sidebar, .mobile-nav, .workspace-topbar, .role-switcher, .detail-toolbar button, .toast-stack { display: none !important; }
  .app-shell { display: block; }
  .workspace { padding: 0; }
  .form-heading, .detail-heading { margin: 0 0 14px; padding: 24px; border-radius: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .record-detail { gap: 10px; margin: 0; }
  .form-section, .detail-toolbar { break-inside: avoid; box-shadow: none; }
  .radar-workbench { grid-template-columns: 310px 1fr; padding: 10px; }
  .radar-visual { min-height: 280px; }
  .event-section { break-inside: auto; }
}

/* 第五阶段：训战积分、钱包与结算 */
.scoring-heading { background-image: radial-gradient(circle at 86% 20%, rgba(198,158,79,.18), transparent 26%), linear-gradient(135deg, #173c29, #0b281b); }
.trial-banner { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 13px 18px; border: 1px solid #d8bd7b; border-radius: 14px; background: #fff7df; color: #6f501a; }
.trial-banner b { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; background: #b6812e; color: white; font-size: 12px; }
.trial-banner span { font-size: 13px; line-height: 1.6; }
.wallet-hero { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.wallet-hero > div { min-height: 196px; padding: 24px; border: 1px solid #d9d1be; border-radius: 19px; background: #fffefa; box-shadow: 0 12px 34px rgba(18,52,34,.07); }
.wallet-total { position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 87% 20%, rgba(221,185,100,.28), transparent 26%), linear-gradient(145deg, #244f38, #0d2f20) !important; }
.wallet-total::after { position: absolute; right: -20px; bottom: -38px; width: 130px; height: 130px; border: 1px solid rgba(224,194,122,.2); border-radius: 50%; content: ""; }
.wallet-total > span, .wallet-star > span, .wallet-points > span { color: #777b72; font-size: 11px; font-weight: 750; letter-spacing: .08em; }
.wallet-total > span { color: #d8c79f; }
.wallet-total p { margin: 22px 0 2px; color: #ddd8c8; font-size: 13px; }
.wallet-total strong { display: block; font-family: Georgia, serif; font-size: 46px; line-height: 1; }
.wallet-total strong small { margin-right: 4px; color: #e0be69; font-size: 19px; }
.wallet-total em { display: inline-block; margin-top: 18px; padding: 5px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #efe5cd; font-size: 11px; font-style: normal; }
.wallet-star strong, .wallet-points strong { display: block; margin-top: 30px; color: var(--green-800); font-size: 27px; }
.wallet-star p, .wallet-points p { margin-top: 15px; color: #85867f; font-size: 12px; }
.wallet-points strong { font: 700 40px/1 Georgia, serif; }
.wallet-points strong small { font: 700 13px/1 sans-serif; }
.wallet-star .stars { margin-top: 10px; }
.star-progress-card { margin-bottom: 14px; padding: 21px 24px; border: 1px solid #d9d1be; border-radius: 17px; background: #fffefa; }
.star-progress-card > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.star-progress-card p { color: #777b72; font-size: 12px; }
.star-progress-card strong { color: var(--green-800); font-size: 14px; }
.progress-track { overflow: hidden; height: 9px; margin: 18px 0 10px; border-radius: 99px; background: #e8e4d9; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b6812e, #e0bf6b); }
.threshold-row { display: flex; justify-content: space-between; gap: 8px; }
.threshold-row span { display: grid; color: #96958e; font-size: 10px; }
.threshold-row b { color: #6c715f; font-size: 11px; }
.wallet-breakdown { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.wallet-breakdown.five { grid-template-columns: repeat(5, minmax(0,1fr)); }
.wallet-breakdown article { padding: 18px; border: 1px solid #ddd6c6; border-radius: 15px; background: #fffefa; }
.wallet-breakdown span { color: #75796f; font-size: 11px; }
.wallet-breakdown strong { display: block; margin: 9px 0 7px; color: var(--green-800); font: 700 24px/1 Georgia, serif; }
.wallet-breakdown p { color: #9a998f; font-size: 10px; }
.positive { color: #287348 !important; }
.negative { color: #a23d34 !important; }
.score-evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.score-evidence-card { overflow: hidden; border: 1px solid #d9d1be; border-radius: 17px; background: #fffefa; }
.score-evidence-card > div { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; background: #edf4ee; color: var(--green-800); }
.score-evidence-card.battle > div { background: #faf0dc; }
.score-evidence-card > div span { font-size: 12px; font-weight: 750; }
.score-evidence-card > div strong { font-size: 19px; }
.score-evidence-card dl { display: grid; grid-template-columns: repeat(4,1fr); padding: 16px; }
.score-evidence-card dl div { text-align: center; }
.score-evidence-card dt { color: #91918a; font-size: 10px; }
.score-evidence-card dd { margin-top: 5px; color: #283c31; font-size: 14px; font-weight: 750; }
.ledger-card, .ranking-card, .analytics-table-card, .revision-card { overflow: hidden; margin-bottom: 16px; border: 1px solid #d9d1be; border-radius: 18px; background: #fffefa; box-shadow: 0 12px 34px rgba(18,52,34,.06); }
.ledger-head, .ranking-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid #e6dfd0; }
.ledger-head p, .ranking-head p { color: #aa813c; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ledger-head h3, .ranking-head h3 { margin-top: 3px; color: var(--green-800); font-size: 18px; }
.ledger-head > a, .ranking-head > span { color: #75796f; font-size: 11px; }
.ledger-list article { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid #eee9df; }
.ledger-list article:last-child { border-bottom: 0; }
.ledger-kind { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #d7c89f; border-radius: 50%; background: #faf5e9; color: #9b702c; font-weight: 800; }
.ledger-list b { color: #203b2b; font-size: 13px; }
.ledger-list p { margin: 3px 0; color: #777c73; font-size: 11px; }
.ledger-list small { color: #aaa89f; font-size: 9px; }
.ledger-list > article > strong { font-size: 13px; white-space: nowrap; }
.ranking-scope { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px; border: 1px solid #dad2c1; border-radius: 14px; background: #fffefa; }
.ranking-scope a { padding: 9px 14px; border-radius: 9px; color: #74786f; font-size: 12px; font-weight: 700; }
.ranking-scope a.active { background: var(--green-700); color: white; }
.ranking-scope span { margin-left: auto; padding-right: 8px; color: #99988f; font-size: 11px; }
.own-rank-card { display: flex; align-items: center; gap: 20px; margin-bottom: 14px; padding: 18px 22px; border: 1px solid #c9b16e; border-radius: 16px; background: linear-gradient(100deg, #173e2a, #28543c); color: white; }
.own-rank-card span { color: #d8caa8; font-size: 11px; }
.own-rank-card strong { color: #f0d282; font: 700 25px/1 Georgia, serif; }
.own-rank-card p { margin-left: auto; color: #e7e2d4; font-size: 12px; }
.ranking-list a { display: grid; grid-template-columns: 44px 42px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 14px 22px; border-bottom: 1px solid #eee9df; color: inherit; }
.ranking-list a.me { background: #f2f7f1; }
.ranking-list a > em { color: #9a7a3d; font: italic 700 20px/1 Georgia, serif; text-align: center; }
.rank-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: #e8efe9; color: var(--green-700); font-size: 14px; font-weight: 800; }
.ranking-list b { color: #243a2d; font-size: 13px; }
.ranking-list b i { margin-left: 6px; padding: 2px 5px; border-radius: 4px; background: #b88735; color: white; font-size: 8px; font-style: normal; }
.ranking-list small { display: block; margin-top: 2px; color: #98988f; font-size: 9px; }
.ranking-list > a > strong { color: var(--green-800); font: 700 20px/1 Georgia, serif; }
.ranking-list > a > strong small { display: inline; margin-left: 2px; font: 700 9px/1 sans-serif; }
.analytics-filters { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 10px; margin-bottom: 14px; padding: 16px; border: 1px solid #d9d1be; border-radius: 15px; background: #fffefa; }
.analytics-filters label { display: grid; gap: 6px; }
.analytics-filters label span { color: #6f746b; font-size: 10px; font-weight: 750; }
.analytics-filters select { min-height: 42px; padding: 0 10px; border: 1px solid #d8d2c4; border-radius: 9px; background: white; color: #2e4135; }
.analytics-table-scroll { overflow-x: auto; }
.analytics-table { width: 100%; min-width: 920px; border-collapse: collapse; }
.analytics-table th { padding: 11px 13px; background: #f5f2e9; color: #777a72; font-size: 9px; text-align: left; white-space: nowrap; }
.analytics-table td { padding: 13px; border-top: 1px solid #ece7dc; color: #4f584f; font-size: 11px; white-space: nowrap; }
.analytics-table td a { color: var(--green-700); font-weight: 750; }
.analytics-table td a small { display: block; color: #aaa89f; font-size: 8px; }
.table-rank { color: #9b722e; font: italic 700 17px/1 Georgia, serif; }
.settlement-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 14px; }
.settlement-summary article { padding: 18px; border: 1px solid #d9d1be; border-radius: 15px; background: #fffefa; }
.settlement-summary span { color: #83857d; font-size: 10px; }
.settlement-summary strong { display: block; margin: 9px 0 6px; color: var(--green-800); font-size: 21px; }
.settlement-summary p { color: #99988f; font-size: 10px; }
.revision-card ol { list-style: none; }
.revision-card li { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 15px 22px; border-top: 1px solid #eee9df; }
.revision-card li.current { background: #f1f6f0; }
.revision-card li > em { color: #9b722e; font: italic 700 18px/1 Georgia,serif; }
.revision-card li b { color: #24402f; font-size: 12px; }
.revision-card li small { display: block; margin-top: 3px; color: #99988f; font-size: 9px; }
.revision-card li > span { color: #526258; font-size: 11px; }
.objection-form { max-width: 860px; margin-inline: auto; }
.truth-check { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding: 13px; border: 1px solid #dbd4c6; border-radius: 10px; background: #faf8f1; color: #526057; font-size: 12px; }
.truth-check input { width: 18px; height: 18px; accent-color: var(--green-700); }
.form-actions.static { position: static; margin-top: 24px; box-shadow: none; }
.objection-list a { display: grid; grid-template-columns: 43px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid #eee9df; color: inherit; }
.objection-list a > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eaf0e9; color: var(--green-700); font-weight: 800; }
.objection-list b { color: #25402f; font-size: 13px; }
.objection-list p { margin: 3px 0; color: #777b74; font-size: 11px; }
.objection-list small { color: #aaa89f; font-size: 9px; }
.objection-list em { color: #9c742e; font-size: 11px; font-style: normal; }
.objection-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.objection-evidence article { padding: 20px; border: 1px solid #d9d1be; border-radius: 15px; background: #fffefa; }
.objection-evidence span { color: #a6792d; font-size: 10px; font-weight: 800; }
.objection-evidence p { margin-top: 10px; color: #526057; font-size: 12px; line-height: 1.8; }
.decision-radios ul { display: flex; gap: 10px; list-style: none; }
.decision-radios label { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border: 1px solid #d7d0c1; border-radius: 9px; background: white; }

@media (max-width: 900px) {
  .wallet-hero { grid-template-columns: 1fr 1fr; }
  .wallet-total { grid-column: 1 / -1; }
  .wallet-breakdown, .settlement-summary { grid-template-columns: 1fr 1fr; }
  .wallet-breakdown.five { grid-template-columns: 1fr 1fr; }
  .analytics-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .wallet-hero, .score-evidence-grid, .objection-evidence { grid-template-columns: 1fr; }
  .wallet-total { grid-column: auto; }
  .wallet-hero > div { min-height: 165px; padding: 20px; }
  .wallet-star strong, .wallet-points strong { margin-top: 22px; }
  .wallet-breakdown, .settlement-summary { grid-template-columns: 1fr 1fr; gap: 9px; }
  .wallet-breakdown article, .settlement-summary article { padding: 14px; }
  .score-evidence-card dl { padding-inline: 8px; }
  .trial-banner { align-items: flex-start; margin-inline: 0; }
  .star-progress-card > div:first-child { display: block; }
  .star-progress-card strong { display: block; margin-top: 4px; }
  .ledger-head, .ranking-head { align-items: flex-end; padding: 17px; }
  .ledger-list article { grid-template-columns: 38px minmax(0,1fr); padding: 14px 16px; }
  .ledger-kind { width: 36px; height: 36px; }
  .ledger-list > article > strong { grid-column: 2; justify-self: start; }
  .ranking-scope { overflow-x: auto; }
  .ranking-scope span { white-space: nowrap; }
  .own-rank-card { flex-wrap: wrap; gap: 10px 16px; }
  .own-rank-card p { width: 100%; margin-left: 0; }
  .ranking-list a { grid-template-columns: 32px 38px minmax(0,1fr) auto; gap: 9px; padding: 13px 14px; }
  .analytics-filters { grid-template-columns: 1fr; }
  .revision-card li { grid-template-columns: 42px minmax(0,1fr); padding: 14px 16px; }
  .revision-card li > span { grid-column: 2; }
  .objection-list a { grid-template-columns: 40px minmax(0,1fr); padding: 14px 16px; }
  .objection-list em { grid-column: 2; }
}
