/* ==========================================================================
   心商客户线索公海流转分配平台 · 设计系统
   ========================================================================== */
:root {
    --ink: #0a1523;
    --ink-2: #0e1d30;
    --ink-3: #14263c;
    --teal: #17b8a6;
    --teal-deep: #0e8a83;
    --teal-soft: #e6faf7;
    --blue: #5b8def;
    --blue-soft: #eef3ff;
    --amber: #f5a524;
    --amber-soft: #fff7e6;
    --coral: #ef6f6c;
    --coral-soft: #fff0ef;
    --violet: #8b6cf6;
    --violet-soft: #f4f0ff;
    --green: #2ea36b;
    --green-soft: #eaf9f0;
    --gray: #7b8798;
    --gray-soft: #f1f4f8;
    --bg: #f2f5f9;
    --card: #ffffff;
    --text: #16202f;
    --muted: #6b7789;
    --line: #e7ecf3;
    --line-strong: #d8e0ea;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 6px 18px -12px rgba(11, 30, 54, .28);
    --shadow: 0 22px 48px -28px rgba(9, 27, 50, .38), 0 2px 8px rgba(9, 27, 50, .04);
    --shadow-lg: 0 40px 80px -36px rgba(6, 20, 38, .48), 0 4px 16px rgba(6, 20, 38, .06);
    --sidebar-w: 258px;
    --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}
body.app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 420px at 88% -8%, rgba(23, 184, 166, .10), transparent 62%),
        radial-gradient(700px 380px at 6% 100%, rgba(91, 141, 239, .08), transparent 60%);
    z-index: 0;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 13.5px; color: var(--text); }
img { max-width: 100%; }
::selection { background: rgba(23, 184, 166, .25); }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c9d3e0; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #aab8c9; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================ 布局 ============================ */
.app-shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    position: fixed;
    inset: 0 auto 0 0;
    background:
        radial-gradient(520px 280px at 18% 4%, rgba(23, 184, 166, .22), transparent 62%),
        radial-gradient(420px 320px at 100% 82%, rgba(91, 141, 239, .16), transparent 66%),
        linear-gradient(176deg, #0c1a2a 0%, #081420 55%, #07111c 100%);
    color: #dfe8f2;
    display: flex;
    flex-direction: column;
    padding: 22px 14px 16px;
    z-index: 40;
    overflow: hidden;
}
.sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
}
.sidebar > * { position: relative; z-index: 1; }

.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 20px; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 42px; filter: drop-shadow(0 8px 16px rgba(23, 184, 166, .34)); }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.brand-text strong { font-size: 17px; letter-spacing: .06em; color: #f2f8ff; font-weight: 700; white-space: nowrap; }
.brand-text em { font-style: normal; font-size: 8.5px; letter-spacing: .22em; color: rgba(159, 199, 214, .68); white-space: nowrap; }

.nav-caption { font-size: 10.5px; letter-spacing: .18em; color: rgba(148, 174, 196, .55); padding: 6px 12px 8px; }
.nav { flex: 1; overflow-y: auto; padding-bottom: 10px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); }

