:root {
  color-scheme: light;
  --canvas: #f5f7fb;
  --surface: #fff;
  --ink: #17243a;
  --muted: #64748b;
  --line: #e5eaf1;
  --nav: #14233b;
  --nav-hover: #243956;
  --blue: #225fc7;
  --blue-dark: #154da9;
  --blue-soft: #ebf2ff;
  --teal: #0d8a78;
  --teal-soft: #e8f7f3;
  --amber: #9c650f;
  --amber-soft: #fff7e6;
  --red: #b54747;
  --shadow: 0 8px 28px rgba(26, 45, 75, .045);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #8db8ff; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; flex: 0 0 232px; height: 100vh; padding: 26px 14px 18px; background: var(--nav); color: #d8e5f5; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 8px 38px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark, .login-symbol { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #4896fb, #2869d9); color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 6px 16px rgba(15, 85, 182, .28); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: .01em; }
.brand small { color: #8ea5c1; font-size: 11px; margin-top: 1px; }
.nav-list { display: flex; flex-direction: column; gap: 3px; }
.nav-caption { display: block; margin: 0 13px 8px; color: #839bb9; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.nav-caption--second { margin-top: 25px; }
.nav-item { display: block; padding: 10px 14px; border-radius: 9px; color: #c2d1e4; font-weight: 500; transition: background .15s, color .15s; }
.nav-item:hover, .nav-item.is-active { background: var(--nav-hover); color: #fff; }
.nav-item.is-active { box-shadow: inset 3px 0 #62a7ff; }
.sidebar-note { margin: auto 11px 0; padding: 12px 10px 0; border-top: 1px solid rgba(255,255,255,.1); color: #8197b1; font-size: 11px; }
.workspace { min-width: 0; flex: 1; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 72px; padding: 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-context { font-size: 14px; font-weight: 650; color: #35465e; }
.topbar-user { display: flex; align-items: center; gap: 10px; color: #3b4b63; }
.user-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eaf1fa; color: #2255a2; font-size: 12px; font-weight: 800; }
.user-name { font-weight: 600; }
.topbar-user form { margin: 0 0 0 12px; }
.logout-button { border: 0; background: transparent; color: var(--muted); padding: 6px 3px; }
.logout-button:hover { color: var(--blue); }
.main-content { max-width: 1520px; margin: 0 auto; padding: 32px 36px 64px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading h1 { margin: 2px 0 6px; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.025em; line-height: 1.3; }
.page-subtitle { margin: 0; color: var(--muted); }
.eyebrow { margin: 0; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.eyebrow a { color: inherit; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 8px 15px; border: 1px solid transparent; border-radius: 8px; font-weight: 650; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--blue); color: #fff; box-shadow: 0 4px 9px rgba(34, 95, 199, .12); }
.button--primary:hover { background: var(--blue-dark); color: #fff; }
.button--secondary { background: var(--blue-soft); border-color: #dbe9ff; color: #1c58b8; }
.button--secondary:hover { background: #deebff; }
.button--ghost { background: #fff; border-color: var(--line); color: #44546a; }
.button--ghost:hover { background: #f6f8fb; color: var(--ink); }
.button--wide { width: 100%; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 24px; border-bottom: 1px solid var(--line); }
.panel-heading h2, .panel h2 { margin: 0; font-size: 17px; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel-heading--wrap { flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-bottom: 19px; }
.stat-card { display: flex; flex-direction: column; min-height: 138px; padding: 19px 18px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.stat-card:hover { border-color: #b9d2f7; color: var(--ink); }
.stat-card span { color: #53667f; font-size: 12px; font-weight: 650; }
.stat-card strong { margin: 8px 0 3px; font-size: 31px; line-height: 1; letter-spacing: -.03em; }
.stat-card small { margin-top: auto; color: #8a99ab; font-size: 11px; }
.stat-card--accent { background: #f5f9ff; border-color: #d9e8fb; }
.stat-card--accent strong { color: var(--blue); }
.section-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); align-items: start; gap: 18px; }
.step-list a { display: flex; align-items: center; gap: 15px; padding: 18px 23px; color: var(--ink); border-bottom: 1px solid var(--line); }
.step-list a:last-child { border-bottom: 0; }
.step-list a:hover { background: #fafcff; }
.step-list a > span:nth-child(2) { flex: 1; }
.step-list strong, .step-list small { display: block; }
.step-list strong { font-size: 13px; }
.step-list small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.step-list a > span:last-child { color: #7891b1; font-size: 17px; }
.step-number { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: var(--blue-soft); color: #1b5dbc; font-size: 11px; font-weight: 800; }
.guidance-panel { padding-bottom: 14px; }
.rule-card { display: flex; gap: 10px; padding: 17px 24px 3px; }
.rule-card strong { font-size: 13px; }
.rule-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.rule-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; }
.rule-dot--precise { background: var(--blue); }
.rule-dot--fuzzy { background: var(--teal); }
.panel-footnote { margin: 17px 24px 0; padding-top: 13px; border-top: 1px solid var(--line); color: #8b99aa; font-size: 11px; }
.toolbar-form, .filter-form { display: flex; align-items: center; gap: 8px; }
input[type="text"], input[type="password"], input[type="search"], input[type="date"], input[type="email"], input[type="number"], select, textarea { width: 100%; min-height: 39px; padding: 8px 11px; border: 1px solid #d6deea; border-radius: 8px; background: #fff; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: #7da9e8; box-shadow: 0 0 0 3px #eaf2ff; }
input[type="file"] { display: block; width: 100%; padding: 11px; border: 1px dashed #b9c9dd; border-radius: 8px; background: #fbfdff; color: #435670; }
textarea { min-height: 115px; resize: vertical; }
.toolbar-form input { width: 210px; }
.toolbar-form input[type="date"] { width: 165px; }
.text-link { font-weight: 650; white-space: nowrap; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 15px 21px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: #718097; background: #fbfcfe; font-size: 11px; font-weight: 700; white-space: nowrap; }
td { color: #34445b; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover:not(:has(.empty-cell)) { background: #fcfdff; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; font-size: 12px; }
.status-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 99px; background: #eef3fa; color: #506481; white-space: nowrap; font-size: 11px; font-weight: 700; }
.status-badge--strong { background: var(--teal-soft); color: var(--teal); }
.row-actions { display: flex; align-items: center; gap: 13px; white-space: nowrap; }
.row-actions form { margin: 0; }
.link-button { padding: 0; border: 0; background: none; color: var(--blue); font-weight: 650; }
.link-button--danger { color: var(--red); }
.link-button:hover { text-decoration: underline; }
.empty-cell { padding: 55px 20px; text-align: center; }
.empty-cell strong, .empty-cell span { display: block; }
.empty-cell strong { color: #4b5e78; font-size: 14px; }
.empty-cell span { margin-top: 6px; color: #93a0b1; }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 13px 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.pagination div { display: flex; gap: 15px; }
.pagination a { font-weight: 650; }
.form-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(260px, 1fr); align-items: start; gap: 18px; }
.form-panel { padding: 25px; }
.form-panel > h2 { margin-bottom: 5px; }
.form-panel > .muted { margin-top: 0; }
.form-panel .panel-heading { margin: -25px -25px 22px; }
.field { margin-bottom: 19px; }
.field label { display: block; margin-bottom: 7px; color: #3f5067; font-size: 12px; font-weight: 700; }
.field-help { display: block; margin-top: 5px; color: #8594a7; font-size: 11px; }
.field-error, .form-errors { color: #a63333; font-size: 12px; }
.field-error { margin-top: 5px; }
.field-error ul, .form-errors ul { margin: 0; padding-left: 18px; }
.form-errors { margin: 0 0 18px; padding: 10px 12px; border-radius: 8px; background: #fff0f0; }
.required-mark { color: #c14848; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.side-help { padding: 24px; }
.side-help p, .side-help li { color: var(--muted); font-size: 12px; line-height: 1.8; }
.side-help ol { margin: 14px 0; padding-left: 20px; }
.side-help li { padding-left: 3px; margin-bottom: 7px; }
.side-help-foot { padding-top: 12px; border-top: 1px solid var(--line); }
.muted { color: var(--muted); font-size: 12px; }
.hint-box { margin-top: 20px; padding: 12px 13px; border-radius: 8px; background: #f4f8fe; color: #62758f; font-size: 11px; }
code { padding: 1px 4px; border-radius: 3px; background: #eef1f6; color: #4c5d72; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.section-grid--intent { grid-template-columns: minmax(0, 1.7fr) minmax(280px, .85fr); }
.import-tabs { display: flex; gap: 7px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.import-tabs a { padding: 11px 17px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 650; }
.import-tabs a:hover, .import-tabs a.is-active { border-color: var(--blue); color: var(--blue); }
.import-layout { grid-template-columns: minmax(0, 700px) minmax(250px, 1fr); }
.notice { display: flex; gap: 9px; padding: 11px 13px; margin-bottom: 18px; border-radius: 8px; background: #edf8f5; color: #347064; font-size: 11px; }
.notice strong { flex: 0 0 auto; }
.notice--warning { background: var(--amber-soft); color: var(--amber); }
.template-download { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding: 13px 16px; border: 1px solid #d8e6fb; border-radius: 9px; background: #f7faff; color: #265cae; }
.template-download:hover { background: #eef5ff; }
.template-download > span:nth-child(2) { flex: 1; }
.template-download strong, .template-download small { display: block; }
.template-download small { margin-top: 2px; color: #7e96b5; font-size: 11px; }
.download-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #e4efff; font-size: 17px; font-weight: 800; }
.filter-panel { padding: 17px 20px 0; margin-bottom: 17px; }
.filter-form { align-items: end; flex-wrap: wrap; gap: 11px; }
.filter-form .field { min-width: 175px; margin-bottom: 17px; }
.filter-form .button { margin-bottom: 17px; }
.result-summary { display: flex; gap: 10px; margin-bottom: 18px; }
.result-summary a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #4d6079; font-size: 12px; }
.result-summary .rule-dot { margin-top: 0; }
.result-summary strong { color: var(--ink); font-size: 14px; }
.result-panel { margin-bottom: 18px; scroll-margin-top: 20px; }
.message-stack { display: grid; gap: 8px; margin-bottom: 20px; }
.message { padding: 11px 14px; border: 1px solid #d8e8fd; border-radius: 8px; background: #eff6ff; color: #27548e; }
.message--success { border-color: #cdece0; background: #edf9f4; color: #286a56; }
.message--error, .message--danger { border-color: #f2d5d5; background: #fff1f1; color: #a43b3b; }
.message--warning { border-color: #f0ddbb; background: #fff8ea; color: #976112; }
.app-shell--guest { display: block; min-height: 100vh; background: radial-gradient(circle at 15% 20%, #e7f1ff 0, transparent 35%), linear-gradient(130deg, #f3f7fd, #f8fafd); }
.app-shell--guest .main-content { max-width: none; min-height: 100vh; padding: 0; }
.login-layout { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(350px, 450px); align-items: center; gap: min(8vw, 110px); max-width: 1120px; min-height: 100vh; margin: auto; padding: 40px; }
.login-symbol { width: 50px; height: 50px; margin-bottom: 48px; font-size: 24px; border-radius: 14px; }
.login-intro h1 { margin: 11px 0 20px; font-size: clamp(37px, 4.5vw, 57px); line-height: 1.2; letter-spacing: -.04em; }
.login-intro > p:not(.eyebrow) { max-width: 390px; color: #65778f; font-size: 15px; line-height: 1.8; }
.login-intro-note { max-width: 390px; margin-top: 52px; padding-top: 15px; border-top: 1px solid #dce5f1; color: #8798ad; font-size: 12px; }
.login-card { padding: 39px; border: 1px solid #e3eaf4; border-radius: 19px; background: #fff; box-shadow: 0 20px 70px rgba(41, 72, 114, .10); }
.login-card h2 { margin: 5px 0 4px; font-size: 27px; }
.login-card .muted { margin-bottom: 27px; }
.login-card .field { margin-bottom: 20px; }
.login-card .button { margin-top: 6px; }
.login-help { margin: 22px 0 0; color: #9aa7b7; font-size: 11px; text-align: center; }
@media (max-width: 1160px) { .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .section-grid, .section-grid--intent { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .sidebar { flex-basis: 185px; } .brand { margin-left: 6px; } .brand strong { font-size: 14px; } .topbar { padding: 0 22px; } .main-content { padding: 25px 22px 50px; } .form-layout, .import-layout { grid-template-columns: 1fr; } .login-layout { gap: 25px; padding: 30px; } }
@media (max-width: 660px) { .app-shell { display: block; } .sidebar { position: static; height: auto; padding: 15px 12px 10px; } .brand { margin-bottom: 12px; } .nav-list { flex-direction: row; overflow-x: auto; gap: 2px; } .nav-caption, .sidebar-note { display: none; } .nav-item { flex: 0 0 auto; padding: 7px 10px; font-size: 12px; } .nav-item.is-active { box-shadow: inset 0 -2px #62a7ff; } .topbar { min-height: 55px; padding: 0 17px; } .main-content { padding: 24px 16px 45px; } .page-heading { align-items: start; flex-direction: column; } .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel-heading { padding: 17px; } th, td { padding: 12px 14px; } .toolbar-form { flex-wrap: wrap; } .login-layout { display: flex; flex-direction: column; align-items: stretch; justify-content: center; min-height: 100vh; padding: 22px; } .login-intro { display: none; } .login-card { padding: 30px 25px; } }
@media (max-width: 420px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .stat-card { min-height: 125px; padding: 15px 12px; } .stat-card strong { font-size: 27px; } .stat-card small { font-size: 10px; } .user-name { max-width: 95px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .result-summary { flex-wrap: wrap; } }
