.metric-card { min-width: 0; min-height: 152px; padding: 19px; border-radius: 14px; overflow: hidden; position: relative; box-shadow: 0 7px 24px rgba(29,35,47,.035); }
.metric-card::after { content: ""; position: absolute; right: -30px; bottom: -35px; width: 110px; height: 110px; border-radius: 50%; background: rgba(232,188,66,.08); }
.metric-card span, .metric-card strong, .metric-card small { display: block; position: relative; z-index: 1; }
.metric-card span { color: #6d7583; font-size: 12px; font-weight: 700; }
.metric-card strong { margin-top: 17px; font-size: 31px; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metric-card small { margin-top: 8px; color: #8a929f; font-size: 11px; }
.metric-card.dark { border-color: var(--dark); background: var(--dark); color: #fff; }
.metric-card.dark span, .metric-card.dark small { color: #abb4c4; }

table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 830px; font-size: 12px; }
th, td { padding: 13px 12px; border-bottom: 1px solid #eceef1; text-align: left; white-space: nowrap; vertical-align: middle; }
th { background: #f7f8fa; color: #707784; font-size: 10px; font-weight: 850; }
.sort-button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 2px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 850; cursor: pointer; }
.sort-button span { width: 10px; color: #a5abb5; font-size: 11px; text-align: center; }
.sort-button:hover, .sort-button:focus-visible, .sort-button.active { color: var(--ink); outline: none; }
.sort-button:focus-visible { border-radius: 4px; box-shadow: 0 0 0 2px rgba(229,183,62,.28); }
.sort-button.active span { color: #c68b16; }
tbody tr:hover td { background: #fffaf0; }
.product-table { min-width: 1080px; }
.product-row { cursor: pointer; }
.product-panel-actions { display: flex; align-items: center; gap: 14px; }
.product-panel-actions > strong { white-space: nowrap; font-size: 14px; }
.product-view-switch { display: flex; overflow: hidden; border: 1px solid #dfe2e7; border-radius: 9px; }
.product-view-switch button { height: 34px; padding: 0 12px; border: 0; border-right: 1px solid #e3e6ea; background: #fff; color: #69717e; font-size: 11px; font-weight: 800; cursor: pointer; }
.product-view-switch button:last-child { border-right: 0; }
.product-view-switch button.active { background: var(--dark); color: #fff; }
.product-open-button { min-width: 330px; padding: 0; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.product-thumb { width: 58px; height: 58px; flex: 0 0 auto; border: 1px solid #e2e6ec; border-radius: 10px; object-fit: cover; background: #f5f6f8; }
.product-placeholder { display: grid; place-items: center; color: #969eab; font-size: 9px; }
.product-copy { min-width: 0; }
.product-copy strong, .product-copy small, .product-copy em { display: block; }
.product-copy strong { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.product-copy small { max-width: 270px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.product-copy em { margin-top: 5px; color: #956900; font-size: 10px; font-style: normal; font-weight: 700; }
.product-id { display: block; font-size: 13px; }
.inspect-link { display: block; margin-top: 4px; color: #9a6a00; font-size: 10px; }
.type-summary { display: flex; gap: 5px; flex-wrap: wrap; }
.type-summary span { padding: 4px 6px; border-radius: 5px; background: #f2f4f7; color: #687181; font-size: 10px; }
.product-card-grid { padding: 0 22px 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { min-width: 0; padding: 13px; display: flex; flex-direction: column; gap: 12px; border: 1px solid #e3e7ed; border-radius: 13px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 6px 18px rgba(28,35,46,.035); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-2px); border-color: #dfbd55; box-shadow: 0 12px 28px rgba(28,35,46,.09); outline: none; }
.product-card-media { width: 100%; display: block; overflow: hidden; border-radius: 10px; background: #f5f6f8; }
.product-card .product-thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; display: block; border: 0; border-radius: 10px; object-fit: cover; }
.product-card .product-placeholder { display: grid; place-items: center; }
.product-card-copy { min-width: 0; display: block; }
.product-card-copy strong, .product-card-copy small { display: block; }
.product-card-copy strong { min-height: 38px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.4; }
.product-card-copy small { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.product-card .type-summary { min-height: 23px; }
.product-card-metrics { padding-top: 11px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; border-top: 1px solid #edf0f3; }
.product-card-metrics > span { min-width: 0; }
.product-card-metrics small, .product-card-metrics strong { display: block; }
.product-card-metrics small { color: #8a929f; font-size: 10px; }
.product-card-metrics strong { margin-top: 4px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: flex-end; }
.product-card-footer em { color: #956900; font-size: 10px; font-style: normal; font-weight: 800; }
.product-grid-empty { margin: 0 22px 22px; }
.video-identity { min-width: 300px; display: flex; align-items: center; gap: 11px; }
.video-identity img, .cover-fallback { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 9px; object-fit: cover; background: linear-gradient(145deg,#5879cf,#182033); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.video-identity strong, .video-identity small { display: block; }
.video-identity strong { max-width: 310px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.video-identity small { max-width: 310px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8a929e; font-size: 10px; }
.video-identity .related-product { color: #8a6a18; font-weight: 750; }
.material, .status { display: inline-block; padding: 5px 8px; border-radius: 999px; white-space: nowrap; font-size: 10px; font-weight: 700; }
.material.manual { background: #fff3d2; color: #886200; }
.material.remix { background: #eaf0ff; color: #4265b5; }
.material.generated { background: #f0ebff; color: #6b4fad; }
.status.passed { background: var(--green-soft); color: var(--green); }
.status.failed { background: var(--red-soft); color: var(--red); }
.status.pending { background: #f0f2f5; color: #727b89; }
.backend-link { display: inline-flex; align-items: center; padding: 6px 9px; border: 1px solid #ead795; border-radius: 7px; background: #fffaf0; color: #836312; text-decoration: none; font-size: 11px; font-weight: 850; }
.backend-link:hover { background: #fff2c6; border-color: #d8b247; }
.backend-unavailable { color: #a0a6b0; font-size: 11px; }
.platform-account strong, .platform-account small { display: block; }
.platform-account small { margin-top: 3px; color: #8d939e; font-size: 10px; }
.money { color: #d46b30; font-weight: 800; }
.view-button { border: 0; background: transparent; color: #846418; font-size: 11px; font-weight: 900; }

.trend-panel { padding: 23px; margin-bottom: 14px; overflow: hidden; }
.trend-panel .panel-heading { padding: 0; }
.chart-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.segmented { display: flex; overflow: hidden; border: 1px solid #dfe2e7; border-radius: 9px; }
.segmented button { height: 35px; padding: 0 12px; border: 0; border-right: 1px solid #e3e6ea; background: #fff; color: #606773; font-size: 12px; font-weight: 750; }
.segmented button:last-child { border-right: 0; }
.metric-switch button.active { background: #171b24; color: #fff; }
.range-switch button.active { background: var(--gold-soft); color: #795a10; }
.maturity-switch button.active { background: #171b24; color: #fff; }
.playback-stage-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 18px 0 0; padding: 11px 13px; border: 1px solid #ece8da; border-radius: 10px; background: #fffdf7; }
.playback-stage-row strong, .playback-stage-row span { display: block; }
.playback-stage-row strong { color: #4d535d; font-size: 11px; }
.playback-stage-row span { margin-top: 3px; color: #8a8170; font-size: 10px; }
.chart-summary { display: flex; align-items: baseline; gap: 10px; margin: 17px 0 2px; }
.chart-summary span { color: #7e8590; font-size: 11px; }
.chart-summary strong { font-size: 24px; }
.chart-legend { display: flex; justify-content: flex-end; gap: 18px; min-height: 22px; margin: -21px 3px 2px; color: #6f7681; font-size: 11px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 18px; height: 2px; border-radius: 9px; }
.line-chart { position: relative; width: calc(100% + 12px); height: 370px; margin-left: -6px; overflow: hidden; }
.line-chart svg { display: block; width: 100%; height: 100%; }
.axis-label { fill: #9197a1; font-size: 11px; }
.grid-line { stroke: #eceef2; stroke-width: 1; }
.trend-area { fill: url(#tmallAreaGradient); }
.series-path { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.series-point:not(.is-latest) { opacity: 0; }
.series-point:hover, .series-point:focus { r: 6; opacity: 1; outline: none; }
.series-point-halo { pointer-events: none; }
.records-panel { overflow: hidden; }
.records-heading { padding: 22px 22px 0; }
.records-meta { text-align: right; }
.records-meta strong, .records-meta span { display: block; }
.records-meta strong { font-size: 13px; }
.records-meta span { margin-top: 4px; color: #9298a3; font-size: 10px; }
.records-table-wrap { padding: 0 22px 22px; }
.product-detail-page { overflow: visible; }
.product-detail-header { min-height: 112px; padding: 22px 24px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.product-detail-header h2 { margin: 4px 0; font-size: 20px; }
.product-detail-header p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }
.tmall-link { display: inline-block; margin-top: 7px; color: #956900; font-size: 10px; font-weight: 700; text-decoration: none; }
.tmall-link:hover { text-decoration: underline; }
.product-detail-header .product-thumb { width: 66px; height: 66px; }
.back-button { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid #d9dee5; border-radius: 10px; background: #fff; color: var(--ink); font-size: 22px; cursor: pointer; }
.back-button:hover { border-color: #c6992c; background: var(--gold-soft); }
.product-meta { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.product-meta span { padding: 7px 9px; border-radius: 8px; background: #f4f6f8; color: #606978; font-size: 10px; }
.detail-metrics { padding: 18px 20px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.detail-filters { margin: 16px 20px; padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(150px, 220px)); gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.detail-filters label { color: #616a79; font-size: 10px; font-weight: 700; }
.detail-filters select { width: 100%; height: 38px; margin-top: 6px; padding: 0 10px; border: 1px solid #d7dce4; border-radius: 9px; background: #fff; color: var(--ink); }
.detail-table-heading { padding: 8px 22px 14px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.detail-table-heading h3 { margin: 0; font-size: 16px; }
.detail-table-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.detail-table-heading strong { font-size: 12px; }
.empty-inline { padding: 34px 20px; color: var(--muted); text-align: center; }
.pagination { padding: 18px; display: flex; justify-content: center; align-items: center; gap: 14px; border-top: 1px solid var(--line); }
.pagination button { padding: 8px 13px; border: 1px solid #d7dce3; border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination span { color: var(--muted); font-size: 11px; }
.fatal-error { padding: 50px; border: 1px solid #f0c9cd; border-radius: var(--radius); background: #fff; color: #a63844; text-align: center; }
.fatal-error p { color: #7b5560; }
