:root {
  --ink: #202522;
  --ink-soft: #59645f;
  --green: #102a27;
  --green-mid: #1d6b5a;
  --paper: #f5f1e8;
  --paper-deep: #e9e1d3;
  --line: #d9d2c4;
  --brass: #b88a4a;
  --brass-soft: #ead9b9;
  --red: #b85c4a;
  --white: #fffdf8;
  --shadow: 0 18px 42px rgba(16, 42, 39, .09);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.toast { position: fixed; z-index: 20; top: 22px; left: 50%; transform: translate(-50%, -24px); opacity: 0; pointer-events: none; background: var(--green); color: #fff; padding: 11px 18px; border-radius: 4px; transition: .25s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); background: linear-gradient(120deg, var(--green) 0 58%, var(--paper) 58%); }
.login-rail { color: #f8f4ec; padding: clamp(42px, 8vw, 112px) clamp(30px, 8vw, 128px); display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--brass); color: var(--brass); font-family: Georgia, serif; font-size: 28px; transform: rotate(-7deg); }
.brand-mark span { transform: rotate(7deg); }
.brand-mark.small { width: 34px; height: 34px; font-size: 18px; flex: 0 0 auto; }
.eyebrow, .card-kicker { letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: var(--brass); margin: 0 0 18px; }
.login-rail h1 { font-family: Georgia, "Songti SC", serif; font-size: clamp(48px, 7vw, 88px); letter-spacing: -.04em; line-height: .98; font-weight: 400; margin: 0 0 24px; max-width: 560px; }
.login-copy { max-width: 420px; line-height: 1.9; color: rgba(255,255,255,.72); font-size: 15px; }
.login-rule { display: flex; justify-content: space-between; color: rgba(255,255,255,.48); border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; font-size: 12px; letter-spacing: .06em; }
.login-card-wrap { display: grid; place-items: center; padding: 42px; }
.login-card { width: min(100%, 420px); background: var(--white); border: 1px solid var(--line); padding: 42px; box-shadow: 24px 24px 0 rgba(184,138,74,.13); }
.login-card h2 { font-family: Georgia, "Songti SC", serif; font-weight: 400; font-size: 34px; margin: 0 0 10px; }
.muted { color: var(--ink-soft); line-height: 1.7; font-size: 13px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-bottom: 1px solid var(--line); margin: 30px 0 24px; }
.role-tab { border: 0; background: transparent; padding: 11px 0 13px; color: var(--ink-soft); position: relative; }
.role-tab.is-active { color: var(--green); font-weight: 700; }
.role-tab.is-active::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: -1px; height: 2px; background: var(--brass); }
.field-label { display: block; font-size: 12px; color: var(--ink-soft); margin: 16px 0 7px; }
.field { width: 100%; padding: 13px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); outline: none; }
.field:focus, textarea:focus { border-color: var(--green-mid); box-shadow: 0 0 0 3px rgba(29,107,90,.13); }
.primary-btn, .ghost-btn, .logout-btn { border: 0; display: inline-flex; align-items: center; justify-content: space-between; gap: 15px; }
.primary-btn { width: 100%; margin-top: 24px; color: #fff; background: var(--green); padding: 14px 16px; }
.primary-btn:hover { background: var(--green-mid); }
.login-hint { color: var(--ink-soft); font-size: 12px; line-height: 1.6; margin: 18px 0 0; }
.form-error { color: var(--red); font-size: 12px; min-height: 18px; margin: 12px 0 0; }
.app-view { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { background: var(--green); color: #e9f0ea; padding: 28px 18px 20px; display: flex; flex-direction: column; min-height: 100vh; }
.sidebar-brand { display: flex; gap: 12px; align-items: center; padding: 0 10px 30px; }
.sidebar-brand strong { display: block; font-size: 14px; }
.sidebar-brand small { display: block; font-size: 12px; color: rgba(255,255,255,.46); margin-top: 5px; }
.side-nav { display: grid; gap: 5px; }
.nav-item { border: 0; background: transparent; color: rgba(255,255,255,.64); padding: 12px 12px; display: flex; gap: 12px; align-items: center; text-align: left; border-left: 2px solid transparent; font-size: 13px; }
.nav-item:hover, .nav-item.is-active { color: #fff; background: rgba(255,255,255,.08); border-left-color: var(--brass); }
.nav-icon { width: 18px; color: var(--brass); font-size: 16px; text-align: center; }
.sidebar-note { margin: auto 10px 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 10px; color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.6; }
.sidebar-note strong { color: rgba(255,255,255,.8); font-size: 12px; }
.sidebar-note p { margin: 3px 0 0; }
.note-dot { width: 7px; height: 7px; border-radius: 50%; background: #61b493; margin-top: 6px; flex: 0 0 auto; }
.logout-btn { color: rgba(255,255,255,.68); background: transparent; padding: 12px; text-align: left; font-size: 12px; }
.content-area { min-width: 0; }
.topbar { height: 78px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(22px, 4vw, 64px); background: rgba(255,253,248,.74); }
.mobile-brand { display: none; align-items: center; gap: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.ghost-btn { background: transparent; color: var(--green); border-bottom: 1px solid var(--brass); padding: 6px 0; font-size: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; border-left: 1px solid var(--line); padding-left: 18px; }
.user-chip > span:first-child { width: 34px; height: 34px; background: var(--brass-soft); color: var(--green); display: grid; place-items: center; font-family: Georgia, serif; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: 12px; }
.user-chip small { color: var(--ink-soft); font-size: 12px; margin-top: 4px; }
.page-panel { padding: clamp(28px, 5vw, 62px) clamp(22px, 4vw, 64px) 72px; }
.content-section { display: none; }
.content-section.is-visible { display: block; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-family: Georgia, "Songti SC", serif; font-weight: 400; font-size: clamp(28px, 4vw, 44px); margin: 4px 0 0; letter-spacing: -.03em; }
.section-head p { color: var(--ink-soft); font-size: 13px; margin: 8px 0 0; }
.section-kicker { color: var(--brass); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.hero-score { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); background: var(--green); color: #fff; min-height: 260px; margin-bottom: 22px; }
.hero-copy { padding: 34px 38px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-copy .eyebrow { color: var(--brass); }
.hero-copy h2 { font-family: Georgia, "Songti SC", serif; font-size: clamp(34px, 5vw, 58px); font-weight: 400; margin: 0; }
.hero-copy p { color: rgba(255,255,255,.62); font-size: 13px; margin: 8px 0 0; }
.hero-scoreboard { background: rgba(255,255,255,.06); border-left: 1px solid rgba(255,255,255,.12); padding: 34px; display: grid; align-content: center; gap: 18px; }
.big-score { font-size: clamp(56px, 8vw, 82px); line-height: .9; font-family: Georgia, serif; color: var(--brass); }
.score-label { color: rgba(255,255,255,.6); font-size: 12px; }
.rank-line { display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.16); padding-top: 16px; font-size: 13px; }
.rank-line strong { color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 34px; }
.stat-card { border-top: 2px solid var(--line); padding: 16px 4px 12px; }
.stat-card.accent { border-color: var(--brass); }
.stat-card .stat-label { color: var(--ink-soft); font-size: 12px; }
.stat-card .stat-value { font-size: 24px; margin-top: 10px; color: var(--green); }
.stat-card .stat-meta { color: var(--ink-soft); font-size: 12px; margin-top: 5px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 28px; }
.paper-panel { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-bottom: 20px; }
.panel-title h3 { font-size: 14px; margin: 0; }
.panel-title span { color: var(--ink-soft); font-size: 12px; }
.bar-row { display: grid; grid-template-columns: 52px minmax(0,1fr) 50px; align-items: center; gap: 12px; margin: 16px 0; font-size: 12px; }
.bar-track { background: var(--paper-deep); height: 9px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--green-mid); }
.bar-fill.brass { background: var(--brass); }
.bar-fill.red { background: var(--red); }
.bar-value { text-align: right; color: var(--green); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
.daily-table { min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 620px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--ink-soft); font-size: 12px; font-weight: 500; background: rgba(245,241,232,.58); }
tbody tr:last-child td { border-bottom: 0; }
.value-positive { color: var(--green-mid); font-weight: 700; }
.value-negative { color: var(--red); font-weight: 700; }
.empty-state { padding: 26px; color: var(--ink-soft); background: var(--white); border: 1px dashed var(--line); font-size: 13px; }
.module-score { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 26px; }
.module-score-card { background: var(--white); border: 1px solid var(--line); padding: 20px; }
.module-score-card strong { display: block; font-size: 28px; color: var(--green); margin-top: 11px; }
.module-score-card small { color: var(--ink-soft); font-size: 12px; }
.module-tabs { display: flex; gap: 9px; margin: 0 0 12px; flex-wrap: wrap; }
.module-tab { border: 1px solid var(--line); background: transparent; padding: 8px 13px; color: var(--ink-soft); font-size: 12px; }
.module-tab.is-active { background: var(--green); color: #fff; border-color: var(--green); }
.request-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 26px; }
.form-panel { background: var(--white); border: 1px solid var(--line); padding: 24px; }
.form-panel h3 { margin: 0 0 7px; font-size: 15px; }
.form-panel p { color: var(--ink-soft); font-size: 12px; line-height: 1.7; margin: 0 0 16px; }
textarea.field { min-height: 108px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.small-btn { border: 0; background: var(--green); color: #fff; padding: 10px 14px; font-size: 12px; }
.request-list { display: grid; gap: 10px; }
.request-item { border: 1px solid var(--line); padding: 15px; background: var(--white); display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.request-item strong { font-size: 13px; }
.request-item p { color: var(--ink-soft); margin: 7px 0; font-size: 12px; line-height: 1.6; }
.status { display: inline-flex; align-items: center; padding: 4px 8px; font-size: 12px; border: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap; height: fit-content; }
.status.pending, .status.in_review { color: #86601d; border-color: var(--brass-soft); background: #fbf5e8; }
.status.approved { color: var(--green-mid); border-color: #bfdccf; background: #eef8f2; }
.status.rejected { color: var(--red); border-color: #e5c1b7; background: #fff2ee; }
.admin-hero { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.admin-stat { background: var(--green); color: #fff; padding: 22px; }
.admin-stat:nth-child(2) { background: var(--brass); color: var(--green); }
.admin-stat:nth-child(3) { background: var(--white); color: var(--green); border: 1px solid var(--line); }
.admin-stat small { display: block; opacity: .68; font-size: 12px; }
.admin-stat strong { font-size: 32px; font-family: Georgia, serif; font-weight: 400; display: block; margin-top: 16px; }
.admin-section { margin-bottom: 28px; }
.admin-section h3 { font-size: 15px; margin: 0 0 13px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.review-cell { display: flex; gap: 6px; align-items: center; }
.review-cell select, .review-cell input { border: 1px solid var(--line); padding: 7px; font-size: 12px; background: #fff; }
.review-btn { border: 0; background: var(--green); color: #fff; padding: 7px 9px; font-size: 12px; }
@media (max-width: 980px) { .login-view { grid-template-columns: 1fr; background: var(--green); } .login-rail { min-height: auto; padding-bottom: 32px; } .login-rule { display: none; } .login-card-wrap { padding-top: 0; align-items: start; } .app-view { grid-template-columns: 1fr; } .sidebar { min-height: auto; padding: 12px 16px; position: sticky; top: 0; z-index: 10; } .sidebar-brand { padding: 0 4px 12px; } .side-nav { display: flex; overflow-x: auto; gap: 2px; } .nav-item { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; } .nav-item:hover, .nav-item.is-active { border-bottom-color: var(--brass); } .sidebar-note, .logout-btn { display: none; } .topbar { padding: 0 22px; } .mobile-brand { display: flex; } .sidebar-brand { display: none; } }
@media (max-width: 720px) { .login-card { padding: 28px; } .login-card-wrap { padding: 24px; } .topbar { height: auto; min-height: 70px; gap: 12px; } .topbar-actions { gap: 10px; } .ghost-btn { font-size: 0; border: 0; } .ghost-btn span { font-size: 18px; } .user-chip { padding-left: 10px; } .user-chip > span:last-child { display: none; } .page-panel { padding: 28px 16px 46px; } .hero-score { grid-template-columns: 1fr; } .hero-scoreboard { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); } .stat-grid { grid-template-columns: 1fr 1fr; } .dashboard-grid, .request-grid { grid-template-columns: 1fr; } .module-score { grid-template-columns: 1fr 1fr; } .section-head { align-items: start; flex-direction: column; } .admin-hero { grid-template-columns: 1fr; } }

.paper-panel .rank-line { color: var(--ink); border-top-color: var(--line); }
.link-button { border: 0; background: transparent; color: var(--green-mid); padding: 0; font-size: 12px; text-decoration: underline; cursor: pointer; }

.w-0 { width: 0%; }
.w-1 { width: 1%; }
.w-2 { width: 2%; }
.w-3 { width: 3%; }
.w-4 { width: 4%; }
.w-5 { width: 5%; }
.w-6 { width: 6%; }
.w-7 { width: 7%; }
.w-8 { width: 8%; }
.w-9 { width: 9%; }
.w-10 { width: 10%; }
.w-11 { width: 11%; }
.w-12 { width: 12%; }
.w-13 { width: 13%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-16 { width: 16%; }
.w-17 { width: 17%; }
.w-18 { width: 18%; }
.w-19 { width: 19%; }
.w-20 { width: 20%; }
.w-21 { width: 21%; }
.w-22 { width: 22%; }
.w-23 { width: 23%; }
.w-24 { width: 24%; }
.w-25 { width: 25%; }
.w-26 { width: 26%; }
.w-27 { width: 27%; }
.w-28 { width: 28%; }
.w-29 { width: 29%; }
.w-30 { width: 30%; }
.w-31 { width: 31%; }
.w-32 { width: 32%; }
.w-33 { width: 33%; }
.w-34 { width: 34%; }
.w-35 { width: 35%; }
.w-36 { width: 36%; }
.w-37 { width: 37%; }
.w-38 { width: 38%; }
.w-39 { width: 39%; }
.w-40 { width: 40%; }
.w-41 { width: 41%; }
.w-42 { width: 42%; }
.w-43 { width: 43%; }
.w-44 { width: 44%; }
.w-45 { width: 45%; }
.w-46 { width: 46%; }
.w-47 { width: 47%; }
.w-48 { width: 48%; }
.w-49 { width: 49%; }
.w-50 { width: 50%; }
.w-51 { width: 51%; }
.w-52 { width: 52%; }
.w-53 { width: 53%; }
.w-54 { width: 54%; }
.w-55 { width: 55%; }
.w-56 { width: 56%; }
.w-57 { width: 57%; }
.w-58 { width: 58%; }
.w-59 { width: 59%; }
.w-60 { width: 60%; }
.w-61 { width: 61%; }
.w-62 { width: 62%; }
.w-63 { width: 63%; }
.w-64 { width: 64%; }
.w-65 { width: 65%; }
.w-66 { width: 66%; }
.w-67 { width: 67%; }
.w-68 { width: 68%; }
.w-69 { width: 69%; }
.w-70 { width: 70%; }
.w-71 { width: 71%; }
.w-72 { width: 72%; }
.w-73 { width: 73%; }
.w-74 { width: 74%; }
.w-75 { width: 75%; }
.w-76 { width: 76%; }
.w-77 { width: 77%; }
.w-78 { width: 78%; }
.w-79 { width: 79%; }
.w-80 { width: 80%; }
.w-81 { width: 81%; }
.w-82 { width: 82%; }
.w-83 { width: 83%; }
.w-84 { width: 84%; }
.w-85 { width: 85%; }
.w-86 { width: 86%; }
.w-87 { width: 87%; }
.w-88 { width: 88%; }
.w-89 { width: 89%; }
.w-90 { width: 90%; }
.w-91 { width: 91%; }
.w-92 { width: 92%; }
.w-93 { width: 93%; }
.w-94 { width: 94%; }
.w-95 { width: 95%; }
.w-96 { width: 96%; }
.w-97 { width: 97%; }
.w-98 { width: 98%; }
.w-99 { width: 99%; }
.w-100 { width: 100%; }
.separated { margin-top: 28px; }
.data-note { padding: 18px 22px; background: var(--brass-soft); color: #49351b; font-size: 13px; line-height: 1.8; margin: 24px 0; }
.data-note p { margin: 4px 0; }
.rule-text { white-space: pre-wrap; line-height: 1.9; max-width: 80ch; }
.rule-text p { margin: 0 0 12px; }
.password-view { min-height: 100vh; display: grid; align-content: center; justify-content: center; gap: 22px; padding: 24px; }
.password-view .form-panel { width: min(100%, 480px); }
.password-form { max-width: 520px; }
.review-form { display: grid; gap: 8px; min-width: 180px; }
.review-form label { display: grid; gap: 5px; }
.review-form textarea, .review-form select, .review-form input { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); background: white; }
.review-form textarea { min-height: 64px; }
.text-button { border: 0; background: transparent; color: var(--green); padding: 10px; }
.mobile-logout { display: none; }
.organization { color: #e4c28e; font-size: 14px; margin: 0 0 18px; }
.login-card { box-shadow: var(--shadow); }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #98713c; outline-offset: 3px; }
::selection { color: var(--white); background: var(--green-mid); }
input, textarea { caret-color: var(--green-mid); }
table { font-variant-numeric: tabular-nums; }
small, .muted { line-height: 1.7; }
summary { cursor: pointer; padding: 16px 0; color: var(--green); font-weight: 600; }
.request-item p, .request-item small, table td { overflow-wrap: anywhere; }
#admin-detail { scroll-margin-top: 100px; }
.reset-result { overflow-wrap: anywhere; }
.topbar .ghost-btn { font-size: 12px; }
.nav-item { border-left: 0; border-radius: 6px; }
@media (max-width: 980px) { .mobile-logout { display: block; } .sidebar { overflow: hidden; } .side-nav { scrollbar-width: thin; } }
@media (max-width: 720px) { .mobile-brand strong { display: none; } .topbar { padding: 0 16px; } .topbar-actions { gap: 8px; } .data-note { padding: 14px; } .login-rail h1 { font-size: 50px; } .hero-copy { padding: 28px 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.sidebar-brand small { color: #9eaeaa; }
.section-kicker, .card-kicker { color: #886128; }
