.pulse-main { overflow: auto; background: #f7f8fa; }
.pulse-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0 64px; color: #172033; }
.pulse-hero { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.pulse-hero span { color: #697386; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pulse-hero h1 { margin: 6px 0 0; font-size: 32px; letter-spacing: -.04em; }
.pulse-hero select { border: 1px solid #dce1e8; border-radius: 10px; background: white; padding: 9px 12px; }
.pulse-notice { margin-bottom: 16px; padding: 12px 14px; border: 1px solid #f0d99a; border-radius: 10px; background: #fff9e8; color: #765a12; }
.pulse-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.pulse-metric, .pulse-panel { border: 1px solid #e2e6ec; border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .03); }
.pulse-metric { display: flex; min-height: 124px; flex-direction: column; padding: 18px; }
.pulse-metric span, .pulse-metric small, .pulse-panel header span { color: #697386; font-size: 12px; }
.pulse-metric strong { margin: 13px 0 7px; font-size: 28px; letter-spacing: -.03em; }
.pulse-panel { padding: 20px; }
.pulse-panel header { display: flex; align-items: baseline; justify-content: space-between; }
.pulse-panel h2 { margin: 0; font-size: 17px; }
.pulse-trend-panel { margin-bottom: 18px; }
.pulse-bars { display: flex; align-items: end; gap: 8px; height: 220px; margin-top: 22px; }
.pulse-bar-column { display: flex; flex: 1; height: 100%; min-width: 8px; flex-direction: column; align-items: stretch; justify-content: end; gap: 7px; }
.pulse-bar { min-height: 3px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #7257e8, #4f7bea); }
.pulse-bar-column span { overflow: hidden; color: #7b8494; font-size: 10px; text-align: center; white-space: nowrap; }
.pulse-breakdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pulse-table { margin-top: 14px; }
.pulse-table > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid #eef0f4; }
.pulse-table strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse-table span { color: #697386; font-size: 12px; }
.pulse-table b { font-variant-numeric: tabular-nums; }
.pulse-empty, .pulse-loading { padding: 40px; color: #697386; text-align: center; }
.chat-cost-pill { border-color: #d9d3fb !important; background: #f5f2ff !important; color: #5b42c7 !important; font-variant-numeric: tabular-nums; }
.chat-cost-pill.is-live::before { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #7257e8; content: ""; animation: pulse-cost 1.4s ease-in-out infinite; }
.chat-cost-breakdown { width: min(440px, calc(100vw - 28px)); max-height: min(720px, calc(100vh - 28px)); padding: 0; overflow: auto; border: 0; border-radius: 18px; background: transparent; color: #172033; box-shadow: 0 24px 64px rgba(26, 35, 31, .24); }
.chat-cost-breakdown::backdrop { background: rgba(27, 35, 31, .34); backdrop-filter: blur(3px); }
.chat-cost-breakdown-card { padding: 22px; background: #fff; }
.chat-cost-breakdown-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.chat-cost-breakdown-card > header span { color: #7c857f; font-size: 10px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.chat-cost-breakdown-card > header h3 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.02em; }
.chat-cost-breakdown-card > header button { display: grid; width: 32px; height: 32px; flex: 0 0 auto; padding: 0; place-items: center; border: 1px solid #dde2dd; border-radius: 9px; background: #fff; color: #627069; font-size: 21px; line-height: 1; cursor: pointer; }
.chat-cost-breakdown-total { display: grid; gap: 3px; margin: 20px 0; padding: 18px; border: 1px solid #ded8ff; border-radius: 14px; background: #f7f4ff; }
.chat-cost-breakdown-total span, .chat-cost-breakdown-total small { color: #6d648f; font-size: 12px; }
.chat-cost-breakdown-total strong { color: #5038bc; font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.chat-cost-breakdown-section + .chat-cost-breakdown-section { margin-top: 18px; }
.chat-cost-breakdown-section h4 { margin: 0 0 7px; color: #3a463f; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.chat-cost-breakdown-section dl { margin: 0; }
.chat-cost-breakdown-section dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid #edf0ed; }
.chat-cost-breakdown-section dt { color: #68736c; font-size: 13px; }
.chat-cost-breakdown-section dd { margin: 0; color: #26322b; font-size: 13px; font-weight: 720; font-variant-numeric: tabular-nums; }
.chat-cost-breakdown-card > p { margin: 18px 0 0; color: #7b857f; font-size: 11px; line-height: 1.5; }
@keyframes pulse-cost { 50% { opacity: .35; } }
@media (max-width: 800px) { .pulse-metrics, .pulse-breakdown-grid { grid-template-columns: 1fr 1fr; } .pulse-shell { width: min(100% - 24px, 1180px); } }
@media (max-width: 520px) { .pulse-metrics, .pulse-breakdown-grid { grid-template-columns: 1fr; } }
