/* Revision14: measured reference layout families. All financial text remains server-owned. */
:root{--bg:#07111f;--panel:#0d1b2a;--panel2:#112438;--line:#23374b;--muted:#9fb0c3;--text:#e8f0f8;--accent:#2dd4bf;--radius:14px}
body{font-feature-settings:"cv02","cv03","cv04","cv11";font-variant-numeric:tabular-nums}
.card,.ad-panel,.ad-card,.summary-metric{border-radius:12px;box-shadow:inset 0 1px 0 #8abacf05;background:linear-gradient(145deg,#0b2030,#0b1928)}
.card-head h2,.ad-panel-head h2{font-size:17px;font-weight:650;letter-spacing:-.025em}
.btn,.text-button,.icon-button{min-height:44px;line-height:1.35}
.btn{border-radius:7px;font-size:13px;font-weight:600;padding:10px 15px}
.btn.primary{background:#19d3c5;border-color:#27e0d0;color:#032b32}
.btn.primary:hover:not(:disabled){background:#37e2d3}
input:not([type=checkbox]):not([type=radio]),select,textarea{border-radius:7px;min-width:0}
.badge{font-weight:500;max-width:100%;line-height:1.35;white-space:normal}
/* A–E: consistent header, four summary columns, large guide, right execution card. */
@media(min-width:1280px){
 .sidebar{width:232px;padding:26px 17px 18px}.main{margin-left:232px;padding-right:24px;padding-left:24px}
 .sidebar .brand{padding:0 8px 25px}.sidebar .nav-caption{margin-top:3px;margin-bottom:12px}.sidebar nav{gap:5px}
 .nav-item{min-height:45px;padding:10px 12px;font-size:13px;gap:12px}.topbar{height:75px}
 .summary-metric{min-height:96px;padding:15px;gap:12px}.metric-copy strong{font-size:28px}.metric-copy>span{font-size:12px}
 .dashboard-main-grid{grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:16px}
 .dashboard-lower-grid{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:16px}
 .auto-main-grid{grid-template-columns:minmax(0,1.18fr) minmax(335px,1fr)}
 .auto-summary .latest-route{padding:13px;margin-top:8px}.auto-summary .execution-phases{padding:10px 0}
 .performance-card,.recent-conversions{padding:18px}.performance-card .large-chart{min-height:210px}
}
.geography-card .card-head{align-items:center;gap:12px;padding:14px 16px 9px}.geography-card .card-head>.meta{font-size:10px;max-width:160px;text-align:right}
.geography-card .exchange-globe .eg-label{background:#081b29b3;border-color:#91b5be18;border-radius:4px;text-shadow:0 1px 3px #000}
.geography-card .exchange-globe .eg-label.selected{background:#0a3b43e6;border-color:#42e2cb;color:#dcfff8}
.geography-card .exchange-globe .eg-bottom{inset:0;display:block;pointer-events:none}.geography-card .exchange-globe .eg-info{position:absolute;top:12px;right:12px;max-width:46%;background:#092434e8;border-color:#375564}
.geography-card .exchange-globe .eg-mode{position:absolute;bottom:9px;right:9px;font-size:9px}.geography-card .exchange-globe .eg-tools button{min-width:38px;min-height:36px}
.geography-card .exchange-globe .eg-top{padding:8px 10px}.geography-card .exchange-globe .eg-search input{min-height:36px}.geography-card .exchange-globe .eg-results button{min-height:44px;text-align:left}
/* B/T01/T02: price hierarchy and status legend remain distinct from order availability. */
.market-explorer .market-currency-row{padding:14px 3px}.market-currency-row.selected{padding-left:10px}
.market-currency-row .market-row-price b{font-variant-numeric:tabular-nums}.market-price-facts>div,.market-observed-stats>div{border-color:#28465b;background:#0c2334;border-radius:8px}
.coverage-strip{gap:12px;flex-wrap:wrap;line-height:1.5}.market-chart-card .quote-head{padding-bottom:12px;border-bottom:1px solid var(--line)}
/* F01–F06/U01: proportioned login, linked verification stages and complete Account cards. */
.ad-auth-layout{gap:32px;grid-template-columns:minmax(0,1.1fr) minmax(360px,.9fr)}.ad-auth-card{padding:30px}
.ad-auth-story h1{line-height:1.15;max-width:520px}.ad-auth-card>.meta{margin-bottom:24px}.ad-form{gap:17px}
.account-progress{border-color:#284256;background:#0c2030}.account-progress li.done>span,.account-progress li.current>span{box-shadow:0 0 0 4px #2dd4bf10}
.ad-upload-card,.ad-camera-card,.ad-face-frame{border-radius:12px}.ad-document-grid{gap:20px}.ad-provider-check .ad-notice{line-height:1.6}
.ad-account-overview{gap:18px}.ad-account-overview>.card{padding:22px;min-width:0}.ad-account-overview .ad-setting-row{padding-top:17px;padding-bottom:17px}
.ad-account-overview .ad-empty-address{border:1px dashed #36566a;border-radius:10px;padding:22px 16px}.ad-tabs{border-bottom-color:#2a4258}.ad-document-body h2,.ad-document-body h3{padding-top:8px}
/* W01–W06/T03: clear amount blocks, reference detail and vertically connected progress. */
.design-metrics{gap:14px}.design-metric{min-height:110px;padding-top:19px;padding-bottom:19px}.design-metric .design-value>strong{font-size:28px;line-height:1.25}.design-metric .design-value>span{font-size:12px}
.design-two-column{gap:18px}.wallet-actions .btn{min-height:48px}.wallet-allocation .allocation-ring{filter:drop-shadow(0 8px 18px #00cbbb12)}
.design-inset,.deposit-request-layout>section,.withdraw-summary{border-color:#29465b;border-radius:11px}.deposit-request-layout .qr{border-radius:9px;border:10px solid #e8f1f7;background:#e8f1f7;max-width:100%;object-fit:contain}
.design-timeline li{padding-bottom:20px}.design-timeline .timeline-dot{width:30px;height:30px}.design-timeline p{line-height:1.6}
.statement-day,.activity-record{border-radius:8px;padding:14px}.statement-layout,.activity-layout{gap:18px}.statement-breakdown{line-height:1.7}
.mc-receipt-outcome .mc-facts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
/* T05/T06/R05: ticket/message/context proportions; readable composer and unread state. */
.ad-support-grid{gap:16px}.ad-conversation,.ad-ticket-context{border-radius:12px}.ad-ticket{padding:15px;border-radius:8px}.ad-notification{padding-top:17px;padding-bottom:17px}
.ad-message,.message{line-height:1.65}.ad-conversation .chat-input textarea,.ad-support-form textarea{background:#081b2a;border-color:#365164}
.ad-ticket.selected,.ad-notification-row.selected{border-color:#2dd4bf;background:#0d313c}
/* E/R01–R06/S01–S07: work queue, evidence and independent actions share a 30/70 grid. */
@media(min-width:1280px){
 .ad-workbench{grid-template-columns:minmax(255px,.78fr) minmax(0,2fr);gap:18px}.ad-detail{gap:16px}.ad-panel{padding:18px}
 .ad-grid-2,.ad-grid-7-5{gap:18px}.ad-record{padding:14px}.ad-provider-cards{gap:12px}.ad-provider-card{padding:17px}
 .ad-health-metrics{gap:14px}.ad-staff-chat-grid{grid-template-columns:minmax(0,1.55fr) minmax(235px,1fr);gap:16px}
}
.ad-header h1{font-size:27px}.ad-member-header{padding:18px}.ad-member-header h2{font-size:22px}.ad-balance-grid>div{padding:14px}.ad-balance-grid b{font-size:23px}
.ad-facts{gap:12px 18px;line-height:1.6}.ad-facts dd{margin:0;overflow-wrap:anywhere}.ad-table th{font-size:11px;font-weight:600;color:#adc4d6}.ad-table td{line-height:1.6}
.ad-progress{padding:18px 12px;border-radius:10px;background:#0c2434}.ad-result{border-radius:9px}.ad-save-bar,.ad-settlement-strip{border-radius:10px}
.ad-provider-card.selected,.ad-record.selected{box-shadow:inset 0 0 0 1px #2dd4bf;border-color:#2dd4bf}
/* U02/U03: one inline error and readable print/PDF links without fabricated outcomes. */
.inline-error{border:1px solid #ad5364;border-radius:8px;background:#3a202c;color:#ffbdc5;line-height:1.6;padding:12px 14px;overflow-wrap:anywhere}
.design-failure{padding:30px;gap:22px}.manual-statement-record .mc-facts{line-height:1.65}.record-reference code{overflow-wrap:anywhere}
@media(min-width:768px) and (max-width:1279px){
 .sidebar{width:76px;padding:24px 10px}.sidebar .brand div,.sidebar .nav-item span,.sidebar-foot,.sidebar .nav-caption{display:none}.sidebar .brand{padding:0 10px 24px}.nav-item{padding:12px;justify-content:center;min-height:46px}.main{margin-left:76px;padding:0 20px 32px}
 .topbar .top-search{min-width:100px;max-width:300px}.topbar .top-search kbd,.topbar .account-name{display:none}.topbar{gap:12px}
 .dashboard-main-grid,.auto-main-grid{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr)}.summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ad-workbench{grid-template-columns:minmax(220px,.8fr) minmax(0,1.7fr)}.ad-staff-chat-grid{grid-template-columns:1fr}.ad-staff-context{max-height:none}
 .ad-auth-layout{gap:24px;grid-template-columns:minmax(0,1fr) minmax(330px,1fr)}.ad-auth-hero{min-height:530px}.ad-auth-story h1{font-size:36px}
}
@media(min-width:768px) and (max-width:1023px){.dashboard-main-grid,.auto-main-grid{grid-template-columns:1fr}.dashboard-main-grid .auto-summary{display:flex}.dashboard-lower-grid,.auto-lower-grid{grid-template-columns:1fr}.ad-workbench{grid-template-columns:1fr}.ad-account-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(width < 768px){
 .main{margin-left:0;padding:0 14px calc(96px + env(safe-area-inset-bottom))}.sidebar{display:none}.topbar{height:64px}.topbar .account-menu,.topbar .notification-button{min-height:44px;min-width:40px}
 .mobile-nav{padding-top:6px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.mobile-nav button{min-height:48px;line-height:1.35;font-size:10px}
 .page-header h1{font-size:25px}.page-header{gap:12px}.page-header>.actions{flex-wrap:wrap}.card-head{flex-wrap:wrap}.card-head h2{font-size:16px}
 .btn,.text-button,.icon-button,.tab,.period-switch button,.view-switch button{min-height:44px}.form-actions{gap:10px}.form-actions .btn{white-space:normal}
 .summary-metric{min-height:87px;padding:12px}.metric-copy strong{font-size:22px}.dashboard-metrics .summary-metric[data-key=metric-today] strong{font-size:36px}.summary-metric .metric-copy>span{font-size:11px;line-height:1.4}
 .dashboard-page .workspace-globe{height:360px}.geography-card .card-head{padding:12px}.geography-card .exchange-globe .eg-top{flex-wrap:wrap;gap:7px}.geography-card .exchange-globe .eg-search{flex-basis:100%;max-width:none}.geography-card .exchange-globe .eg-search input{min-height:42px;font-size:14px}
 .geography-card .exchange-globe .eg-tools{width:100%;justify-content:flex-end;gap:6px}.geography-card .exchange-globe .eg-tools button{min-width:44px;min-height:44px;font-size:12px}.geography-card .exchange-globe .eg-info{top:10px;right:9px;padding:7px 9px;font-size:10px;max-width:52%}.geography-card .exchange-globe .eg-info button{min-height:32px}.geography-card .exchange-globe .eg-info strong{font-size:12px}.geography-card .exchange-globe .eg-mode{font-size:8px;bottom:6px}
 .market-currency-row .currency-select{min-height:44px}.market-currency-row>.icon-button{min-width:36px}.market-search-bar .market-quick-filters .tab{min-height:44px}.coverage-strip{font-size:11px}
 .ad-auth{padding:0 16px}.ad-auth-layout,.ad-auth-layout.register{display:block;margin-top:20px}.ad-auth-card,.ad-auth-layout.register .ad-auth-card{padding:24px 18px}.ad-auth-header{min-height:64px}
 .ad-account-overview{display:grid;grid-template-columns:1fr;gap:16px}.ad-account-overview>.card{padding:20px}.ad-account .ad-tabs{gap:4px;flex-wrap:wrap}.ad-account .ad-tabs>button{font-size:11px;min-height:44px;padding:9px 8px}.ad-account-overview .ad-setting-row{padding:15px 0}
 .design-metrics{gap:10px}.design-metric{padding:15px 10px 15px 43px;min-height:90px}.design-metric .design-value>strong{font-size:21px}.design-metric .design-value>span{font-size:11px}.design-metric small{font-size:11px}
 .deposit-request-layout .qr{width:190px;height:190px;object-fit:contain}.statement-day,.activity-record{padding:13px}.mc-receipt-outcome .mc-facts{grid-template-columns:1fr}
 .ad-header h1{font-size:23px}.ad-panel{padding:16px}.ad-member-header{padding:15px}.ad-member-header h2{font-size:20px}.ad-balance-grid b{font-size:21px}.ad-metric{padding:12px;min-height:72px}.ad-metric strong{font-size:24px}.ad-metric small{font-size:11px}
 .ad-record{padding:14px}.ad-detail .ad-facts{font-size:13px;gap:10px}.ad-panel-head h2{font-size:16px}.ad-table td{font-size:13px}.ad-table td:before{font-size:11px}.ad-back-to-queue{min-height:44px}
 .ad-support .ad-conversation,.ad-workbench[data-mobile-detail=true] .ad-chat{min-height:440px}.ad-support-form textarea,.ad-conversation textarea{font-size:16px;min-height:64px}.ad-compose-actions .btn,.ad-conversation .chat-input .btn{min-width:62px;min-height:44px}
 .ad-notification-filters{gap:10px}.ad-notification-filters select{min-height:44px}.ad-notifications>.ad-tabs>button{min-height:44px;font-size:11px}.ad-legal-reader .ad-tabs>button{min-height:44px}
 #modal{max-height:calc(100dvh - 28px);margin:auto 10px 10px;width:calc(100% - 20px);max-width:none;border-radius:16px 16px 12px 12px}#modal-content{padding-bottom:max(20px,env(safe-area-inset-bottom))}.design-failure{padding:24px 18px}
}
@media(max-width:374px){.main{padding-left:12px;padding-right:12px}.summary-metric{gap:8px}.metric-copy strong{font-size:20px}.metric-icon{width:28px;height:28px}.ad-account .ad-tabs>button{font-size:10px;padding:8px 6px}.design-metric .design-value>strong{font-size:20px}.market-currency-row{grid-template-columns:minmax(0,1fr) 34px minmax(63px,.6fr) 30px}.market-row-trend svg{width:34px}.geography-card .exchange-globe .eg-info{max-width:58%}}
@media(prefers-reduced-motion:reduce){.geography-card .exchange-globe,.ad-auth-globe{scroll-behavior:auto}.btn,.tab{transition:none}}
