:root {
  --ink: #10213b;
  --muted: #6b7890;
  --line: #e5eaf2;
  --paper: #ffffff;
  --bg: #f4f7fb;
  --blue: #2264d1;
  --blue-dark: #0c192d;
  --cyan: #10a7a0;
  --orange: #f08b39;
  --red: #d85158;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 10%, #274d89 0, #0c192d 45%, #07111f 100%); }
.modal-overlay { align-items: start; }
.login-card { width: min(500px, 100%); background: rgba(255,255,255,.97); border-radius: 24px; padding: 34px; box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.login-kicker { color: #7290b5; font-size: 11px; font-weight: 800; letter-spacing: .16em; margin-bottom: 12px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(135deg, #3d8cff, #0fb5a9); font-weight: 800; letter-spacing: -2px; }
.login-card h1 { margin: 18px 0 8px; font-size: 27px; letter-spacing: -.04em; }
.login-card p { color: var(--muted); line-height: 1.65; margin: 0 0 22px; }
.login-subtitle { max-width: 38em; }
.login-submit { width: 100%; margin-top: 8px; }
.demo-accounts { margin-top: 24px; padding: 16px; border: 1px solid #dbe6f4; border-radius: 16px; background: #f6f9fe; }
.demo-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.demo-heading strong { display: block; font-size: 13px; }
.demo-heading span:not(.demo-badge) { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.demo-badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: #2d6bbd; background: #e4efff; font-size: 10px; font-weight: 750; }
.demo-grid { display: grid; gap: 8px; margin-top: 13px; }
.demo-account { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 1px solid #dce5f0; border-radius: 11px; color: var(--ink); background: white; text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.demo-account:hover, .demo-account:focus-visible { border-color: #76a7f1; box-shadow: 0 0 0 3px rgba(34,100,209,.09); transform: translateY(-1px); outline: none; }
.demo-account-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #2264d1; background: #eaf2ff; font-size: 10px; font-weight: 800; }
.demo-account-copy { min-width: 0; }
.demo-account-copy strong, .demo-account-copy small { display: block; }
.demo-account-copy strong { font-size: 12px; }
.demo-account-copy small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.demo-use { color: #2264d1; font-size: 11px; font-weight: 700; }
.demo-password { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 13px; color: #5f718c; font-size: 11px; }
.demo-password code { padding: 3px 7px; border-radius: 6px; color: #243c60; background: #e8eef8; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.demo-warning { width: 100%; color: #9a6a24; }
.login-note { margin-top: 16px !important; margin-bottom: 0 !important; color: #74829a !important; font-size: 11px; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.field { display: grid; gap: 7px; margin: 14px 0; }
.field label { color: #506079; font-size: 13px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d9e1ed; border-radius: 11px; padding: 11px 12px; background: #fbfcfe; color: var(--ink); outline: none; }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #76a7f1; box-shadow: 0 0 0 3px rgba(34,100,209,.11); }
.btn { border: 1px solid #d8e0ec; background: white; color: var(--ink); border-radius: 10px; padding: 9px 13px; font-weight: 650; }
.btn:hover { border-color: #9cbbea; }
.btn.primary { color: white; border-color: var(--blue); background: var(--blue); }
.btn.success { color: white; border-color: var(--cyan); background: var(--cyan); }
.btn.warn { color: white; border-color: var(--orange); background: var(--orange); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 6px 9px; font-size: 12px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { color: #d9e5f7; background: var(--blue-dark); padding: 22px 15px; display: flex; flex-direction: column; gap: 24px; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; }
.side-brand .brand-mark { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
.side-brand strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.side-brand span { display: block; color: #8ea5c7; font-size: 11px; margin-top: 4px; }
.nav { display: grid; gap: 5px; }
.nav button { text-align: left; border: 0; color: #aabbd4; background: transparent; border-radius: 10px; padding: 11px 12px; font-size: 13px; }
.nav button:hover, .nav button.active { color: white; background: #1b3355; }
.side-footer { margin-top: auto; border-top: 1px solid #29415e; padding: 15px 9px 0; color: #9db1cd; font-size: 12px; line-height: 1.7; }
.main { min-width: 0; }
.topbar { height: 72px; padding: 0 32px; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.connection { display: flex; align-items: center; gap: 7px; color: #55708e; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.dot.offline { background: var(--orange); }
.user-chip { display: flex; align-items: center; gap: 9px; color: #51617a; font-size: 12px; }
.avatar { width: 31px; height: 31px; border-radius: 50%; color: white; display: grid; place-items: center; background: #356bbd; font-weight: 700; }
.content { padding: 30px 32px 48px; max-width: 1500px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.page-head h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.05em; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric, .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.metric { padding: 18px; }
.metric .label { color: var(--muted); font-size: 12px; }
.metric .value { margin-top: 10px; font-size: 28px; font-weight: 760; letter-spacing: -.04em; }
.metric .sub { margin-top: 5px; color: #8b98aa; font-size: 11px; }
.panel { padding: 20px; overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.panel-head h3 { margin: 0; font-size: 15px; }
.panel-head span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { border-bottom: 1px solid #edf0f5; padding: 12px 10px; text-align: left; font-size: 12px; white-space: nowrap; }
th { color: #77869a; font-size: 11px; font-weight: 700; background: #fbfcfe; }
td { color: #2b3d58; }
.status { display: inline-flex; padding: 4px 8px; border-radius: 999px; font-size: 11px; background: #eef3fa; color: #55708e; }
.status.reported, .status.surveying { color: #92651e; background: #fff5df; }
.status.survey_submitted, .status.approved { color: #1f6a66; background: #e7f8f4; }
.status.closed { color: #52705d; background: #edf7ef; }
.status.supplement { color: #9d5b31; background: #fff0e5; }
.empty { padding: 36px; text-align: center; color: var(--muted); font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { min-width: 150px; border: 1px solid #d9e1ed; border-radius: 10px; background: white; padding: 9px 10px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 18px; }
.step { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.step:last-child { border-bottom: 0; }
.step-index { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; color: #2673d2; background: #eaf2ff; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.step strong { display: block; font-size: 13px; }
.step span { display: block; color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 3px; }
.survey-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; }
.claim-list { display: grid; gap: 8px; }
.claim-item { border: 1px solid var(--line); border-radius: 11px; background: white; padding: 12px; cursor: pointer; }
.claim-item.active { border-color: #75a5ef; box-shadow: 0 0 0 3px rgba(34,100,209,.09); }
.claim-item strong { display: block; font-size: 12px; }
.claim-item span { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.draft-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border-radius: 10px; margin-bottom: 15px; background: #fff7e7; color: #8e6321; font-size: 12px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; max-width: 360px; color: white; background: #162b49; border-radius: 11px; padding: 12px 15px; box-shadow: 0 8px 30px rgba(9,25,49,.2); font-size: 13px; }
.error { color: var(--red); font-size: 12px; margin-top: 8px; }
.assessment-row { display: grid; grid-template-columns: 1fr 130px 150px; gap: 8px; margin: 8px 0; }
.assessment-row input, .assessment-row select, .review-actions textarea { width: 100%; box-sizing: border-box; }
.review-actions { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.review-actions textarea { min-height: 80px; margin: 8px 0 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; resize: vertical; }
.conflict-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.conflict-row span { color: var(--muted); flex: 1; }
.attachment-list { display: grid; gap: 8px; margin-top: 10px; }
.attachment-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.attachment-main { min-width: 0; display: grid; gap: 3px; }
.attachment-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(520px, 70vw); font-size: 12px; }
.attachment-main span { color: var(--muted); font-size: 11px; }
.attachment-main small { font-size: 11px; }
.attachment-status.confirmed, .attachment-status.synced { color: #1f6a66; }
.attachment-status.awaiting-confirmation { color: #92651e; }
.attachment-status.failed { color: var(--red); }
.attachment-status.uploading { color: var(--blue); }
@media (max-width: 760px) { .assessment-row { grid-template-columns: 1fr 1fr; } .assessment-row input:last-child { grid-column: 1 / -1; } }
@media (max-width: 980px) { .shell { grid-template-columns: 1fr; } .sidebar { position: sticky; top: 0; z-index: 3; padding: 10px 13px; display: block; } .side-brand { display: inline-flex; padding: 0; } .side-brand .brand-mark { width: 32px; height: 32px; } .nav { display: inline-flex; gap: 3px; margin-left: 10px; vertical-align: middle; } .nav button { padding: 8px 9px; font-size: 12px; } .side-footer { display: none; } .topbar { padding: 0 18px; } .content { padding: 22px 18px 40px; } .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two-col { grid-template-columns: 1fr; } .survey-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .login-wrap { padding: 14px; } .login-card { padding: 24px 20px; border-radius: 20px; } .login-card h1 { font-size: 24px; } .topbar { height: auto; padding: 14px 16px; align-items: flex-start; } .topbar h2 { font-size: 16px; } .top-actions { display: grid; gap: 5px; justify-items: end; } .user-chip { display: none; } .content { padding: 18px 13px 32px; } .page-head { display: grid; } .page-head h1 { font-size: 23px; } .cards { gap: 9px; } .metric { padding: 13px; } .metric .value { font-size: 23px; } .nav { max-width: calc(100vw - 72px); overflow-x: auto; } .nav button { white-space: nowrap; } }
