/* Card-only styling. No page, navigation, toolbar or dialog overrides. */
.tracking-card {
  --ui-paper: #f9f9f7; --ui-panel: #fff; --ui-soft: #f4f4f2;
  --ui-line: #e2e2de; --ui-ink: #191919; --ui-muted: #63636b;
  --ui-gold: #c5a869; --ui-gold-ink: #80652e;
  --ui-sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --ui-mono: "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  --sans: var(--ui-sans); --serif: var(--ui-sans); --latin: var(--ui-mono);
  --green: var(--ui-ink); --ink: var(--ui-ink); --muted: var(--ui-muted);
  --line: var(--ui-line); --paper: var(--ui-paper); --white: #fff;
  --product-line: var(--ui-line); --product-paper: var(--ui-paper);
  --product-green: var(--ui-ink); --product-ink: var(--ui-ink);
  --product-muted: var(--ui-muted); font: 13px/1.55 var(--ui-sans);
}

/* Approved large-cover card. :is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card)age navigation, filters and dialogs are untouched. */
.tracking-card [hidden] { display: none !important; }
.tracking-card :is(button,input,select) { font-family: var(--ui-sans); }
.tracking-card :is(button,a,input,summary,[tabindex]):focus-visible { outline: 2px solid #80652e; outline-offset: 3px; }
.tracking-card .text-button { color: #5e5b5e; border-radius: 0; }
#product-rows.library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: start; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) { position: relative; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 18px minmax(0,1fr) 34px; gap: 8px; align-content: start; box-sizing: border-box; width: auto; height: 363px; min-height: 363px; margin: 0; padding: 12px; overflow: visible; border: 1px solid var(--ui-line); border-radius: 0; background: #fff; color: #252327; box-shadow: none; font: 13px/1.5 var(--ui-sans); }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card):hover { border-color: #c2bba9; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .publish-metric { display: flex; grid-column: 1; grid-row: 1; align-items: center; gap: 5px; min-width: 0; height: 18px; margin: 0; padding: 0; white-space: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .publish-metric :is(span,strong) { color: #6b6570; font: 10px/1.5 var(--ui-mono); }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .publish-metric .five-hour-badge { flex: none; width: auto; margin: 0; padding: 1px 4px; border: 1px solid #d5bd8a; border-radius: 0; background: #faf6e9; color: #70531c; font: 600 10px/1.4 var(--ui-sans); box-shadow: none; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .publish-metric .video-index { position: static; flex: none; width: auto; margin: 0 0 0 auto; padding: 1px 3px; border-radius: 0; background: #242124; color: #fff; font: 9px/1.5 var(--ui-mono); }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .material-card-body { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: min(136px,max(96px,calc(100% - 142px))) minmax(0,1fr); align-items: start; gap: 12px; min-width: 0; min-height: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-card-media { display: flex; grid-column: 1; grid-row: 1; flex-direction: column; align-items: stretch; gap: 5px; width: 100%; min-width: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-cover-wrap { position: relative; grid-column: auto; grid-row: auto; width: 100%; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-cover { position: relative; display: block; width: 100%; height: auto; min-height: 0; aspect-ratio: 9/16; flex: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #eef1e9; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-cover .thumb { display: block; width: 100%; height: 100%; min-height: 0; border-radius: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-cover .thumb img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-card-author { display: block; grid-column: auto; grid-row: auto; align-self: auto; width: 100%; max-width: 100%; overflow: hidden; color: #5d5963; font: 11px/1.5 var(--ui-sans); white-space: nowrap; text-overflow: ellipsis; text-align: left; text-decoration: none; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) a.tracking-card-author { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) a.tracking-card-author:hover { color: #191919; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-cover-actions { padding: 16px 3px 3px; border-radius: 0; background: linear-gradient(transparent,#1717179e); }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-cover-actions :is(.favorite-button,.pin-button) { border-radius: 0; color: #f4d795; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-card-main { display: grid; grid-column: 2; grid-row: 1; grid-template-columns: minmax(0,1fr); grid-template-rows: 44px 100px 96px; gap: 8px; align-content: start; width: 100%; min-width: 0; min-height: 0; overflow: visible; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-head { position: relative; display: flex; grid-column: 1; grid-row: 1; align-items: flex-start; height: 44px; min-width: 0; margin: 0; padding: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-select { flex: 1; min-width: 0; padding: 0 22px 0 0; text-align: left; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-select h3 { display: block; max-height: 42px; margin: 0; padding: 0; overflow: hidden; overflow-wrap: anywhere; white-space: normal; -webkit-line-clamp: unset; color: #191919; font: 650 16px/21px var(--ui-sans); }
html[data-workbench-access="readonly"] .material-large-card .tracking-select { padding-right: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-head-actions { position: absolute; top: 0; right: 0; display: flex; align-items: center; gap: 3px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-head-actions .script-status { position: absolute; top: 23px; right: 0; max-width: 126px; padding: 1px 3px; border-radius: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; line-height: 15px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-head:has(.script-status) .tracking-select h3 { max-height: 21px; white-space: nowrap; text-overflow: ellipsis; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-card-metrics { display: grid; grid-column: 1; grid-row: 2; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; min-width: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.tracking-values,.tracking-sales) { display: flex; position: relative; grid-column: auto; grid-row: auto; flex-direction: column; align-items: stretch; align-self: start; gap: 5px; box-sizing: border-box; width: 100%; min-width: 0; height: 100px; margin: 0; padding: 6px 5px; border: 1px solid var(--ui-line); border-radius: 0; background: #f7f7f4; overflow: hidden; text-align: left; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.thumb-metric,.sales-line-main) { display: flex; grid-column: auto; grid-row: auto; flex: none; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; width: 100%; height: auto; text-align: left; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .thumb-metric::before { content: "点赞总量"; color: #6b6570; font: 10px/14px var(--ui-sans); white-space: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main:has(> .sales-icon)::before { content: "账号总销量"; color: #6b6570; font: 10px/14px var(--ui-sans); white-space: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main > span { display: block; color: #6b6570; font: 10px/14px var(--ui-sans); white-space: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.thumb-icon,.sales-icon) { display: none; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.thumb-metric strong,.sales-line-main > strong) { grid-row: auto; width: auto; min-width: 0; margin: 0; color: #111; font: 700 22px/1.2 var(--ui-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; text-align: left; overflow-wrap: normal; white-space: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.thumb-metric small,.sales-line-main > small) { grid-row: auto; box-sizing: border-box; width: auto; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; color: #80652e; font: 9px/13px var(--ui-sans); white-space: normal; overflow: visible; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-note { display: none; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-sales > .sales-detail-link { position: absolute; right: 5px; bottom: 3px; left: 5px; grid-column: auto; grid-row: auto; min-width: 0; margin: 0; overflow: hidden; color: #625a48; font-size: 9px; line-height: 12px; text-overflow: ellipsis; white-space: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-framework-tag { display: flex; flex-direction: column; grid-column: 1; grid-row: 3; box-sizing: border-box; width: 100%; height: 96px; min-width: 0; margin: 0; padding: 5px; gap: 4px; border: 1px solid var(--ui-line); border-radius: 0; background: #f7f7f4; color: #353139; font-size: 10px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-framework-tag[data-framework-empty="true"] { visibility: hidden; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .ui-framework-heading { display: flex; flex: none; align-items: center; gap: 4px; min-width: 0; height: 15px; line-height: 15px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.material-framework-tag > span,.ui-framework-heading > span:first-child) { align-self: flex-start; flex: none; padding: 1px 3px; background: #242124; color: #fff; font-size: 9px; line-height: 13px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .ui-framework-heading > .material-variant-name { display: block; min-width: 0; overflow: hidden; color: #56515b; font-size: 10px; font-weight: 400; white-space: nowrap; text-overflow: ellipsis; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context-list { --ui-grid-columns: 1; --ui-grid-rows: 1; display: grid; flex: 1; grid-template-columns: repeat(var(--ui-grid-columns),minmax(0,1fr)); grid-template-rows: repeat(var(--ui-grid-rows),minmax(0,1fr)); gap: 4px; width: 100%; min-width: 0; min-height: 0; margin: 0; overflow: auto; font-weight: 400; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context-list[data-framework-count="2"] { --ui-grid-columns: 2; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context-list[data-framework-count="3"] { --ui-grid-columns: 3; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context-list[data-framework-count]:not([data-framework-count="1"]):not([data-framework-count="2"]):not([data-framework-count="3"]) { --ui-grid-columns: 2; --ui-grid-rows: 2; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0; min-height: 0; margin: 0; padding: 1px 2px; border: 1px solid #deded8; border-radius: 0; background: #fff; color: #353139; text-align: center; line-height: 12px; overflow: auto; overflow-wrap: anywhere; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-framework { display: block; max-width: 100%; margin: 0; color: #6c6670; font-size: 10px; line-height: 12px; white-space: normal; overflow-wrap: anywhere; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context > .material-variant-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context .cb-variant-conversion { display: inline-flex; flex: none; min-height: 0; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #242124; font: 650 11px/12px var(--ui-mono); }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context .cb-variant-conversion-info { display: none; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context .cb-variant-conversion-value { display: block; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context .cb-variant-conversion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context[data-cb-tooltip] { cursor: help; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context[data-cb-tooltip]:is(:hover,:focus-visible) { background: #fffaf0; border-color: #c5aa75; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-framework-tag > strong:not(.material-variant-context-list) { display: flex; flex: 1; min-height: 0; min-width: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-framework-tag > strong:not(.material-variant-context-list) > .material-variant-context { width: 100%; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .cb-variant-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .product-commerce { display: block; grid-column: 1; grid-row: 3; position: relative; min-width: 0; min-height: 34px; height: 34px; margin: 0; padding: 7px 8px; border: 1px solid var(--ui-line); border-radius: 0; background: #f5f5f2; color: #242124; font-size: 11px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .product-commerce[open] .product-commerce-detail { position: absolute; z-index: 50; right: -1px; bottom: calc(100% + 6px); left: -1px; max-height: 230px; margin: 0; padding: 10px; border: 1px solid #c9cfc2; background: #fffefa; box-shadow: 0 8px 24px #243a3326; overflow: auto; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .product-commerce[open] > summary { min-height: 18px; margin: 0; padding: 0; border: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-card-management { position: relative; flex: none; margin: 0; padding: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-card-management > summary { display: grid; place-items: center; width: 19px; height: 21px; margin: 0; padding: 1px; border: 0; border-radius: 0; background: #f7f7f4; color: #625c65; list-style: none; cursor: pointer; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-card-management > summary::-webkit-details-marker { display: none; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-card-management > summary svg { width: 16px; height: 16px; fill: currentColor; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-card-management-panel { position: absolute; z-index: 70; top: 26px; right: 0; width: 248px; max-width: calc(100vw - 28px); padding: 12px; border: 1px solid #d5d8ce; background: #fffefa; box-shadow: 0 8px 26px #243a3326; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-tags-line { margin: 0 0 8px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .library-card-tools { margin: 0; padding-top: 8px; border-color: #e2e2de; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-foot { margin: 0; padding: 0; }
html[data-workbench-access="readonly"] .material-large-card .material-card-management { display: none !important; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card):has(> .cb-card-actions) > .product-commerce { padding-right: 88px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .cb-card-actions { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: flex; align-items: center; height: 34px; margin: 0; padding: 0; border: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .cb-card-actions .button { min-height: 26px; margin: 0; padding: 4px 6px; border-radius: 0; font-size: 10px; line-height: 16px; }
/* Product information follows the supplied card, behind native disclosure. */
.tracking-card .product-commerce > summary { display: flex; align-items: center; gap: 8px; min-height: 18px; list-style: none; cursor: pointer; }
.tracking-card .product-commerce > summary::-webkit-details-marker { display: none; }
.tracking-card .product-commerce > summary > small { margin-left: auto; }
.tracking-card .product-commerce-toggle { display: inline-flex; margin-left: auto; }
.tracking-card .product-commerce-toggle svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tracking-card .product-commerce[open] .product-commerce-toggle { transform: rotate(180deg); }
.tracking-card .product-commerce[open] > summary { padding-bottom: 8px; margin-bottom: 9px; border-bottom: 1px solid var(--ui-line); }
.tracking-card .product-commerce-detail { padding-top: 0; }
.tracking-card .product-commerce-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tracking-card .product-commerce-copy { flex: 1; min-width: 0; }
.tracking-card .product-commerce-title { display: flex; align-items: flex-start; gap: 5px; color: #191919; font: 600 13px/1.45 var(--ui-sans); overflow-wrap: anywhere; }
.tracking-card .product-commerce-title svg { width: 14px; height: 14px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tracking-card .product-commerce-meta { display: flex; flex-wrap: wrap; gap: 2px 7px; margin-top: 5px; color: #68616b; font: 10px/1.5 var(--ui-sans); }
.tracking-card .product-commerce-meta a { margin: 0; color: #625a48; text-decoration: underline; text-underline-offset: 2px; }
.tracking-card .product-commerce-terms { display: flex; flex: none; flex-direction: column; align-items: flex-end; gap: 5px; max-width: 42%; }
.tracking-card .product-commerce-price { color: #191919; font: 700 15px/1.4 var(--ui-mono); overflow-wrap: anywhere; }
.tracking-card .product-commerce-price small { color: #68616b; font: 10px var(--ui-sans); }
.tracking-card .product-commerce-commission { padding: 2px 4px; border: 1px solid var(--ui-line); background: #fff; color: #262225; font: 10px/1.4 var(--ui-mono); }
.tracking-card .product-commerce-link-row { display: flex; gap: 4px; align-items: center; margin-top: 10px; padding: 3px; border: 1px solid var(--ui-line); background: #fff; }
.tracking-card .product-commerce-link-row input { flex: 1; box-sizing: border-box; width: 0; min-width: 0; padding: 4px 5px; border: 0; border-radius: 0; background: #fff; color: #68616b; text-overflow: ellipsis; font: 10px/1.5 var(--ui-mono); }
.tracking-card .product-commerce-link-row .text-button { display: inline-flex; align-items: center; gap: 4px; flex: none; margin: 0; padding: 6px 8px; border: 0; border-radius: 0; background: #191919; color: #fff; font: 11px/1.4 var(--ui-sans); }
.tracking-card .product-commerce-link-row button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }


@media (max-width:1180px) { #product-rows.library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width:1700px) { #product-rows.library-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width:760px) { #product-rows.library-grid { grid-template-columns: 1fr; gap: 14px; } }

/* Administrator access to the confirmed official account detail. */
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-sales > .admin-sales-detail-link {
  bottom: 4px;
  font-size: 12px;
  line-height: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#material-detail-dialog .material-detail-current .admin-sales-detail-link {
  display: inline-block;
  margin-top: 6px;
  color: #62502d;
  font-size: 12px;
  line-height: 18px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-sales > .admin-sales-detail-link.is-unavailable,
#material-detail-dialog .material-detail-current .admin-sales-detail-link.is-unavailable {
  color: #6b6570;
  text-decoration: none;
}

/* Reserve two channel lines for every card so metric boxes stay aligned. */
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) { height: auto; grid-template-rows: 18px auto 34px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-card-main { grid-template-rows: 44px 138px 96px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-card-metrics { grid-template-rows: 32px 100px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.tracking-values,.tracking-sales) { grid-row: 2; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-channel-ratio { display: flex; grid-column: 1 / -1; grid-row: 1; flex-wrap: wrap; justify-content: flex-end; align-content: flex-end; align-self: end; gap: 2px 8px; min-width: 0; color: #63636b; font: 11px/15px var(--ui-sans); text-align: right; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-channel-ratio > span { flex: none; white-space: nowrap; }

/* Unified material-card layout approved 2026-11-08. */
:is(#product-rows.library-grid,#favorites-rows.tracking-grid,#tracking-rows .tracking-grid) { grid-template-columns: repeat(auto-fill,minmax(min(270px,100%),270px)); justify-content: start; align-items: start; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) { width: 100%; max-width: 270px; height: auto; min-height: 0; padding: 7px 12px; gap: 3px; grid-template-rows: 18px auto 30px; container-name: material-card; container-type: inline-size; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .material-card-body { grid-template-columns: min(101px,max(48px,calc(100% - 143px))) minmax(0,1fr); gap: 12px; margin: 0; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-card-media { gap: 7px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-cover { height: 180px; aspect-ratio: auto; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-card-author { width: 100%; text-align: center; font-size: 13px; margin-top: 0; transform: none; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-card-main, :is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-card-main:has(.script-status) { width: 100%; margin: 0; grid-template-rows: 42px 84px 84px; gap: 3px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-head { height: 42px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-select h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 42px; font-size: 16px; line-height: 21px; white-space: normal; overflow: hidden; text-overflow: ellipsis; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card):has(.sales-channel-ratio > span:nth-child(2)) .tracking-select h3 { -webkit-line-clamp: 1; max-height: 21px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-head-actions .script-status { position: static; max-width: 54px; padding: 1px 3px; font-size: 9px; line-height: 15px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .tracking-head:has(.script-status) .tracking-select { padding-right: 80px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-card-metrics { position: relative; height: 98px; min-height: 0; margin-top: -14px; grid-template-rows: 32px 60px; row-gap: 6px; column-gap: 6px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.tracking-values,.tracking-sales) { height: 60px; margin-top: 0; padding: 2px 5px; grid-row: 2; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.thumb-metric,.sales-line-main) { height: auto; margin: 0; gap: 1px; flex-wrap: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.thumb-metric strong,.sales-line-main > strong) { max-width: 100%; font-size: 22px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main > strong.card-sales-compact { font-size: 16px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main > strong.card-sales-long { font-size: 12px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main > strong.card-sales-wrapped { font-size: 12px; line-height: 12px; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 24px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .thumb-metric::before, :is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main:has(> .sales-icon)::before, :is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main > span, :is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main > .admin-sales-detail-link { color: #6b6570; font: 10px/14px var(--ui-sans); }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main:has(> .sales-icon)::before { content: "账号销量"; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main > .admin-sales-detail-link { position: static; display: block; width: auto; min-height: 0; margin: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main > .admin-sales-detail-link.is-unavailable { text-decoration: none; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.thumb-metric small,.sales-line-main > small) { font-size: 9px; line-height: 12px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-channel-ratio { position: static; display: flex; grid-column: 1 / -1; grid-row: 1; flex-wrap: wrap; justify-content: flex-end; align-content: flex-end; align-self: end; gap: 2px 8px; width: auto; min-width: 0; max-width: 100%; font: 11px/15px var(--ui-sans); text-align: right; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-channel-ratio > span { display: block; flex: none; white-space: nowrap; overflow: visible; text-overflow: clip; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-framework-tag { position: relative; height: 84px; margin-top: 0; padding: 20px 5px 5px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-framework-tag[data-framework-empty="true"] { visibility: visible; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-framework-tag > span:first-child { position: absolute; top: 0; left: 0; right: 0; transform: none; width: auto; height: 16px; margin: 0; padding: 0; background: #66685f; color: #fff; font: 600 10px/16px var(--ui-sans); text-align: center; white-space: nowrap; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context-list { overflow: hidden; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-context { overflow: hidden; flex-wrap: nowrap; gap: 0; padding: 0 1px; align-items: center; justify-content: center; text-align: center; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-framework { flex: none; font-size: 11px; line-height: 12px; letter-spacing: -.03em; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .cb-variant-conversion { font-size: 11px; line-height: 12px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .cb-variant-conversion-value { white-space: nowrap; letter-spacing: -.03em; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .publish-metric { height: 18px; position: relative; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .publish-metric .five-hour-badge { position: absolute; left: calc(min(101px,max(48px,calc(100% - 143px))) + 12px); top: 50%; transform: translateY(-50%); margin: 0; font-size: 10px; }
html:not([data-workbench-access="readonly"]) :is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card).library-card:has(.material-select-checkbox) > .publish-metric .five-hour-badge { left: calc(min(101px,max(48px,calc(100% - 143px))) + 28px); }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .product-commerce { height: 30px; min-height: 30px; padding: 5px 8px; font-size: 11px; }
@container material-card (max-width: 200px) {
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.thumb-metric strong,.tracking-sales .sales-line-main > strong) { font-size: 12px; line-height: 12px; white-space: normal; overflow-wrap: anywhere; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .thumb-metric::before, :is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main:has(> .sales-icon)::before, :is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main > span, :is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .sales-line-main > .admin-sales-detail-link { font-size: 9px; line-height: 11px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) :is(.thumb-metric small,.sales-line-main > small) { font-size: 8px; line-height: 10px; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) .material-variant-framework { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .publish-metric > span:first-child { display: none; }
:is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .publish-metric :is(span,strong), :is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .publish-metric .video-index, :is(.workspace .material-large-card, html[data-workbench-access] #product-rows .material-large-card) > .publish-metric .five-hour-badge { font-size: 8px; }
}

/* Fixed card grid: only outer sizing/alignment. Card internals stay approved. */
:is(#library-view,#monitor-view,#favorites-view) {
  container-type: inline-size;
  max-width: none;
  padding-inline: 32px;
  margin-inline: auto;
}
/* Round down AFTER the page gutters, keeping 270px cards and 24px gaps. */
:is(#library-view,#monitor-view,#favorites-view) > * {
  box-sizing: border-box;
  width: max(270px,calc(round(down,calc(100% + 24px),294px) - 24px));
  max-width: none;
  margin-inline: auto;
}
:is(#product-rows.library-grid,#favorites-rows.tracking-grid,#tracking-rows .tracking-grid) {
  grid-template-columns: repeat(auto-fill,270px);
  gap: 24px;
  justify-content: start;
  align-items: start;
}
/* Monitor sections are rows of the same grid, not columns themselves. */
#tracking-rows { display: block; }
#tracking-rows > :is(.five-hour-layer,.normal-monitor-layer) {
  box-sizing: border-box;
  width: 100%;
  padding-inline: 0;
  border-inline-width: 0;
}
/* A fixed track prevents historical narrow-screen card/cover shrinking. */
:is(.workspace .material-large-card,html[data-workbench-access] #product-rows .material-large-card) {
  width: 270px;
  min-width: 270px;
  max-width: 270px;
}
/* The board reuses the same card in its own material-detail grid. */
#product-wall-view { padding-inline: 32px; max-width: none; }
#product-wall-view .cb-main { container-type: inline-size; }
#cb-detail {
  width: max(270px,calc(round(down,calc(100% + 24px),294px) - 24px));
  margin-inline: auto;
}
#cb-cards {
  grid-template-columns: repeat(auto-fill,270px);
  gap: 24px;
  align-items: start;
}
@media (max-width: 760px) {
  :is(#library-view,#monitor-view,#favorites-view,#product-wall-view) { padding-inline: 16px; }
}
