/* Ranking reference layout. Scoped to the dashboard; colors follow the active theme. */
#view-dashboard #leaderboard .ranking-status-cell { min-width:0; overflow:hidden; }
#view-dashboard #leaderboard .ranking-status-cell .status-pill { display:inline-block!important; box-sizing:border-box; max-width:100%; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
#view-dashboard { --rank-green:#00ad70; --rank-blue:#1479ef; --rank-purple:#8050ce; }
#view-dashboard .dashboard-cockpit { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:20px; margin:20px 0 36px; align-items:stretch; }
#view-dashboard .cockpit-left,#view-dashboard .cockpit-right { min-width:0; display:grid; grid-template-columns:minmax(0,1fr); gap:20px; }
#view-dashboard .hero-pipeline-card { display:grid; grid-template-rows:minmax(238px,1fr) 112px; gap:20px; border:0; background:none; box-shadow:none; overflow:visible; }
#view-dashboard .hero-pipeline-card > .hero-card { display:grid; grid-template-columns:116px minmax(0,1fr) 142px; gap:22px; align-items:center; padding:24px; min-height:238px; border:1px solid var(--line); border-radius:22px; background:var(--card); box-shadow:var(--card-shadow); }
#view-dashboard .hero-card::before { pointer-events:none; width:250px; height:250px; right:-60px; top:-68px; border-color:color-mix(in srgb,var(--orange) 16%,transparent); }
#view-dashboard .hero-card > .hero-cover { display:block!important; position:static; width:116px; height:184px; object-fit:cover; border-radius:15px; margin:0; }
#view-dashboard .hero-copy { position:relative; min-width:0; }
#view-dashboard .hero-copy .chip.hot { display:inline-flex; align-items:center; gap:7px; padding:9px 15px; color:var(--rank-green); background:color-mix(in srgb,var(--rank-green) 14%,var(--card)); font-size:15px; font-weight:800; letter-spacing:0; }
#view-dashboard .hero-copy .chip .icon { width:19px; height:19px; }
#view-dashboard #heroTitle { font-size:clamp(17px,1.35vw,24px); line-height:1.55; margin:14px 0 18px; -webkit-line-clamp:2; }
#view-dashboard #heroSubtitle { font-size:13px; line-height:1.7; }
#view-dashboard .hero-visual { display:block!important; min-width:0; width:auto; position:relative; }
#view-dashboard .hero-hit-stats { display:flex; flex-direction:column; align-items:flex-start; text-align:left; }
#view-dashboard .hero-hit-stats b { font-size:46px; }
#view-dashboard .hero-hit-stats strong { font-size:23px; white-space:nowrap; }
#view-dashboard .hero-history-strip { display:grid; grid-template-columns:minmax(150px,.9fr) minmax(0,2fr); gap:14px; align-items:center; margin:0; padding:22px 26px; border:1px solid var(--line); border-radius:22px; background:var(--card); box-shadow:var(--card-shadow); }
#view-dashboard .hero-history-heading { gap:9px; }
#view-dashboard .hero-history-heading span { display:flex; align-items:center; gap:10px; padding:0; background:none; color:var(--t1); font-size:18px; font-weight:800; letter-spacing:0; }
#view-dashboard .hero-history-label { display:flex; align-items:center; gap:12px; }
#view-dashboard .hero-history-label i { display:grid; place-items:center; width:38px; height:38px; flex-shrink:0; border-radius:50%; color:var(--rank-green); background:color-mix(in srgb,var(--rank-green) 12%,var(--card)); }
#view-dashboard .hero-history-label .icon { width:21px; height:21px; }
#view-dashboard .hero-history-heading strong { color:var(--t2); font-size:12px; font-weight:400; }
#view-dashboard .hero-history-metrics>span { padding:0 18px; gap:9px; }
#view-dashboard .hero-history-metrics small { font-size:12px; }
#view-dashboard .hero-history-metrics b { font-size:20px; }
#view-dashboard .hero-history-strip.is-down #heroHistoryValueB { color:var(--orange); }
#view-dashboard .cockpit-right { grid-template-rows:minmax(238px,1fr) 112px; }
#view-dashboard .cockpit-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
#view-dashboard .metric-card { min-height:238px; padding:24px; border-radius:22px; gap:7px; }
#view-dashboard .metric-card::before { display:none; content:none; }
#view-dashboard .metric-card .metric-label { color:var(--t1); font-size:15px; font-weight:750; gap:12px; }
#view-dashboard .metric-label>span { color:inherit; margin:0; font-size:inherit; }
#view-dashboard .metric-icon { width:40px; height:40px; border-radius:50%; color:var(--orange); background:var(--orange-soft); }
#view-dashboard .metric-card strong,#view-dashboard .metric-card.accent-cyan strong { font-size:clamp(26px,2.6vw,48px); line-height:1.15; margin:14px 0 9px; letter-spacing:-.06em; white-space:nowrap; }
#view-dashboard .metric-card small { font-size:13px; }
#view-dashboard .capture-shortcuts,#view-dashboard .capture-shortcut-grid { display:grid; gap:20px; min-width:0; width:100%; height:100%; justify-content:stretch; }
#view-dashboard .capture-shortcuts { grid-template-columns:minmax(0,1fr); padding:0; }
#view-dashboard .capture-shortcut-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
#view-dashboard .capture-shortcut { min-width:0; min-height:112px; padding:20px; border-radius:22px; gap:14px; }
#view-dashboard .shortcut-logo { width:49px; height:49px; border-radius:15px; }
#view-dashboard .shortcut-logo.wx { background:#08c943; }
#view-dashboard .shortcut-logo.dy { background:#08080b; color:white; }
#view-dashboard .shortcut-logo .icon { width:32px; height:32px; }
#view-dashboard .shortcut-copy strong { font-size:16px; }
#view-dashboard .shortcut-copy small { font-size:12px; }
#view-dashboard .shortcut-arrow { margin-left:auto; width:36px; height:36px; flex-shrink:0; }
#view-dashboard > .section-head { padding:0; margin:0 0 18px; border:0; background:none; }
#view-dashboard .ranking-title-line h2 { font-size:27px; }
#view-dashboard .ranking-title-line h2::before { content:''; display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--orange); vertical-align:middle; margin-right:12px; box-shadow:0 0 0 7px var(--orange-soft); }
#view-dashboard .ranking-copy-status,#view-dashboard .section-head .legend { padding:10px 16px; border:1px solid var(--line); border-radius:30px; background:var(--card); color:var(--t2); font-size:12px; box-shadow:var(--shadow-sm); }
#view-dashboard > .leaderboard-panel { border:0; background:none; box-shadow:none; padding:0; overflow:visible; }
#view-dashboard .leaderboard-panel .table-wrap { overflow:visible; }
#view-dashboard .leaderboard-panel table { table-layout:fixed; width:100%; min-width:0; border-collapse:separate; border-spacing:0 7px; }
#view-dashboard .leaderboard-panel th { font-size:13px; color:var(--t2); font-weight:500; padding:16px 12px; background:var(--card); border:0; }
#view-dashboard .leaderboard-panel th:first-child { border-radius:18px 0 0 18px; }
#view-dashboard .leaderboard-panel th:last-child { border-radius:0 18px 18px 0; }
#view-dashboard .leaderboard-panel th:nth-child(1) { width:6%; }
#view-dashboard .leaderboard-panel th:nth-child(2) { width:34%; }
#view-dashboard .leaderboard-panel th:nth-child(3) { width:13%; }
#view-dashboard .leaderboard-panel th:nth-child(4) { width:12%; }
#view-dashboard .leaderboard-panel th:nth-child(5) { width:12%; }
#view-dashboard .leaderboard-panel th:nth-child(6) { width:11%; }
#view-dashboard .leaderboard-panel th:nth-child(7) { width:10%; }
#view-dashboard .leaderboard-panel th:nth-child(8) { width:2%; }
#view-dashboard #leaderboard tr[data-id] { background:transparent; }
#view-dashboard #leaderboard tr[data-id] td { padding:13px 8px; background:var(--card); border:0; height:106px; width:auto; }
#view-dashboard #leaderboard tr[data-id]:hover td { background:color-mix(in srgb,var(--orange) 3%,var(--card)); }
#view-dashboard #leaderboard tr[data-id] td:first-child { border-radius:18px 0 0 18px; text-align:center; }
#view-dashboard #leaderboard tr[data-id] td:last-child { border-radius:0 18px 18px 0; }
#view-dashboard #leaderboard .video-cell { display:table-cell; max-width:none; }
#view-dashboard #leaderboard .cover-thumb { float:left; width:58px; height:78px; border-radius:10px; margin-right:14px; object-fit:cover; }
#view-dashboard #leaderboard .video-meta { display:block; padding:3px 0; overflow:hidden; min-width:0; }
#view-dashboard #leaderboard .video-meta>strong { display:block; font-size:14px; line-height:1.6; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#view-dashboard #leaderboard .account-teacher-line { margin-top:5px; gap:9px; flex-wrap:wrap; }
#view-dashboard #leaderboard .ranking-video-published { flex:none; color:var(--t3); font-size:12px; white-space:nowrap; }
#view-dashboard #leaderboard .ranking-video-published::before { content:'·'; margin-inline-end:5px; }
#view-dashboard #leaderboard .rank-num { display:inline-grid; place-items:center; position:relative; padding:0; background:none; border:0; color:var(--t2); font-size:20px; width:35px; height:42px; }
#view-dashboard #leaderboard .rank-num.medal { color:#ffac24; }
#view-dashboard #leaderboard .rank-num.medal-2 { color:#a6b1c4; }
#view-dashboard #leaderboard .rank-num.medal-3 { color:#ff8c40; }
#view-dashboard .medal svg { position:absolute; inset:0; width:100%; height:100%; }
#view-dashboard .medal>span { position:relative; color:white; padding-top:12px; font-size:16px; text-shadow:0 1px 2px #0002; }
#view-dashboard .ranking-metric { --metric-color:var(--rank-green); min-height:66px; padding:12px; border-radius:13px; background:color-mix(in srgb,var(--metric-color) 5%,var(--card)); display:flex; flex-direction:column; justify-content:center; gap:5px; }
#view-dashboard .ranking-metric-value { display:flex; align-items:center; gap:8px; min-width:0; }
#view-dashboard .ranking-metric .icon { width:22px; height:22px; flex:0 0 22px; color:var(--metric-color); }
#view-dashboard .ranking-metric b { font-size:17px; font-family:var(--font-latin); font-variant-numeric:tabular-nums; color:var(--t1); white-space:nowrap; }
#view-dashboard .ranking-gmv { --metric-color:var(--orange); }
#view-dashboard .ranking-gmv b { color:var(--orange); }
#view-dashboard .ranking-spend { --metric-color:var(--rank-blue); }
#view-dashboard .ranking-roi { --metric-color:var(--rank-purple); }
#view-dashboard .ranking-orders b { font-size:21px; }
#view-dashboard #leaderboard .trend-line { font-size:11px; margin:0; white-space:normal; line-height:1.35; }
#view-dashboard #leaderboard .status-pill { padding:7px 12px; font-size:12px; white-space:nowrap; }
@media(min-width:961px) and (max-width:1550px) {
  #view-dashboard .dashboard-cockpit { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:16px; }
  #view-dashboard .hero-pipeline-card > .hero-card { grid-template-columns:90px minmax(0,1fr); padding:20px; gap:16px; }
  #view-dashboard .hero-card > .hero-cover { width:90px; height:156px; grid-row:1/3; }
  #view-dashboard .hero-visual { grid-column:2; }
  #view-dashboard .hero-hit-stats { flex-direction:row; flex-wrap:wrap; align-items:baseline; gap:5px 9px; }
  #view-dashboard .hero-hit-stats b { font-size:27px; }
  #view-dashboard .hero-hit-stats strong { margin:0; font-size:18px; }
  #view-dashboard .hero-hit-stats small { display:none; }
  #view-dashboard #heroTitle { margin:10px 0; font-size:17px; }
  #view-dashboard .hero-history-strip { padding:15px; gap:8px; grid-template-columns:125px minmax(0,1fr); }
  #view-dashboard .hero-history-heading span { font-size:15px; }
  #view-dashboard .hero-history-metrics>span { padding:0 9px; }
  #view-dashboard .hero-history-metrics b { font-size:16px; }
  #view-dashboard .hero-history-metrics small { font-size:10px; }
  #view-dashboard .metric-card { padding:18px 14px; }
  #view-dashboard .metric-card .metric-label { font-size:12px; gap:7px; }
  #view-dashboard .metric-card strong,#view-dashboard .metric-card.accent-cyan strong { font-size:clamp(25px,2.35vw,36px); }
  #view-dashboard .capture-shortcut { padding:14px; gap:9px; }
  #view-dashboard .shortcut-logo { width:36px; height:36px; }
  #view-dashboard .shortcut-copy strong { font-size:13px; }
  #view-dashboard .shortcut-copy small { font-size:10px; }
  #view-dashboard .shortcut-arrow { width:26px; height:26px; }
  #view-dashboard .ranking-metric { padding:9px 7px; }
  #view-dashboard .ranking-metric .icon { width:17px; height:17px; flex-basis:17px; }
  #view-dashboard .ranking-metric b { font-size:14px; }
  #view-dashboard .ranking-orders b { font-size:18px; }
  #view-dashboard #leaderboard .cover-thumb { width:48px; height:69px; margin-right:9px; }
  #view-dashboard #leaderboard .video-meta>strong { font-size:13px; }
  #view-dashboard #leaderboard tr[data-id] td { padding-inline:5px; }
}
@media(max-width:960px) {
  #view-dashboard .dashboard-cockpit { grid-template-columns:1fr; gap:14px; margin:14px 0 24px; }
  #view-dashboard .hero-pipeline-card { grid-template-rows:auto auto; gap:14px; }
  #view-dashboard .cockpit-right { grid-template-rows:auto auto; gap:14px; }
  #view-dashboard .hero-pipeline-card > .hero-card { grid-template-columns:80px minmax(0,1fr); min-height:0; padding:18px; gap:14px; }
  #view-dashboard .hero-card > .hero-cover { width:80px; height:128px; grid-row:1/3; }
  #view-dashboard .hero-visual { grid-column:2; }
  #view-dashboard .hero-hit-stats { flex-direction:row; align-items:baseline; flex-wrap:wrap; gap:5px 8px; }
  #view-dashboard .hero-hit-stats b { font-size:25px; }
  #view-dashboard .hero-hit-stats strong { font-size:17px; margin:0; }
  #view-dashboard .hero-hit-stats small { display:none; }
  #view-dashboard #heroTitle { font-size:16px; margin:9px 0; }
  #view-dashboard #heroSubtitle { font-size:11px; }
  #view-dashboard .hero-copy .chip.hot { padding:5px 9px; font-size:12px; }
  #view-dashboard .hero-history-strip { grid-template-columns:1fr; gap:15px; padding:16px; }
  #view-dashboard .hero-history-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; }
  #view-dashboard .hero-history-heading span { font-size:15px; }
  #view-dashboard .hero-history-heading strong { font-size:11px; }
  #view-dashboard .hero-history-metrics>span { padding:0 12px; }
  #view-dashboard .hero-history-metrics>span:first-child { border-left:0; padding-left:0; }
  #view-dashboard .hero-history-metrics b { font-size:17px; }
  #view-dashboard .hero-history-metrics small { font-size:11px; }
  #view-dashboard .cockpit-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  #view-dashboard .metric-card { min-height:160px; padding:15px; border-radius:18px; }
  #view-dashboard .metric-card .metric-label { font-size:11px; gap:6px; }
  #view-dashboard .metric-icon { width:28px; height:28px; }
  #view-dashboard .metric-card strong,#view-dashboard .metric-card.accent-cyan strong { font-size:clamp(22px,4.8vw,34px); margin:10px 0 5px; }
  #view-dashboard .metric-card small { font-size:10px; }
  #view-dashboard .capture-shortcut-grid { gap:12px; }
  #view-dashboard .capture-shortcut { min-height:80px; padding:12px; gap:8px; border-radius:18px; }
  #view-dashboard .shortcut-logo { width:32px; height:32px; }
  #view-dashboard .shortcut-copy strong { font-size:12px; }
  #view-dashboard .shortcut-copy small { font-size:10px; }
  #view-dashboard .shortcut-arrow { width:24px; height:24px; }
  #view-dashboard > .section-head { display:flex; flex-wrap:wrap; gap:14px; }
  #view-dashboard .ranking-title-line h2 { font-size:22px; }
  #view-dashboard > .section-head .row-actions { flex-wrap:wrap; width:100%; gap:8px; }
  #view-dashboard .ranking-copy-status,#view-dashboard .section-head .legend { font-size:10px; padding:8px 11px; }
  #view-dashboard .leaderboard-panel table,#view-dashboard .leaderboard-panel tbody { display:block!important; width:100%!important; min-width:0!important; }
  #view-dashboard .leaderboard-panel thead { display:none!important; }
  #view-dashboard #leaderboard tr[data-id] { display:grid; position:relative; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-areas:'video video' 'stats1 stats2' 'stats3 stats4' 'status status'; gap:9px; padding:15px; margin:0 0 12px; border:1px solid var(--line); border-radius:18px; background:var(--card); }
  #view-dashboard #leaderboard tr[data-id] td { display:block; background:none; padding:0; height:auto; border:0; border-radius:0; min-width:0; overflow:visible; }
  #view-dashboard #leaderboard tr[data-id] td:first-child { position:absolute; right:14px; top:12px; width:30px; }
  #view-dashboard #leaderboard tr[data-id] .video-cell { grid-area:video; padding-right:32px; min-height:78px; }
  #view-dashboard #leaderboard tr[data-id] td:nth-child(3) { grid-area:stats1; }
  #view-dashboard #leaderboard tr[data-id] td:nth-child(4) { grid-area:stats2; }
  #view-dashboard #leaderboard tr[data-id] td:nth-child(5) { grid-area:stats3; }
  #view-dashboard #leaderboard tr[data-id] td:nth-child(6) { grid-area:stats4; }
  #view-dashboard #leaderboard tr[data-id] td:nth-child(7) { grid-area:status; }
  #view-dashboard #leaderboard tr[data-id] td::before { display:none; }
  #view-dashboard #leaderboard .video-meta>strong { white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  #view-dashboard #leaderboard .arrow { display:none!important; }
  #view-dashboard #leaderboard .ranking-metric b { font-size:16px; }
  #view-dashboard #leaderboard .ranking-metric { min-height:73px; padding:11px; }
  #view-dashboard #leaderboard .ranking-spend::before { content:'消耗'; }
  #view-dashboard #leaderboard .ranking-roi::before { content:'ROI'; }
  #view-dashboard #leaderboard .ranking-spend::before,#view-dashboard #leaderboard .ranking-roi::before { font-size:10px; color:var(--t2); }
}
#view-dashboard .leaderboard-panel table,#view-dashboard .leaderboard-panel tbody,#view-dashboard .leaderboard-panel .table-wrap { background:transparent; }
#view-dashboard .shortcut-logo.wx .brand-logo-image { filter:brightness(0) invert(1); width:75%; height:75%; }
#view-dashboard .ranking-metric-value { flex-wrap:wrap; gap:5px; }
#view-dashboard .ranking-metric b { overflow-wrap:anywhere; white-space:normal; min-width:0; }
@media(max-width:760px) {
  #view-dashboard .hero-pipeline-card > .hero-card { display:grid!important; padding:16px!important; }
  #view-dashboard .hero-pipeline-card .hero-history-strip { display:grid!important; }
  #view-dashboard .hero-pipeline-card .chip.hot::after { content:none; }
  #view-dashboard .hero-pipeline-card .hero-copy p:not(.hero-kicker) { white-space:normal; font-size:11px!important; }
  #view-dashboard .cockpit-right .metric-card { min-height:155px!important; padding:14px!important; }
  #view-dashboard #ordersDelta,#view-dashboard #ordersDate,#view-dashboard #gmvRoi,#view-dashboard #gmvDate { display:block!important; }
  #view-dashboard .cockpit-right .metric-card small { font-size:10px!important; }
  #view-dashboard .cockpit-right .capture-shortcuts,#view-dashboard .cockpit-right .capture-shortcut-grid { display:grid!important; width:100%; }
  #view-dashboard .cockpit-right .capture-shortcut-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #view-dashboard .cockpit-right .capture-shortcut { display:flex; width:100%; min-width:0; border-radius:16px; padding:12px; min-height:70px; }
  #view-dashboard > .section-head .row-actions { display:flex!important; }
  #view-dashboard #leaderboard .status-pill { display:inline-flex!important; }
  #view-dashboard #leaderboard tr[data-id] td:nth-child(7) { display:block!important; }
}
@media(max-width:760px) {
  #view-dashboard .hero-pipeline-card > .hero-card { grid-template-areas:'cover copy' 'cover stats'!important; grid-template-columns:80px minmax(0,1fr)!important; }
  #view-dashboard .hero-card > .hero-cover { grid-area:cover; }
  #view-dashboard .hero-card > .hero-copy { grid-area:copy; }
  #view-dashboard .hero-card > .hero-visual { grid-area:stats; }
  #view-dashboard #leaderboard tr[data-id] { grid-template-areas:'video video' 'stats1 stats2' 'stats3 stats4' 'status status'!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  #view-dashboard #leaderboard tr[data-id] td:nth-child(n+3):nth-child(-n+6) { padding:0!important; background:none; }
  #view-dashboard #leaderboard tr[data-id] td:nth-child(7) { margin:0; min-height:0; padding:0!important; border:0!important; text-align:left; }
  #view-dashboard #leaderboard .video-cell { display:block!important; }
  #view-dashboard #leaderboard .cover-thumb { margin-right:10px; }
  #view-dashboard > .section-head .legend,#view-dashboard > .section-head .ranking-copy-status { display:inline-flex!important; }
  #view-dashboard .cockpit-right .capture-shortcut { background:var(--card)!important; color:var(--t1); }
}
@media(max-width:360px) {
  #view-dashboard .hero-pipeline-card > .hero-card { grid-template-columns:64px minmax(0,1fr)!important; gap:10px; padding:12px!important; }
  #view-dashboard .hero-card > .hero-cover { width:64px; height:112px; }
  #view-dashboard #leaderboard .ranking-metric { padding:9px 7px; }
  #view-dashboard #leaderboard .ranking-metric b { font-size:14px; }
}
#view-dashboard .shortcut-logo.wx .brand-logo-image { filter:brightness(0) invert(1)!important; }
#view-dashboard .hero-trend.down { color:var(--orange); }
#view-dashboard .hero-trend.up { color:var(--rank-green); }
@media(max-width:760px) {
  #view-dashboard .cockpit-right .capture-shortcut { border-radius:16px!important; min-height:68px!important; height:auto!important; justify-content:flex-start; }
}
@media(max-width:760px) {
  #view-dashboard .cockpit-metrics,#view-dashboard .cockpit-right .capture-shortcut-grid { gap:12px; }
}
/* Reference details: brand mark, subtle background shapes, and type hierarchy. */
#view-dashboard .douyin-brand { display:block; width:87%; height:87%; object-fit:contain; }
#view-dashboard .capture-shortcut { position:relative; overflow:hidden; isolation:isolate; }
#view-dashboard .capture-shortcut::before { content:''; position:absolute; z-index:-1; width:76px; height:76px; top:-36px; right:-21px; border:14px solid color-mix(in srgb,var(--rank-green) 4%,transparent); border-radius:50%; pointer-events:none; }
#view-dashboard .capture-shortcut[data-capture-target='douyin']::before { border-color:color-mix(in srgb,#fe2c55 7%,transparent); }
#view-dashboard .ranking-card-art { position:absolute; width:76px; height:76px; right:22px; top:56px; color:var(--orange); opacity:.08; pointer-events:none; }
#view-dashboard .metric-card { container-type:inline-size; isolation:isolate; background-image:radial-gradient(circle at 80% 3%,transparent 0 40px,color-mix(in srgb,var(--orange) 6%,transparent) 41px 42px,transparent 43px); }
#view-dashboard .metric-card.accent-cyan { background-image:none; }
#view-dashboard .metric-card.accent-cyan .ranking-card-art { color:#f18a28; right:18px; width:85px; height:88px; }
#view-dashboard .metric-card::after { content:''; display:block; position:absolute; right:19px; bottom:38px; top:auto; left:auto; width:47px; height:63px; background:radial-gradient(circle,color-mix(in srgb,var(--t2) 5%,transparent) 0 3px,transparent 4px) 0 0 / 16px 16px; pointer-events:none; }
#view-dashboard .metric-card > :not(.ranking-card-art) { position:relative; z-index:1; }
#view-dashboard .hero-card::after { content:''; position:absolute; width:70px; height:75px; top:36px; right:24px; background:radial-gradient(circle,color-mix(in srgb,var(--t2) 5%,transparent) 0 3px,transparent 4px) 0 0 / 18px 18px; pointer-events:none; }
#view-dashboard .hero-hit-stats { position:relative; z-index:1; }
#view-dashboard .metric-card strong,#view-dashboard .metric-card.accent-cyan strong { font-family:var(--font-latin); font-weight:850; font-variant-numeric:tabular-nums; letter-spacing:-.045em; }
#view-dashboard .metric-card.accent-orange .metric-icon { color:#c6401f; background:color-mix(in srgb,var(--orange) 14%,var(--card)); }
#view-dashboard .metric-card.accent-cyan .metric-icon { color:#d36c15; background:color-mix(in srgb,#f79b43 17%,var(--card)); }
#view-dashboard .metric-icon .icon { width:23px; height:23px; }
#view-dashboard .shortcut-arrow .icon { width:23px; height:23px; stroke-width:2; }
@media(min-width:1551px) {
  #view-dashboard .hero-pipeline-card,#view-dashboard .cockpit-right { grid-template-rows:minmax(213px,1fr) 102px; }
  #view-dashboard .hero-pipeline-card > .hero-card { min-height:213px; grid-template-columns:105px minmax(0,1fr) 126px; padding:21px; gap:20px; }
  #view-dashboard .hero-card > .hero-cover { width:105px; height:167px; border-radius:17px; }
  #view-dashboard .hero-copy .chip.hot { font-size:15px; padding:8px 14px; }
  #view-dashboard #heroTitle { font-size:clamp(17px,1.02vw,21px); line-height:1.5; margin:12px 0 16px; }
  #view-dashboard #heroSubtitle { font-size:12px; }
  #view-dashboard .hero-hit-stats b { font-family:var(--font-latin); font-size:43px; font-weight:850; }
  #view-dashboard .hero-hit-stats span,#view-dashboard .hero-hit-stats small { font-size:11px; }
  #view-dashboard .hero-hit-stats strong { font-size:21px; margin-top:15px; }
  #view-dashboard .metric-card { min-height:213px; padding:21px 19px; }
  #view-dashboard .metric-card .metric-label { font-size:14px; gap:11px; }
  #view-dashboard .metric-icon { width:35px; height:35px; }
  #view-dashboard .metric-card strong { font-size:clamp(34px,16.4cqi,49px); margin:15px 0 7px; }
  #view-dashboard .metric-card.accent-cyan strong { font-size:clamp(28px,14.76cqi,46px); }
  #view-dashboard .metric-card small { font-size:12px; line-height:1.5; }
  #view-dashboard .hero-history-strip { padding:19px 26px; }
  #view-dashboard .hero-history-heading span { font-size:17px; }
  #view-dashboard .hero-history-heading strong,#view-dashboard .hero-history-metrics small { font-size:11px; }
  #view-dashboard .hero-history-metrics b { font-family:var(--font-latin); font-size:20px; }
  #view-dashboard .hero-history-metrics>span { padding:0 20px; }
  #view-dashboard .capture-shortcut { min-height:102px; padding:20px; gap:14px; }
  #view-dashboard .shortcut-logo { width:47px; height:47px; border-radius:17px; }
  #view-dashboard .shortcut-copy strong { font-size:16px; }
  #view-dashboard .shortcut-copy small { font-size:11px; }
  #view-dashboard .shortcut-arrow { width:34px; height:34px; }
}
@media(max-width:960px) {
  #view-dashboard .ranking-card-art { width:50px!important; height:50px!important; right:12px; top:45px; }
  #view-dashboard .hero-card::after { display:none; }
  #view-dashboard .hero-history-label { gap:8px; }
  #view-dashboard .hero-history-label i { width:30px; height:30px; }
  #view-dashboard .hero-history-label .icon { width:18px; height:18px; }
  #view-dashboard .metric-card::after { width:31px; height:31px; bottom:15px; }
  #view-dashboard .metric-icon .icon { width:18px; height:18px; }
}
/* 「出单视频榜单」标题行已移除：待抓取视频按钮单独留在榜单上方，仅在有待抓取视频时出现。
   对应的标题、文章已转写、账号来源提示随该行一并去掉（文案转写状态仍可在表格每行看到）。 */
