/* 账号监控 · 参考 qichen ops 布局 */
.tt-status{background:#fff;border:1px solid #e8edf0;border-radius:12px;padding:13px 18px 9px;margin-bottom:14px}
.tt-status-line{display:flex;align-items:center;gap:10px;font-size:12.5px;color:#5e6972;flex-wrap:wrap}
.tt-status-line b{color:#111820;font-size:13px}
.tt-status-line .ok{color:#17914f}
.tt-status-line .warn{color:#b57a12}
.tt-status-line .bad{color:#c61f42}
.tt-status-line .right{margin-left:auto;color:#8a949d;font-size:12px}
.tt-progress{height:4px;border-radius:99px;background:#eef2f5;margin-top:10px;overflow:hidden}
.tt-progress i{display:block;height:100%;background:linear-gradient(90deg,#0aa39b,#3ecf8e);border-radius:99px;transition:width .4s}

.tt-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;background:#fff;border:1px solid #e8edf0;border-radius:12px;padding:16px 18px;margin-bottom:12px}
.tt-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#5e6972}
.tt-filters input,.tt-filters select{border:1px solid #dce2e6;border-radius:8px;padding:9px 11px;font:inherit;font-size:13px;outline:0;min-width:180px;background:#fff}
.tt-filters input:focus,.tt-filters select:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.tt-filter-actions{display:flex;gap:8px;margin-left:auto;flex-wrap:wrap}

.tt-bulk{display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #e8edf0;border-radius:12px;padding:11px 16px;margin-bottom:14px}
.tt-bulk .spacer{margin-left:auto;color:#8a949d;font-size:12px}
.tt-bulk .spacer b{color:#2563eb}

.btn{border:1px solid #dce2e6;background:#fff;border-radius:8px;padding:8px 14px;font:inherit;font-size:13px;cursor:pointer;color:#4a555d;transition:.15s;white-space:nowrap}
.btn:hover{border-color:#b9c6cf}
.btn.blue{background:#2563eb;border-color:#2563eb;color:#fff}
.btn.blue:hover{background:#1d4ed8}
.btn.green{background:#16a34a;border-color:#16a34a;color:#fff}
.btn.green:hover{background:#15803d}
.btn.orange{background:#f59e0b;border-color:#f59e0b;color:#fff}
.btn.orange:hover{background:#d97706}
.btn.ghost{color:#2563eb;border-color:#bfdbfe}
.btn.ghost:hover{background:#eff6ff}
.btn.danger{color:#c61f42;border-color:#f3c6d1}
.btn.danger:hover{background:#fdf2f5}
.btn.red{color:#c61f42;border-color:#f3c6d1}
.btn.sm{padding:5px 10px;font-size:12px}
.btn:disabled{opacity:.5;cursor:not-allowed}

.tt-list{display:flex;flex-direction:column;gap:14px}
.tt-row{background:#fff;border:1px solid #e8edf0;border-radius:14px;overflow:hidden}
.tt-row:hover{border-color:#d5dee5}
.tt-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-bottom:1px solid #f2f5f7;background:#fbfcfd}
.tt-row-times{font-size:11.5px;color:#9aa4ad;display:flex;gap:16px;flex-wrap:wrap}
.tt-row-actions{display:flex;gap:7px}

.tt-row-body{display:grid;grid-template-columns:minmax(300px,.85fr) 190px minmax(520px,2fr);gap:12px;padding:10px 14px 10px}
@media(max-width:1250px){.tt-row-body{display:grid;grid-template-columns:minmax(300px,.85fr) 190px minmax(520px,2fr);gap:12px;padding:10px 14px 10px}}

.tt-identity{display:flex;gap:10px;align-items:flex-start}
.tt-check{margin-top:6px;width:16px;height:16px;accent-color:#2563eb;cursor:pointer;flex:0 0 16px}
.tt-avatar{width:56px;height:56px;border-radius:50%;flex:0 0 56px;display:grid;place-items:center;font-weight:700;font-size:19px;color:#fff;background:linear-gradient(135deg,#0aa39b,#8069d5);overflow:hidden;position:relative}
.tt-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.tt-avatar .dot{position:absolute;right:0;bottom:0;width:13px;height:13px;border-radius:50%;background:#21c26b;border:2px solid #fff}
.tt-avatar .dot.off{background:#b9c3ca}

.tt-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}
.tt-name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.tt-name{font-size:15px;font-weight:600;color:#111820}
.tt-link{font-size:11.5px;color:#2563eb;text-decoration:none;border:1px solid #dbeafe;border-radius:6px;padding:2px 7px;background:#f5f9ff}
.tt-assign{display:flex;align-items:center;gap:6px;font-size:12px;color:#5e6972}
.tt-assign input{border:1px solid #dce2e6;border-radius:7px;padding:5px 9px;font:inherit;font-size:12px;width:120px;outline:0}
.tt-assign input:focus{border-color:#2563eb}
.tt-handle{font-size:12.5px;color:#6b767e}
.tt-chips{display:flex;gap:6px;flex-wrap:wrap}
.tt-chip{font-size:11px;border-radius:6px;padding:3px 8px;background:#f2f5f7;color:#5e6972;white-space:nowrap}
.tt-chip.uid{background:#e8f7ee;color:#17914f}
.tt-chip.handle{background:#fdecef;color:#c61f42}
.tt-chip.cat{background:#f3f0fd;color:#6b55c4}
.tt-chip.mon{background:#eff6ff;color:#2563eb}
.tt-chip.part{background:#fef6e7;color:#b57a12}

.tt-trio{display:flex;gap:0;border:1px solid #edf1f4;border-radius:10px;overflow:hidden;width:max-content}
.tt-trio div{padding:7px 16px;text-align:center;border-right:1px solid #edf1f4}
.tt-trio div:last-child{border-right:0}
.tt-trio small{display:block;font-size:10.5px;color:#8a949d;margin-bottom:2px}
.tt-trio strong{font-size:14px;color:#111820}

.tt-note-line{font-size:12px;color:#6b767e}
.tt-log{font-size:11.5px;color:#9aa4ad;line-height:1.6;max-height:34px;overflow:hidden;word-break:break-all}
.tt-log.err{color:#c61f42}

.tt-mid h4,.tt-right h4{margin:0 0 10px;font-size:12.5px;color:#111820;font-weight:600}
.tt-mid-note{font-size:11.5px;color:#9aa4ad;margin-bottom:8px}
.tt-kv{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;padding:4px 0;border-bottom:1px dashed #f0f3f5}
.tt-kv:last-child{border-bottom:0}
.tt-kv span{color:#8a949d}
.tt-kv b{color:#111820;font-weight:600}

.tt-videos{display:flex;flex-wrap:nowrap;gap:10px;overflow-x:auto;overflow-y:hidden;padding-bottom:10px;scroll-behavior:smooth}.tt-videos::-webkit-scrollbar{height:8px}.tt-videos::-webkit-scrollbar-track{background:#eef2f6;border-radius:4px}.tt-videos::-webkit-scrollbar-thumb{background:#c2ccd6;border-radius:4px}.tt-videos::-webkit-scrollbar-thumb:hover{background:#a3b0bd}.tt-videos{scrollbar-width:thin;scrollbar-color:#c2ccd6 #eef2f6}.tt-videos::-webkit-scrollbar-thumb{background:#c8d2da;border-radius:3px}.tt-video{flex:0 0 132px;min-width:132px;max-width:132px;overflow:hidden}
.tt-video{border:0;padding:0;text-align:left;border-radius:9px;overflow:hidden;background:#f4f7f9;position:relative;cursor:pointer;color:inherit}.tt-video:hover{box-shadow:0 5px 18px rgba(17,24,32,.14);transform:translateY(-1px)}
.tt-video-cover{position:relative;aspect-ratio:9/13;background:#dfe6ea}
.tt-video-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:1}
.tt-video-cover .tt-video-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:0;background:transparent;pointer-events:none}
.tt-video-cover .play{position:absolute;z-index:2;top:5px;left:5px;background:rgba(198,31,66,.92);color:#fff;font-size:10.5px;font-weight:700;border-radius:5px;padding:1px 6px}
.tt-video-cover .dur{position:absolute;z-index:2;top:5px;right:5px;background:rgba(17,24,32,.78);color:#fff;font-size:10px;border-radius:5px;padding:1px 5px}
.tt-video-cover .noimg{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(140deg,#2f3d46,#4a5b66);color:rgba(255,255,255,.4);font-size:20px}
.tt-video-meta{font-size:10.5px;color:#8a949d;padding:5px 6px 0;line-height:1.4}
.tt-video-pid{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:3px 2px 0;font-size:10px;color:#8a949d;min-width:0;overflow:hidden}.tt-video-pid b{font-weight:600;color:#111820;font-size:10px;letter-spacing:-.3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.tt-video-pid button{flex:none;border:1px solid #d7e0e7;background:#fff;border-radius:5px;font-size:9.5px;padding:0 5px;color:#3d4b56;cursor:pointer;line-height:16px}
.tt-video-pid button{border:1px solid #dbeafe;background:#f5f9ff;color:#2563eb;border-radius:4px;font-size:9.5px;padding:1px 4px;cursor:pointer}
.tt-empty-videos{font-size:12px;color:#9aa4ad;padding:18px;text-align:center;border:1px dashed #dde5ea;border-radius:9px}

.tt-empty{border:1px dashed #d5dfe5;border-radius:14px;padding:56px 24px;text-align:center;color:#8a949d;font-size:13px}
.tt-empty b{display:block;color:#36424a;font-size:15px;margin-bottom:8px}

.tt-form{display:grid;gap:14px}
.tt-form .row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tt-form label{display:grid;gap:6px;font-size:12px;color:#5e6972}
.tt-form input,.tt-form select,.tt-form textarea{border:1px solid #dce2e6;border-radius:9px;padding:10px 12px;font:inherit;font-size:13px;outline:0;width:100%}
.tt-form input:focus,.tt-form select:focus,.tt-form textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(10,163,155,.12)}
.tt-form textarea{resize:vertical;min-height:62px}
.tt-video-dialog{width:min(720px,calc(100vw - 28px))}.tt-video-dialog video,.tt-video-dialog #tt-video-body>img{display:block;width:100%;max-height:70vh;object-fit:contain;background:#000;border-radius:10px}.tt-video-detail{display:grid;gap:9px;margin-top:14px}.tt-video-detail span{font-size:12px;color:#7a858e}.tt-video-detail a{width:max-content;text-decoration:none}.tt-video-missing{min-height:260px;display:grid;place-items:center;background:#111820;color:#9aa4ad;border-radius:10px}

@media(max-width:900px){.tt-filters label{width:100%}.tt-filters input,.tt-filters select{min-width:0;width:100%}.tt-filter-actions{margin-left:0;width:100%}}

.tt-embed{width:340px;height:640px;max-width:92vw;max-height:70vh;border:0;border-radius:12px;background:#000;display:block;margin:0 auto}

/* 紧凑化：数据块加底板、行高收紧 */
.tt-row-body > div:nth-child(2){background:#f7f9fb;border:1px solid #eef2f6;border-radius:10px;padding:10px 12px}
.tt-row-body > div:nth-child(2) h4{font-size:12px;margin:0 0 6px;color:#5e6972;font-weight:600}
.tt-row-body > div:nth-child(2) .tt-seven, .tt-row-body > div:nth-child(2) dl, .tt-row-body > div:nth-child(2) ul{margin:0;padding:0}
.tt-row-body > div:nth-child(2) li, .tt-row-body > div:nth-child(2) .row{padding:3px 0;font-size:12px;line-height:1.5}
.tt-identity{padding-top:2px}
.tt-row-head{padding:7px 14px}
.tt-video-meta{padding:3px 4px 0;font-size:10px}
/* AI 助手 */
.ai-msg{display:flex;margin-bottom:10px}
.ai-msg.user{justify-content:flex-end}
.ai-bubble{max-width:78%;padding:9px 12px;border-radius:12px;font-size:13px;line-height:1.65;white-space:pre-wrap;word-break:break-word}
.ai-msg.user .ai-bubble{background:#17914f;color:#fff;border-bottom-right-radius:4px}
.ai-msg.assistant .ai-bubble{background:#fff;border:1px solid #e8edf0;color:#111820;border-bottom-left-radius:4px}
.ai-empty{color:#8a949d;font-size:13px;text-align:center;padding:40px 10px}
/* 飞书监控子页签 */
.fs-tabs{display:flex;gap:8px;margin:0 0 14px}
.fs-tab{border:1px solid #dfe6ec;background:#fff;color:#3d4b56;font-size:13px;padding:7px 16px;border-radius:9px;cursor:pointer}
.fs-tab.active{background:#17914f;border-color:#17914f;color:#fff;font-weight:600}
/* 近 28 天 GMV */
.tt-gmv{background:#f7f9fb;border:1px solid #eef2f6;border-radius:10px;padding:10px 12px;margin-bottom:10px;display:flex;flex-direction:column;gap:2px}
.tt-gmv small{font-size:11px;color:#8a949d}
.tt-gmv b{font-size:20px;color:#17914f;font-weight:700;letter-spacing:.3px}
/* 系统设置页签 */
.set-tab{border:1px solid #dfe6ec;background:#fff;color:#3d4b56;font-size:13px;padding:7px 16px;border-radius:9px;cursor:pointer;margin-right:8px}
.set-tab.active{background:#17914f;border-color:#17914f;color:#fff;font-weight:600}