/* Shared accessibility and Spot data adapters. Visual styles live in reference-*.css. */
.spot-ui { color-scheme:dark; }
.spot-ui *, .spot-ui *::before, .spot-ui *::after { letter-spacing:0!important; }
.spot-ui [hidden] { display:none!important; }
.spot-ui :focus-visible { outline:2px solid var(--green); outline-offset:3px; }
.spot-ui button, .spot-ui a, .spot-ui input, .spot-ui select { -webkit-tap-highlight-color:transparent; }
.spot-icon { width:22px; height:22px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.spot-ui .btn,.spot-ui .btn-sm { font-family:inherit; }
.spot-landing .nav-title { font-family:'Syne',sans-serif; }
.spot-landing .slide-placeholder h1 { font-size:52px; }
.spot-landing .slide-placeholder .spot-placeholder-logo { width:76px; height:76px; object-fit:contain; border-radius:12px; background:transparent; }
.spot-landing .slide-title { position:absolute; left:72px; right:72px; bottom:44px; width:fit-content; max-width:calc(100% - 144px); padding:8px 12px; background:rgba(7,12,16,.88); color:#fff; font-size:15px; font-weight:700; overflow-wrap:anywhere; }
.spot-landing .slider-arrow { display:grid; place-items:center; }
.spot-landing .slider-dots:empty { display:none; }
.spot-landing .dot { border:0; padding:0; flex-shrink:0; }
.spot-landing .stat-value,.spot-landing .stat-sub { overflow-wrap:anywhere; }
.spot-landing .last50-stat-grid .stat-value { font-size:24px; }
.spot-landing .stat-card.yellow::before { background:var(--yellow); }
.spot-landing .stat-value.yellow { color:var(--yellow); }
.spot-landing .stat-card::after { display:none; }
.spot-landing .chart-card.winloss-card { background:linear-gradient(135deg,rgba(77,143,255,.10),rgba(22,27,34,.96)); }
.spot-landing .donut-wrap { flex-wrap:wrap; }
.spot-landing #donutCanvas { flex-shrink:0; }
.spot-account .gas-fee-stat .stat-val { margin:14px 0 8px; }
.spot-account .gas-fee-stat .stat-val.red { color:var(--red); }
.spot-account .gas-fee-stat .stat-val.green { color:var(--green); }
/* Spot registration still requires identity fields. Keep its entire form reachable. */
.spot-account #authWrap { height:auto; max-height:none; min-height:100dvh; overflow:clip; padding-block:28px; }
.spot-account .auth-card { max-height:none; }
.spot-account .auth-logo-link { margin:0; }
.spot-account .auth-logo-title { -webkit-text-fill-color:transparent; }
.spot-account .auth-logo-title { max-width:100%; overflow-wrap:anywhere; }
.spot-account #authWrap .err { overflow-wrap:anywhere; }
.spot-account #authWrap .pw-wrap input { padding-right:48px; }
.spot-account #authWrap .pw-eye { display:grid; place-items:center; width:42px; height:44px; right:1px; top:0; padding:0; transform:none; }
.spot-account #authWrap .remember-row input { width:18px; height:18px; padding:0; margin:0; accent-color:#00e5a0; }
.spot-account #authWrap .remember-row label { margin:0; font-size:12px; line-height:20px; font-family:inherit; }
.spot-account #authWrap .email-code-row { display:grid; grid-template-columns:minmax(0,1fr) 96px; gap:8px; align-items:stretch; }
.spot-account #authWrap .email-code-row input,.spot-account #authWrap .phone-code-row input { min-width:0; margin-bottom:0; }
.spot-account #authWrap .code-btn { width:auto; min-height:44px; height:auto; }
.spot-account #authWrap .phone-code-row { display:grid; grid-template-columns:150px minmax(0,1fr); gap:8px; align-items:stretch; margin-bottom:4px; }
.spot-account #authWrap #rWaCode { width:100%!important; min-height:44px; background:#172130!important; border-color:#2d3d52!important; color:#e6edf3!important; border-radius:13px!important; }
.spot-account .country-picker-panel { max-width:calc(100vw - 64px); }
.spot-account #authWrap .country-picker-search { padding-left:12px!important; }
.spot-account .country-picker-trigger { padding-inline:8px; gap:6px; }
.spot-account .country-picker-list { max-height:240px; }
.spot-account .auth-terms-note { font-size:11px; color:#aab8c8; margin-bottom:14px; line-height:1.5; padding:10px 12px; background:rgba(77,143,255,.05); border:1px solid rgba(77,143,255,.15); border-radius:7px; }
.spot-account .auth-terms-note a { color:#8db8ff; text-underline-offset:2px; }
.spot-account #registerForm .field-hint { min-height:12px; margin-top:4px!important; margin-bottom:7px; }
.spot-account #registerForm .otp-field { margin-bottom:16px; }
.spot-account #registerForm .otp-ok { line-height:1.5; overflow-wrap:anywhere; }
.spot-register-identity { min-width:0; border:0; border-top:1px solid var(--border); padding:14px 0 0; margin:10px 0 8px; }
.spot-register-identity legend { padding:0 10px 0 0; font-size:11px; font-weight:700; color:#aab8c8; }
.spot-account #authWrap .spot-register-identity input { margin-bottom:0; }
.spot-account .pos-cards { grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr)); }
.spot-account .pos-row { gap:12px; }
.spot-account .pos-val { overflow-wrap:anywhere; text-align:right; }
.spot-account .ov-stat-card,.spot-account .ov-card,.spot-account .ov-strip-stat { min-width:0; }
.spot-account .ov-stat-value,.spot-account .ov-strip-val { overflow-wrap:anywhere; }
.spot-account .ov-section-meta { text-align:right; }
.spot-account .spot-shortcut { flex-shrink:0; }
.spot-account .spot-shortcut span,.spot-account .spot-shortcut small { overflow-wrap:anywhere; }
.spot-account .spot-shortcut i .spot-icon { width:23px; height:23px; stroke-width:2.35; }
.spot-account .spot-shortcut:disabled { opacity:.5; cursor:not-allowed; }
.spot-account .settings-action-band-title,.spot-account .gas-action-section-title { font-size:13px; }
/* One accessible dialog reuses the reference modal chrome around the existing forms. */
.spot-modal { z-index:2000; }
.spot-dialog { display:flex; flex-direction:column; max-height:calc(100dvh - 40px); min-width:0; overflow:hidden; }
.spot-dialog-head { flex-shrink:0; }
.spot-dialog-close { display:grid; place-items:center; flex-shrink:0; }
.spot-dialog-body { min-height:0; overflow:auto; overscroll-behavior:contain; }
.spot-panel-content { min-width:0; }
.spot-panel-content .settings-card { margin:0!important; border:0; background:transparent; box-shadow:none; padding:18px; }
.spot-panel-content>.settings-card>.settings-title { display:none; }
.spot-panel-content .settings-row { gap:18px; }
.spot-panel-content .settings-row>div { min-width:0; }
.spot-panel-content .settings-sub { line-height:1.55; }
.spot-panel-content input:not([type=checkbox]),.spot-panel-content select { min-height:44px; font-family:inherit; }
.spot-panel-content #gfPaymentInfo,.spot-panel-content #tgTransferCard { margin:0!important; border:0!important; background:transparent!important; }
.spot-panel-content #gfPaymentInfo>div,.spot-panel-content #tgTransferCard>div { max-width:100%; }
.spot-panel-content #settingsEmail { overflow-wrap:anywhere; }
.spot-panel-content .settings-modal-panel { padding:0; }
.spot-panel-content .settings-trade-form { align-items:start; }
.spot-panel-content .settings-trade-form>.gas-action-btn { margin-top:25px; }
.spot-panel-content .gas-action-btn { font-family:inherit; }
.spot-panel-content .settings-password-form .pw-wrap { margin:0; }
.spot-panel-content .settings-password-form .pw-eye { display:grid; place-items:center; width:42px; height:44px; right:1px; top:0; transform:none; padding:0; background:transparent; border:0; cursor:pointer; }
.spot-panel-content .settings-password-form .pw-eye .spot-icon { width:18px; height:18px; }
.spot-panel-content .settings-password-form input { padding-right:46px; }
.spot-panel-content .settings-profile-item,.spot-panel-content .settings-identity-card { border-radius:8px; }
.spot-api-status { display:flex; align-items:center; gap:12px; padding:14px; border:1px solid; border-radius:8px; margin-bottom:14px; }
.spot-api-status>div { min-width:0; }
.spot-api-status strong { display:block; font-size:13px; }
.spot-api-status span { display:block; margin-top:3px; font-size:11px; color:var(--text-dim); }
.spot-api-status.connected { color:var(--green); border-color:rgba(0,229,160,.28); }
.spot-api-status.disconnected { color:var(--yellow); border-color:rgba(255,194,77,.24); }
.spot-action-danger { color:var(--red); background:rgba(255,77,106,.09); border:1px solid rgba(255,77,106,.35); }
.spot-action-danger:hover { background:rgba(255,77,106,.16); }
.spot-history-panel { overflow-x:auto; }
.spot-history-panel table { min-width:650px; }
.spot-panel-content #tgHistoryTbody { font-size:12px; }
.spot-panel-content #tgTransferCard>div:last-child { overflow-x:auto; }
.spot-load-status { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#d9e5f5; margin-bottom:14px; padding:12px 14px; border:1px solid rgba(77,143,255,.28); border-radius:10px; background:rgba(77,143,255,.08); font-size:12px; }
.spot-load-status-copy { display:grid; gap:2px; }
.spot-load-status-message { font-weight:600; }
.spot-load-status-updated { color:var(--text-dim); }
.spot-load-status[data-state="success"] { color:#b7f5df; border-color:rgba(0,229,160,.25); background:rgba(0,229,160,.07); }
.spot-load-status[data-state="delayed"],.spot-load-status[data-state="error"] { color:#f2c174; border-color:rgba(242,193,116,.35); background:rgba(242,193,116,.08); }
.spot-load-status button { display:grid; place-items:center; width:32px; height:32px; border:1px solid #6e5a33; border-radius:6px; color:inherit; background:#242219; cursor:pointer; }
.spot-load-status button[hidden] { display:none; }
.spot-desktop-logout { display:flex; align-items:center; gap:6px; padding:6px 14px; border:1px solid var(--border); background:transparent; color:var(--text-dim); border-radius:7px; cursor:pointer; font-family:inherit; font-size:12px; font-weight:600; }
.spot-desktop-logout .spot-icon { width:13px; height:13px; }
@media(min-width:769px) {
  .spot-account .profile-trigger { border:0; padding:0; background:transparent; }
  .spot-account .profile-avatar,.spot-account .profile-caret { display:none; }
}
@media(max-width:768px) {
  .spot-landing .slide-placeholder h1 { font-size:28px; }
  .spot-landing .slide-placeholder .spot-placeholder-logo { width:56px; height:56px; }
  .spot-landing .slide-title { left:16px; right:16px; max-width:calc(100% - 32px); font-size:12px; }
  .spot-landing .last50-stat-grid .stat-value { font-size:22px; }
  .spot-account .spot-shortcut i .spot-icon { width:20px; height:20px; }
  .spot-account .profile-trigger { width:34px; height:34px; padding:0; justify-content:center; }
  .spot-account .profile-name,.spot-account .profile-caret { display:none; }
  .spot-account .profile-avatar { border:0; background:transparent; }
  .spot-desktop-logout { display:none; }
  .spot-dialog { max-height:calc(100dvh - 24px); }
  .spot-panel-content #tgTransferCard>div:first-child { flex-wrap:wrap; }
  .spot-panel-content .settings-trade-form>.gas-action-btn { margin-top:0; }
}
@media(max-width:480px) {
  .spot-account #authWrap { padding:20px 12px; }
  .spot-account .auth-card { padding:24px 20px; }
  .spot-account #authWrap .email-code-row { grid-template-columns:minmax(0,1fr) 84px; gap:7px; }
  .spot-account #authWrap .code-btn { font-size:11px; }
  .spot-account #authWrap .phone-code-row { grid-template-columns:132px minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) {
  .spot-ui *, .spot-ui *::before, .spot-ui *::after { transition:none!important; animation:none!important; scroll-behavior:auto!important; }
}