#view-dashboard .ranking-pending-button { margin:0 0 12px; }
#view-dashboard .ranking-pending-button[hidden] { display:none; }
.ranking-transcribe-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; margin:0 0 12px; }
.ranking-transcribe-actions .ranking-pending-button { margin:0; }

/* 历史表现：桌面端视作四个等宽格子。每格内容以自身中心对齐，
   三条竖线只负责分隔格子，不依赖 margin/padding 推算位置。 */
@media(min-width:961px) {
  #view-dashboard .hero-history-strip {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:0;
    align-items:stretch;
    padding:18px 0;
  }
  #view-dashboard .hero-history-heading {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-width:0;
    padding:0 20px;
    text-align:center;
  }
  #view-dashboard .hero-history-label {
    min-width:0;
    align-items:center;
    justify-content:center;
  }
  #view-dashboard .hero-history-heading strong {
    max-width:100%;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-align:center;
  }
  #view-dashboard .hero-history-metrics {
    display:contents;
  }
  #view-dashboard .hero-history-metrics>span {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:9px;
    min-width:0;
    padding:0 20px;
    border-left:1px solid var(--line);
    text-align:center;
  }
  #view-dashboard .hero-history-metrics small {
    max-width:100%;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--t3);
  }
  #view-dashboard .hero-history-metrics b {
    max-width:100%;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-align:center;
  }
}

