:root{--primary:#a5451c;--primary-dark:#843516;--ink:#322b25;--secondary-ink:#625548;--muted:#706355;--line:#e8ded2;--line-soft:#eee7dd;--control-line:#d8c8b6;--soft:#f2ede5;--canvas:#f8f5ef;--surface:#fffdfa;--subtle-surface:#fcfaf6;--table-head:#f3e8dc;--table-corner:#f0e4d7;--hover:#f5e8d9;--accent-soft:#f9eee3;--accent-line:#dfc3a7;--green:#4b622e;--success-soft:#eef1e6;--success-badge:#e0e7d2;--amber:#87580f;--warning-soft:#fff3df;--warning-line:#e9d1a6;--radius:12px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,select{cursor:pointer}button{transition:background .15s,color .15s,box-shadow .15s;border:0}button:disabled{cursor:not-allowed;opacity:.55}a:hover{color:var(--primary)}:focus-visible{outline:3px solid var(--primary);outline-offset:3px}input:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #a5451c12}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.35;letter-spacing:-.8px;font-weight:750}h2{font-size:19px;line-height:1.5;font-weight:700}h3{font-size:16px}svg{display:block}small{font-size:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-60px;left:20px;background:var(--primary);color:white;z-index:100;padding:10px 18px;border-radius:6px}.skip-link:focus{top:8px;color:white}
.site-header{background:var(--surface);border-top:3px solid var(--primary);border-bottom:1px solid var(--line)}.header-inner{max-width:1320px;margin:auto;padding:0 32px;min-height:82px;display:flex;align-items:center;gap:46px}.brand{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:800;line-height:1.15;letter-spacing:-1px;flex-shrink:0}.brand-icon{width:38px;height:38px;color:var(--primary)}.brand-digits{color:var(--primary);letter-spacing:-1.6px;padding-left:2px}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:1.1px;color:var(--muted);margin-top:5px}.header-inner nav{display:flex;align-items:center;gap:28px;height:82px}.nav-link{height:82px;display:flex;align-items:center;position:relative;font-size:15px;font-weight:500;white-space:nowrap}.nav-link.active{color:var(--primary);font-weight:700}.nav-link.active:after{content:"";height:3px;border-radius:2px;background:var(--primary);position:absolute;bottom:0;left:0;right:0}.header-note{margin-left:auto;display:flex;gap:7px;align-items:center;font-size:12px;color:var(--muted);white-space:nowrap}.status-dot{display:inline-block;background:var(--green);width:6px;height:6px;border-radius:50%;flex-shrink:0}
.main-container{max-width:1320px;margin:auto;padding:32px 32px 54px;min-height:60vh}.page-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}.eyebrow{font-size:11px;letter-spacing:1.3px;color:var(--primary);font-weight:700;margin-bottom:7px}.page-intro p{color:var(--muted);margin-top:8px;font-size:14px}.intro-facts{display:flex;align-items:center;gap:24px;font-size:12px;color:var(--muted)}.intro-facts>span{display:flex;align-items:baseline;gap:5px}.intro-facts strong{font-size:25px;color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}.intro-facts .unit-fact{display:flex;flex-direction:column;gap:0;border-left:1px solid var(--line);padding-left:22px}.intro-facts .unit-fact strong{font-size:14px;color:var(--primary);font-weight:600}.sync-status{font-size:12px;color:var(--green);display:flex;align-items:center;gap:7px;margin-bottom:18px;flex-wrap:wrap}.sync-time{color:var(--muted);margin-left:8px}.sync-note{color:var(--amber)}.sync-warning{color:var(--amber)}.sync-warning .status-dot{background:#b7781b}.sync-warning{background:var(--warning-soft);padding:10px 13px;border-radius:8px;border:1px solid var(--warning-line)}.panel,.quote-matrix{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.panel>.section-heading{padding:18px 22px;margin-bottom:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-heading p{color:var(--muted);font-size:13px;margin-top:3px}.section-heading>h2{font-size:18px}.text-link{color:var(--primary);font-weight:500;font-size:13px;white-space:nowrap}.text-link:hover{text-decoration:underline;text-underline-offset:4px}.muted{color:var(--muted)}.page-note{color:var(--muted);font-size:12px;margin-top:16px}
.matrix-toolbar{padding:18px 20px 15px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);background:var(--surface)}.quote-matrix>.section-heading{padding:18px 20px 0;margin-bottom:0}.segmented-control{display:inline-flex;background:var(--soft);border:1px solid var(--line);border-radius:7px;padding:3px;gap:3px}.segmented-control button{padding:6px 15px;min-height:34px;border-radius:5px;background:transparent;color:var(--muted);white-space:nowrap;font-size:13px}.segmented-control button[aria-pressed="true"],.segmented-control button.active,.segmented-control button.is-active{background:var(--surface);color:var(--primary);box-shadow:0 1px 4px #322b2513;font-weight:700}.filter-group{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}.filter-group label{white-space:nowrap}.filter-select,select{background:var(--surface);border:1px solid var(--control-line);border-radius:6px;min-height:40px;padding:6px 30px 6px 10px;color:var(--ink);font-size:13px;max-width:100%}.matrix-search{border:1px solid var(--control-line);border-radius:6px;min-height:40px;padding:6px 10px;width:145px;font-size:13px;max-width:100%}.matrix-toolbar .filter-group:last-child{margin-left:auto}.matrix-caption{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 20px;background:var(--subtle-surface);font-size:12px;color:var(--muted);border-bottom:1px solid var(--line)}.matrix-summary{font-size:12px;color:var(--muted)}.matrix-scroll{max-width:100%;overflow:auto;position:relative;scrollbar-color:#c7b69f var(--soft);scrollbar-width:thin}.rates-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}.rates-table th,.rates-table td{border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line);padding:11px 12px;text-align:right;vertical-align:middle}.rates-table th:last-child,.rates-table td:last-child{border-right:0}.rates-table tbody tr:last-child td,.rates-table tbody tr:last-child th{border-bottom:0}.rates-table thead th{background:var(--table-head);color:var(--ink);font-weight:600;text-align:center;position:sticky;top:0;z-index:3;min-width:112px;padding:12px}.rates-table th.bank-cell,.rates-table td.bank-cell{position:sticky;left:0;z-index:2;text-align:left;background:var(--surface);min-width:158px;max-width:180px;border-right:1px solid var(--control-line);box-shadow:3px 0 5px #322b2504}.rates-table thead .bank-cell{background:var(--table-corner);z-index:4}.rates-table thead th:first-child{position:sticky;left:0;z-index:4;border-right:1px solid var(--control-line)}.rates-table tbody tr:nth-child(even)>td,.rates-table tbody tr:nth-child(even)>th{background:var(--subtle-surface)}.rates-table tbody tr:hover>td,.rates-table tbody tr:hover>th{background:var(--hover)}.bank-name{font-weight:600;font-size:13px;display:block;white-space:normal;line-height:1.45}.bank-code{font-weight:400;font-size:10px;color:var(--muted);display:block;letter-spacing:.5px;margin-top:3px}.currency-head{min-width:112px}.currency-head>a{display:block}.currency-name{font-size:12px}.currency-head .currency-code{display:block;font-size:11px;color:var(--muted);font-weight:500;letter-spacing:.8px;margin-top:2px}.currency-head button{background:transparent;font-size:10px;color:var(--muted);padding:3px 5px;border-radius:3px;min-height:26px}.currency-head button:hover,.currency-head button[aria-pressed="true"]{background:var(--hover);color:var(--primary)}.quote-cell{min-width:112px}.quote-cell .quote-actions{display:flex;flex-direction:column;gap:3px}.quote-button{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;background:transparent;padding:3px 5px;border-radius:4px;line-height:1.4;min-height:24px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}.quote-button:hover:not(:disabled){background:var(--hover)}.quote-label{font-size:10px;color:var(--muted);font-weight:400}.quote-value{font-size:13px;font-weight:550;letter-spacing:.1px}.quote-button:nth-child(2) .quote-value{color:var(--primary)}.quote-button.is-best{background:var(--success-soft)}.quote-button.is-best .quote-value{color:var(--green);font-weight:700}.quote-button.is-best:after{content:"";width:4px;height:4px;background:var(--green);border-radius:50%;flex-shrink:0}.quote-button.is-warning .quote-value,.quote-cell.is-warning .quote-value{color:var(--amber)}.quote-button:disabled{opacity:1}.quote-button:disabled .quote-value{color:var(--muted)}.quote-status{display:block;font-size:10px;color:var(--amber);text-align:right;margin-top:3px}.quote-status button,.quote-actions>button.quote-detail-trigger{background:transparent;color:var(--muted);font-size:10px;padding:0 3px;min-height:22px}.quote-detail-trigger:hover{color:var(--primary)}.is-empty{color:var(--muted)}.empty-state{padding:40px 20px!important;text-align:center!important;color:var(--muted);white-space:normal}.matrix-scroll>.empty-state{padding:45px 20px}.selection-summary{font-size:12px;color:var(--muted);padding:12px 20px;border-top:1px solid var(--line)}
.quote-detail{margin:20px;background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:8px;padding:18px;scroll-margin-top:20px}.quote-detail .section-heading{margin-bottom:12px}.quote-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 20px;font-size:13px}.quote-detail-grid dt{font-size:11px;color:var(--muted)}.quote-detail-grid dd{margin:3px 0 0;overflow-wrap:anywhere}.quote-detail h3{margin-bottom:8px}.quote-detail>button{float:right;background:transparent;color:var(--muted);min-height:32px;min-width:32px}.quote-detail p{font-size:12px;color:var(--muted);margin-top:8px}.quote-detail a{color:var(--primary)}
.calculator{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;scroll-margin-top:24px}.quote-matrix .calculator{margin:20px;background:var(--accent-soft);border-color:var(--accent-line)}.calculator .section-heading{margin-bottom:18px}.calculator-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field-label,.field>label{font-size:12px;color:var(--secondary-ink);font-weight:500}.field select,.field input{width:100%;min-height:44px;border:1px solid var(--control-line);border-radius:6px;background:var(--surface);padding:8px 12px;color:var(--ink)}.field input{font-size:17px;font-variant-numeric:tabular-nums}.field .segmented-control{width:100%}.field .segmented-control button{flex:1;min-height:36px}.field-hint{font-size:11px;color:var(--muted);font-weight:400}.calculator-result{margin-top:22px;padding:20px;background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.calculator-result .result-amount{font-size:30px;line-height:1.4;font-weight:700;color:var(--primary);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.result-unit{font-size:15px;font-weight:500;margin-left:8px}.result-equation{font-size:12px;color:var(--muted)}.calculator-result p{font-size:12px;color:var(--muted)}.calculator>p{color:var(--muted);font-size:12px;margin-top:14px}.form-error{background:var(--warning-soft);color:var(--amber);border:1px solid var(--warning-line);padding:12px 15px;border-radius:6px;font-size:13px;margin-top:16px}.calculator-section{margin-top:24px}
.directory-section{margin-top:32px}.bank-directory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.bank-directory-link{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:13px 16px;min-height:58px;font-size:13px;font-weight:500;transition:background .15s,border-color .15s}.bank-directory-link:hover{border-color:#d8ac88;background:var(--subtle-surface)}.bank-initial{width:31px;height:31px;display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--primary);border-radius:8px;font-size:14px;font-weight:700;flex-shrink:0}.bank-directory-link small{display:block;font-size:10px;letter-spacing:.5px;color:var(--muted)}.link-arrow{margin-left:auto;font-size:22px;color:var(--muted)}.currency-directory{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;background:var(--surface);border:1px solid var(--line);border-radius:9px;overflow:hidden}.currency-directory>a{display:flex;gap:9px;align-items:center;padding:17px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px;min-width:0}.currency-directory>a:nth-child(6n){border-right:0}.currency-directory>a:nth-last-child(-n+6){border-bottom:0}.currency-directory>a:hover{background:var(--hover)}.currency-directory>a>span:last-child{margin-left:auto;font-size:12px;color:var(--muted)}.currency-code{color:var(--primary);font-size:12px;font-weight:700;letter-spacing:.4px}.currency-directory-full{grid-template-columns:repeat(4,minmax(0,1fr));border:0;border-radius:0}.currency-directory-full>a{padding:19px 20px;border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;gap:16px}.currency-directory-full>a:nth-child(4n){border-right:0!important}.currency-directory-full .currency-code{display:flex;align-items:center;justify-content:center;width:40px;height:34px;border-radius:6px;background:var(--accent-soft);flex-shrink:0}.currency-directory-full small{display:block;color:var(--muted);font-size:11px}.explanation-strip{margin-top:32px;border-top:1px solid var(--control-line);border-bottom:1px solid var(--control-line);padding:24px 0;display:grid;grid-template-columns:1fr 1fr;gap:40px}.explanation-strip h2{font-size:16px;margin-bottom:7px}.explanation-strip p{font-size:13px;color:var(--muted)}.explanation-strip .text-link{display:inline-block;margin-top:8px}
.breadcrumbs{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:0;margin-bottom:23px}.breadcrumbs>span{display:flex;align-items:center}.breadcrumb-separator{padding:0 10px;color:var(--muted)}.breadcrumbs span[aria-current="page"]{color:var(--secondary-ink)}.count-badge{font-size:13px;background:var(--accent-soft);color:var(--primary);border-radius:7px;padding:9px 14px}.currency-large-code{font-size:48px;font-weight:750;letter-spacing:-2px;color:#8f4a29}.detail-table th,.detail-table td{padding:15px 22px;text-align:right}.detail-table th:first-child{text-align:left;min-width:140px}.detail-table thead th{background:var(--table-head)}.detail-table .sell-price{color:var(--primary);font-weight:600}.table-time{font-size:12px;color:var(--muted)}.table-note{font-size:10px;color:var(--amber);display:block;font-weight:400;margin-top:3px}
.button-primary,.button-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 17px;border-radius:6px;font-size:13px;font-weight:500;white-space:nowrap}.button-primary{background:var(--primary);color:white}.button-primary:hover{background:var(--primary-dark);color:white}.button-secondary{background:var(--surface);border:1px solid var(--control-line);color:var(--secondary-ink)}.button-secondary:hover{background:var(--hover);color:var(--primary)}
.prose{max-width:900px;padding:30px 38px}.prose h2{font-size:18px;margin:30px 0 12px}.prose h2:first-child{margin-top:0}.prose p{color:var(--secondary-ink);margin:8px 0;font-size:14px;line-height:1.9}.prose .source-link{border-top:1px solid var(--line);margin-top:24px;padding-top:18px;font-size:13px}.source-link a{color:var(--primary)}.method-table{width:100%;border-collapse:collapse;margin:8px 0}.method-table th,.method-table td{padding:11px 16px;border:1px solid var(--line);text-align:left;font-size:13px}.method-table th{background:var(--soft);font-weight:600}
.site-footer{background:var(--surface);border-top:1px solid var(--line)}.footer-inner{max-width:1320px;padding:27px 32px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-brand{font-size:18px;font-weight:700;color:#5d4432}.footer-inner p{font-size:12px;color:var(--muted);margin-top:5px}.footer-links{display:flex;gap:25px;color:var(--muted);font-size:12px}.footer-bottom{border-top:1px solid var(--line-soft);max-width:1256px;margin:auto;padding:16px 0;display:flex;gap:20px;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}.not-found{text-align:center;padding:75px 20px}.not-found p{margin:16px 0 25px;color:var(--muted)}
@media(min-width:1100px){.quote-matrix>.matrix-scroll{max-height:900px}}
@media(max-width:1100px){.header-inner{gap:30px}.header-note{display:none}.intro-facts{gap:16px}.bank-directory{grid-template-columns:repeat(3,minmax(0,1fr))}.currency-directory{grid-template-columns:repeat(4,minmax(0,1fr))}.currency-directory>a{border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important}.currency-directory>a:nth-child(4n){border-right:0!important}.matrix-toolbar .filter-group:last-child{margin-left:0}.calculator-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:768px){.header-inner{padding:0 18px;gap:24px;min-height:72px}.brand{font-size:22px}.brand-icon{width:32px;height:32px}.brand small{font-size:9px}.header-inner nav{gap:18px;height:72px}.nav-link{height:72px;font-size:13px}.main-container{padding:25px 18px 38px}h1{font-size:26px}.intro-facts{display:none}.page-intro p{font-size:13px}.page-intro{margin-bottom:15px}.sync-status{font-size:11px;gap:5px}.sync-time{margin-left:4px}.matrix-toolbar{padding:14px;gap:10px}.filter-group{flex-wrap:wrap;gap:5px}.matrix-caption{padding:10px 14px}.rates-table th,.rates-table td{padding:9px 10px}.rates-table .bank-cell{min-width:138px!important;max-width:138px!important}.rates-table .currency-head,.rates-table .quote-cell{min-width:118px}.quote-value{font-size:14px}.quote-button{min-height:30px}.quote-label{font-size:11px}.quote-cell .quote-actions{gap:2px}.quote-detail{margin:14px;padding:14px}.quote-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calculator{padding:19px}.quote-matrix .calculator{margin:14px}.calculator-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.bank-directory{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-directory-link{padding:12px;font-size:12px}.currency-directory{grid-template-columns:repeat(3,minmax(0,1fr))}.currency-directory>a:nth-child(4n){border-right:1px solid var(--line)!important}.currency-directory>a:nth-child(3n){border-right:0!important}.currency-directory-full{grid-template-columns:repeat(2,minmax(0,1fr))}.currency-directory-full>a:nth-child(3n){border-right:1px solid var(--line)!important}.currency-directory-full>a:nth-child(2n){border-right:0!important}.currency-directory>a{padding:14px 10px;gap:6px;font-size:12px}.currency-directory-full>a{padding:15px!important}.explanation-strip{gap:20px;margin-top:25px}.directory-section{margin-top:25px}.section-heading h2{font-size:17px}.section-heading p{font-size:12px}.detail-table th,.detail-table td{padding:13px 16px}.footer-inner{padding:22px 18px}.footer-links{gap:16px}.footer-bottom{margin:0 18px;padding:14px 0;flex-wrap:wrap;gap:6px 14px}.prose{padding:23px}.currency-large-code{font-size:34px}.page-intro>.button-secondary{font-size:11px;padding:7px 10px}}
@media(max-width:540px){.header-inner{flex-wrap:wrap;gap:0;padding-top:12px;padding-bottom:0}.brand{margin-bottom:8px}.header-inner nav{margin-top:2px;height:44px;width:100%;justify-content:space-between;gap:14px}.nav-link{height:44px;font-size:14px}.main-container{padding:21px 14px 30px}.page-intro{align-items:flex-start}.page-intro p{font-size:12px;line-height:1.7}.eyebrow{font-size:10px;margin-bottom:5px}h1{font-size:25px}.sync-time{width:100%;margin-left:11px}.sync-status{margin-bottom:14px}.filter-select,select{min-height:40px;font-size:12px;padding-right:24px}.matrix-search{width:118px}.matrix-toolbar{gap:9px}.matrix-toolbar .segmented-control button{padding:6px 12px}.matrix-caption{gap:5px;font-size:11px}.rates-table .bank-cell{min-width:120px!important;max-width:120px!important}.bank-name{font-size:12px}.bank-code{font-size:9px}.rates-table .currency-head,.rates-table .quote-cell{min-width:122px}.rates-table th,.rates-table td{padding:10px 9px}.quote-button{min-height:32px}.quote-status{font-size:10px}.calculator-grid{gap:12px;grid-template-columns:1fr 1fr}.field input{font-size:16px}.calculator-result{padding:16px}.calculator-result .result-amount{font-size:25px}.result-equation{font-size:11px}.bank-directory{gap:8px}.bank-directory-link{gap:8px;padding:11px 9px;font-size:12px}.bank-initial{width:25px;height:25px;font-size:12px}.link-arrow{font-size:18px}.currency-directory{grid-template-columns:repeat(2,minmax(0,1fr))}.currency-directory>a:nth-child(3n){border-right:1px solid var(--line)!important}.currency-directory>a:nth-child(2n){border-right:0!important}.currency-directory-full{grid-template-columns:1fr}.currency-directory-full>a{border-right:0!important;padding:14px 16px!important}.explanation-strip{grid-template-columns:1fr;gap:18px;padding:20px 0}.footer-inner{align-items:flex-start;flex-direction:column;gap:14px}.footer-links{gap:20px}.footer-bottom{font-size:10px}.prose{padding:20px}.breadcrumbs{margin-bottom:18px}.quote-detail-grid{grid-template-columns:1fr 1fr;gap:12px}.count-badge{font-size:11px;padding:6px 9px}.currency-large-code{font-size:28px}.page-intro>.button-secondary{margin-top:4px}.panel>.section-heading{padding:14px}.selection-summary{padding:10px 14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

/* Controls and result layout */
.filter-group{border:0;padding:0;margin:0;display:block;min-width:0}
.filter-group legend{display:block;padding:0;margin:0 0 5px;font-size:11px;color:var(--muted);line-height:1.5}
.matrix-heading{padding:16px 20px!important;gap:20px}
.matrix-heading .eyebrow{display:none}
.matrix-heading h2{font-size:17px}
.matrix-heading p{display:none}
.matrix-sync{font-size:11px;color:var(--muted);display:flex;gap:10px;align-items:center;white-space:nowrap}
.sync-label{color:var(--muted)}
.matrix-selects{display:flex;gap:12px;margin-left:auto;align-self:flex-end;flex-wrap:wrap}
.matrix-selects .filter-select{display:flex;flex-direction:column;gap:5px;border:0;padding:0;color:var(--muted);font-size:11px;min-height:0}
.matrix-selects select{min-width:142px}
.matrix-summary{display:flex;justify-content:space-between;align-items:center;padding:10px 20px;background:var(--subtle-surface);border-bottom:1px solid var(--line);gap:16px}
.matrix-summary .matrix-caption{display:block;padding:0;background:transparent;border:0;line-height:1.8}
.unit-control{display:flex;gap:5px;align-items:center;font-size:11px;color:var(--muted);white-space:nowrap}
.unit-control select{min-height:29px;padding:3px 22px 3px 6px;font-size:12px}
.corner-cell{font-size:12px}
.corner-cell small{display:block;font-weight:400;font-size:10px;color:var(--muted);margin-top:5px}
.currency-head .currency-code{display:block;font-size:13px;color:var(--primary);font-weight:700;letter-spacing:.6px;margin-top:0}
.currency-head .currency-name{display:block;font-weight:400;font-size:11px;color:var(--muted);margin-top:2px}
.sort-controls{display:flex;justify-content:center;gap:2px;margin-top:5px}
.currency-head .sort-button{min-height:26px;font-size:10px;padding:3px 4px}
.quote-button{min-height:28px}
.best-badge,.best-legend{display:inline-block;font-size:9px;font-weight:500;background:var(--success-badge);color:var(--green);padding:1px 3px;border-radius:3px;line-height:1.4;white-space:nowrap}
.quote-button.is-best:after{display:none}
.best-legend{font-size:10px;padding:2px 5px;margin:0 4px}
.quote-more{display:block;margin-top:3px;margin-left:auto;background:transparent;color:var(--muted);font-size:10px;padding:2px 5px;min-height:24px}
.quote-more:hover{color:var(--primary);background:var(--hover)}
.quote-more.quote-status{color:var(--amber)}
.quote-empty-label{display:block;font-size:10px;color:var(--muted);text-align:right;padding:3px 5px}
.quote-cell.is-selected{box-shadow:inset 0 0 0 2px var(--primary)}
.matrix-footnote{padding:11px 20px;display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:11px;border-top:1px solid var(--line)}
.matrix-calculator{margin-top:28px;scroll-margin-top:22px}
.quote-detail{margin:22px 0 0}
.quote-detail .quote-actions{display:flex;align-items:center;gap:16px;margin-top:15px}
.quote-detail .quote-actions p{margin:0}
.quote-detail .section-heading>button{float:none}
.calculator-unit{font-size:11px;color:var(--muted);white-space:nowrap}
.calculator-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:32px;align-items:stretch}
.calculator-form{display:flex;flex-direction:column;gap:16px}
.calculator-field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.calculator-direction .field-hint{margin-top:6px}
.calculator-direction .segmented-control button{min-width:115px}
.calculator-result{margin:0;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:8px;padding:24px}
.result-label{font-size:12px;color:var(--muted)}
.calculator-quote{display:flex;flex-direction:column;gap:8px;width:100%;border-top:1px solid var(--accent-line);padding-top:13px;margin:4px 0}
.calculator-quote>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}
.calculator-quote dt{color:var(--muted);white-space:nowrap}
.calculator-quote dd{margin:0;color:var(--secondary-ink);text-align:right}
.calculator-quote dd strong{color:var(--primary);font-weight:600}
.result-footnote{font-size:11px!important;border-top:1px solid var(--accent-line);padding-top:10px;line-height:1.7;color:var(--muted)!important}
@media(max-width:1100px){.matrix-selects{margin-left:0}.matrix-toolbar{gap:12px 18px}.matrix-summary{flex-wrap:wrap;gap:6px}}
@media(max-width:768px){.matrix-heading{padding:14px!important}.matrix-sync{font-size:10px;gap:5px;flex-direction:column;align-items:flex-end}.matrix-summary{padding:9px 14px}.matrix-selects{gap:10px}.matrix-selects select{min-width:140px}.calculator-grid{grid-template-columns:1fr;gap:20px}.calculator-unit{display:none}.matrix-footnote{padding:10px 14px;flex-direction:column;gap:3px}.quote-detail .quote-actions{flex-wrap:wrap}.calculator-result{padding:20px}.quote-button{min-height:44px}.quote-more{min-height:36px}.currency-head .sort-button{min-height:36px}.matrix-toolbar .segmented-control button{min-height:38px}}
@media(max-width:540px){.matrix-heading h2{font-size:15px}.matrix-sync .sync-label{display:none}.matrix-sync{font-size:9px}.matrix-toolbar{gap:12px}.matrix-selects{width:100%}.matrix-selects .filter-select{flex:1;min-width:0}.matrix-selects select{width:100%;min-width:0}.matrix-toolbar .filter-group:nth-child(3){width:100%}.matrix-toolbar .filter-group:nth-child(3) .segmented-control{width:100%}.matrix-toolbar .filter-group:nth-child(3) button{flex:1}.calculator-field-row{gap:10px}.calculator-direction .segmented-control{width:100%}.calculator-direction .segmented-control button{flex:1;min-width:0;min-height:40px}.calculator-form>.filter-group>.segmented-control{width:100%}.calculator-form>.filter-group>.segmented-control button{flex:1;font-size:12px;padding:6px 8px;min-height:40px}.matrix-summary .matrix-caption{font-size:11px}.matrix-calculator{margin-top:22px}.calculator-result .result-amount{font-size:29px}}

@media(max-width:540px){
 .page-intro .eyebrow{display:none}.page-intro p{display:none}.page-intro{margin-bottom:12px}
 .sync-status{font-size:10px;line-height:1.7;margin-bottom:12px}.sync-time{width:auto;margin-left:4px}
 .matrix-heading{padding:12px 14px!important}.matrix-sync{display:none}
 .matrix-toolbar{display:grid;grid-template-columns:1fr 1.6fr;gap:9px;padding:12px 14px}
 .matrix-toolbar .filter-group{min-width:0}.matrix-toolbar .filter-group legend{margin-bottom:4px;font-size:10px}
 .matrix-toolbar .segmented-control{width:100%}.matrix-toolbar .segmented-control button{flex:1;padding:4px 6px;min-height:34px;font-size:12px}
 .matrix-toolbar .filter-group:nth-child(3){grid-column:1/-1;width:auto}
 .matrix-toolbar .filter-group:nth-child(3) legend{display:none}
 .matrix-selects{grid-column:1/-1;width:auto;display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .matrix-selects .filter-select{font-size:10px;gap:3px}.matrix-selects select{min-height:36px}
 .matrix-summary{padding:8px 14px}.matrix-summary .matrix-caption{display:none}
 .unit-control select{min-height:28px}
 .footer-links{flex-wrap:wrap}
}


/* Locally cached directory images, with stable sizes and a text fallback. */
.directory-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;border:1px solid var(--line-soft);background:var(--surface);border-radius:7px}
.directory-icon--bank{width:36px;height:36px;padding:3px}
.directory-icon--bank img{display:block;width:100%;height:100%;object-fit:contain}
.directory-icon--currency{width:36px;height:26px;border-radius:4px}
.directory-icon--currency img{display:block;width:100%;height:100%;object-fit:contain}
.directory-icon-fallback{color:var(--primary);font-size:13px;font-weight:650;line-height:1}
.directory-icon--currency .directory-icon-fallback{font-size:10px}
.directory-currency-label{min-width:0;flex:1}
.currency-directory-full .directory-currency-label>.currency-code{display:inline;font-size:12px;margin-right:8px;background:none;width:auto;height:auto;border-radius:0}
.directory-currency-label small{overflow-wrap:anywhere}
.currency-directory-full>a{gap:13px}
.currency-directory:not(.currency-directory-full)>a{gap:9px}
.home-currency-label{display:flex;flex-direction:column;gap:2px;line-height:1.5;min-width:0}
.home-currency-label>.currency-code{font-size:11px}
@media(max-width:768px){.directory-icon--bank{width:31px;height:31px}.directory-icon--currency{width:32px;height:24px}}
@media(max-width:540px){.directory-icon--bank{width:29px;height:29px}.bank-directory-link{gap:8px}.currency-directory-full>a{gap:12px!important}.currency-directory-full .directory-icon--currency{width:36px;height:26px}.currency-head>a{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px}.currency-head .currency-name{margin-top:0}.rates-table thead .currency-head{padding-top:9px;padding-bottom:9px}}

/* Keep quotation decimals aligned even when only some rows have a best-price badge. */
.rates-table .quote-cell{min-width:126px}
.quote-cell .quote-button{display:grid;grid-template-columns:12px minmax(0,1fr) 22px;column-gap:4px;padding-left:0;padding-right:0}
.quote-cell .quote-value{text-align:right}
.quote-cell .best-badge{grid-column:3;min-width:22px;text-align:center}

/* Make the quote mode visible even when the two source quotations are equal. */
.matrix-current-mode{display:inline-block;color:var(--primary);background:var(--accent-soft);border:1px solid var(--accent-line);border-radius:4px;padding:2px 6px;font-size:11px;line-height:1.6;white-space:nowrap}
.directory-icon--symbol{background:var(--accent-soft);border-color:var(--accent-line)}
.directory-icon--symbol .directory-icon-fallback{font-size:12px;letter-spacing:-.3px}
/* Currency detail pages use a focused bank comparison instead of the home matrix. */
.currency-comparison .matrix-toolbar{gap:18px 24px}
.currency-comparison .matrix-selects{margin-left:auto}
.currency-comparison .unit-control{flex-wrap:wrap}
.currency-comparison .matrix-heading{align-items:center}
.currency-comparison .matrix-footnote{font-size:11px}
@media(max-width:768px){
 .currency-comparison .matrix-toolbar{gap:12px 18px}
 .currency-comparison .matrix-selects{margin-left:0}
}
@media(max-width:540px){
 .currency-comparison .matrix-toolbar{grid-template-columns:1fr 1.5fr;gap:12px}
 .currency-comparison .matrix-selects{display:block;grid-column:1/-1;width:100%}
 .currency-comparison .matrix-toolbar .segmented-control button{min-height:40px}
 .currency-comparison .matrix-selects select{min-height:40px}
 .currency-comparison .matrix-heading h2{font-size:16px}
 .currency-comparison .matrix-footnote{gap:5px}
}
.currency-comparison{overflow:visible}
@media(max-width:540px){.currency-comparison .matrix-heading{padding:12px 14px 4px!important}}
.footer-legal{display:flex;align-items:center;flex-wrap:wrap;gap:18px;font-size:12px}
.footer-legal a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
.legal-prose .policy-date{font-size:12px;color:var(--muted);margin-top:0;margin-bottom:20px}
.legal-prose a{color:var(--primary);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.legal-prose h2{scroll-margin-top:20px}