/* v2.33: preserve red semantics, separate metric tiles, use home-card pastel chart colours. */
body[data-lm-surface="workspace"] .pc-root button.pc-red{background:rgba(211,74,78,.12)!important;color:#b74449!important;text-decoration-color:#c24a50!important}
body.night[data-lm-surface="workspace"] .pc-root button.pc-red{background:rgba(234,112,119,.17)!important;color:#f0a2a8!important;text-decoration-color:#ee929a!important}
body[data-lm-surface="workspace"] .pc-key-red i{background:#d5757b!important}.pc-key-red{color:#b74449!important}
body[data-lm-surface] .main :is(.stats,.tl-metrics,.th-metrics,.hw-metrics,.cp-metrics,.rs-metrics,.report-kpis,.la-metrics,.cl-metrics,.lo-metrics,.data-metrics){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;padding:0!important;border:0!important;align-items:stretch;isolation:isolate}
body[data-lm-surface] .main :is(.stats,.tl-metrics,.th-metrics,.hw-metrics,.cp-metrics,.rs-metrics,.report-kpis,.la-metrics,.cl-metrics,.lo-metrics,.data-metrics)>*{min-width:0!important;width:auto!important;max-width:none!important;margin:0!important;overflow-wrap:anywhere;box-sizing:border-box}
body[data-lm-surface] .main :is(.stats,.tl-metrics,.th-metrics,.hw-metrics,.cp-metrics,.rs-metrics,.report-kpis,.la-metrics,.cl-metrics,.lo-metrics,.data-metrics)>*+*{border-left:0!important}
body{--lm-pie-blue:#c5def5;--lm-pie-green:#ccecdf;--lm-pie-purple:#e2d9f6;--lm-pie-gold:#f4e4c8;--lm-pie-empty:#eef3f8}
body.night{--lm-pie-empty:#454b55}
body[data-lm-surface] .main .report-donut{background:conic-gradient(var(--lm-pie-blue) var(--report-progress),var(--lm-pie-empty) 0)!important}
body[data-lm-surface] .main .th-donut{background:conic-gradient(var(--lm-pie-blue) var(--th-progress),var(--lm-pie-empty) 0)!important}
body[data-lm-surface] .main .kb-ring{background:conic-gradient(var(--lm-pie-green) var(--kb-percent),var(--lm-pie-empty) 0)!important}
body[data-lm-surface] .main .hw-ring{background:conic-gradient(var(--lm-pie-blue) var(--ring-rate),var(--lm-pie-purple) 0)!important}
body[data-lm-surface] .main .hw-chart-overview .hw-ring{background:conic-gradient(var(--lm-pie-blue) var(--ring-rate),var(--lm-pie-empty) 0)!important}
.report-legend i:first-child,.th-progress-legend i.done{background:var(--lm-pie-blue)!important}.report-legend i:nth-of-type(2),.th-progress-legend i:not(.done){background:var(--lm-pie-empty)!important}
.hw-builder-steps{display:flex;gap:12px;margin:4px 0 18px}.hw-builder-steps button{border-radius:15px!important;padding:10px 17px!important}.hw-editor-grid.hw-step-metadata{grid-template-columns:minmax(0,1fr)!important;height:auto!important;max-width:1020px}.hw-step-metadata .hw-document{height:auto!important;max-height:none!important;overflow:visible!important}.hw-step-metadata .hw-context{grid-template-columns:repeat(2,minmax(0,1fr))}.hw-step-footer{display:flex;justify-content:flex-end;margin-top:18px}.hw-question-summary{padding-bottom:15px;border-bottom:1px solid var(--line)}.hw-question-summary h2{font-size:20px;font-weight:500}.hw-question-summary p{font-size:12px;color:var(--muted);margin:7px 0}.hw-step-questions{height:clamp(440px,calc(100dvh - 295px),1000px)}
@media(max-width:900px){body[data-lm-surface] .main :is(.stats,.tl-metrics,.th-metrics,.hw-metrics,.cp-metrics,.rs-metrics,.report-kpis,.la-metrics,.cl-metrics,.lo-metrics,.data-metrics){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}}
@media(max-width:600px){.hw-step-metadata .hw-context{grid-template-columns:1fr}.hw-step-footer button{width:100%}.hw-builder-steps{gap:8px}.hw-builder-steps button{font-size:12px!important;padding:9px 12px!important}.hw-step-questions{height:auto!important}}
