:root {
  --bg: #f3f5f7;
  --paper: #fff;
  --panel: #fff;
  --panel-strong: #f4f6f8;
  --ink: #252d36;
  --muted: #65717e;
  --faint: #87919c;
  --line: #d9dfe5;
  --line-soft: #e7ebef;
  --nav: #fff;
  --nav-soft: #fff;
  --primary: #245b9e;
  --primary-2: #1c4d86;
  --primary-soft: #edf3fa;
  --blue: #245b9e;
  --blue-soft: #edf3fa;
  --red: #b3261e;
  --red-soft: #fbefee;
  --amber: #8b6511;
  --amber-soft: #f9f4e8;
  --green: #326b4d;
  --green-soft: #edf4ef;
  --shadow: none;
  --shadow-soft: none;
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 3px;
}

html, body { background: var(--bg); }
body {
  background-image: none;
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", sans-serif;
}
.app-shell { grid-template-columns: 240px minmax(0, 1fr); }
.sidebar {
  color: var(--ink);
  background: #fff;
  border-right: 1px solid var(--line);
}
.brand strong { color: #202832; }
.brand em, .operator-card span, .operator-card em { color: #697582; }
.brand-mark { background: #edf3fa; color: var(--primary); }
.operator-card { background: #f7f8fa; border: 0; border-radius: 2px; }
.operator-card strong { color: var(--ink); }
.nav-group { color: #7a8490; font-weight: 700; }
.nav-item { color: #3b4652; border-radius: 2px; }
.nav-item span { background: transparent; color: #677584; }
.nav-item:hover { background: #f2f5f8; color: #1f4f86; }
.nav-item.active { background: #edf3fa; color: #204f87; }
.nav-item.active span { background: transparent; color: #204f87; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); backdrop-filter: none; }
.page-title span, .eyebrow { color: #687482; }
.content { background: transparent; }
.panel, .table-panel, .kpi-card, .record-card, .process-step, .workbench-hero, .review-console, .list-toolbar, .record-hero {
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  background: #fff;
}
.kpi-card::before { display: none; }
.workbench-hero, .list-toolbar, .record-hero, .review-console {
  border-left: 0 !important;
  border-bottom: 1px solid var(--line);
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}
.panel-header { border-color: var(--line-soft); }
.btn { border-radius: 2px; font-weight: 600; }
.btn-primary { border-color: var(--primary); background: var(--primary); }
.btn-primary:hover { border-color: var(--primary-2); background: var(--primary-2); }
.btn-danger { color: var(--red); border-color: #d7aaa7; background: #fff; }
.tag { border-radius: 2px; font-weight: 600; background: #f4f6f8; }
.status-tag { background: var(--green-soft); border-color: #d8e7dc; color: var(--green); }
.status-alert { background: var(--red-soft); border-color: #e7c4c1; color: var(--red); }
.data-table th { background: #f5f7f9; color: #46515d; font-weight: 700; }
.data-table td, .data-table th { border-color: var(--line-soft); }
input, select, textarea { border-radius: 2px; border-color: #cfd6dd; box-shadow: none; }
input:focus, select:focus, textarea:focus { border-color: #6d92bf; outline: 2px solid #e4edf8; }
.filter-tabs>a.active { background: #edf3fa; border-color: #c5d5e8; color: #245b9e; }
.workbench-link:hover { background: #f7f9fb; border-color: #cad5e1; box-shadow: none; }
.workbench-link:focus-visible { outline-color: #668ab4; }
.process-step .step-action, .readiness-row strong, .queue-list span, .readiness-list strong { color: #245b9e; }
.readiness-list .readiness-row, .shortcut-grid a, .queue-list a, .readiness-list div { border-color: #e1e6eb; border-radius: 2px; box-shadow: none; }
.assistant-panel, .assistant-config, .assistant-messages, .assistant-draft { border-radius: 2px; box-shadow: none; }
.assistant-panel, .assistant-draft { border-left: 0 !important; }
.assistant-panel { background: #fff; border: 0; border-bottom: 1px solid var(--line); border-radius: 2px; }
.assistant-disclosure { background: #fff; border-bottom: 1px solid var(--line); }
.assistant-disclosure>summary { padding: 12px 0; color: #536170; font-weight: 600; cursor: pointer; }
.ai-note { border-left: 0; border-radius: 2px; background: #f5f7f9; }
.workflow-note { padding: 12px 0; border-top: 1px solid var(--line-soft); color: var(--muted); }
.membership-summary .detail-list { margin-bottom: 14px; }
.record-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); background: #fff; }
.record-tabs a { flex: 0 0 auto; padding: 11px 15px; border-bottom: 2px solid transparent; color: #576473; font-weight: 600; }
.record-tabs a:hover { color: var(--primary); background: #f7f9fb; }
.record-tabs a:focus-visible { outline: 2px solid #8ba9cb; outline-offset: -2px; }
.detail-layout [id] { scroll-margin-top: 90px; }
.inner-table { overflow-x: auto; }
.summary-strip { display: flex; flex-wrap: wrap; gap: 22px; padding-top: 14px; color: #485462; font-weight: 600; }
.dues-filters { grid-template-columns: minmax(120px, 180px) minmax(220px, 360px) auto; align-items: end; }
.dues-edit { position: relative; }
.dues-edit summary { list-style: none; }
.dues-edit summary::-webkit-details-marker { display: none; }
.dues-edit[open] .dues-edit-body { position: absolute; z-index: 5; top: 32px; right: 0; width: min(380px, 84vw); max-height: 76vh; overflow-y: auto; padding: 16px; background: #fff; border: 1px solid var(--line); box-shadow: none; }
.dues-edit-body { display: grid; gap: 12px; }
.dues-edit-body .form-stack { gap: 10px; }
.receipt-links { display: grid; gap: 4px; max-width: 220px; overflow-wrap: anywhere; }
.receipt-links a { color: var(--primary); text-decoration: underline; }
.receipt-upload { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.reminder-form { margin-top: 2px; }
.approval-history { display: grid; }
.approval-history article { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.approval-history article>div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.approval-history small { color: var(--muted); }
.approval-history p { color: #505c68; }
.inline-edit-form { display: grid; min-width: 260px; gap: 8px; padding: 10px 0; }
.inline-form { display: inline-block; margin-left: 4px; }
.approval-flow-form { grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) minmax(180px, 1fr) auto; align-items: end; }
.log-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; }
.log-filters label { min-width: 180px; }
.request-id { max-width: 180px; color: #7b8590; font: 11px/1.4 Consolas, monospace; overflow-wrap: anywhere; }
.workbench-hero { min-height: 0; }
.workbench-flow-panel { min-width: 0; padding: 20px 24px; }
.workbench-flow-table td:first-child { white-space: nowrap; }
.workbench-flow-table { table-layout: fixed; }
.workbench-flow-table th:first-child { width: 26%; }
.workbench-flow-table th:nth-child(2) { width: 48%; }
.workbench-flow-table th:nth-child(3) { width: 13%; }
.workbench-flow-table th:nth-child(4) { width: 13%; }
.workbench-flow-table td:last-child a { color: var(--primary); font-weight: 600; text-decoration: none; }
.flow-sequence { display: inline-block; width: 34px; color: var(--muted); font-variant-numeric: tabular-nums; }
.shortcut-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.shortcut-links a { color: var(--primary); text-decoration: none; }
.shortcut-links a:hover, .workbench-flow-table td:last-child a:hover { text-decoration: underline; }
.mobile-nav-toggle { color: #334151 !important; background: #fff !important; border: 1px solid var(--line) !important; border-radius: 2px !important; }
.public-application-page { min-height: 100vh; padding: 0 20px 48px; background: #f3f5f7; }
.public-header { max-width: 920px; height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: #43505d; }
.public-header a { font-size: 16px; font-weight: 700; color: #244f80; }
.public-application-card { max-width: 920px; margin: 28px auto; padding: 32px 38px; background: #fff; }
.public-application-card h1 { margin-top: 6px; font-size: 26px; }
.public-intro { max-width: 720px; margin-top: 10px; color: var(--muted); line-height: 1.8; }
.public-application-form { margin-top: 26px; }
.required-mark { color: var(--red); font-weight: 500; }
.privacy-note { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line-soft); color: #7b8590; font-size: 12px; }
.login-application-link { margin-top: 18px; color: var(--muted); text-align: center; }
.login-application-link a { color: var(--primary); font-weight: 700; }
.login-page { background: #f3f5f7; }
.login-shell { border: 1px solid var(--line); border-radius: 2px; background: #fff; box-shadow: none; }
.login-copy { background: #245b9e; }
.login-organization { margin: 0 0 24px; font-size: 14px; font-weight: 600; opacity: .9; }
@media(max-width:760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .public-application-card { padding: 22px 18px; }
  .dues-filters, .approval-flow-form { grid-template-columns: 1fr; }
  .log-filters { display: grid; grid-template-columns: 1fr; }
  .summary-strip { gap: 10px 18px; }
  .workbench-flow-panel { padding: 16px 12px; }
  .workbench-flow-table { min-width: 0; }
  .workbench-flow-table th:first-child { width: 48%; }
  .workbench-flow-table th:nth-child(2), .workbench-flow-table td:nth-child(2) { display: none; }
  .workbench-flow-table th:nth-child(3) { width: 17%; }
  .workbench-flow-table th:nth-child(4) { width: 35%; }
}
