.updown-exchange-dialog { box-sizing: border-box; width: min(940px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 28px; border: 1px solid #ddd; border-radius: 12px; background: #fff; color: #202020; box-shadow: 0 24px 90px #0003; overflow-y: auto; font: 14px/1.6 var(--updown-text-font, Arial, sans-serif); }
.updown-exchange-dialog::backdrop { background: #0007; }
.updown-exchange-dialog [hidden] { display: none !important; }
.updown-exchange-dialog button,.updown-exchange-dialog select { font: inherit; }
.exchange-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #eee; padding-bottom: 16px; }
.exchange-eyebrow { color: #777; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.updown-exchange-dialog h2 { margin: 4px 0 0; padding: 0; font-size: 25px; line-height: 1.3; }
.exchange-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #ddd; border-radius: 50%; background: #fff; color: #333; font-size: 27px !important; cursor: pointer; }
.exchange-status:empty { display: none; }
.exchange-controls { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 20px; }
.exchange-controls label { display: flex; flex-direction: column; gap: 5px; color: #666; font-size: 12px; }
.exchange-currency { width: 280px; max-width: 100%; min-height: 42px; padding: 8px 30px 8px 10px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #202020; }
.exchange-ranges { display: flex; gap: 4px; padding: 4px; border: 1px solid #e3e3e3; border-radius: 7px; }
.exchange-ranges button { min-height: 34px; padding: 5px 14px; border: 0; border-radius: 4px; background: transparent; color: #555; cursor: pointer; }
.exchange-ranges button[aria-pressed=true] { background: #dc0003; color: #fff; }
.exchange-summary { padding-top: 22px; }
.updown-exchange-dialog .exchange-name { margin: 0 0 6px; padding: 0; font: 600 14px/1.5 var(--updown-text-font,Arial,sans-serif); }
.exchange-value { font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.exchange-change { margin-left: 16px; color: #666; font-size: 13px; }
.exchange-date { margin: 4px 0 0; color: #777; font-size: 12px; }
.updown-exchange-dialog svg { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.updown-exchange-dialog svg text { font: 12px var(--updown-text-font,Arial,sans-serif); fill: #777; }
.exchange-grid { stroke: #ededed; stroke-width: 1; }
.exchange-line { fill: none; stroke: #dc0003; stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.exchange-dot { fill: #dc0003; stroke: white; stroke-width: 2; }
.exchange-point { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 8px; padding: 12px 16px; border: 1px solid #ededed; border-radius: 6px; background: #fafafa; text-align: center; color: #333; font-size: 14px; font-variant-numeric: tabular-nums; }
.exchange-point .point-date { flex-basis: 100%; color: #777; font-size: 13px; }
.exchange-point .point-label { font-size: 14px; color: #666; }
.exchange-point .point-value { font-size: 20px; font-weight: 600; line-height: 1.5; color: #202020; }
.exchange-point .point-extra { flex-basis: 100%; font-size: 13px; color: #777; }
.exchange-scrubber-label { display: block; margin: 10px 0 18px; color: #777; font-size: 12px; }
.updown-exchange-dialog .exchange-scrubber { display: block; box-sizing: border-box; width: 100%; min-height: 28px; height: 28px; padding: 0; border: 0; box-shadow: none; accent-color: #dc0003; }
.exchange-table { border-top: 1px solid #eee; padding-top: 12px; }
.exchange-table summary { cursor: pointer; font-weight: 600; }
.exchange-table > div { max-height: 280px; overflow: auto; margin-top: 12px; }
.exchange-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.exchange-table th { position: sticky; top: 0; z-index: 1; background: #f8f8f8; color: #666; text-align: left; font-weight: 500; }
.exchange-table th,.exchange-table td { padding: 9px 10px; border-bottom: 1px solid #eee; }
.exchange-table td:not(:first-child),.exchange-table th:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.exchange-table td button { padding: 0; border: 0; background: transparent; color: #202020; text-align: left; cursor: pointer; }
.exchange-table td button:hover { color: #dc0003; }
.exchange-footer { margin-top: 18px; padding-top: 12px; border-top: 1px solid #eee; color: #888; font-size: 12px; }
.exchange-footer a { color: #555; text-decoration: underline; }
.updown-exchange-dialog :focus-visible { outline: 2px solid #dc0003; outline-offset: 2px; }
.exchange-retry { padding: 8px 16px; border: 1px solid #ddd; background: white; border-radius: 4px; cursor: pointer; }
@media(max-width:600px) { .updown-exchange-dialog { padding: 18px; width: calc(100% - 16px); max-height: calc(100dvh - 20px); } .exchange-controls { align-items: stretch; flex-direction: column; gap: 12px; } .exchange-controls label,.exchange-currency { width: 100%; } .exchange-ranges button { flex: 1; } .exchange-change { display: block; margin-left: 0; } .exchange-value { font-size: 27px; } .exchange-table table { font-size: 12px; } }
/* Full information pages, sharing the chart controls without a modal overlay. */
.updown-information-page { padding-block: 24px 48px; }
.updown-information-page .updown-information-panel { display: block; width: 100%; max-width: 1100px; max-height: none; margin-inline: auto; padding: 24px; box-shadow: none; overflow: visible; }
@media(max-width:600px) { .updown-information-page .updown-information-panel { padding: 16px; } }
