:root {
  --bg: #f3f6fb; --panel: #fff; --line: #dbe3ef; --text: #14213d; --muted: #66728a;
  --blue: #2554b8; --blue-soft: #eaf1ff; --green: #138a63; --orange: #ee7b21;
  --purple: #7541dd; --red: #d92d35; --shadow: 0 8px 24px rgba(31, 53, 92, .07);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; letter-spacing: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; background: #132b59; color: #fff; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.13); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: #fff; color: #173b83; border-radius: 8px; font-weight: 800; }
.brand strong, .brand small { display: block; } .brand small { margin-top: 3px; color: #aebddd; }
.main-nav { margin-top: 22px; display: grid; gap: 6px; }
.nav-item { width: 100%; border: 0; border-radius: 6px; padding: 13px 12px; text-align: left; color: #cbd6ed; background: transparent; display: flex; gap: 12px; align-items: center; }
.nav-item span { color: #8298c2; font-size: 12px; font-weight: 700; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.12); }
.sidebar-foot { margin-top: auto; padding: 18px 8px 2px; border-top: 1px solid rgba(255,255,255,.13); }
.sidebar-foot span, .sidebar-foot small { display: block; }.sidebar-foot span { font-weight: 800; }.sidebar-foot small { margin-top: 6px; color: #aebddd; line-height: 1.5; }
.workspace { width: 100%; max-width: 1540px; margin: 0 auto; padding: 28px 34px 60px; min-width: 0; }
.workspace-head { min-height: 74px; display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 20px; }
.eyebrow, .panel header p, .section-title p, .score-strip p, .detail-section header p { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 800; }
h1, h2, h3, p { letter-spacing: 0; } h1 { margin: 0; font-size: 25px; } h2 { margin: 0; font-size: 19px; } h3 { margin: 0; font-size: 16px; }
.workspace-head > div > p:last-child { margin: 8px 0 0; color: var(--muted); }
.head-note { padding: 10px 14px; border-left: 3px solid var(--orange); background: #fff8f0; border-radius: 4px; font-size: 13px; }
.head-note strong, .head-note span { display: block; }.head-note span { margin-top: 3px; color: var(--muted); }
.view { display: none; }.view.active { display: block; }
.score-strip { min-height: 108px; padding: 22px 24px; color: #fff; background: #2450ad; border-radius: 8px; display: grid; grid-template-columns: minmax(320px, 1fr) repeat(3, 170px); gap: 12px; align-items: stretch; box-shadow: var(--shadow); }
.score-strip p { color: #c9d8ff; }.score-strip h2 { font-size: 21px; }
.score-cell { padding: 12px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; background: rgba(255,255,255,.08); display: flex; flex-direction: column; justify-content: center; }
.score-cell span { font-size: 12px; color: #dce6ff; }.score-cell strong { margin-top: 7px; font-size: 22px; }.score-cell .pending-text { font-size: 16px; }
.metric-help { position: relative; cursor: help; overflow: visible; }
.metric-help span i { display: inline-flex; width: 15px; height: 15px; margin-left: 4px; align-items: center; justify-content: center; border: 1px solid currentColor; border-radius: 50%; font: 700 10px/1 Arial, sans-serif; font-style: normal; opacity: .75; vertical-align: 1px; }
.metric-help::before, .metric-help::after { position: absolute; z-index: 30; opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease; }
.metric-help::before { pointer-events: none; }
.metric-help::after { pointer-events: auto; }
.metric-help::before { content: ""; left: 24px; bottom: calc(100% + 2px); border: 7px solid transparent; border-top-color: #132d5f; transform: translateY(4px); }
.metric-help::after { content: attr(data-tooltip); left: 10px; bottom: calc(100% + 16px); width: min(310px, calc(100vw - 40px)); padding: 11px 13px; color: #fff; background: #132d5f; border-radius: 6px; box-shadow: 0 8px 24px rgba(13, 34, 72, .24); font-size: 13px; font-weight: 500; line-height: 1.55; text-align: left; white-space: normal; transform: translateY(4px); }
.metric-help.tooltip-right::before { left: auto; right: 24px; }
.metric-help.tooltip-right::after { left: auto; right: 10px; }
.metric-help:hover::before, .metric-help:hover::after, .metric-help:focus-visible::before, .metric-help:focus-visible::after { opacity: 1; visibility: visible; transform: translateY(0); }
.metric-help:focus-visible { outline: 2px solid #8fb0ff; outline-offset: 2px; }
.metric-grid { margin: 16px 0 24px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.metric { min-height: 108px; padding: 17px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.metric span, .metric small { display: block; color: var(--muted); }.metric strong { display: block; margin: 8px 0 4px; color: #173b83; font-size: 27px; }
.section-title, .panel header, .detail-section header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title { margin: 25px 0 12px; }.text-btn { border: 0; color: var(--blue); background: transparent; font-weight: 700; }
.queue-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.queue-summary button { min-height: 105px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: left; box-shadow: var(--shadow); }
.queue-summary button span, .queue-summary button small { display: block; }.queue-summary button strong { display: block; margin: 5px 0; font-size: 25px; color: #173b83; }.queue-summary button small { color: var(--muted); }
.two-column { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { margin-top: 16px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.panel header { margin-bottom: 20px; }.panel header > span { color: var(--muted); font-size: 13px; }
.bar-list { display: grid; gap: 15px; }.bar-row { display: grid; grid-template-columns: 145px 1fr 84px; gap: 12px; align-items: center; font-size: 13px; }
.track { height: 10px; background: #eaf0f7; border-radius: 999px; overflow: hidden; }.track i { display: block; height: 100%; background: var(--blue); border-radius: inherit; }
.track i.green { background: var(--green); }.track i.red { background: var(--red); }.track i.purple { background: var(--purple); }.track i.orange { background: var(--orange); }.track i.gray { background: #8491a6; }
.bar-row b { text-align: right; color: #445274; }
.table-wrap { overflow: auto; } table { width: 100%; border-collapse: collapse; } th, td { padding: 12px 10px; border-bottom: 1px solid #e5ebf3; text-align: left; white-space: nowrap; } th { color: var(--muted); font-size: 12px; } tbody tr[data-agent]:hover { background: #f4f7ff; cursor: pointer; }
.segmented { margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }.segmented button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 6px; color: #445274; background: #fff; }.segmented button.active { color: #fff; border-color: var(--blue); background: var(--blue); }.segmented b { margin-left: 7px; }
.queue-view-head { margin-bottom: 14px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.queue-view-head p { margin: 0 0 5px; color: var(--blue); font-size: 12px; font-weight: 800; }.queue-view-head strong { font-size: 19px; }.queue-view-head span { margin-left: 12px; color: var(--muted); font-size: 12px; }
.stack-list { display: grid; gap: 9px; }.queue-item { width: 100%; min-height: 104px; padding: 14px 16px; display: grid; grid-template-columns: 108px minmax(240px, .9fr) minmax(360px, 1.35fr) 126px; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: left; }
.queue-item p, .queue-item small { margin: 5px 0 0; color: var(--muted); }.queue-item .queue-guidance span, .queue-item .queue-guidance small { display: block; line-height: 1.55; }.queue-item .queue-guidance span { color: #173b83; font-weight: 700; }.queue-item > b { color: var(--blue); font-size: 14px; line-height: 1.4; text-align: right; }
.status { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 4px; color: #2450ad; background: #eaf1ff; font-size: 12px; font-weight: 700; }.status.danger { color: #b4232a; background: #feecef; }
.toolbar { margin-bottom: 14px; padding: 14px; display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)) minmax(250px, 1.5fr); gap: 12px; border: 1px solid var(--line); background: #fff; border-radius: 7px; }
.compact-toolbar { grid-template-columns: 180px 210px minmax(250px, 1fr); }.toolbar label { display: grid; gap: 6px; color: #445274; font-size: 12px; font-weight: 700; }.toolbar input, .toolbar select, .workflow-form input, .workflow-form select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #cfd9e8; border-radius: 5px; background: #fff; color: var(--text); }
.master-detail { min-height: 650px; display: grid; grid-template-columns: 410px minmax(0, 1fr); gap: 14px; }
.audit-layout { grid-template-columns: 420px minmax(0, 1fr); }.master-panel, .detail-panel { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }.panel-title span { min-width: 36px; padding: 7px; border-radius: 5px; color: var(--blue); background: var(--blue-soft); text-align: center; font-weight: 800; }
.issue-list, .case-list { max-height: 720px; overflow: auto; display: grid; gap: 8px; }.issue-list button, .case-list button { width: 100%; padding: 13px; border: 1px solid transparent; border-radius: 6px; background: #f5f7fb; text-align: left; }
.issue-list button:hover, .issue-list button.active, .case-list button:hover, .case-list button.active { border-color: #5a80df; background: #edf3ff; }
.issue-list strong, .issue-list p, .issue-list small, .case-list b, .case-list strong, .case-list small { display: block; }.issue-list strong { margin-top: 9px; }.issue-list p { margin: 5px 0; }.issue-list small, .case-list small { margin-top: 6px; color: var(--muted); line-height: 1.45; }
.case-list button > div { display: flex; gap: 5px; flex-wrap: wrap; }.case-list button > div span, .tag-row span { padding: 4px 7px; border-radius: 4px; color: #2450ad; background: #eaf1ff; font-size: 11px; font-weight: 700; }.case-list b { margin: 9px 0 6px; font-size: 12px; color: var(--orange); }.danger-text { color: var(--red) !important; }
.detail-actions { display: flex; justify-content: flex-end; gap: 9px; margin-bottom: 12px; }.primary-btn, .secondary-btn { height: 40px; padding: 0 15px; border-radius: 5px; font-weight: 700; }.primary-btn { border: 1px solid var(--blue); color: #fff; background: var(--blue); }.secondary-btn { border: 1px solid #bfcde4; color: var(--blue); background: #fff; }
.issue-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; }.issue-head h2 { margin: 8px 0 5px; }.issue-head p { margin: 0; color: var(--muted); }.issue-head > div:last-child { min-width: 120px; padding: 12px; border-radius: 6px; background: var(--blue-soft); }.issue-head > div:last-child span, .issue-head > div:last-child strong { display: block; }.issue-head > div:last-child strong { margin-top: 5px; color: var(--blue); font-size: 22px; }
.flow-steps { margin: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }.flow-steps span { padding: 10px; color: var(--muted); background: #edf1f6; text-align: center; font-size: 12px; }.flow-steps span.done { color: #fff; background: var(--green); }
.detail-section { margin-top: 14px; padding: 16px 0 0; border-top: 1px solid var(--line); }.detail-section header span { color: var(--muted); font-size: 12px; }.detail-section > p { color: #445274; }
.evidence-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.evidence { padding: 11px; border: 1px solid var(--line); border-radius: 5px; background: #f7f9fc; text-align: left; }.evidence span, .evidence strong, .evidence small { display: block; }.evidence span, .evidence small { color: var(--muted); font-size: 11px; }.evidence strong { margin: 5px 0; }
.workflow-form { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.workflow-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }.workflow-form .wide { grid-column: span 2; }.workflow-form button { align-self: end; }
.verification-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }.verification-grid div { min-height: 88px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; }.verification-grid span, .verification-grid strong, .verification-grid small { display: block; }.verification-grid span, .verification-grid small { color: var(--muted); font-size: 11px; }.verification-grid strong { margin: 7px 0; font-size: 20px; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }.quote { margin-top: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #f7f9fc; }.quote.answer { background: #edf3ff; }.quote p { margin: 10px 0 0; line-height: 1.7; }
.rule-list { margin-top: 12px; display: grid; gap: 8px; }.rule-card { padding: 13px; border: 1px solid #f3c58e; border-radius: 6px; background: #fff8ef; }.rule-card.risk { border-color: #f0a4aa; background: #fff0f1; }.rule-card p { margin: 6px 0 0; color: #56627a; }
.review-card { margin-top: 12px; padding: 14px; border: 1px solid #8cb2ff; border-left: 4px solid var(--blue); border-radius: 6px; background: #eef4ff; }.review-card.risk { border-color: #f0a4aa; border-left-color: var(--red); background: #fff0f1; }.review-card p { margin: 7px 0; color: #445274; }.review-card small { color: #65728d; }.original-rules { margin-top: 14px; }.original-rules h3 { margin: 0; color: #65728d; font-size: 13px; }
.suggestion, .notice { margin-top: 12px; padding: 14px; border-radius: 6px; color: #076c4f; background: #e7f7f2; }
.standard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.standard-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.standard-grid h2 { margin: 12px 0 9px; }.standard-grid p { min-height: 48px; color: var(--muted); line-height: 1.55; }.standard-grid footer { display: flex; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.timeline { position: relative; display: grid; gap: 14px; }.timeline article { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }.timeline article > div strong, .timeline article > div span { display: block; }.timeline article > div strong { color: var(--blue); font-size: 20px; }.timeline article > div span { margin-top: 5px; color: var(--muted); }.timeline p { color: var(--muted); }
.empty, .load-error { padding: 24px; color: var(--muted); background: #f5f7fb; border-radius: 6px; }.load-error { margin: 40px; border: 1px solid #f1b5b9; color: #a12228; background: #fff4f4; }
.conversation-modal { width: min(760px, calc(100vw - 40px)); max-height: 82vh; padding: 0; border: 0; border-radius: 8px; box-shadow: 0 30px 80px rgba(15,29,58,.28); }.conversation-modal::backdrop { background: rgba(16, 28, 52, .52); }.conversation-modal > header { padding: 17px 20px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }.conversation-modal header p { margin: 0 0 3px; color: var(--blue); font-size: 11px; }.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 5px; background: #edf1f7; font-size: 23px; }.conversation-body { padding: 18px; overflow: auto; }.turn { width: 84%; margin-bottom: 10px; padding: 12px 14px; border-radius: 7px; background: #f1f4f8; }.turn.service { margin-left: auto; background: #e7efff; }.turn header { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }.turn p { margin: 7px 0 0; line-height: 1.6; }
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 200px minmax(0, 1fr); }.workspace { padding: 24px 22px 50px; }.metric-grid { grid-template-columns: repeat(3, 1fr); }.score-strip { grid-template-columns: 1fr repeat(3, 135px); }.queue-summary { grid-template-columns: repeat(3, 1fr); }.toolbar { grid-template-columns: repeat(3, 1fr); }.standard-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 850px) {
  .app-shell { display: block; }.sidebar { position: static; width: 100%; height: auto; padding: 14px; }.brand { padding-bottom: 12px; }.main-nav { display: flex; overflow: auto; margin-top: 12px; }.nav-item { width: auto; min-width: max-content; }.sidebar-foot { display: none; }.workspace { padding: 18px 12px 40px; }.workspace-head, .score-strip { display: block; }.head-note { margin-top: 12px; }.score-cell { margin-top: 8px; }.two-column, .master-detail { grid-template-columns: 1fr; }.master-panel { max-height: 520px; }.queue-item { grid-template-columns: 1fr; }.queue-view-head { align-items: flex-start; }.queue-view-head span { display: block; margin: 6px 0 0; }.workflow-form, .verification-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .metric-grid, .queue-summary, .standard-grid { grid-template-columns: 1fr 1fr; }.toolbar, .compact-toolbar { grid-template-columns: 1fr; }.workflow-form, .verification-grid, .evidence-list { grid-template-columns: 1fr; }.workflow-form .wide { grid-column: auto; }.flow-steps { grid-template-columns: 1fr 1fr; }.timeline article { grid-template-columns: 1fr; }
}