/* ===== 榜单驾驶舱紧凑版（桌面）=====
   一行：首图卡 | 总订单 | 总成交 | 两个快捷入口（上下叠放）。去掉重复数值、日期小字和装饰图；
   「历史表现」条并入首图卡副标题（app.js renderOverviewData）。外层容器无自身样式，用 contents 拆开排进同一网格。 */
@media (min-width:761px) {
  html body #view-dashboard .dashboard-cockpit { display:grid !important; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1fr) minmax(150px,.62fr) !important; gap:14px !important; align-items:stretch !important; margin-bottom:18px !important; }
  html body #view-dashboard :is(.cockpit-left,.cockpit-right,.cockpit-metrics,.hero-pipeline-card,.capture-shortcuts) { display:contents !important; }
  html body #view-dashboard .hero-history-strip { display:none !important; }

  /* 首图卡 */
  html body #view-dashboard .hero-card { min-height:0 !important; height:auto !important; padding:14px 20px 14px 14px !important; border-radius:12px !important; display:grid !important; grid-template-columns:72px minmax(0,1fr) auto !important; align-items:center !important; gap:18px !important; overflow:hidden; }
  html body #view-dashboard .hero-card::before, html body #view-dashboard .hero-card::after { display:none !important; }
  html body #view-dashboard #heroCover { width:72px !important; height:128px !important; min-height:0 !important; border-radius:10px !important; object-fit:cover; box-shadow:var(--shadow-sm) !important; margin:0 !important; }
  html body #view-dashboard .hero-copy { display:grid !important; gap:7px !important; align-content:center; min-width:0; }
  html body #view-dashboard .hero-copy .chip.hot { justify-self:start; margin:0 !important; padding:4px 10px !important; font-size:12px !important; font-weight:600 !important; gap:4px; }
  html body #view-dashboard .hero-copy .chip.hot .icon { width:12px; height:12px; }
  html body #view-dashboard #heroTitle { margin:0 !important; font-size:19px !important; font-weight:600 !important; line-height:1.45 !important; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  html body #view-dashboard #heroSubtitle { margin:0 !important; font-size:14px !important; color:var(--t2) !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  html body #view-dashboard .hero-visual { margin:0 !important; padding:0 !important; }
  html body #view-dashboard .hero-hit-stats { display:grid !important; justify-items:end; gap:2px !important; text-align:right; }
  html body #view-dashboard .hero-hit-stats > span, html body #view-dashboard #heroOperator { display:none !important; }
  html body #view-dashboard #heroOrders { font-size:40px !important; font-weight:700 !important; line-height:1.05 !important; }
  html body #view-dashboard #heroOrders::after { content:" 单"; font-size:15px; font-weight:600; color:var(--t2); }
  html body #view-dashboard #heroGmv { font-size:17px !important; font-weight:600 !important; }

  /* 总订单 / 总成交：标题一行，大数字 + 变化小标签一行 */
  html body #view-dashboard .metric-card { min-height:0 !important; height:auto !important; padding:20px 22px 18px !important; border-radius:12px !important; display:grid !important; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"label delta" "value value"; align-content:space-between; gap:14px 10px !important; background-image:none !important; overflow:hidden; }
  html body #view-dashboard .metric-card::before, html body #view-dashboard .metric-card::after, html body #view-dashboard .metric-card .ranking-card-art { display:none !important; }
  html body #view-dashboard .metric-card .metric-label { grid-area:label; align-self:start; margin:0 !important; font-size:17px !important; font-weight:600 !important; color:var(--t1) !important; }
  html body #view-dashboard .metric-card .metric-icon { width:30px !important; height:30px !important; flex-basis:30px !important; border-radius:8px !important; }
  html body #view-dashboard :is(#totalOrders,#totalGmv) { grid-area:value; margin:0 !important; font-size:46px !important; font-weight:700 !important; line-height:1 !important; align-self:end; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  html body #view-dashboard :is(#ordersDelta,#gmvRoi) { grid-area:delta; align-self:start; margin:0 !important; padding:3px 9px; border-radius:999px; background:var(--elevated); color:var(--t2) !important; font-size:13px !important; font-weight:600; white-space:nowrap; }
  html body #view-dashboard :is(#ordersDate,#gmvDate) { display:none !important; }

  /* 快捷入口：两个小按钮上下叠放 */
  html body #view-dashboard .capture-shortcut-grid { display:grid !important; grid-template-columns:minmax(0,1fr) !important; grid-template-rows:1fr 1fr; gap:10px !important; min-height:0 !important; }
  html body #view-dashboard .capture-shortcut { min-height:0 !important; height:auto !important; padding:8px 12px !important; border-radius:12px !important; gap:10px !important; box-shadow:var(--shadow-sm) !important; }
  html body #view-dashboard .capture-shortcut :is(small,.shortcut-arrow) { display:none !important; }
  html body #view-dashboard .capture-shortcut .shortcut-logo { width:34px !important; height:34px !important; flex:0 0 34px !important; border-radius:9px !important; }
  html body #view-dashboard .capture-shortcut strong { font-size:15px !important; font-weight:600 !important; }
}
/* 窄桌面：首图卡独占一行，其余三块排在下一行 */
@media (min-width:761px) and (max-width:1600px) {
  html body #view-dashboard .dashboard-cockpit { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(140px,.7fr) !important; }
  html body #view-dashboard .hero-card { grid-column:1 / -1; }
}

