.chart-canvas-wrapper{width:100%;position:relative}.chart-canvas-wrapper canvas{width:100%!important}.chart-empty{background:var(--bg-surface-raised);border:1px dashed var(--border-default);border-radius:8px;justify-content:center;align-items:center;min-height:200px;display:flex}.chart-empty p{color:var(--text-muted);margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:12px}.chart-card{background:var(--bg-surface);box-shadow:0 2px 8px var(--shadow-card);border:1px solid var(--border-default);contain:layout style;border-radius:12px;padding:24px}.chart-card-header-row{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;display:flex}.chart-card-header-left{align-items:center;gap:8px;display:flex}.chart-card-header-left h4{color:var(--text-primary);margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:14px;font-weight:600}.export-button{color:var(--brand-emerald);cursor:pointer;background:0 0;border:none;border-radius:5px;flex-shrink:0;align-items:center;gap:6px;padding:6px 10px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:.7rem;font-weight:500;transition:background-color .1s,color .1s,transform .1s;display:flex}.export-button:hover{background:var(--brand-emerald-alpha-10);color:var(--brand-emerald-dark)}.export-button:active{transform:scale(.98)}.export-button svg{width:14px;height:14px}.chart-card-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;display:flex}.chart-card-title{color:var(--text-primary);margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:14px;font-weight:600}.chart-top-controls{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:12px;display:flex}.chart-top-controls .year-selector{margin-bottom:0}.chart-top-toggle{flex-shrink:0}.chart-card-controls{flex-wrap:wrap;align-items:center;gap:10px;min-width:0;display:flex}select.chart-selector{color:var(--brand-navy-text);background:var(--bg-surface-raised);border:1px solid var(--border-default);cursor:pointer;border-radius:6px;padding:6px 10px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:11px;font-weight:500;transition:border-color .1s,box-shadow .1s}select.chart-selector:hover{border-color:var(--brand-emerald)}select.chart-selector:focus{border-color:var(--brand-emerald);box-shadow:0 0 0 2px var(--brand-emerald-alpha-10);outline:none}.chart-selector.app-select{min-width:0}.chart-selector.app-select .app-select-trigger{min-height:32px;color:var(--brand-navy-text);background:var(--bg-surface-raised);border-color:var(--border-default);padding:4px 10px;font-size:11px}.chart-selector.app-select{--app-select-menu-align:end;--app-select-menu-max-width:min(240px, calc(100vw - 32px))}.year-toggle{background:var(--bg-hover);border-radius:6px;padding:2px;display:flex}.year-toggle-btn{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;padding:4px 10px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:10px;font-weight:500;transition:color .1s,background-color .1s,box-shadow .1s}.year-toggle-btn:hover{color:var(--text-primary)}.year-toggle-btn.active{background:var(--bg-surface);color:var(--text-primary);box-shadow:0 1px 2px var(--shadow-light)}.chart-type-toggle{align-items:center;gap:10px;font-size:.7rem;display:inline-flex}.chart-type-segmented{background:var(--bg-hover);border:1px solid var(--border-default);box-sizing:border-box;border-radius:6px;align-items:stretch;gap:0;width:auto;min-width:102px;height:28px;padding:2px;display:inline-flex}.chart-type-segment{min-width:0;height:100%;color:var(--text-muted);box-sizing:border-box;cursor:pointer;background:0 0;border:none;border-radius:4px;flex:1 1 0;justify-content:center;align-items:center;padding:0 10px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:.7rem;font-weight:500;line-height:1;transition:color .1s,background-color .1s,box-shadow .1s;display:flex}.chart-type-segment:hover{color:var(--text-primary)}.chart-type-segment:focus-visible{outline:2px solid var(--brand-emerald-alpha-40);outline-offset:1px}.chart-type-segment.active{color:var(--brand-navy-text);background:var(--bg-surface);box-shadow:0 1px 2px var(--shadow-light)}.chart-inline-toggles{flex-wrap:wrap;align-items:center;gap:16px;display:inline-flex}.toggle-label{color:var(--text-muted);font-weight:500;line-height:22px}.toggle-switch{cursor:pointer;flex-shrink:0;width:48px;height:22px;display:inline-block;position:relative}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{background-color:var(--border-default);border-radius:11px;transition:all .15s;position:absolute;inset:0}.toggle-slider:before{content:"";background-color:var(--bg-surface);width:16px;height:16px;box-shadow:0 2px 3px var(--shadow-strong);border-radius:50%;transition:all .15s;position:absolute;bottom:3px;left:3px}input:checked+.toggle-slider{background-color:var(--border-focus-blue)}input:checked+.toggle-slider:before{transform:translate(26px)}.toggle-labels{color:var(--text-muted);align-items:center;gap:6px;font-size:.6rem;font-weight:500;line-height:22px;display:inline-flex}.toggle-labels .label-line,.toggle-labels .label-bar{color:var(--text-muted)}.toggle-labels .label-line.active,.toggle-labels .label-bar.active{color:var(--border-focus-blue)}.chart-header-with-toggle{justify-content:space-between;align-items:center;gap:16px;margin-bottom:19px;display:flex}.chart-header-with-toggle h4{color:var(--text-primary);margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:14px;font-weight:600}.chart-controls-row{justify-content:space-between;align-items:flex-start;gap:16px;margin-top:12px;margin-bottom:8px;display:flex}.chart-controls-flex{flex-wrap:wrap;align-items:center;gap:16px;min-width:0;display:flex}.chart-controls-left{flex:1}.chart-controls-right{flex-shrink:0;align-items:center;min-width:0;display:flex}.comparison-selector-container{margin-top:13px;margin-bottom:6px}.comparison-add-btn{background:linear-gradient(135deg, var(--bg-surface-raised) 0%, var(--bg-hover) 100%);border:1px solid var(--border-default);color:var(--text-muted);cursor:pointer;border-radius:6px;align-items:center;gap:5px;padding:6px 11px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:.7rem;font-weight:500;transition:background .1s,border-color .1s,color .1s;display:inline-flex}.comparison-add-btn:hover:not(:disabled){background:linear-gradient(135deg, var(--bg-hover) 0%, var(--border-default) 100%);border-color:var(--border-strong);color:var(--text-tertiary)}.comparison-add-btn:disabled{opacity:.5;cursor:not-allowed}.dual-chart-container{grid-template-columns:1fr 1fr;gap:24px;display:grid}.chart-block{flex-direction:column;display:flex}.chart-block-content{flex:1;min-height:320px}@media (width<=768px){.chart-card{padding:16px}.chart-top-controls{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;display:grid}.chart-top-toggle{width:auto}.chart-card-header{flex-direction:column;gap:12px}.chart-card-controls{justify-content:flex-start;width:100%}.chart-controls-row{flex-direction:column;align-items:stretch;gap:10px}.chart-controls-flex{gap:10px}.chart-controls-right{justify-content:flex-start;width:100%}.chart-header-with-toggle{flex-direction:column;align-items:flex-start;gap:10px}.dual-chart-container{grid-template-columns:1fr}}@media (width<=640px){.chart-card-header-row,.chart-card-header{gap:10px}.chart-card-header-left{min-width:0}.chart-card-header-left h4,.chart-card-title,.chart-header-with-toggle h4{line-height:1.35}.chart-card-controls,.chart-controls-flex{width:100%}.chart-top-toggle{justify-content:flex-end;display:flex}select.chart-selector,.comparison-add-btn{min-height:40px}.chart-selectors,.year-selector,.race-selector{width:100%}.year-selector,.race-selector{flex-direction:column;align-items:flex-start;gap:6px}.chart-selector.app-select{width:100%}.chart-selector.app-select .app-select-trigger{justify-content:space-between;width:100%}.year-selector>.chart-selector,.year-selector>.app-select,.year-selector>select,.year-selector>.chart-inline-toggles{width:100%}.year-toggle,.toggle-labels{flex-wrap:wrap}}@media (width<=480px){.chart-card{padding:12px}.chart-card-title{font-size:13px}.chart-selector{padding:5px 8px;font-size:10px}.comparison-add-btn{justify-content:center;width:100%}.chart-top-controls{grid-template-columns:1fr;align-items:stretch;gap:10px}.chart-top-toggle{justify-content:flex-start;width:100%;min-width:0}}.metrics-sidebar{flex-direction:column;gap:12px;display:flex}.metric-item{background:linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-raised) 100%);border:1px solid var(--border-default);box-shadow:0 2px 8px var(--shadow-card);border-radius:12px;flex-direction:column;gap:4px;padding:22px 19px;display:flex}.metric-item:hover{box-shadow:0 6px 20px var(--shadow-modal);transition:transform .1s,box-shadow .1s;transform:translateY(-2px)}.metric-value{color:var(--text-strong);background:linear-gradient(135deg, var(--text-deep) 0%, var(--text-tertiary) 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-bottom:6px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:1.8rem;font-weight:800;line-height:1.1;display:block}.metric-label{color:var(--text-muted);white-space:normal;overflow-wrap:anywhere;word-break:break-word;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:11px;font-weight:600;line-height:1.3}.demographics-metrics-grid{grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px;margin-bottom:8px;display:grid}.demographics-metrics-grid.metrics-grid-columns-1{grid-template-columns:1fr}.demographics-metrics-grid.metrics-grid-columns-2{grid-template-columns:repeat(2,1fr)}.demographics-metrics-grid.metrics-grid-columns-3{grid-template-columns:repeat(3,1fr)}.demographics-metrics-grid .metric-item{justify-content:flex-start;min-height:auto;padding:16px 14px;overflow:visible}.demographics-metrics-grid .metric-value{font-size:1.8rem;font-weight:800}.demographics-metrics-grid .metric-label{word-wrap:break-word;overflow-wrap:break-word;font-size:10px;line-height:1.4}.demographics-metrics-grid .metric-change{white-space:normal;font-size:9px;line-height:1.4;overflow:visible}@media (width<=768px){.metrics-sidebar{flex-flow:wrap}.metric-item{flex:calc(50% - 6px);min-width:140px;padding:16px 14px}.metric-value{font-size:1.5rem;font-weight:800}.metric-label{font-size:10px}.metric-change{font-size:9px}.demographics-metrics-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=640px){.metrics-sidebar{flex-flow:column;gap:10px}.metric-item{flex:auto;min-width:0}}@media (width<=480px){.demographics-metrics-grid,.demographics-metrics-grid.metrics-grid-columns-2,.demographics-metrics-grid.metrics-grid-columns-3{grid-template-columns:1fr}}.chart-container{grid-template-columns:2fr 1fr;align-items:stretch;gap:32px;margin-top:32px;display:grid}.chart-container .chart-card{margin-bottom:0}.chart-container .chart-card .chart-canvas-wrapper{flex:1;min-height:280px}@media (width<=768px){.chart-container{grid-template-columns:1fr;gap:24px}}.chart-skeleton{background:linear-gradient(135deg, var(--bg-surface-raised) 0%, var(--bg-hover) 100%);border:1px solid var(--border-default);border-radius:12px;flex-direction:column;gap:16px;padding:24px;display:flex}.chart-skeleton-label{color:var(--text-muted);font-size:.8125rem;font-weight:500}.chart-skeleton-header{background:linear-gradient(90deg, var(--border-default) 25%, var(--bg-hover) 50%, var(--border-default) 75%);background-size:200% 100%;border-radius:4px;width:40%;height:20px;animation:.8s ease-in-out infinite skeleton-shimmer}.chart-skeleton-body{flex-direction:column;flex:1;gap:12px;padding-top:16px;display:flex}.chart-skeleton-line{background:linear-gradient(90deg, var(--border-default) 25%, var(--bg-hover) 50%, var(--border-default) 75%);background-size:200% 100%;border-radius:4px;width:100%;height:12px;animation:.8s ease-in-out infinite skeleton-shimmer}.chart-skeleton-line.short{width:60%}.chart-skeleton-line.medium{width:80%}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.chart-toggles{align-items:center;gap:16px;display:flex}.sa-toggle{cursor:pointer;align-items:center;gap:6px;min-height:30px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:.7rem;display:inline-flex}.sa-toggle input[type=checkbox]{cursor:pointer;width:14px;height:14px;accent-color:var(--brand-emerald);margin:0}.sa-toggle input[type=checkbox]:focus-visible{outline:2px solid var(--brand-emerald);outline-offset:2px}.sa-toggle-label{color:var(--text-muted);white-space:nowrap;font-weight:500}.sa-toggle:hover .sa-toggle-label{color:var(--text-form)}@media (width<=640px){.chart-toggles{flex-direction:column;align-items:flex-end;gap:8px}.chart-inline-toggles{box-sizing:border-box;justify-content:flex-start;gap:12px;width:100%;padding:0 10px}.sa-toggle{font-size:.65rem}}.chart-pending-comparisons{flex-wrap:wrap;gap:6px;margin:0 0 10px;display:flex}.chart-pending-chip{border:1px solid var(--border-default);background:var(--bg-surface-raised);color:var(--text-muted);border-radius:999px;align-items:center;gap:6px;padding:2px 10px;font-size:12px;line-height:18px;display:inline-flex}.chart-pending-spinner{border:2px solid var(--border-default);border-top-color:var(--brand-emerald-bright);border-radius:50%;width:10px;height:10px;animation:.8s linear infinite chart-pending-spin}@keyframes chart-pending-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.chart-pending-spinner{animation:none}}
