.bag-performance { --chart-purple: #6352e8; --chart-muted: #77716d; color: #27242f; font-family: 'Inter', 'DM Sans', sans-serif; line-height: 1.5; background: #fff; border: 1px solid #e5e1ed; border-radius: 18px; padding: 30px; margin-bottom: 32px; overflow: hidden; text-align: left; }
.bag-performance [hidden] { display: none !important; }
.bag-performance :is(h2, p) { margin: 0; }
.bag-performance button, .bag-performance select, .bag-performance input { font-family: inherit; }
.bag-performance :is(button, select, input, summary):focus-visible { outline: 3px solid #6352e8; outline-offset: 3px; }
.performance-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 23px; border-bottom: 1px solid #eeebf3; margin-bottom: 24px; }
.performance-eyebrow { font-size: 9px; letter-spacing: 1.5px; color: var(--chart-purple); font-weight: 600; }
.performance-heading h2 { font-family: 'Lora', Georgia, serif; font-size: 30px; font-weight: 400; letter-spacing: -1px; line-height: 1.25; margin: 5px 0 7px; }
.performance-heading p { font-size: 12px; color: var(--chart-muted); }
.performance-badge { font-size: 10px; padding: 6px 10px; border: 1px solid #e9e5f5; border-radius: 20px; background: #f8f6ff; color: #6d6192; white-space: nowrap; }
.performance-controls { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 27px; }
.performance-select label { display: block; font-size: 11px; color: var(--chart-muted); margin-bottom: 6px; }
.performance-select { min-width: 0; max-width: 50%; }
.performance-select select { width: 100%; min-height: 44px; max-width: 300px; padding: 9px 32px 9px 13px; font-size: 13px; color: #322d44; background: #faf9fd; border: 1px solid #e5e0ef; border-radius: 8px; }
.performance-ranges { display: flex; padding: 4px; border: 1px solid #ece8f3; border-radius: 9px; background: #faf9fc; gap: 2px; }
.performance-ranges button { min-height: 36px; border: 0; border-radius: 6px; padding: 6px 12px; background: transparent; color: #736b83; font-size: 11px; white-space: nowrap; cursor: pointer; }
.performance-ranges button[aria-pressed='true'] { background: #6352e8; color: #fff; box-shadow: 0 2px 5px #46389620; }
.performance-summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
.performance-label { display: block; color: var(--chart-muted); font-size: 11px; }
.performance-price { display: block; font-size: clamp(24px, 3vw, 36px); letter-spacing: -1.3px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.performance-timestamp { display: block; color: var(--chart-muted); font-size: 10px; }
.performance-timestamp.is-stale { color: #966412; }
.performance-return { text-align: right; flex-shrink: 0; }
.performance-return strong { display: block; font-size: 20px; font-weight: 500; }
.bag-performance .is-positive { color: #237957; }
.bag-performance .is-negative { color: #a8374e; }
.performance-return span { font-size: 10px; color: var(--chart-muted); }
.performance-inspection { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 32px; padding: 7px 11px; border-radius: 6px; background: #f7f5fc; font-size: 10px; color: #736887; }
.performance-inspection strong { font-size: 12px; font-weight: 500; color: #493d6a; }
.performance-plot { height: 250px; margin-top: 10px; }
.performance-plot svg { width: 100%; height: 100%; display: block; overflow: visible; touch-action: pan-y; }
.performance-plot .chart-grid { stroke: #eeeaf5; stroke-width: 1; }
.performance-plot .chart-axis { fill: #8b8398; font-size: 10px; }
.performance-plot .chart-line { fill: none; stroke: #7060e8; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.performance-plot .chart-baseline { stroke: #aba2c7; stroke-width: 1; stroke-dasharray: 4 5; }
.performance-plot .chart-cursor { stroke: #9b8dd1; stroke-width: 1; stroke-dasharray: 3 4; }
.performance-plot .chart-dot { fill: #6352e8; stroke: white; stroke-width: 2; }
.performance-scrub-label { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; color: #776c89; margin-top: 2px; }
.performance-scrub-label span { color: #89808f; }
.bag-performance input.performance-scrub { display: block; width: 100%; height: 28px; min-height: 28px; padding: 0; margin: 5px 0 11px; accent-color: #6352e8; cursor: ew-resize; border: 0; background: transparent; }
.performance-baseline { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 15px; border-top: 1px solid #eeebf3; font-size: 10px; color: #716881; }
.performance-baseline>span:first-child { display: flex; gap: 7px; align-items: center; }
.performance-baseline-dot { height: 7px; width: 7px; background: #aba2c7; border-radius: 50%; flex-shrink: 0; }
.performance-baseline>span:last-child { text-align: right; }
.bag-performance .performance-footnote { color: #847b8d; font-size: 10px; margin-top: 13px; }
.performance-empty { border: 1px dashed #e4deef; background: #faf9fc; border-radius: 10px; padding: 45px 25px; margin: 18px 0; text-align: center; font-size: 13px; color: #81758f; }
.performance-table { font-size: 11px; margin-top: 14px; color: #776b8e; }
.performance-table summary { cursor: pointer; padding: 7px 0; }
.performance-table>div { max-height: 250px; overflow: auto; }
.performance-table table { width: 100%; border-collapse: collapse; font-size: 11px; }
.performance-table th, .performance-table td { padding: 9px 8px; text-align: right; border-bottom: 1px solid #eeebf3; }
.performance-table th:first-child, .performance-table td:first-child { text-align: left; }
.plan-section .bag-performance { box-shadow: 0 18px 45px -20px #44346a40; margin-bottom: 20px; }
.plan-preview-caption { text-align: center; font-size: 12px; color: #6e6289; margin: 0 0 26px; }
.plan-preview-caption a { color: #5141c7; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .bag-performance { padding: 20px; border-radius: 12px; }
  .performance-heading { gap: 10px; }
  .performance-heading h2 { font-size: 26px; }
  .performance-controls { align-items: stretch; flex-direction: column; gap: 12px; }
  .performance-select { max-width: 100%; }
  .performance-select select { max-width: 100%; }
  .performance-ranges button { flex: 1; min-height: 40px; }
  .performance-baseline { flex-direction: column; gap: 8px; }
  .performance-baseline>span:last-child { text-align: left; }
}
@media (max-width: 440px) {
  .bag-performance { padding: 16px; }
  .performance-heading { flex-wrap: wrap; }
  .performance-summary { align-items: flex-start; flex-direction: column; gap: 11px; }
  .performance-return { text-align: left; display: flex; align-items: baseline; gap: 7px; }
  .performance-return strong { font-size: 17px; }
  .performance-scrub-label span { display: none; }
  .performance-plot { height: 220px; }
  .performance-inspection { flex-wrap: wrap; gap: 2px; }
}