/* 低频操作收进「处理状态」表头（app.js renderStatusHeaderActions）；原独立按钮行隐藏。 */
html body #view-dashboard .ranking-transcribe-actions { display:none !important; }
#view-dashboard .status-head { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
#view-dashboard .status-head-chip { display:inline-flex; align-items:center; height:26px; padding:0 11px; border:1px solid var(--action-border); border-radius:999px; background:var(--action-soft); color:var(--action-accent); font:600 13px/1 var(--font-cjk, inherit); letter-spacing:0; cursor:pointer; transition:background-color .15s ease, border-color .15s ease; }
#view-dashboard .status-head-chip:hover { background:color-mix(in srgb, var(--action-accent) 14%, transparent); }
#view-dashboard .status-head-chip:focus-visible { outline:2px solid var(--action-accent); outline-offset:2px; }
#view-dashboard .status-head-chip.is-pending { border-color:color-mix(in srgb, var(--amber) 40%, transparent); background:color-mix(in srgb, var(--amber) 12%, transparent); color:var(--amber); }
#view-dashboard .status-head-chip.is-running::before { content:""; width:8px; height:8px; margin-right:6px; border:1.5px solid currentColor; border-right-color:transparent; border-radius:50%; animation:studio-spin .8s linear infinite; }
@media (prefers-reduced-motion:reduce) { #view-dashboard .status-head-chip.is-running::before { animation:none; } }

/* 203 · Anthropic 风格榜单：整表一张细边线卡片，行用发丝线分隔；数值去色块去图标，行高约 72px。 */
@media (min-width:761px) {
  html body #view-dashboard > .leaderboard-panel { border:1px solid var(--line); border-radius:12px; background:var(--card); box-shadow:var(--shadow-sm); overflow:clip; }
  html body #view-dashboard .leaderboard-panel table { border-spacing:0; }
  html body #view-dashboard .leaderboard-panel th { padding:14px 14px; font-size:14px; font-weight:500; color:var(--t2); background:transparent; border-bottom:1px solid var(--line); border-radius:0 !important; letter-spacing:0; text-transform:none; }
  html body #view-dashboard .leaderboard-panel th:nth-child(1) { width:68px; text-align:center; }
  html body #view-dashboard .leaderboard-panel th:nth-child(2) { width:auto; }
  html body #view-dashboard .leaderboard-panel th:nth-child(3) { width:12%; }
  html body #view-dashboard .leaderboard-panel th:nth-child(4) { width:13%; }
  html body #view-dashboard .leaderboard-panel th:nth-child(5) { width:12%; }
  html body #view-dashboard .leaderboard-panel th:nth-child(6) { width:9%; }
  html body #view-dashboard .leaderboard-panel th:nth-child(7) { width:17%; }
  html body #view-dashboard .leaderboard-panel th:nth-child(8) { width:40px; }
  html body #view-dashboard #leaderboard tr[data-id] td { height:auto; padding:12px 14px; background:transparent; border:0; border-bottom:1px solid var(--sep); border-radius:0 !important; vertical-align:middle; }
  html body #view-dashboard #leaderboard tr[data-id]:last-child td { border-bottom:0; }
  html body #view-dashboard #leaderboard tr[data-id]:hover td { background:var(--hover-bg); }
  html body #view-dashboard #leaderboard .cover-thumb { width:46px; height:82px; margin-right:16px; border-radius:8px; }
  html body #view-dashboard #leaderboard .video-meta { padding:0; }
  html body #view-dashboard #leaderboard .video-meta>strong { font-size:16px; font-weight:600; line-height:1.5; }
  html body #view-dashboard #leaderboard .account-teacher-line { margin-top:5px; gap:8px; font-size:14px; line-height:22px; min-height:0; }
  html body #view-dashboard #leaderboard .video-meta>small:not(.account-teacher-line),
  html body #view-dashboard #leaderboard .video-meta .operator-line { margin-top:3px; font-size:13px; color:var(--t2); }
  html body #view-dashboard #leaderboard .rank-num { width:34px; height:40px; font-size:18px; font-weight:600; }
  html body #view-dashboard .medal>span { padding-top:11px; font-size:15px; }
  html body #view-dashboard .ranking-metric { min-height:0; padding:0; gap:2px; border-radius:0; background:none; }
  html body #view-dashboard .ranking-metric .icon { display:none; }
  html body #view-dashboard .ranking-metric b,
  html body #view-dashboard .ranking-orders b { font-size:19px; font-weight:700; }
  html body #view-dashboard .ranking-orders b { color:var(--green); }
  html body #view-dashboard #leaderboard .trend-line { font-size:13px; color:var(--t2); }
  html body #view-dashboard #leaderboard .status-pill { padding:5px 12px; font-size:13px; font-weight:600; }
  html body #view-dashboard #leaderboard td.arrow { color:var(--t3); }
  /* 顶部卡片：圆角 12、去装饰圆环 */
  html body #view-dashboard :is(.hero-card,.metric-card,.capture-shortcut) { border-radius:12px; box-shadow:var(--shadow-sm); background:var(--card); }
  html body #view-dashboard :is(.metric-card,.capture-shortcut,.hero-card)::before,
  html body #view-dashboard :is(.metric-card,.capture-shortcut,.hero-card)::after { display:none !important; }
  html body #view-dashboard :is(#heroOrders,.metric-card strong) { font-weight:600; }
}
/* 1181–1600 宽：指标卡较窄，增减标签移到标题行右侧，数值独占一行，避免金额被截断。 */
@media (min-width:1441px) and (max-width:1600px) {
  html body #view-dashboard .metric-card { grid-template-areas:"label delta" "value value"; }
  html body #view-dashboard :is(#totalOrders,#totalGmv) { font-size:38px !important; }
  html body #view-dashboard #heroOrders { font-size:38px !important; }
}
/* 1440 以下：数值列收窄、给视频标题让位；表头状态标签可换行。 */
@media (min-width:761px) and (max-width:1440px) {
  html body #view-dashboard .leaderboard-panel th:nth-child(1) { width:56px; }
  html body #view-dashboard .leaderboard-panel th:nth-child(3) { width:10%; }
  html body #view-dashboard .leaderboard-panel th:nth-child(4) { width:10%; }
  html body #view-dashboard .leaderboard-panel th:nth-child(5) { width:9%; }
  html body #view-dashboard .leaderboard-panel th:nth-child(6) { width:8%; }
  html body #view-dashboard .leaderboard-panel th:nth-child(7) { width:16%; }
  html body #view-dashboard .leaderboard-panel th { white-space:nowrap; padding:12px 10px; }
  html body #view-dashboard .status-head-chip { white-space:nowrap; font-size:12px; height:24px; padding:0 9px; }
  html body #view-dashboard #leaderboard tr[data-id] td { padding:10px 10px; }
  html body #view-dashboard .ranking-metric b, html body #view-dashboard .ranking-orders b { font-size:16px; white-space:nowrap; }
  html body #view-dashboard .status-head { flex-wrap:wrap; white-space:normal; row-gap:4px; }
  html body #view-dashboard .status-head:has(.status-head-chip) > span:first-child { display:none; }
}
/* 1601–1800：汇总卡略窄，标题与右上角标签同排时收紧，避免标题换行。 */
@media (min-width:1601px) and (max-width:1800px) {
  html body #view-dashboard .metric-card { padding:18px 18px 16px !important; }
  html body #view-dashboard .metric-card .metric-label { font-size:16px !important; white-space:nowrap; }
  html body #view-dashboard :is(#ordersDelta,#gmvRoi) { font-size:12px !important; padding:3px 8px; }
  html body #view-dashboard :is(#totalOrders,#totalGmv) { font-size:42px !important; }
}
/* Brand cover fallback: preserve all existing cover dimensions and layout. */
#view-dashboard .hero-card > .brand-cover,
#view-dashboard #leaderboard .brand-cover {
  position:relative;
  overflow:hidden;
  background:color-mix(in srgb,var(--orange) 6%,var(--card));
  border:1px solid var(--line);
  box-sizing:border-box;
}
#view-dashboard .brand-cover > .brand-cover-mark {
  position:absolute;
  top:50%;left:50%;
  width:40%;height:auto;aspect-ratio:1;
  max-width:32px;min-width:18px;
  color:var(--orange);
  transform:translate(-50%,-50%);
  pointer-events:none;
}
#view-dashboard .brand-cover > .brand-cover-image {
  display:block;
  position:absolute;inset:0;
  width:100%;height:100%;
  margin:0;padding:0;border:0;border-radius:inherit;
  object-fit:cover;
  opacity:0;
}
#view-dashboard .brand-cover.has-cover > .brand-cover-image {opacity:1;}
#view-dashboard .brand-cover.has-cover > .brand-cover-mark {visibility:hidden;}

