:root {
    --ink: #122033;
    --muted: #64748b;
    --deep: #081a31;
    --deep-2: #0d2c50;
    --green: #1f63a9;
    --green-bright: #2f7cc5;
    --green-soft: #eaf3fc;
    --gold: #3484b8;
    --gold-soft: #eaf5fb;
    --blue: #2474bb;
    --blue-soft: #eaf3fb;
    --red: #b44f59;
    --red-soft: #faecee;
    --surface: #ffffff;
    --canvas: #f4f7fb;
    --line: #dfe7f0;
    --shadow: 0 14px 36px rgba(17, 45, 78, .08);
    --radius: 14px;
    --sidebar: 252px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif; font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: var(--sidebar); padding: 24px 16px 18px; color: #dce9f6; background: linear-gradient(180deg, #071a32 0%, #0a2443 58%, #0b2a4d 100%); box-shadow: 12px 0 36px rgba(9, 31, 58, .08); }
.brand { display: flex; align-items: center; height: 72px; padding: 0 3px; color: #fff; }
.brand-logo { display: block; width: 100%; max-width: 214px; height: auto; object-fit: contain; }
.brand-logo-login { max-width: 340px; }
.brand-sidebar { justify-content: center; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: 11px; color: #ffffff; background: linear-gradient(145deg, #2e80c8, #18578f); box-shadow: 0 8px 20px rgba(23, 91, 151, .32); font-family: "STSong", serif; font-size: 21px; }
.brand strong { display: block; font-size: 18px; font-weight: 700; letter-spacing: .1em; line-height: 1.1; }
.brand small { display: block; margin-top: 4px; color: #7ea6cc; font-size: 8px; letter-spacing: .16em; }
.main-nav { margin-top: 18px; }
.main-nav > p { margin: 0 12px 10px; color: #6789aa; font-size: 10px; letter-spacing: .17em; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; margin-bottom: 4px; padding: 0 13px; border-radius: 9px; color: #a9c2db; font-weight: 600; transition: .18s ease; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(42, 120, 190, .38), rgba(42, 120, 190, .16)); box-shadow: inset 3px 0 #62ade6; }
.main-nav a.active .icon { color: #83c5f3; }
.sidebar-card { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.035); }
.sidebar-card strong, .sidebar-card small { display: block; }
.sidebar-card strong { color: #d7e7f6; font-size: 12px; }
.sidebar-card small { margin-top: 2px; color: #7498ba; font-size: 10px; }
.live-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #62b5e8; box-shadow: 0 0 0 4px rgba(98,181,232,.11); }
.sidebar-backdrop { display: none; }

.main-area { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 clamp(22px, 4vw, 52px); border-bottom: 1px solid rgba(222,230,239,.9); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.topbar p { margin: 0 0 2px; color: var(--muted); font-size: 11px; }
.topbar h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.top-actions { display: flex; align-items: center; gap: 13px; }
.privacy-pill { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #d9e5f0; border-radius: 999px; color: #426c94; background: #f6faff; font-size: 11px; }
.privacy-pill .icon { width: 15px; height: 15px; }
.mobile-menu { display: none; border: 0; background: transparent; color: var(--ink); }
.content { width: min(1480px, 100%); min-height: calc(100vh - 76px); margin: 0 auto; padding: 32px clamp(22px, 4vw, 52px) 56px; }

.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #eef7ff; background: linear-gradient(145deg, #2e73b4, #174f84); font-weight: 700; }
.avatar-small { width: 34px; height: 34px; }
.avatar-soft { color: var(--green); background: var(--green-soft); }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.welcome-row, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.welcome-row h2, .page-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 32px); font-weight: 750; letter-spacing: -.02em; }
.welcome-row p:last-child, .page-heading > div > p:last-child { margin: 8px 0 0; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; border-color: var(--green); background: linear-gradient(135deg, #236bb0, #1b5c99); box-shadow: 0 8px 18px rgba(31,99,169,.2); }
.button-primary:hover { background: linear-gradient(135deg, #1d5f9f, #174f85); }
.button-secondary { color: #285e91; border-color: #cfdeec; background: #f7faff; }
.button-ghost { color: var(--muted); border-color: var(--line); background: transparent; }
.button-large { width: 100%; min-height: 48px; }
.button .icon { width: 17px; height: 17px; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: transparent; }
.icon-button:hover { background: rgba(255,255,255,.08); }
.text-button { padding: 4px; border: 0; color: var(--green); background: transparent; font-weight: 700; white-space: nowrap; }
.danger-text { color: var(--red); }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; margin-bottom: 18px; }
.metric-card { position: relative; display: flex; align-items: flex-start; gap: 14px; min-height: 138px; padding: 21px; overflow: hidden; border: 1px solid #e1e8f0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(18,54,89,.045); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.metric-card:hover { z-index: 1; border-color: #bcd3e8; box-shadow: 0 14px 30px rgba(18,54,89,.1); transform: translateY(-3px); }
.metric-card:focus-visible { outline: 3px solid rgba(48,130,192,.28); outline-offset: 3px; }
.metric-card::after { position: absolute; inset: auto -25px -35px auto; width: 92px; height: 92px; border-radius: 50%; background: currentColor; opacity: .045; content: ""; }
.metric-arrow { position: absolute; top: 18px; right: 18px; opacity: .32; transition: opacity .18s ease, transform .18s ease; }
.metric-arrow .icon { width: 15px; height: 15px; }
.metric-card:hover .metric-arrow { opacity: 1; transform: translateX(2px); }
.metric-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.metric-card p { margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; font-size: 29px; font-weight: 750; line-height: 1; letter-spacing: -.03em; }
.metric-card small { display: block; margin-top: 10px; color: #8a9693; font-size: 10px; }
.accent-green { color: #1f63a9; }.accent-green .metric-icon { background: #e9f3fc; }
.accent-blue { color: #2a7db9; }.accent-blue .metric-icon { background: #e9f5fb; }
.accent-gold { color: #4f72a2; }.accent-gold .metric-icon { background: #eef2f8; }
.accent-slate { color: #52647c; }.accent-slate .metric-icon { background: #eef2f6; }

.panel { border: 1px solid #e1e8f0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 24px rgba(18,54,89,.045); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .8fr); gap: 18px; margin-bottom: 18px; }
.dashboard-grid.single-column { grid-template-columns: 1fr; }
.task-panel, .funnel-panel, .workload-panel { padding: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.panel-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.panel-head a { display: flex; align-items: center; gap: 5px; color: var(--green); font-size: 11px; font-weight: 700; }
.panel-head a .icon { width: 14px; }
.panel-note { color: #87918f; font-size: 10px; }
.task-list { display: grid; gap: 3px; }
.task-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 13px 8px; border-top: 1px solid #edf1f5; }
.task-item:first-child { border-top: 0; }
.task-item:hover { background: #f8fbfe; }
.task-type { display: grid; place-items: center; width: 42px; height: 27px; border-radius: 7px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 700; }
.task-item.priority .task-type { color: #2c6e9e; background: #eaf5fb; }
.task-item strong { display: block; font-size: 12px; }
.task-item p { max-width: 440px; margin: 2px 0 0; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.task-item time { color: #87918f; font-size: 10px; }
.funnel-list { display: grid; gap: 15px; padding-top: 4px; }
.funnel-row { display: grid; grid-template-columns: 50px 1fr 28px 14px; align-items: center; gap: 10px; margin: 0 -6px; padding: 5px 6px; border-radius: 7px; font-size: 10px; transition: background .16s ease; }
.funnel-row:hover { background: #f3f8fc; }
.funnel-row > div { height: 7px; overflow: hidden; border-radius: 99px; background: #edf2f7; }
.funnel-row i { display: block; height: 100%; min-width: 7px; border-radius: inherit; }
.funnel-row strong { text-align: right; }
.funnel-row > .icon { width: 13px; opacity: .25; transition: opacity .16s ease, transform .16s ease; }
.funnel-row:hover > .icon { opacity: 1; transform: translateX(2px); }
.funnel-tip, .workload-tip { margin: 18px 0 0; padding: 11px 13px; border-radius: 9px; color: #607087; background: #f5f8fc; font-size: 10px; }

.active-filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -3px 0 18px; padding: 11px 14px; border: 1px solid #cee0ef; border-radius: 10px; color: #315f8c; background: #f2f7fc; font-size: 10px; font-weight: 700; }
.active-filter span, .active-filter a { display: flex; align-items: center; gap: 7px; }
.active-filter .icon { width: 14px; height: 14px; }
.active-filter a { color: #1f63a9; }

.table-panel { padding: 22px 22px 8px; overflow: hidden; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 12px; color: #718197; background: #f5f8fb; font-size: 10px; font-weight: 700; white-space: nowrap; }
th:first-child { border-radius: 8px 0 0 8px; } th:last-child { border-radius: 0 8px 8px 0; }
td { padding: 15px 12px; border-bottom: 1px solid #edf1f5; color: #35465b; font-size: 11px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f9fbfd; }
td > strong, .plain-strong { color: var(--ink); font-size: 12px; }
.table-sub { display: block; margin-top: 3px; color: #8b9693; font-size: 9px; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 145px; }
.person-cell .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.person-cell strong, .person-cell small { display: block; }
.person-cell small { margin-top: 2px; color: #8b9693; font-size: 9px; }
.badge { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.badge-success { color: #1e679a; background: #e7f3fb; }.badge-warning { color: #526fa0; background: #edf1f8; }.badge-danger { color: #984953; background: #faeaed; }.badge-neutral { color: #5f6f83; background: #eef2f6; }
.fee-type { color: #2a6094; font-weight: 700; }.fee-type.risk { color: #2d719f; }
.intent { display: block; margin-top: 4px; font-size: 8px; }.intent.high { color: #b44f59; }.intent.medium { color: #3d78aa; }.intent.low { color: #78879a; }
.note-cell { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-cell { display: inline-flex; align-items: center; gap: 6px; min-width: 120px; }.location-cell .icon { width: 14px; color: var(--green); }

.page-heading { align-items: center; }
.heading-stat { display: flex; align-items: baseline; gap: 9px; padding: 10px 15px; border-left: 2px solid var(--gold); }
.heading-stat strong { font-family: Georgia, serif; font-size: 27px; }.heading-stat span { color: var(--muted); font-size: 11px; }
.filter-panel { margin-bottom: 20px; padding: 16px 20px 3px; }
.filter-row { display: flex; gap: 10px; margin-bottom: 14px; }
.search-input { position: relative; display: flex; flex: 1; align-items: center; }
.search-input .icon { position: absolute; left: 12px; width: 16px; color: #81908c; }
.search-input input { width: 100%; padding-left: 38px; }
input, select, textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #d8dfdb; border-radius: 8px; outline: none; color: var(--ink); background: #fff; transition: .16s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #6f9c91; box-shadow: 0 0 0 3px rgba(54,123,108,.1); }
label { color: #50605d; font-size: 11px; font-weight: 700; }
label > input, label > select, label > textarea { display: block; margin-top: 6px; font-weight: 400; }

.stage-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 19px; padding: 16px 22px; border: 1px solid #dfe7ef; border-radius: var(--radius); background: rgba(255,255,255,.82); box-shadow: 0 6px 18px rgba(20,52,84,.03); }
.stage-strip > div { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; }
.stage-strip > div > span { grid-row: 1 / 3; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #d8dfdb; border-radius: 50%; color: #84908d; font-size: 10px; }
.stage-strip strong { font-size: 11px; }.stage-strip small { color: #87928f; font-size: 9px; }
.stage-strip > i { width: 34px; height: 1px; background: #d9dfdc; }
.stage-strip .complete span { color: #fff; border-color: var(--green); background: var(--green); }.stage-strip .current span { color: #256c9f; border-color: #9cc8e6; background: #eaf5fb; }

.assignment-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 18px; }
.assignment-list { display: grid; gap: 15px; }
.assignment-card { padding: 23px; border: 1px solid #dfe7ef; border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(18,54,89,.045); }
.assignment-card.featured { border-top: 3px solid #3c88c1; }
.assignment-top { display: flex; justify-content: space-between; gap: 20px; }
.assignment-top h3 { margin: 10px 0 1px; font-size: 21px; font-weight: 700; }.assignment-top p { margin: 0; color: var(--muted); font-size: 10px; }
.signed-place { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 9px; background: #f4f8fc; }.signed-place .icon { color: var(--green); }.signed-place small, .signed-place strong { display: block; }.signed-place small { color: #7d8da2; font-size: 8px; }.signed-place strong { max-width: 180px; font-size: 10px; }
.handover-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.handover-grid > div { padding: 11px 12px; border-left: 2px solid #b8d5e9; background: #f8fbfe; }.handover-grid span, .handover-grid strong { display: block; }.handover-grid span { color: #7d8da2; font-size: 8px; }.handover-grid strong { margin-top: 3px; font-size: 10px; }
.handover-note { padding: 15px; border: 1px solid #e4eaf0; border-radius: 10px; background: #fbfcfe; }.handover-note strong { font-size: 10px; }.handover-note p { margin: 5px 0; color: #526276; font-size: 11px; }.handover-note small { color: #8390a2; font-size: 9px; }
.assign-form { display: grid; grid-template-columns: 1.2fr .7fr .8fr; gap: 11px; margin-top: 17px; padding-top: 17px; border-top: 1px dashed #dce2df; }.assign-form .span-2 { grid-column: span 2; }.assign-form > .button { align-self: end; }
.workload-panel { position: sticky; top: 96px; }
.workload-list > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #edf0ed; }.workload-list > div:last-child { border: 0; }.workload-list .avatar { width: 31px; height: 31px; font-size: 10px; }.workload-list p { margin: 0; }.workload-list strong, .workload-list small { display: block; }.workload-list strong { font-size: 10px; }.workload-list small { color: #8a9693; font-size: 8px; }.workload-list em { padding: 4px 7px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 9px; font-style: normal; }.workload-list em.busy { color: var(--red); background: var(--red-soft); }

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card { position: relative; padding: 21px; border: 1px solid #dfe7ef; border-radius: var(--radius); background: #fff; box-shadow: 0 8px 24px rgba(18,54,89,.045); }
.case-card.awaiting { border-top: 3px solid #3c88c1; }
.case-card-top { display: flex; align-items: center; justify-content: space-between; }.case-no { color: #8a9592; font-family: ui-monospace, monospace; font-size: 9px; }
.case-card h3 { margin: 15px 0 0; font-size: 19px; font-weight: 700; }.case-type { margin: 2px 0 15px; color: var(--muted); font-size: 10px; }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 14px; border-radius: 10px; background: #f5f8fb; }.case-facts span, .case-facts strong { display: block; }.case-facts span { color: #7d8da2; font-size: 8px; }.case-facts strong { margin-top: 2px; font-size: 10px; }.case-facts .deadline { color: var(--red); }
.case-summary { min-height: 90px; padding: 15px 2px 12px; }.case-summary span { color: #89938f; font-size: 8px; }.case-summary p { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: #52615e; font-size: 10px; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.case-actions { display: flex; gap: 8px; padding-top: 13px; border-top: 1px solid #edf0ed; }.case-actions form { flex: 1; }.case-actions .button { width: 100%; font-size: 10px; }

.org-overview { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 18px; }.org-overview article { display: flex; align-items: center; gap: 9px; padding: 13px; border: 1px solid #dfe7ef; border-radius: 11px; background: rgba(255,255,255,.88); }.org-overview article > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: var(--green); background: var(--green-soft); font-weight: 700; }.org-overview strong, .org-overview small { display: block; }.org-overview strong { font-size: 10px; }.org-overview small { color: #7d8da2; font-size: 8px; }
.role-chip { display: inline-flex; padding: 4px 8px; border-radius: 7px; color: #53657c; background: #edf2f6; font-size: 9px; font-weight: 700; }.role-chip.level-4 { color: #285f92; background: #e8f2fb; }.role-chip.level-2, .role-chip.level-3 { color: #285f92; background: var(--green-soft); }

.security-callout { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #cfe0ef; border-radius: 9px; color: var(--green); background: #edf5fc; font-size: 10px; font-weight: 700; }.security-callout .icon { width: 16px; }
.permission-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 18px; }
.role-list { position: sticky; top: 96px; padding: 18px; }.role-list > a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-bottom: 5px; padding: 10px; border-radius: 9px; }.role-list > a:hover { background: #f5f8fb; }.role-list > a.active { background: var(--green-soft); }.role-list > a > .icon { width: 14px; color: #8393a7; }.role-level { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #627287; background: #edf2f6; font-weight: 700; font-size: 10px; }.role-list a.active .role-level { color: #fff; background: var(--green); }.role-list strong, .role-list small { display: block; }.role-list strong { font-size: 10px; }.role-list small { color: #7d8da2; font-size: 8px; }
.permission-editor { padding: 22px; }.permission-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #e7edf3; }.permission-title h3 { margin: 0; font-size: 20px; font-weight: 700; }.permission-title p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.scope-selector { display: grid; grid-template-columns: auto repeat(3, 1fr); align-items: stretch; gap: 9px; padding: 18px 0; }.scope-selector > strong { align-self: center; padding-right: 10px; font-size: 10px; }.scope-option { display: block; }.scope-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }.scope-option span { display: block; height: 100%; padding: 10px; border: 1px solid #dfe7ef; border-radius: 9px; background: #fff; }.scope-option input:checked + span { border-color: #78a8d2; background: var(--green-soft); box-shadow: inset 0 0 0 1px #78a8d2; }.scope-option strong, .scope-option small { display: block; }.scope-option strong { color: var(--ink); font-size: 10px; }.scope-option small { margin-top: 2px; color: #7b8da2; font-size: 8px; }
.permission-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.permission-groups fieldset { margin: 0; padding: 12px; border: 1px solid #e1e8f0; border-radius: 11px; }.permission-groups legend { padding: 0 6px; color: var(--green); font-size: 10px; font-weight: 800; }.permission-groups label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px; border-radius: 7px; }.permission-groups label:hover { background: #f5f8fb; }.permission-groups strong, .permission-groups small { display: block; }.permission-groups strong { color: #3c4c61; font-size: 10px; }.permission-groups small { color: #93a0af; font-family: ui-monospace, monospace; font-size: 7px; }.permission-groups input { width: 17px; min-height: 17px; accent-color: var(--green); }

.modal { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; border: 0; border-radius: 18px; color: var(--ink); background: transparent; box-shadow: var(--shadow); }
.modal-wide { width: min(820px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(7,24,45,.58); backdrop-filter: blur(4px); }
.modal-card { padding: 25px; background: #fff; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }.modal-head h3 { margin: 0; font-size: 21px; font-weight: 700; }.modal-head .icon-button { color: #748397; font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.form-grid .span-2 { grid-column: span 2; }
.form-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e6ebe8; }.form-section:first-of-type { margin-top: 0; padding-top: 0; border: 0; }.form-section h4 { margin: 0 0 12px; color: var(--green); font-size: 11px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 17px; border-top: 1px solid #e7ebe8; }
.alert { padding: 11px 13px; border-radius: 9px; font-size: 11px; }.alert-success { color: #245c49; border: 1px solid #cde1d8; background: #eaf4ef; }.alert-error { color: #8c433e; border: 1px solid #ead0cd; background: #faebe9; }.alert-floating { display: flex; align-items: center; gap: 8px; margin: -10px 0 20px; }.alert-floating .icon { width: 16px; }
.empty-state { display: grid; place-items: center; min-height: 260px; padding: 30px; text-align: center; }.empty-state.compact { min-height: 130px; }.empty-state > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 20px; }.empty-state strong { font-size: 16px; font-weight: 700; }.empty-state p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
code { padding: 3px 6px; border-radius: 5px; color: #45675f; background: #edf2ef; font-size: 9px; }

.login-body { min-height: 100vh; background: #eaf0f7; }
.login-shell { display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(390px, .85fr); min-height: 100vh; }
.login-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(36px, 6vw, 76px); overflow: hidden; color: #fff; background: linear-gradient(145deg, #06172e 0%, #0a2b50 58%, #124979 100%); }
.login-story::before { position: absolute; inset: -18% auto auto 48%; width: 620px; height: 620px; border: 1px solid rgba(114,184,232,.16); border-radius: 50%; box-shadow: 0 0 0 95px rgba(72,151,207,.04), 0 0 0 190px rgba(72,151,207,.025); content: ""; }
.login-story::after { position: absolute; inset: auto -100px -170px auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(49,145,207,.48), rgba(21,85,137,.12) 48%, transparent 70%); content: ""; }
.brand-light { position: relative; z-index: 1; justify-content: flex-start; height: 118px; padding: 0; }
.login-copy { position: relative; z-index: 1; max-width: 600px; margin: auto 0; padding: 60px 0; }
.login-copy .eyebrow { color: #82c7f2; }.login-copy h1 { margin: 0; font-size: clamp(40px, 5vw, 68px); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; }.login-copy > p:last-child { max-width: 530px; margin: 25px 0 0; color: #b1c9df; font-size: 14px; line-height: 1.9; }
.login-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 590px; border-top: 1px solid rgba(255,255,255,.11); }
.login-metrics > div { padding: 18px 24px 0 0; border-right: 1px solid rgba(255,255,255,.09); }.login-metrics > div:last-child { border: 0; padding-left: 18px; }.login-metrics strong { display: block; color: #8fcef3; font-size: 23px; font-weight: 700; }.login-metrics span { color: #86a9c8; font-size: 9px; }
.login-panel { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 50px clamp(30px, 6vw, 90px); background: #f8fafc; }
.login-form-wrap { width: min(390px, 100%); }.login-form-wrap h2 { margin: 0; font-size: 30px; font-weight: 750; letter-spacing: -.02em; }.login-form-wrap > .muted { margin: 7px 0 24px; }
.stack-form { display: grid; gap: 15px; margin-top: 20px; }.stack-form .button { margin-top: 4px; }
.demo-accounts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 25px; padding-top: 18px; border-top: 1px solid #e1e8ef; }.demo-accounts > span { width: 100%; color: #7f8ea1; font-size: 9px; }.demo-accounts button { padding: 5px 8px; border: 1px solid #d8e3ed; border-radius: 6px; color: #315f8c; background: #fff; font-size: 9px; }.demo-accounts button:hover { border-color: #9bbbd8; background: #f3f8fd; }.demo-accounts small { width: 100%; color: #95a2b1; font-size: 8px; }
.login-foot { position: absolute; bottom: 24px; margin: 0; color: #94a1b0; font-size: 9px; }.mobile-brand { display: none; }

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .org-overview { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    :root { --sidebar: 232px; }
    .app-shell { display: block; }
    .sidebar { transform: translateX(-105%); transition: transform .22s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(12,32,29,.42); }
    body.sidebar-open .sidebar-backdrop { display: block; }
    .main-area { width: 100%; }
    .mobile-menu { display: grid; place-items: center; width: 35px; height: 35px; padding: 0; }
    .topbar { justify-content: flex-start; gap: 13px; }
    .top-actions { margin-left: auto; }
    .dashboard-grid, .assignment-layout, .permission-layout { grid-template-columns: 1fr; }
    .workload-panel, .role-list { position: static; }
    .role-list { display: grid; grid-template-columns: repeat(2, 1fr); }
    .role-list .panel-head { grid-column: 1 / -1; }
    .login-shell { grid-template-columns: 1fr; }.login-story { display: none; }.mobile-brand { display: block; margin-bottom: 35px; color: var(--green); font-size: 20px; font-weight: 750; }
}

@media (max-width: 650px) {
    .topbar { height: 65px; padding: 0 16px; }.topbar p, .privacy-pill { display: none; }.topbar h1 { font-size: 18px; }
    .content { padding: 24px 15px 40px; }
    .welcome-row, .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }.welcome-row .button, .page-heading .button { width: 100%; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.metric-card { min-height: 126px; padding: 15px; }.metric-icon { width: 34px; height: 34px; }.metric-card strong { font-size: 24px; }.metric-card small { font-size: 8px; }
    .task-panel, .funnel-panel, .table-panel, .workload-panel { padding: 17px; }
    .task-item { grid-template-columns: auto 1fr; }.task-item time { grid-column: 2; }
    .filter-row { display: grid; grid-template-columns: 1fr auto; }.search-input { grid-column: 1 / -1; }
    .stage-strip { grid-template-columns: 1fr 1fr; }.stage-strip > i { display: none; }.stage-strip > div { padding: 6px; }
    .assignment-top { flex-direction: column; }.signed-place { align-self: flex-start; }.handover-grid { grid-template-columns: 1fr; }.assign-form { grid-template-columns: 1fr; }.assign-form .span-2 { grid-column: auto; }
    .case-grid { grid-template-columns: 1fr; }
    .org-overview { grid-template-columns: 1fr 1fr; }
    .permission-groups, .scope-selector { grid-template-columns: 1fr; }.scope-selector > strong { padding: 0 0 3px; }.permission-title { align-items: flex-start; flex-direction: column; }.permission-title .button { width: 100%; }
    .role-list { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }
    .modal-card { padding: 20px 16px; }
    .login-panel { min-height: 100vh; padding: 35px 24px 80px; }.login-form-wrap h2 { font-size: 28px; }
}

@media (max-width: 390px) {
    .metric-grid { grid-template-columns: 1fr; }
    .org-overview { grid-template-columns: 1fr; }
}

/* 2026 visual clarity refresh: professional, high-contrast law firm workspace */
:root {
    --ink: #10213a;
    --muted: #586a80;
    --deep: #071b33;
    --deep-2: #0a294b;
    --green: #1d63a5;
    --green-bright: #2f7fc2;
    --green-soft: #eaf3fb;
    --gold: #c3a044;
    --gold-soft: #fbf6e8;
    --blue: #216caf;
    --blue-soft: #eaf3fb;
    --red: #a84450;
    --red-soft: #faecee;
    --surface: #ffffff;
    --canvas: #f2f5f9;
    --line: #d8e2ed;
    --shadow: 0 8px 24px rgba(18, 43, 70, .07);
    --radius: 12px;
    --sidebar: 272px;
}

html { background: var(--canvas); }
body {
    color: var(--ink);
    background: var(--canvas);
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
}

.sidebar {
    width: var(--sidebar);
    padding: 22px 18px 18px;
    background: linear-gradient(180deg, #06182e 0%, #08223f 55%, #0a2b4e 100%);
    box-shadow: 10px 0 30px rgba(7, 27, 51, .09);
}
.brand { height: 86px; padding: 0 5px; }
.brand-logo { max-width: 226px; }
.main-nav { margin-top: 14px; overflow-y: auto; scrollbar-width: thin; }
.nav-group + .nav-group { margin-top: 22px; }
.nav-group > p { margin: 0 14px 9px; color: #6f91b2; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.main-nav a { gap: 13px; height: 50px; margin-bottom: 4px; padding: 0 15px; border-radius: 9px; color: #b8cde0; font-size: 14px; font-weight: 650; }
.main-nav a .icon { width: 20px; height: 20px; stroke-width: 1.7; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.065); }
.main-nav a.active { background: #123c65; box-shadow: inset 3px 0 #6cb5eb; }
.sidebar-card { padding: 14px; border-color: rgba(255,255,255,.11); border-radius: 10px; background: rgba(255,255,255,.045); }
.sidebar-card strong { font-size: 13px; }.sidebar-card small { font-size: 11px; }

.topbar {
    height: 80px;
    padding: 0 clamp(28px, 3.5vw, 56px);
    border-bottom-color: #dde5ee;
    background: rgba(255,255,255,.97);
    backdrop-filter: none;
}
.topbar p { margin-bottom: 1px; color: #697b90; font-size: 12px; }
.topbar h1 { font-size: 21px; font-weight: 750; letter-spacing: 0; }
.privacy-pill { min-height: 36px; padding: 7px 12px; border-color: #d4e1ed; color: #315f8a; background: #f7faff; font-size: 12px; }
.content { width: min(1560px, 100%); min-height: calc(100vh - 80px); padding: 38px clamp(28px, 3.5vw, 56px) 64px; }

.avatar { width: 40px; height: 40px; border-radius: 9px; font-size: 14px; }
.avatar-small { width: 38px; height: 38px; }
.eyebrow { margin-bottom: 7px; font-size: 11px; letter-spacing: .15em; }
.welcome-row, .page-heading { gap: 28px; margin-bottom: 30px; }
.welcome-row h2, .page-heading h2 { font-size: clamp(29px, 2.7vw, 36px); font-weight: 760; letter-spacing: -.025em; line-height: 1.25; }
.welcome-row p:last-child, .page-heading > div > p:last-child { margin-top: 9px; color: #617287; font-size: 14px; }

.button { min-height: 44px; padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 700; }
.button-primary { background: #1d63a5; box-shadow: 0 6px 14px rgba(29,99,165,.18); }
.button-primary:hover { background: #174f86; }
.button-secondary { border-color: #cbdbe9; background: #f7faff; }
.text-button { font-size: 12px; }

.metric-grid { gap: 18px; margin-bottom: 22px; }
.metric-card { min-height: 154px; gap: 17px; padding: 25px; border-color: #dbe4ed; border-radius: 12px; box-shadow: 0 4px 16px rgba(18,43,70,.055); }
.metric-card::after { width: 100px; height: 100px; opacity: .035; }
.metric-icon { width: 46px; height: 46px; border-radius: 10px; }
.metric-icon .icon { width: 21px; height: 21px; }
.metric-card p { margin-bottom: 8px; color: #53677e; font-size: 13px; font-weight: 650; }
.metric-card strong { color: #0e213a; font-size: 36px; font-weight: 760; }
.metric-card small { margin-top: 12px; color: #6d7f92; font-size: 12px; }
.metric-arrow { top: 22px; right: 21px; }

.panel, .assignment-card, .case-card { border-color: #dbe4ed; border-radius: 12px; box-shadow: 0 5px 18px rgba(18,43,70,.055); }
.dashboard-grid { grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr); gap: 20px; margin-bottom: 20px; }
.task-panel, .funnel-panel, .workload-panel { padding: 26px; }
.panel-head { margin-bottom: 20px; }
.panel-head h3 { font-size: 18px; font-weight: 750; }
.panel-head a { font-size: 12px; }
.panel-note { color: #697b8e; font-size: 11px; }
.task-list { gap: 0; }
.task-item { gap: 15px; min-height: 68px; padding: 14px 9px; border-top-color: #e8edf3; border-radius: 8px; }
.task-type { width: 48px; height: 30px; border-radius: 6px; font-size: 11px; }
.task-item strong { font-size: 13px; }.task-item p { margin-top: 3px; color: #617287; font-size: 12px; }.task-item time { font-size: 11px; }
.funnel-list { gap: 13px; }
.funnel-row { grid-template-columns: 60px 1fr 32px 16px; min-height: 37px; padding: 6px 8px; font-size: 12px; }
.funnel-row > div { height: 8px; }
.funnel-row strong { font-size: 12px; }
.funnel-tip, .workload-tip { margin-top: 20px; padding: 13px 14px; color: #53677e; font-size: 12px; line-height: 1.65; }
.active-filter { min-height: 46px; margin-bottom: 20px; padding: 11px 16px; font-size: 12px; }

.table-panel { padding: 25px 25px 10px; }
.table-wrap { border-radius: 8px; }
table { min-width: 760px; }
th { padding: 12px 14px; color: #5e7187; background: #f1f5f9; font-size: 12px; letter-spacing: .01em; }
td { padding: 17px 14px; border-bottom-color: #e6ecf2; color: #33475f; font-size: 13px; }
td > strong, .plain-strong { font-size: 13px; }
.table-sub, .person-cell small { margin-top: 4px; color: #718296; font-size: 11px; }
.person-cell { gap: 11px; min-width: 170px; }.person-cell .avatar { width: 38px; height: 38px; font-size: 13px; }
.badge { min-height: 26px; padding: 4px 9px; font-size: 11px; }
.intent { margin-top: 5px; font-size: 10px; }
.location-cell { min-width: 140px; }

.heading-stat { padding: 11px 17px; border-left-color: var(--gold); }
.heading-stat strong { font-family: inherit; font-size: 31px; font-weight: 750; }.heading-stat span { font-size: 12px; }
.filter-panel { margin-bottom: 22px; padding: 19px 22px 5px; }
.filter-row { gap: 12px; margin-bottom: 16px; }
input, select, textarea { min-height: 44px; padding: 10px 12px; border-color: #cfd9e4; border-radius: 8px; font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: #4c89bd; box-shadow: 0 0 0 3px rgba(45,112,172,.12); }
label { color: #40546b; font-size: 13px; }

.stage-strip { gap: 14px; margin-bottom: 22px; padding: 19px 24px; border-color: #dbe4ed; background: #fff; box-shadow: 0 4px 14px rgba(18,43,70,.04); }
.stage-strip > div > span { width: 32px; height: 32px; font-size: 12px; }
.stage-strip strong { font-size: 13px; }.stage-strip small { font-size: 11px; }
.assignment-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.assignment-list { gap: 18px; }
.assignment-card { padding: 26px; }
.assignment-top h3 { margin-top: 12px; font-size: 23px; }.assignment-top p { font-size: 12px; }
.signed-place { padding: 10px 13px; }.signed-place small { font-size: 10px; }.signed-place strong { font-size: 12px; }
.handover-grid { gap: 12px; margin: 21px 0; }.handover-grid > div { padding: 13px 14px; }.handover-grid span { font-size: 10px; }.handover-grid strong { font-size: 12px; }
.handover-note { padding: 17px; }.handover-note strong { font-size: 12px; }.handover-note p { font-size: 13px; }.handover-note small { font-size: 11px; }
.assign-form { gap: 13px; margin-top: 20px; padding-top: 20px; }
.workload-list > div { gap: 11px; padding: 12px 0; }.workload-list .avatar { width: 35px; height: 35px; font-size: 12px; }.workload-list strong { font-size: 12px; }.workload-list small { font-size: 10px; }.workload-list em { font-size: 11px; }

.case-grid { gap: 18px; }
.case-card { padding: 24px; }
.case-no { font-size: 11px; }.case-card h3 { font-size: 21px; }.case-type { margin-top: 3px; font-size: 12px; }
.case-facts { gap: 13px; padding: 16px; }.case-facts span { font-size: 10px; }.case-facts strong { margin-top: 3px; font-size: 12px; }
.case-summary { min-height: 104px; padding-top: 17px; }.case-summary span { font-size: 10px; }.case-summary p { margin-top: 5px; font-size: 12px; line-height: 1.7; }
.case-actions { gap: 10px; padding-top: 15px; }.case-actions .button { font-size: 12px; }

.org-overview { gap: 12px; margin-bottom: 22px; }.org-overview article { gap: 11px; padding: 16px; }.org-overview article > span { width: 34px; height: 34px; }.org-overview strong { font-size: 12px; }.org-overview small { font-size: 10px; }
.role-chip { padding: 5px 9px; font-size: 11px; }
.security-callout { padding: 11px 14px; font-size: 12px; }
.permission-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 20px; }
.role-list { padding: 21px; }.role-list > a { gap: 12px; padding: 12px; }.role-level { width: 34px; height: 34px; font-size: 12px; }.role-list strong { font-size: 12px; }.role-list small { font-size: 10px; }
.permission-editor { padding: 26px; }.permission-title h3 { font-size: 22px; }.permission-title p:last-child { font-size: 12px; }
.scope-selector { gap: 11px; padding: 21px 0; }.scope-selector > strong { font-size: 12px; }.scope-option span { padding: 13px; }.scope-option strong { font-size: 12px; }.scope-option small { margin-top: 4px; font-size: 10px; }
.permission-groups { gap: 15px; }.permission-groups fieldset { padding: 15px; }.permission-groups legend { font-size: 12px; }.permission-groups label { padding: 10px; }.permission-groups strong { font-size: 12px; }.permission-groups small { font-size: 9px; }

.modal-card { padding: 29px; }.modal-head { margin-bottom: 24px; }.modal-head h3 { font-size: 23px; }.form-grid { gap: 17px; }.form-section h4 { font-size: 13px; }
.alert { padding: 13px 15px; font-size: 13px; }.empty-state p { font-size: 12px; }.empty-state strong { font-size: 17px; }

.login-metrics span { font-size: 11px; }
.login-form-wrap { width: min(420px, 100%); }.login-form-wrap h2 { font-size: 32px; }
.demo-accounts { gap: 8px; }.demo-accounts > span { font-size: 11px; }.demo-accounts button { min-height: 31px; padding: 6px 10px; font-size: 11px; }.demo-accounts small, .login-foot { font-size: 10px; }
.demo-account-group { width: 100%; margin-top: 5px; }
.demo-account-group > strong { display: block; margin-bottom: 7px; color: #52677e; font-size: 11px; }
.demo-account-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.demo-account-buttons button { width: 100%; min-height: 34px; text-align: left; }

@media (max-width: 1280px) {
    :root { --sidebar: 256px; }
    .sidebar { padding-inline: 16px; }
    .content, .topbar { padding-inline: 32px; }
    .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    :root { --sidebar: 272px; }
    .sidebar { width: var(--sidebar); }
    .content { padding: 30px 24px 52px; }
    .topbar { padding: 0 24px; }
}

@media (max-width: 650px) {
    .topbar { height: 68px; padding-inline: 16px; }
    .content { padding: 25px 15px 42px; }
    .welcome-row h2, .page-heading h2 { font-size: 28px; }
    .metric-grid { grid-template-columns: 1fr; gap: 12px; }
    .metric-card { min-height: 136px; padding: 21px; }
    .metric-card strong { font-size: 32px; }.metric-card small { font-size: 11px; }
    .task-panel, .funnel-panel, .table-panel, .workload-panel { padding: 20px; }
    .active-filter { align-items: flex-start; flex-direction: column; gap: 6px; }
    .stage-strip { gap: 16px; padding: 17px; }
    .case-grid { grid-template-columns: 1fr; }
    .filter-row { grid-template-columns: 1fr; }.filter-row .button { width: 100%; }
}

@media (max-width: 390px) {
    .demo-account-buttons { grid-template-columns: 1fr; }
}

.telemarketing-heading { margin-bottom: 24px; }
.telemarketing-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tele-stat { position: relative; min-height: 126px; padding: 20px 21px; border: 1px solid #d9e3ed; border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgba(18,43,70,.045); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.tele-stat::before { position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 11px 0 0 11px; background: transparent; content: ""; }
.tele-stat:hover { border-color: #b8cee1; box-shadow: 0 9px 22px rgba(18,43,70,.08); transform: translateY(-2px); }
.tele-stat.active { border-color: #b9d1e5; background: #f9fcff; }.tele-stat.active::before { background: #2774b4; }
.tele-stat span, .tele-stat small { display: block; }.tele-stat span { color: #52677e; font-size: 12px; font-weight: 700; }.tele-stat strong { display: block; margin-top: 8px; color: #10213a; font-size: 31px; line-height: 1; }.tele-stat small { margin-top: 12px; color: #728397; font-size: 11px; }
.section-tabs { display: flex; gap: 6px; margin-bottom: 14px; padding: 5px; overflow-x: auto; border: 1px solid #dbe4ed; border-radius: 10px; background: #eaf0f6; }
.section-tabs a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 39px; padding: 8px 15px; border-radius: 7px; color: #53687e; font-size: 12px; font-weight: 700; }
.section-tabs a:hover { color: #1d63a5; background: rgba(255,255,255,.68); }.section-tabs a.active { color: #153f66; background: #fff; box-shadow: 0 2px 8px rgba(18,43,70,.08); }
.section-tabs a span { display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 99px; color: #316a9a; background: #eaf3fb; font-size: 10px; }
.tele-rule-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-bottom: 18px; padding: 12px 16px; border-left: 3px solid #c3a044; border-radius: 7px; color: #596c80; background: #fffdf7; font-size: 11px; }
.tele-rule-bar span { display: inline-flex; align-items: center; gap: 6px; }.tele-rule-bar .icon { width: 15px; color: #9b7c28; }.tele-rule-bar strong { color: #31465c; }
.telemarketing-panel { margin-bottom: 22px; }
.batch-claim-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 15px 17px; border: 1px solid #cfe0ee; border-radius: 9px; background: linear-gradient(135deg, #f6fbff, #eef6fc); }
.batch-claim-bar > div { display: grid; gap: 4px; }.batch-claim-bar strong { color: #173e63; font-size: 13px; }.batch-claim-bar span { color: #64778b; font-size: 11px; }
.batch-quantity-form { display: flex; align-items: end; gap: 9px; }.batch-quantity-form label { display: flex; align-items: center; gap: 8px; color: #4e6479; font-size: 11px; font-weight: 700; white-space: nowrap; }.batch-quantity-form input { width: 86px; min-height: 34px; padding: 6px 9px; }
.selection-toolbar { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; padding: 9px 12px; border: 1px solid #e0e8ef; border-radius: 8px; background: #fafcfe; }
.selection-toolbar .check-row { min-height: 30px; }.selection-toolbar > span { margin-right: auto; color: #64778b; font-size: 11px; font-weight: 700; }.selection-toolbar button:disabled { cursor: not-allowed; opacity: .45; }
.select-column { width: 54px; text-align: center; }.select-column input { width: 17px; min-height: 17px; accent-color: #1d63a5; cursor: pointer; }
.button-compact { min-height: 34px; padding: 6px 11px; font-size: 11px; white-space: nowrap; }
.phone-link { display: inline-flex; align-items: center; gap: 7px; color: #175f9e; font-weight: 750; white-space: nowrap; }.phone-link .icon { width: 15px; height: 15px; }
.history-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; padding: 0; border: 0; color: #2b6ea6; background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }.history-link:hover { color: #174f81; }.history-link .icon { width: 13px; height: 13px; }
.row-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.modal-small { width: min(520px, calc(100vw - 32px)); }
.modal-subtitle { margin: 5px 0 0; color: #617287; font-size: 13px; }
.history-modal { width: min(720px, calc(100vw - 32px)); }.history-modal .modal-card { max-height: min(780px, calc(100vh - 48px)); overflow: auto; }
.history-persistence-note { display: flex; align-items: flex-start; gap: 9px; margin: -4px 0 19px; padding: 12px 13px; border-left: 3px solid #2f78b5; border-radius: 7px; color: #4c6479; background: #f2f8fd; font-size: 11px; line-height: 1.6; }.history-persistence-note.compact { margin-bottom: 18px; }.history-persistence-note .icon { flex: 0 0 auto; width: 16px; margin-top: 1px; color: #2f78b5; }
.history-timeline { position: relative; display: grid; gap: 13px; margin: 0; padding: 2px 0 2px 25px; list-style: none; }.history-timeline::before { position: absolute; top: 6px; bottom: 6px; left: 7px; width: 1px; background: #d5e1eb; content: ""; }
.history-item { position: relative; }.history-dot { position: absolute; top: 15px; left: -23px; width: 11px; height: 11px; border: 3px solid #eef6fc; border-radius: 50%; background: #2f78b5; box-shadow: 0 0 0 1px #b8cfe1; }.history-event .history-dot { background: #c39b31; }
.history-card { padding: 14px 15px; border: 1px solid #dbe5ed; border-radius: 9px; background: #fff; }.history-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.history-title strong { color: #183b5c; font-size: 13px; }.history-title time { color: #718398; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; white-space: nowrap; }.history-actor { margin: 5px 0 0; color: #61758a; font-size: 10px; font-weight: 700; }.history-summary { margin: 9px 0 0; color: #376d97; font-size: 11px; font-weight: 700; }.history-detail { margin: 8px 0 0; color: #435a70; font-size: 12px; line-height: 1.65; }
.check-stack { display: grid; align-content: end; gap: 9px; padding-bottom: 2px; }
.check-row { display: flex; align-items: center; gap: 9px; min-height: 28px; font-weight: 600; cursor: pointer; }
.check-row input { width: 18px; min-height: 18px; margin: 0; accent-color: #1d63a5; }
.badge-info { color: #235f91; background: #e8f2fb; }
.pool-filter-panel { margin-bottom: 14px; padding: 17px 18px; }
.pool-filter-grid { display: grid; grid-template-columns: minmax(240px, 1.7fr) repeat(3, minmax(140px, .8fr)) auto; align-items: end; gap: 12px; }
.pool-filter-grid label { min-width: 0; }
.pool-filter-actions { display: flex; gap: 8px; }
.pool-filter-actions .button { min-height: 40px; white-space: nowrap; }
.compact-filter { background: #fbfdff; }
.customer-link { display: inline-flex; color: #164f80; font-size: 12px; font-weight: 800; line-height: 1.4; }
.customer-link:hover { color: #2778b9; text-decoration: underline; text-underline-offset: 3px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag-list span { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border: 1px solid #cfdeeb; border-radius: 999px; color: #35688f; background: #f3f8fc; font-size: 10px; font-weight: 700; }
.tag-list.compact { gap: 4px; margin-top: 6px; }
.tag-list.compact span { min-height: 19px; padding: 1px 6px; font-size: 8px; }
.claim-disabled-notice { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; padding: 12px 14px; border: 1px solid #ead9b7; border-radius: 8px; color: #765e2b; background: #fffaf0; font-size: 11px; }
.claim-disabled-notice .icon { width: 16px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 15px 0 8px; color: #62758a; font-size: 11px; }
.pagination .button { min-height: 34px; padding: 6px 12px; }
.pagination .disabled { pointer-events: none; opacity: .42; }
.customer-detail-heading { margin-bottom: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 15px; color: #4f6880; font-size: 11px; font-weight: 700; }
.back-link:hover { color: #1d63a5; }.back-link .icon { width: 14px; transform: rotate(180deg); }
.customer-detail-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; padding: 0 2px; }
.customer-detail-title h2 { margin: 0; color: #0f2844; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; }
.detail-header-actions { display: flex; align-items: center; gap: 10px; }
.customer-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 18px; }
.customer-detail-main { display: grid; gap: 18px; min-width: 0; }
.customer-detail-aside { position: sticky; top: 96px; display: grid; gap: 14px; }
.detail-section { padding: 22px; }
.customer-info-grid, .profile-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid #e5ebf1; border-left: 1px solid #e5ebf1; }
.customer-info-grid > div, .profile-field-grid > div { min-width: 0; padding: 15px 16px; border-right: 1px solid #e5ebf1; border-bottom: 1px solid #e5ebf1; background: #fbfdff; }
.customer-info-grid dt, .profile-field-grid dt { margin-bottom: 5px; color: #718297; font-size: 10px; font-weight: 700; }
.customer-info-grid dd, .profile-field-grid dd { margin: 0; overflow-wrap: anywhere; color: #243a52; font-size: 12px; font-weight: 700; line-height: 1.6; }
.profile-field-grid > div { background: #fff; }.profile-field-grid dt { color: #4f7596; }
.detail-long-text { margin: 0; color: #41576e; font-size: 12px; line-height: 1.8; }
.detail-history { padding-top: 4px; }
.tag-editor, .detail-action-panel { padding: 20px; }
.tag-editor h3, .detail-action-panel h3 { margin: 0; font-size: 17px; }
.tag-editor > p:not(.eyebrow) { margin: 7px 0 15px; color: #66798d; font-size: 11px; line-height: 1.65; }
.tag-editor form, .detail-action-panel { display: grid; gap: 10px; }
.tag-editor textarea { min-height: 105px; }.tag-editor .button { width: 100%; }
.detail-action-panel .button { width: 100%; }
.lead-detail-meta { margin: 7px 0 0; color: #61758a; font-size: 12px; }
.lead-summary-card { padding: 20px; }
.lead-summary-card h3 { margin: 0; font-size: 17px; }
.lead-summary-card > p:not(.eyebrow) { margin: 10px 0 17px; padding: 13px 14px; border-left: 3px solid #5a92be; border-radius: 7px; color: #3f566e; background: #f4f8fc; font-size: 12px; line-height: 1.75; }
.lead-summary-card dl { display: grid; gap: 0; margin: 0; }
.lead-summary-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #e7edf3; }
.lead-summary-card dt { color: #77889b; font-size: 10px; }.lead-summary-card dd { margin: 0; color: #263e56; font-size: 11px; font-weight: 750; text-align: right; }
.settings-intro { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 17px; padding: 19px 21px; }
.settings-intro > div:first-child { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #286fa9; background: #eaf4fc; }
.settings-intro > div:first-child .icon { width: 20px; }
.settings-intro h3 { margin: 0; font-size: 18px; }.settings-intro p:last-child { margin: 5px 0 0; color: #62758a; font-size: 11px; }
.claim-settings-grid { display: grid; gap: 16px; }
.claim-setting-card { padding: 22px; }
.setting-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 17px; border-bottom: 1px solid #e5ebf1; }
.setting-card-head h3 { margin: 0; font-size: 19px; }
.setting-switch { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 12px; border: 1px solid #ceddea; border-radius: 8px; color: #315f87; background: #f5faff; cursor: pointer; }
.setting-switch input { width: 18px; min-height: 18px; margin: 0; accent-color: #1d63a5; }
.setting-form-grid { display: grid; grid-template-columns: repeat(5, minmax(135px, 1fr)); gap: 13px; padding: 18px 0; }
.setting-form-grid small { display: block; margin-top: 5px; color: #8492a2; font-size: 9px; font-weight: 500; }
.setting-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; border-top: 1px solid #e5ebf1; }
.setting-card-foot span { color: #738397; font-size: 10px; }

@media (max-width: 1180px) {
    .telemarketing-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pool-filter-grid { grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(140px, 1fr)); }.pool-filter-actions { grid-column: auto; }
    .pool-filter-grid label:nth-of-type(4) { grid-column: auto; }
    .setting-form-grid { grid-template-columns: repeat(3, minmax(145px, 1fr)); }
    .customer-detail-layout { grid-template-columns: minmax(0, 1fr) 270px; }
}

@media (max-width: 900px) {
    .pool-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pool-search-field { grid-column: span 2; }
    .pool-filter-actions { grid-column: span 2; }
    .customer-detail-layout { grid-template-columns: 1fr; }
    .customer-detail-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .setting-form-grid { grid-template-columns: repeat(2, minmax(145px, 1fr)); }
}

@media (max-width: 650px) {
    .telemarketing-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tele-stat { min-height: 116px; padding: 17px; }.tele-stat strong { font-size: 27px; }.tele-stat small { font-size: 10px; }
    .section-tabs { margin-inline: -2px; }
    .tele-rule-bar { align-items: flex-start; flex-direction: column; gap: 7px; }
    .batch-claim-bar { align-items: flex-start; flex-direction: column; }.batch-quantity-form { width: 100%; }.batch-quantity-form label { flex: 1; }.batch-quantity-form input { width: 100%; }.selection-toolbar { flex-wrap: wrap; }.selection-toolbar > span { margin-right: 0; }
    .row-actions { flex-direction: column; align-items: flex-start; }
    .history-title { align-items: flex-start; flex-direction: column; gap: 4px; }
    .pool-filter-grid { grid-template-columns: 1fr; }.pool-search-field, .pool-filter-actions { grid-column: auto; }.pool-filter-actions .button { flex: 1; }
    .customer-detail-title, .setting-card-head, .setting-card-foot { align-items: flex-start; flex-direction: column; }
    .detail-header-actions { width: 100%; justify-content: space-between; }.detail-header-actions .button { flex: 1; }
    .customer-info-grid, .profile-field-grid, .customer-detail-aside, .setting-form-grid { grid-template-columns: 1fr; }
    .detail-section, .claim-setting-card { padding: 17px; }
    .setting-switch, .setting-card-foot .button { width: 100%; }
}

@media (max-width: 420px) {
    .telemarketing-metrics { grid-template-columns: 1fr; }
}

/* Lead-to-client conversion and signed-client records */
.strong-action { color: #1867a7; font-weight: 800; }
.conversion-form .form-section { margin-top: 18px; }
.conversion-form .form-section h4 { display: flex; align-items: center; gap: 8px; }
.conversion-form .form-section h4 span { color: #a26e16; font-size: 10px; font-weight: 700; }
.conversion-client-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 3px 0 4px; padding: 14px 15px; border: 1px solid #d9e5ef; border-radius: 10px; background: linear-gradient(135deg, #f7fbfe, #eef6fc); }
.conversion-client-strip > div { min-width: 0; }.conversion-client-strip strong, .conversion-client-strip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.conversion-client-strip strong { color: #183a59; font-size: 13px; }.conversion-client-strip small { margin-top: 4px; color: #6f8194; font-size: 10px; }
.document-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.document-upload-card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; min-height: 122px; padding: 16px; border: 1px dashed #b8ccdd; border-radius: 10px; background: #f9fcfe; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.document-upload-card:hover { border-color: #4f8bbc; background: #f3f9fe; box-shadow: 0 5px 16px rgba(25,78,122,.07); }
.document-upload-icon { display: grid; grid-row: 1 / 3; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: #276ca4; background: #e4f1fb; }.document-upload-icon .icon { width: 18px; }
.document-upload-card strong { color: #203e5a; font-size: 12px; }.document-upload-card small { margin-top: 3px; color: #74869a; font-size: 9px; font-weight: 500; line-height: 1.5; }
.document-upload-card input[type="file"] { grid-column: 1 / -1; width: 100%; min-height: auto; margin-top: 13px; padding: 8px; border: 1px solid #d7e2ec; border-radius: 7px; color: #50677d; background: #fff; font-size: 10px; }
.document-upload-card input[type="file"]::file-selector-button { margin-right: 9px; padding: 6px 9px; border: 0; border-radius: 6px; color: #1f629c; background: #e8f3fb; font-weight: 750; cursor: pointer; }
.conversion-required-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; padding: 12px 14px; border-left: 3px solid #c29a35; border-radius: 7px; color: #6e5b2f; background: #fffaf0; font-size: 10px; line-height: 1.6; }.conversion-required-note .icon { flex: 0 0 auto; width: 15px; margin-top: 1px; }
.money-value { color: #1c669f !important; font-weight: 850 !important; }
.signed-document-list { display: grid; gap: 9px; }
.signed-document-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid #dce6ee; border-radius: 9px; color: #28445d; background: #fbfdff; transition: border-color .16s ease, box-shadow .16s ease; }
.signed-document-item:hover { border-color: #a9c7dd; box-shadow: 0 5px 15px rgba(23,69,107,.06); }.signed-document-item > .icon:last-child { width: 14px; color: #7391aa; }
.signed-document-item span:nth-child(2) { min-width: 0; }.signed-document-item strong, .signed-document-item small { display: block; }.signed-document-item strong { font-size: 12px; }.signed-document-item small { margin-top: 4px; overflow: hidden; color: #718397; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.payment-record-list { border-top: 1px solid #e5ebf1; }.payment-record-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 13px 5px; border-bottom: 1px solid #e5ebf1; }.payment-record-list strong, .payment-record-list small { display: block; }.payment-record-list strong { color: #1f5f92; font-size: 14px; }.payment-record-list small { margin-top: 3px; color: #7b8998; font-size: 9px; }.payment-record-list time { color: #61778c; font-size: 10px; }
.document-empty { border: 1px dashed #d7e1ea; border-radius: 9px; background: #fbfcfd; }
.assignment-document-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 12px 14px; border: 1px solid #dfe8ef; border-radius: 8px; background: #f8fbfd; }.assignment-document-row > strong { color: #4c6175; font-size: 10px; }.assignment-document-row > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }.assignment-document-row a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 6px; color: #24689f; background: #e8f3fb; font-size: 10px; font-weight: 750; }.assignment-document-row a .icon { width: 13px; }

@media (max-width: 650px) {
    .conversion-client-strip { grid-template-columns: auto minmax(0, 1fr); }.conversion-client-strip > .badge { grid-column: 1 / -1; justify-self: start; }
    .document-upload-grid { grid-template-columns: 1fr; }
    .payment-record-list > div { grid-template-columns: 1fr auto; }.payment-record-list > div .badge { grid-column: 1 / -1; justify-self: start; }
    .assignment-document-row { align-items: flex-start; flex-direction: column; }.assignment-document-row > div { justify-content: flex-start; }
}

/* Account center in the top-right application bar */
.account-menu { position: relative; }
.account-menu summary { list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-trigger { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 9px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.account-trigger:hover, .account-menu[open] .account-trigger { border-color: #d4e1ed; background: #f7faff; box-shadow: 0 5px 16px rgba(21,57,91,.07); }
.account-trigger:focus-visible { outline: 3px solid rgba(47,127,194,.2); outline-offset: 2px; }
.account-trigger-copy { display: grid; min-width: 88px; }
.account-trigger-copy strong { color: #1a3048; font-size: 12px; line-height: 1.35; }
.account-trigger-copy small { color: #73859a; font-size: 9px; line-height: 1.4; }
.account-chevron { color: #75869a; font-size: 16px; line-height: 1; transition: transform .16s ease; }
.account-menu[open] .account-chevron { transform: rotate(180deg); }
.account-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; width: 312px; overflow: hidden; border: 1px solid #d8e3ed; border-radius: 14px; background: #fff; box-shadow: 0 18px 46px rgba(13,40,68,.18); }
.account-profile-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 18px; border-bottom: 1px solid #dce8f2; background: linear-gradient(135deg, #f5faff 0%, #edf6fd 100%); }
.account-avatar-large { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 7px 16px rgba(29,99,165,.2); }
.account-profile-hero > div { min-width: 0; }.account-profile-hero > div strong, .account-profile-hero > div small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-profile-hero > div strong { color: #122b45; font-size: 15px; }.account-profile-hero > div small { margin-top: 2px; color: #6d8195; font-size: 10px; }
.account-role-pill { align-self: start; justify-self: start; margin-top: 7px; padding: 3px 8px; border: 1px solid #c8dced; border-radius: 999px; color: #35688f; background: rgba(255,255,255,.76); font-size: 8px; font-weight: 750; }
.account-info-list { padding: 5px 17px; }
.account-info-list > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 1px; border-bottom: 1px solid #e8edf3; }
.account-info-list > div:last-child { border-bottom: 0; }
.account-info-list span { color: #8493a3; font-size: 9px; }.account-info-list strong { max-width: 180px; overflow: hidden; color: #344b62; font-size: 11px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-actions { display: grid; gap: 4px; padding: 9px 10px 11px; border-top: 1px solid #e6edf3; background: #fbfcfe; }
.account-menu-actions form { margin: 0; }
.account-menu-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 9px; color: #354b62; background: transparent; text-align: left; }
.account-menu-item:hover { background: #f3f8fc; }.account-menu-item > .icon { width: 17px; color: #3d78a7; }.account-menu-item > .icon:last-child { width: 13px; color: #91a0af; }
.account-menu-item > .icon:first-child { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: #eaf4fc; }
.account-menu-item span strong, .account-menu-item span small { display: block; }.account-menu-item span strong { font-size: 11px; }.account-menu-item span small { margin-top: 2px; color: #8795a4; font-size: 8px; }
.account-menu-item.account-logout { color: #9d4650; }.account-menu-item.account-logout:hover { background: #fff3f4; }.account-menu-item.account-logout > .icon { color: #ad4e58; }
.account-menu-item.account-logout > .icon:first-child { background: #fbecef; }
.password-fields { display: grid; gap: 14px; }
.password-security-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 11px 12px; border-left: 3px solid #4d87b4; border-radius: 7px; color: #587087; background: #f3f8fc; font-size: 10px; line-height: 1.6; }
.password-security-note .icon { flex: 0 0 auto; width: 15px; margin-top: 1px; color: #2d70a6; }

@media (max-width: 650px) {
    .account-trigger { min-height: 43px; padding: 4px 6px; }
    .account-trigger-copy { display: none; }
    .account-dropdown { width: min(312px, calc(100vw - 30px)); }
}

/* Sharper, higher-contrast lead profile */
.topbar { background: #fff; backdrop-filter: none; }
.lead-detail-heading { margin-bottom: 20px; padding: 20px 24px 22px; border: 1px solid #cfdbe7; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(18, 48, 78, .055); }
.lead-detail-heading .back-link { margin-bottom: 18px; color: #3c5d79; font-size: 13px; font-weight: 750; }
.lead-detail-heading .back-link .icon { width: 16px; }
.lead-detail-heading .customer-detail-title { align-items: center; padding: 0; }
.lead-detail-heading .eyebrow, .lead-detail-layout .eyebrow { margin-bottom: 7px; color: #1d64a0; font-size: 11px; letter-spacing: .14em; }
.lead-detail-heading .customer-detail-title h2 { color: #0b2540; font-size: clamp(32px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.lead-detail-heading .lead-detail-meta { margin-top: 9px; color: #4f657b; font-size: 14px; font-weight: 600; }
.lead-detail-heading .detail-header-actions { flex-wrap: wrap; justify-content: flex-end; }
.lead-detail-heading .detail-header-actions .badge { min-height: 29px; padding: 5px 10px; font-size: 11px; }
.lead-detail-heading .detail-header-actions .button { min-height: 44px; padding-inline: 18px; border-radius: 8px; font-size: 13px; box-shadow: none; }
.lead-detail-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
.lead-detail-layout .customer-detail-main { gap: 20px; }
.lead-detail-layout .customer-detail-aside { top: 96px; gap: 16px; }
.lead-detail-layout .panel { border-color: #cedae6; border-radius: 12px; box-shadow: 0 5px 17px rgba(18, 48, 78, .045); }
.lead-detail-layout .detail-section { padding: 25px; }
.lead-detail-layout .panel-head { margin-bottom: 19px; }
.lead-detail-layout .panel-head h3 { color: #102b46; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.lead-detail-layout .panel-note { color: #536a80; font-size: 12px; font-weight: 600; }
.lead-detail-layout .customer-info-grid { overflow: hidden; border: 1px solid #d4dee8; border-radius: 9px; background: #fff; }
.lead-detail-layout .customer-info-grid > div { padding: 17px 19px; border-color: #dbe3eb; background: #fff; }
.lead-detail-layout .customer-info-grid dt { margin-bottom: 7px; color: #5d7287; font-size: 12px; font-weight: 650; }
.lead-detail-layout .customer-info-grid dd { color: #132d47; font-size: 14px; font-weight: 750; line-height: 1.55; }
.lead-detail-layout .phone-link { gap: 8px; color: #1263a5; font-size: 14px; font-weight: 800; }
.lead-detail-layout .phone-link .icon { width: 17px; height: 17px; }
.lead-detail-layout .history-persistence-note { margin-bottom: 20px; padding: 14px 15px; border-left-width: 4px; color: #334f68; background: #f3f7fb; font-size: 13px; line-height: 1.65; }
.lead-detail-layout .history-persistence-note .icon { width: 18px; }
.lead-detail-layout .history-timeline { gap: 15px; padding-left: 28px; }
.lead-detail-layout .history-timeline::before { background: #c7d4df; }
.lead-detail-layout .history-dot { left: -26px; width: 12px; height: 12px; border-color: #fff; box-shadow: 0 0 0 1px #91b3cf; }
.lead-detail-layout .history-card { padding: 17px 18px; border-color: #d3dee8; border-radius: 9px; }
.lead-detail-layout .history-title strong { color: #123552; font-size: 14px; font-weight: 800; }
.lead-detail-layout .history-title time { color: #596f85; font-size: 11px; }
.lead-detail-layout .history-actor { margin-top: 6px; color: #526a81; font-size: 12px; }
.lead-detail-layout .history-summary { color: #245f8f; font-size: 13px; }
.lead-detail-layout .history-detail { color: #263f57; font-size: 13px; line-height: 1.75; }
.lead-detail-layout .lead-summary-card { padding: 23px; }
.lead-detail-layout .lead-summary-card h3 { color: #102b46; font-size: 20px; font-weight: 800; }
.lead-detail-layout .lead-summary-card > p:not(.eyebrow) { margin: 13px 0 20px; padding: 15px 16px; border-left-width: 4px; color: #243e57; background: #f5f8fb; font-size: 14px; line-height: 1.75; }
.lead-detail-layout .lead-summary-card dl > div { padding: 12px 0; border-color: #dce4eb; }
.lead-detail-layout .lead-summary-card dt { color: #5d7287; font-size: 12px; }
.lead-detail-layout .lead-summary-card dd { color: #183550; font-size: 12px; font-weight: 800; }
.summary-foot-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; padding: 12px 0 1px; border-top: 1px solid #dce4eb; color: #1764a1; font-size: 12px; font-weight: 800; }
.summary-foot-link .icon { width: 15px; }

@media (max-width: 1100px) {
    .lead-detail-layout { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 900px) {
    .lead-detail-layout { grid-template-columns: 1fr; }
    .lead-detail-layout .customer-detail-aside { position: static; grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .lead-detail-heading { padding: 18px; }
    .lead-detail-heading .customer-detail-title { align-items: flex-start; }
    .lead-detail-heading .detail-header-actions { justify-content: flex-start; }
    .lead-detail-heading .detail-header-actions .badge { flex: 0 0 auto; }
    .lead-detail-heading .detail-header-actions .button { flex: 1 1 145px; }
    .lead-detail-layout .detail-section, .lead-detail-layout .lead-summary-card { padding: 18px; }
    .lead-detail-layout .customer-info-grid { grid-template-columns: 1fr; }
}

/* 2026-09 full-site ocean-blue comfort theme */
:root {
    --ink: #172f46;
    --muted: #5f7387;
    --deep: #0b2a46;
    --deep-2: #0d3558;
    --green: #286fa6;
    --green-bright: #3b83b8;
    --green-soft: #edf5fb;
    --gold: #5689ae;
    --gold-soft: #eef5fa;
    --blue: #286fa6;
    --blue-soft: #edf5fb;
    --red: #a64d59;
    --red-soft: #faeef0;
    --surface: #ffffff;
    --canvas: #f4f7fa;
    --line: #d4e0e9;
    --shadow: 0 5px 16px rgba(22, 57, 87, .055);
    --radius: 11px;
    --sidebar: 256px;
}

html, body { background: var(--canvas); }
body {
    color: var(--ink);
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    text-rendering: auto;
    -webkit-font-smoothing: auto;
}

.sidebar { width: var(--sidebar); padding: 22px 17px 18px; background: linear-gradient(180deg, #092642 0%, #0b2f50 58%, #0c365b 100%); box-shadow: 8px 0 24px rgba(8, 38, 66, .08); }
.brand { height: 84px; }.brand-logo { max-width: 216px; }
.main-nav { margin-top: 15px; }
.nav-group + .nav-group { margin-top: 21px; }
.nav-group > p, .main-nav > p { margin: 0 13px 10px; color: #8ba8c1; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.main-nav a { height: 50px; gap: 13px; padding: 0 14px; border-radius: 8px; color: #c1d2e1; font-size: 14px; font-weight: 650; }
.main-nav a .icon { width: 20px; height: 20px; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.065); }
.main-nav a.active { color: #fff; background: #174c78; box-shadow: inset 3px 0 #79b9e4; }
.sidebar-card { padding: 14px; border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.05); }
.sidebar-card strong { color: #edf5fb; font-size: 13px; }.sidebar-card small { color: #a2b8cc; font-size: 11px; }

.topbar { height: 78px; padding: 0 clamp(28px, 3.5vw, 52px); border-bottom: 1px solid #d9e3ec; background: #fff; box-shadow: 0 2px 8px rgba(22,57,87,.025); }
.topbar p { color: #60758a; font-size: 13px; }.topbar h1 { color: #16324d; font-size: 22px; font-weight: 750; }
.privacy-pill { min-height: 36px; border-color: #d3e0ea; color: #315f83; background: #f6f9fc; font-size: 12px; }
.content { width: min(1540px, 100%); min-height: calc(100vh - 78px); padding: 34px clamp(28px, 3.5vw, 52px) 60px; }

.eyebrow { margin-bottom: 7px; color: #2a6f9f; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.welcome-row, .page-heading { gap: 26px; margin-bottom: 27px; }
.page-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; flex-wrap: wrap; }
.welcome-row h2, .page-heading h2 { color: #132d45; font-size: clamp(30px, 2.8vw, 36px); font-weight: 780; line-height: 1.25; }
.welcome-row p:last-child, .page-heading > div > p:last-child { margin-top: 9px; color: #5d7185; font-size: 14px; }

.button { min-height: 44px; padding: 10px 18px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.button-primary { border-color: #286fa6; background: #286fa6; box-shadow: 0 5px 12px rgba(40,111,166,.15); }
.button-primary:hover { border-color: #225f8f; background: #225f8f; }
.button-secondary { color: #275f89; border-color: #c7d8e5; background: #f7fafc; }
.button-ghost { color: #536a7f; border-color: #d2dde6; background: #fff; }
.text-button { color: #246b9f; font-size: 13px; }

.panel, .assignment-card, .case-card, .tele-stat { border-color: #d3dfe8; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.panel-head { margin-bottom: 19px; }.panel-head h3 { color: #17324c; font-size: 19px; font-weight: 760; }.panel-head a { font-size: 13px; }.panel-note { color: #62778b; font-size: 12px; }
.metric-grid { gap: 17px; margin-bottom: 21px; }
.department-scope-banner { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: -6px 0 20px; padding: 15px 18px; border: 1px solid #c9dce9; border-radius: 10px; background: #eef5fa; }
.department-scope-banner > div { display: flex; align-items: center; gap: 12px; color: #285f88; }.department-scope-banner > div > .icon { width: 22px; height: 22px; flex: 0 0 auto; }
.department-scope-banner span strong, .department-scope-banner span small { display: block; }.department-scope-banner span strong { color: #1d537d; font-size: 14px; }.department-scope-banner span small { margin-top: 3px; color: #5b7185; font-size: 12px; }
.department-scope-banner dl { display: flex; align-items: center; gap: 25px; margin: 0; }.department-scope-banner dl div { min-width: 92px; padding-left: 18px; border-left: 1px solid #c7d8e5; }.department-scope-banner dt { color: #61768a; font-size: 11px; }.department-scope-banner dd { margin-top: 3px; color: #173a58; font-size: 17px; font-weight: 750; }
.department-performance-entry { display: grid; grid-template-columns: auto minmax(250px, 1fr) auto auto; align-items: center; gap: 22px; margin: -6px 0 22px; padding: 20px 22px; border: 1px solid #c7dae8; border-left: 4px solid #2f7fb7; border-radius: 12px; color: inherit; background: #fff; box-shadow: 0 7px 20px rgba(22,57,87,.065); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.department-performance-entry:hover { border-color: #8fb9d5; box-shadow: 0 11px 27px rgba(22,57,87,.11); transform: translateY(-1px); }
.department-performance-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 11px; color: #1f6fa8; background: #eaf4fb; }.department-performance-icon .icon { width: 25px; height: 25px; }
.department-performance-copy { min-width: 0; }.department-performance-copy > small { display: block; margin-bottom: 4px; color: #2c76a8; font-size: 10px; font-weight: 850; letter-spacing: .15em; }.department-performance-copy > strong { display: block; color: #15344f; font-size: 19px; font-weight: 780; }.department-performance-copy p { margin-top: 5px; color: #5b7287; font-size: 13px; }
.department-performance-stats { display: flex; align-items: stretch; border: 1px solid #d8e4ec; border-radius: 9px; background: #f7fafc; }.department-performance-stats > span { min-width: 100px; padding: 11px 16px; }.department-performance-stats > span + span { border-left: 1px solid #d8e4ec; }.department-performance-stats small { display: block; color: #60768a; font-size: 11px; }.department-performance-stats strong { display: block; margin-top: 4px; color: #163a59; font-size: 20px; font-weight: 800; }.department-performance-stats em { margin-left: 3px; color: #61778a; font-size: 11px; font-style: normal; font-weight: 600; }
.department-performance-action { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 15px; border-radius: 8px; color: #fff; background: #286fa6; font-size: 13px; font-weight: 750; white-space: nowrap; }.department-performance-action .icon { width: 16px; height: 16px; }

.analytics-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 25px; }.analytics-page-heading .back-link { display: inline-block; margin-bottom: 18px; }.analytics-page-heading h2 { color: #132f49; font-size: clamp(30px, 3vw, 38px); font-weight: 790; line-height: 1.2; }.analytics-page-heading > div > p:last-child { margin-top: 9px; color: #5b7185; font-size: 14px; }
.analytics-period-tabs { display: flex; flex: 0 0 auto; padding: 4px; border: 1px solid #d1dfe9; border-radius: 9px; background: #eef4f8; }.analytics-period-tabs a { display: grid; min-width: 78px; min-height: 38px; place-items: center; border-radius: 6px; color: #526b80; font-size: 13px; font-weight: 700; }.analytics-period-tabs a.active { color: #1f6598; background: #fff; box-shadow: 0 2px 7px rgba(20,55,84,.08); }
.analytics-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 19px; }.analytics-kpi-grid article { display: flex; align-items: flex-start; gap: 13px; min-height: 130px; padding: 20px; border: 1px solid #d2dfe8; border-radius: 11px; background: #fff; box-shadow: var(--shadow); }.analytics-kpi-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #2876aa; background: #edf5fa; }.analytics-kpi-icon .icon { width: 19px; height: 19px; }.analytics-kpi-grid small { color: #5c7286; font-size: 12px; }.analytics-kpi-grid strong { display: block; margin: 5px 0 3px; color: #12324d; font-size: 29px; line-height: 1; }.analytics-kpi-grid p { color: #718496; font-size: 11px; line-height: 1.45; }
.analytics-main-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, .7fr); gap: 18px; margin-bottom: 19px; }.analytics-trend-panel, .analytics-summary-panel, .employee-comparison-panel, .analytics-recent-panel { padding: 24px; }.chart-legend { display: flex; align-items: center; gap: 15px; color: #60768a; font-size: 11px; }.chart-legend span { display: flex; align-items: center; gap: 6px; }.chart-legend i { width: 9px; height: 9px; border-radius: 2px; }.legend-call { background: #2c78b2; }.legend-wechat { background: #68b5d1; }
.trend-chart-scroll { overflow-x: auto; overflow-y: hidden; padding: 8px 2px 2px; }.trend-chart { display: grid; grid-template-columns: repeat(7, minmax(44px, 1fr)); gap: 10px; min-width: 520px; height: 238px; padding: 10px 3px 0; border-bottom: 1px solid #d9e4ec; background: #fbfcfd; }.trend-chart.is-30-days { grid-template-columns: repeat(30, 28px); min-width: 920px; gap: 3px; }.trend-day { display: grid; grid-template-rows: minmax(0, 1fr) 26px; min-width: 0; border-bottom: 1px solid #edf2f6; }.trend-values { display: flex; align-items: flex-end; justify-content: center; gap: 4px; min-height: 0; }.trend-values i { display: block; width: min(13px, 38%); min-height: 2px; border-radius: 3px 3px 0 0; }.trend-call { background: #2c78b2; }.trend-wechat { background: #68b5d1; }.trend-day > span { padding-top: 8px; color: #708396; font-size: 10px; text-align: center; white-space: nowrap; }.analytics-empty-note { margin-top: 15px; padding: 11px 13px; border-left: 3px solid #73a9cc; color: #61768a; background: #f5f8fa; font-size: 12px; }
.conversion-ring-row { display: flex; align-items: center; gap: 18px; padding: 12px 0 22px; border-bottom: 1px solid #e1e8ee; }.conversion-ring { position: relative; display: grid; width: 112px; height: 112px; flex: 0 0 auto; place-items: center; }.conversion-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }.conversion-ring circle { fill: none; stroke-width: 4.5; }.conversion-ring-track { stroke: #e7f0f6; }.conversion-ring-value { stroke: #2f7eb5; stroke-linecap: round; }.conversion-ring span { position: relative; z-index: 1; text-align: center; }.conversion-ring strong, .conversion-ring small { display: block; }.conversion-ring strong { color: #153957; font-size: 22px; }.conversion-ring small { margin-top: 3px; color: #6b8092; font-size: 11px; }.conversion-ring-row > div:last-child strong { color: #1b3c57; font-size: 14px; }.conversion-ring-row > div:last-child p { margin-top: 5px; color: #687d90; font-size: 12px; line-height: 1.5; }.conversion-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding-top: 18px; }.conversion-stats div { padding: 12px 8px; border: 1px solid #e0e8ee; border-radius: 8px; text-align: center; background: #f8fafc; }.conversion-stats span, .conversion-stats strong { display: block; }.conversion-stats span { color: #6a7e90; font-size: 10px; }.conversion-stats strong { margin-top: 5px; color: #173b59; font-size: 17px; }
.employee-comparison-panel { margin-bottom: 19px; }.employee-comparison-head, .employee-comparison-row { display: grid; grid-template-columns: minmax(190px, 1.2fr) minmax(220px, 1.5fr) repeat(4, minmax(72px, .55fr)); align-items: center; gap: 16px; }.employee-comparison-head { padding: 0 15px 10px; color: #6c8091; font-size: 11px; }.employee-comparison-list { border: 1px solid #dbe5ec; border-radius: 9px; overflow: hidden; }.employee-comparison-row { min-height: 78px; padding: 13px 15px; color: #294359; background: #fff; }.employee-comparison-row + .employee-comparison-row { border-top: 1px solid #e2e9ef; }.employee-comparison-row:hover, .employee-comparison-row.active { background: #f3f8fb; }.employee-comparison-row.active { box-shadow: inset 3px 0 #2f7fb7; }.comparison-person { display: flex; align-items: center; gap: 11px; }.comparison-person .avatar { display: grid; place-items: center; font-style: normal; }.comparison-person > span > strong, .comparison-person > span > small { display: block; }.comparison-person > span > strong { color: #173650; font-size: 14px; }.comparison-person > span > small { margin-top: 3px; color: #738697; font-size: 11px; }.comparison-volume > span { display: flex; justify-content: space-between; color: #577086; font-size: 11px; }.comparison-volume > span strong { color: #1b4566; font-size: 15px; }.comparison-volume > i { display: block; height: 7px; margin-top: 7px; overflow: hidden; border-radius: 3px; background: #e4edf3; }.comparison-volume > i b { display: block; height: 100%; border-radius: inherit; background: #347faf; }.employee-comparison-row > span:not(.comparison-person):not(.comparison-volume) strong, .employee-comparison-row > span:not(.comparison-person):not(.comparison-volume) small { display: block; }.employee-comparison-row > span:not(.comparison-person):not(.comparison-volume) strong { color: #183c59; font-size: 16px; }.employee-comparison-row > span:not(.comparison-person):not(.comparison-volume) small { margin-top: 3px; color: #768899; font-size: 10px; }.comparison-signed { display: flex !important; align-items: center; justify-content: space-between; }.comparison-signed .icon { width: 16px; color: #3c7ea9; }
.analytics-recent-panel { margin-bottom: 22px; }.analytics-call-table { min-width: 920px; }.analytics-call-table td:first-child strong, .analytics-call-table td:first-child small { display: block; }.analytics-call-table td:first-child small { margin-top: 3px; }
.metric-card { min-height: 148px; padding: 24px; border-color: #d3dfe8; border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.metric-card:hover { border-color: #a9c6da; box-shadow: 0 9px 22px rgba(22,57,87,.09); }
.metric-card p { color: #526a80; font-size: 14px; }.metric-card strong { color: #12304a; font-size: 35px; }.metric-card small { color: #657a8e; font-size: 12px; }
.metric-icon { width: 45px; height: 45px; background: #edf5fb !important; }.metric-icon .icon { width: 21px; height: 21px; }
.dashboard-grid { gap: 19px; }.task-panel, .funnel-panel, .workload-panel { padding: 25px; }
.task-item { min-height: 68px; gap: 14px; padding: 14px 9px; }.task-type { width: 48px; height: 30px; font-size: 12px; }.task-item strong { font-size: 14px; }.task-item p { color: #5e7387; font-size: 12px; }.task-item time { color: #60758a; font-size: 12px; }
.funnel-row { min-height: 38px; font-size: 13px; }.funnel-row strong { font-size: 13px; }.funnel-tip, .workload-tip { color: #50677c; background: #f5f8fb; font-size: 12px; }

.filter-panel { padding: 19px 21px 5px; }.filter-row { gap: 11px; margin-bottom: 16px; }
.staff-filter-select { min-width: 235px; }
.sales-client-filter-grid { grid-template-columns: minmax(240px, 1.4fr) repeat(2, minmax(180px, 1fr)); }
input, select, textarea { min-height: 44px; padding: 10px 12px; border-color: #cbd7e1; color: #18324b; background: #fff; font-size: 14px; }
input::placeholder, textarea::placeholder { color: #8998a7; }
input:focus, select:focus, textarea:focus { border-color: #4b8bb9; box-shadow: 0 0 0 3px rgba(55,128,181,.12); }
label { color: #3e566d; font-size: 13px; }

.table-panel { padding: 24px 24px 10px; }.table-wrap { border-radius: 8px; }
.department-work-panel { margin-bottom: 21px; }.department-work-panel table { min-width: 940px; }.department-work-panel .person-cell { min-width: 215px; }.staff-work-value { color: #173a58; font-size: 15px; font-weight: 750; white-space: nowrap; }
table { min-width: 760px; }
th { padding: 12px 14px; color: #536a80; background: #f1f5f8; font-size: 13px; }
td { padding: 16px 14px; border-bottom-color: #e3eaf0; color: #2e465d; font-size: 14px; }
tbody tr:hover td { background: #f8fafc; }
td > strong, .plain-strong, .customer-link { font-size: 14px; }
.table-sub, .person-cell small { color: #667b8f; font-size: 12px; }.person-cell { min-width: 175px; }
.badge { min-height: 27px; padding: 4px 9px; font-size: 11px; }
.badge-success, .badge-info { color: #235f89; background: #e8f2f9; }.badge-warning { color: #526d84; background: #edf2f6; }.badge-neutral { color: #52697e; background: #eef2f5; }
.intent { font-size: 11px; }

.telemarketing-heading { margin-bottom: 27px; }
.telemarketing-metrics { gap: 16px; margin-bottom: 20px; }
.tele-stat { min-height: 136px; padding: 22px; }
.tele-stat.active { border-color: #9fc1d8; background: #f8fbfd; }.tele-stat.active::before { background: #347ead; }
.tele-stat span { color: #4f687d; font-size: 13px; }.tele-stat strong { color: #15324b; font-size: 33px; }.tele-stat small { color: #61768a; font-size: 12px; }
.section-tabs { gap: 7px; padding: 6px; border-color: #d3dfe8; background: #eaf0f5; }
.section-tabs a { min-height: 42px; padding: 9px 16px; color: #4d657a; font-size: 13px; }.section-tabs a.active { color: #1f5f8f; box-shadow: 0 2px 7px rgba(22,57,87,.06); }
.section-tabs a span { min-width: 24px; height: 22px; font-size: 11px; }
.tele-rule-bar { padding: 13px 16px; border-left-color: #4f8bb7; color: #4f6579; background: #f4f8fb; font-size: 12px; }.tele-rule-bar .icon { color: #347ead; }
.batch-claim-bar { padding: 16px 18px; border-color: #cbdce8; background: #f4f8fb; }.batch-claim-bar strong { font-size: 14px; }.batch-claim-bar span, .batch-quantity-form label { color: #5c7185; font-size: 12px; }
.selection-toolbar { padding: 10px 13px; border-color: #d6e0e8; background: #f8fafc; }.selection-toolbar > span { color: #536b80; font-size: 12px; }
.button-compact { min-height: 36px; font-size: 12px; }.history-link { font-size: 12px; }.customer-link { color: #1d6092; }
.tag-list span { min-height: 26px; padding: 4px 9px; color: #315f82; background: #f0f6fa; font-size: 11px; }.tag-list.compact span { min-height: 22px; padding: 2px 7px; font-size: 10px; }
.pagination { color: #536b80; font-size: 12px; }

.customer-detail-heading { margin-bottom: 20px; padding: 20px 23px 22px; border: 1px solid #d2dee7; border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.back-link { margin-bottom: 17px; color: #3d607c; font-size: 13px; }.back-link .icon { width: 16px; }
.customer-detail-title { align-items: center; padding: 0; }.customer-detail-title h2 { color: #112d47; font-size: clamp(32px, 3vw, 38px); font-weight: 780; }
.detail-header-actions { flex-wrap: wrap; }.lead-detail-meta { color: #536b80; font-size: 14px; }
.customer-detail-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }.customer-detail-main { gap: 20px; }.customer-detail-aside { gap: 16px; }
.detail-section { padding: 24px; }
.customer-info-grid, .profile-field-grid { overflow: hidden; border: 1px solid #d4dee7; border-radius: 8px; background: #fff; }
.customer-info-grid > div, .profile-field-grid > div { padding: 17px 18px; border-color: #dce4eb; background: #fff; }
.customer-info-grid dt, .profile-field-grid dt { margin-bottom: 6px; color: #5b7185; font-size: 12px; }.customer-info-grid dd, .profile-field-grid dd { color: #19334c; font-size: 14px; }
.detail-long-text { color: #314a61; font-size: 14px; }.tag-editor, .detail-action-panel, .lead-summary-card { padding: 22px; }
.tag-editor h3, .detail-action-panel h3, .lead-summary-card h3 { color: #17324b; font-size: 19px; }
.tag-editor > p:not(.eyebrow) { color: #5c7185; font-size: 13px; }
.lead-summary-card > p:not(.eyebrow) { color: #2e465d; background: #f5f8fb; font-size: 14px; }.lead-summary-card dt { color: #5d7286; font-size: 12px; }.lead-summary-card dd { color: #1c3852; font-size: 12px; }
.history-persistence-note { padding: 14px 15px; border-left-color: #367eae; color: #39566e; background: #f3f7fa; font-size: 13px; }
.history-card { padding: 16px 17px; border-color: #d3dee7; }.history-title strong { font-size: 14px; }.history-title time { color: #5f7488; font-size: 11px; }.history-actor { color: #526b80; font-size: 12px; }.history-summary { font-size: 13px; }.history-detail { color: #2d465d; font-size: 13px; }

.stage-strip { border-color: #d3dfe8; background: #fff; box-shadow: var(--shadow); }.stage-strip > div > span { font-size: 12px; }.stage-strip strong { font-size: 13px; }.stage-strip small { font-size: 11px; }
.assignment-card { padding: 25px; }.assignment-top h3 { font-size: 23px; }.assignment-top p { font-size: 13px; }
.signed-place { background: #f4f8fb; }.signed-place small { font-size: 11px; }.signed-place strong { font-size: 13px; }
.handover-grid span { color: #5e7387; font-size: 11px; }.handover-grid strong { color: #1e3a54; font-size: 13px; }
.handover-note { border-color: #d6e1e9; background: #f8fafc; }.handover-note strong { font-size: 13px; }.handover-note p { color: #354e65; font-size: 14px; }.handover-note small { color: #62778b; font-size: 12px; }
.workload-list strong { font-size: 13px; }.workload-list small { font-size: 11px; }.workload-list em { font-size: 11px; }
.case-no { color: #60758a; font-size: 11px; }.case-card h3 { font-size: 21px; }.case-type { font-size: 13px; }
.case-facts { background: #f4f8fb; }.case-facts span { color: #5e7387; font-size: 11px; }.case-facts strong { font-size: 13px; }.case-summary span { color: #61768a; font-size: 11px; }.case-summary p { color: #354e65; font-size: 13px; }

.org-overview article { border-color: #d3dfe8; background: #fff; }.org-overview strong { font-size: 13px; }.org-overview small { color: #61768a; font-size: 11px; }.role-chip { font-size: 11px; }
.security-callout { border-color: #c9dce9; color: #285f88; background: #eef5fa; font-size: 12px; }
.role-list strong, .scope-option strong, .permission-groups strong { font-size: 13px; }.role-list small, .scope-option small { color: #5f7488; font-size: 11px; }.permission-groups small { color: #6b7f91; font-size: 10px; }
.permission-groups legend, .scope-selector > strong { font-size: 13px; }
.setting-form-grid small, .setting-card-foot span { color: #62778b; font-size: 11px; }.settings-intro p:last-child { font-size: 13px; }

.modal { border-radius: 12px; }.modal::backdrop { background: rgba(9,34,57,.55); backdrop-filter: none; }.modal-card { padding: 28px; }.modal-head h3 { font-size: 23px; }.modal-subtitle { color: #5c7185; font-size: 13px; }.form-section h4 { color: #2b6f9f; font-size: 14px; }.alert { font-size: 13px; }.empty-state p { font-size: 13px; }
.account-trigger-copy strong { font-size: 13px; }.account-trigger-copy small { color: #60758a; font-size: 11px; }
.account-dropdown { border-color: #cfdce6; box-shadow: 0 14px 34px rgba(18,48,78,.16); }.account-profile-hero { background: #f3f7fa; }.account-profile-hero > div strong { font-size: 16px; }.account-profile-hero > div small { font-size: 11px; }.account-role-pill { font-size: 10px; }.account-info-list span { font-size: 11px; }.account-info-list strong { font-size: 12px; }.account-menu-item span strong { font-size: 13px; }.account-menu-item span small { font-size: 10px; }

.login-body { background: #edf3f7; }.login-story { background: linear-gradient(145deg, #092642 0%, #0d365b 62%, #19547f 100%); }.login-panel { background: #f7f9fb; }.login-copy > p:last-child { color: #c3d3e1; }.login-form-wrap h2 { color: #15314a; }.demo-accounts > span { font-size: 12px; }.demo-accounts button { color: #315f83; font-size: 12px; }.demo-accounts small, .login-foot { font-size: 11px; }

@media (max-width: 1320px) {
    .department-performance-entry { grid-template-columns: auto minmax(220px, 1fr) auto; }.department-performance-action { grid-column: 2 / -1; justify-self: end; margin-top: -8px; }
    .analytics-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .employee-comparison-head, .employee-comparison-row { grid-template-columns: minmax(180px, 1.1fr) minmax(190px, 1.35fr) repeat(4, minmax(64px, .5fr)); gap: 11px; }
}

@media (max-width: 1180px) {
    :root { --sidebar: 246px; }
    .content, .topbar { padding-inline: 28px; }
    .customer-detail-layout { grid-template-columns: minmax(0, 1fr) 290px; }
    .department-performance-entry { grid-template-columns: auto minmax(220px, 1fr) auto; }.department-performance-action { grid-column: 2 / -1; justify-self: end; margin-top: -8px; }
    .analytics-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .employee-comparison-head, .employee-comparison-row { grid-template-columns: minmax(180px, 1.1fr) minmax(190px, 1.35fr) repeat(4, minmax(64px, .5fr)); gap: 11px; }
}

@media (max-width: 900px) {
    :root { --sidebar: 268px; }
    .content { padding: 30px 22px 52px; }
    .customer-detail-layout { grid-template-columns: 1fr; }
    .customer-detail-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .staff-filter-select { min-width: 0; }
    .sales-client-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .department-scope-banner { align-items: flex-start; flex-direction: column; }.department-scope-banner dl { width: 100%; }.department-scope-banner dl div:first-child { padding-left: 0; border-left: 0; }
    .department-performance-entry { grid-template-columns: auto minmax(0, 1fr); }.department-performance-stats { grid-column: 1 / -1; width: 100%; }.department-performance-stats > span { flex: 1; min-width: 0; }.department-performance-action { grid-column: 1 / -1; justify-self: stretch; justify-content: center; margin-top: 0; }
    .analytics-main-grid { grid-template-columns: 1fr; }.analytics-page-heading { align-items: flex-start; flex-direction: column; }.analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .employee-comparison-panel { overflow: hidden; }.employee-comparison-head { display: none; }.employee-comparison-list { overflow-x: auto; }.employee-comparison-row { min-width: 790px; }
}

@media (max-width: 650px) {
    .topbar { height: 68px; }.content { padding: 24px 15px 42px; }
    .welcome-row h2, .page-heading h2 { font-size: 28px; }
    .page-heading-actions { width: 100%; justify-content: flex-start; }
    .department-scope-banner { padding: 14px; }.department-scope-banner dl { gap: 14px; }.department-scope-banner dl div { min-width: 0; flex: 1; padding-left: 14px; }
    .metric-grid, .telemarketing-metrics { grid-template-columns: 1fr; }
    .metric-card, .tele-stat { min-height: 132px; }
    .task-panel, .funnel-panel, .table-panel, .workload-panel, .detail-section, .lead-summary-card, .tag-editor, .detail-action-panel { padding: 18px; }
    .customer-detail-heading { padding: 18px; }
    .customer-detail-title, .setting-card-head, .setting-card-foot { align-items: flex-start; flex-direction: column; }
    .detail-header-actions { width: 100%; justify-content: flex-start; }.detail-header-actions .button { flex: 1 1 145px; }
    .customer-info-grid, .profile-field-grid, .customer-detail-aside, .setting-form-grid { grid-template-columns: 1fr; }
    .section-tabs a { font-size: 12px; }
    .sales-client-filter-grid { grid-template-columns: 1fr; }
    .department-performance-entry { padding: 17px; gap: 15px; }.department-performance-icon { width: 46px; height: 46px; }.department-performance-copy p { font-size: 12px; }.department-performance-stats > span { padding: 10px 9px; }.department-performance-stats strong { font-size: 18px; }
    .analytics-page-heading { gap: 18px; }.analytics-period-tabs { width: 100%; }.analytics-period-tabs a { flex: 1; }.analytics-kpi-grid { grid-template-columns: 1fr; }.analytics-kpi-grid article { min-height: 112px; }.analytics-trend-panel, .analytics-summary-panel, .employee-comparison-panel, .analytics-recent-panel { padding: 18px; }.conversion-ring-row { align-items: flex-start; flex-direction: column; }.conversion-stats { grid-template-columns: 1fr; }.chart-legend { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* Haiyuchuan premium visual system: deep ocean blue, restrained gold and crisp white */
:root {
    --ink: #10283d;
    --muted: #657587;
    --deep: #071c31;
    --deep-2: #0b2c49;
    --green: #164f7c;
    --green-bright: #246b9d;
    --green-soft: #edf3f7;
    --gold: #b88c3d;
    --gold-soft: #f8f2e7;
    --blue: #164f7c;
    --blue-soft: #edf3f7;
    --surface: #ffffff;
    --canvas: #f2f4f6;
    --line: #d8dee5;
    --shadow: 0 8px 24px rgba(7, 28, 49, .065);
    --radius: 10px;
}

html, body { background: var(--canvas); }
body {
    color: var(--ink);
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { color: #fff; background: #1a527d; }

.sidebar {
    border-right: 1px solid rgba(196, 157, 78, .26);
    color: #d8e1e9;
    background: #071c31;
    box-shadow: 10px 0 30px rgba(5, 23, 41, .09);
}
.brand { position: relative; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand::after { position: absolute; right: 0; bottom: -1px; width: 46px; height: 1px; background: #c7a257; content: ""; }
.nav-group > p, .main-nav > p { color: #7990a4; font-weight: 650; }
.main-nav a { color: #b8c7d5; border: 1px solid transparent; }
.main-nav a:hover { color: #fff; border-color: rgba(255,255,255,.06); background: #0d2a45; }
.main-nav a.active {
    color: #fff;
    border-color: rgba(202, 168, 95, .2);
    background: #103552;
    box-shadow: inset 3px 0 #c7a257;
}
.main-nav a.active .icon { color: #e2c47e; }
.sidebar-card { border-color: rgba(197, 163, 90, .2); background: #0a243d; }
.sidebar-card strong { color: #f5f7f9; }.sidebar-card small { color: #91a5b7; }
.live-dot { background: #d0aa5d; box-shadow: 0 0 0 4px rgba(208,170,93,.13); }

.topbar {
    border-bottom-color: #d9dee4;
    background: rgba(255,255,255,.97);
    box-shadow: 0 3px 14px rgba(7,28,49,.035);
}
.topbar p { color: #6b7886; }.topbar h1 { color: #0d2941; letter-spacing: .01em; }
.privacy-pill { border-color: #d8d5ca; color: #695a3c; background: #fbfaf6; }
.avatar { color: #fff; background: #123f63; box-shadow: none; }
.content { background: transparent; }

.eyebrow { color: #a77b30; font-weight: 850; letter-spacing: .16em; }
.welcome-row h2, .page-heading h2 { color: #0d2941; font-weight: 780; }
.welcome-row p:last-child, .page-heading > div > p:last-child { color: #697786; }
.back-link, .text-button, .panel-head a, .customer-link { color: #174f7a; }

.button { border-radius: 7px; box-shadow: none; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; border-color: #123f63; background: #123f63; box-shadow: 0 6px 14px rgba(10,44,72,.14); }
.button-primary:hover { border-color: #0a2e4c; background: #0a2e4c; }
.button-secondary { color: #123f63; border-color: #c8d1da; background: #fff; }
.button-secondary:hover { border-color: #9dadbc; background: #f7f8f9; }
.button-ghost { color: #506173; border-color: #d4dbe2; background: #fff; }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(184,140,61,.24); outline-offset: 2px; }

.panel, .assignment-card, .case-card, .tele-stat,
.customer-detail-heading, .analytics-kpi-grid article {
    border-color: #d8dee4;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.panel-head h3 { color: #102a41; }.panel-note { color: #778492; }
.panel-head .eyebrow { margin-bottom: 5px; }

.metric-card {
    border-color: #d8dee4;
    border-top: 2px solid #173f60;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.metric-card:hover { border-color: #aebac5; border-top-color: #b88c3d; box-shadow: 0 12px 28px rgba(7,28,49,.1); }
.metric-card p { color: #596c7d; }.metric-card strong { color: #0c2b44; }
.metric-card small { color: #758391; }
.metric-icon { color: #164f7c; border: 1px solid #dce5ec; border-radius: 9px; background: #f1f5f8 !important; }
.metric-arrow { color: #9a7a3f; }

.department-scope-banner {
    border-color: #d8dee4;
    border-left: 4px solid #b88c3d;
    background: #fff;
    box-shadow: 0 5px 16px rgba(7,28,49,.04);
}
.department-scope-banner > div { color: #164f7c; }
.department-scope-banner span strong { color: #123b5b; }
.department-scope-banner span small, .department-scope-banner dt { color: #6e7d8c; }
.department-scope-banner dl div { border-left-color: #ddd8cc; }
.department-scope-banner dd { color: #102b43; }

.department-performance-entry {
    border: 1px solid #143b5b;
    border-left: 4px solid #c7a257;
    border-radius: 10px;
    background: #0a243c;
    box-shadow: 0 12px 28px rgba(6,29,50,.14);
}
.department-performance-entry:hover { border-color: #31536e; border-left-color: #d4b56f; box-shadow: 0 16px 34px rgba(6,29,50,.18); }
.department-performance-icon { color: #e2c47e; border: 1px solid rgba(214,180,107,.25); background: rgba(255,255,255,.065); }
.department-performance-copy > small { color: #d4b56f; }
.department-performance-copy > strong { color: #fff; }
.department-performance-copy p { color: #bdcad5; }
.department-performance-stats { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.045); }
.department-performance-stats > span + span { border-left-color: rgba(255,255,255,.12); }
.department-performance-stats small { color: #a9bac8; }
.department-performance-stats strong { color: #fff; }
.department-performance-stats em { color: #9eb1c1; }
.department-performance-action { color: #10283d; background: #d1ae66; }

.analytics-page-heading > div:first-child { padding-left: 18px; border-left: 3px solid #b88c3d; }
.analytics-page-heading h2 { color: #0b2840; font-weight: 800; letter-spacing: -.02em; }
.analytics-page-heading > div > p:last-child { color: #6b7987; }
.analytics-period-tabs { border-color: #cfd6dd; border-radius: 8px; background: #e8ecef; }
.analytics-period-tabs a { border-radius: 5px; color: #536474; }
.analytics-period-tabs a.active { color: #fff; background: #123f63; box-shadow: 0 4px 10px rgba(9,43,70,.16); }

.analytics-kpi-grid article { position: relative; min-height: 134px; overflow: hidden; border-top: 2px solid #173f60; }
.analytics-kpi-grid article::after { position: absolute; top: 0; right: 0; width: 42px; height: 2px; background: #c7a257; content: ""; }
.analytics-kpi-grid article:last-child { border-top-color: #b88c3d; }
.analytics-kpi-icon { color: #164f7c; border: 1px solid #dce4eb; background: #f0f4f7; }
.analytics-kpi-grid article:last-child .analytics-kpi-icon { color: #9b722c; border-color: #eadfc8; background: #faf5eb; }
.analytics-kpi-grid small { color: #5d6e7e; font-weight: 650; }
.analytics-kpi-grid strong { color: #0b2a43; font-size: 31px; font-weight: 800; }
.analytics-kpi-grid p { color: #798693; }

.analytics-trend-panel, .analytics-summary-panel, .employee-comparison-panel, .analytics-recent-panel { border-top: 2px solid #173f60; }
.analytics-summary-panel { border-top-color: #b88c3d; }
.chart-legend { color: #667786; }
.chart-legend i { border-radius: 1px; }.legend-call, .trend-call { background: #123f63; }
.legend-wechat, .trend-wechat { background: #c19a50; }
.trend-chart { border-bottom-color: #ccd4dc; background: #fafbfc; }
.trend-day { border-bottom-color: #e6e9ed; }
.trend-day > span { color: #6b7b89; }
.trend-values i { border-radius: 2px 2px 0 0; }
.analytics-empty-note { border-left-color: #b88c3d; color: #5f6f7e; background: #f8f5ee; }
.conversion-ring-track { stroke: #e4e8ec; }.conversion-ring-value { stroke: #b88c3d; }
.conversion-ring strong { color: #0b2b43; }
.conversion-ring-row { border-bottom-color: #dde2e7; }
.conversion-ring-row > div:last-child strong { color: #123550; }
.conversion-ring-row > div:last-child p { color: #6d7b88; }
.conversion-stats div { border-color: #dde2e7; border-radius: 7px; background: #f7f8f9; }
.conversion-stats span { color: #6a7886; }.conversion-stats strong { color: #123550; }

.employee-comparison-head { color: #6b7783; font-weight: 700; }
.employee-comparison-list { border-color: #d7dde3; border-radius: 8px; }
.employee-comparison-row { color: #334b5f; }
.employee-comparison-row + .employee-comparison-row { border-top-color: #e2e6ea; }
.employee-comparison-row:hover { background: #f6f8f9; }
.employee-comparison-row.active { background: #faf7f0; box-shadow: inset 4px 0 #b88c3d; }
.comparison-person > span > strong { color: #102d45; }
.comparison-person > span > small { color: #74828f; }
.comparison-volume > span { color: #607181; }.comparison-volume > span strong { color: #123f60; }
.comparison-volume > i { background: #e1e6ea; }.comparison-volume > i b { background: #174f78; }
.employee-comparison-row.active .comparison-volume > i b { background: #b88c3d; }
.employee-comparison-row > span:not(.comparison-person):not(.comparison-volume) strong { color: #143750; }
.comparison-signed .icon { color: #aa7d31; }

.table-wrap { border-radius: 7px; }
th { color: #44586a; border-bottom: 1px solid #d9dfe5; background: #eef1f3; font-weight: 750; }
td { color: #33495d; border-bottom-color: #e2e6ea; }
tbody tr:hover td { background: #f7f8f9; }
td > strong, .plain-strong { color: #102b42; }
.table-sub, .person-cell small { color: #768491; }
.badge-success, .badge-info { color: #174f78; background: #e9f0f4; }
.badge-warning { color: #795b23; background: #f7f0e2; }
.badge-neutral { color: #596876; background: #edf0f2; }

.section-tabs { border-color: #d1d8df; background: #e7ebee; }
.section-tabs a { color: #526271; }
.section-tabs a:hover { color: #123f63; background: rgba(255,255,255,.72); }
.section-tabs a.active { color: #fff; background: #123f63; box-shadow: 0 4px 10px rgba(9,43,70,.14); }
.section-tabs a span { color: #795b23; background: #f5ead5; }
.tele-stat.active { border-color: #c7b17f; background: #fdfbf7; }
.tele-stat.active::before { background: #b88c3d; }
.tele-stat span { color: #5c6c7b; }.tele-stat strong { color: #0d2b43; }.tele-stat small { color: #73808d; }
.tele-rule-bar, .batch-claim-bar { border-color: #d9d3c7; border-left-color: #b88c3d; background: #faf8f3; }
.tele-rule-bar .icon { color: #a77b30; }
.tag-list span { color: #174f78; border: 1px solid #dce4e9; background: #f1f5f7; }

input, select, textarea { border-color: #ccd4dc; border-radius: 7px; color: #142f46; }
input:focus, select:focus, textarea:focus { border-color: #245f8a; box-shadow: 0 0 0 3px rgba(36,95,138,.12); }
label { color: #405466; }
.scope-option input:checked + span { border-color: #b88c3d; background: #faf6ee; box-shadow: inset 0 0 0 1px #b88c3d; }

.customer-detail-heading { border-left: 4px solid #b88c3d; }
.customer-detail-title h2, .tag-editor h3, .detail-action-panel h3, .lead-summary-card h3 { color: #0d2941; }
.customer-info-grid, .profile-field-grid { border-color: #d5dce2; }
.customer-info-grid > div, .profile-field-grid > div { border-color: #dde2e7; }
.customer-info-grid dt, .profile-field-grid dt { color: #697988; }
.customer-info-grid dd, .profile-field-grid dd { color: #142f46; }
.lead-summary-card > p:not(.eyebrow), .case-facts, .signed-place { background: #f5f7f8; }
.history-persistence-note { border-left-color: #b88c3d; background: #faf7f0; }
.history-card { border-color: #d7dde3; border-left: 3px solid #d5ba82; }
.stage-strip { border-top: 2px solid #173f60; }
.stage-strip .complete span { border-color: #123f63; background: #123f63; }
.stage-strip .current span { color: #76571e; border-color: #d8bd83; background: #faf3e5; }

.settings-intro { border-left: 4px solid #b88c3d; }
.settings-intro > div:first-child { color: #9c722a; background: #f8f1e4; }
.security-callout { border-color: #ded5c1; color: #635333; background: #faf7f0; }
.modal { border-radius: 10px; }.modal::backdrop { background: rgba(4,19,34,.66); }
.modal-card { border-top: 3px solid #b88c3d; }
.form-section h4 { color: #9b722c; }

.account-trigger:hover, .account-menu[open] .account-trigger { border-color: #d5d9dd; background: #f7f8f9; box-shadow: 0 5px 14px rgba(7,28,49,.07); }
.account-dropdown { border-color: #cfd6dc; border-radius: 10px; box-shadow: 0 18px 42px rgba(5,23,41,.2); }
.account-profile-hero { border-bottom-color: #1f405a; background: #0a243c; }
.account-profile-hero > div strong { color: #fff; }.account-profile-hero > div small { color: #adbdca; }
.account-role-pill { color: #e1c37e; border-color: rgba(209,174,102,.35); background: rgba(255,255,255,.06); }
.account-avatar-large { color: #0d2941; background: #d1ae66; box-shadow: none; }
.account-menu-item:hover { background: #f5f6f7; }
.account-menu-item > .icon { color: #174f78; }.account-menu-item > .icon:first-child { background: #edf2f5; }

.login-body { background: #eef1f3; }
.login-story { background: #071c31; }
.login-story::before { border-color: rgba(209,174,102,.18); box-shadow: 0 0 0 95px rgba(209,174,102,.035), 0 0 0 190px rgba(255,255,255,.018); }
.login-story::after { background: radial-gradient(circle, rgba(184,140,61,.22), rgba(7,28,49,0) 68%); }
.login-panel { background: #f7f8f9; }
.login-form-wrap h2 { color: #0d2941; }
.demo-accounts button { color: #174f78; }

@media (max-width: 650px) {
    .brand { border-bottom: 0; }
    .department-performance-entry { border-left-width: 3px; }
    .analytics-page-heading > div:first-child { padding-left: 14px; }
}

/* Google-blue direction requested for the CRM interface */
:root {
    --ink: #202124;
    --muted: #5f6368;
    --deep: #174ea6;
    --deep-2: #1a73e8;
    --green: #1a73e8;
    --green-bright: #4285f4;
    --green-soft: #e8f0fe;
    --gold: #4285f4;
    --gold-soft: #e8f0fe;
    --blue: #1a73e8;
    --blue-soft: #e8f0fe;
    --red: #d93025;
    --red-soft: #fce8e6;
    --surface: #ffffff;
    --canvas: #f7f9fc;
    --line: #dadce0;
    --shadow: 0 4px 16px rgba(60,64,67,.09);
    --radius: 12px;
}

::selection { color: #fff; background: #4285f4; }
.sidebar { border-right-color: #174ea6; background: #174ea6; box-shadow: 8px 0 26px rgba(23,78,166,.14); }
.brand { border-bottom-color: rgba(255,255,255,.18); }
.brand::after { background: #8ab4f8; }
.nav-group > p, .main-nav > p { color: #c7d9f7; }
.main-nav a { color: #e2ebfb; }
.main-nav a:hover { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.10); }
.main-nav a.active { border-color: rgba(255,255,255,.20); background: rgba(255,255,255,.16); box-shadow: inset 3px 0 #fff; }
.main-nav a.active .icon { color: #fff; }
.sidebar-card { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.10); }
.sidebar-card strong { color: #fff; }.sidebar-card small { color: #d2e3fc; }
.live-dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.16); }

.topbar { border-bottom-color: #e0e3e7; background: rgba(255,255,255,.98); box-shadow: 0 2px 10px rgba(60,64,67,.05); }
.topbar h1, .welcome-row h2, .page-heading h2 { color: #202124; }
.topbar p, .welcome-row p:last-child, .page-heading > div > p:last-child { color: #5f6368; }
.privacy-pill { border-color: #d2e3fc; color: #174ea6; background: #f6f9fe; }
.avatar { color: #fff; background: #4285f4; }
.eyebrow { color: #1a73e8; }
.back-link, .text-button, .panel-head a, .customer-link { color: #1a73e8; }

.button-primary { border-color: #1a73e8; background: #1a73e8; box-shadow: 0 4px 10px rgba(26,115,232,.22); }
.button-primary:hover { border-color: #185abc; background: #185abc; }
.button-secondary { color: #1a73e8; border-color: #c6dafc; background: #fff; }
.button-secondary:hover { color: #174ea6; border-color: #8ab4f8; background: #f8faff; }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline-color: rgba(66,133,244,.30); }

.panel, .assignment-card, .case-card, .tele-stat,
.customer-detail-heading, .analytics-kpi-grid article, .metric-card {
    border-color: #dadce0;
    box-shadow: var(--shadow);
}
.panel-head h3, td > strong, .plain-strong { color: #202124; }
.metric-card { border-top-color: #4285f4; }
.metric-card:hover { border-color: #aeb8c4; border-top-color: #1a73e8; box-shadow: 0 9px 24px rgba(60,64,67,.13); }
.metric-card p { color: #5f6368; }.metric-card strong { color: #202124; }.metric-card small { color: #777c83; }
.metric-icon { color: #1a73e8; border-color: #d2e3fc; background: #e8f0fe !important; }
.metric-arrow { color: #4285f4; }

.department-scope-banner { border-color: #d2e3fc; border-left-color: #4285f4; background: #fff; }
.department-scope-banner > div, .department-scope-banner span strong { color: #174ea6; }
.department-scope-banner span small, .department-scope-banner dt { color: #5f6368; }
.department-scope-banner dl div { border-left-color: #e0e3e7; }
.department-scope-banner dd { color: #202124; }

.department-performance-entry { border-color: #1a73e8; border-left-color: #8ab4f8; background: #1a73e8; box-shadow: 0 10px 26px rgba(26,115,232,.20); }
.department-performance-entry:hover { border-color: #4285f4; border-left-color: #d2e3fc; box-shadow: 0 14px 32px rgba(26,115,232,.26); }
.department-performance-icon { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.14); }
.department-performance-copy > small { color: #d2e3fc; }
.department-performance-copy p { color: #e8f0fe; }
.department-performance-stats { border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.12); }
.department-performance-stats > span + span { border-left-color: rgba(255,255,255,.22); }
.department-performance-stats small, .department-performance-stats em { color: #d2e3fc; }
.department-performance-action { color: #174ea6; background: #fff; }

.analytics-page-heading > div:first-child { border-left-color: #4285f4; }
.analytics-page-heading h2 { color: #202124; }
.analytics-page-heading > div > p:last-child { color: #5f6368; }
.analytics-period-tabs { border-color: #dadce0; background: #eef1f5; }
.analytics-period-tabs a { color: #5f6368; }
.analytics-period-tabs a.active { color: #fff; background: #1a73e8; box-shadow: 0 3px 9px rgba(26,115,232,.22); }
.analytics-kpi-grid article { border-top-color: #4285f4; }
.analytics-kpi-grid article::after { background: #8ab4f8; }
.analytics-kpi-grid article:last-child { border-top-color: #4285f4; }
.analytics-kpi-icon, .analytics-kpi-grid article:last-child .analytics-kpi-icon { color: #1a73e8; border-color: #d2e3fc; background: #e8f0fe; }
.analytics-kpi-grid small { color: #5f6368; }.analytics-kpi-grid strong { color: #202124; }.analytics-kpi-grid p { color: #777c83; }
.analytics-trend-panel, .analytics-summary-panel, .employee-comparison-panel, .analytics-recent-panel { border-top-color: #4285f4; }
.analytics-summary-panel { border-top-color: #8ab4f8; }
.legend-call, .trend-call { background: #1a73e8; }.legend-wechat, .trend-wechat { background: #8ab4f8; }
.analytics-empty-note { border-left-color: #4285f4; color: #5f6368; background: #f4f7fe; }
.conversion-ring-value { stroke: #4285f4; }
.conversion-ring strong, .conversion-ring-row > div:last-child strong, .conversion-stats strong { color: #202124; }

.employee-comparison-row:hover { background: #f7f9fc; }
.employee-comparison-row.active { background: #e8f0fe; box-shadow: inset 4px 0 #4285f4; }
.comparison-person > span > strong, .employee-comparison-row > span:not(.comparison-person):not(.comparison-volume) strong { color: #202124; }
.comparison-volume > span strong { color: #174ea6; }
.comparison-volume > i b, .employee-comparison-row.active .comparison-volume > i b { background: #4285f4; }
.comparison-signed .icon { color: #1a73e8; }

th { color: #4c5663; border-bottom-color: #dadce0; background: #f1f3f4; }
td { color: #3c4043; border-bottom-color: #e5e8eb; }
tbody tr:hover td { background: #f8fafd; }
.badge-success, .badge-info { color: #174ea6; background: #e8f0fe; }
.badge-warning { color: #6b5b24; background: #fef7e0; }

.section-tabs { border-color: #dadce0; background: #eef1f5; }
.section-tabs a { color: #5f6368; }.section-tabs a:hover { color: #1a73e8; background: #fff; }
.section-tabs a.active { color: #fff; background: #1a73e8; box-shadow: 0 3px 9px rgba(26,115,232,.18); }
.section-tabs a span { color: #174ea6; background: #d2e3fc; }
.tele-stat.active { border-color: #8ab4f8; background: #f8faff; }.tele-stat.active::before { background: #4285f4; }
.tele-rule-bar, .batch-claim-bar { border-color: #d2e3fc; border-left-color: #4285f4; background: #f5f8fe; }
.tele-rule-bar .icon { color: #1a73e8; }
.tag-list span { color: #174ea6; border-color: #d2e3fc; background: #eef4ff; }

input:focus, select:focus, textarea:focus { border-color: #4285f4; box-shadow: 0 0 0 3px rgba(66,133,244,.14); }
.scope-option input:checked + span { border-color: #4285f4; background: #e8f0fe; box-shadow: inset 0 0 0 1px #4285f4; }
.customer-detail-heading, .settings-intro { border-left-color: #4285f4; }
.history-persistence-note { border-left-color: #4285f4; background: #f4f7fe; }
.history-card { border-left-color: #8ab4f8; }
.stage-strip { border-top-color: #4285f4; }
.stage-strip .complete span { border-color: #1a73e8; background: #1a73e8; }
.stage-strip .current span { color: #174ea6; border-color: #8ab4f8; background: #e8f0fe; }
.settings-intro > div:first-child { color: #1a73e8; background: #e8f0fe; }
.security-callout { border-color: #d2e3fc; color: #174ea6; background: #f4f7fe; }
.modal-card { border-top-color: #4285f4; }.form-section h4 { color: #1a73e8; }

.account-profile-hero { border-bottom-color: #3f7bd5; background: #1a73e8; }
.account-profile-hero > div small { color: #d2e3fc; }
.account-role-pill { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.14); }
.account-avatar-large { color: #1a73e8; background: #fff; }
.account-menu-item > .icon { color: #1a73e8; }.account-menu-item > .icon:first-child { background: #e8f0fe; }

.login-body { background: #f1f4f9; }
.login-story { background: #174ea6; }
.login-story::before { border-color: rgba(255,255,255,.20); box-shadow: 0 0 0 95px rgba(255,255,255,.045), 0 0 0 190px rgba(255,255,255,.025); }
.login-story::after { background: radial-gradient(circle, rgba(138,180,248,.40), rgba(23,78,166,0) 68%); }
.login-form-wrap h2 { color: #202124; }.demo-accounts button { color: #1a73e8; }

/* Unified low-noise layout: one accent, one surface system, one interaction language */
:root {
    --canvas: #f8f9fa;
    --line: #e0e3e7;
    --shadow: 0 1px 2px rgba(60,64,67,.08);
    --radius: 8px;
}

body { color: #202124; background: #f8f9fa; }
.sidebar {
    padding-top: 22px;
    color: #3c4043;
    border-right: 1px solid #e0e3e7;
    background: #fff;
    box-shadow: none;
}
.brand {
    height: 104px;
    margin: -22px -17px 0;
    padding: 0 19px;
    border: 0;
    background: #1a73e8;
}
.brand::after { display: none; }
.main-nav { margin-top: 23px; }
.nav-group + .nav-group { margin-top: 18px; }
.nav-group > p, .main-nav > p { color: #80868b; font-size: 11px; font-weight: 650; letter-spacing: .09em; }
.main-nav a { height: 46px; color: #4f5964; border-color: transparent; border-radius: 6px; font-weight: 600; }
.main-nav a:hover { color: #202124; border-color: transparent; background: #f1f3f4; }
.main-nav a.active { color: #174ea6; border-color: transparent; background: #e8f0fe; box-shadow: none; }
.main-nav a.active .icon { color: #1a73e8; }
.sidebar-card { color: #3c4043; border-color: #d2e3fc; border-radius: 7px; background: #f4f7fe; }
.sidebar-card strong { color: #174ea6; }.sidebar-card small { color: #68737f; }
.live-dot { background: #4285f4; box-shadow: 0 0 0 3px rgba(66,133,244,.13); }

.topbar { height: 72px; border-bottom-color: #e0e3e7; box-shadow: none; }
.content { min-height: calc(100vh - 72px); padding-top: 30px; }
.eyebrow { margin-bottom: 5px; color: #5f6368; font-size: 10px; letter-spacing: .10em; }
.welcome-row, .page-heading { margin-bottom: 23px; }
.welcome-row h2, .page-heading h2 { font-size: clamp(28px, 2.7vw, 34px); }

.button { border-radius: 6px; box-shadow: none; }
.button:hover { transform: none; }
.button-primary { border-color: #1a73e8; background: #1a73e8; box-shadow: none; }
.button-primary:hover { border-color: #185abc; background: #185abc; }
.button-secondary { border-color: #dadce0; background: #fff; }
.button-secondary:hover { border-color: #aecbfa; background: #f8fbff; }

.panel, .assignment-card, .case-card, .tele-stat,
.customer-detail-heading, .metric-card, .analytics-kpi-grid article {
    border: 1px solid #e0e3e7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(60,64,67,.07);
}
.panel-head { margin-bottom: 16px; }
.panel-head h3 { font-size: 18px; font-weight: 700; }
.panel-note { color: #80868b; }

.metric-grid { gap: 14px; }
.metric-card { min-height: 136px; padding: 21px; border-top-width: 1px; }
.metric-card::after { display: none; }
.metric-card:hover { border-color: #c5cbd2; box-shadow: 0 2px 8px rgba(60,64,67,.10); transform: translateY(-1px); }
.metric-card p { color: #5f6368; font-size: 13px; }
.metric-card strong { color: #202124; font-size: 32px; }
.metric-card small { color: #80868b; font-size: 11px; }
.metric-icon { width: 42px; height: 42px; border: 0; border-radius: 7px; background: #e8f0fe !important; }

.department-scope-banner {
    margin-bottom: 16px;
    padding: 14px 17px;
    border: 1px solid #e0e3e7;
    border-left-width: 1px;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}
.department-performance-entry {
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 20px;
    color: inherit;
    border: 1px solid #e0e3e7;
    border-left-width: 1px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(60,64,67,.07);
}
.department-performance-entry:hover { border-color: #aecbfa; box-shadow: 0 2px 9px rgba(60,64,67,.11); transform: translateY(-1px); }
.department-performance-icon { width: 46px; height: 46px; color: #1a73e8; border: 0; border-radius: 7px; background: #e8f0fe; }
.department-performance-copy > small { color: #1a73e8; }
.department-performance-copy > strong { color: #202124; font-size: 18px; }
.department-performance-copy p { color: #5f6368; }
.department-performance-stats { border: 0; border-radius: 7px; background: #f8f9fa; }
.department-performance-stats > span { padding-block: 10px; }
.department-performance-stats > span + span { border-left-color: #e0e3e7; }
.department-performance-stats small { color: #6f767d; }
.department-performance-stats strong { color: #202124; }
.department-performance-stats em { color: #6f767d; }
.department-performance-action { min-height: 40px; color: #fff; border-radius: 6px; background: #1a73e8; }

.analytics-page-heading { margin-bottom: 21px; }
.analytics-page-heading > div:first-child { padding-left: 0; border-left: 0; }
.analytics-page-heading .back-link { margin-bottom: 13px; }
.analytics-page-heading h2 { color: #202124; font-size: clamp(28px, 2.8vw, 35px); }
.analytics-period-tabs { padding: 3px; border-color: #e0e3e7; border-radius: 7px; background: #fff; }
.analytics-period-tabs a { min-height: 36px; border-radius: 5px; }
.analytics-period-tabs a.active { color: #174ea6; background: #e8f0fe; box-shadow: none; }

.analytics-kpi-grid { gap: 12px; margin-bottom: 16px; }
.analytics-kpi-grid article { min-height: 120px; padding: 18px; border-top-width: 1px; }
.analytics-kpi-grid article::after { display: none; }
.analytics-kpi-icon, .analytics-kpi-grid article:last-child .analytics-kpi-icon { width: 38px; height: 38px; border: 0; border-radius: 7px; }
.analytics-kpi-grid small { font-size: 11px; }
.analytics-kpi-grid strong { margin-top: 4px; font-size: 28px; }
.analytics-main-grid { gap: 16px; margin-bottom: 16px; }
.analytics-trend-panel, .analytics-summary-panel, .employee-comparison-panel, .analytics-recent-panel { padding: 21px; border-top-width: 1px; }
.trend-chart { background: #fff; }
.legend-call, .trend-call { background: #1a73e8; }
.legend-wechat, .trend-wechat { background: #9bbcf3; }
.analytics-empty-note { border-left-width: 3px; background: #f6f8fc; }
.conversion-stats div { border-radius: 6px; background: #f8f9fa; }

.employee-comparison-panel { margin-bottom: 16px; }
.employee-comparison-head { padding-inline: 13px; }
.employee-comparison-list { border-color: #e0e3e7; border-radius: 7px; }
.employee-comparison-row { min-height: 72px; padding: 11px 13px; }
.employee-comparison-row:hover { background: #f8f9fa; }
.employee-comparison-row.active { background: #eef4ff; box-shadow: inset 3px 0 #4285f4; }

.table-panel { padding: 21px 21px 8px; }
th { padding: 11px 13px; color: #5f6368; border-bottom: 1px solid #e0e3e7; background: #f8f9fa; font-size: 12px; }
td { padding: 14px 13px; color: #3c4043; }
tbody tr:hover td { background: #f8f9fa; }
.badge { border-radius: 5px; }

.section-tabs { padding: 4px; border-color: #e0e3e7; border-radius: 7px; background: #fff; }
.section-tabs a { min-height: 38px; border-radius: 5px; }
.section-tabs a.active { color: #174ea6; background: #e8f0fe; box-shadow: none; }
.tele-stat { min-height: 126px; padding: 19px; }
.tele-stat.active { border-color: #aecbfa; background: #f8fbff; }
.tele-stat.active::before { width: 3px; background: #4285f4; }
.tele-rule-bar, .batch-claim-bar { border-color: #d2e3fc; background: #f6f8fc; }

.customer-detail-heading { padding: 18px 21px 20px; border-left-width: 1px; }
.history-card { border-left-width: 1px; }
.settings-intro { border-left-width: 1px; }
.stage-strip { border-top-width: 1px; box-shadow: 0 1px 2px rgba(60,64,67,.07); }
.modal-card { border-top: 0; }

.account-dropdown { border-radius: 8px; box-shadow: 0 8px 28px rgba(60,64,67,.18); }
.account-profile-hero { border-bottom-color: #e0e3e7; background: #f8fbff; }
.account-profile-hero > div strong { color: #202124; }
.account-profile-hero > div small { color: #5f6368; }
.account-role-pill { color: #174ea6; border-color: #d2e3fc; background: #e8f0fe; }
.account-avatar-large { color: #fff; background: #4285f4; }

@media (max-width: 650px) {
    .brand { margin-top: -22px; border-bottom: 0; }
    .department-performance-entry { border-left-width: 1px; }
}

/* Final restrained law-firm theme: Google blue is an accent, not the page background */
:root {
    --ink: #17202a;
    --muted: #66717f;
    --deep: #0b2239;
    --deep-2: #102f4d;
    --green: #4285f4;
    --green-bright: #4285f4;
    --green-soft: #eaf2ff;
    --blue: #4285f4;
    --blue-soft: #eaf2ff;
    --surface: #ffffff;
    --canvas: #f5f7fa;
    --line: #dde3ea;
    --shadow: 0 2px 8px rgba(21,45,72,.055);
}

body { color: var(--ink); background: var(--canvas); }
.sidebar {
    padding: 22px 17px 18px;
    color: #dce6ef;
    border-right: 1px solid #183b5c;
    background: #0b2239;
    box-shadow: 6px 0 20px rgba(9,31,52,.08);
}
.brand {
    height: 84px;
    margin: 0;
    padding: 0 3px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: transparent;
}
.main-nav { margin-top: 17px; }
.nav-group > p, .main-nav > p { color: #7f98ae; }
.main-nav a { color: #b8c9d8; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.main-nav a.active { color: #fff; background: #143a5b; box-shadow: inset 3px 0 #4285f4; }
.main-nav a.active .icon { color: #8ab4f8; }
.sidebar-card { color: #dce6ef; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.045); }
.sidebar-card strong { color: #eef4f9; }.sidebar-card small { color: #8fa6ba; }
.live-dot { background: #62a0ff; box-shadow: 0 0 0 3px rgba(98,160,255,.15); }

.topbar { color: #17202a; border-bottom-color: #e0e5eb; background: #fff; }
.topbar h1 { color: #17202a; }
.content { background: transparent; }
.privacy-pill { color: #315f9f; border-color: #d8e4f8; background: #f7faff; }
.eyebrow { color: #4b6685; }

.button-primary { color: #fff; border-color: #4285f4; background: #4285f4; }
.button-primary:hover { border-color: #2f6fdb; background: #2f6fdb; }
.button-secondary { color: #356ab8; border-color: #d2dbe7; background: #fff; }
.button-secondary:hover { border-color: #a9c5ee; background: #f7faff; }

.panel, .assignment-card, .case-card, .tele-stat,
.customer-detail-heading, .metric-card, .analytics-kpi-grid article {
    border-color: #dde3ea;
    background: #fff;
    box-shadow: var(--shadow);
}
.metric-icon, .analytics-kpi-icon, .analytics-kpi-grid article:last-child .analytics-kpi-icon { color: #356fc5; background: #edf4ff !important; }
.metric-card:hover { border-color: #c5d1df; }

.department-scope-banner { border-color: #dde3ea; background: #fff; }
.department-performance-entry { border-color: #d9e1e9; background: #fff; }
.department-performance-entry:hover { border-color: #a9c5ee; }
.department-performance-icon { color: #356fc5; background: #edf4ff; }
.department-performance-copy > small { color: #4971a8; }
.department-performance-stats { background: #f6f8fa; }
.department-performance-action { color: #fff; background: #4285f4; }

.analytics-period-tabs a.active, .section-tabs a.active { color: #275fae; background: #eaf2ff; }
.employee-comparison-row.active { background: #f0f5fd; box-shadow: inset 3px 0 #4285f4; }
.comparison-volume > i b, .employee-comparison-row.active .comparison-volume > i b { background: #4285f4; }
.legend-call, .trend-call { background: #4285f4; }.legend-wechat, .trend-wechat { background: #9cbcf0; }
.conversion-ring-value { stroke: #4285f4; }

.account-profile-hero { border-bottom-color: #dde3ea; background: #f5f8fc; }
.account-profile-hero > div strong { color: #17202a; }.account-profile-hero > div small { color: #66717f; }
.account-role-pill { color: #356ab8; border-color: #cfe0f8; background: #eaf2ff; }
.account-avatar-large { color: #fff; background: #4285f4; }

.login-story { background: #0b2239; }
.login-story::after { background: radial-gradient(circle, rgba(66,133,244,.38), rgba(11,34,57,0) 68%); }

@media (max-width: 650px) {
    .brand { margin: 0; }
}

/* 案件登记台账 */
.case-register-page-heading { margin-bottom: 20px; }
.case-register-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.case-register-metrics > a {
    display: grid;
    min-height: 126px;
    padding: 20px;
    color: #17202a;
    border: 1px solid #dde3ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow);
    transition: border-color .18s ease, transform .18s ease;
}
.case-register-metrics > a:hover { border-color: #a9c5ee; transform: translateY(-1px); }
.case-register-metrics span { color: #5f6368; font-size: 13px; }
.case-register-metrics strong { align-self: center; color: #1a73e8; font-size: 29px; line-height: 1; }
.case-register-metrics small { align-self: end; color: #80868b; }
.case-register-filter { padding-bottom: 0; }
.case-register-filter .filter-row { flex-wrap: wrap; align-items: center; }
.case-register-filter .search-input { flex: 1 0 100%; width: 100%; min-height: 48px; }
.case-register-filter .search-input input { min-height: 48px; padding-left: 42px; font-size: 14px; }
.case-register-filter .search-input .icon { left: 14px; width: 17px; }
.case-register-filter select { flex: 0 1 176px; width: auto; min-width: 150px; }
.case-register-result-count { padding: 0 0 13px; color: #6d7783; font-size: 12px; }.case-register-result-count strong { color: #202124; }
.quality-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 11px; color: #5f6368; white-space: nowrap; border: 1px solid #d9dfe7; border-radius: 6px; background: #fff; font-size: 12px; }
.quality-filter input { width: 15px; height: 15px; margin: 0; accent-color: #4285f4; }
.quality-text { color: #b06000 !important; font-weight: 700; }
.case-register-import-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 13px 16px; color: #805000; border: 1px solid #f0d49a; border-radius: 9px; background: #fffaf0; }
.case-register-import-summary > .icon:first-child { width: 19px; height: 19px; flex: 0 0 auto; }
.case-register-import-summary span { display: grid; flex: 1; gap: 3px; }
.case-register-import-summary strong { color: #7a4b00; font-size: 13px; }
.case-register-import-summary small { color: #8b6a2f; }
.case-register-import-summary > .icon:last-child { width: 16px; }
.case-register-table { min-width: 1120px; }
.case-register-table td { vertical-align: top; }
.register-number { color: #174ea6; font-size: 15px; letter-spacing: .04em; }
.register-number.pending { color: #a05a00; letter-spacing: 0; }
.line-clamp { display: -webkit-box; max-width: 270px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

.case-register-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin: 14px 0 20px;
    padding: 2px 0;
}
.case-register-title { display: flex; align-items: center; gap: 12px; margin-top: 5px; }
.case-register-title h2 { margin: 0; color: #17202a; font-size: 34px; letter-spacing: -.02em; }
.case-register-hero > div > p:last-child { margin: 9px 0 0; color: #66717f; }
.case-register-number-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 17px 19px;
    color: #174ea6;
    border: 1px solid #aecbfa;
    border-radius: 10px;
    background: #f4f8ff;
}
.case-register-number-banner > div { display: flex; align-items: center; gap: 13px; }
.case-register-number-banner .icon { width: 24px; height: 24px; }
.case-register-number-banner span { display: grid; gap: 4px; }
.case-register-number-banner strong { color: #174ea6; font-size: 14px; }
.case-register-number-banner small { color: #5b7090; }
.case-register-quality-note { display: flex; gap: 12px; margin-bottom: 18px; padding: 14px 17px; color: #8a5200; border: 1px solid #f0d49a; border-radius: 9px; background: #fffaf0; }
.case-register-quality-note .icon { width: 20px; height: 20px; flex: 0 0 auto; }
.case-register-quality-note strong { color: #7a4b00; font-size: 14px; }
.case-register-quality-note p { margin: 4px 0 0; color: #805f2a; line-height: 1.55; }
.quality-review-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid #f0d49a; border-radius: 8px; background: #fffaf0; }
.quality-review-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: #4285f4; }
.quality-review-check span { display: grid; gap: 4px; }
.quality-review-check strong { color: #6f4800; font-size: 13px; }.quality-review-check small { color: #8b6a2f; font-weight: 400; }
.case-register-detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .72fr); gap: 18px; align-items: start; }
.case-register-detail-main, .case-register-detail-aside { display: grid; gap: 18px; }
.case-register-info-panel, .case-register-ledger, .case-register-status-card, .case-register-log-card { padding: 22px; }
.case-register-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid #e0e5eb; border-radius: 8px; overflow: hidden; }
.case-register-facts > div { min-height: 76px; padding: 15px 17px; border-right: 1px solid #e0e5eb; border-bottom: 1px solid #e0e5eb; }
.case-register-facts > div:nth-child(2n) { border-right: 0; }
.case-register-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
.case-register-facts > div.wide { grid-column: 1 / -1; border-right: 0; }
.case-register-facts dt, .case-register-status-card dt { margin-bottom: 7px; color: #7a8592; font-size: 12px; }
.case-register-facts dd, .case-register-status-card dd { margin: 0; color: #202124; font-weight: 650; line-height: 1.55; }
.case-register-notes { margin-top: 16px; padding: 15px 17px; border-radius: 8px; background: #f6f8fa; }
.case-register-notes strong { color: #3c4043; font-size: 13px; }
.case-register-notes p { margin: 7px 0 0; color: #5f6368; line-height: 1.7; }
.ledger-head-actions { display: flex; align-items: center; gap: 18px; }
.ledger-head-actions > strong { color: #1a73e8; font-size: 19px; }
.case-register-ledger .table-wrap { margin: 0 -22px -22px; }
.case-register-ledger table { min-width: 760px; }
.case-register-status-card > h3 { margin: 5px 0 17px; color: #202124; font-size: 18px; }
.case-register-status-card dl { margin: 0; }
.case-register-status-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px solid #edf0f3; }
.case-register-status-card dl > div:last-child { border-bottom: 0; }
.case-register-status-card dt { margin: 0; }
.case-register-log-card ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.case-register-log-card li { position: relative; display: grid; grid-template-columns: 13px 1fr; gap: 10px; padding: 8px 0 13px; }
.case-register-log-card li i { width: 8px; height: 8px; margin-top: 5px; border: 2px solid #fff; border-radius: 50%; background: #4285f4; box-shadow: 0 0 0 1px #aecbfa; }
.case-register-log-card li:not(:last-child)::before { position: absolute; top: 17px; bottom: -3px; left: 3px; width: 1px; content: ''; background: #dbe5f3; }
.case-register-log-card li div { display: grid; gap: 4px; }
.case-register-log-card li strong { color: #3c4043; font-size: 13px; line-height: 1.45; }
.case-register-log-card li small { color: #80868b; }
.case-register-log-card li.empty-log { display: block; color: #80868b; }

@media (max-width: 1050px) {
    .case-register-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .case-register-detail-grid { grid-template-columns: 1fr; }
    .case-register-detail-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .case-register-log-card { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
    .case-register-filter .filter-row { display: flex; align-items: stretch; flex-direction: column; }
    .case-register-filter .search-input, .case-register-filter select, .case-register-filter .quality-filter, .case-register-filter .button { width: 100%; min-width: 0; }
    .case-register-filter select { flex-basis: auto; }
    .case-register-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
    .case-register-metrics > a { min-height: 112px; padding: 16px; }
    .case-register-metrics strong { font-size: 24px; }
    .case-register-hero, .case-register-number-banner { align-items: flex-start; flex-direction: column; }
    .case-register-title h2 { font-size: 28px; }
    .case-register-number-banner form, .case-register-number-banner .button { width: 100%; }
    .case-register-facts { grid-template-columns: 1fr; }
    .case-register-facts > div, .case-register-facts > div:nth-child(2n), .case-register-facts > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid #e0e5eb; }
    .case-register-facts > div:last-child { border-bottom: 0; }
    .case-register-facts > div.wide { grid-column: auto; }
    .case-register-detail-aside { grid-template-columns: 1fr; }
    .case-register-log-card { grid-column: auto; }
}
