/* Shared comparison controls, dialogs and numeric hierarchy. */
.premium-board { --control-height: 48px; }
.venue-select-control:has(select:not(.sr-only)) { display: grid; grid-template-columns: 28px minmax(44px,1fr) auto; gap: 6px; align-items: center; padding: 0 10px; border: 1px solid #dce4de; border-radius: 11px; }
.premium-tools [disabled] { opacity: .65; }
.venue-selector { min-width: 0; }
.venue-select-control { position: relative; display: block; padding: 0; border: 0; background: transparent; min-height: 48px; }
.exchange-trigger { width: 100%; min-height: var(--control-height); display: flex; align-items: center; gap: 10px; border: 1px solid #d5deda; background: #fff; border-radius: 10px; padding: 0 12px; color: #17221d; text-align: left; cursor: pointer; }
.exchange-trigger:hover { border-color: #779185; background: #fafcfb; }
.exchange-trigger strong { font-size: 14px; font-weight: 650; }
.exchange-trigger .exchange-market { display: block; margin-left: auto; color: #596760; font-size: 11px; letter-spacing: .02em; }
.exchange-chevron { font-size: 19px; line-height: 1; color: #596760; }
.exchange-trigger img { object-fit: contain; border-radius: 50%; flex: 0 0 auto; }
.premium-board button:focus-visible, dialog button:focus-visible, dialog a:focus-visible { outline: 3px solid #23754e; outline-offset: 3px; }
.exchange-dialog,.premium-detail-dialog { border: 1px solid #dbe5df; border-radius: 16px; background: #fff; color: #17221d; padding: 0; box-shadow: 0 18px 70px #10281b2b; max-height: min(85dvh,800px); overflow: auto; }
dialog::backdrop { background: #16261e55; }
.exchange-dialog { width: min(340px,calc(100vw - 24px)); margin: 0; position: fixed; top: var(--exchange-top,100px); left: var(--exchange-left,12px); max-height: calc(100dvh - var(--exchange-top,100px) - 12px); }
.exchange-dialog header,.premium-detail-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 8px; position: sticky; top: 0; background: #fff; z-index: 1; border-bottom: 1px solid #e5ebe7; }
.exchange-dialog h2,.premium-detail-dialog h2 { margin: 0; font-size: 17px; font-weight: 700; }
.dialog-close { min-width: 44px; min-height: 44px; border: 0; background: transparent; border-radius: 8px; color: #344b3e; font-size: 27px; cursor: pointer; }
.dialog-close:hover { background: #f0f5f2; }
.exchange-options { padding: 8px 12px 14px; }
.exchange-options section+section { margin-top: 8px; }
.exchange-options h3 { margin: 8px 10px 4px; color: #5b6e62; font-size: 11px; font-weight: 600; }
.exchange-options button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; color: inherit; cursor: pointer; }
.exchange-options button:hover { background: #f1f6f3; }
.exchange-options button[aria-pressed=true] { background: #ecf6e8; }
.exchange-options button:disabled { opacity: .42; cursor: default; }
.exchange-options img { object-fit: contain; border-radius: 50%; }
.exchange-options strong { font-size: 14px; }
.exchange-options small { margin-left: auto; font-size: 11px; color: #526258; }
.exchange-check { width: 18px; visibility: hidden; color: #286027; font-weight: 800; }
[aria-pressed=true]>.exchange-check { visibility: visible; }
.premium-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 10px; }
.premium-tools>button { min-height: 44px; border: 1px solid #dce4de; border-radius: 9px; background: #fff; color: #314537; padding: 0 13px; font-size: 12px; font-weight: 650; cursor: pointer; }
.premium-tools>button[aria-pressed=true] { border-color: #a9c98f; background: #eef7e8; color: #28521d; }
.premium-tools>a { margin-left: auto; font-size: 12px; color: #32624c; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.premium-metrics-source { font-size: 11px; color: #607068; }
.premium-table { font-variant-numeric: tabular-nums; }
.premium-table td[data-premium-cell]>strong { display: block; font-size: 13px; font-weight: 650; white-space: nowrap; }
.premium-table td[data-premium-cell]>small { display: block; margin-top: 4px; font-size: 10px; font-weight: 400; color: #69776f; white-space: nowrap; }
.premium-table td[data-premium-cell]>small[hidden] { display: none; }
.premium-table td[data-premium-cell=premium]>strong { font-size: 14px; }
.favorite-toggle { flex: 0 0 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #7d897f; font-size: 21px; cursor: pointer; border-radius: 7px; }
.favorite-toggle[aria-pressed=true] { color: #8d6515; }
.asset-detail-trigger { display: flex; align-items: center; gap: 9px; min-height: 44px; min-width: 0; text-align: left; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 5px; }
.asset-detail-trigger:hover .market-asset-copy strong { text-decoration: underline; text-underline-offset: 3px; }
.premium-asset-cell .market-asset { gap: 0; }
.asset-detail-trigger .asset-logo { width: 30px; height: 30px; }
.asset-detail-trigger .market-asset-copy { max-width: 148px; }
.premium-detail-dialog { width: min(640px,calc(100vw - 32px)); }
.premium-detail-body { padding: 20px; }
.premium-detail-prices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.premium-detail-prices section { min-width: 0; padding: 16px; background: #f6f8f7; border: 1px solid #e2e9e5; border-radius: 12px; }
.premium-detail-dialog h3 { font-size: 12px; color: #50685a; margin: 0 0 10px; font-weight: 650; }
.detail-price { display: block; font-size: clamp(20px,3.5vw,27px); line-height: 1.4; letter-spacing: -.03em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.premium-detail-dialog dl { margin: 16px 0 0; font-size: 12px; }
.premium-detail-dialog dt { color: #607469; margin-top: 12px; font-size: 11px; }
.premium-detail-dialog dd { margin: 4px 0 0; color: #233f30; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.premium-calculation { margin-top: 20px; padding-top: 20px; border-top: 1px solid #dce6df; }
.formula-value { margin: 0; font-size: 14px; line-height: 1.8; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-notice,.detail-footnote { color: #63736a; font-size: 12px; line-height: 1.7; }
.detail-notice { color: #865011; }
.detail-footnote { margin-top: 20px; }
.premium-detail-dialog details { font-size: 12px; color: #536c5e; }
.premium-detail-dialog summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.premium-detail-dialog summary::after { content: '⌄'; margin-left: auto; }
.premium-detail-dialog details[open] summary::after { content: '⌃'; }
.premium-detail-dialog details a { display: block; min-height: 32px; overflow-wrap: anywhere; }
.metrics-toggle { display: none; }
@media(max-width:767px) {
 .exchange-trigger { display: grid; grid-template-columns: 24px minmax(0,1fr) 10px; column-gap: 6px; row-gap: 0; padding: 6px 8px; }
 .exchange-trigger img { grid-row: 1 / span 2; width: 24px; height: 24px; }
 .exchange-trigger strong { grid-column: 2; font-size: 12px; white-space: nowrap; }
 .exchange-trigger .exchange-market { grid-column: 2; margin-left: 0; font-size: 10px; }
 .exchange-trigger .exchange-chevron { grid-column: 3; grid-row: 1 / span 2; font-size: 16px; }
 .exchange-dialog { top: auto; left: 0; bottom: 0; width: 100%; max-width: none; max-height: 85dvh; border-radius: 18px 18px 0 0; padding-bottom: env(safe-area-inset-bottom); }
 .exchange-options button { min-height: 56px; }
 .premium-detail-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 90dvh; padding-bottom: env(safe-area-inset-bottom); }
 .premium-detail-body { padding: 16px; }
 .premium-detail-prices { gap: 10px; }
 .premium-detail-prices section { padding: 12px; }
 .premium-tools { gap: 8px; margin-top: 10px; }
 .premium-metrics-source { order: 3; flex-basis: 100%; font-size: 10px; }
 .premium-table td[data-premium-cell]>strong { font-size: 12px; }
 .premium-table td[data-premium-cell]>small { font-size: 9px; }
 .asset-detail-trigger .market-asset-copy { max-width: 100px; }
 .crypto-market-rail:not([data-expanded=true]) .crypto-indicator-card:nth-child(n+3) { display: none; }
 .metrics-toggle { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border: 0; background: transparent; color: #536b5b; font-size: 12px; cursor: pointer; }
}
@media(prefers-reduced-motion:reduce) { .exchange-dialog,.premium-detail-dialog { scroll-behavior: auto; } }
.guide-hub{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}
.guide-hub-card{display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line,#dee3ed);padding:24px;border-radius:12px;text-decoration:none;color:inherit;background:var(--surface,#fff)}
.guide-hub-card h2,.guide-hub-card h3{font-size:17px;line-height:1.5;margin:0!important}
.guide-hub-card:hover{border-color:var(--accent,#5b56da);background:#f7f7fd}
.content-updated{font-size:12px;color:var(--muted,#596578);margin-top:32px}
@media(max-width:620px){.guide-hub{grid-template-columns:1fr}.guide-hub-card{padding:20px}}
