/* User revisions, 2026-11-24: remove the global tab/tools row and reclaim its space. */
.workspace-header>.tab-strip{display:none!important}
/* Sidebar structure remains visible, using the existing light divider token. */
html:not([data-theme="light"]) .sidebar::after,html:not([data-theme="light"]) .sidebar .footer-rule{background:var(--cy-white-10)}
/* The C5A explanation belongs to the six asset cards, within their existing 30px top gap. */
.dashboard #dash-cards{position:relative}
.dashboard #dash-cards>.c5a-card-help{position:absolute;right:0;top:-43px;display:inline-flex;align-items:center;justify-content:center;gap:4px;width:104px;min-width:104px;height:32px;min-height:32px;box-sizing:border-box;padding:8px 12px;border:0;outline:1px solid var(--cy-white-10);outline-offset:0;border-radius:4px;background:var(--cy-base);color:var(--cy-white-75);font:400 14px/14px 'PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:0px;white-space:nowrap;z-index:3}
.dashboard #dash-cards>.c5a-card-help img{display:block;width:12px;height:12px}
.dashboard #dash-cards>.c5a-card-help:hover{color:var(--cy-white-75)}
/* Rebalance the card content after removing the repeated comparison sentence. */
.dashboard .asset-card{min-height:380px}
.dashboard .asset-card:not(.total) .metric-top{margin-bottom:8px}
.dashboard .asset-card .share-line{margin:0 0 12px}
.dashboard .asset-card .card-bottom{padding-top:8px}
/* Keep the original wording/values, split long warning copy at its semantic semicolon. */
#dash-warning .warning-description{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;margin:15px 0 30px;color:var(--cy-white-75);font:400 16px/16px 'PingFang SC','Microsoft YaHei',sans-serif}
#dash-warning .warning-description-line{display:block;min-width:0;max-width:100%}
#dash-warning .warning-description .a3-percent{color:inherit!important}
#dash-warning .warning-bottom{gap:30px;align-items:center}
#dash-warning .warning-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:30px;max-width:none;min-width:0;flex:1 1 0;width:auto}
#dash-warning .warning-stat{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;padding:0}
#dash-warning .warning-stat>span{font-size:16px;line-height:16px}
#dash-warning .warning-stat>strong{display:block;font-family:'D-DIN',sans-serif;font-size:20px;line-height:20px;white-space:nowrap}
#dash-warning .warning-stat+.warning-stat::before{display:none}
@media(max-width:1150px){#dash-warning .warning-bottom{align-items:stretch;flex-direction:column}#dash-warning .warning-stats{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:20px}}
@media(max-width:760px){.dashboard .asset-card{min-height:340px}#dash-warning .warning-description{line-height:20px}#dash-warning .warning-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Figma 所有页面/修改标签颜色, 3268:5976: 30px above / 15px below, original help icon. */
.dashboard #dash-insights:has(+ #dash-cards){margin-bottom:30px}
.dashboard #dash-cards>.c5a-card-help img{content:url('assets/c5a-help-reference12.svg');transform:scale(1.0666667);flex:none}

/* Light-mode C5A explanation uses the same palette as the audience-record control. */
html[data-theme="light"] .dashboard #dash-cards>.c5a-card-help,
html[data-theme="light"] .dashboard #dash-cards>.c5a-card-help:hover{background:#fff;outline-color:rgb(0 0 0 / .05);color:var(--cy-white-75)}
html[data-theme="light"] .dashboard #dash-cards>.c5a-card-help img{filter:brightness(0)}

/* C5A light-dialog visual refinement: preserve original diagrams and all stage copy. */
html[data-theme="light"] .c5a-dialog>header h2,
html[data-theme="light"] .c5a-dialog .c5a-stage-grid h3,
html[data-theme="light"] .c5a-dialog .c5a-history-rule>h3{color:var(--cy-white-75);font-weight:500;line-height:20px}
html[data-theme="light"] .c5a-dialog .c5a-subtitle{margin-bottom:30px}
html[data-theme="light"] .c5a-dialog .c5a-history-box{background:var(--cy-white-5);margin-left:0;margin-right:0;border-radius:8px}
html[data-theme="light"] .c5a-dialog .c5a-history-box strong{color:#8090FF}
html[data-theme="light"] .c5a-dialog .c5a-footnotes{margin-top:30px}
html[data-theme="light"] .c5a-dialog .c5a-footnotes p+p{margin-top:8px}
html[data-theme="light"] .c5a-dialog .c5a-stage-art img[src$="/c5a-stage-1.svg"]{content:url('assets/c5a-stage-1-light-soft.svg')}
html[data-theme="light"] .c5a-dialog .c5a-stage-art img[src$="/c5a-stage-2.svg"]{content:url('assets/c5a-stage-2-light-soft.svg')}
html[data-theme="light"] .c5a-dialog .c5a-stage-art img[src$="/c5a-stage-3.svg"]{content:url('assets/c5a-stage-3-light-soft.svg')}
html[data-theme="light"] .c5a-dialog .c5a-stage-art img[src$="/c5a-stage-4.svg"]{content:url('assets/c5a-stage-4-light-soft.svg')}
html[data-theme="light"] .c5a-dialog .c5a-stage-art img[src$="/c5a-stage-5.svg"]{content:url('assets/c5a-stage-5-light-soft.svg')}

/* Light dialog uses the existing Chinese typeface, visible close icon and content-sized height. */
html[data-theme="light"] .business-dialog.c5a-dialog{font-family:'PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:0px;min-height:0;height:fit-content}
html[lang="en"][data-theme="light"] .business-dialog.c5a-dialog{font-family:Inter,sans-serif}
html[data-theme="light"] .c5a-dialog .bp-dialog-close img{filter:brightness(0);opacity:.55}
html[data-theme="light"] .c5a-dialog .c5a-stage-grid{scrollbar-width:thin;scrollbar-color:var(--cy-white-35) transparent}

/* Home A3: breathe inside the panel, keep the original data and responsive flow. */
#dash-warning{padding:30px}
#dash-warning .warning-stat>span{white-space:nowrap}
@media(max-width:1150px){#dash-warning .warning-stats{flex:0 0 auto;width:100%}}
@media(max-width:760px){#dash-warning{padding:20px}#dash-warning .warning-stat>span{white-space:normal}}


/* User correction: channel footer follows distribution-health footer, not the A3 warning entry. */
.dashboard #dash-channels>.deep-link{height:auto;min-height:0;padding:10px 18px;gap:4px;border:1px solid #7197ff55;outline:0;border-radius:5px;background:#3d5bf615;color:var(--cy-tab-accent);font-family:inherit;font-size:20px!important;line-height:1.5;font-weight:400}
.dashboard #dash-channels>.deep-link:hover{background:#3d5bf626}
html[data-theme="light"] .dashboard #dash-channels>.deep-link{background:rgb(61 91 246 / .1);border-color:rgb(61 91 246 / .35);color:var(--cy-primary)}
html[data-theme="light"] .dashboard #dash-channels>.deep-link:hover{background:rgb(61 91 246 / .15)}
@media(max-width:760px){.dashboard #dash-channels>.deep-link{font-size:16px!important}}

/* Figma 所有页面 / 最终2 / 1184:13726: compact A3 metrics and five separators. */
#dash-warning{padding:30px 20px 30px 30px;border:0;outline:1px solid var(--cy-white-10);outline-offset:0;min-height:0;container-type:inline-size}
#dash-warning .dash-panel-header{align-items:flex-start;gap:30px}
#dash-warning .warning-title{height:24px;gap:8px;align-items:center}
#dash-warning .warning-title h2{font:600 20px/20px 'PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:0px}
#dash-warning .warning-title .danger-pill{display:inline-flex;align-items:center;justify-content:center;height:28px;padding:0 8px;font:400 14px/14px 'PingFang SC','Microsoft YaHei',sans-serif;white-space:nowrap}
#dash-warning .segmented{width:207px;height:34px;flex:0 0 207px;padding:5px;gap:5px}
#dash-warning .segmented button{width:96px;height:28px;min-height:0;flex:0 0 96px;padding:0;font:500 14px/14px 'PingFang SC','Microsoft YaHei',sans-serif;white-space:nowrap}
#dash-warning .warning-description{margin:3px 0 16px;line-height:16px}
#dash-warning .warning-bottom{align-items:flex-end;flex-direction:row;gap:30px}
#dash-warning .warning-stats{display:grid;grid-template-columns:184px repeat(4,114px) 74px;column-gap:30px;row-gap:22px;width:874px;flex:0 0 874px;padding-left:10px;max-width:none;min-width:0}
#dash-warning .warning-stat{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:0;min-width:0}
#dash-warning .warning-stat>span{font:400 16px/16px 'PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:0px;white-space:nowrap}
#dash-warning .warning-stat>strong{font-family:'D-DIN',sans-serif;font-size:20px;line-height:20px;letter-spacing:0px;white-space:nowrap}
#dash-warning .warning-stat+.warning-stat::before{content:'';display:block;position:absolute;left:-35px;top:0;bottom:auto;width:1px;height:38px;transform:none;background:var(--cy-white-5);border:0;outline:0}
#dash-warning .warning-bottom .deep-link{display:flex;align-items:center;justify-content:center;gap:3px;width:283px;min-width:0;max-width:100%;height:48px;min-height:48px;flex:0 0 283px;margin-left:auto;padding:0;border:0;outline:1px solid rgb(61 91 246 / .35);border-radius:4px;font-family:'PingFang SC','Microsoft YaHei',sans-serif;font-size:16px!important;line-height:16px;font-weight:600;letter-spacing:0px}
@container(max-width:1186px){
  #dash-warning .warning-bottom{flex-direction:column;align-items:stretch}
  #dash-warning .warning-bottom .deep-link{flex:0 0 44px;align-self:flex-end}
}
@container(max-width:873px){
  #dash-warning .warning-stats{width:100%;flex:0 0 auto;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:30px;row-gap:22px}
  #dash-warning .warning-stat+.warning-stat::before{left:-15px}
  #dash-warning .warning-stat:nth-child(3n+1)::before{display:none}
}
@container(max-width:520px){
  #dash-warning .dash-panel-header{flex-wrap:wrap;gap:15px}
  #dash-warning .warning-description{margin-top:15px;line-height:20px}
  #dash-warning .warning-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  #dash-warning .warning-stat>span{white-space:normal}
  #dash-warning .warning-stat:nth-child(3n+1)::before{display:block}
  #dash-warning .warning-stat:nth-child(2n+1)::before{display:none}
}
@container(max-width:320px){
  #dash-warning .warning-title{flex-wrap:wrap;height:auto;row-gap:8px}
  #dash-warning .warning-title h2{font-size:18px;line-height:18px}
}
/* Keep the label-to-value gap at 4px; the legacy stylesheet also added a value margin. */
#dash-warning .warning-stat>strong{margin:0}
html[lang="en"] #dash-warning .warning-title h2,
html[lang="en"] #dash-warning .warning-title .danger-pill,
html[lang="en"] #dash-warning .segmented button,
html[lang="en"] #dash-warning .warning-description,
html[lang="en"] #dash-warning .warning-stat>span,
html[lang="en"] #dash-warning .warning-bottom .deep-link{font-family:Inter,sans-serif}
html[lang="en"] #dash-warning .warning-stat>span{white-space:normal}
/* Keep the same subtle footer divider across all six asset cards. */
#dash-cards .card-bottom>.card-divider{visibility:visible;background:var(--cy-white-5)}


/* Audience records entry uses the existing Cy base at full opacity. */
#asset-dashboard .record-trigger{background:var(--cy-base)}

/* A1–A5 KPI change: readable comparison beside the primary value. */
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-top{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:4px;min-height:0;margin-bottom:8px}
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-change{font-family:'D-DIN','PingFang SC',sans-serif;font-size:16px!important;line-height:16px;font-weight:400;letter-spacing:0px;margin-left:0;flex:1 1 auto;min-width:0;white-space:normal}
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-top>.metric-number{flex:0 0 auto}

/* A1–A5 change data in the card's top-right header, not beside/below the main value. */
#asset-dashboard #dash-cards .asset-card:not(.total) .asset-stage-heading{display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:28px;margin-bottom:14px}
#asset-dashboard #dash-cards .asset-card:not(.total) .asset-stage-heading>h3{flex:0 0 auto;margin:0}
#asset-dashboard #dash-cards .asset-card:not(.total) .asset-stage-heading>.metric-change{display:block;flex:1 1 auto;min-width:0;text-align:right;align-self:center;font-family:"D-DIN","PingFang SC",sans-serif;font-size:16px!important;line-height:16px;font-weight:400;letter-spacing:0px;margin:0;white-space:normal}

/* Place the original share/health text beside the stage count; retain top-right changes. */
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-top{gap:12px}
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-top>.share-line{margin:0;flex:0 1 auto;min-width:0;text-align:left;white-space:normal}

/* Bottom-align share/health with the primary value; keep the existing 10px activity gap. */
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-top{align-items:flex-end;margin-bottom:0}
/* Follow the supplied KPI reference: close spacing, shared text baseline and emphasized share value. */
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-top{align-items:baseline;gap:4px;margin-bottom:0}
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-top>.share-line{font-family:'PingFang SC','Microsoft YaHei',sans-serif;letter-spacing:0px}
#asset-dashboard #dash-cards .asset-card:not(.total) .share-line>.share-label,#asset-dashboard #dash-cards .asset-card:not(.total) .share-line>.share-separator{color:var(--cy-white-75);font-weight:400}
#asset-dashboard #dash-cards .asset-card:not(.total) .share-line>.share-value{font-family:'D-DIN',sans-serif;font-size:inherit;line-height:inherit;font-weight:700;color:var(--cy-white-95)}

/* User override: the share/health text beside A1-A5 values is 12px/12px. */
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-top>.share-line{font-size:14px;line-height:14px}

/* User choice: stage value on its own line, then 12px share/health; changes stay top-right. */
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-top{flex-direction:column;align-items:flex-start;gap:4px;margin-bottom:0}
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-top>.share-line{flex:0 0 auto;margin:0;font-size:14px;line-height:14px;white-space:nowrap}

/* Relax this five-card reading stack while retaining 12px share text and the top-right changes. */
#asset-dashboard #dash-cards .asset-card:not(.total) .metric-top{gap:8px}
#asset-dashboard #dash-cards .asset-card:not(.total) .card-activity-block{margin-top:12px;margin-bottom:12px}
#asset-dashboard #dash-cards .asset-card:not(.total)>.more-metrics{margin-top:8px}

/* Stage-card change: original amount yesterday above the original daily percentage. */
#asset-dashboard #dash-cards .asset-card:not(.total) .asset-stage-heading{min-height:30px;margin-bottom:12px}
#asset-dashboard #dash-cards .asset-card:not(.total) .asset-stage-heading>.metric-change{display:grid;grid-template-columns:12px max-content;column-gap:4px;row-gap:4px;flex:0 0 auto;justify-content:end;text-align:left;white-space:nowrap}
#asset-dashboard .metric-change-arrow{grid-column:1;grid-row:1;align-self:center;font-family:Inter,sans-serif;font-size:14px;line-height:14px}
#asset-dashboard .metric-change-top,#asset-dashboard .metric-change-bottom{grid-column:2;display:flex;align-items:baseline;gap:4px;white-space:nowrap}
#asset-dashboard .metric-change-top{grid-row:1;font-size:16px;line-height:16px}
#asset-dashboard .metric-change-bottom{grid-row:2;font-size:14px;line-height:14px}
#asset-dashboard .metric-change-amount{font-family:'D-DIN',sans-serif;font-size:16px;line-height:16px;font-weight:700;letter-spacing:0px}
#asset-dashboard .metric-change-rate{font-family:'D-DIN',sans-serif;font-size:14px;line-height:14px;font-weight:400;letter-spacing:0px}
#asset-dashboard .metric-change-label{font-family:'PingFang SC',sans-serif;font-size:14px;line-height:14px;font-weight:400;letter-spacing:0px}
html[lang=en] #asset-dashboard .metric-change-label{font-family:Inter,sans-serif}

/* Amount and period are separated; both change lines share the right edge. */
#asset-dashboard .metric-change-top,#asset-dashboard .metric-change-bottom{justify-self:end;justify-content:flex-end}
#asset-dashboard .metric-change-separator{font-family:Inter,sans-serif;font-size:14px;line-height:14px;font-weight:400;letter-spacing:0px}

/* User: equal regular weight, right-aligned rows, arrow-to-number exactly 2px. */
#asset-dashboard #dash-cards .asset-card:not(.total) .asset-stage-heading>.metric-change{grid-template-columns:max-content;column-gap:0}
#asset-dashboard .metric-change-top,#asset-dashboard .metric-change-bottom{grid-column:1;gap:4px}
#asset-dashboard .metric-change-direction{display:inline-flex;align-items:baseline;gap:2px}
#asset-dashboard .metric-change-amount,#asset-dashboard .metric-change-rate,#asset-dashboard .metric-change-label,#asset-dashboard .metric-change-separator,#asset-dashboard .metric-change-arrow{font-weight:400}

/* User: top change row14, bottom row12; all weights and established gaps retained. */
#asset-dashboard #dash-cards .asset-card:not(.total) .asset-stage-heading{min-height:30px;margin-bottom:12px}
#asset-dashboard .metric-change-top,#asset-dashboard .metric-change-top span{font-size:16px;line-height:16px}
#asset-dashboard .metric-change-bottom,#asset-dashboard .metric-change-bottom span{font-size:14px;line-height:14px}

/* User: the complete lower daily-change line uses PingFang SC, including digits and dot. */
#asset-dashboard .metric-change-bottom,#asset-dashboard .metric-change-bottom span{font-family:"PingFang SC",sans-serif!important}

/* English alert-scope labels keep their original font and size; each button owns its full label. */
html[lang="en"] #dash-warning .segmented{width:max-content;flex:0 0 auto}
html[lang="en"] #dash-warning .segmented button{width:max-content;min-width:96px;flex:0 0 auto;padding:0 12px;white-space:nowrap}
html[lang="en"] #dash-warning .dash-panel-header{flex-wrap:wrap}