/* A copy without a captured video uses a green fallback; loaded covers win. */
#view-dashboard .hero-card > .brand-cover.has-copy-no-video:not(.has-cover),
#view-dashboard #leaderboard .brand-cover.has-copy-no-video:not(.has-cover) {
  background:color-mix(in srgb,var(--green) 12%,var(--card));
  border-color:color-mix(in srgb,var(--green) 22%,var(--line));
}
#view-dashboard .brand-cover-copy-badge {
  display:none;
  position:absolute;
  right:4px;bottom:5px;
  width:clamp(16px,28%,20px);aspect-ratio:1;
  place-items:center;
  border:1px solid var(--card);
  border-radius:50%;
  background:color-mix(in srgb,var(--green) 16%,var(--card));
  color:var(--green);
  pointer-events:none;
}
#view-dashboard .brand-cover-copy-badge > svg {width:65%;height:65%;}
#view-dashboard .brand-cover.has-copy-no-video:not(.has-cover) > .brand-cover-copy-badge {display:grid;}

﻿/* 1.0.42 Ranking page (desktop): four KPI cards, quiet table, copy-status icon with popover, pending bar, transcribe chip. Layout and status colours only; interaction states stay in interaction.css. */
.ranking-transcribe-chip[hidden],.ranking-issue-bar[hidden],.ranking-status-pop[hidden]{display:none!important}
.ranking-transcribe-chip{display:inline-flex;align-items:center;gap:8px;height:32px;margin-left:14px;padding:0 12px 0 10px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--t1);font:500 13px var(--font-cjk,var(--font));white-space:nowrap;vertical-align:middle;cursor:pointer;font-variant-numeric:tabular-nums}
.ranking-transcribe-ring{position:relative;flex:0 0 14px;width:14px;height:14px;border-radius:50%;background:conic-gradient(var(--orange) var(--p,0%),var(--elevated) 0)}
.ranking-transcribe-ring::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--card)}
.topbar-page-title:has(.ranking-transcribe-chip:not([hidden])){display:flex;align-items:center;min-width:0}
.ranking-status-btn{display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;margin:0;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer;vertical-align:middle}
.ranking-status-btn>svg{width:18px;height:18px}
.ranking-status-btn.is-ok{color:color-mix(in srgb,var(--green,#1a9e54) 70%,var(--t3,#999))}
.ranking-status-btn.is-wait,.ranking-status-btn.is-miss,.ranking-status-btn.is-running{color:var(--amber,#b7791f)}
.ranking-status-btn.is-failed{color:var(--red,#c8323c)}
.ranking-status-btn.is-skip{color:var(--t3,var(--t2))}
.ranking-status-btn.is-running>svg{animation:ranking-status-spin 1s linear infinite}
@keyframes ranking-status-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ranking-status-btn.is-running>svg{animation:none}}
.ranking-status-pop{position:fixed;z-index:1200;box-sizing:border-box;width:260px;max-width:calc(100vw - 24px);padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--t1);box-shadow:var(--shadow-lg,0 12px 32px #211a1626);font:13px/1.5 var(--font-cjk,var(--font));animation:workbench-popover-enter .16s ease-out both}
@media(prefers-reduced-motion:reduce){.ranking-status-pop{animation:none}}
.ranking-status-pop-title{display:block;margin:0 0 4px;font-size:13px;font-weight:600}
.ranking-status-pop[data-kind="wait"] .ranking-status-pop-title,.ranking-status-pop[data-kind="miss"] .ranking-status-pop-title,.ranking-status-pop[data-kind="running"] .ranking-status-pop-title{color:var(--amber,#b7791f)}
.ranking-status-pop[data-kind="failed"] .ranking-status-pop-title{color:var(--red,#c8323c)}
.ranking-status-pop[data-kind="ok"] .ranking-status-pop-title{color:var(--green,#1a9e54)}
.ranking-status-pop-text{margin:0;color:var(--t2);font-size:12px;overflow-wrap:anywhere}
.ranking-status-pop-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ranking-status-pop-note{margin:8px 0 0;color:var(--t3,var(--t2));font-size:12px}
.ranking-issue-bar{display:flex;align-items:center;gap:10px;box-sizing:border-box;margin:0 0 12px;padding:9px 12px;border:1px solid color-mix(in srgb,var(--amber,#d69e2e) 30%,var(--line));border-radius:12px;background:color-mix(in srgb,var(--amber,#d69e2e) 9%,var(--card));color:var(--t1);font-size:13px}
.ranking-issue-icon{flex:none;width:18px;height:18px;color:var(--amber,#b7791f)}
.ranking-issue-text{flex:1;min-width:0}
.ranking-issue-bar>.button{flex:none;white-space:nowrap}
.rank-delta{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.rank-delta.up{color:var(--green,#1a9e54)}
.rank-delta.down{color:var(--red,#c8323c)}
.rank-delta.new{color:var(--orange,#ef4a1f);font-weight:500}
.rank-delta.flat{color:var(--t3,var(--t2))}
#view-dashboard.ranking-v2 .capture-shortcut {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}
#view-dashboard .ranking-kpi-extra{display:none}
#totalRoi.roi-high{color:var(--green,#1a9e54)!important}
#totalRoi.roi-low{color:var(--red,#c8323c)!important}

@media(min-width:761px){
 html body #view-dashboard.ranking-v2 .dashboard-cockpit{grid-template-columns:repeat(4,minmax(0,1fr)) 88px!important;gap:12px!important;margin:16px 0 16px!important;align-items:stretch}
 html body #view-dashboard.ranking-v2 .hero-card,html body #view-dashboard.ranking-v2 .hero-history-strip{display:none!important}
 html body #view-dashboard.ranking-v2 .ranking-kpi-extra{display:grid}
 html body #view-dashboard.ranking-v2 .metric-card{display:flex!important;flex-direction:column;justify-content:flex-start;gap:4px!important;min-height:0!important;height:auto!important;padding:14px 16px!important;border-radius:14px!important}
 html body #view-dashboard.ranking-v2 .metric-card>svg,html body #view-dashboard.ranking-v2 .metric-card .metric-icon{display:none!important}
 html body #view-dashboard.ranking-v2 .metric-card .metric-label{order:0;margin:0!important;color:var(--t2)!important;font-size:13px!important;font-weight:500!important}
 html body #view-dashboard.ranking-v2 .metric-card :is(#totalOrders,#totalGmv,#totalSpend,#totalRoi){order:1;align-self:flex-start!important;margin:2px 0 0!important;font-size:28px!important;line-height:1.2!important;letter-spacing:-.02em!important;font-variant-numeric:tabular-nums;text-align:left!important}
 html body #view-dashboard.ranking-v2 .metric-card small{order:2;position:static!important;align-self:flex-start;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:var(--t3,var(--t2))!important;font-size:12px!important;font-weight:500}
 html body #view-dashboard.ranking-v2 .metric-card :is(#ordersDate,#gmvDate){display:none!important}
 html body #view-dashboard.ranking-v2 .capture-shortcut-grid{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:1fr 1fr;gap:8px!important;height:100%}
 html body #view-dashboard.ranking-v2 .capture-shortcut{display:flex!important;align-items:center;justify-content:center;min-height:0!important;height:auto!important;padding:0 5px!important;border-radius:12px!important}

 html body #view-dashboard.ranking-v2 .leaderboard-panel th{padding:12px 12px!important}
 html body #view-dashboard.ranking-v2 .leaderboard-panel :is(th,td):nth-child(n+3):nth-child(-n+6){text-align:right!important}
 html body #view-dashboard.ranking-v2 .leaderboard-panel th:nth-child(2){width:44%!important}
 html body #view-dashboard.ranking-v2 .leaderboard-panel th:nth-child(7){width:64px!important;text-align:center!important}
 html body #view-dashboard.ranking-v2 .leaderboard-panel th:nth-child(8){width:28px!important}
 html body #view-dashboard.ranking-v2 #leaderboard td{padding-top:10px!important;padding-bottom:10px!important}
 html body #view-dashboard.ranking-v2 #leaderboard .ranking-metric{display:flex!important;flex-direction:row!important;align-items:baseline;justify-content:flex-end;gap:6px;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
 html body #view-dashboard.ranking-v2 #leaderboard .ranking-metric .icon{display:none!important}
 html body #view-dashboard.ranking-v2 #leaderboard .ranking-metric b{font-size:16px!important;font-weight:600!important;color:var(--t1)!important}
 html body #view-dashboard.ranking-v2 #leaderboard .ranking-spend b{color:var(--t2)!important;font-weight:500!important}
 html body #view-dashboard.ranking-v2 #leaderboard .ranking-roi.roi-high b{color:var(--green,#1a9e54)!important}
 html body #view-dashboard.ranking-v2 #leaderboard .ranking-roi.roi-low b{color:var(--red,#c8323c)!important}
 html body #view-dashboard.ranking-v2 #leaderboard .ranking-status-cell{text-align:center!important;overflow:visible!important}
}

.teacher-assign-pop {
  position:fixed;
  z-index:1200;
  box-sizing:border-box;
  width:270px;
  max-width:calc(100vw - 24px);
  max-height:calc(100dvh - 24px);
  overflow:auto;
  padding:13px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--card);
  color:var(--t1);
  box-shadow:var(--shadow-lg,0 12px 32px #211a1626);
  animation:workbench-popover-enter .16s ease-out both;
}
.teacher-assign-pop[hidden] { display:none; }
.teacher-assign-pop h2 { margin:0; font-size:14px; }
#teacherAssignSource {
  margin:3px 0 10px;
  color:var(--t2);
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.teacher-assign-pop .ui-select-trigger { min-height:38px; }
.ui-select-menu.teacher-assign-menu { z-index:1201; }
#teacherAssignMessage { margin:8px 0 0; font-size:12px; overflow-wrap:anywhere; }
#teacherAssignMessage:empty { display:none; }
.teacher-assign-actions { display:flex; justify-content:flex-end; gap:6px; margin-top:10px; }
@media(max-width:760px) {
  .teacher-assign-pop .ui-select-trigger, .teacher-assign-actions button { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) {
  .teacher-assign-pop { animation:none; }
}

#view-dashboard #leaderboard .account-teacher-line {
  align-items:center;
  gap:4px 8px;
}
#view-dashboard #leaderboard .account-teacher-line .teacher-assignment-pill {
  flex:none;
  border:0;
  border-radius:4px;
  padding:2px 6px;
  background:color-mix(in srgb,var(--t2) 8%,var(--card));
  color:var(--t2);
  font-size:11px;
  font-weight:500;
  line-height:1.35;
}
#view-dashboard #leaderboard .operator-line .operator-copy {
  color:color-mix(in srgb,var(--t2) 78%,var(--t3));
  font-size:12px;
  font-weight:400;
}


#view-dashboard .ranking-night-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--orange) 8%, var(--card));
}
#view-dashboard .ranking-night-notice[hidden] { display: none; }
.ranking-night-notice p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 9px; margin: 0; }
.ranking-night-notice p > span { color: var(--orange); }
.ranking-night-notice small { color: var(--muted); }

/* Keep the status details anchored to the existing WeChat status button. */
@media(min-width:761px) { .topbar > .top-actions { position: relative; } }
.top-actions > .wechat-status-popover[hidden] { display: none; }
.top-actions > .wechat-status-popover {
  position: absolute;
  z-index: 91;
  width: min(248px, calc(100vw - 24px));
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--t1);
  font-size: 13px;
  text-align: left;
}
.wechat-status-popover .wechat-last-capture {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 10px;
}
.wechat-status-popover .wechat-last-capture > span { color: var(--t2); }
.wechat-status-popover time { font-variant-numeric: tabular-nums; }
.wechat-status-popover p { margin: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.wechat-status-popover #wechatStatusLogin:not([hidden]) { justify-self: start; }
.wechat-status-popover #wechatStatusLogin[hidden] { display: none; }
