.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.currency-view{background:#080808}
.currency-view #app{width:min(920px,calc(100% - 40px));padding:52px 0 40px}
.fx-converter{--fx-bg:#161616;--fx-text:#ededed;--fx-muted:#8d8d90;color:var(--fx-text);font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif}
.fx-converter button,.fx-converter input{font-family:inherit}
.fx-converter button:focus-visible,.fx-converter input:focus-visible,.fx-converter a:focus-visible{outline:2px solid #3989ff;outline-offset:4px}
.fx-icon{width:23px;height:23px;filter:invert(1);flex-shrink:0;vertical-align:middle}
.fx-flag{width:30px;height:30px;object-fit:cover;border-radius:50%;flex-shrink:0}
.fx-card{background:var(--fx-bg);border-radius:28px;padding:22px;min-width:0}
.fx-source-label{display:block;color:var(--fx-muted);font-size:17px;line-height:1.3;margin-bottom:6px}
.fx-source-line{display:flex;align-items:center;gap:18px}
.fx-currency{display:flex;align-items:center;gap:10px;flex-shrink:0;padding:0;min-height:36px;color:var(--fx-text);font-size:22px;font-weight:550;line-height:1.2;border-radius:7px}
.fx-currency .fx-icon{width:18px;height:18px;margin-left:1px}
#fx-amount{border:0;outline:0!important;background:transparent;color:var(--fx-text);min-width:0;width:100%;padding:0;text-align:right;font-size:36px;line-height:1.2;font-weight:600;letter-spacing:-.5px;font-variant-numeric:tabular-nums;border-radius:2px}
.fx-source-card:focus-within{box-shadow:0 0 0 2px #3478f6}
.fx-divider{height:1px;background:#262626;margin:15px 0}
.fx-results{display:grid;gap:15px}
.fx-result-row{position:relative;border-radius:28px;isolation:isolate;overflow:hidden;touch-action:pan-y}
.fx-result-card{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:106px;transition:transform .2s ease;pointer-events:auto}
.fx-result-text{text-align:right;min-width:0}
.fx-result-text output{display:block;color:var(--fx-text);font-size:32px;font-weight:600;line-height:1.2;letter-spacing:-.4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fx-rate{display:block;color:var(--fx-muted);font-size:16px;line-height:1.3;margin-top:7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fx-delete{position:absolute;right:0;top:0;bottom:0;width:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:transparent;color:transparent;font-size:13px}
.fx-delete .fx-icon{width:23px;height:23px;opacity:0}
.fx-result-row.is-revealed .fx-delete,.fx-delete:focus-visible{background:#ce2936;color:white}
.fx-result-row.is-revealed .fx-delete .fx-icon,.fx-delete:focus-visible .fx-icon{opacity:1}
.fx-result-row.is-revealed .fx-result-card,.fx-result-row:has(.fx-delete:focus-visible) .fx-result-card{transform:translateX(-76px)}
.fx-result-row .fx-delete:focus-visible{outline-offset:-6px}
.fx-add{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:25px 0 30px;font-size:19px;font-weight:550;color:var(--fx-text);border-radius:12px;margin-top:8px}
.fx-add .fx-icon{width:23px;height:23px}
.fx-add:hover{color:#5ba0ff}
.fx-footer{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;color:var(--fx-muted);margin-top:9px}
.fx-refresh,.fx-info{display:flex;align-items:center;gap:9px;font-size:14px;padding:6px 0;color:inherit;text-align:left;line-height:1.4;border-radius:4px}
.fx-info{gap:8px}
.fx-info .fx-icon{opacity:.55;width:20px;height:20px}
.fx-refresh .fx-icon{width:18px;height:18px;opacity:.75}
.fx-refresh:hover,.fx-info:hover{color:#ededed}
.fx-refresh:disabled{cursor:wait}
.fx-status{font-size:14px;color:var(--fx-muted);line-height:1.5;min-height:0;margin:8px 0 0}
.fx-status:empty{display:none}
.fx-validation{font-size:14px;color:#ff8d94;margin:12px 3px}
.fx-result-text output.fx-long,#fx-amount.fx-long{font-size:21px;overflow-wrap:anywhere}
.fx-picker,.fx-about{color:var(--fx-text);background:#1b1b1d;border:1px solid #353538;border-radius:26px;padding:24px;width:min(460px,calc(100% - 32px));max-height:85dvh;box-shadow:0 25px 120px #0008}
.fx-picker::backdrop,.fx-about::backdrop{background:#0009;backdrop-filter:blur(6px)}
.fx-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.fx-sheet-head h2{font-size:23px;font-weight:600;margin:0;letter-spacing:-.5px}
.fx-close{border-radius:50%;width:36px;height:36px;background:#303033;display:grid;place-items:center}
.fx-close .fx-icon{width:20px;height:20px}
.fx-search{display:flex;align-items:center;gap:10px;padding:13px 15px;background:#29292c;border-radius:13px;margin-bottom:16px;color:#aaa}
.fx-search .fx-icon{width:20px;height:20px;opacity:.5}
.fx-search input{color:var(--fx-text);font-size:16px;border:0;background:transparent;width:100%;min-width:0;outline:0}
.fx-search:focus-within{box-shadow:0 0 0 2px #3989ff}
.fx-search input::placeholder{color:#a0a0a5}
.fx-picker-list{display:grid;gap:4px;max-height:50dvh;overflow:auto;overscroll-behavior:contain}
.fx-pick-option{display:flex;align-items:center;gap:14px;text-align:left;padding:13px 10px;border-radius:12px;min-height:66px}
.fx-pick-option:hover,.fx-pick-option[aria-current=true]{background:#29292c}
.fx-pick-option .fx-flag{width:34px;height:34px}
.fx-pick-option b{font-size:17px;font-weight:550}
.fx-pick-option small{display:block;margin-top:3px;color:#aaa;font-size:14px}
.fx-pick-option>.fx-icon{margin-left:auto;width:20px}
.fx-empty{color:#a0a0a5;font-size:16px;padding:18px;text-align:center}
.fx-about p{font-size:16px;color:#b2b2b7;line-height:1.6}
.fx-about a{display:inline-block;font-size:16px;color:#65a7ff;text-decoration:underline;text-underline-offset:4px;margin:8px 0}
@keyframes fx-refresh{to{transform:rotate(360deg)}}
.is-refreshing .fx-icon{animation:fx-refresh 1s linear infinite}
@media(hover:hover){.fx-result-row:hover .fx-result-card{transform:translateX(-76px)}.fx-result-row:hover .fx-delete{background:#ce2936;color:white}.fx-result-row:hover .fx-delete .fx-icon{opacity:1}}
@media(max-width:730px){
 .currency-view #app{width:calc(100% - 40px);padding-top:36px}
 .fx-card{border-radius:25px;padding:17px 16px}
 .fx-source-card{padding:16px 16px 14px}
 .fx-source-label{font-size:14px;margin-bottom:4px;line-height:1.25}
 .fx-source-line{gap:12px}
 .fx-flag{width:24px;height:24px}
 .fx-currency{font-size:16px;font-weight:500;gap:9px;min-height:28px}
 .fx-currency .fx-icon{width:15px;height:15px;margin-left:0}
 #fx-amount{font-size:24px;font-weight:500;letter-spacing:-.35px}
 .fx-divider{margin:12px 0}
 .fx-results{gap:12px}
 .fx-result-row{border-radius:25px}
 .fx-result-card{min-height:80px;padding-block:17px;gap:12px}
 .fx-result-text output{font-size:20px;font-weight:500;letter-spacing:0}
 .fx-rate{font-size:13px;line-height:1.25;margin-top:6px}
 .fx-add{font-size:16px;font-weight:500;padding:19px 0 22px;gap:10px;margin-top:7px}
 .fx-add .fx-icon{width:19px;height:19px}
 .fx-footer{gap:4px 14px;margin-top:7px}
 .fx-refresh,.fx-info{font-size:12px;gap:7px}
 .fx-refresh .fx-icon{width:14px;height:14px}
 .fx-info .fx-icon{width:16px;height:16px}
 .fx-picker,.fx-about{margin:auto 0 0;width:100%;max-width:none;border-radius:26px 26px 0 0;padding:23px 20px max(24px,env(safe-area-inset-bottom));max-height:90dvh}
 .fx-result-text output.fx-long,#fx-amount.fx-long{font-size:17px}
}
@media(max-width:370px){.currency-view #app{width:calc(100% - 28px)}.fx-rate{font-size:12px}.fx-card{padding-inline:14px}.fx-currency{gap:6px}.fx-result-card{gap:8px}.fx-result-text output{font-size:21px}}
@media(prefers-reduced-motion:reduce){.fx-result-card{transition:none}.is-refreshing .fx-icon{animation:none}}

/* Compact conversion list: five output currencies on a typical phone screen. */
.currency-view #app{padding-top:28px}
.fx-card{padding:16px 20px;border-radius:22px}
.fx-result-row{border-radius:22px}
.fx-result-card{min-height:80px;padding-block:14px}
.fx-results{gap:10px}
.fx-result-text output{font-size:27px}
.fx-rate{font-size:14px;margin-top:4px}
.fx-add{padding:16px 0;margin-top:4px}
@media(max-width:730px){
 .currency-view #app{padding-top:18px}
 .fx-source-card{padding:12px 15px 11px}
 .fx-source-label{font-size:14px;margin-bottom:2px}
 .fx-card,.fx-result-row{border-radius:20px}
 .fx-result-card{min-height:64px;padding:10px 15px}
 .fx-results{gap:8px}
 .fx-divider{margin:10px 0}
 .fx-result-text output{font-size:20px}
 .fx-rate{font-size:12px;margin-top:3px}
 .fx-add{padding:14px 0;margin-top:3px;min-height:44px}
 .fx-footer{margin-top:2px}
}
