/* Currency dashboard 4.10.96. Theme tokens come from the shared layout. */
.currency-page{max-width:1160px;padding-bottom:54px;min-width:0}
.currency-page :is(section,form,article,div,table){min-width:0}
.currency-page :is(.currency-intro,.currency-section-heading){display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.currency-intro{margin:12px 0 17px}
.currency-intro h1{font-size:clamp(26px,3.5vw,42px);letter-spacing:-.045em;line-height:1.15;margin:7px 0 11px}
.currency-intro p{font-size:14px;color:var(--muted);max-width:660px;margin:0;line-height:1.65}
.currency-meta{display:flex;flex-direction:column;align-items:flex-end;flex:0 0 auto;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:12px 15px;font-size:12px;white-space:normal;max-width:210px;text-align:right}
.currency-meta strong{color:var(--text)}.currency-meta span{color:var(--muted)}
.currency-jump{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 20px}.currency-jump a{display:inline-flex;align-items:center;min-height:35px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 13px;font-weight:750;font-size:12px}
.currency-jump a:is(:hover,:focus-visible){border-color:var(--accent);color:var(--accent)}
.currency-page section[id]{scroll-margin-top:95px}
.currency-featured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:16px}
.currency-feature-card{border:1px solid var(--line);border-radius:19px;padding:20px;background:var(--surface);box-shadow:var(--soft-shadow);display:flex;flex-direction:column;align-items:flex-start;gap:13px}
.currency-feature-top{display:flex;align-items:center;gap:11px}
.currency-feature-top strong{display:block;font-size:15px}.currency-feature-top small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.currency-flag{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:var(--accent-soft);font-size:22px;font-weight:800;color:var(--accent)}
.currency-feature-number{font-size:clamp(24px,2.5vw,33px);font-weight:850;letter-spacing:-.04em;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.currency-feature-number small{font-size:19px;color:var(--muted)}
.currency-feature-note{font-size:11px;color:var(--muted);line-height:1.4}.currency-feature-card button{padding:0;border:0;background:none;font-size:12px;font-weight:800;color:var(--accent);cursor:pointer;margin-top:auto}
.currency-feature-card button:hover{text-decoration:underline;text-underline-offset:3px}
.currency-page :is(.currency-converter-panel,.currency-history-panel,.currency-rates-panel,.currency-guide){border:1px solid var(--line);border-radius:19px;background:var(--surface);padding:clamp(17px,2.2vw,26px);margin:15px 0;box-shadow:var(--soft-shadow)}
.currency-section-heading{align-items:center;margin-bottom:19px}.currency-section-heading h2,.currency-guide h2{font-size:clamp(19px,2.2vw,25px);line-height:1.25;letter-spacing:-.025em;margin:4px 0 6px}
.currency-section-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.currency-page :is(.currency-section-heading>button,.currency-history-footer>button){border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--text);padding:9px 13px;min-height:38px;flex:0 0 auto;font-size:12px;font-weight:800}
.currency-page :is(input,select){width:100%;max-width:100%;min-height:43px;padding:9px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);outline-offset:3px}
.currency-page :is(input,select):focus-visible{outline:2px solid var(--accent)}
.currency-live-form{display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(155px,1fr) 42px minmax(155px,1fr) auto;align-items:end;gap:10px}
.currency-live-form>label,.currency-history-controls>label,.currency-table-filters>label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px;font-weight:750}
.currency-live-form .currency-submit{min-height:43px;white-space:nowrap}.currency-live-form .currency-swap{width:42px;height:43px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);font-size:22px;color:var(--text)}
.currency-input-helpers{grid-column:1/-1;display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.currency-input-helpers button{border:1px solid var(--line);background:var(--surface-2);color:var(--text);padding:5px 10px;min-height:32px;border-radius:9px;font-size:12px}
.currency-form-error{grid-column:1/-1;color:#b73540;font-weight:750;margin:0}
.currency-live-form .conversion-result{grid-column:1/-1;margin:1px 0 0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px;background:var(--surface-2);border:1px solid var(--line);border-radius:13px}
.currency-live-form .conversion-result>div{display:grid;gap:2px;min-width:0;flex:1 1 0}.currency-live-form .conversion-result>div:last-child{text-align:right}.currency-live-form .conversion-result small{font-size:11px;color:var(--muted)}.currency-live-form .conversion-result strong{font-size:clamp(17px,2.4vw,27px);line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.currency-equals{font-size:24px;color:var(--muted)}.currency-calculation-note{grid-column:1/-1;color:var(--muted);font-size:11px;line-height:1.55}
.currency-history-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:17px}
.currency-history-controls>label{width:min(330px,100%)}.currency-periods{display:flex;flex-wrap:wrap;gap:5px;padding:4px;background:var(--surface-2);border-radius:12px}
.currency-periods button{border:0;background:transparent;color:var(--muted);border-radius:9px;padding:8px 12px;min-height:34px;font-size:12px;font-weight:800}.currency-periods button[aria-pressed="true"]{background:var(--surface);color:var(--text);box-shadow:var(--soft-shadow)}
.currency-history-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 15px}
.currency-history-stats>div{border:1px solid var(--line);background:var(--surface-2);border-radius:12px;padding:12px;display:grid;gap:5px}.currency-history-stats small{font-size:11px;color:var(--muted)}.currency-history-stats strong{font-variant-numeric:tabular-nums;font-size:16px;overflow-wrap:anywhere}.currency-history-stats strong.is-positive{color:#198754}.currency-history-stats strong.is-negative{color:#d45151}
.currency-chart-wrap{position:relative;isolation:isolate;width:100%;min-height:280px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,var(--surface-2),var(--surface));padding:13px 11px;touch-action:pan-y}
.currency-chart-wrap>svg{display:block;width:100%;height:250px;overflow:visible;touch-action:pan-y;cursor:crosshair;outline-offset:2px}
.currency-chart-wrap [data-currency-line]{fill:none;stroke:var(--accent);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.currency-chart-wrap [data-currency-grid] line{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
.currency-chart-wrap [data-currency-grid] text{font-size:13px;fill:var(--muted)}
.currency-chart-wrap [data-currency-dot]{fill:var(--accent);stroke:var(--surface);stroke-width:3;vector-effect:non-scaling-stroke}
.currency-chart-message{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:20px;font-size:13px;color:var(--muted);background:color-mix(in srgb,var(--surface) 75%,transparent);z-index:2}
.currency-chart-tooltip{position:absolute;z-index:5;pointer-events:none;min-width:165px;max-width:min(210px,65vw);border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);padding:11px;font-size:12px;font-variant-numeric:tabular-nums}
.currency-chart-tooltip strong{display:block;font-size:16px;margin:2px 0}.currency-chart-tooltip small{color:var(--muted)}
.currency-history-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}.currency-history-footer p{font-size:11px;color:var(--muted);margin:0}.currency-history-footer button:disabled{opacity:.55;cursor:not-allowed}
.currency-history-details{margin-top:13px;border-top:1px solid var(--line);padding-top:10px}.currency-history-details summary{cursor:pointer;color:var(--accent);font-size:12px;font-weight:800}
.currency-table-filters{display:grid;grid-template-columns:minmax(200px,1fr) minmax(155px,215px) auto;gap:12px;align-items:end;margin-bottom:16px}.currency-table-filters .currency-favorites-filter{display:flex;flex-direction:row;align-items:center;gap:7px;padding-bottom:9px;white-space:nowrap;color:var(--text)}.currency-favorites-filter input{width:16px;height:16px;min-height:0;accent-color:var(--accent)}
.currency-data-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.currency-data-scroll table{width:100%;border-collapse:collapse;font-size:13px}.currency-data-scroll th{white-space:nowrap;color:var(--muted);font-size:11px;text-align:left;padding:10px 11px;border-bottom:1px solid var(--line)}.currency-data-scroll td{padding:11px;border-bottom:1px solid var(--line)}.currency-data-scroll tr:last-child td{border-bottom:0}
.currency-rates-table td:first-child strong{display:block;font-size:13px}.currency-rates-table td:first-child span{display:block;color:var(--muted);font-size:11px;line-height:1.4}.currency-number{font-variant-numeric:tabular-nums;white-space:nowrap}.currency-favorite{border:1px solid var(--line);border-radius:10px;width:33px;height:33px;background:var(--surface);color:var(--muted);font-size:21px;line-height:1}.currency-favorite[aria-pressed="true"]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent)}
.currency-rates-table tbody tr:hover{background:var(--surface-2)}.currency-footnote,.currency-rates-empty{color:var(--muted);font-size:12px;margin:11px 0 0}
.currency-guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.currency-guide-grid>div{border:1px solid var(--line);border-radius:13px;padding:15px;background:var(--surface-2)}.currency-guide-grid h3{font-size:14px;margin:0 0 6px}.currency-guide-grid p{color:var(--muted);font-size:12px;line-height:1.65;margin:0}.currency-source-link{font-size:12px;color:var(--muted);margin:16px 0 0}.currency-source-link a{color:var(--accent);font-weight:800}
@media(max-width:960px){.currency-live-form{grid-template-columns:minmax(100px,1fr) minmax(135px,1fr) 42px minmax(135px,1fr)}.currency-live-form .currency-submit{grid-column:1/-1}.currency-history-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.currency-intro{display:block}.currency-meta{align-items:flex-start;text-align:left;margin-top:13px;max-width:none}.currency-featured{grid-template-columns:1fr;gap:9px}.currency-feature-card{gap:6px;padding:14px}.currency-feature-card button{margin-top:3px}.currency-feature-number{font-size:25px}.currency-guide-grid{grid-template-columns:1fr}.currency-live-form{grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr)}.currency-live-form>label:first-child{grid-column:1/-1}.currency-live-form>label:nth-child(2){grid-column:1}.currency-live-form>label:nth-child(4){grid-column:3}.currency-live-form .currency-swap{grid-column:2;grid-row:2}.currency-table-filters{grid-template-columns:1fr 1fr}.currency-table-filters>label:first-child{grid-column:1/-1}.currency-table-filters .currency-favorites-filter{grid-column:1/-1;padding:0}.currency-page .currency-section-heading{align-items:flex-start;flex-direction:column}.currency-chart-wrap>svg{height:215px}.currency-chart-wrap{min-height:246px}.currency-rates-table{min-width:455px}}
@media(max-width:410px){.currency-live-form{gap:7px}.currency-live-form select{font-size:12px;padding-inline:5px}.currency-live-form .conversion-result{gap:7px;padding:12px}.currency-history-stats{gap:6px}.currency-history-stats>div{padding:9px}.currency-history-stats strong{font-size:14px}.currency-history-controls>label{width:100%}.currency-periods{width:100%}.currency-periods button{flex:1}.currency-intro h1{font-size:28px}}
