.nav-label,.actions .btn,.segmented button{display:inline-flex;align-items:center;gap:7px}.nav-label svg,.sidebar-add svg{flex:0 0 auto}.actions .smart-refresh{min-width:116px;height:38px;gap:7px;border-color:#c9d6e3;background:linear-gradient(180deg,#fff,#f8fbff);color:#18324a;font-weight:800;box-shadow:0 1px 2px rgba(15,23,42,.05)}.actions .smart-refresh>span{display:inline;font-size:13px;line-height:1;white-space:nowrap}.actions .smart-refresh svg{width:16px;height:16px;color:#1769aa}.actions .smart-refresh:not(:disabled):hover{border-color:#94b8dc;background:#f3f8ff;box-shadow:0 3px 10px rgba(23,105,170,.11)}.actions .smart-refresh.loading svg{animation:refresh-spin .8s linear infinite}.actions .smart-refresh:disabled{opacity:.68}.sidebar-actions{display:grid;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}.sidebar-settings,.sidebar-add{width:100%;min-height:38px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:7px;font-weight:700;transition:background .16s,border-color .16s,color .16s,box-shadow .16s}.sidebar-settings{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:#cbd5e1}.sidebar-settings:hover,.sidebar-settings.active{border-color:rgba(148,163,184,.36);background:rgba(255,255,255,.09);color:#fff}.sidebar-add{border:1px solid rgba(255,255,255,.16);background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.055));color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 24px rgba(0,0,0,.12)}.sidebar-add svg{color:#ff7a8a}.sidebar-add:hover{border-color:rgba(255,122,138,.52);background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.075));box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 12px 28px rgba(0,0,0,.16)}.sidebar-actions span{font-size:13px}.active-job-mini{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:6px;align-items:center;border:1px solid #444b56;border-radius:6px;background:#292e35;color:#e9edf2;padding:8px;margin-bottom:8px;text-align:left;font-size:11px}.active-job-mini svg{animation:refresh-spin 1s linear infinite}.active-job-mini span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.data-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:7px;background:#fff;padding:10px 14px;margin-bottom:12px}.data-strip.warning{border-left-color:var(--amber)}.data-strip>div{display:flex;align-items:baseline;gap:10px}.data-strip span{color:var(--muted);font-size:12px}.workbench-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.8fr);gap:12px;margin-bottom:12px}.workbench-grid.lower{grid-template-columns:1fr 1fr}.action-queue .rank-item{grid-template-columns:38px minmax(0,1fr) 70px}.compact-stats .stat{min-height:94px;padding:13px}.compact-stats .stat-value{font-size:24px}
.view-switch{margin:0}.view-switch button{padding:5px 11px}.product-monitor-workspace{display:flex;flex-direction:column;min-height:calc(100vh - 88px)}.product-table-v2 .data-table{min-width:1060px;table-layout:fixed}.product-table-v2.decision .data-table{min-width:980px}.product-table-v2 th:nth-child(1){width:42px}.product-table-v2 th:nth-child(2){width:260px}.product-table-v2 th:nth-child(3){width:125px}.product-table-v2 th:nth-child(4){width:120px}.product-table-v2 th:nth-child(5),.product-table-v2 th:nth-child(6){width:100px}.product-table-v2 th:nth-last-child(3){width:125px}.product-table-v2 th:nth-last-child(2){width:130px}.product-table-v2 th:last-child{width:62px}.row-menu{position:relative}.row-menu summary{list-style:none;width:32px;height:30px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:#fff}.row-menu summary::-webkit-details-marker{display:none}.row-menu>div{position:absolute;right:0;top:34px;z-index:12;width:145px;border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.18);padding:5px}.row-menu button{width:100%;border:0;background:#fff;padding:8px;text-align:left;border-radius:4px}.row-menu button:hover{background:#f3f5f7}.product-mobile-list{display:none}.product-pagination{position:sticky;bottom:0;z-index:10;min-height:56px;margin-top:auto;padding:9px 12px;border:1px solid var(--line);border-radius:7px 7px 0 0;background:rgba(255,255,255,.97);box-shadow:0 -5px 16px rgba(15,23,42,.07);backdrop-filter:blur(8px)}.pagination-summary,.pagination-size,.page-buttons,.page-jump{display:flex;align-items:center;gap:7px}.pagination-summary{min-width:245px}.pagination-summary label{display:flex;align-items:center;gap:6px;color:var(--text);font-weight:600}.pagination-summary span{color:var(--muted)}.pagination-size{margin-left:auto}.compact-select{width:86px;min-height:32px;padding:5px 24px 5px 8px}.product-pagination .page-buttons{margin-left:8px}.product-pagination .page-buttons>span{white-space:nowrap;color:var(--text)}.page-jump{padding-left:5px}.page-jump .input{width:52px;min-height:32px;padding:5px 7px;text-align:center}.icon-only{width:32px;padding:5px;display:inline-grid;place-items:center}
.opportunity-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.opportunity-toolbar .quick-filters,.opportunity-toolbar .segmented{margin:0}.opportunity-toolbar-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.opportunity-sort{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.opportunity-sort .select{min-height:30px;padding:4px 26px 4px 10px;font-size:12px}.opportunity-board{display:flex;flex-direction:column;gap:14px;padding-bottom:8px}.kanban-column{border:1px solid var(--line);border-radius:8px;background:#eef1f4;display:flex;flex-direction:column;overflow:hidden}.kanban-column>header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-bottom:1px solid var(--line);background:#e9eef3}.kanban-column>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;flex:1;align-content:start}.kanban-column .opportunity-card{max-width:100%}.kanban-column-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 14px;border-top:1px solid var(--line);background:#e9eef3;font-size:11px;color:#475467}.kanban-column-foot .btn{min-height:26px;padding:4px 8px}.kanban-column-foot span{min-width:42px;text-align:center;font-variant-numeric:tabular-nums}.kanban-empty{padding:24px 8px;color:var(--muted);font-size:11px;text-align:center;border:1px dashed var(--line);border-radius:6px;background:rgba(255,255,255,.6);grid-column:1/-1}/* 机会池看板卡片 - 极简瘦身版（120-140px 单卡高度） */
.opportunity-card{display:flex;flex-direction:column;gap:6px;min-height:120px;max-height:140px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:7px;cursor:pointer;overflow:hidden}.opportunity-card:hover{border-color:#aeb8c4;box-shadow:0 4px 14px rgba(15,23,42,.07)}.opportunity-card-head{display:flex;align-items:flex-start;gap:10px;min-height:0}.opportunity-card-head .thumb{width:60px;height:60px;flex:0 0 auto;border-radius:6px}.opportunity-card-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;align-self:stretch}.opportunity-card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.4;color:var(--text);font-weight:600;word-break:break-word}.opportunity-card-meta{display:flex;align-items:center;gap:6px;margin-top:auto;font-size:11px;color:var(--muted);flex-wrap:wrap}.opportunity-card-days{padding:1px 6px;background:#f1f4f6;border-radius:4px;font-size:10px;color:#475467}.opportunity-card-growth{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:5px 10px;background:#f8fafc;border-radius:5px;font-size:11px}.opportunity-card-growth-label{color:var(--muted)}.opportunity-card-growth strong{font-size:14px;font-weight:700}.metric-up{color:#027a48}.metric-down{color:#b42318}.metric-flat{color:#667085}.opportunity-card-foot{display:flex;align-items:center;gap:6px;padding-top:6px;border-top:1px solid var(--line)}.opportunity-card-foot .btn{flex:0 0 auto}.opportunity-card-stage-tag{flex:0 0 auto;font-size:10px;padding:2px 7px}.opportunity-card-select{flex:1;min-width:0;min-height:28px;padding:4px 24px 4px 8px;font-size:11px}.opportunity-table{min-width:1380px}.opportunity-table td:nth-child(9){color:var(--muted);font-size:11px;white-space:nowrap}.opportunity-table .opportunity-product-head,.opportunity-table .opportunity-product-cell{width:300px;min-width:280px}.opportunity-table .opportunity-price-head,.opportunity-table .opportunity-price-cell{width:120px;min-width:110px}.opportunity-table .opportunity-today-head,.opportunity-table .opportunity-today-cell,.opportunity-table .opportunity-week-head,.opportunity-table .opportunity-week-cell{width:128px;min-width:120px;vertical-align:top}.opportunity-table .growth-cell{position:relative;padding-top:10px;padding-bottom:10px}.opportunity-table .growth-trigger{display:grid;gap:4px;width:100%;min-height:48px;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.opportunity-table .growth-trigger>span{font-size:11px;color:var(--muted);white-space:nowrap}.opportunity-table .growth-trigger:hover strong,.opportunity-table .growth-trigger:focus strong{text-decoration:underline}.opportunity-table .spark-cell{display:grid;gap:3px;justify-items:start;width:100%}.opportunity-table .spark-cell strong{font-size:13px}.opportunity-table .spark-cell .sparkline{height:22px;width:100%;max-width:108px;display:block}.opportunity-table .spark-cell .sparkline polyline{stroke:var(--blue);stroke-width:1.5;fill:none}.opportunity-table .spark-cell .sparkline .baseline{stroke:var(--line);stroke-width:1;fill:none}.opportunity-table .opportunity-product-cell .product-cell{align-items:flex-start;gap:10px}.opportunity-table .opportunity-product-cell .thumb{width:54px;height:54px;flex:0 0 auto}.opportunity-table .opportunity-product-cell .product-copy{min-width:0;display:flex;flex-direction:column;gap:4px}.opportunity-table .opportunity-product-cell .product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.4;color:var(--text);font-weight:600;word-break:break-word}.opportunity-table .opportunity-product-cell .product-sub{color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.opportunity-table .opportunity-price-cell .cell-stack{display:flex;flex-direction:column;gap:3px;align-items:flex-start}.opportunity-table .opportunity-price-cell .cell-stack strong{font-size:13px;color:var(--text)}.opportunity-table .opportunity-price-cell .cell-stack span{font-size:11px;color:var(--muted)}.empty-illustration{width:78px;height:78px;display:grid;place-items:center;border-radius:50%;background:var(--blue-soft);color:var(--blue)}.opportunity-list-wrap{display:flex;flex-direction:column;gap:10px;min-height:420px}.opportunity-pagination{position:sticky;bottom:0;z-index:8;display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:12px;min-height:52px;padding:9px 14px;border:1px solid var(--line);border-radius:7px;background:rgba(255,255,255,.97);box-shadow:0 -5px 16px rgba(15,23,42,.06);backdrop-filter:blur(6px)}
.source-worktable{min-width:1050px}.source-worktable th:first-child{width:230px}.source-worktable tbody tr{cursor:pointer}.supplier-workspace{width:min(960px,96vw)}.drawer-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.supplier-profile{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 0}.bind-product-list{display:grid;gap:5px;max-height:330px;overflow:auto;margin:10px 0}.bind-product-list label{display:grid;grid-template-columns:22px 40px minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:7px}.bind-product-list .thumb{width:40px;height:40px}.bind-product-list small{color:var(--muted)}.linked-source-list{margin-top:18px}.candidate-editor{border:1px solid var(--line);border-left:4px solid #c3cad4;border-radius:7px;padding:10px;margin-bottom:8px}.candidate-editor.primary{border-left-color:var(--green);background:#fbfefc}.candidate-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.candidate-editor header>div:first-child{display:grid;gap:3px}.candidate-editor header span{color:var(--muted);font-size:11px}.candidate-editor header>div:last-child{display:flex;gap:6px}.candidate-summary{display:flex;gap:14px;flex-wrap:wrap;color:var(--muted);font-size:11px;margin-top:8px}.candidate-form{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}.candidate-form .wide{grid-column:1/-1}.candidate-actions{grid-column:1/-1;display:flex;justify-content:space-between}.candidate-add{display:grid;grid-template-columns:180px minmax(230px,1fr) 120px auto;gap:8px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line-strong)}
.analysis-toolbar{display:grid;grid-template-columns:auto 145px 145px 150px minmax(150px,1fr) auto auto;gap:8px;align-items:end;padding:12px;margin-bottom:12px}.analysis-toolbar .segmented{margin:0 0 1px}.analysis-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(330px,.7fr);gap:12px;margin-bottom:12px}.analysis-chart{height:330px}.insight-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.rule-insight{border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:6px;padding:10px}.rule-insight.warning{border-top-color:var(--amber)}.rule-insight.positive{border-top-color:var(--green)}.rule-insight p{color:var(--muted);font-size:12px;line-height:1.5;margin:6px 0 0}.ai-report h3{font-size:16px;line-height:1.5}.ai-section{border-top:1px solid var(--line);padding-top:9px;margin-top:9px}.ai-section ul{padding-left:18px;margin:6px 0;color:#475467;font-size:12px;line-height:1.6}.confidence{margin-top:12px;color:var(--muted);font-size:12px}.ai-empty{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);gap:8px}.ai-empty strong{color:var(--text)}.ai-empty p{font-size:12px;max-width:280px}.report-history{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.report-history button{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px;text-align:left;border:1px solid var(--line);border-radius:6px;background:#fff;padding:10px}.report-history button.active{border-color:var(--blue);background:var(--blue-soft)}.report-history button span{grid-column:1;color:var(--muted);font-size:11px}.report-history .badge{grid-column:2;grid-row:1/3}
/* 商品详情抽屉：左侧浮窗，不允许全屏；双类选择器确保胜过 styles.css 的 .drawer{width:720px} */
.drawer.product-drawer-v2,.product-drawer-v2{width:min(960px,72vw);max-width:100vw;height:100vh;max-height:100vh;transition:width .18s}
.product-drawer-v2.fullscreen{display:none}.drawer-title-block{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px;align-items:center;min-width:0}.drawer-title-block .thumb{width:48px;height:48px}.drawer-title-block h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.drawer-head-actions{display:flex;gap:7px}.icon-btn{width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:#fff}.drawer-kpis{display:grid;grid-template-columns:repeat(5,1fr);border-bottom:1px solid var(--line);background:#f8fafc}.drawer-kpis>div{padding:10px 14px;border-right:1px solid var(--line)}.drawer-kpis>div:last-child{border-right:0}.drawer-kpis span{display:block;color:var(--muted);font-size:10px}.drawer-kpis strong{display:block;font-size:17px;margin-top:4px}.warning-box p{margin:5px 0}.warning-box span{font-size:11px}.readiness-detail{margin-top:14px;border:1px solid var(--line);border-radius:7px;padding:12px}.readiness-detail>div:not(.section-title){display:flex;align-items:center;gap:7px;padding:6px;color:var(--muted)}.readiness-detail>div.done{color:var(--green)}
@media(max-width:1180px){.analysis-toolbar{grid-template-columns:repeat(3,1fr)}.analysis-toolbar .segmented{grid-column:1/-1}.product-drawer-v2{width:min(900px,92vw)}}
@media(max-width:1180px){.product-pagination{flex-wrap:wrap}.pagination-summary{min-width:0}.pagination-size{margin-left:0}.product-pagination .page-buttons{width:100%;margin-left:0;justify-content:flex-end}}
@media(max-width:1100px){.kanban-column>div{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:820px){.kanban-column>div{grid-template-columns:repeat(2,minmax(0,1fr))}}.workbench-grid,.workbench-grid.lower,.analysis-layout{grid-template-columns:1fr}.data-strip{align-items:flex-start;flex-direction:column}.candidate-add{grid-template-columns:1fr 1fr}.analysis-toolbar{grid-template-columns:1fr 1fr}.analysis-toolbar .segmented{grid-column:1/-1}.insight-grid,.report-history{grid-template-columns:1fr}.product-drawer-v2{width:100vw}
@media(max-width:900px){.sidebar-actions{grid-template-columns:auto auto;justify-content:start;margin-top:10px;padding-top:10px}.sidebar-settings,.sidebar-add{width:auto;min-height:34px;padding:0 12px}.sidebar-actions span{font-size:12px}}
@media(max-width:560px){.nav-label svg{display:none}.product-table-v2{display:none}.product-mobile-list{display:grid;gap:8px}.product-mobile-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid var(--line);border-radius:7px;background:#fff;padding:9px;text-align:left}.product-mobile-card strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px}.product-mobile-card span{display:block;color:var(--muted);font-size:11px;margin-top:4px}.product-pagination{position:static;display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}.pagination-summary span{display:none}.product-pagination .page-buttons{grid-column:1/-1;justify-content:space-between;flex-wrap:wrap}.page-jump{order:5;width:100%;justify-content:flex-end}.product-pagination .page-buttons>span{order:4}.opportunity-stats .stat:nth-child(n+3){display:none}.opportunity-toolbar{align-items:flex-start;flex-direction:column}.opportunity-toolbar-tools{width:100%;justify-content:space-between}.kanban-column>div{grid-template-columns:1fr}.candidate-form,.candidate-add{grid-template-columns:1fr}.candidate-form .wide,.candidate-actions{grid-column:auto}.analysis-toolbar{grid-template-columns:1fr}.analysis-toolbar .segmented{grid-column:auto}.drawer-kpis{grid-template-columns:repeat(3,1fr)}.drawer-kpis>div:nth-child(n+4){display:none}.candidate-editor>header{flex-direction:column}.candidate-editor header>div:last-child{width:100%}.bind-product-list label{grid-template-columns:20px 36px minmax(0,1fr)}.bind-product-list label small{display:none}.opportunity-pagination{grid-template-columns:1fr auto;gap:8px}.opportunity-pagination .page-buttons{grid-column:1/-1;justify-content:space-between;flex-wrap:wrap;margin-left:0}}
.product-table-v2{flex:1;min-height:0}
.workbench-scroll-card{padding:12px 14px}.workbench-scroll-card .section-title{margin-bottom:6px}.workbench-scroll-list{max-height:252px;overflow-y:auto;scrollbar-gutter:stable;padding-right:4px}.workbench-scroll-list .rank-item,.workbench-scroll-list .alert-item{padding:8px 0}.data-progress{display:flex;align-items:center;gap:8px}.progress-ring{--progress:0deg;position:relative;width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:conic-gradient(var(--green) var(--progress),#e7ebef 0)}.progress-ring::before{content:"";position:absolute;inset:4px;border-radius:50%;background:#fff}.progress-ring b{position:relative;font-size:10px;color:#344054}.data-progress>span:last-child{display:grid;gap:2px}.data-progress strong{font-size:12px}.data-progress small{font-size:10px;color:var(--muted)}.source-readiness{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:650}.source-readiness.ready{color:var(--green)}.source-readiness.pending{color:#9a6700}.source-readiness.empty{color:var(--muted)}

/* Workbench rows are buttons, so reset button text flow before applying the grid. */
.rank-item.btn.link,
.alert-item.btn.link{
  width:100%;
  display:grid;
  text-align:left;
  white-space:normal;
}
.rank-item .rank-index,
.alert-item .rank-index{
  justify-self:center;
}
.rank-item .rank-main,
.alert-item .rank-main{
  width:100%;
  min-width:0;
  display:grid;
  gap:3px;
  align-content:center;
  justify-self:stretch;
  text-align:left;
}
.rank-item .rank-name,
.alert-item .rank-name{
  width:100%;
  text-align:left;
}
.rank-item .rank-meta,
.alert-item .rank-meta{
  margin-top:0;
  justify-content:flex-start;
  text-align:left;
}
.rank-item .rank-value,
.alert-item > :last-child{
  justify-self:end;
}

.opportunity-context{display:grid;gap:5px;margin:9px 0;padding:8px;border:1px solid var(--line);border-radius:6px;background:#fbfcfd}.opportunity-context>div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:7px;font-size:11px;line-height:1.45}.opportunity-context b{color:#344054}.opportunity-context span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ops-note-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ops-note-pair textarea{min-height:92px;resize:vertical}.field-help{display:block;min-height:30px;margin:-1px 0 5px;color:var(--muted);font-size:11px;line-height:1.4}.supplier-candidate-workspace{margin:0 0 16px;padding:13px;border:1px solid var(--line);border-radius:7px;background:#fbfcfd}.supplier-candidate-workspace>.section-title{margin-bottom:10px}.supplier-bind-section{margin-top:0}.supplier-choice-note{margin:7px 0;font-size:11px}

.jobs-workspace{display:flex;flex-direction:column;min-height:calc(100vh - 88px);padding-bottom:68px}.job-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.job-grid .job-card{display:flex;flex-direction:column;min-width:0;min-height:190px;padding:12px}.job-grid .job-card.expanded{grid-column:1/-1;min-height:auto}.job-grid .job-head{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:8px;align-items:start}.job-select{display:grid;place-items:center;min-height:24px}.job-select input{width:15px;height:15px}.job-heading{min-width:0}.job-grid .job-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.job-grid .job-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.job-grid .progress-track{margin-top:12px}.job-grid .job-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:9px}.job-grid .job-counts span{text-align:center;white-space:nowrap}.job-card-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:auto;padding-top:12px}.job-grid .job-details{max-height:300px;overflow:auto}.job-bulk-bar{position:sticky;top:0;z-index:9;display:flex;align-items:center;gap:10px;margin-bottom:9px;padding:9px 12px;border:1px solid #b9cee4;border-radius:7px;background:#eef6ff;box-shadow:0 3px 10px rgba(15,23,42,.05)}.job-bulk-bar span{color:var(--muted);font-size:12px}.job-bulk-bar .btn.primary{margin-left:auto}.job-pagination{position:fixed;left:246px;right:22px;bottom:0;z-index:24;margin-top:0}

@media(max-width:1180px){.job-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.job-pagination{left:14px;right:14px}}
@media(max-width:760px){.job-grid{grid-template-columns:1fr}.ops-note-pair{grid-template-columns:1fr}.field-help{min-height:0}.job-bulk-bar{align-items:flex-start;flex-wrap:wrap}.job-bulk-bar .btn.primary{margin-left:0}.job-grid .job-card.expanded{grid-column:auto}}
@media(max-width:560px){.job-pagination{left:10px;right:10px}}

.supplier-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:12px}.supplier-card-v2{display:grid;gap:13px;padding:15px}.supplier-card-v2>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.supplier-card-title{display:flex;align-items:center;gap:8px;min-width:0}.supplier-card-title strong{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.supplier-card-v2>header>div>span{display:block;margin-top:5px;color:var(--muted);font-size:12px}.supplier-card-capabilities{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;padding:9px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px}.supplier-card-capabilities span,.supplier-card-capabilities a{display:inline-flex;align-items:center;gap:5px;color:var(--muted)}.supplier-card-capabilities a{color:var(--blue);text-decoration:none}.supplier-source-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.supplier-source-metrics>div{padding:8px;border-radius:6px;background:#f5f7f9}.supplier-source-metrics span{display:block;color:var(--muted);font-size:10px}.supplier-source-metrics strong{display:block;margin-top:4px;font-size:16px}.supplier-card-progress{display:flex;align-items:center;justify-content:space-between;gap:12px}.supplier-card-progress>div:last-child{text-align:right}.supplier-card-progress>div:last-child span{display:block;color:var(--muted);font-size:10px}.supplier-card-progress>div:last-child strong{display:block;margin-top:3px;font-size:12px}.supplier-card-v2>footer{display:flex;align-items:center;gap:7px;padding-top:2px}.supplier-card-v2>footer .btn.primary{margin-right:auto}.supplier-directory-empty{grid-column:1/-1}.supplier-profile-url{grid-column:1/-1}.supplier-workspace .drawer-head{align-items:flex-start}.supplier-workspace .drawer-head-actions{flex-wrap:wrap;justify-content:flex-end}.supplier-workspace-kpis{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);background:#f8fafc}.supplier-workspace-kpis>div{padding:11px 16px;border-right:1px solid var(--line)}.supplier-workspace-kpis>div:last-child{border-right:0}.supplier-workspace-kpis span{display:block;color:var(--muted);font-size:10px}.supplier-workspace-kpis strong{display:block;margin-top:4px;font-size:19px}.supplier-workspace-tabs{display:flex;gap:3px;padding:8px 16px 0;border-bottom:1px solid var(--line);background:#fff}.supplier-workspace-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 13px;color:var(--muted);font-weight:650}.supplier-workspace-tabs button.active{border-bottom-color:var(--accent);color:var(--text)}.supplier-workspace-tabs b{display:inline-grid;place-items:center;min-width:20px;margin-left:4px;padding:1px 5px;border-radius:999px;background:#edf0f3;font-size:10px}.supplier-bind-actions{display:flex;justify-content:space-between;gap:8px;margin-top:10px}.candidate-editor>header>div:last-child{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.candidate-form textarea{min-height:72px;resize:vertical}

.supplier-workspace-tabs button{display:inline-flex;align-items:center;gap:6px}.supplier-workspace .drawer-body{background:#f6f8fa}.supplier-contact-section,.supplier-linked-section,.supplier-bind-section{max-width:920px;margin:0 auto;padding:18px;background:#fff;border:1px solid var(--line);border-radius:7px}.supplier-module-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}.supplier-module-head>div{display:grid;gap:4px}.supplier-module-head strong{font-size:16px}.supplier-module-head span{color:var(--muted);font-size:12px;line-height:1.45}.supplier-contact-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px}.supplier-contact-wide{grid-column:1/-1}.supplier-contact-form textarea{min-height:78px;resize:vertical}.input-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.supplier-module-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:17px;padding-top:14px;border-top:1px solid var(--line)}.supplier-module-actions>span{max-width:620px;color:var(--muted);font-size:11px;line-height:1.45}.supplier-linked-list{display:grid;gap:8px}.supplier-linked-row{display:grid;grid-template-columns:48px minmax(180px,1.3fr) minmax(260px,1fr) auto;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}.supplier-linked-row:last-child{border-bottom:0}.supplier-linked-row .thumb{width:48px;height:48px}.supplier-linked-main{min-width:0}.supplier-linked-main strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:13px;line-height:1.4}.supplier-linked-main span{display:block;margin-top:4px;color:var(--muted);font-size:11px}.supplier-linked-facts{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.supplier-linked-facts span{padding:4px 7px;border-radius:4px;background:#f1f4f6;color:#475467;font-size:10px}.supplier-linked-actions{display:flex;gap:6px}.supplier-bind-section .bind-product-list{max-height:480px}.supplier-bind-section>.input{margin-bottom:8px}

@media(max-width:860px){.supplier-linked-row{grid-template-columns:44px minmax(0,1fr) auto}.supplier-linked-facts{grid-column:2/4}.supplier-linked-actions{grid-column:2/4;justify-content:flex-end}}
@media(max-width:700px){.supplier-directory{grid-template-columns:1fr}.supplier-card-v2>footer{align-items:stretch;flex-direction:column}.supplier-card-v2>footer .btn{width:100%;margin:0}.supplier-workspace-kpis{grid-template-columns:repeat(2,1fr)}.supplier-workspace .drawer-head-actions{width:100%;justify-content:flex-start}.supplier-workspace .drawer-head{flex-wrap:wrap}.supplier-source-metrics{grid-template-columns:repeat(2,1fr)}.supplier-workspace-tabs{overflow-x:auto}.supplier-workspace-tabs button{white-space:nowrap}.supplier-contact-section,.supplier-linked-section,.supplier-bind-section{padding:12px}.supplier-contact-form{grid-template-columns:1fr}.supplier-contact-wide{grid-column:auto}.supplier-module-head,.supplier-module-actions{align-items:stretch;flex-direction:column}.supplier-module-actions .btn{width:100%}.supplier-linked-row{grid-template-columns:40px minmax(0,1fr)}.supplier-linked-facts,.supplier-linked-actions{grid-column:1/-1}.supplier-linked-actions{justify-content:flex-start}.input-action{grid-template-columns:1fr}.input-action .btn{width:100%}}
.clickable-stat{cursor:pointer;transition:border-color .15s,background .15s}.clickable-stat:hover{border-color:#b9cee4;background:#f6faff}.stat-link-hint{display:block;margin-top:6px;color:var(--blue);font-size:10px}

/* Collection center: one task per row, with a clear distinction between action queue and history. */
.jobs-center{display:flex;flex-direction:column;gap:12px;min-height:calc(100vh - 108px)}.jobs-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.health-card{min-height:104px;padding:14px 15px;border:1px solid var(--line);border-radius:8px;background:#fff;text-align:left}.health-card span,.health-card small{display:block;color:var(--muted);font-size:11px}.health-card strong{display:block;margin:8px 0 4px;font-size:25px;line-height:1}.health-card .health-time{font-size:18px}.health-card small{font-size:11px}.health-action{cursor:pointer}.health-action:hover{border-color:#aeb8c4;background:#fbfcfd}.health-action.has-error{border-color:#e7b9b1;background:#fff9f8}.health-action.has-error strong{color:var(--red)}.jobs-schedule-panel{padding:12px 14px}.jobs-module-title h2{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:800}.jobs-module-title h2::before{content:"";width:3px;height:18px;border-radius:99px;background:var(--blue)}.jobs-schedule-controls{display:flex;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap}.jobs-time-inline{display:flex;align-items:center;gap:8px;color:#344054;font-size:12px;font-weight:700}.jobs-time-inline .input{width:118px}.jobs-schedule-controls .btn{height:34px}.jobs-schedule-panel .schedule-preview{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 10px;border:1px solid var(--line);border-radius:6px;background:#f8fafc}.jobs-schedule-panel .schedule-preview span{color:var(--muted);font-size:11px}.jobs-schedule-panel .schedule-preview strong{font-size:13px;white-space:nowrap}.jobs-live-strip{display:grid;grid-template-columns:minmax(250px,1fr) minmax(180px,2fr) auto;align-items:center;gap:12px;padding:10px 13px;border:1px solid #b9cee4;border-radius:8px;background:#f5f9ff}.jobs-live-strip>div:first-child{display:flex;align-items:center;gap:7px;min-width:0}.jobs-live-strip>div:first-child svg{color:var(--blue);animation:refresh-spin 1s linear infinite}.jobs-live-strip>div:first-child span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px}.jobs-live-progress{height:7px;border-radius:999px;background:#dfe9f4;overflow:hidden}.jobs-live-progress i,.job-mini-progress i{display:block;height:100%;border-radius:inherit;background:var(--blue);transition:width .2s}.jobs-queue-panel,.jobs-history-panel{padding:14px}.jobs-queue-panel>.section-title{margin-bottom:10px}.jobs-queue-actions{display:flex;align-items:center;gap:7px}.jobs-queue-actions .btn{display:inline-flex;align-items:center;gap:5px}.job-selection-note{display:flex;align-items:center;gap:7px;margin:0 0 10px;padding:8px 10px;border:1px solid #c4d8ef;border-radius:6px;background:#f4f8fd;color:var(--muted);font-size:12px}.job-selection-note .btn{margin-left:auto}.jobs-queue-empty .compact-empty{min-height:132px}.jobs-queue-empty .compact-empty .btn{border-color:var(--blue);background:var(--blue);color:#fff}.job-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:7px 7px 0 0}.job-table{width:100%;border-collapse:collapse;table-layout:fixed}.job-table th,.job-table td{padding:10px 9px;border-bottom:1px solid var(--line);text-align:left;font-size:12px;vertical-align:middle}.job-table th{background:#f8fafc;color:var(--muted);font-weight:700;white-space:nowrap}.job-table tr:last-child td{border-bottom:0}.job-table tbody tr{cursor:pointer}.job-table tbody tr:hover{background:#fafcfe}.job-table tbody tr.job-highlight{background:#fff7ee;box-shadow:inset 3px 0 var(--amber)}.job-table th:nth-child(1),.job-table td:nth-child(1){width:38px}.job-table th:nth-child(2),.job-table td:nth-child(2){width:125px}.job-table th:nth-child(3),.job-table td:nth-child(3){width:250px}.job-table th:nth-child(4),.job-table td:nth-child(4){width:180px}.job-table th:nth-child(5),.job-table td:nth-child(5){width:150px}.job-table th:nth-child(6),.job-table td:nth-child(6){width:135px}.job-table th:last-child,.job-table td:last-child{width:150px}.job-table.history th:nth-child(1),.job-table.history td:nth-child(1){width:140px}.job-table.history th:nth-child(2),.job-table.history td:nth-child(2){width:auto}.job-table.history th:nth-child(3),.job-table.history td:nth-child(3){width:110px}.job-table.history th:nth-child(4),.job-table.history td:nth-child(4){width:110px}.job-table.history th:nth-child(5),.job-table.history td:nth-child(5){width:110px}.job-table.history th:nth-child(6),.job-table.history td:nth-child(6){width:135px}.job-table.history th:last-child,.job-table.history td:last-child{width:120px}.job-check{width:38px!important;text-align:center!important}.job-content-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.job-table td small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.job-status-line{display:flex;align-items:center;justify-content:space-between;gap:7px}.job-status-line>span{color:var(--muted);font-size:11px}.job-mini-progress{height:5px;margin-top:7px;border-radius:999px;background:#e7ebef;overflow:hidden}.job-table td:nth-child(5){display:flex;gap:8px;flex-wrap:wrap}.jobs-history-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;background:#fff;text-align:left;cursor:pointer;padding:1px}.jobs-history-toggle>span{display:flex;align-items:center;gap:8px}.jobs-history-toggle svg{color:var(--muted)}.jobs-history-toggle strong{font-size:14px}.jobs-history-toggle small{color:var(--muted);font-size:11px}.jobs-pagination{position:static;display:grid;grid-template-columns:minmax(250px,1fr) auto auto;align-items:center;gap:10px;margin:0;min-height:52px;padding:8px 10px;border:1px solid var(--line);border-top:0;border-radius:0 0 7px 7px;background:#fff}.jobs-pagination .pagination-summary{min-width:0}.job-detail-drawer{width:min(680px,94vw)}.jobs-history-scroll{max-height:520px;overflow-y:auto;overflow-x:auto;border:1px solid var(--line);border-radius:7px 7px 0 0;scrollbar-gutter:stable}.jobs-history-scroll .job-table{border:0}.jobs-history-scroll .job-table th{position:sticky;top:0;z-index:1}.job-detail-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:15px 0}.job-detail-summary>div{padding:10px;border:1px solid var(--line);border-radius:6px;background:#f8fafc}.job-detail-summary span{display:block;color:var(--muted);font-size:11px}.job-detail-summary strong{display:block;margin-top:5px;font-size:19px}.job-detail-heading{margin:5px 0 10px}.job-detail-items{display:grid;gap:8px}.job-detail-item{padding:11px;border:1px solid var(--line);border-left:3px solid #cbd5e1;border-radius:6px;background:#fff}.job-detail-item.success{border-left-color:var(--green)}.job-detail-item.failed{border-left-color:var(--red);background:#fffafa}.job-detail-item.running{border-left-color:var(--blue)}.job-item-top{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px}.job-detail-item>a{display:block;overflow:hidden;color:var(--blue);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.job-detail-item p{margin:7px 0;font-size:12px;line-height:1.5}.job-detail-item .btn{margin-top:5px}

@media(max-width:900px){.jobs-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.jobs-live-strip{grid-template-columns:1fr auto}.jobs-live-progress{grid-column:1/-1;grid-row:2}.jobs-pagination{left:14px;right:14px}.job-detail-drawer{width:100vw}}

/* Jobs center v3: exception-first console with inline handling. */
.jobs-center{gap:10px;min-height:calc(100vh - 108px)}
.jobs-command-panel{display:grid;gap:11px;padding:12px 14px}
.jobs-command-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.jobs-command-head h2{margin:0;font-size:18px}
.jobs-command-head span{display:block;margin-top:3px;color:var(--muted);font-size:12px}
.jobs-status-strip{display:grid;grid-template-columns:130px 150px 130px minmax(170px,1fr) 150px;gap:7px}
.jobs-status-chip{display:grid;align-content:center;min-height:58px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:#f8fafc;text-align:left}
button.jobs-status-chip{cursor:pointer}
button.jobs-status-chip:hover{border-color:#b9c6d6;background:#f3f8ff}
.jobs-status-chip.danger{border-color:#e8b8b0;background:#fff7f5}
.jobs-status-chip span,.jobs-status-chip small{color:var(--muted);font-size:11px}
.jobs-status-chip strong{display:block;margin-top:3px;font-size:19px;line-height:1.05}
.jobs-command-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.jobs-command-actions .btn{display:inline-flex;align-items:center;gap:6px;min-height:34px}
.btn.danger-lite{border-color:#e7b9b1;background:#fff9f8;color:#a43328}
.btn.danger-lite:not(:disabled):hover{background:#fff1ee;border-color:#d99084}
.jobs-schedule-panel.compact{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px}
.jobs-schedule-panel.compact>div:first-child{display:flex;align-items:center;gap:8px;min-width:0}
.jobs-schedule-panel.compact svg{color:var(--blue);flex:0 0 auto}
.jobs-schedule-panel.compact strong{font-size:13px;white-space:nowrap}
.jobs-schedule-panel.compact span{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jobs-schedule-panel.compact .jobs-schedule-controls{flex:1 1 100%;margin-top:0}
.jobs-schedule-panel.compact:has(.jobs-schedule-controls){flex-wrap:wrap}
.jobs-queue-panel,.jobs-history-panel{padding:12px 14px}
.jobs-module-title h2{font-size:16px}
.jobs-queue-tabs{display:inline-flex;align-items:center;gap:3px;padding:3px;border:1px solid var(--line);border-radius:7px;background:#f8fafc}
.jobs-queue-tabs button{border:0;border-radius:5px;background:transparent;color:var(--muted);padding:5px 9px;font-size:12px;font-weight:700}
.jobs-queue-tabs button.active{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(15,23,42,.08)}
.jobs-card-list{display:grid;gap:8px}
.job-card-v3{border:1px solid var(--line);border-left:3px solid #cbd5e1;border-radius:8px;background:#fff;overflow:hidden}
.job-card-v3.blue{border-left-color:var(--blue)}
.job-card-v3.red{border-left-color:var(--red);background:#fffafa}
.job-card-v3.green{border-left-color:var(--green)}
.job-card-v3.amber{border-left-color:var(--amber)}
.job-card-v3.job-highlight{box-shadow:inset 0 0 0 1px #f3b56a;background:#fff8ef}
.job-card-v3>header{display:grid;grid-template-columns:minmax(240px,1fr) 92px 120px auto;gap:10px;align-items:center;padding:10px 11px}
.job-card-main{display:grid;gap:4px;min-width:0}
.job-card-main .badge{width:max-content}
.job-card-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.job-card-main span,.job-card-meta small,.job-card-result small{color:var(--muted);font-size:11px}
.job-card-result{display:grid;grid-template-columns:auto auto auto;align-items:baseline;justify-content:start;gap:3px}
.job-card-result small{grid-column:1/-1}
.job-card-result strong{font-size:18px}
.job-card-meta{display:grid;gap:3px}
.job-card-meta>span{font-weight:800}
.job-card-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.job-card-actions .btn{display:inline-flex;align-items:center;gap:5px}
.job-mini-progress{height:5px;margin:0 11px 10px;border-radius:999px;background:#e7ebef;overflow:hidden}
.job-mini-progress.active i{min-width:22px;animation:job-progress-pulse 1.1s ease-in-out infinite}
@keyframes job-progress-pulse{0%,100%{opacity:.55}50%{opacity:1}}
.job-inline-detail{border-top:1px solid var(--line);background:#fbfcfd;padding:10px 11px 11px}
.job-inline-head{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.job-inline-head span{color:var(--muted);font-size:12px}
.job-inline-head .btn{margin-left:auto}
.job-inline-items{display:grid;gap:7px}
.job-inline-item{display:grid;grid-template-columns:135px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:7px;background:#fff}
.job-inline-item.failed{border-color:#e7b9b1;background:#fff8f7}
.job-inline-item>div{display:flex;gap:5px;flex-wrap:wrap}
.job-inline-item>a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--blue);font-size:12px;text-decoration:none}
.job-inline-item p{grid-column:2/-1;margin:0;color:var(--red);font-size:12px}
.job-inline-empty{padding:8px 0;font-size:12px}
.jobs-queue-empty .compact-empty{min-height:118px}
.jobs-history-head{margin-bottom:8px}
.jobs-history-toggle{padding:0}
.jobs-timeline{display:grid;gap:7px;position:relative}
.jobs-timeline .job-card-v3{border-left-width:3px}
.jobs-timeline .job-card-v3>header{grid-template-columns:minmax(230px,1fr) 92px 112px auto;padding:9px 10px}
.jobs-timeline .job-card-v3 .job-mini-progress{display:none}

@media(max-width:1180px){
  .jobs-status-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
  .job-card-v3>header,.jobs-timeline .job-card-v3>header{grid-template-columns:minmax(220px,1fr) 90px auto}
  .job-card-meta{grid-column:2;grid-row:2}
  .job-card-actions{grid-column:3;grid-row:1/3}
  .job-inline-item{grid-template-columns:120px minmax(0,1fr)}
  .job-inline-item .btn{grid-column:2}
}
@media(max-width:760px){
  .jobs-status-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jobs-command-actions .btn{flex:1 1 160px;justify-content:center}
  .jobs-schedule-panel.compact{align-items:flex-start;flex-direction:column}
  .jobs-schedule-panel.compact>div:first-child{width:100%;flex-wrap:wrap}
  .job-card-v3>header,.jobs-timeline .job-card-v3>header{grid-template-columns:1fr}
  .job-card-result,.job-card-meta,.job-card-actions{grid-column:auto;grid-row:auto}
  .job-card-actions{justify-content:flex-start}
  .job-inline-head{align-items:flex-start;flex-direction:column}
  .job-inline-head .btn{margin-left:0}
  .job-inline-item{grid-template-columns:1fr}
  .job-inline-item p,.job-inline-item .btn{grid-column:auto}
}

/* Compact supplier cards keep capability signals beside the supplier name. */
.supplier-card-v2{gap:9px;padding:11px}
.supplier-card-v2>header{display:block}
.supplier-card-heading{min-width:0}
.supplier-card-title-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.supplier-card-capabilities{justify-content:flex-start;align-self:center;gap:4px 6px;padding:1px 0 0;border:0;font-size:10.5px}
.supplier-card-capabilities span,.supplier-card-capabilities a{white-space:nowrap}
.supplier-card-capabilities svg{width:13px;height:13px}
.supplier-card-v2 .supplier-source-metrics{gap:6px}
.supplier-card-v2 .supplier-source-metrics>div{padding:6px 8px}
.supplier-card-v2 .supplier-source-metrics strong{margin-top:2px;font-size:14px}
.supplier-card-v2 .supplier-card-progress{min-height:32px}
.supplier-card-v2>footer{padding-top:0}
.job-table.history .btn{min-width:76px}
@media(max-width:1000px){.supplier-card-capabilities{justify-content:flex-start}}
@media(max-width:700px){.supplier-card-v2>header{display:block}.supplier-card-title-line{align-items:flex-start}.supplier-card-capabilities{justify-content:flex-start}}

/* Account/device ledger: one dense worktable for collection accounts, phones and devices. */
.account-device-page{display:grid;align-content:start;gap:10px}
.account-device-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.account-device-stats article{min-height:58px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 2px 8px rgba(15,23,42,.04)}
.account-device-stats span,.account-device-stats small{display:block;color:var(--muted);font-size:12px}
.account-device-stats strong{display:block;margin:3px 0 2px;color:var(--text);font-size:22px;line-height:1}
.account-device-panel{padding:0;overflow:hidden}
.account-device-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid var(--line);background:#fff}
.account-device-toolbar strong{display:block;font-size:15px}
.account-device-toolbar span{display:block;margin-top:3px;color:var(--muted);font-size:12px}
.account-device-filters{display:grid;grid-template-columns:minmax(280px,1fr) 130px 130px;gap:8px;min-width:min(620px,58vw)}
.account-device-bulkbar{display:flex;align-items:center;gap:12px;padding:9px 14px;border-bottom:1px solid var(--line);background:#fbfcfd;color:#475467;font-size:12px}
.account-device-bulkbar label{display:flex;align-items:center;gap:6px;font-weight:700;color:#344054}
.account-device-message{margin:10px 14px 0}
.account-device-table-wrap{width:100%;overflow:visible}
.account-device-table{min-width:0;width:100%;table-layout:fixed}
.account-device-table th,.account-device-table td{padding:7px 6px;font-size:12px}
.account-device-table th{font-size:12px}
.account-device-table th:nth-child(1){width:2.8%}
.account-device-table th:nth-child(2){width:8.5%}
.account-device-table th:nth-child(3){width:6.5%}
.account-device-table th:nth-child(4){width:6%}
.account-device-table th:nth-child(5){width:7.5%}
.account-device-table th:nth-child(6){width:5.8%}
.account-device-table th:nth-child(7){width:5.8%}
.account-device-table th:nth-child(8){width:7%}
.account-device-table th:nth-child(9){width:8.5%}
.account-device-table th:nth-child(10){width:5.8%}
.account-device-table th:nth-child(11){width:8%}
.account-device-table th:nth-child(12){width:5.8%}
.account-device-table th:nth-child(13){width:5.8%}
.account-device-table th:nth-child(14){width:7.5%}
.account-device-table th:nth-child(15){width:4.7%}
.account-device-table tr.selected td{background:#f7fbff}
.account-device-new-row td{background:#fbfcfd}
.table-input,.table-select{width:100%;min-height:30px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text);padding:5px 7px;font-size:12px}
.table-input:hover,.table-select:hover,.table-input:focus,.table-select:focus{border-color:#cbd5e1;background:#fff;outline:0;box-shadow:0 0 0 2px rgba(23,105,170,.08)}
.table-input.strong{font-weight:700}
.table-input.mono{font-variant-numeric:tabular-nums}
.table-select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#667085 50%),linear-gradient(135deg,#667085 50%,transparent 50%);background-position:calc(100% - 12px) 13px,calc(100% - 7px) 13px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:18px}
.table-select.status-green{background-color:#ecfdf3;color:#027a48;font-weight:800}
.table-select.status-amber{background-color:#fffaeb;color:#b54708;font-weight:800}
.table-select.status-red{background-color:#fff1f3;color:#b42318;font-weight:800}
.account-device-time{color:#667085;font-variant-numeric:tabular-nums;white-space:nowrap}
.account-save-state{display:inline-flex;align-items:center;justify-content:center;min-width:48px;padding:4px 7px;border-radius:999px;background:#ecfdf3;color:#027a48;font-weight:800;font-size:11px;white-space:nowrap}
.account-save-state.dirty{background:#fffaeb;color:#b54708}
.account-save-state.saving{background:#eff8ff;color:#175cd3}
.account-save-state.error{background:#fff1f3;color:#b42318}
.account-device-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid var(--line);background:#fbfcfd;color:var(--muted);font-size:12px}

@media(max-width:1280px){
  .account-device-table th:nth-child(9),.account-device-table td:nth-child(9),
  .account-device-table th:nth-child(11),.account-device-table td:nth-child(11){display:none}
  .account-device-filters{min-width:0;grid-template-columns:1fr 120px 120px}
}
@media(max-width:900px){
  .account-device-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .account-device-toolbar{flex-direction:column}
  .account-device-filters{width:100%;grid-template-columns:1fr}
  .account-device-table th:nth-child(3),.account-device-table td:nth-child(3),
  .account-device-table th:nth-child(6),.account-device-table td:nth-child(6),
  .account-device-table th:nth-child(7),.account-device-table td:nth-child(7),
  .account-device-table th:nth-child(10),.account-device-table td:nth-child(10){display:none}
}

/* Keyword product research: sample pool first, single-product monitoring second. */
.product-sales-report{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:8px;background:#111827;color:#e5e7eb;line-height:1.65}.product-sales-report h2{margin:0 0 2px;color:#60a5fa;font-size:18px}.product-sales-report-lead{margin:0;color:#f9fafb;font-weight:700}.product-sales-report-meta{display:flex;gap:8px;flex-wrap:wrap;padding:10px 0;border-top:1px solid #4b5563;border-bottom:1px solid #4b5563}.product-sales-report-meta span{padding:4px 8px;border-radius:5px;background:#1f2937;color:#d1d5db;font-size:12px}.product-sales-report-meta strong{color:#f59e0b}.product-sales-report-section{padding-top:2px;border-top:1px solid #4b5563}.keyword-report-html .product-sales-report .product-sales-report-section h3{margin:0 0 8px;padding:0;border:0;background:transparent;color:#60a5fa;font-size:15px}.product-sales-report-section ul{margin:0;padding-left:18px;color:#e5e7eb}.product-sales-report-section li{margin:4px 0}.product-sales-report-section li::marker{color:#f59e0b}.product-sales-report-section p{margin:0;color:#e5e7eb}.product-sales-report .rule-backup{opacity:.86}.keyword-report-html .product-sales-report .rule-backup h3{color:#93c5fd}.product-sales-report .missing-field{color:#9ca3af}
.keyword-workspace{display:grid;gap:12px}.keyword-search-panel{padding:14px}.keyword-search-main{display:grid;gap:12px}.keyword-search-main h2{margin:0;font-size:18px}.keyword-search-main p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.5}.keyword-search-form{display:grid;grid-template-columns:minmax(260px,1fr) 160px 160px auto;gap:8px;align-items:center}.keyword-input{font-weight:650}.keyword-manual{border:1px dashed var(--line-strong);border-radius:7px;background:#fbfcfd;padding:9px 10px}.keyword-manual summary{cursor:pointer;color:#344054;font-weight:650}.keyword-manual textarea{width:100%;min-height:74px;margin-top:8px;padding:9px;border:1px solid var(--line);border-radius:6px;resize:vertical}.keyword-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:12px;align-items:start}.keyword-project-list{position:sticky;top:12px;padding:12px;display:grid;gap:8px}.keyword-project-item{width:100%;display:grid;gap:4px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:10px;text-align:left;cursor:pointer}.keyword-project-item:hover,.keyword-project-item.active{border-color:#9fb9d6;background:#f6faff}.keyword-project-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.keyword-project-item span{color:var(--muted);font-size:11px}.keyword-detail{display:grid;gap:12px;min-width:0}.keyword-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px}.keyword-hero span{color:var(--muted);font-size:11px}.keyword-hero h2{margin:3px 0;font-size:22px}.keyword-hero p{max-width:680px;margin:0;color:var(--muted);font-size:12px;line-height:1.5}.keyword-actions{display:flex;gap:8px;flex-wrap:wrap}.keyword-stats{grid-template-columns:repeat(4,1fr)}.keyword-decision-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.keyword-decision-grid>div{padding:11px;border:1px solid var(--line);border-radius:7px;background:#f8fafc}.keyword-decision-grid span{display:block;color:var(--muted);font-size:11px}.keyword-decision-grid strong{display:block;margin-top:5px;font-size:16px}.keyword-matrix{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}.keyword-trend-card{display:grid;gap:7px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:10px;text-align:left;cursor:pointer}.keyword-trend-card:hover{border-color:#9fb9d6;box-shadow:0 8px 20px rgba(15,23,42,.08)}.keyword-trend-card strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:12px;line-height:1.45}.keyword-trend-card span{color:var(--muted);font-size:11px}.keyword-tiny-chart{width:100%;height:92px;border-radius:8px;background:#f8fbff;overflow:visible}.keyword-tiny-line{fill:none;stroke:#246bfe;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.keyword-tiny-area{fill:rgba(36,107,254,.13)}.keyword-tiny-chart text{fill:#98a2b3;font-size:7px}.keyword-chart-empty{height:92px;display:grid;place-items:center;border:1px dashed var(--line);border-radius:8px;background:#fbfcfd;color:var(--muted);font-size:12px}.keyword-rank-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);gap:12px}.keyword-report-html{border:1px solid var(--line);border-radius:8px;background:#fff;padding:14px;line-height:1.65}.keyword-report-html h3{margin:12px 0 6px;font-size:16px}.keyword-report-html h3:first-child{margin-top:0}.keyword-report-html ul{margin:6px 0 12px;padding-left:18px;color:#475467}.keyword-report-html p{color:#475467}.product-ai-report{display:grid;gap:12px}.ai-score-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.ai-score-strip>div{padding:11px;border:1px solid var(--line);border-radius:7px;background:#f8fafc}.ai-score-strip span{display:block;color:var(--muted);font-size:11px}.ai-score-strip strong{display:block;margin-top:5px;font-size:15px}

@media(max-width:1050px){.keyword-search-form{grid-template-columns:1fr 1fr}.keyword-layout{grid-template-columns:1fr}.keyword-project-list{position:static}.keyword-rank-grid{grid-template-columns:1fr}}
@media(max-width:640px){.keyword-search-form,.keyword-decision-grid,.keyword-stats,.ai-score-strip{grid-template-columns:1fr}.keyword-hero{align-items:stretch;flex-direction:column}.keyword-actions .btn{width:100%}.keyword-matrix{grid-template-columns:1fr}}

/* Keyword page redesign: fewer competing panels, decision first, matrix second. */
.keyword-workspace.refined{max-width:1480px;margin:0 auto;gap:14px}
.keyword-command{padding:14px 16px}
.keyword-command-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}
.keyword-command-head h2{margin:0;font-size:18px}
.keyword-command-head p{max-width:720px;margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.keyword-search-form.refined{grid-template-columns:minmax(360px,1fr) 150px 150px 150px}
.keyword-manual.compact{margin-top:10px;padding:8px 10px;background:#f8fafc}
.keyword-manual.compact summary{font-size:12px}
.keyword-project-strip{display:flex;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);overflow-x:auto}
.keyword-project-pill{display:flex;align-items:center;gap:8px;min-width:0;border:1px solid var(--line);border-radius:999px;background:#fff;padding:7px 10px;color:#344054;cursor:pointer}
.keyword-project-pill strong{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.keyword-project-pill span{color:var(--muted);font-size:11px}
.keyword-project-pill.active{border-color:#111827;background:#111827;color:#fff}
.keyword-project-pill.active span{color:#d1d5db}
.keyword-decision-panel{padding:16px}
.keyword-decision-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;padding-bottom:14px;border-bottom:1px solid var(--line)}
.keyword-decision-main .eyebrow{display:block;color:var(--muted);font-size:11px}
.keyword-decision-main h2{margin:4px 0 5px;font-size:26px;letter-spacing:0}
.keyword-decision-main p{max-width:760px;margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.keyword-verdict{min-width:190px;display:grid;justify-items:end;gap:5px}
.keyword-verdict strong{font-size:28px;line-height:1}
.keyword-verdict span{color:var(--muted);font-size:12px}
.keyword-core-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;margin-top:14px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.keyword-core-grid>div{min-height:82px;padding:12px;border-right:1px solid var(--line);background:#fbfcfd}
.keyword-core-grid>div:last-child{border-right:0}
.keyword-core-grid span{display:block;color:var(--muted);font-size:11px}
.keyword-core-grid strong{display:block;margin-top:6px;font-size:20px;line-height:1.2}
.keyword-core-grid small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.35}
.keyword-actions.compact{justify-content:flex-end;margin-top:12px}
.keyword-matrix-panel{padding:16px}
.keyword-matrix.refined{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.keyword-trend-card.refined{min-height:238px;padding:10px}
.keyword-trend-card.refined .keyword-tiny-chart,.keyword-trend-card.refined .keyword-chart-empty{height:132px}
.keyword-trend-card.refined strong{min-height:34px;font-size:12px}
.keyword-trend-card.refined span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.keyword-card-shop{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#0563c1;font-size:11px}
.keyword-tiny-chart.axis-chart{background:#fff;border:1px solid #eef2f7;border-radius:6px}
.keyword-grid-line{stroke:#e5eaf2;stroke-width:.8}
.keyword-axis-line{stroke:#cbd5e1;stroke-width:.8}
.keyword-tiny-chart.axis-chart .keyword-tiny-line,.keyword-tiny-chart.axis-chart .keyword-line{fill:none;stroke:#ef4444;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.keyword-area{fill:rgba(239,68,68,.08)}
.keyword-crosshair{stroke:#1769aa;stroke-width:1;stroke-dasharray:3 3}
.keyword-point{fill:#fff;stroke:#ef4444;stroke-width:1.2}
.keyword-point:hover{fill:#ef4444}
.keyword-y-label,.keyword-date-label,.keyword-date{fill:#667085;font-size:8px}
.keyword-point-label{fill:#1f2937;font-size:8.5px;font-weight:650}
.keyword-delta-label{font-size:7.5px;font-weight:700}
.keyword-delta-label.up{fill:#059669}
.keyword-delta-label.down{fill:#b42318}
.keyword-tiny-chart.interactive{cursor:crosshair}
.keyword-chart-hover line{stroke:#1769aa;stroke-width:1;stroke-dasharray:3 3}.keyword-chart-hover circle{fill:#1769aa;stroke:#fff;stroke-width:1.5}.keyword-chart-hover rect{fill:#102033;opacity:.92}.keyword-chart-hover text{fill:#fff!important;font-size:8px!important;font-weight:700}
.keyword-insight-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.keyword-insight-grid>.keyword-report-panel{grid-column:1/-1}
.rank-list.compact{gap:4px}
.rank-list.compact .rank-item{min-height:46px;padding:7px 6px}
.keyword-report-panel .compact-empty{min-height:120px}
@media(max-width:1180px){.keyword-core-grid{grid-template-columns:repeat(3,1fr)}.keyword-core-grid>div:nth-child(3n){border-right:0}.keyword-core-grid>div:nth-child(n+4){border-top:1px solid var(--line)}}
@media(max-width:900px){.keyword-search-form.refined{grid-template-columns:1fr 1fr}.keyword-decision-main{grid-template-columns:1fr}.keyword-verdict{justify-items:start}.keyword-insight-grid{grid-template-columns:1fr}}
@media(max-width:640px){.keyword-command-head{display:grid}.keyword-search-form.refined,.keyword-core-grid{grid-template-columns:1fr}.keyword-core-grid>div{border-right:0;border-top:1px solid var(--line)}.keyword-core-grid>div:first-child{border-top:0}.keyword-actions.compact .btn{width:100%}}
@media(max-width:620px){.jobs-center{padding-bottom:0}.jobs-health-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.health-card{min-height:92px;padding:11px}.health-card strong{font-size:21px}.health-card .health-time{font-size:14px}.jobs-live-strip{display:flex;align-items:flex-start;flex-direction:column;gap:8px}.jobs-live-strip>div{width:100%}.jobs-live-strip .btn{align-self:flex-end}.jobs-queue-panel,.jobs-history-panel{padding:11px}.jobs-queue-panel>.section-title{align-items:flex-start;flex-direction:column}.jobs-queue-actions{width:100%}.jobs-queue-actions .btn{flex:1;justify-content:center}.job-table{min-width:760px}.jobs-pagination{position:static;display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:0}.jobs-pagination .pagination-summary{min-width:0}.jobs-pagination .pagination-size{margin-left:0}.jobs-pagination .page-buttons{grid-column:1/-1;justify-content:space-between;flex-wrap:wrap;margin-left:0}.jobs-pagination .page-jump{order:5;width:100%;justify-content:flex-end}.job-detail-summary{grid-template-columns:repeat(2,1fr)}}
/* Product decision view: metrics open focused, lightweight insight popovers. */
.product-command-panel{padding:8px 12px;margin-bottom:8px}.product-command-main{display:grid;grid-template-columns:minmax(300px,1fr) repeat(3,180px);gap:16px;align-items:center}.product-command-panel .input,.product-command-panel .select{height:36px;min-height:36px}.product-search-field{min-width:0}.product-search-field .input{font-weight:650}.product-decision-filters{display:grid;grid-template-columns:180px repeat(3,180px);gap:16px;align-items:center;margin-top:8px}.product-filter-label{display:flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 12px;border:1px solid #d8e4f2;border-radius:6px;background:#f7fbff;color:#174d7a;white-space:nowrap}.product-filter-label svg{color:#1769aa}.product-table-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 2px 8px}.product-table-meta strong{font-size:14px}.product-table-meta span{color:var(--muted);font-size:12px}.product-table-v2.decision .data-table{min-width:1688px}.product-table-v2 th:nth-child(1){width:42px}.product-table-v2 th:nth-child(2){width:300px;min-width:280px}.product-table-v2 th:nth-child(3){width:100px}.product-table-v2 th:nth-child(4){width:110px}.product-table-v2 th:nth-child(5){width:120px}.product-table-v2 th:nth-child(6){width:110px}.product-table-v2 th:nth-child(7){width:160px}.product-table-v2 th:nth-last-child(2){width:100px}.product-table-v2 th:last-child{width:60px;text-align:center}.product-table-v2 td:last-child{text-align:center}.product-table-v2 .product-revenue-head,.product-table-v2 .product-revenue-cell{width:115px}.product-table-v2 .supplier-company-head,.product-table-v2 .supplier-company-cell{width:160px}.product-table-v2 .opportunity-judgement-head,.product-table-v2 .opportunity-judgement-cell{width:120px}.product-table-v2 .opportunity-stage-head,.product-table-v2 .opportunity-stage-cell{width:110px}.product-table-v2 .product-monitor-status-head,.product-table-v2 .product-monitor-status-cell{width:80px;text-align:center}.supplier-company-cell strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.supplier-company-cell .muted,.opportunity-judgement-cell .muted{font-size:11px}.opportunity-judgement-cell .trend-signal{max-width:104px;font-weight:700}
.product-decision-select{width:100%;min-width:0}.product-decision-select.shop-assignment{min-width:0}.product-decision-select .shop-assignment-trigger,.product-decision-select .product-category-trigger{align-items:center;min-height:28px;padding:2px 4px}.product-decision-select .shop-assignment-values,.product-decision-select .product-category-values{flex-wrap:nowrap}.product-decision-select .shop-assignment-chip,.product-decision-select .product-category-chip{max-width:104px}.product-decision-select .shop-assignment-menu,.product-decision-menu{right:auto;width:250px}.floating-menu{position:fixed!important;top:auto;left:auto;right:auto;width:260px;max-width:calc(100vw - 16px);z-index:1100}.floating-menu.shop-tag-menu{max-width:calc(100vw - 16px)}.product-decision-clear,.product-decision-clear-option{width:100%;color:var(--muted);justify-content:flex-start;cursor:pointer}.product-decision-clear{border:0;background:#fff}.product-decision-clear:hover,.product-decision-clear-option:hover{background:#f8fafc;color:var(--text)}.product-decision-choice-btn{display:flex;align-items:center;flex:1;min-width:0;border:0;background:transparent;padding:0;text-align:left;cursor:pointer}.decision-score{display:block;margin-top:4px;color:var(--muted);font-size:11px;line-height:1.25}.opportunity-stage-cell .shop-assignment-chip,.opportunity-stage-cell .product-category-chip{max-width:92px}.ops-grid .product-decision-select .shop-assignment-trigger,.ops-grid .product-decision-select .product-category-trigger{min-height:36px;border-color:var(--line);background:#fff;padding:5px 8px}.ops-grid .product-decision-select .shop-assignment-chip,.ops-grid .product-decision-select .product-category-chip{max-width:220px}
.product-decision-filter{width:100%;min-width:0}.product-decision-filter .shop-tag-trigger{width:100%;height:36px;min-height:36px;background:#fff}.product-decision-filter-menu{left:0;right:auto;width:250px;max-height:280px}.product-decision-filter .shop-tag-option{justify-content:space-between}.product-decision-filter .shop-business-tag{max-width:172px}.product-decision-filter .shop-tag-create{grid-template-columns:minmax(0,1fr) auto}.product-decision-filter .shop-tag-create .input{height:32px;min-height:32px}.product-decision-filter .shop-tag-help{padding-top:4px}
.product-open-cell{cursor:pointer}.product-open-cell:focus{outline:2px solid var(--blue);outline-offset:-2px}.growth-cell{position:relative;vertical-align:top}.growth-trigger{display:grid;gap:1px;width:100%;min-height:48px;padding:6px 4px;border:0;background:transparent;text-align:left;cursor:pointer;line-height:1.2}.growth-trigger>span{font-size:10px;color:var(--muted);white-space:nowrap;line-height:1}.growth-trigger:hover strong,.growth-trigger:focus strong{text-decoration:underline}.growth-popover{z-index:30;width:340px;padding:12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.2);text-align:left}.growth-popover-floating{position:fixed;left:auto;top:auto}.growth-popover-foot{margin-top:8px;display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:8px}.growth-popover-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding-bottom:9px;border-bottom:1px solid var(--line)}.growth-popover-head strong{display:block;font-size:13px}.growth-popover-head small{display:block;margin-top:3px;color:var(--muted);font-size:10px}.growth-popover-close{width:22px;height:22px;border:0;border-radius:5px;background:#f4f6f8;color:var(--muted);font-size:17px;line-height:1;cursor:pointer}.growth-popover-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:10px 0}.growth-popover-kpis>div{padding:8px;border:1px solid var(--line);border-radius:6px;background:#f8fafc}.growth-popover-kpis span{display:block;color:var(--muted);font-size:10px}.growth-popover-kpis strong{display:block;margin-top:4px;font-size:15px}.growth-popover-note{padding:8px;border-radius:6px;background:#f6f8fa;color:var(--muted);font-size:11px;line-height:1.5}.growth-history{display:grid;gap:5px;max-height:180px;overflow-y:auto;overflow-x:hidden;padding-right:3px}.growth-history>div{display:grid;grid-template-columns:minmax(132px,1fr) auto 54px;gap:8px;align-items:center;font-size:11px}.growth-history span{white-space:nowrap}.growth-history strong{text-align:right}.growth-history em{font-style:normal;text-align:right}.growth-history-head{position:sticky;top:0;padding-bottom:3px;background:#fff;color:var(--muted);font-size:10px}.row-menu-trigger{width:32px;height:30px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;background:#fff;cursor:pointer}.row-menu-trigger:hover{border-color:#aeb8c4;background:#f8fafc}.row-menu-panel{border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.18);padding:5px}.row-menu-panel.floating-menu{width:145px!important}.row-menu-panel button{width:100%;border:0;background:#fff;padding:8px;text-align:left;border-radius:4px;cursor:pointer;font-size:13px;color:var(--text)}.row-menu-panel button:hover{background:#f3f5f7}.row-menu-panel button.danger{color:#d92d20}
@media(max-width:620px){.growth-popover{position:fixed;left:14px;right:14px;bottom:14px;top:auto;width:auto;max-height:calc(100vh - 28px);overflow:auto}}
@media(max-width:980px){.product-command-main{grid-template-columns:1fr 1fr}.product-decision-filters{grid-template-columns:1fr 1fr}.product-filter-label{grid-column:auto}}
@media(max-width:560px){.product-command-main,.product-decision-filters{grid-template-columns:1fr;gap:8px}.product-command-panel{padding:8px}.product-table-meta{align-items:flex-start;flex-direction:column;gap:3px}}
.growth-mini-chart{height:210px;margin:10px 0;padding:7px;border:1px solid var(--line);border-radius:6px;background:#f8fafc}.growth-chart-interactive{position:relative;height:100%}.growth-mini-svg{display:block;width:100%;height:100%}.growth-line{fill:none;stroke:#2563eb;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.growth-area{fill:#2563eb;fill-opacity:.1}.growth-grid-line{stroke:#dde5ef;stroke-width:.8}.growth-axis-line{stroke:#b7c0cd;stroke-width:.9}.growth-crosshair{stroke:#64748b;stroke-width:1;stroke-dasharray:4 3}.growth-date,.growth-y-label{fill:#667085;font-size:9px}.growth-point{fill:#fff;stroke:#2563eb;stroke-width:1.5}.growth-point.active{fill:#2563eb;stroke:#fff;stroke-width:1.5}.growth-point-label{fill:#1f2937;font-size:9px;font-weight:650}.growth-tooltip{position:absolute;top:10px;transform:translateX(-50%);z-index:2;display:grid;gap:2px;min-width:116px;padding:7px 8px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.18);pointer-events:none}.growth-tooltip strong{font-size:11px}.growth-tooltip span{font-size:10px;color:#475467}.growth-mini-empty{display:grid;place-items:center;height:100%;color:var(--muted);font-size:11px}
.product-drawer-v2 .drawer-content>.growth-chart-interactive,.modal-body>.growth-chart-interactive,.keyword-trend-chart-panel>.growth-chart-interactive{height:220px;margin:10px 0 12px;padding:7px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}
.product-drawer-v2 .drawer-content>.trend-chart,.modal-body>.trend-chart{height:300px;margin:10px 0 12px;padding:10px;border:1px solid #dfe7f1;border-radius:10px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);box-shadow:0 2px 10px rgba(16,24,40,.04)}
.keyword-trend-chart-panel>.growth-chart-interactive{height:260px}
.drawer-monitor-control{display:flex;align-items:center;gap:9px;min-height:42px;padding:5px 9px;border:1px solid var(--line);border-radius:6px;background:#f8fafc;color:var(--muted);font-size:11px;white-space:nowrap}.drawer-monitor-copy{display:grid;gap:2px;text-align:right}.drawer-monitor-copy strong{color:var(--text);font-size:12px;line-height:1.15}.drawer-monitor-copy small{color:var(--muted);font-size:10px;line-height:1.2}.drawer-monitor-control .switch-line{margin:0}.drawer-monitor-control .switch{transform:scale(.88);transform-origin:center}
.jobs-schedule-panel .schedule-preview.scope{border-color:#d8e4f2;background:#f7fbff}.schedule-scope-note{display:flex;align-items:flex-start;gap:7px;margin-top:10px;padding:8px 10px;border:1px solid #d8e4f2;border-radius:6px;background:#f7fbff;color:#344054;font-size:12px;line-height:1.45}.schedule-scope-note svg{flex:0 0 auto;margin-top:1px;color:var(--blue)}
@media(max-width:620px){.product-drawer-head{align-items:flex-start;flex-wrap:wrap}.product-drawer-head .drawer-head-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.drawer-monitor-control{flex:1 1 230px}.drawer-monitor-copy{text-align:left}}
.supplier-bind-summary{display:flex;align-items:center;gap:12px;margin:8px 0 4px;padding:14px;border:1px solid var(--line);border-radius:7px;background:#f8fafc}.supplier-bind-summary>div{display:grid;gap:3px;min-width:120px}.supplier-bind-summary strong{font-size:20px}.supplier-bind-summary span{color:var(--muted);font-size:11px}.supplier-bind-summary .btn{margin-left:auto}.supplier-bind-backdrop{z-index:70}.supplier-bind-modal{width:min(760px,92vw)}.supplier-bind-modal .bind-product-list{max-height:52vh}.supplier-bind-modal .bind-product-list label{grid-template-columns:22px 44px minmax(0,1fr)}.supplier-bind-modal .bind-product-list label>div{display:grid;gap:3px;min-width:0}.supplier-bind-modal .bind-product-list label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.supplier-bind-modal .bind-product-list label.bound{background:#f5f7f9;color:var(--muted)}.supplier-bind-modal .bind-product-list label.bound input{opacity:.65}
/* Current AI and keyword surfaces stay compact, but make the decision signal explicit. */
.keyword-view-tabs{display:flex;gap:0;margin:12px 0;border-bottom:1px solid var(--line)}
.keyword-view-tabs button{padding:10px 18px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-weight:650;cursor:pointer}
.keyword-view-tabs button:hover{color:var(--text);background:#f8fafc}
.keyword-view-tabs button.active{border-bottom-color:var(--accent);color:var(--text);background:#fff}
.keyword-report-top{min-height:180px}
.keyword-report-html{line-height:1.6;color:var(--text)}
.keyword-report-html h3{margin:18px 0 8px;padding:7px 10px;border-left:3px solid var(--accent);background:#fff7f8;font-size:15px}
.keyword-report-html h3:first-child{margin-top:0}
.keyword-report-html p,.keyword-report-html li{line-height:1.65}
.keyword-report-html .missing-field,.missing-field{color:#98a2b3;font-style:italic}
.trend-signal{display:inline-flex;align-items:center;max-width:100%;padding:3px 7px;border-radius:999px;font-size:11px;line-height:1.2;white-space:nowrap;background:#f0f2f5;color:#667085}
.trend-signal.red{background:#fff0f0;color:#c43232}.trend-signal.green{background:#eaf8f1;color:#087443}.trend-signal.amber{background:#fff6df;color:#996b00}.trend-signal.blue{background:#edf5ff;color:#1769aa}
.ai-report-actions{display:flex;align-items:center;gap:6px}
.ai-score-strip .ai-score-item.high strong{color:#c43232}.ai-score-strip .ai-score-item.medium strong{color:#b7791f}.ai-score-strip .ai-score-item.low strong{color:#667085}

.product-command-panel{padding:12px;margin-bottom:10px;border-color:#d9e4ef;background:linear-gradient(180deg,#fff,#f8fbff)}
.product-command-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.product-command-head strong{display:block;font-size:15px;color:#101828}
.product-command-head span{display:block;margin-top:2px;color:var(--muted);font-size:12px}
.product-command-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.product-command-main{display:grid;grid-template-columns:minmax(300px,1fr) minmax(150px,.42fr) minmax(160px,.48fr) minmax(165px,.48fr) auto;gap:8px;align-items:center}
.product-command-panel .input,.product-command-panel .select,.product-command-panel .btn{height:38px;min-height:38px}
.product-search-field{position:relative;min-width:0}
.product-search-field>i{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#667085;z-index:1}
.product-search-field .input{padding-left:34px;font-weight:650}
.product-more-filter{white-space:nowrap}
.product-more-filter.active{border-color:#9fb9d6;background:#eef6ff;color:#174d7a}
.product-decision-filters{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:8px;align-items:center;margin-top:10px;padding-top:10px;border-top:1px solid #e4edf6}

.keyword-report-html .product-sales-report{display:grid;gap:14px;padding:18px;border:1px solid #d9e4ef;border-radius:8px;background:#fff;color:#101828;line-height:1.7;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.keyword-report-html .product-sales-report h2{margin:0;color:#174d7a;font-size:18px}
.keyword-report-html .product-sales-report-lead{margin:0;color:#101828;font-weight:750}
.keyword-report-html .product-sales-report-meta{display:flex;gap:8px;flex-wrap:wrap;padding:10px 0;border-top:1px solid #e5edf5;border-bottom:1px solid #e5edf5}
.keyword-report-html .product-sales-report-meta span{padding:5px 9px;border-radius:6px;background:#f6f8fb;color:#475467;font-size:12px}
.keyword-report-html .product-sales-report-meta strong{color:#b7791f}
.keyword-report-html .product-sales-report-section{padding-top:4px;border-top:1px solid #e5edf5}
.keyword-report-html .product-sales-report .product-sales-report-section h3{margin:0 0 8px;padding:7px 10px;border-left:3px solid #1769aa;background:#f5faff;color:#174d7a;font-size:15px}
.keyword-report-html .product-sales-report-section ul{margin:0;padding-left:18px;color:#344054}
.keyword-report-html .product-sales-report-section li{margin:4px 0}
.keyword-report-html .product-sales-report-section li::marker{color:#1769aa}
.keyword-report-html .product-sales-report-section p{margin:0;color:#344054}
.keyword-report-html .product-sales-report .rule-backup{opacity:1;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:7px;padding:12px}
.keyword-report-html .product-sales-report .rule-backup h3{color:#475467;background:#fff}

@media(max-width:980px){.product-command-main{grid-template-columns:1fr 1fr}.product-command-main .product-search-field{grid-column:1/-1}.product-decision-filters{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.product-command-head{align-items:flex-start;flex-direction:column}.product-command-tools{width:100%}.product-command-tools .btn{flex:1}.product-command-main,.product-decision-filters{grid-template-columns:1fr}.product-more-filter{width:100%}}

/* Product monitor refinements: keep filters level and make dense controls feel intentional. */
.product-command-panel{overflow:visible;position:relative;z-index:20}
.product-command-head{align-items:flex-start}
.product-command-tools{align-self:flex-start}
.product-command-main{grid-template-columns:minmax(280px,1fr) minmax(145px,.4fr) minmax(160px,.46fr) minmax(165px,.46fr) minmax(110px,auto);align-items:end}
.product-command-main>*{min-width:0;align-self:end}
.product-command-panel .input,.product-command-panel .select,.product-command-panel .btn,.product-more-filter{height:38px;min-height:38px;line-height:20px}
.product-command-panel .shop-tag-menu,.product-command-panel .product-decision-filter-menu{z-index:80}
.product-search-field{height:38px;display:flex;align-items:center}
.product-search-field>i,.product-search-field>svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:#667085;z-index:1;pointer-events:none}
.product-search-field .input{height:38px;min-height:38px;padding-left:34px;padding-right:64px}
.product-search-field>button{position:absolute;right:4px;top:4px;height:30px;min-height:30px;border:0;border-radius:5px;background:#18324a;color:#fff;padding:0 12px;font-size:12px;font-weight:800;cursor:pointer}
.product-search-field>button:hover{background:#0f2438}
.product-more-filter{justify-content:center;padding-left:12px;padding-right:12px;overflow:hidden;text-overflow:ellipsis}
.ops-grid .product-category-select .product-category-trigger{min-height:36px;border-color:var(--line);background:#fff;padding:5px 8px;align-items:center}
.ops-grid .product-category-select .product-category-trigger:hover,.ops-grid .product-category-select .product-category-trigger[aria-expanded=true]{border-color:#9fb9d6;background:#f8fbff}
.ops-grid .product-category-select .product-category-values{flex-wrap:nowrap}
.ops-grid .product-category-select .product-category-chip{max-width:220px}

/* Opportunity board: fixed-width horizontal tracks so thumbnails are never crushed. */
.kanban-column{overflow:hidden}
.kanban-column>div{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scrollbar-gutter:stable;padding:12px;flex:0 0 auto;min-height:196px;align-items:stretch}
.kanban-column .opportunity-card{flex:0 0 218px;width:218px;max-width:218px;min-height:172px;max-height:none}
.opportunity-card-head{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:start}
.opportunity-card-head .thumb{grid-column:1;width:60px;height:60px;object-fit:cover}
.opportunity-card-info{grid-column:2;min-width:0}
.opportunity-card-title{font-size:12px;line-height:1.35}
.opportunity-card-meta{gap:4px}
.opportunity-card-foot{margin-top:auto}
.kanban-empty{min-width:100%;flex:1 0 100%}
.opportunity-card-foot{display:grid;gap:6px;align-items:stretch}
.opportunity-card-foot-main{display:flex;align-items:center;justify-content:space-between;gap:6px}
.opportunity-stage-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.opportunity-stage-actions button{min-height:24px;border:1px solid #d8e0ea;border-radius:5px;background:#fff;color:#475467;padding:0 4px;font-size:10px;line-height:1;white-space:nowrap;cursor:pointer}
.opportunity-stage-actions button:hover{border-color:#9fb9d6;background:#f6faff;color:#174d7a}
.opportunity-stage-actions button.active{border-color:#1769aa;background:#eef6ff;color:#174d7a;font-weight:800}
.opportunity-card-select{display:none}

@media(max-width:1100px){.kanban-column>div{display:flex}}
@media(max-width:820px){.kanban-column>div{display:flex}.kanban-column .opportunity-card{flex-basis:210px;width:210px;max-width:210px}}
.settings-page{display:grid;gap:12px;max-width:980px}
.settings-page-v2{max-width:1480px;width:100%;align-content:start}
.settings-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px}
.settings-hero h2{margin:5px 0;font-size:22px}.settings-hero p{margin:0;color:var(--muted);line-height:1.6}
.settings-form{padding:20px 22px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-wide{grid-column:1/-1}.settings-textarea{min-height:110px;resize:vertical}.settings-key-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}.checkbox-label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;white-space:nowrap}.settings-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.schedule-preview{display:flex;align-items:center;min-height:38px;padding:0 11px;border:1px solid var(--line);border-radius:6px;background:#f8fafc;color:var(--text);font-weight:600}
@media(max-width:620px){.keyword-view-tabs button{flex:1;padding:10px 6px}.settings-hero,.settings-actions{align-items:flex-start;flex-direction:column}.settings-grid{grid-template-columns:1fr}.settings-wide{grid-column:auto}.settings-key-row{align-items:flex-start;flex-direction:column}.settings-actions .btn{width:100%}}

/* Keyword page: keep search context above one clear three-view workflow. */
.keyword-command-sticky{position:sticky;top:0;z-index:15;box-shadow:0 5px 16px rgba(15,23,42,.06)}
.keyword-command-sticky .keyword-command-head{align-items:center}
.keyword-command-sticky .keyword-command-head h2{margin:2px 0 0}
.keyword-primary-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}
.keyword-primary-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;border:0;border-right:1px solid var(--line);background:#fff;color:var(--muted);cursor:pointer}
.keyword-primary-tabs button:last-child{border-right:0}
.keyword-primary-tabs button:hover{background:#f8fafc;color:var(--text)}
.keyword-primary-tabs button.active{background:#fff7f8;color:var(--text);box-shadow:inset 0 -3px 0 var(--accent)}
.keyword-primary-tabs button strong{color:var(--accent);font-size:11px}
.keyword-primary-tabs button span{font-weight:700;font-size:14px}
.keyword-tab-surface{padding:16px}
.keyword-tab-context{margin:0 0 16px;padding:13px;border:1px solid var(--line);border-radius:7px;background:#f8fafc}
.keyword-context-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.keyword-context-heading h2{margin:3px 0 4px;font-size:21px}
.keyword-context-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.keyword-core-grid.compact{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:12px;border:0;gap:8px;overflow:visible;background:transparent}
.keyword-core-grid.compact>div{min-height:68px;padding:10px;border:1px solid var(--line);border-radius:6px;background:#fff}
.keyword-core-grid.compact>div:last-child{border-right:1px solid var(--line)}
.keyword-core-grid.compact strong{font-size:17px}
.keyword-core-grid.compact small{display:none}
.keyword-actions.compact{margin-top:12px}
.keyword-matrix-full{grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:12px}
.keyword-trend-card-full{min-height:270px;padding:12px;cursor:default}
.keyword-trend-card-full .keyword-tiny-chart,.keyword-trend-card-full .keyword-chart-empty{height:164px}
.keyword-chart-button,.keyword-card-main{width:100%;display:grid;gap:7px;border:0;background:transparent;padding:0;text-align:left;color:inherit;font:inherit;cursor:pointer}
.keyword-chart-button{position:relative}
.keyword-chart-button>span{position:absolute;right:8px;top:8px;padding:3px 7px;border-radius:999px;background:rgba(16,32,51,.76);color:#fff;font-size:10px;font-weight:800;opacity:0;transform:translateY(-2px);transition:opacity .14s,transform .14s}
.keyword-chart-button:hover>span,.keyword-chart-button:focus-visible>span{opacity:1;transform:translateY(0)}
.keyword-chart-button:hover .keyword-tiny-chart,.keyword-chart-button:focus-visible .keyword-tiny-chart{border-color:#8ab4f8;box-shadow:0 0 0 2px rgba(23,105,170,.08)}
.keyword-card-main{border-radius:6px}
.keyword-card-main:hover strong,.keyword-card-main:focus-visible strong{color:#1769aa;text-decoration:underline}
.keyword-trend-backdrop{z-index:92;background:rgba(15,23,42,.55);backdrop-filter:blur(2px)}
.keyword-trend-modal{width:min(580px,94vw);max-height:88vh;display:flex;flex-direction:column;position:relative;padding:18px 20px 16px;border-radius:14px;background:#fff;box-shadow:0 32px 80px rgba(15,23,42,.28),0 4px 14px rgba(15,23,42,.08);gap:14px}
.modal-close-x{position:absolute;top:10px;right:10px;z-index:2;width:28px;height:28px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:#667085;font-size:18px;line-height:1;cursor:pointer;transition:background .15s,color .15s;font-family:inherit}
.modal-close-x:hover{background:#f1f4f6;color:#0f172a}
.keyword-trend-product{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding-right:34px}
.keyword-trend-product .thumb{width:48px;height:48px;border-radius:8px;object-fit:cover;background:#f1f4f6}
.keyword-trend-product-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.keyword-trend-product-copy strong{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4;font-size:14px;font-weight:700;color:#0f172a;word-break:break-word}
.keyword-trend-product-copy span{display:block;color:#667085;font-size:11.5px;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.keyword-trend-product .btn{height:30px;min-height:30px;padding:0 12px;font-size:12px;font-weight:650;border-radius:6px;flex-shrink:0}
.keyword-trend-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:8px}
.keyword-trend-toolbar .segmented{margin:0;padding:3px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}
.keyword-trend-toolbar .segmented button{padding:5px 14px;font-size:12px}
.keyword-trend-chart-panel{padding:6px 2px 0;background:transparent;border:0}
.keyword-trend-chart-panel .growth-chart-interactive{max-width:100%;margin:auto}
.keyword-ranking-panel .keyword-tab-context{margin-bottom:12px}
.keyword-secondary-tabs{display:flex;gap:0;margin:0 0 12px;border-bottom:1px solid var(--line)}
.keyword-secondary-tabs button{padding:9px 16px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-weight:700;cursor:pointer}
.keyword-secondary-tabs button:hover{background:#f8fafc;color:var(--text)}
.keyword-secondary-tabs button.active{border-bottom-color:var(--accent);color:var(--text)}
.keyword-ranking-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:7px}
.keyword-ranking-table{min-width:820px;margin:0;border:0}
.keyword-ranking-table th{white-space:nowrap}
.keyword-ranking-row{cursor:pointer}
.keyword-ranking-row:hover{background:#f8fbff}
.keyword-rank-number{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:50%;background:#f1f3f5;color:#475467;font-weight:750;font-size:12px}
.keyword-table-product{display:block;max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}
.keyword-ai-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.keyword-ai-report{max-width:980px;margin:0 auto}
@media(max-width:900px){.keyword-command-sticky{position:static}.keyword-context-heading{display:grid;gap:10px}.keyword-core-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.keyword-primary-tabs button{min-height:48px;display:grid;gap:2px;padding:7px 4px}.keyword-primary-tabs button span{font-size:12px}.keyword-primary-tabs button strong{font-size:10px}.keyword-core-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.keyword-secondary-tabs button{flex:1;padding:9px 6px}.keyword-ai-heading-actions{justify-content:flex-start}.keyword-ai-heading-actions .btn{width:100%}}
.keyword-command-summary{display:grid;justify-items:end;gap:2px;min-width:72px}.keyword-command-summary strong{font-size:22px;line-height:1}.keyword-command-summary span{color:var(--muted);font-size:11px}.keyword-matrix-tools{display:flex;align-items:center;gap:8px}.small-select{min-width:132px;min-height:32px;padding:5px 8px;font-size:12px}.keyword-ranking-subjects{display:flex;gap:6px;margin-bottom:10px}.keyword-ranking-subjects button{min-height:34px;padding:6px 14px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--muted);font-weight:700;cursor:pointer}.keyword-ranking-subjects button:hover{background:#f8fafc;color:var(--text)}.keyword-ranking-subjects button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--text)}
@media(max-width:640px){.keyword-command-summary{justify-items:start}.keyword-matrix-tools{align-items:flex-start;flex-direction:column}.small-select{width:100%}.keyword-ranking-subjects button{flex:1}}

/* Analysis Center: a restrained 12-column operating dashboard, separate from the workbench. */
.analysis-filter-bar{display:grid;gap:14px;padding:16px 18px;background:#fff}.analysis-filter-grid{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto}.analysis-date-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.analysis-date-modal{width:min(520px,calc(100vw - 32px))}
.analysis-filter-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.analysis-filter-head>div:first-child{display:grid;gap:3px}.analysis-filter-head strong{font-size:15px}.analysis-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:12px;align-items:end}.analysis-filter-actions{display:flex;gap:8px}.analysis-filter-actions .btn{white-space:nowrap}
.analysis-scope-note{display:flex;align-items:center;gap:8px;margin:12px 0 0;padding:10px 12px;border:1px solid #cfe0f6;border-radius:7px;background:#f5f9ff;color:#475467;font-size:12px;line-height:1.5}.analysis-scope-note strong{color:#1769aa;white-space:nowrap}.analysis-scope-note .btn{margin-left:auto;white-space:nowrap}.analysis-kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}
@media(max-width:560px){.analysis-scope-note{align-items:flex-start;flex-wrap:wrap}.analysis-scope-note .btn{margin-left:0}}
.analysis-kpi-card{display:grid;gap:5px;min-height:112px;padding:15px 16px;border:1px solid var(--line);border-radius:8px;background:#fff}.analysis-kpi-card span{color:var(--muted);font-size:12px}.analysis-kpi-card strong{font-size:26px;line-height:1.1;color:var(--text)}.analysis-kpi-card small{color:var(--muted);font-size:11px}.analysis-kpi-card.kpi-1 strong{color:#1769aa}.analysis-kpi-card.kpi-2 strong{color:#16835b}
.analysis-insight-row{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.85fr);gap:12px;margin-bottom:12px}.analysis-insight-panel,.analysis-alert-panel,.analysis-card,.analysis-history{padding:16px;min-width:0}.analysis-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.analysis-card-heading>div{display:grid;gap:3px;min-width:0}.analysis-card-heading h2{margin:0;font-size:16px}.analysis-card-heading span{color:var(--muted);font-size:11px;line-height:1.45}.analysis-card-heading>svg{color:#1769aa}
.analysis-conclusion{margin:4px 0 12px;padding:12px 14px;border-left:3px solid #16835b;background:#f3faf7;color:var(--text);font-size:17px;font-weight:700;line-height:1.5}.analysis-insight-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.analysis-insight-columns>div{padding:10px;border:1px solid var(--line);border-radius:6px;background:#fbfcfd}.analysis-insight-columns b{font-size:12px}.analysis-insight-columns ul{margin:7px 0 0;padding-left:17px;color:var(--muted);font-size:11px;line-height:1.6}.analysis-data-note{margin:12px 0 0;color:var(--muted);font-size:11px}.analysis-rule-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.analysis-rule-item{display:grid;gap:5px;padding:10px 12px;border-left:3px solid #98a2b3;background:#f8fafc}.analysis-rule-item strong{font-size:12px}.analysis-rule-item span{color:var(--muted);font-size:11px;line-height:1.5}.analysis-rule-item.positive{border-color:#16835b;background:#f3faf7}.analysis-rule-item.warning{border-color:#f0a202;background:#fffaf0}.analysis-rule-item.neutral{border-color:#98a2b3}
.signal-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.signal-list>div{display:grid;gap:4px;padding:11px 12px;border-bottom:1px solid var(--line)}.signal-list span,.signal-list small{color:var(--muted);font-size:11px}.signal-list strong{font-size:23px}.signal-list small{line-height:1.4}
.analysis-dashboard-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;margin-bottom:12px}.analysis-dashboard-grid>.analysis-card{grid-column:span 6}.analysis-dashboard-grid>.analysis-card:nth-child(1),.analysis-dashboard-grid>.analysis-card:nth-child(2){grid-column:span 6}.analysis-dashboard-grid>.analysis-card:nth-child(3),.analysis-dashboard-grid>.analysis-card:nth-child(4){grid-column:span 6}.analysis-dashboard-grid>.analysis-span-6{grid-column:span 6}
.analysis-donut-body{display:grid;grid-template-columns:minmax(170px,.95fr) minmax(165px,1fr);gap:8px;align-items:center;min-height:220px}.analysis-echart{width:100%;height:240px}.analysis-donut-chart{height:220px}.analysis-bar-chart{height:236px}.analysis-legend-list{display:grid;gap:9px}.analysis-legend-list>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center}.analysis-legend-list span{font-size:12px;color:var(--text)}.analysis-legend-list strong{font-size:14px}.analysis-legend-list small{grid-column:1/-1;color:var(--muted);font-size:11px}.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;background:#246bfe}.legend-dot.dot-1{background:#16835b}.legend-dot.dot-2{background:#f0a202}.legend-dot.dot-3{background:#e45757}.legend-dot.dot-4{background:#98a2b3}
.analysis-trend-card{margin-bottom:12px}.analysis-trend-card .analysis-chart{height:300px}.analysis-history-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.analysis-history-list button{display:grid;gap:5px;padding:11px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;text-align:left;cursor:pointer}.analysis-history-list button:hover,.analysis-history-list button.active{border-color:#8ab4f8;background:#f7fbff}.analysis-history-list strong{font-size:12px}.analysis-history-list span{color:var(--muted);font-size:11px}.analysis-dashboard-grid>.analysis-span-6{grid-column:1/-1}
@media(max-width:1100px){.analysis-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-filter-actions{justify-content:flex-end}.analysis-insight-row{grid-template-columns:1fr}.analysis-dashboard-grid>.analysis-card,.analysis-dashboard-grid>.analysis-card:nth-child(n){grid-column:span 6}.analysis-dashboard-grid>.analysis-card.analysis-span-6{grid-column:1/-1}}
@media(max-width:720px){.analysis-filter-head{align-items:flex-start;flex-direction:column}.analysis-filter-head .segmented{width:100%}.analysis-filter-head .segmented button{flex:1}.analysis-filter-grid{grid-template-columns:1fr}.analysis-filter-actions .btn{flex:1}.analysis-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-kpi-card{min-height:102px;padding:12px}.analysis-kpi-card strong{font-size:22px}.analysis-dashboard-grid>.analysis-card,.analysis-dashboard-grid>.analysis-card:nth-child(n){grid-column:1/-1}.analysis-donut-body{grid-template-columns:minmax(150px,.85fr) minmax(145px,1fr)}.analysis-insight-columns{grid-template-columns:1fr}.analysis-rule-list{grid-template-columns:1fr}.analysis-history-list{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.analysis-kpi-strip{gap:8px}.analysis-kpi-card{min-height:92px;padding:10px}.analysis-kpi-card strong{font-size:20px}.analysis-donut-body{grid-template-columns:1fr}.analysis-donut-chart{height:190px}.analysis-echart{height:210px}.analysis-trend-card .analysis-chart{height:255px}.analysis-history-list{grid-template-columns:1fr}.analysis-insight-panel,.analysis-alert-panel,.analysis-card,.analysis-history{padding:12px}}

/* Market Analysis decision cockpit. */
.analysis-workspace{display:grid;gap:12px}
.analysis-command-panel{padding:16px 18px;background:#fff}
.analysis-command-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;padding-bottom:12px}
.analysis-command-head h2{margin:3px 0 4px;font-size:18px;letter-spacing:0}
.analysis-command-head p{margin:0;color:var(--muted);font-size:12px}
.analysis-command-head .segmented{margin:0}
.analysis-command-grid{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:14px}
.analysis-toolbar-filters,.analysis-toolbar-actions{display:flex;align-items:center;gap:8px;min-width:0}.analysis-toolbar-actions{margin-left:auto}.analysis-inline-field{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;white-space:nowrap}.analysis-inline-field .select,.analysis-inline-field .input{width:clamp(138px,12vw,190px);min-height:36px}.analysis-category-field .input{width:clamp(150px,14vw,200px)}.analysis-command-grid .btn{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.analysis-toolbar-actions .btn.primary{padding-left:14px;padding-right:14px}
.analysis-decision-hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);gap:0;overflow:hidden;background:#fff;border-color:#cfd8e3}
.analysis-decision-hero.positive{border-left:4px solid var(--green)}
.analysis-decision-hero.watch{border-left:4px solid var(--blue)}
.analysis-decision-hero.weak{border-left:4px solid var(--amber)}
.analysis-decision-hero.neutral{border-left:4px solid #98a2b3}
.analysis-decision-main{display:grid;align-content:center;gap:12px;min-height:236px;padding:22px 24px}
.analysis-decision-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:var(--muted);font-size:12px}.analysis-decision-meta .badge{padding:2px 7px;border-radius:5px;font-size:10px;font-weight:700}
.analysis-decision-main h2{max-width:960px;margin:0;font-size:28px;font-weight:650;line-height:1.28;letter-spacing:0;color:var(--text)}
.analysis-decision-main p{max-width:900px;margin:0;color:#475467;font-size:13px;line-height:1.65}
.analysis-decision-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.analysis-decision-side{display:grid;gap:0;border-left:1px solid var(--line);background:#f8fafc}
.analysis-decision-side article{display:grid;gap:6px;min-height:78px;padding:16px 18px;border-bottom:1px solid var(--line)}
.analysis-decision-side article:last-child{border-bottom:0}
.analysis-decision-side span{color:#888;font-size:13px;font-weight:600;line-height:1.2}
.analysis-decision-side strong{font-size:13px;font-weight:650;line-height:1.5;color:#333}
.analysis-kpi-strip{margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}
.analysis-kpi-card{min-height:92px;padding:13px 14px;border-radius:7px}
.analysis-kpi-card strong{font-size:23px}
.analysis-section-label{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:4px 0 -2px}
.analysis-section-label span{color:var(--blue);font-size:11px;font-weight:800}
.analysis-section-label strong{color:#344054;font-size:14px}
.analysis-dashboard-grid{margin-bottom:0}
.analysis-card{border-radius:7px}
.analysis-card-heading{margin-bottom:8px}
.analysis-card-heading h2{font-size:15px}
.analysis-chart-insight{margin:0 0 10px;padding:8px 10px;border-left:3px solid #d4dde8;background:#f8fafc;color:#475467;font-size:12px;line-height:1.5}
.analysis-trend-card{margin-bottom:0}
.analysis-history.compact{padding:0;overflow:hidden}
.analysis-history-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;border:0;background:#fff;padding:13px 16px;text-align:left;cursor:pointer}
.analysis-history-toggle>span{display:flex;align-items:center;gap:8px;min-width:0}
.analysis-history-toggle svg{color:var(--muted)}
.analysis-history-toggle strong{font-size:14px;white-space:nowrap}
.analysis-history-toggle small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px}
.analysis-history.compact .analysis-history-list{padding:0 16px 16px}
.analysis-report-drawer{width:min(760px,94vw)}
.analysis-report-drawer .drawer-body{display:grid;gap:12px;padding:14px;background:#f6f8fa}
.analysis-report-current,.analysis-report-section{padding:16px;border:1px solid var(--line);border-radius:7px;background:#fff}
.analysis-report-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.analysis-report-current h3{margin:12px 0 8px;font-size:22px;line-height:1.35;letter-spacing:0}
.analysis-report-current p{margin:0;color:#475467;font-size:13px;line-height:1.65}
.analysis-report-actions{display:flex;justify-content:flex-end;margin-top:14px}
.analysis-report-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.analysis-report-columns article{min-width:0;padding:12px;border:1px solid var(--line);border-radius:6px;background:#fbfcfd}
.analysis-report-columns article strong{font-size:13px}
.analysis-report-columns ul{margin:8px 0 0;padding-left:17px;color:#475467;font-size:12px;line-height:1.65}
.analysis-report-columns article>span{display:block;margin-top:8px;color:var(--muted);font-size:12px}
.analysis-report-list{display:grid;gap:8px}
.analysis-report-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:6px;align-items:center}
.analysis-report-row>button:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;text-align:left;cursor:pointer}
.analysis-report-row>button:first-child:hover,.analysis-report-row.active>button:first-child{border-color:#8ab4f8;background:#f7fbff}
.analysis-report-row>button:first-child>span{display:grid;gap:4px;min-width:0}
.analysis-report-row .icon-btn{width:36px;height:36px;min-height:36px;padding:0}
.analysis-report-current small{display:block;margin-top:8px;color:var(--muted);font-size:12px}
.analysis-report-list strong{font-size:13px}
.analysis-report-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px}
@media(max-width:1100px){.analysis-decision-hero{grid-template-columns:1fr}.analysis-decision-side{grid-template-columns:repeat(3,1fr);border-left:0;border-top:1px solid var(--line)}.analysis-decision-side article{border-bottom:0;border-right:1px solid var(--line)}.analysis-decision-side article:last-child{border-right:0}.analysis-command-grid{align-items:flex-start;flex-direction:column}.analysis-toolbar-actions{align-self:flex-end;margin-left:0}}
@media(max-width:720px){.analysis-command-head{grid-template-columns:1fr}.analysis-command-head .segmented{width:100%}.analysis-command-head .segmented button{flex:1}.analysis-toolbar-filters,.analysis-toolbar-actions{width:100%;flex-wrap:wrap}.analysis-inline-field{flex:1 1 160px}.analysis-inline-field .select,.analysis-inline-field .input,.analysis-category-field .input{width:100%}.analysis-command-grid .btn{flex:1}.analysis-decision-main{min-height:0;padding:18px}.analysis-decision-main h2{font-size:22px}.analysis-decision-side{grid-template-columns:1fr}.analysis-decision-side article{border-right:0;border-bottom:1px solid var(--line)}.analysis-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-section-label{align-items:flex-start;flex-direction:column}}
@media(max-width:640px){.analysis-report-drawer{width:100vw}.analysis-report-columns{grid-template-columns:1fr}.analysis-report-row{grid-template-columns:1fr}.analysis-report-row>button:first-child{align-items:flex-start;flex-direction:column}.analysis-report-row .icon-btn{width:100%}.analysis-report-actions .btn{width:100%}}
@media(max-width:460px){.analysis-kpi-strip{grid-template-columns:1fr 1fr}.analysis-decision-actions .btn{width:100%}.analysis-history-toggle{align-items:flex-start}.analysis-history-toggle>span{align-items:flex-start;flex-direction:column}.analysis-history-toggle small{white-space:normal}}
.settings-advanced{margin-top:16px;border-top:1px solid var(--line)}.settings-advanced summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0;color:var(--text);font-weight:700;cursor:pointer;list-style:none}.settings-advanced summary::-webkit-details-marker{display:none}.settings-advanced summary:before{content:'+';display:inline-grid;place-items:center;width:18px;height:18px;border:1px solid var(--line);border-radius:4px;color:var(--muted);font-weight:400}.settings-advanced[open] summary:before{content:'−'}.settings-advanced summary small{margin-left:auto;color:var(--muted);font-size:11px;font-weight:400}.settings-advanced-body{padding:2px 0 4px}
.settings-hero-v2{padding:18px 20px}.settings-status-badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.settings-message{margin:0}.settings-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.settings-status-card{display:grid;gap:4px;min-height:82px;padding:13px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}.settings-status-card span{color:var(--muted);font-size:12px}.settings-status-card strong{font-size:18px}.settings-status-card small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.settings-layout-v2{display:grid;grid-template-columns:minmax(420px,1fr) minmax(420px,.95fr);gap:12px;align-items:start}.settings-card{padding:18px 20px}.settings-template-card{display:grid;gap:12px}.template-save-box{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(220px,1fr) auto;gap:8px;align-items:center}.template-list{display:grid;gap:8px;max-height:340px;overflow:auto;padding-right:2px}.template-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:8px;background:#fbfcfd}.template-item.active{border-color:#9fb9d6;background:#f4f8ff}.template-item strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.template-item p{margin:4px 0;color:var(--muted);font-size:12px}.template-item span{color:var(--muted);font-size:11px}.template-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.template-actions .btn{min-height:32px;padding:7px 10px}.settings-prompt-editor{padding:18px 20px}.settings-editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.prompt-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.prompt-label-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.prompt-label-row span{color:var(--muted);font-size:11px}.prompt-textarea{min-height:300px;width:100%;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.6}.prompt-textarea.system{min-height:170px}.settings-actions-v2{margin-top:14px}
@media(max-width:1200px){.settings-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-layout-v2{grid-template-columns:1fr}.template-save-box{grid-template-columns:1fr}.template-save-box .btn{width:100%}}
@media(max-width:760px){.settings-status-grid,.prompt-editor-grid{grid-template-columns:1fr}.template-item{grid-template-columns:1fr}.template-actions{justify-content:flex-start}.settings-status-badges,.settings-editor-actions{justify-content:flex-start}.prompt-textarea{min-height:240px}}
.settings-page-v3{width:100%;max-width:1280px;display:grid;gap:12px;align-content:start}.ai-core-card,.ai-prompt-status-card{padding:18px 20px}.ai-core-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.ai-core-head h2,.ai-prompt-status-card h2{margin:4px 0;font-size:20px}.ai-core-head p,.ai-prompt-status-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.ai-core-form{display:grid;grid-template-columns:minmax(320px,1.2fr) minmax(220px,.8fr) minmax(280px,1fr);gap:14px;align-items:start}.ai-key-input{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:8px}.ai-key-input .icon-btn{height:38px}.ai-core-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.ai-core-actions .btn{display:inline-flex;align-items:center;gap:6px;min-height:36px}.ai-core-actions .btn:first-of-type svg{color:#1769aa}.ai-core-actions .btn:first-of-type:disabled svg{animation:refresh-spin .9s linear infinite}.ai-test-feedback{margin-right:auto;color:var(--muted);font-size:12px;line-height:1.45}.ai-test-feedback.ok{color:#027a48;font-weight:700}.ai-test-feedback.fail{color:#b42318;font-weight:700}.ai-prompt-status-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center}.ai-prompt-status-main{display:grid;grid-template-columns:minmax(230px,.7fr) minmax(360px,1.3fr);gap:18px;align-items:center}.ai-prompt-version-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ai-prompt-version{display:grid;gap:6px;min-height:88px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fbfcfd;text-align:left;cursor:pointer}.ai-prompt-version:hover{border-color:#9fb9d6;background:#f6faff}.ai-prompt-version span{display:flex;align-items:center;gap:7px;color:#475467;font-size:12px;font-weight:700}.ai-prompt-version strong{overflow:hidden;color:var(--text);font-size:15px;text-overflow:ellipsis;white-space:nowrap}.ai-prompt-version small{color:var(--muted);font-size:11px}.ai-open-library{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.ai-prompt-backdrop{z-index:88}.drawer.ai-prompt-drawer{width:min(60vw,1120px);min-width:760px;max-width:100vw;height:100vh;display:flex;flex-direction:column;background:#fff}.ai-prompt-drawer-head{flex:0 0 auto}.ai-prompt-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-bottom:1px solid var(--line);background:#f8fafc}.ai-prompt-tabs button{min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-right:1px solid var(--line);background:transparent;padding:12px 8px;color:#475467;font-weight:800;cursor:pointer}.ai-prompt-tabs button:last-child{border-right:0}.ai-prompt-tabs button.active{background:#fff;color:var(--text);box-shadow:inset 0 -3px var(--accent)}.ai-prompt-tabs small{max-width:130px;overflow:hidden;color:var(--muted);font-size:10px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.ai-prompt-workbench{flex:1;min-height:0;display:grid;grid-template-columns:280px minmax(0,1fr);background:#f4f6f8}.ai-template-sidebar{min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--line);background:#fff}.ai-template-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px;border-bottom:1px solid var(--line)}.ai-template-sidebar-head strong{font-size:14px}.ai-template-sidebar-head small{color:var(--muted);font-size:11px}.ai-template-list{display:grid;gap:8px;overflow:auto;padding:10px}.ai-template-row{display:grid;grid-template-columns:minmax(0,1fr) 34px;gap:6px;align-items:start;border:1px solid var(--line);border-radius:8px;background:#fbfcfd;padding:8px}.ai-template-row.active{border-color:#8ab4f8;background:#f5f9ff}.ai-template-row>button:first-child{min-width:0;display:grid;gap:4px;border:0;background:transparent;text-align:left;cursor:pointer}.ai-template-row strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.ai-template-row span{display:-webkit-box;overflow:hidden;color:var(--muted);font-size:11px;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical}.ai-template-row small{color:var(--muted);font-size:10px}.ai-template-row .icon-btn{width:32px;height:32px}.ai-template-editor{min-width:0;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:12px}.ai-variable-box{display:grid;gap:10px;padding:12px;border:1px solid #cfe0f6;border-radius:8px;background:#f6faff}.ai-variable-box strong{display:block;font-size:13px}.ai-variable-box span{display:block;margin-top:3px;color:#475467;font-size:11px;line-height:1.5}.ai-variable-box>div:last-child{display:flex;gap:6px;flex-wrap:wrap}.ai-variable-box button{border:1px solid #bed3eb;border-radius:999px;background:#fff;color:#1769aa;padding:5px 9px;font-size:11px;font-weight:700;cursor:pointer}.ai-variable-box button:hover{background:#eaf3ff}.ai-template-name-row{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(260px,1.2fr);gap:10px}.ai-template-textarea{width:100%;min-height:300px;max-height:none;resize:vertical;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;line-height:1.65;background:#fff}.ai-template-actions{position:sticky;bottom:-16px;z-index:2;display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:auto;padding:12px 0 0;border-top:1px solid var(--line);background:linear-gradient(180deg,rgba(244,246,248,.9),#f4f6f8 28%)}.ai-template-actions>div{margin-right:auto;display:grid;gap:3px}.ai-template-actions strong{font-size:12px}.ai-template-actions span{color:var(--muted);font-size:11px}.ai-template-actions .btn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.auth-page{position:relative;min-height:100vh;overflow:hidden;background:#f6f7f9;color:#0b1220;padding:22px 28px 28px;display:grid;grid-template-rows:auto 1fr}.auth-page:before{content:'';position:absolute;inset:0;background-image:radial-gradient(circle at 1px 1px,rgba(15,23,42,.08) 1px,transparent 0),linear-gradient(90deg,rgba(15,23,42,.035) 1px,transparent 1px),linear-gradient(rgba(15,23,42,.035) 1px,transparent 1px);background-size:18px 18px,96px 96px,96px 96px;mask-image:linear-gradient(90deg,rgba(0,0,0,.86),rgba(0,0,0,.25) 58%,rgba(0,0,0,.78));pointer-events:none}.auth-topbar{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-start;gap:18px;width:100%;margin:0;color:#0f172a}.auth-topbar strong{font-size:23px;font-weight:950;letter-spacing:0}.auth-shell{position:relative;z-index:1;width:min(1060px,100%);margin:auto;display:grid;grid-template-columns:minmax(360px,1fr) 476px;gap:70px;align-items:center}.auth-intro{display:grid;gap:20px;align-content:center}.auth-kicker{width:max-content;border:1px solid #d9e2ee;border-radius:999px;background:rgba(255,255,255,.72);padding:7px 12px;color:#1769aa;font-size:12px;font-weight:850}.auth-intro h1{margin:0;font-size:58px;line-height:1.02;font-weight:950;letter-spacing:0;color:#09111f}.auth-intro p{max-width:560px;margin:0;color:#475467;font-size:16px;line-height:1.85}.auth-proof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}.auth-proof-grid article{min-height:92px;padding:14px;border:1px solid rgba(202,213,226,.9);border-radius:8px;background:rgba(255,255,255,.76);box-shadow:0 8px 20px rgba(15,23,42,.045)}.auth-proof-grid strong{display:block;margin-bottom:8px;font-size:14px}.auth-proof-grid span{display:block;color:#667085;font-size:12px;line-height:1.55}.auth-card{display:grid;gap:20px;padding:38px 42px 34px;border:1px solid rgba(213,219,229,.95);border-radius:18px;background:rgba(255,255,255,.94);box-shadow:0 28px 80px rgba(15,23,42,.13)}.auth-card-head{display:grid;gap:6px}.auth-card-head span{color:#667085;font-size:13px;font-weight:800}.auth-card-head h2{margin:0;font-size:30px;line-height:1.15;font-weight:900;letter-spacing:0;color:#0b1220}.auth-card-head p{margin:0;color:#667085;font-size:13px;line-height:1.6}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #e4e7ec}.auth-tabs button{height:42px;border:0;border-bottom:2px solid transparent;background:transparent;color:#667085;font-size:14px;font-weight:800;cursor:pointer}.auth-tabs button.active{border-bottom-color:#0b1220;color:#0b1220}.auth-form{display:grid;gap:15px}.auth-form label{display:grid;gap:7px;color:#344054;font-size:13px;font-weight:800}.auth-form .input{height:44px;border-radius:8px;background:#fff;font-size:14px}.auth-submit{height:46px;border:0;border-radius:8px;background:#090f1c;color:#fff;font-size:14px;font-weight:900;cursor:pointer;transition:transform .15s,box-shadow .15s,background .15s}.auth-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 22px rgba(15,23,42,.18)}.auth-submit:disabled{background:#d0d5dd;color:#667085;cursor:not-allowed}.auth-error{margin:0}.auth-loading-card{position:relative;z-index:1;width:min(420px,100%);align-self:center;justify-self:center;padding:28px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 18px 45px rgba(15,23,42,.12);text-align:center}.sidebar-actions .sidebar-settings:last-child{color:#f1f5f9}
@media(max-width:980px){.auth-shell{grid-template-columns:1fr;gap:28px;align-content:center}.auth-intro{text-align:center;justify-items:center}.auth-intro h1{font-size:44px}.auth-intro p{font-size:14px}.auth-proof-grid{width:100%;max-width:680px}.auth-card{width:min(476px,100%);justify-self:center}}
@media(max-width:640px){.auth-page{padding:18px}.auth-topbar strong{font-size:19px}.auth-shell{gap:22px}.auth-intro h1{font-size:34px}.auth-proof-grid{grid-template-columns:1fr}.auth-proof-grid article{min-height:0}.auth-card{padding:28px 22px;border-radius:14px}.auth-card-head h2{font-size:26px}}
@media(max-width:1180px){.ai-core-form{grid-template-columns:1fr 1fr}.ai-key-field{grid-column:1/-1}.ai-prompt-status-card,.ai-prompt-status-main{grid-template-columns:1fr}.ai-open-library{justify-self:start}.drawer.ai-prompt-drawer{width:min(86vw,980px);min-width:0}.ai-prompt-workbench{grid-template-columns:240px minmax(0,1fr)}}
@media(max-width:760px){.ai-core-head,.ai-core-actions{align-items:flex-start;flex-direction:column}.ai-core-form,.ai-prompt-version-grid,.ai-template-name-row{grid-template-columns:1fr}.ai-core-actions .btn,.ai-open-library{width:100%;justify-content:center}.ai-test-feedback{margin-right:0}.drawer.ai-prompt-drawer{width:100vw}.ai-prompt-tabs{grid-template-columns:1fr}.ai-prompt-tabs button{justify-content:flex-start;border-right:0;border-bottom:1px solid var(--line)}.ai-prompt-workbench{grid-template-columns:1fr}.ai-template-sidebar{max-height:34vh;border-right:0;border-bottom:1px solid var(--line)}.ai-template-actions{align-items:stretch;flex-direction:column}.ai-template-actions>div{margin-right:0}.ai-template-actions .btn{width:100%;justify-content:center}}
.analysis-sample-representation{display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(300px,2fr) auto;align-items:center;gap:18px;padding:15px 17px}.analysis-sample-copy h2{margin:3px 0 4px;font-size:16px}.analysis-sample-copy p{margin:0;color:var(--muted);font-size:11px}.analysis-sample-copy>strong{display:block;margin-top:10px;padding:7px 9px;border-left:3px solid var(--blue);background:#f6f9fc;color:#344054;font-size:12px;font-weight:500}.analysis-sample-representation.warning .analysis-sample-copy>strong{border-left-color:var(--amber);background:#fffaf0}.analysis-sample-representation.positive .analysis-sample-copy>strong{border-left-color:var(--green);background:#f2fbf7}.analysis-sample-representation.neutral .analysis-sample-copy>strong{border-left-color:#98a2b3}.analysis-sample-metrics{display:grid;grid-template-columns:repeat(3,minmax(80px,1fr));border:1px solid var(--line);border-radius:6px;background:#f8fafc}.analysis-sample-metrics>div{padding:9px 12px;border-right:1px solid var(--line)}.analysis-sample-metrics>div:last-child{border-right:0}.analysis-sample-metrics span{display:block;color:var(--muted);font-size:11px}.analysis-sample-metrics strong{display:block;margin-top:5px;font-size:18px}.analysis-sample-representation>.btn{white-space:nowrap}
@media(max-width:620px){.jobs-schedule-controls{grid-template-columns:1fr}.jobs-schedule-controls .btn{width:100%}.jobs-schedule-panel .section-title{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){.analysis-sample-representation{grid-template-columns:1fr;gap:12px}.analysis-sample-representation>.btn{justify-self:start}}
.analysis-sample-representation{grid-template-columns:minmax(240px,.9fr) minmax(380px,1.6fr);align-items:stretch;gap:20px;padding:16px 18px}.analysis-sample-copy{display:flex;min-width:0;flex-direction:column;align-items:flex-start}.analysis-sample-copy h2{font-size:17px}.analysis-sample-copy>strong{width:100%;box-sizing:border-box}.analysis-sample-copy .analysis-sample-metrics{width:100%;margin-top:14px}.analysis-sample-copy>.btn{margin-top:12px}.analysis-sample-chart{min-width:0;padding-left:20px;border-left:1px solid var(--line)}.analysis-sample-chart-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:1px 0 5px}.analysis-sample-chart-title span{color:var(--muted);font-size:11px}.analysis-shop-distribution-chart{width:100%;height:220px}.analysis-sample-representation .analysis-sample-metrics{border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:transparent}.analysis-sample-representation .analysis-sample-metrics>div{padding:10px 8px 9px 0}.analysis-sample-representation .analysis-sample-metrics strong{font-size:17px}
@media(max-width:720px){.analysis-sample-representation{grid-template-columns:1fr;gap:14px}.analysis-sample-chart{padding:14px 0 0;border-top:1px solid var(--line);border-left:0}.analysis-shop-distribution-chart{height:205px}}
.product-table-v2.decision .data-table{min-width:1688px}.product-table-v2 .product-revenue-head,.product-table-v2 .product-revenue-cell{width:115px}.product-table-v2 .opportunity-stage-head,.product-table-v2 .opportunity-stage-cell{width:110px}.product-table-v2 th.product-monitor-status-head,.product-table-v2 td.product-monitor-status-cell{width:80px;text-align:center}.product-monitor-status-cell .switch-line{justify-content:center}.opportunity-stage-cell .badge{white-space:nowrap}

/* 商品监控表：桌面宽度内展示完整列，不再依赖横向滚动 */
.product-table-v2,.product-table-v2.decision{overflow:visible}
.product-table-v2 .data-table,.product-table-v2.decision .data-table{width:100%;min-width:0!important;table-layout:fixed}
.product-table-v2 .data-table th,.product-table-v2 .data-table td{padding:9px 6px;font-size:12px;line-height:1.35;overflow:hidden}
.product-table-v2 .data-table th{white-space:normal;vertical-align:middle}
.product-table-v2 th:nth-child(1),.product-table-v2 td:nth-child(1){width:3%}
.product-table-v2 th:nth-child(2),.product-table-v2 td:nth-child(2){width:20%;min-width:0}
.product-table-v2 th:nth-child(3),.product-table-v2 td:nth-child(3){width:5%}
.product-table-v2 th:nth-child(4),.product-table-v2 td:nth-child(4){width:7.5%}
.product-table-v2 th:nth-child(5),.product-table-v2 td:nth-child(5){width:7%}
.product-table-v2 th:nth-child(6),.product-table-v2 td:nth-child(6){width:5.5%}
.product-table-v2 th:nth-child(7),.product-table-v2 td:nth-child(7){width:7.5%}
.product-table-v2 th:nth-child(8),.product-table-v2 td:nth-child(8){width:7%}
.product-table-v2 th:nth-child(9),.product-table-v2 td:nth-child(9){width:9%}
.product-table-v2 th:nth-child(10),.product-table-v2 td:nth-child(10){width:7.5%}
.product-table-v2 th:nth-child(11),.product-table-v2 td:nth-child(11){width:6.5%}
.product-table-v2 th:nth-child(12),.product-table-v2 td:nth-child(12){width:5%;text-align:center}
.product-table-v2 th:nth-child(13),.product-table-v2 td:nth-child(13){width:6%}
.product-table-v2 th:nth-child(14),.product-table-v2 td:nth-child(14){width:3.5%;text-align:center}
.product-table-v2 .product-cell{gap:8px}
.product-table-v2 .thumb{width:42px;height:42px;flex:0 0 42px}
.product-table-v2 .product-name{font-size:12px;line-height:1.38}
.product-table-v2 .product-sub,.product-table-v2 .cell-stack span,.product-table-v2 .decision-score{font-size:10px}
.product-table-v2 .product-category-chip,.product-table-v2 .shop-assignment-chip{max-width:78px}
.product-table-v2 .supplier-company-cell strong{font-size:11px}
.product-table-v2 .sparkline{width:68px;height:24px}
.product-table-v2 .row-menu-trigger{width:28px;height:28px}

/* ===== 今日工作台 (WorkbenchPage) - 现代 SaaS 视觉 ===== */
.wb-card{background:#fff;border:1px solid #edf0f3;border-radius:10px;box-shadow:0 1px 2px rgba(15,23,42,.04),0 1px 3px rgba(15,23,42,.06)}
.wb-card .section-title h2{display:inline-flex;align-items:center;gap:7px}

/* 顶部 Alert 通知栏 */
.wb-alert{display:flex;align-items:center;gap:14px;padding:12px 16px;margin-bottom:14px;border-radius:10px;border:1px solid transparent;box-shadow:0 1px 2px rgba(15,23,42,.03);transition:box-shadow .15s}
.wb-alert-info{background:#eff6ff;border-color:#dbe7fb;color:#0f3d8c}
.wb-alert-warn{background:#fff7ed;border-color:#fde0c2;color:#8a4a0a}
.wb-alert-icon{flex:0 0 auto;width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:rgba(255,255,255,.7)}
.wb-alert-info .wb-alert-icon{color:#1d4ed8}.wb-alert-warn .wb-alert-icon{color:#c2410c}
.wb-alert-body{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.wb-alert-title{display:flex;align-items:baseline;gap:8px;font-size:13px;min-width:0;flex-wrap:wrap}
.wb-alert-title strong{font-weight:700;color:inherit}
.wb-alert-divider{opacity:.45}
.wb-alert-meta{color:inherit;opacity:.78;font-size:12px}
.wb-alert-extra{display:flex;align-items:baseline;gap:8px;font-size:12px}
.wb-alert-coverage{font-size:18px;font-weight:780;color:inherit;font-variant-numeric:tabular-nums}
.wb-alert-coverage-note{color:inherit;opacity:.78}
.wb-alert-action{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;border:0;background:rgba(255,255,255,.78);color:inherit;padding:6px 12px;border-radius:6px;font-weight:650;font-size:12px;cursor:pointer;transition:background .15s,transform .15s;box-shadow:0 1px 0 rgba(15,23,42,.04)}
.wb-alert-action:hover{background:#fff}

/* KPI 4 卡片 */
.wb-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin-bottom:14px}
.wb-kpi-card{display:flex;flex-direction:column;gap:5px;padding:12px 14px 10px;background:#fff;border:1px solid #edf0f3;border-radius:10px;box-shadow:0 1px 2px rgba(15,23,42,.04),0 1px 3px rgba(15,23,42,.06);min-height:88px;cursor:default;transition:box-shadow .15s,transform .15s}
.wb-kpi-card.clickable{cursor:pointer}
.wb-kpi-card.clickable:hover{box-shadow:0 4px 12px rgba(15,23,42,.08),0 1px 3px rgba(15,23,42,.06)}
.wb-kpi-card.clickable:active{transform:translateY(1px)}
.wb-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.wb-kpi-label{font-size:12px;color:var(--muted);font-weight:550}
.wb-kpi-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;flex:0 0 auto}
.kpi-icon-green{background:#e6f4ec;color:#027a48}
.kpi-icon-blue{background:#e7f0fa;color:#1769aa}
.kpi-icon-amber{background:#fef3e0;color:#c2770c}
.kpi-icon-red{background:#fde7e3;color:#b42318}
.wb-kpi-value{font-size:26px;font-weight:780;line-height:1.1;letter-spacing:-.02em;margin-top:1px;font-variant-numeric:tabular-nums}
.wb-kpi-card.metric-up .wb-kpi-value{color:#027a48}
.wb-kpi-card.metric-down .wb-kpi-value{color:#b42318}
.wb-kpi-card.metric-flat .wb-kpi-value{color:#0f172a}
.wb-kpi-note{font-size:11px;color:var(--muted);margin-top:auto;line-height:1.35}
.wb-kpi-link{display:inline-flex;align-items:center;gap:3px;margin-top:6px;font-size:11px;font-weight:650;color:#1769aa}

/* 排行榜 ListItem */
.wb-rank-list{display:flex;flex-direction:column}
.wb-rank-item{width:100%;display:flex;align-items:center;gap:12px;padding:10px 0;border:0;border-bottom:1px solid #eef0f3;background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit}
.wb-rank-item:last-child{border-bottom:0}
.wb-rank-item:hover{background:#fafbfc}
.wb-rank-item:focus-visible{outline:2px solid #1769aa;outline-offset:-2px;border-radius:4px}
.wb-rank-index{flex:0 0 auto;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#f1f4f6;color:#5b6675;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.wb-rank-index.top{background:#e7f0fa;color:#1769aa}
.wb-rank-list .wb-rank-item:nth-of-type(1) .wb-rank-index.top{background:#1f4ea1;color:#fff}
.wb-rank-list .wb-rank-item:nth-of-type(2) .wb-rank-index.top{background:#4d80d4;color:#fff}
.wb-rank-list .wb-rank-item:nth-of-type(3) .wb-rank-index.top{background:#88aae0;color:#fff}
.wb-rank-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.wb-rank-name{font-size:13px;font-weight:650;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wb-rank-meta{display:flex;align-items:center;gap:8px;color:#6b7280;font-size:11px;min-width:0}
.wb-rank-meta .badge{flex:0 0 auto}
.wb-rank-meta>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.wb-rank-value{flex:0 0 auto;text-align:right;display:flex;flex-direction:column;align-items:flex-end;min-width:74px}
.wb-rank-value strong{font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.2}
.wb-rank-value small{font-size:10px;color:#6b7280;margin-top:1px}
.wb-rank-value.metric-up strong{color:#027a48}

/* 异常列表 */
.wb-alert-list{display:flex;flex-direction:column}
.wb-alert-row{width:100%;display:flex;align-items:center;gap:10px;padding:10px 0;border:0;border-bottom:1px solid #eef0f3;background:transparent;text-align:left;cursor:pointer;font:inherit;color:inherit}
.wb-alert-row:last-child{border-bottom:0}
.wb-alert-row:hover{background:#fff8f6}
.wb-alert-row-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#fde7e3;color:#b42318;flex:0 0 auto}

/* 响应式 */
@media(max-width:1100px){.wb-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.wb-alert{flex-wrap:wrap}.wb-alert-body{width:100%}.wb-alert-action{width:100%;justify-content:center}}
@media(max-width:560px){.wb-kpi-grid{grid-template-columns:1fr 1fr}.wb-rank-value{min-width:62px}}

/* ===== 顶部状态条（Status Bar，紧凑单行） ===== */
.wb-statusbar{display:flex;align-items:center;gap:12px;padding:8px 14px;margin-bottom:14px;border-radius:8px;background:#f8fafc;border:1px solid #edf0f3;font-size:12px;color:#475569;flex-wrap:wrap}
.wb-statusbar.has-anomaly{background:#fff7ed;border-color:#fde0c2;color:#8a4a0a}
.wb-statusbar-action{display:inline-flex;align-items:center;gap:6px;border:0;background:transparent;font:inherit;font-weight:650;color:inherit;cursor:default;padding:0;border-radius:4px;line-height:1}
.wb-statusbar-action.alert{cursor:pointer;padding:5px 10px;background:rgba(255,255,255,.78);transition:background .15s}
.wb-statusbar-action.alert:hover{background:#fff}
.wb-statusbar-action.healthy{color:#027a48}
.wb-statusbar-dot{width:8px;height:8px;border-radius:50%;background:#b42318;display:inline-block;box-shadow:0 0 0 3px rgba(180,35,24,.18)}
.wb-statusbar-meta{color:inherit;opacity:.78;font-size:11px;margin-left:auto}

/* ===== 三分并排布局（商品增长榜 / 店铺动态榜 / 异动飙升 Top） ===== */
.wb-trio-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:14px;
}
.wb-trio-card{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.wb-trio-card .section-title{
  align-items:flex-start;
  gap:10px;
}
.wb-trio-card .section-title>div{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
  flex:1;
}
.wb-trio-card .section-title>div>h2{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  font-weight:700;
  margin:0;
  color:#0f172a;
  line-height:1.3;
}
.wb-trio-card .section-title>div>span{
  font-size:11px;
  color:var(--muted);
  line-height:1.4;
}
.wb-trio-count{
  font-size:11px;
  color:var(--muted);
  font-weight:600;
  background:#f1f4f6;
  padding:3px 9px;
  border-radius:999px;
  font-variant-numeric:tabular-nums;
  flex:0 0 auto;
}
.wb-trio-count.clickable{border:1px solid transparent;cursor:pointer}
.wb-trio-count.clickable:hover{border-color:#c8d7e8;background:#f5f9ff;color:#1769aa}
.wb-trio-more{width:100%;min-height:34px;margin-top:auto;border:1px solid var(--line);border-radius:6px;background:#fff;color:#1769aa;font-size:12px;font-weight:750;cursor:pointer}
.wb-trio-more:hover{background:#f5f9ff;border-color:#c8d7e8}
.wb-trio-list{
  display:flex;
  flex-direction:column;
  max-height:480px;
  overflow-y:auto;
  padding:4px 0;
}
.wb-trio-row{
  width:100%;
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 6px;
  border:0;
  border-bottom:1px solid #eef0f3;
  background:transparent;
  text-align:left;
  cursor:pointer;
  font:inherit;
  color:inherit;
  line-height:1.55;
  transition:background .12s;
}
.wb-trio-row:last-child{
  border-bottom:0;
}
.wb-trio-row:hover{
  background:#fafbfc;
}
.wb-trio-row:focus-visible{
  outline:2px solid #1769aa;
  outline-offset:-2px;
}
.wb-trio-index{
  flex:0 0 auto;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f1f4f6;
  color:#5b6675;
  font-size:12px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  margin-top:2px;
}
.wb-trio-index.top{
  background:#e7f0fa;
  color:#1769aa;
}
.wb-trio-list .wb-trio-row:nth-of-type(1) .wb-trio-index.top{
  background:#1f4ea1;
  color:#fff;
}
.wb-trio-list .wb-trio-row:nth-of-type(2) .wb-trio-index.top{
  background:#4d80d4;
  color:#fff;
}
.wb-trio-list .wb-trio-row:nth-of-type(3) .wb-trio-index.top{
  background:#88aae0;
  color:#fff;
}
.wb-trio-main{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.wb-trio-title{
  font-size:13px;
  font-weight:700;
  color:#1f2937;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:break-word;
}
.wb-trio-meta{
  font-size:12px;
  color:#6b7280;
  line-height:1.5;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.wb-trio-chip{
  display:inline-block;
  margin-left:8px;
  padding:1px 8px;
  background:#e6f4ec;
  color:#027a48;
  font-size:11px;
  font-weight:600;
  border-radius:10px;
  font-variant-numeric:tabular-nums;
  vertical-align:1px;
}
.wb-trio-metric{
  flex:0 0 auto;
  text-align:right;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  min-width:78px;
  gap:2px;
  margin-top:2px;
}
.wb-trio-metric strong{
  font-size:14px;
  font-weight:780;
  font-variant-numeric:tabular-nums;
  color:#0f172a;
  line-height:1.3;
}
.wb-trio-metric small{
  font-size:11px;
  color:#6b7280;
  line-height:1.4;
}
.wb-trio-metric.metric-up strong{
  color:#027a48;
}
.wb-trio-metric.metric-down strong{
  color:#b42318;
}
.workbench-rank-backdrop{z-index:90}
.workbench-rank-modal{width:min(1040px,92vw);max-height:88vh;display:flex;flex-direction:column;overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 30px 80px rgba(15,23,42,.28),0 4px 14px rgba(15,23,42,.1)}
.workbench-rank-modal .modal-head{padding:18px 18px 14px;border-bottom:1px solid #e7edf4;background:linear-gradient(180deg,#fff,#f8fbff)}
.workbench-rank-modal .modal-head h2{font-size:20px;letter-spacing:.01em}
.workbench-rank-modal .modal-head .btn{border-radius:8px}
.workbench-rank-source{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 14px 10px;padding:11px 12px;border:1px solid #dce8f5;border-radius:10px;background:#f7fbff}
.workbench-rank-source strong{display:block;font-size:13px;color:#102033}
.workbench-rank-source span{display:block;margin-top:4px;color:#52677d;font-size:12px;line-height:1.45}
.workbench-rank-source .btn{flex:0 0 auto;border-radius:8px;background:#fff}
.workbench-rank-table-wrap{flex:1;min-height:220px;margin:0 14px;overflow-y:auto;overflow-x:hidden;border:1px solid #e1e8f0;border-radius:10px;background:#fff;scrollbar-gutter:stable}
.workbench-rank-table-wrap .workbench-rank-table thead th{position:sticky;top:0;z-index:1}
.workbench-rank-table{width:100%;min-width:0!important;margin:0;border:0;table-layout:fixed}
.workbench-rank-table th{background:#f7fafc;color:#334155;font-size:12px;font-weight:800;white-space:normal}
.workbench-rank-table th,.workbench-rank-table td{padding:10px 10px;overflow:visible;white-space:normal;word-break:break-word}
.workbench-rank-table th:first-child,.workbench-rank-table td:first-child{width:62px;text-align:center}
.workbench-rank-table th:nth-child(2),.workbench-rank-table td:nth-child(2){width:30%}
.workbench-rank-table th:nth-child(3),.workbench-rank-table td:nth-child(3){width:14%}
.workbench-rank-table th:nth-child(4),.workbench-rank-table td:nth-child(4){width:10%}
.workbench-rank-table th:nth-child(5),.workbench-rank-table td:nth-child(5){width:11%}
.workbench-rank-table th:nth-child(6),.workbench-rank-table td:nth-child(6){width:11%}
.workbench-rank-table th:nth-child(7),.workbench-rank-table td:nth-child(7){width:11%}
.workbench-rank-table th:nth-child(8),.workbench-rank-table td:nth-child(8){width:13%}
.workbench-rank-table td{vertical-align:middle;height:auto;min-height:68px;font-size:12.5px}
.workbench-rank-clickable{cursor:pointer}
.workbench-rank-clickable:hover{background:#f8fbff}
.workbench-rank-clickable:hover .workbench-rank-product strong{text-decoration:underline}
.workbench-rank-product{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;min-width:0;max-width:100%}
.workbench-rank-product .thumb{width:42px;height:42px;border-radius:8px}
.workbench-rank-product>div{min-width:0}
.workbench-rank-product strong{display:-webkit-box;overflow:hidden;line-height:1.35;max-height:38px;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word;font-size:12.5px}
.workbench-rank-product span{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#667085;font-size:11px;line-height:1.3}
.workbench-rank-actions{align-items:center;margin:12px 14px 14px;padding-top:12px;border-top:1px solid #eef2f7}
.workbench-rank-actions span{margin-right:auto;color:#667085;font-size:12px}
.workbench-rank-actions .btn{border-radius:8px}
.workbench-rank-pager{display:flex;align-items:center;gap:8px;margin-left:auto}
.workbench-rank-pager span{margin:0;color:#475467;font-weight:650;white-space:nowrap}

/* ===== Mini QuickView（hover 浮层） ===== */
.mini-quickview-anchor{position:fixed;left:0;top:0;width:0;height:0;pointer-events:none;z-index:999}
.mini-quickview-anchor .mini-quickview{pointer-events:auto}
.mini-quickview{position:fixed;width:320px;background:#fff;border:1px solid #edf0f3;border-radius:10px;box-shadow:0 10px 28px rgba(15,23,42,.14),0 2px 6px rgba(15,23,42,.06);padding:14px;font-size:13px;z-index:1000}
.mini-quickview-head{display:flex;align-items:center;gap:8px;padding-bottom:10px;border-bottom:1px solid #eef0f3;margin-bottom:10px}
.mini-quickview-icon{flex:0 0 auto;width:24px;height:24px;display:grid;place-items:center;border-radius:6px}
.mini-quickview-icon.up{background:#e6f4ec;color:#027a48}
.mini-quickview-icon.down{background:#fde7e3;color:#b42318}
.mini-quickview-icon.warn{background:#fff7ed;color:#c2410c}
.mini-quickview-icon.neutral{background:#eff6ff;color:#1d4ed8}
.mini-quickview-title{flex:1;min-width:0;font-size:13px;font-weight:650;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-quickview-close{flex:0 0 auto;width:22px;height:22px;display:grid;place-items:center;border:0;background:transparent;border-radius:4px;color:#5b6675;font-size:18px;line-height:1;cursor:pointer;transition:background .12s;font-family:inherit}
.mini-quickview-close:hover{background:#f1f4f6}
.mini-quickview-body{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.mini-quickview-stat{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px;color:#5b6675}
.mini-quickview-stat strong{font-size:14px;font-weight:700;color:#0f172a;font-variant-numeric:tabular-nums}
.mini-quickview-stat strong.metric-up{color:#027a48}
.mini-quickview-stat strong.metric-down{color:#b42318}
.mini-quickview-action{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:8px 12px;border:0;border-radius:6px;background:#1769aa;color:#fff;font-size:12px;font-weight:650;cursor:pointer;transition:background .15s;font-family:inherit}
.mini-quickview-action:hover{background:#10548a}

/* ===== 底部趋势图压缩 ===== */
.wb-trend-mini .market-trend-chart{height:160px!important;min-height:160px;max-height:160px}
.wb-trend-mini .section-title{margin-bottom:8px}
.wb-trend-mini{padding-bottom:14px}

/* ===== 响应式（trio / statusbar） ===== */
@media(max-width:1100px){.wb-trio-grid{grid-template-columns:1fr}.wb-trio-list{max-height:none}}
@media(max-width:820px){.wb-statusbar{flex-wrap:wrap}.wb-statusbar-meta{width:100%;margin-left:0}}
@media(max-width:560px){.wb-trio-list{max-height:none}.wb-trio-metric{min-width:64px}}

/* 商品表列宽：收紧增长列，给机会阶段和操作列留出完整显示空间。 */
.product-table-v2.decision .data-table th:nth-child(1),.product-table-v2.decision .data-table td:nth-child(1){width:3%}
.product-table-v2.decision .data-table th:nth-child(2),.product-table-v2.decision .data-table td:nth-child(2){width:19%}
.product-table-v2.decision .data-table th:nth-child(3),.product-table-v2.decision .data-table td:nth-child(3){width:5%}
.product-table-v2.decision .data-table th:nth-child(4),.product-table-v2.decision .data-table td:nth-child(4){width:7%}
.product-table-v2.decision .data-table th:nth-child(5),.product-table-v2.decision .data-table td:nth-child(5){width:6.5%}
.product-table-v2.decision .data-table th:nth-child(6),.product-table-v2.decision .data-table td:nth-child(6){width:5%}
.product-table-v2.decision .data-table th:nth-child(7),.product-table-v2.decision .data-table td:nth-child(7){width:6.5%}
.product-table-v2.decision .data-table th:nth-child(8),.product-table-v2.decision .data-table td:nth-child(8){width:6.5%}
.product-table-v2.decision .data-table th:nth-child(9),.product-table-v2.decision .data-table td:nth-child(9){width:8.5%}
.product-table-v2.decision .data-table th:nth-child(10),.product-table-v2.decision .data-table td:nth-child(10){width:7%}
.product-table-v2.decision .data-table th:nth-child(11),.product-table-v2.decision .data-table td:nth-child(11){width:6%}
.product-table-v2.decision .data-table th:nth-child(12),.product-table-v2.decision .data-table td:nth-child(12){width:6.5%;text-align:center}
.product-table-v2.decision .data-table th:nth-child(13),.product-table-v2.decision .data-table td:nth-child(13){width:5.5%}
.product-table-v2.decision .data-table th:nth-child(14),.product-table-v2.decision .data-table td:nth-child(14){width:4%;text-align:center}
.product-table-v2.decision .data-table th:nth-child(15),.product-table-v2.decision .data-table td:nth-child(15){width:4%;text-align:center}
.product-table-v2.decision .opportunity-stage-cell .shop-assignment-chip{max-width:110px}

/* 最终桌面列宽：允许表格横向滚动，优先保证表头、数据和操作控件完整。 */
.product-table-v2.decision .data-table{min-width:1695px!important;width:100%;table-layout:fixed}
.product-table-v2.decision .data-table th:nth-child(1),.product-table-v2.decision .data-table td:nth-child(1){width:42px}
.product-table-v2.decision .data-table th:nth-child(2),.product-table-v2.decision .data-table td:nth-child(2){width:275px}
.product-table-v2.decision .data-table th:nth-child(3),.product-table-v2.decision .data-table td:nth-child(3){width:82px}
.product-table-v2.decision .data-table th:nth-child(4),.product-table-v2.decision .data-table td:nth-child(4){width:105px}
.product-table-v2.decision .data-table th:nth-child(5),.product-table-v2.decision .data-table td:nth-child(5){width:100px}
.product-table-v2.decision .data-table th:nth-child(6),.product-table-v2.decision .data-table td:nth-child(6){width:110px}
.product-table-v2.decision .data-table th:nth-child(7),.product-table-v2.decision .data-table td:nth-child(7){width:105px}
.product-table-v2.decision .data-table th:nth-child(8),.product-table-v2.decision .data-table td:nth-child(8){width:115px}
.product-table-v2.decision .data-table th:nth-child(9),.product-table-v2.decision .data-table td:nth-child(9){width:125px}
.product-table-v2.decision .data-table th:nth-child(10),.product-table-v2.decision .data-table td:nth-child(10){width:140px}
.product-table-v2.decision .data-table th:nth-child(11),.product-table-v2.decision .data-table td:nth-child(11){width:120px}
.product-table-v2.decision .data-table th:nth-child(12),.product-table-v2.decision .data-table td:nth-child(12){width:125px;text-align:center}
.product-table-v2.decision .data-table th:nth-child(13),.product-table-v2.decision .data-table td:nth-child(13){width:88px}
.product-table-v2.decision .data-table th:nth-child(14),.product-table-v2.decision .data-table td:nth-child(14){width:105px;text-align:center}
.product-table-v2.decision .data-table th:nth-child(15),.product-table-v2.decision .data-table td:nth-child(15){width:58px;text-align:center}
.product-table-v2.decision .data-table th:nth-child(6),.product-table-v2.decision .data-table th:nth-child(7),.product-table-v2.decision .data-table th:nth-child(8),.product-table-v2.decision .data-table th:nth-child(9),.product-table-v2.decision .data-table th:nth-child(10),.product-table-v2.decision .data-table th:nth-child(11),.product-table-v2.decision .data-table th:nth-child(12),.product-table-v2.decision .data-table th:nth-child(13),.product-table-v2.decision .data-table th:nth-child(15){white-space:nowrap}
.product-table-v2.decision .supplier-company-cell strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.product-table-v2.decision .opportunity-stage-cell .shop-assignment-chip{max-width:112px}

/* 一页完整展示：取消横向滚动，按 100% 宽度重新分配 15 列。 */
.table-wrap.product-table-v2.decision{overflow-x:hidden;overflow-y:visible}
.product-table-v2.decision .data-table{width:100%!important;min-width:0!important;table-layout:fixed}
.product-table-v2.decision .data-table th,.product-table-v2.decision .data-table td{padding:7px 4px;font-size:11.5px;line-height:1.32;white-space:normal;overflow:visible;vertical-align:middle}
.product-table-v2.decision .data-table th:nth-child(1),.product-table-v2.decision .data-table td:nth-child(1){width:2.5%}
.product-table-v2.decision .data-table th:nth-child(2),.product-table-v2.decision .data-table td:nth-child(2){width:19.5%}
.product-table-v2.decision .data-table th:nth-child(3),.product-table-v2.decision .data-table td:nth-child(3){width:4.5%}
.product-table-v2.decision .data-table th:nth-child(4),.product-table-v2.decision .data-table td:nth-child(4){width:6.5%}
.product-table-v2.decision .data-table th:nth-child(5),.product-table-v2.decision .data-table td:nth-child(5){width:6%}
.product-table-v2.decision .data-table th:nth-child(6),.product-table-v2.decision .data-table td:nth-child(6){width:6%}
.product-table-v2.decision .data-table th:nth-child(7),.product-table-v2.decision .data-table td:nth-child(7){width:6%}
.product-table-v2.decision .data-table th:nth-child(8),.product-table-v2.decision .data-table td:nth-child(8){width:7.1%}
.product-table-v2.decision .data-table th:nth-child(9),.product-table-v2.decision .data-table td:nth-child(9){width:8%;padding-left:7px}
.product-table-v2.decision .data-table th:nth-child(10),.product-table-v2.decision .data-table td:nth-child(10){width:6.9%}
.product-table-v2.decision .data-table th:nth-child(11),.product-table-v2.decision .data-table td:nth-child(11){width:7%}
.product-table-v2.decision .data-table th:nth-child(12),.product-table-v2.decision .data-table td:nth-child(12){width:7%;text-align:center}
.product-table-v2.decision .data-table th:nth-child(13),.product-table-v2.decision .data-table td:nth-child(13){width:5%}
.product-table-v2.decision .data-table th:nth-child(14),.product-table-v2.decision .data-table td:nth-child(14){width:5%;text-align:center}
.product-table-v2.decision .data-table th:nth-child(15),.product-table-v2.decision .data-table td:nth-child(15){width:3%;text-align:center}
.product-table-v2.decision .data-table th:nth-child(6),.product-table-v2.decision .data-table th:nth-child(7),.product-table-v2.decision .data-table th:nth-child(8),.product-table-v2.decision .data-table th:nth-child(9),.product-table-v2.decision .data-table th:nth-child(10),.product-table-v2.decision .data-table th:nth-child(11),.product-table-v2.decision .data-table th:nth-child(12),.product-table-v2.decision .data-table th:nth-child(13),.product-table-v2.decision .data-table th:nth-child(15){white-space:normal}
.product-table-v2.decision .product-cell{min-width:0}
.product-table-v2.decision .product-copy{min-width:0}
.product-table-v2.decision .product-name{white-space:normal;overflow-wrap:anywhere;font-size:12.5px;line-height:1.42}
.product-table-v2.decision .product-category-chip,.product-table-v2.decision .shop-assignment-chip{max-width:100px}
.product-table-v2.decision .opportunity-stage-cell .shop-assignment-chip{max-width:106px}
.product-table-v2.decision .supplier-company-cell strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}

/* 商品筛选区：六个控件同一行，类目字典与列表编辑器保持一致。 */
.product-command-panel{padding:14px 16px;border-radius:10px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);box-shadow:0 2px 8px rgba(16,24,40,.04)}
.product-command-head{margin-bottom:12px}
.product-command-head strong{font-size:14px;letter-spacing:.01em}
.product-command-tools .btn{min-width:96px;border-radius:7px}
.product-command-main{grid-template-columns:minmax(360px,1.45fr) repeat(4,minmax(145px,.55fr)) minmax(112px,auto);gap:10px}
.product-command-panel .input,.product-command-panel .select,.product-command-panel .btn,.product-more-filter{border-radius:7px}
.product-command-panel .select{background-color:#fff}
.product-more-filter{border-color:#cdd9e6;background:#fff;color:#344054;font-weight:650}
.product-more-filter:hover{border-color:#9db4ca;background:#f5f9fc}
@media(max-width:1280px){.product-command-main{grid-template-columns:repeat(3,minmax(145px,1fr));gap:9px}.product-command-main .product-search-field{grid-column:1/-1}}
@media(max-width:560px){.product-command-main{grid-template-columns:1fr;gap:8px}.product-command-main .product-search-field{grid-column:auto}}

/* 关键词选品功能区：浅色高级工具条，和内容区保持统一。 */
.keyword-command.keyword-command-sticky{position:sticky;top:0;z-index:15;overflow:hidden;padding:0;border:1px solid #d9e5f2;border-radius:12px;background:linear-gradient(180deg,#fff 0%,#f7fbff 100%);box-shadow:0 10px 26px rgba(16,24,40,.07),0 1px 0 rgba(255,255,255,.9) inset}
.keyword-command.keyword-command-sticky::after{content:"";position:absolute;right:-70px;top:-120px;width:230px;height:230px;border-radius:999px;background:radial-gradient(circle,rgba(23,105,170,.12),rgba(23,105,170,0) 68%);pointer-events:none}
.keyword-command-sticky .keyword-command-head{position:relative;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0;padding:18px 18px 14px}
.keyword-command-sticky .keyword-command-head .eyebrow{display:inline-flex;align-items:center;width:max-content;margin-bottom:6px;padding:3px 9px;border:1px solid #cfe0f3;border-radius:999px;background:#eef6ff;color:#1769aa;font-size:11px;font-weight:800;letter-spacing:.06em}
.keyword-command-sticky .keyword-command-head h2{margin:0;color:#06172d;font-size:22px;letter-spacing:.01em}
.keyword-command-sticky .keyword-command-head p{max-width:760px;margin:6px 0 0;color:#53657a;font-size:12px;line-height:1.55}
.keyword-command-sticky .keyword-command-summary{display:grid;justify-items:end;gap:2px;min-width:112px;padding:10px 12px;border:1px solid #d7e5f2;border-radius:12px;background:linear-gradient(180deg,#fff,#f3f8fd);box-shadow:0 6px 16px rgba(16,24,40,.05)}
.keyword-command-sticky .keyword-command-summary span{color:#667085;font-size:11px}
.keyword-command-sticky .keyword-command-summary strong{color:#0b2440;font-size:28px;line-height:1;font-variant-numeric:tabular-nums}
.keyword-command-sticky .keyword-command-summary em{color:#7a8ba0;font-size:10px;font-style:normal}
.keyword-control-board{position:relative;z-index:1;display:grid;grid-template-columns:minmax(360px,1.25fr) minmax(420px,1fr) auto;gap:12px;align-items:end;margin:0 14px 14px;padding:12px;border:1px solid #dde8f3;border-radius:11px;background:#fff;box-shadow:0 4px 14px rgba(16,24,40,.045)}
.keyword-search-block,.keyword-filter-strip label{display:grid;gap:6px;min-width:0}
.keyword-search-block label,.keyword-filter-strip span{color:#475467;font-size:11px;font-weight:800;letter-spacing:.02em}
.keyword-input-shell{display:flex;align-items:center;gap:9px;height:38px;padding:0 11px;border:1px solid #d5e0ec;border-radius:9px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 1px 0 rgba(255,255,255,.8) inset}
.keyword-input-shell svg{flex:0 0 auto;color:#4f7092}
.keyword-input-shell .keyword-input{height:36px;min-height:36px;padding:0;border:0;background:transparent;box-shadow:none;font-size:13px;font-weight:700}
.keyword-input-shell .keyword-input:focus{outline:0}
.keyword-filter-strip{display:grid;grid-template-columns:repeat(3,minmax(124px,1fr));gap:10px;min-width:0}
.keyword-filter-strip .select{height:38px;min-height:38px;border-color:#d5e0ec;border-radius:9px;background-color:#fff;font-size:12px;font-weight:650}
.keyword-action-strip{display:flex;align-items:flex-end;gap:8px;min-width:136px}
.keyword-action-strip .btn{height:38px;border-radius:9px;font-weight:800;white-space:nowrap}
.keyword-apply-btn{min-width:118px;box-shadow:0 6px 14px rgba(228,64,91,.16)}
.keyword-clear-btn{border-color:#d5e0ec;background:#fff;color:#475467}
.keyword-command-sticky .source-notice{position:relative;z-index:1;margin:0 14px 14px;border-color:#dde8f3;border-radius:10px;background:#fff}
@media(max-width:1180px){.keyword-control-board{grid-template-columns:1fr 1fr}.keyword-action-strip{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:760px){.keyword-command-sticky .keyword-command-head{display:grid}.keyword-command-sticky .keyword-command-summary{justify-items:start}.keyword-control-board{grid-template-columns:1fr}.keyword-filter-strip{grid-template-columns:1fr}.keyword-action-strip{justify-content:stretch}.keyword-action-strip .btn{flex:1}}

/* 趋势详情明细：默认一页 10 条，避免历史数据把抽屉无限拉长。 */
.trend-detail-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px;padding:10px 12px;border:1px solid #e5edf6;border-radius:8px;background:#f8fbff;color:#667085;font-size:12px}
.trend-detail-pager>div{display:flex;align-items:center;gap:8px}
.trend-detail-pager strong{color:#344054;font-size:12px}
.trend-detail-pager .btn{border-radius:7px}
@media(max-width:560px){.trend-detail-pager{align-items:flex-start;flex-direction:column}.trend-detail-pager>div{width:100%;justify-content:space-between}}
