/* 达人监测中台（自持账号作品监测）—— 与种草监测中台同一套视觉基线 */
.dm-shell{--ink:#172238;--muted:#77849a;--line:#e6ebf2;--soft:#f6f8fb;--blue:#1677ff;--green:#16a36a;--red:#dc4f58;--orange:#d57a1c;
  min-height:calc(100vh - 100px);background:#f6f8fb;color:var(--ink);margin:0;padding:16px 24px 40px;font-size:13px}
.dm-shell *{box-sizing:border-box}
.dm-ws{display:flex;align-items:center;gap:22px;margin:0 0 16px;padding:0 2px 12px;border-bottom:1px solid #e7edf5}
.dm-ws-title{display:flex;align-items:center;gap:10px}
.dm-ws-mark{width:32px;height:32px;border-radius:8px;background:linear-gradient(135deg,#2f7cff,#1552d8);color:#fff;display:grid;place-items:center;font-size:14px;font-weight:800}
.dm-ws-copy b{display:block;font-size:15px;letter-spacing:.2px}
.dm-ws-copy small{display:block;font-size:9px;color:#9aa6b7;letter-spacing:.18em;font-weight:700}
.dm-ws-note{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:11.5px;color:#93a0b3}

.dm-head{display:flex;justify-content:space-between;align-items:flex-start;gap:22px;margin-bottom:14px}
.dm-head h1{margin:0;font-size:24px;line-height:1.2;font-weight:760;display:flex;align-items:center;gap:10px}
.dm-head h1 em{font-style:normal;font-size:11px;font-weight:700;color:#1668e3;background:#eaf2ff;border:1px solid #d9e7ff;border-radius:5px;padding:3px 7px}
.dm-sub{margin:8px 0 0;font-size:12.5px;color:#7b8798;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.dm-dot{width:6px;height:6px;border-radius:50%;background:#1fbd7a;box-shadow:0 0 0 4px #e2f8ee;display:inline-block;margin-right:6px}
.dm-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}

.dm-btn{height:34px;border:1px solid #e2e8f1;background:#fff;color:#46536a;border-radius:7px;padding:0 13px;font-size:12.5px;display:inline-flex;align-items:center;gap:7px;cursor:pointer;white-space:nowrap;font-family:inherit}
.dm-btn:hover{border-color:#b6cff5;color:#1668e3}
.dm-btn:disabled{opacity:.55;cursor:not-allowed}
.dm-btn.primary{background:#1677ff;border-color:#1677ff;color:#fff;box-shadow:0 5px 12px rgba(22,119,255,.2);font-weight:600}
.dm-btn.primary:hover{background:#0f68e6;color:#fff}
.dm-btn small{opacity:.75;font-weight:500}
.dm-btn i{font-size:12px}

/* 账号横条 */
.dm-acc-row{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px;margin-bottom:12px}
.dm-acc{flex:0 0 auto;min-width:196px;background:#fff;border:1px solid #e6ebf2;border-radius:8px;padding:11px 13px;cursor:pointer;transition:.16s;text-align:left;font-family:inherit}
.dm-acc:hover{border-color:#b6cff5;box-shadow:0 6px 16px rgba(23,34,56,.06);transform:translateY(-1px)}
.dm-acc.on{border-color:#1677ff;box-shadow:0 0 0 3px rgba(22,119,255,.08)}
.dm-acc-top{display:flex;align-items:center;gap:8px}
.dm-ava{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;color:#fff;flex:0 0 26px}
.dm-acc-name{font-size:12.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:142px}
.dm-acc-id{font-size:10.5px;color:#9aa6b7;font-family:ui-monospace,Menlo,Consolas,monospace;margin-top:1px}
.dm-acc-num{display:flex;align-items:baseline;gap:5px;margin-top:9px}
.dm-acc-num b{font-size:17px;font-variant-numeric:tabular-nums;letter-spacing:-.3px}
.dm-acc-num span{font-size:10.5px;color:#93a0b3}
.dm-acc-foot{display:flex;justify-content:space-between;margin-top:5px;font-size:10.5px;color:#8b97a9}
.dm-acc.add{display:flex;align-items:center;justify-content:center;color:#8b97a9;border-style:dashed;font-size:12px;gap:6px;min-width:120px}
.dm-acc.add:hover{color:#1668e3;border-color:#b6cff5}

/* KPI */
.dm-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:14px}
.dm-kpi{background:#fff;border:1px solid #e6ebf2;border-radius:8px;padding:13px 15px}
.dm-kpi-t{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#78859a}
.dm-kpi-chip{width:25px;height:25px;border-radius:7px;display:grid;place-items:center;font-size:11px}
.dm-kpi-v{font-size:24px;font-weight:760;letter-spacing:-.6px;margin:11px 0 6px;font-variant-numeric:tabular-nums;line-height:1}
.dm-kpi-v small{font-size:12px;font-weight:600;color:#8b97a9;margin-left:2px;letter-spacing:0}
.dm-kpi-f{font-size:11px;color:#93a0b3;display:flex;align-items:center;gap:6px}
.t-blue{color:#1677ff;background:#eaf3ff}.t-violet{color:#6956d8;background:#f0edff}.t-orange{color:#d57a1c;background:#fff3df}.t-green{color:#159c68;background:#e4f8ee}.t-pink{color:#d6447c;background:#ffecf3}

/* 工具条 + 表格 */
.dm-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid #e6ebf2;border-bottom:0;border-radius:8px 8px 0 0;padding:12px 14px;flex-wrap:wrap}
.dm-tb-l,.dm-tb-r{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dm-search{height:32px;width:210px;border:1px solid #e2e8f1;border-radius:6px;display:flex;align-items:center;gap:7px;padding:0 10px;background:#fbfcfe;color:#9aa6b7;font-size:12px}
.dm-search input{border:0;outline:0;background:transparent;flex:1;font-size:12px;color:#2b3a52;font-family:inherit}
.dm-sel{height:32px;border:1px solid #e2e8f1;border-radius:6px;padding:0 9px;background:#fbfcfe;color:#4a5a72;font-size:12px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;outline:0;font-family:inherit}
.dm-sel.on{color:#1668e3;border-color:#cfe0fb;background:#f4f9ff;font-weight:600}
.dm-switch{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#4a5a72;height:32px;padding:0 10px;border:1px solid #e2e8f1;border-radius:6px;background:#fbfcfe;cursor:pointer}
.dm-switch i{width:26px;height:15px;border-radius:9px;background:#d5dce7;position:relative;transition:.16s;flex:0 0 26px}
.dm-switch i:after{content:"";position:absolute;width:11px;height:11px;border-radius:50%;background:#fff;top:2px;left:2px;transition:.16s}
.dm-switch.on i{background:#1677ff}
.dm-switch.on i:after{left:13px}
.dm-warn{font-size:11px;color:#c07a17;background:#fff7ea;border:1px solid #ffe3bd;border-radius:5px;padding:4px 8px;cursor:pointer}

.dm-wrap{background:#fff;border:1px solid #e6ebf2;overflow:auto}
.dm-table{width:100%;border-collapse:collapse;min-width:1240px;font-size:12px;table-layout:fixed}
.dm-table th{background:#fafbfe;color:#79869a;text-align:left;font-weight:600;white-space:nowrap;height:34px;padding:0 11px;border-bottom:1px solid #eef1f6}
.dm-table th.g{border-left:1px solid #eef1f6;text-align:center;color:#66758b;font-size:11.5px;background:#f8faff}
.dm-table th.num{text-align:right}
.dm-table td{padding:10px 11px;border-bottom:1px solid #eef1f6;color:#425068;vertical-align:middle}
.dm-table tr:hover td{background:#fcfdff}
.dm-time{font-variant-numeric:tabular-nums;color:#5b6879;font-size:11.5px;white-space:nowrap;line-height:1.5}
.dm-time span{display:block;color:#a4aeba;font-size:10.5px}
.dm-acc-cell{display:flex;align-items:center;gap:7px;min-width:0}
.dm-acc-cell .dm-ava{width:22px;height:22px;font-size:9.5px;flex:0 0 22px}
.dm-acc-cell b{display:block;font-size:12px;font-weight:600;color:#2b3a52;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}
.dm-acc-cell em{display:block;font-style:normal;font-size:10px;color:#a4aeba;margin-top:1px}
.dm-title-cell a{display:block;color:#1f2d43;font-weight:600;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-title-cell a:hover{color:#1677ff}
.dm-meta{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:10.5px;color:#a4aeba}
.dm-wid{font-family:ui-monospace,Menlo,Consolas,monospace}
.dm-mini{width:17px;height:17px;border-radius:4px;border:1px solid #edf1f7;background:#fff;display:inline-grid;place-items:center;cursor:pointer;color:#93a0b3;flex:0 0 17px;padding:0}
.dm-mini:hover{color:#1677ff;border-color:#b6cff5}
.dm-num{text-align:right;font-variant-numeric:tabular-nums;font-size:12.5px;color:#2b3a52;white-space:nowrap;padding-right:12px}
.dm-num.big{font-size:13.5px;font-weight:700;color:#172238}
.dm-num s{display:block;text-decoration:none;font-size:10px;color:#9aa6b7;font-weight:400;margin-top:2px}
.dm-num.weak{color:#a4aeba}
.dm-tag{display:inline-flex;align-items:center;gap:3px;height:17px;padding:0 6px;border-radius:3px;font-size:10px;font-weight:600;line-height:1;white-space:nowrap}
.dm-tag.hot{background:#fff2e2;color:#cf7414}
.dm-tag.stop{background:#f2f4f7;color:#8b97a9}
.dm-tag.pending{background:#fff2e2;color:#cf7414}
.dm-tag.manual{background:#eef4ff;color:#4666b3}
.dm-ops{display:flex;gap:7px;align-items:center;justify-content:center}
.dm-op{width:26px;height:26px;border:1px solid #e6ebf2;background:#fff;border-radius:5px;color:#8490a4;display:grid;place-items:center;cursor:pointer;padding:0}
.dm-op:hover{color:#1677ff;border-color:#b6cff5;background:#f8fbff}
.dm-op.danger:hover{color:#dc4f58;border-color:#f0c2c6;background:#fff8f8}
.dm-op:disabled{opacity:.4;cursor:not-allowed}
.dm-op.text{width:auto;min-width:0;height:24px;padding:0 3px;border:0;background:transparent;color:#1668e3;font-size:11.5px;font-weight:600;line-height:1}
.dm-op.text:hover{background:transparent;color:#0f5fd8;text-decoration:underline}
.dm-op.text.danger{color:#c9404b}
.dm-op.text.danger:hover{color:#b02a35}

.dm-empty{text-align:center;color:#98a3b3;padding:40px 0;font-size:12.5px}
.dm-pager{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;background:#fff;border:1px solid #e6ebf2;border-top:0;border-radius:0 0 8px 8px;font-size:12px;color:#8490a4}
.dm-pg{display:flex;gap:4px;align-items:center}
.dm-pg button{min-width:26px;height:26px;border-radius:5px;border:1px solid #e6ebf2;background:#fff;color:#5b6879;font-size:11.5px;cursor:pointer;font-family:inherit}
.dm-pg button.on{background:#1677ff;border-color:#1677ff;color:#fff}
.dm-pg button:disabled{opacity:.4;cursor:not-allowed}
.dm-note{margin-top:10px;font-size:11px;color:#93a0b3;display:flex;gap:16px;flex-wrap:wrap}
.dm-note i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#c3cddb;margin-right:5px;vertical-align:1px}

/* 账号详情头卡 */
.dm-hero{background:#fff;border:1px solid #e6ebf2;border-radius:8px;padding:16px 20px;display:flex;align-items:center;gap:24px;margin-bottom:12px;flex-wrap:wrap}
.dm-hero-id{display:flex;align-items:center;gap:13px;min-width:0;flex:1}
.dm-hero-ava{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:16px;font-weight:700;flex:0 0 46px}
.dm-hero-name{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:700}
.dm-hero-sub{display:flex;align-items:center;gap:12px;margin-top:6px;font-size:11.5px;color:#93a0b3;flex-wrap:wrap}
.dm-hero-sub code{font-family:ui-monospace,Menlo,Consolas,monospace;color:#7b8798;background:#f6f8fb;border:1px solid #eef1f6;border-radius:4px;padding:1px 5px;font-size:11px}
.dm-pill{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:999px;font-size:10.5px;font-weight:600;background:#e7f7ef;color:#12875a}
.dm-pill:before{content:"";width:5px;height:5px;border-radius:50%;background:#1fbd7a}
.dm-hero-stats{display:flex;flex:0 0 auto}
.dm-hs{padding:0 18px;border-left:1px solid #eef1f6;text-align:right}
.dm-hs:first-child{border-left:0}
.dm-hs span{display:block;font-size:11px;color:#93a0b3;margin-bottom:6px}
.dm-hs b{display:block;font-size:18px;font-weight:750;font-variant-numeric:tabular-nums}
.dm-hs b small{font-size:11px;color:#93a0b3;font-weight:600;margin-left:2px}
.dm-crumb{display:flex;align-items:center;gap:7px;font-size:12px;color:#93a0b3;margin-bottom:12px}
.dm-crumb a{color:#5b6879;text-decoration:none;cursor:pointer}
.dm-crumb a:hover{color:#1668e3}
.dm-crumb b{color:#1f2d43;font-weight:600}

/* 弹窗 */
.dm-mask{position:fixed;inset:0;background:rgba(22,32,51,.45);display:flex;align-items:flex-start;justify-content:center;padding:52px 20px;z-index:1200;overflow:auto}
.dm-modal{width:min(880px,100%);background:#fff;border-radius:12px;box-shadow:0 24px 70px rgba(16,26,45,.28);overflow:hidden}
.dm-modal.sm{width:min(560px,100%)}
.dm-m-head{display:flex;align-items:flex-start;justify-content:space-between;padding:15px 22px;background:linear-gradient(120deg,#f1f7ff 0%,#fff 58%,#f7faff 100%);border-bottom:1px solid #eef1f6}
.dm-m-title small{display:block;font-size:9px;font-weight:900;letter-spacing:.18em;color:#4d82d4}
.dm-m-title strong{display:block;font-size:18px;margin-top:3px}
.dm-m-close{width:30px;height:30px;border:1px solid #e2e8f1;background:#fff;border-radius:7px;color:#8490a4;display:grid;place-items:center;cursor:pointer}
.dm-m-body{padding:18px 22px 6px}
.dm-step{display:flex;align-items:center;gap:8px;margin:0 0 9px}
.dm-step-no{width:17px;height:17px;border-radius:50%;background:#eaf2ff;color:#1668e3;font-size:10px;font-weight:800;display:grid;place-items:center;flex:0 0 17px}
.dm-step-t{font-size:12px;font-weight:700;color:#3b4a61}
.dm-step-hint{font-size:11px;color:#a4aeba;font-weight:400}
.dm-linkbox{border:1px solid #dbe4f2;border-radius:9px;background:#fbfcfe;padding:10px 12px}
.dm-linkbox textarea{width:100%;height:54px;border:0;background:transparent;resize:vertical;outline:0;font-size:12.5px;line-height:1.6;color:#24334a;font-family:inherit}
.dm-linkbox textarea::placeholder{color:#aab4c2}
.dm-idrow{display:flex;align-items:center;gap:9px;margin-top:9px}
.dm-idfield{height:36px;flex:1;border:1px solid #dbe4f2;border-radius:7px;background:#fff;display:flex;align-items:center;gap:8px;padding:0 11px}
.dm-idfield span{font-size:11px;color:#93a0b3;white-space:nowrap}
.dm-idfield input{border:0;outline:0;flex:1;font-size:13px;letter-spacing:.4px;font-family:ui-monospace,Menlo,Consolas,monospace;color:#1f2d43;background:transparent;min-width:0}
.dm-hint{margin:8px 0 0;font-size:11px;color:#93a0b3;display:flex;align-items:center;gap:6px}
.dm-hint.ok{color:#12875a}
.dm-hint.err{color:#c9404b}
.dm-result{border:1px solid #e2ebf8;border-radius:9px;background:#f9fbfe;padding:12px;display:flex;gap:13px}
.dm-cover{width:92px;height:116px;border-radius:7px;flex:0 0 92px;background:linear-gradient(160deg,#3a4658,#1e2634);display:grid;place-items:center;color:#fff;font-size:10px;text-align:center;padding:6px;line-height:1.4}
.dm-r-main{flex:1;min-width:0}
.dm-r-title{font-size:13px;font-weight:650;color:#1f2d43;line-height:1.45;max-height:38px;overflow:hidden}
.dm-r-row{display:flex;gap:16px;margin-top:8px;font-size:11.5px;color:#7b8798;flex-wrap:wrap}
.dm-r-row b{color:#2b3a52;font-weight:600}
.dm-r-metrics{display:flex;gap:18px;margin-top:11px;padding-top:10px;border-top:1px dashed #e2ebf8;flex-wrap:wrap}
.dm-rm span{display:block;font-size:10.5px;color:#93a0b3;margin-bottom:3px}
.dm-rm b{font-size:14px;font-weight:750;font-variant-numeric:tabular-nums}
.dm-match{border:1px solid #c9ecd9;background:#f4fcf8;border-radius:9px;padding:11px 12px;display:flex;align-items:center;gap:10px}
.dm-match.unmatched{border-color:#f2d3a8;background:#fff9f1}
.dm-match-ico{width:26px;height:26px;border-radius:50%;background:#d8f3e5;color:#12875a;display:grid;place-items:center;flex:0 0 26px;font-size:11px}
.dm-match.unmatched .dm-match-ico{background:#ffe9c9;color:#c07a17}
.dm-match-txt{flex:1;min-width:0}
.dm-match-txt b{display:block;font-size:12.5px;color:#1f2d43}
.dm-match-txt span{display:block;font-size:11px;color:#7b8798;margin-top:3px}
.dm-match-txt em{font-style:normal;color:#a4aeba}
.dm-pick{height:32px;border:1px solid #dbe4f2;border-radius:6px;background:#fff;padding:0 10px;font-size:12px;color:#3b4a61;display:inline-flex;align-items:center;gap:7px;cursor:pointer;min-width:150px;font-family:inherit}
.dm-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;margin-top:14px}
.dm-fld{display:flex;flex-direction:column;gap:6px}
.dm-fld label{font-size:11px;font-weight:750;color:#5d6c82}
.dm-fld input,.dm-fld select,.dm-fld textarea{height:38px;border:1px solid #dbe4f0;border-radius:8px;background:#fbfcfe;padding:0 10px;font-size:12.5px;color:#24334a;outline:0;font-family:inherit}
.dm-fld textarea{height:64px;padding:8px 10px;resize:vertical;line-height:1.5}
.dm-fld input:focus,.dm-fld select:focus,.dm-fld textarea:focus{border-color:#7ea9e8;background:#fff;box-shadow:0 0 0 3px rgba(55,117,207,.1)}
.dm-fld.wide{grid-column:span 2}
.dm-m-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 22px;border-top:1px solid #eef1f6;background:#fcfdff;flex-wrap:wrap}
.dm-m-foot .tip{font-size:11px;color:#93a0b3}
.dm-m-foot .tip b{color:#1668e3}
.dm-m-actions{display:flex;gap:8px}
.dm-err{margin:0 0 10px;padding:8px 11px;border:1px solid #ffd4d7;border-radius:7px;background:#fff5f5;color:#d9363e;font-size:11.5px;font-weight:600}
.dm-ok{margin:0 0 10px;padding:8px 11px;border:1px solid #c9ecd9;border-radius:7px;background:#f4fcf8;color:#12875a;font-size:11.5px;font-weight:600}

/* 批量导入结果 */
.dm-batch{max-height:280px;overflow:auto;border:1px solid #eef1f6;border-radius:7px;margin-top:10px}
.dm-batch-row{display:grid;grid-template-columns:22px 1fr 90px;gap:8px;padding:7px 10px;border-bottom:1px solid #f2f5f9;font-size:11.5px;align-items:center}
.dm-batch-row:last-child{border-bottom:0}
.dm-batch-row .st{font-size:10.5px;font-weight:600}
.dm-batch-row .st.ok{color:#12875a}
.dm-batch-row .st.err{color:#c9404b}
.dm-batch-row code{font-family:ui-monospace,Menlo,Consolas,monospace;color:#7b8798;font-size:11px}

/* 账号管理表 */
.dm-am-table{width:100%;border-collapse:collapse;font-size:12px}
.dm-am-table th{background:#fafbfe;color:#79869a;text-align:left;font-weight:600;height:32px;padding:0 9px;border-bottom:1px solid #eef1f6;white-space:nowrap}
.dm-am-table td{padding:8px 9px;border-bottom:1px solid #eef1f6}
.dm-am-table input{height:30px;border:1px solid #e2e8f1;border-radius:6px;padding:0 8px;font-size:12px;width:100%;font-family:inherit}

@media(max-width:1560px){.dm-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.dm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dm-head{flex-direction:column}.dm-hero{flex-direction:column;align-items:flex-start}.dm-grid3{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.dm-kpis{grid-template-columns:1fr}.dm-shell{padding:14px 10px 30px}.dm-grid3{grid-template-columns:1fr}.dm-fld.wide{grid-column:auto}}
