${chart}
`;
}
}
export const chartViewportStyles = css`
.roxy-chart-view { min-width: 0; }
.roxy-chart-tools { display: flex; flex-wrap: wrap; gap: var(--roxy-space-sm, .5rem); align-items: center; justify-content: flex-end; }
.roxy-chart-tools button { font: inherit; font-size: var(--roxy-text-sm, .875rem); color: var(--roxy-secondary, #475569); background: var(--roxy-surface, #fff); border: 1px solid var(--roxy-border, #e4e4e7); border-radius: var(--roxy-radius-sm, 4px); min-width: 2.5rem; min-height: 2.5rem; padding: .35rem .7rem; cursor: pointer; }
.roxy-chart-tools button:disabled { opacity: .45; cursor: default; }
.roxy-chart-tools button:focus-visible, .roxy-chart-scroll:focus-visible { outline: 2px solid var(--roxy-ring, #b45309); outline-offset: 2px; }
.roxy-chart-dialog { --roxy-surface: var(--roxy-bg, #fff); width: calc(100vw - 2rem); max-width: 72rem; max-height: calc(100dvh - 2rem); padding: var(--roxy-space-md, 1rem); margin: auto; border: 1px solid var(--roxy-border, #e4e4e7); border-radius: var(--roxy-radius-md, 8px); color: var(--roxy-fg, #0a0a0a); background: var(--roxy-bg, #fff); box-shadow: var(--roxy-shadow-lg); }
.roxy-chart-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.roxy-chart-dialog::backdrop { background: rgb(0 0 0 / .55); }
.roxy-chart-bar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--roxy-space-md, 1rem); flex-wrap: wrap; margin-bottom: var(--roxy-space-md, 1rem); }
.roxy-chart-bar > strong { min-width: 0; overflow-wrap: anywhere; }
.roxy-chart-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.roxy-chart-expanded { width: max(100%, calc(60rem * var(--chart-zoom, 1))); padding: var(--roxy-space-sm, .5rem); }
.roxy-chart-expanded > svg { width: 100%; max-width: none; height: auto; margin: 0; }
`;