.nav-item {
    display: flex; align-items: center; gap: 11px;
    width: 100%;
    padding: 10px 12px;
    border: 0; background: transparent;
    color: rgba(203, 219, 233, .82);
    font-size: 13.5px;
    border-radius: 11px;
    text-align: left;
    transition: color .18s, background .18s, transform .18s;
    margin-bottom: 3px;
}
.nav-item i { width: 18px; text-align: center; font-size: 14px; color: rgba(143, 173, 197, .8); transition: color .18s; }
.nav-item:hover { background: rgba(255, 255, 255, .055); color: #fff; }
.nav-item.active {
    color: #06141f;
    background: linear-gradient(96deg, #38d9c4, #17b8a6 62%, #12a39a);
    box-shadow: 0 12px 24px -14px rgba(23, 184, 166, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
    font-weight: 600;
}
.nav-item.active i { color: #062b2c; }
.nav-item.active .nav-arrow { color: #062b2c; }

.nav-group { margin-bottom: 2px; }
.nav-toggle { position: relative; }
.nav-toggle .nav-ico { display: grid; place-items: center; }
.nav-toggle.active { background: rgba(255, 255, 255, .075); color: #fff; box-shadow: none; font-weight: 600; }
.nav-toggle.active i { color: var(--gc, var(--teal)); }
.nav-toggle.active .nav-arrow { color: rgba(255,255,255,.6); }
.nav-toggle.active::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 18px; border-radius: 0 3px 3px 0; background: var(--gc, var(--teal));
    box-shadow: 0 0 12px var(--gc, var(--teal));
}
.nav-arrow { margin-left: auto; font-size: 9px; transition: transform .22s; color: rgba(160, 186, 208, .6); }
.nav-group.open .nav-arrow { transform: rotate(180deg); }
.nav-sub {
    max-height: 0; overflow: hidden;
    transition: max-height .28s ease;
    margin: 0 0 4px 22px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, .09);
}
.nav-group.open .nav-sub { max-height: 260px; }
.nav-subitem {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 10px; margin: 3px 0;
    font-size: 12.8px; color: rgba(183, 203, 220, .76);
    border-radius: 8px;
    transition: background .18s, color .18s;
}
.nav-subitem i { font-size: 11px; width: 14px; text-align: center; opacity: .8; }
.nav-subitem:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-subitem.active { background: rgba(23, 184, 166, .14); color: #6ff0df; font-weight: 600; }
.nav-subitem.active i { opacity: 1; }

.sidebar-foot { padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); }
.side-pulse { display: flex; align-items: center; gap: 9px; padding: 10px 10px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .06); border-radius: 11px; }
.side-pulse .dot { width: 7px; height: 7px; border-radius: 50%; background: #3fe0c8; box-shadow: 0 0 0 4px rgba(63, 224, 200, .13); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.side-pulse strong { display: block; font-size: 11.5px; color: #d9edf5; font-weight: 600; }
.side-pulse small { font-size: 10px; color: rgba(157, 183, 203, .65); }
.side-meta { font-size: 9.5px; color: rgba(135, 158, 180, .5); padding: 10px 4px 0; letter-spacing: .02em; }

.app-main { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }
.topbar {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 18px;
    height: 68px; padding: 0 28px;
    background: rgba(250, 252, 255, .82);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(222, 231, 241, .8);
    transition: box-shadow .2s;
}
.topbar.scrolled { box-shadow: 0 14px 30px -26px rgba(9, 27, 50, .4); }
.menu-btn { display: none !important; }
.crumb { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #8a96a8; white-space: nowrap; overflow: hidden; }
.crumb span { overflow: hidden; text-overflow: ellipsis; }
.crumb b { color: #34425a; font-weight: 600; }
.crumb i { font-size: 8px; color: #b6c1cf; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.global-search {
    display: flex; align-items: center; gap: 8px;
    height: 38px; padding: 0 12px;
    width: 268px;
    background: #f3f6fa; border: 1px solid #e8eef5; border-radius: 11px;
    transition: border .18s, box-shadow .18s, background .18s;
}
.global-search:focus-within { background: #fff; border-color: rgba(23, 184, 166, .5); box-shadow: 0 0 0 4px rgba(23, 184, 166, .09); }
.global-search i { color: #9aa7b8; font-size: 12px; }
.global-search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 12.5px; min-width: 0; }
.global-search kbd { font-family: inherit; font-size: 9.5px; color: #9aa7b8; border: 1px solid #dfe6ef; background: #fff; border-radius: 5px; padding: 1px 5px; }

.icon-btn {
    width: 38px; height: 38px; border-radius: 11px;
    border: 1px solid #e8eef5; background: #fff;
    display: inline-grid; place-items: center;
    color: #61708a; font-size: 14px;
    transition: all .18s; position: relative;
}
.icon-btn:hover { color: var(--teal-deep); border-color: rgba(23, 184, 166, .4); background: var(--teal-soft); }
.icon-btn .badge {
    position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px; background: var(--coral); color: #fff; font-size: 9.5px;
    display: grid; place-items: center; border: 2px solid #fafcff;
}

.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 4px 4px 8px; border-radius: 12px; cursor: pointer; position: relative; transition: background .18s; }
.user-chip:hover { background: #f2f6fb; }
.user-chip > i { font-size: 9px; color: #9aa7b8; margin-right: 2px; }
.avatar {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
    display: inline-grid; place-items: center;
    background: linear-gradient(145deg, color-mix(in srgb, var(--av) 82%, #fff), var(--av));
    color: #fff; font-size: 13px; font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -8px var(--av);
}
.avatar.sm { width: 28px; height: 28px; flex-basis: 28px; border-radius: 9px; font-size: 11.5px; }
.avatar.lg { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; font-size: 16px; }
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-meta strong { font-size: 12.5px; font-weight: 600; }
.user-meta small { font-size: 10px; color: #8a96a8; }

.user-pop {
    position: absolute; right: 0; top: calc(100% + 12px); width: 278px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .2s; z-index: 60; overflow: hidden;
}
.user-chip.open .user-pop { opacity: 1; visibility: visible; transform: translateY(0); }
.user-pop-head { display: flex; gap: 11px; align-items: center; padding: 18px 18px 14px; background: linear-gradient(135deg, #f1fbfa, #f7faff); border-bottom: 1px solid var(--line); }
.user-pop-head strong { display: block; font-size: 14px; }
.user-pop-head small { color: var(--muted); font-size: 11px; }
.user-pop-body { padding: 10px 18px; }
.pop-row { display: flex; justify-content: space-between; font-size: 12px; padding: 6px 0; color: var(--muted); }
.pop-row b { color: var(--text); font-weight: 500; }
.pop-action { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 18px; border: 0; border-top: 1px solid var(--line); background: #fff; font-size: 12.5px; color: #47546a; text-align: left; }
.pop-action:hover { background: #f7fafc; color: var(--teal-deep); }
.pop-action.danger:hover { background: #fff6f5; color: var(--coral); }

.content { flex: 1; padding: 26px 30px 34px; max-width: 1640px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .16em; color: #93a1b4; text-transform: uppercase; margin-bottom: 7px; }
.eyebrow span { width: 16px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), rgba(23,184,166,.2)); }
.page-head h1 { font-size: 25px; font-weight: 700; letter-spacing: .01em; color: #101c2c; line-height: 1.25; }
.page-head p { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.app-foot { display: flex; justify-content: space-between; padding: 14px 30px 22px; font-size: 10.5px; color: #9aa6b7; border-top: 1px solid rgba(222, 231, 241, .7); }

/* ============================ 通用组件 ============================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 16px; border-radius: 10px;
    border: 1px solid transparent; font-size: 12.5px; font-weight: 600;
    transition: transform .16s, box-shadow .16s, background .16s, border .16s, color .16s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 12px; }
.btn-primary {
    background: linear-gradient(115deg, #23c9b5, #13a89b 70%, #0e948d);
    color: #fff; box-shadow: 0 12px 24px -14px rgba(16, 166, 153, .9), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover { box-shadow: 0 16px 30px -14px rgba(16, 166, 153, .95); filter: brightness(1.03); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: #4a586e; }
.btn-ghost:hover { border-color: #bccbdd; color: #1c2a3d; background: #fbfdff; }
.btn-soft { background: var(--teal-soft); color: var(--teal-deep); border-color: rgba(23,184,166,.16); }
.btn-soft:hover { background: #d9f6f1; }
.btn-danger { background: linear-gradient(115deg, #f4837f, #e25f5c); color: #fff; box-shadow: 0 12px 24px -15px rgba(226, 95, 92, .9); }
.btn-danger:hover { filter: brightness(1.03); }
.btn-dark { background: linear-gradient(115deg, #17293f, #0c1a2b); color: #fff; box-shadow: 0 12px 24px -16px rgba(10,25,42,.9); }
.btn-sm { height: 31px; padding: 0 11px; font-size: 11.5px; border-radius: 8px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 11px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn-link { border: 0; background: transparent; color: var(--teal-deep); font-size: 12px; font-weight: 600; padding: 4px 6px; border-radius: 6px; }
.btn-link:hover { background: var(--teal-soft); }
.btn-link.danger { color: var(--coral); }
.btn-link.danger:hover { background: var(--coral-soft); }
.btn-link.gray { color: #7b8798; }

.panel {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden;
}
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; }
.panel-title { display: flex; align-items: center; gap: 9px; }
.panel-title h3 { font-size: 14.5px; font-weight: 700; letter-spacing: .01em; }
.panel-title small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.panel-title .pt-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-deep); font-size: 13px; }
.panel-tools { display: flex; align-items: center; gap: 8px; }
.panel-body { padding: 0 20px 20px; }
.panel-body.pad { padding: 20px; }
.panel-body.flush { padding: 0 0 4px; }
.panel-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: #fbfdff; }

.chip {
    display: inline-flex; align-items: center; gap: 5px;
    height: 22px; padding: 0 8px; border-radius: 6px;
    font-size: 10.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .75; }
.chip-teal { color: #0c857c; background: #e5f9f5; }
.chip-blue { color: #3c6ed0; background: #ecf2ff; }
.chip-amber { color: #b5740a; background: #fff5e1; }
.chip-red { color: #cf4f4c; background: #fff0ef; }
.chip-green { color: #248553; background: #e8f8ef; }
.chip-gray { color: #6e7b8d; background: #f0f3f8; }
.chip-violet { color: #6a4fd8; background: #f2edff; }

.tag-pill { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 5px; font-size: 10px; font-weight: 500; color: var(--tc, #5b6577); background: color-mix(in srgb, var(--tc, #5b6577) 10%, #fff); white-space: nowrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }

/* 状态点 */
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; }
.status-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dc, #9aa7b8); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dc) 14%, transparent); }

/* ============================ 工作台 ============================ */
.hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 26px;
    padding: 26px 30px; margin-bottom: 20px;
    border-radius: 22px;
    background:
        radial-gradient(560px 260px at 92% 8%, rgba(35, 211, 189, .3), transparent 62%),
        radial-gradient(420px 260px at 8% 120%, rgba(91, 141, 239, .26), transparent 60%),
        linear-gradient(115deg, #0b1a2b, #0c2333 58%, #0a1c2b);
    color: #e8f3fa;
    box-shadow: 0 30px 60px -36px rgba(6, 25, 44, .8);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(600px 300px at 80% 30%, #000, transparent 72%);
}
.hero-main { position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .16em; color: rgba(146, 219, 213, .85); margin-bottom: 8px; }
.hero-kicker span { padding: 2px 7px; border-radius: 4px; background: rgba(23,184,166,.16); border: 1px solid rgba(23,184,166,.28); letter-spacing: .08em; }
.hero h2 { font-size: 23px; font-weight: 700; letter-spacing: .01em; }
.hero h2 em { font-style: normal; color: #5be4d0; }
.hero p { margin-top: 6px; font-size: 12.5px; color: rgba(186, 211, 226, .78); }
.hero-side { position: relative; z-index: 1; display: flex; gap: 10px; }
.hero-mini { min-width: 112px; padding: 12px 14px; border-radius: 13px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.hero-mini small { display: block; font-size: 10px; color: rgba(174, 207, 223, .7); }
.hero-mini strong { display: block; font-size: 19px; margin-top: 2px; color: #fff; letter-spacing: .02em; }
.hero-mini strong span { font-size: 10px; color: rgba(199, 229, 224, .75); font-weight: 400; margin-left: 3px; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 18px; }
.kpi {
    position: relative; overflow: hidden;
    padding: 18px 18px 15px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--kc, var(--teal)); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-label { font-size: 11.5px; color: var(--muted); }
.kpi-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; color: var(--kc, var(--teal)); background: color-mix(in srgb, var(--kc, var(--teal)) 11%, #fff); }
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 8px 0 3px; }
.kpi-value small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.kpi-foot { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #8a96a8; }
.kpi-trend { color: var(--green); font-weight: 600; }
.kpi-trend.down { color: var(--coral); }
.kpi-spark { position: absolute; right: 10px; bottom: 8px; opacity: .5; }

.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.chart-box { width: 100%; height: 270px; }
.chart-box.sm { height: 220px; }
.chart-box.lg { height: 330px; }

.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed #eef2f7; }
.feed-item:last-child { border-bottom: 0; }
.feed-ico { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; }
.feed-main { flex: 1; min-width: 0; }
.feed-main p { font-size: 12px; color: #3d4b62; line-height: 1.5; }
.feed-main p b { font-weight: 600; color: #16202f; }
.feed-main small { font-size: 10px; color: #9aa6b7; }

.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef2f7; }
.mini-row:last-child { border-bottom: 0; }
.mini-main { flex: 1; min-width: 0; }
.mini-main strong { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-main small { font-size: 10.5px; color: #8a96a8; }
.mini-side { font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; }

.task-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #eef2f7; }
.task-row:last-child { border-bottom: 0; }
.task-check { width: 17px; height: 17px; border: 1.5px solid #cfd8e4; border-radius: 5px; margin-top: 2px; cursor: pointer; flex: 0 0 17px; display: grid; place-items: center; color: transparent; font-size: 9px; transition: all .18s; }
.task-check:hover { border-color: var(--teal); }
.task-check.done { background: var(--teal); border-color: var(--teal); color: #fff; }
.task-main { flex: 1; min-width: 0; }
.task-main strong { display: block; font-size: 12.3px; font-weight: 500; }
.task-main small { font-size: 10.5px; color: #8a96a8; }
.task-due { font-size: 10px; color: #b5740a; background: #fff6e2; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }
.task-due.overdue { color: var(--coral); background: var(--coral-soft); }

.rank-mini { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.rank-no { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; background: #f2f5f9; color: #7b8798; }
.rank-no.top1 { background: linear-gradient(140deg, #ffe29a, #f5a524); color: #7a4a00; }
.rank-no.top2 { background: linear-gradient(140deg, #eef3f9, #c8d4e2); color: #4d5c70; }
.rank-no.top3 { background: linear-gradient(140deg, #ffd9c2, #e89b6d); color: #7a3d12; }
.rank-bar { flex: 1; height: 6px; border-radius: 6px; background: #f0f3f8; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #4be0cb, #17b8a6); }
.rank-amt { font-size: 11px; font-weight: 600; color: #34425a; width: 58px; text-align: right; }

/* ============================ 工具栏 / 筛选 ============================ */
.toolbar {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    padding: 14px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 15px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}
.toolbar .field-inline { display: flex; align-items: center; gap: 6px; }
.search-box { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: #f6f8fb; border: 1px solid #e8edf4; border-radius: 9px; min-width: 230px; }
.search-box:focus-within { background: #fff; border-color: rgba(23,184,166,.55); box-shadow: 0 0 0 3px rgba(23,184,166,.09); }
.search-box i { color: #9aa7b8; font-size: 11.5px; }
.search-box input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 12.5px; }
.toolbar .select, .toolbar .input { height: 36px; }
.toolbar-spacer { flex: 1; }
.filter-count { font-size: 11px; color: #8a96a8; }

.select, .input, .textarea {
    width: 100%; height: 38px; padding: 0 11px;
    background: #fff; border: 1px solid var(--line-strong); border-radius: 9px;
    outline: 0; transition: border .18s, box-shadow .18s; font-size: 12.5px;
}
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239aa7b8' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 28px; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(23,184,166,.65); box-shadow: 0 0 0 3.5px rgba(23,184,166,.1); }
.textarea { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: #a8b3c2; }

.segmented { display: inline-flex; padding: 3px; background: #f1f4f9; border-radius: 10px; gap: 2px; }
.segmented button { border: 0; background: transparent; height: 30px; padding: 0 13px; border-radius: 8px; font-size: 11.5px; color: #6b7789; font-weight: 500; }
.segmented button.active { background: #fff; color: #17263a; font-weight: 600; box-shadow: 0 3px 8px -3px rgba(15,35,60,.18); }

.view-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.view-switch button { width: 36px; height: 34px; border: 0; background: #fff; color: #93a1b4; font-size: 12px; }
.view-switch button.active { background: var(--teal-soft); color: var(--teal-deep); }
.view-switch button + button { border-left: 1px solid var(--line); }

/* ============================ 表格 ============================ */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.data-table th {
    text-align: left; font-size: 10.5px; letter-spacing: .04em; font-weight: 600;
    color: #8491a3; background: #f8fafc;
    padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
    position: sticky; top: 0; z-index: 2;
}
.data-table th:first-child { border-radius: 9px 0 0 9px; }
.data-table th:last-child { border-radius: 0 9px 9px 0; }
.data-table td { padding: 12px; border-bottom: 1px solid #f0f3f8; vertical-align: middle; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: #fafcfe; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table .cell-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.data-table .cell-main .txt { min-width: 0; }
.data-table .cell-main strong, .data-table .cell-main a { display: block; font-size: 12.5px; font-weight: 600; color: #1c2b3f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.data-table .cell-main a:hover { color: var(--teal-deep); }
.data-table .cell-main small { display: block; font-size: 10.5px; color: #93a1b4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.data-table .num { font-variant-numeric: tabular-nums; font-weight: 600; }
.data-table .actions { display: flex; gap: 2px; white-space: nowrap; }
.checkbox { width: 15px; height: 15px; border-radius: 4px; accent-color: var(--teal); cursor: pointer; }
.row-check { width: 30px; }

.score-badge {
    --p: 60; --c: #17b8a6;
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: conic-gradient(var(--c) calc(var(--p) * 1%), #edf1f6 0);
    position: relative;
}
.score-badge::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.score-badge span { position: relative; font-size: 10.5px; font-weight: 700; color: var(--c); }

.empty { padding: 46px 20px; text-align: center; color: #93a1b4; }
.empty i { font-size: 30px; color: #cfd8e4; display: block; margin-bottom: 10px; }
.empty p { font-size: 12.5px; }

.bulk-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; background: linear-gradient(100deg, #0d2033, #123044); color: #dfeaf3; border-radius: 12px; box-shadow: 0 16px 30px -22px rgba(7,24,42,.7); }
.bulk-bar strong { font-size: 12px; color: #fff; }
.bulk-bar .btn { height: 30px; font-size: 11px; }
.bulk-bar .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #e8f1f7; }
.bulk-bar .btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.pager-info { font-size: 11px; color: #8a96a8; }
.pager-info b { color: #34425a; }
.pager-btns { display: flex; align-items: center; gap: 4px; }
.pg-btn { min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid #e6ecf4; background: #fff; border-radius: 7px; font-size: 11px; color: #5c6a7e; }
.pg-btn:hover:not([disabled]) { border-color: rgba(23,184,166,.5); color: var(--teal-deep); }
.pg-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.pg-btn[disabled] { opacity: .45; }
.pg-dot { font-size: 10px; color: #9aa6b7; padding: 0 2px; }

/* 骨架屏 */
.skeleton-wrap { padding: 10px 4px; }
.skeleton-row { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-bottom: 1px solid #f3f6fa; }
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 37%, #eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }
.sk-avatar { width: 34px; height: 34px; border-radius: 10px; }
.sk-line { height: 11px; }
.w40 { width: 40%; } .w30 { width: 30%; } .w20 { width: 20%; } .w15 { width: 15%; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ============================ 卡片线索列表 ============================ */
.lead-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.lead-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: 15px;
    padding: 16px 16px 13px; box-shadow: var(--shadow-sm);
    transition: transform .18s, box-shadow .18s, border .18s;
}
.lead-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d9e2ed; }
.lead-card-top { display: flex; align-items: flex-start; gap: 10px; }
.lead-card-top .score-badge { margin-left: auto; }
.lead-card h4 { font-size: 13.5px; font-weight: 700; }
.lead-card h4 a:hover { color: var(--teal-deep); }
.lead-card .company { font-size: 11px; color: #8491a3; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-card-tags { display: flex; gap: 4px; flex-wrap: wrap; min-height: 22px; margin: 10px 0 8px; }
.lead-card-info { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; padding: 10px 0; border-top: 1px dashed #eef2f7; border-bottom: 1px dashed #eef2f7; font-size: 11px; color: #7b8798; }
.lead-card-info b { display: block; color: #34425a; font-weight: 600; font-size: 11.5px; margin-top: 1px; }
.lead-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; }
.lead-owner { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6b7789; }

/* ============================ 标签体系 ============================ */
.tag-category { margin-bottom: 18px; }
.tag-cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tag-cat-head h3 { font-size: 13px; font-weight: 700; }
.tag-cat-head span { font-size: 10.5px; color: #93a1b4; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-card {
    position: relative; display: flex; align-items: center; gap: 9px;
    padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 11px;
    box-shadow: 0 3px 10px -8px rgba(11,30,54,.3);
    transition: transform .16s, box-shadow .16s;
}
.tag-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 14%, transparent); }
.tag-card b { font-size: 12px; font-weight: 600; }
.tag-card small { font-size: 10px; color: #9aa6b7; }
.tag-actions { display: flex; gap: 1px; opacity: 0; transition: opacity .15s; }
.tag-card:hover .tag-actions { opacity: 1; }
.tag-actions button { width: 22px; height: 22px; border: 0; background: transparent; border-radius: 5px; color: #9aa6b7; font-size: 10px; }
.tag-actions button:hover { background: #f1f4f8; color: #34425a; }

/* ============================ 查重合并 ============================ */
.dedupe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 15px; }
.dedupe-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-sm); }
.dedupe-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: linear-gradient(100deg, #fff8ed, #fffdf8); border-bottom: 1px solid #f6ead8; }
.dedupe-head .dh-ico { width: 30px; height: 30px; border-radius: 8px; background: #fff0d8; color: #b5740a; display: grid; place-items: center; font-size: 12px; }
.dedupe-head strong { font-size: 12.5px; }
.dedupe-head small { display: block; font-size: 10px; color: #9a8a73; }
.dedupe-head .chip { margin-left: auto; }
.dedupe-leads { padding: 4px 16px 10px; }
.dedupe-lead { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #eef2f7; }
.dedupe-lead:last-child { border-bottom: 0; }
.dedupe-radio { accent-color: var(--teal); width: 15px; height: 15px; }
.dedupe-lead .dl-main { flex: 1; min-width: 0; }
.dedupe-lead .dl-main strong { font-size: 12px; font-weight: 600; }
.dedupe-lead .dl-main small { display: block; font-size: 10.5px; color: #8a96a8; }
.dedupe-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: #fbfdff; border-top: 1px solid var(--line); }

/* ============================ 审批 ============================ */
.approval-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-tile { display: flex; align-items: center; gap: 12px; padding: 15px 17px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.stat-tile .st-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; color: var(--sc, var(--teal)); background: color-mix(in srgb, var(--sc, var(--teal)) 11%, #fff); }
.stat-tile small { display: block; font-size: 10.5px; color: var(--muted); }
.stat-tile strong { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.stat-tile .st-sub { font-size: 10px; color: #9aa6b7; }

.approval-title-cell strong { display: block; font-size: 12.5px; font-weight: 600; }
.approval-title-cell small { font-size: 10.5px; color: #93a1b4; }
.approval-flow { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #8a96a8; }
.approval-flow b { color: #34425a; font-weight: 600; }
.approval-flow i { font-size: 8px; color: #c3ccd8; }

.detail-hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: linear-gradient(110deg, #f2fbf9, #f7faff); border: 1px solid #e3f2ef; margin-bottom: 16px; }
.detail-hero .dh-score { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: #fff; border: 1px solid #e1efec; font-size: 18px; font-weight: 700; color: var(--teal-deep); }
.detail-hero h4 { font-size: 15px; font-weight: 700; }
.detail-hero p { font-size: 11.5px; color: #7b8798; }
.detail-hero .chip { margin-left: auto; }

.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.kv { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; border-bottom: 1px dashed #eef2f7; }
.kv small { font-size: 10px; color: #93a1b4; }
.kv b { font-size: 12.5px; font-weight: 500; color: #1c2b3f; }
.kv.full { grid-column: 1 / -1; }
.section-label { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .1em; color: #93a1b4; margin: 16px 0 8px; }
.section-label::after { content: ""; flex: 1; height: 1px; background: #eef2f7; }

.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(#d7e6f6, #eef2f7); }
.tl-item { position: relative; padding: 0 0 14px; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 2px solid var(--tc, var(--teal)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc, var(--teal)) 14%, transparent); }
.tl-item strong { font-size: 12px; font-weight: 600; display: block; }
.tl-item p { font-size: 11.5px; color: #5b6577; margin-top: 1px; }
.tl-item small { font-size: 10px; color: #9aa6b7; }

/* ============================ 团队 / 排行 ============================ */
.org-wrap { display: flex; flex-direction: column; gap: 12px; }
.org-node { position: relative; }
.org-card {
    display: flex; align-items: center; gap: 13px;
    padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-sm); transition: box-shadow .18s, border .18s;
}
.org-card:hover { border-color: #d7e3ef; box-shadow: var(--shadow); }
.org-badge { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; color: #fff; background: linear-gradient(140deg, var(--oc, #17b8a6), color-mix(in srgb, var(--oc, #17b8a6) 62%, #0a1a2a)); box-shadow: 0 8px 16px -10px var(--oc, #17b8a6); }
.org-main { flex: 1; min-width: 0; }
.org-main strong { font-size: 13.5px; font-weight: 700; }
.org-main small { display: block; font-size: 10.5px; color: #8a96a8; }
.org-metrics { display: flex; gap: 18px; margin-right: 8px; }
.org-metric { text-align: right; }
.org-metric small { display: block; font-size: 9.5px; color: #93a1b4; }
.org-metric b { font-size: 12.5px; font-weight: 600; }
.org-children { margin: 10px 0 0 30px; padding-left: 18px; border-left: 1px dashed #dce4ee; display: flex; flex-direction: column; gap: 10px; }
.org-actions { display: flex; gap: 3px; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin-bottom: 18px; }
.podium-card { position: relative; padding: 18px 16px 14px; border-radius: 17px; background: #fff; border: 1px solid var(--line); text-align: center; box-shadow: var(--shadow-sm); overflow: hidden; }
.podium-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--pc, #cfd8e4); }
.podium-card.first { background: linear-gradient(165deg, #fffdf5, #fff 62%); border-color: #f3e1b7; box-shadow: 0 24px 44px -30px rgba(181, 116, 10, .55); padding-top: 26px; }
.podium-card .p-medal { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; font-size: 15px; color: #fff; background: var(--pc); box-shadow: 0 8px 18px -10px var(--pc); }
.podium-card .avatar { margin: 0 auto 7px; }
.podium-card h4 { font-size: 13px; font-weight: 700; }
.podium-card small { display: block; font-size: 10px; color: #8a96a8; }
.podium-card .p-amount { font-size: 18px; font-weight: 700; margin-top: 7px; color: var(--pc, #17263a); }
.podium-card .p-meta { display: flex; justify-content: center; gap: 12px; margin-top: 8px; font-size: 10px; color: #7b8798; }
.podium-card .p-meta b { color: #34425a; }

/* ============================ 规则 / 评分 ============================ */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 15px; }
.rule-card { position: relative; padding: 17px 18px 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s; }
.rule-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.rule-card.off { opacity: .62; }
.rule-card-top { display: flex; align-items: flex-start; gap: 10px; }
.rule-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-deep); font-size: 14px; }
.rule-card h4 { font-size: 13.5px; font-weight: 700; }
.rule-card .rule-sub { font-size: 10.5px; color: #93a1b4; margin-top: 2px; }
.rule-card .rule-body { display: flex; gap: 18px; padding: 13px 0 10px; margin-top: 6px; border-top: 1px dashed #eef2f7; }
.rule-num { flex: 1; }
.rule-num small { display: block; font-size: 9.5px; color: #93a1b4; }
.rule-num b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.rule-num b span { font-size: 10px; font-weight: 400; color: #8a96a8; margin-left: 2px; }
.rule-card .rule-desc { font-size: 10.5px; color: #7b8798; line-height: 1.55; min-height: 32px; }
.rule-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f2f5f9; }

.switch { position: relative; width: 38px; height: 21px; flex: 0 0 38px; }
.switch input { display: none; }
.switch i { position: absolute; inset: 0; border-radius: 20px; background: #dbe3ec; transition: background .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; width: 15px; height: 15px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(9,25,42,.2); transition: transform .2s; }
.switch input:checked + i { background: var(--teal); }
.switch input:checked + i::after { transform: translateX(17px); }

.weight-list { display: flex; flex-direction: column; }
.weight-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px dashed #eef2f7; }
.weight-row:last-child { border-bottom: 0; }
.weight-name { width: 150px; flex: 0 0 150px; }
.weight-name strong { display: block; font-size: 12px; font-weight: 600; }
.weight-name small { display: block; font-size: 9.5px; color: #9aa6b7; }
.weight-slider { flex: 1; }
.weight-slider input[type=range] { width: 100%; accent-color: var(--teal); height: 4px; }
.weight-val { width: 66px; flex: 0 0 66px; text-align: right; }
.weight-val input { width: 48px; height: 30px; text-align: center; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12px; font-weight: 600; }
.weight-val span { font-size: 10px; color: #9aa6b7; }
.weight-total { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #f7fafc; border-radius: 10px; margin-top: 14px; font-size: 12px; }
.weight-total b { font-size: 17px; color: var(--teal-deep); }
.weight-total.bad b { color: var(--coral); }

.strategy-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.strategy-no { width: 28px; height: 28px; border-radius: 8px; background: #f2f5f9; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #7b8798; }
.strategy-main { flex: 1; min-width: 0; }
.strategy-main strong { font-size: 12.5px; }
.strategy-main small { display: block; font-size: 10.5px; color: #8a96a8; }
.strategy-tag { font-size: 9.5px; padding: 2px 7px; border-radius: 4px; background: var(--violet-soft); color: #6a4fd8; }
.strategy-actions { display: flex; align-items: center; gap: 3px; }

/* ============================ 表单 / 弹窗 / 抽屉 ============================ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field > span { font-size: 11.5px; color: #5c6a7e; font-weight: 500; }
.field > span em { color: var(--coral); font-style: normal; margin-left: 2px; }
.field .hint { font-size: 10px; color: #9aa6b7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .1em; color: #93a1b4; margin: 6px 0 10px; }
.form-section::after { content: ""; flex: 1; height: 1px; background: #eef2f7; }
.check-row { display: flex; flex-wrap: wrap; gap: 7px; }
.check-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 11px; color: #5c6a7e; cursor: pointer; transition: all .15s; }
.check-pill input { accent-color: var(--teal); }
.check-pill:has(input:checked) { border-color: rgba(23,184,166,.55); background: var(--teal-soft); color: var(--teal-deep); }

.modal-layer { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(5, 15, 27, .52); backdrop-filter: blur(7px); opacity: 0; transition: opacity .2s; }
.modal-layer.show { opacity: 1; }
.modal-card {
    width: 100%; max-width: 560px; max-height: calc(100vh - 60px);
    background: #fff; border-radius: 20px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 60px 120px -40px rgba(3, 14, 26, .65), 0 0 0 1px rgba(255,255,255,.4);
    transform: translateY(14px) scale(.985); opacity: 0;
    transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .24s;
}
.modal-layer.show .modal-card { transform: translateY(0) scale(1); opacity: 1; }
.modal-card.size-sm { max-width: 420px; }
.modal-card.size-md { max-width: 620px; }
.modal-card.size-lg { max-width: 820px; }
.modal-card.size-xl { max-width: 1040px; }
.modal-head {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 20px 22px 16px;
    background: linear-gradient(115deg, #f7fcfb, #fbfdff 55%, #f5f9ff);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.modal-head::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, #22c9b4, #5b8def 45%, transparent 85%); }
.modal-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-deep); font-size: 15px; }
.modal-card.tone-warn .modal-head::before { background: linear-gradient(90deg, #f5a524, #ef6f6c 45%, transparent 85%); }
.modal-card.tone-warn .modal-icon { background: var(--amber-soft); color: #b5740a; }
.modal-card.tone-danger .modal-head::before { background: linear-gradient(90deg, #ef6f6c, #d94845 45%, transparent 85%); }
.modal-card.tone-danger .modal-icon { background: var(--coral-soft); color: var(--coral); }
.modal-titles { flex: 1; min-width: 0; padding-top: 1px; }
.modal-titles h3 { font-size: 15.5px; font-weight: 700; letter-spacing: .01em; }
.modal-titles p { font-size: 11.5px; color: #7b8798; margin-top: 3px; }
.modal-close, .drawer-head .icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #e6ecf4; background: #fff; color: #93a1b4; font-size: 13px; display: grid; place-items: center; flex: 0 0 30px; }
.modal-close:hover { color: var(--coral); border-color: #f3c9c7; background: #fff7f6; }
.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfdff; }
.confirm-text { font-size: 13px; color: #4a586e; line-height: 1.7; padding: 2px 0 8px; }

.drawer-layer { position: fixed; inset: 0; z-index: 900; background: rgba(5, 15, 27, .42); backdrop-filter: blur(4px); opacity: 0; transition: opacity .24s; }
.drawer-layer.show { opacity: 1; }
.drawer-card {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(var(--dw, 760px), 94vw);
    background: #fff; display: flex; flex-direction: column;
    box-shadow: -30px 0 80px -30px rgba(3, 14, 26, .55);
    transform: translateX(40px); opacity: .6;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s;
}
.drawer-layer.show .drawer-card { transform: translateX(0); opacity: 1; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, #f7fcfb, #fbfdff); }
.drawer-head h3 { font-size: 16px; font-weight: 700; }
.drawer-head p { font-size: 11.5px; color: #7b8798; margin-top: 3px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 26px; background: #fcfdff; }
.drawer-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 13px 22px; border-top: 1px solid var(--line); background: #fff; }

/* 详情 Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 4px 0 16px; overflow-x: auto; }
.tabs button { position: relative; border: 0; background: transparent; padding: 9px 14px; font-size: 12px; color: #7b8798; font-weight: 500; white-space: nowrap; }
.tabs button.active { color: var(--teal-deep); font-weight: 600; }
.tabs button.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--teal); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.json-box { padding: 12px 14px; background: #0c1a2b; color: #b9e6df; border-radius: 10px; font-family: "JetBrains Mono", Consolas, monospace; font-size: 11px; line-height: 1.7; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* ============================ Toast ============================ */
.toast-root { position: fixed; top: 78px; right: 26px; z-index: 2000; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast {
    display: flex; align-items: center; gap: 9px;
    min-width: 210px; max-width: 380px; padding: 12px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 11px;
    box-shadow: 0 22px 44px -22px rgba(6, 20, 38, .5);
    font-size: 12.5px; color: #2c3a4e;
    opacity: 0; transform: translateX(16px); transition: all .25s;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast i { font-size: 14px; color: var(--teal); }
.toast-error i { color: var(--coral); }
.toast-info i { color: var(--blue); }
.toast-error { border-color: #f6d9d7; }

/* ============================ 登录 / 注册 ============================ */
.auth-body { min-height: 100vh; background: #06111e; overflow-x: hidden; }
.auth-wrap { display: flex; min-height: 100vh; }
.auth-visual {
    position: relative; flex: 1.15; overflow: hidden;
    background:
        radial-gradient(700px 500px at 78% 18%, rgba(23, 184, 166, .3), transparent 60%),
        radial-gradient(620px 460px at 12% 88%, rgba(91, 141, 239, .26), transparent 62%),
        linear-gradient(150deg, #061320, #0a2130 58%, #071523);
    color: #eaf5fa; display: flex; flex-direction: column; justify-content: space-between;
    padding: 44px 52px;
}
.auth-visual::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(80% 70% at 55% 45%, #000, transparent 78%);
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 13px; }
.auth-brand .brand-mark { width: 46px; height: 46px; flex-basis: 46px; }
.auth-brand strong { display: block; font-size: 19px; letter-spacing: .05em; }
.auth-brand small { display: block; font-size: 9px; letter-spacing: .26em; color: rgba(151, 190, 207, .65); margin-top: 2px; }
.auth-visual-center { max-width: 520px; }
.auth-visual-center h1 { font-size: 34px; line-height: 1.34; font-weight: 700; letter-spacing: .01em; }
.auth-visual-center h1 em { font-style: normal; background: linear-gradient(100deg, #5be4d0, #7fb0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-visual-center p { margin-top: 14px; font-size: 13px; line-height: 1.75; color: rgba(191, 215, 228, .78); max-width: 440px; }
.auth-points { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; }
.auth-point .ap-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; color: #67e3d2; background: rgba(23, 184, 166, .12); border: 1px solid rgba(23, 184, 166, .2); }
.auth-point strong { display: block; font-size: 12.5px; font-weight: 600; }
.auth-point small { font-size: 11px; color: rgba(170, 200, 217, .7); }
.auth-metrics { display: flex; gap: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); }
.auth-metric strong { display: block; font-size: 23px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.auth-metric strong span { font-size: 12px; color: #5be4d0; margin-left: 3px; }
.auth-metric small { font-size: 10.5px; color: rgba(160, 190, 208, .68); }
.auth-panel { flex: 0 0 540px; background: #f7fafc; display: flex; align-items: center; justify-content: center; padding: 40px 48px; position: relative; }
.auth-panel-inner { width: 100%; max-width: 364px; }
.auth-kicker { font-size: 10.5px; letter-spacing: .18em; color: #93a1b4; margin-bottom: 8px; }
.auth-panel h2 { font-size: 25px; font-weight: 700; letter-spacing: .01em; }
.auth-panel .auth-sub { font-size: 12px; color: #7b8798; margin: 8px 0 26px; }
.auth-form .field > span { font-size: 11.5px; }
.auth-input { position: relative; }
.auth-input i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #a0adbd; font-size: 13px; }
.auth-input .input { height: 46px; padding-left: 38px; border-radius: 11px; background: #fff; }
.auth-input .toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #a0adbd; font-size: 12px; padding: 4px; }
.auth-options { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 20px; font-size: 11.5px; color: #7b8798; }
.auth-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-submit { height: 46px; border-radius: 11px; font-size: 13px; letter-spacing: .06em; }
.auth-alt { text-align: center; font-size: 11.5px; color: #8a96a8; margin-top: 20px; }
.auth-alt a { color: var(--teal-deep); font-weight: 600; }
.auth-note { display: flex; gap: 8px; padding: 11px 13px; background: #eef8f6; border: 1px solid #dcf1ed; border-radius: 10px; font-size: 10.5px; color: #5c7d78; line-height: 1.6; margin-top: 20px; }
.auth-note i { color: var(--teal); margin-top: 2px; }
.auth-error { display: none; margin-bottom: 12px; padding: 9px 12px; border-radius: 8px; background: #fff1f0; border: 1px solid #f6d5d3; color: #cf4f4c; font-size: 11.5px; }
.auth-error.show { display: block; }
.auth-select-wrap { position: relative; }
.auth-copyright { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 10px; color: #a3afbe; }

/* 响应式 */
@media (max-width: 1500px) {
    .kpi-grid { grid-template-columns: repeat(5, 1fr); }
    .global-search { width: 210px; }
}
@media (max-width: 1280px) {
    .kpi-grid { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .auth-visual { padding: 36px 38px; }
    .auth-panel { flex-basis: 480px; padding: 34px; }
}
@media (max-width: 1100px) {
    .sidebar { transform: translateX(-100%); transition: transform .28s; box-shadow: 0 0 60px rgba(0,0,0,.3); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .app-main { margin-left: 0; }
    .menu-btn { display: inline-grid !important; }
    .global-search { display: none; }
    .auth-visual { display: none; }
    .auth-panel { flex: 1; background: linear-gradient(160deg, #f7fafc, #eef6f5); }
}
@media (max-width: 860px) {
    .content { padding: 20px 16px 28px; }
    .topbar { padding: 0 16px; height: 62px; }
    .crumb span:first-child { display: none; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .approval-stats { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .grid-2e { grid-template-columns: 1fr; }
    .podium { grid-template-columns: 1fr; }
    .hero { flex-direction: column; align-items: flex-start; padding: 22px; }
    .hero-side { width: 100%; }
    .hero-mini { flex: 1; min-width: 0; }
    .user-meta { display: none; }
    .page-head h1 { font-size: 21px; }
    .dedupe-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .drawer-card { width: 100vw; }
    .modal-layer { padding: 12px; }
    .app-foot { flex-direction: column; gap: 4px; padding: 12px 16px 20px; }
}

.org-children.collapsed { display: none; }
.lead-card .avatar { flex: 0 0 34px; }
.toolbar .btn-sm { height: 36px; }

