/* Trading Terminal component styles. Every colour, space and radius is a token from tokens.css. */
:root {
  --tt-ease: cubic-bezier(.2, 0, 0, 1);
  --tt-ctl-h: var(--control-md);
  --tt-row-h: var(--row-default);
  --tt-pad: var(--space-3);
}
[data-density="compact"] { --tt-ctl-h: var(--control-sm); --tt-row-h: var(--row-compact); --tt-pad: var(--space-2); }
[data-density="comfortable"] { --tt-ctl-h: var(--control-lg); --tt-row-h: var(--row-comfortable); --tt-pad: var(--space-4); }

html, body { background: var(--bg-base); color: var(--text-primary); font-family: var(--font-sans); font-size: 13px; line-height: 18px; margin: 0; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
button, input, select { font: inherit; color: inherit; }
.tt-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: "tnum" 1, "zero" 1; }
.tt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tt-dotted { text-decoration: underline dotted var(--text-tertiary); text-underline-offset: 3px; cursor: help; }
.tt-link { color: var(--text-link); text-decoration: none; display: inline-flex; align-items: center; gap: var(--space-1); }
.tt-link:hover { text-decoration: underline; }
.tt-icon { flex: none; display: inline-block; vertical-align: middle; }
:where(button, a, input, select, [tabindex]):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.tt-kbd { font-family: var(--font-mono); font-size: 10px; line-height: 14px; padding: 0 var(--space-1); border: 1px solid var(--border-default); border-radius: var(--radius-xs); color: var(--text-secondary); margin-left: var(--space-2); }

/* tones */
.tt-tone--neutral { color: var(--text-primary); }
.tt-tone--secondary { color: var(--text-secondary); }
.tt-tone--positive { color: var(--positive); }
.tt-tone--negative { color: var(--negative); }
.tt-tone--warning { color: var(--warning); }
.tt-tone--liquidation { color: var(--liquidation); }
.tt-tone--accent { color: var(--accent); }
.tt-tone--risk-low { color: var(--risk-low); }
.tt-tone--risk-medium { color: var(--risk-medium); }
.tt-tone--risk-high { color: var(--risk-high); }
.tt-tone--risk-critical { color: var(--risk-critical); }

/* numeric value */
.tt-numv { white-space: nowrap; font-weight: 500; }
.tt-numv--xl { font-size: 20px; line-height: 28px; }
.tt-numv--lg { font-size: 14px; line-height: 20px; }
.tt-numv--md { font-size: 13px; line-height: 18px; }
.tt-numv--sm { font-size: 12px; line-height: 16px; }
.tt-numv__dim { color: var(--text-tertiary); }
.tt-numv__pre { color: var(--text-secondary); }
.tt-numv__unit { color: var(--text-secondary); margin-left: var(--space-1); font-family: var(--font-sans); font-weight: 400; }
.tt-flash--up { background: var(--flash-up); border-radius: var(--radius-xs); animation: tt-flash 600ms var(--tt-ease) forwards; }
.tt-flash--down { background: var(--flash-down); border-radius: var(--radius-xs); animation: tt-flash 600ms var(--tt-ease) forwards; }
@keyframes tt-flash { 0%, 40% { background-color: var(--flash-bg, inherit); } 100% { background-color: transparent; } }
.tt-flash--up { --flash-bg: var(--flash-up); } .tt-flash--down { --flash-bg: var(--flash-down); }
.tt-flash--up.tt-flash--static, .tt-flash--down.tt-flash--static { animation: none; }

/* spinner */
.tt-spinner { width: 12px; height: 12px; border-radius: var(--radius-full); border: 1.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: tt-spin 700ms linear infinite; flex: none; }
@keyframes tt-spin { to { transform: rotate(360deg); } }

/* ---------- Button ---------- */
.tt-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-3); border-radius: var(--radius-sm); border: 1px solid transparent; font-size: 13px; line-height: 18px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color 80ms var(--tt-ease), border-color 80ms var(--tt-ease), color 80ms var(--tt-ease); user-select: none; }
.tt-btn--xs { height: var(--control-xs); padding: 0 var(--space-2); font-size: 12px; gap: var(--space-1); }
.tt-btn--sm { height: var(--control-sm); padding: 0 10px; font-size: 12px; }
.tt-btn--lg { height: var(--control-lg); padding: 0 var(--space-4); font-size: 14px; font-weight: 600; }
.tt-btn--xl { height: 48px; padding: 0 var(--space-4); font-size: 15px; font-weight: 600; border-radius: var(--radius-md); }
.tt-btn--full { width: 100%; }
.tt-btn--primary { background: var(--accent); color: var(--on-accent); }
.tt-btn--primary:hover, .tt-btn--primary.is-hover { background: var(--accent-hover); }
.tt-btn--secondary { background: var(--surface-elevated); color: var(--text-primary); border-color: var(--border-default); }
.tt-btn--secondary:hover, .tt-btn--secondary.is-hover { border-color: var(--border-strong); background-image: linear-gradient(var(--state-hover), var(--state-hover)); }
.tt-btn--tertiary { background: transparent; color: var(--text-secondary); }
.tt-btn--tertiary:hover, .tt-btn--tertiary.is-hover { background: var(--state-hover); color: var(--text-primary); }
.tt-btn--destructive { background: var(--negative-subtle); color: var(--negative); border-color: var(--negative); }
.tt-btn--destructive:hover, .tt-btn--destructive.is-hover { background: var(--negative); color: var(--on-negative); }
.tt-btn--buy { background: var(--buy); color: var(--on-positive); }
.tt-btn--buy:hover, .tt-btn--buy.is-hover { background: var(--positive-hover); }
.tt-btn--sell { background: var(--sell); color: var(--on-negative); }
.tt-btn--sell:hover, .tt-btn--sell.is-hover { background: var(--negative-hover); }
.tt-btn:active, .tt-btn.is-active { background-image: linear-gradient(var(--state-active), var(--state-active)); transform: translateY(0.5px); }
.tt-btn.is-focus { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.tt-btn:disabled { cursor: not-allowed; }
.tt-btn:disabled:not(.is-loading) { background: var(--state-disabled-bg); color: var(--text-disabled); border-color: transparent; }
.tt-btn--buy:disabled:not(.is-loading), .tt-btn--sell:disabled:not(.is-loading) { background: var(--state-disabled-bg); color: var(--text-disabled); }
.tt-btn.is-loading { cursor: progress; }
.tt-wallet--warn { color: var(--warning); border-color: var(--warning); }

.tt-iconbtn { display: inline-grid; place-items: center; width: var(--control-md); height: var(--control-md); border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--text-secondary); cursor: pointer; flex: none; }
.tt-iconbtn--sm { width: var(--control-xs); height: var(--control-xs); }
.tt-iconbtn:hover { background: var(--state-hover); color: var(--text-primary); }
.tt-iconbtn.is-active { background: var(--state-selected); color: var(--accent); }
.tt-iconbtn:disabled { color: var(--text-disabled); cursor: not-allowed; background: transparent; }

/* ---------- Field / Input ---------- */
.tt-field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.tt-field__label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-secondary); display: flex; justify-content: space-between; gap: var(--space-2); }
.tt-field__labelright { font-weight: 400; }
.tt-field__msg { font-size: 11px; line-height: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; }
.tt-field__msg--error { color: var(--negative); }
.tt-field__msg--success { color: var(--positive); }
.tt-input { display: flex; align-items: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-2) 0 10px; background: var(--bg-secondary); border: 1px solid var(--border-control); border-radius: var(--radius-sm); transition: border-color 80ms var(--tt-ease); min-width: 0; }
.tt-panel .tt-input, .tt-order .tt-input { background: var(--bg-secondary); }
.tt-input--xs { height: var(--control-xs); }
.tt-input--sm { height: var(--control-sm); }
.tt-input--lg { height: var(--control-lg); }
.tt-input:hover, .tt-input.is-hover { border-color: var(--text-secondary); }
.tt-input:focus-within, .tt-input.is-focus { border-color: var(--focus-ring); box-shadow: 0 0 0 1px var(--focus-ring); }
.tt-input.is-error { border-color: var(--negative); background: var(--negative-subtle); }
.tt-input.is-success { border-color: var(--positive); }
.tt-input.is-disabled { background: var(--state-disabled-bg); border-color: var(--border-default); color: var(--text-disabled); }
.tt-input__el { flex: 1; min-width: 0; border: 0; outline: 0 !important; background: transparent; height: 100%; font-size: 13px; color: var(--text-primary); padding: 0; }
.tt-input__el::placeholder { color: var(--text-tertiary); }
.tt-input__el:disabled { color: var(--text-disabled); cursor: not-allowed; }
.tt-input__el::-webkit-search-cancel-button { display: none; }
.tt-input--numeric .tt-input__el { text-align: right; font-weight: 500; }
.tt-input__icon, .tt-input__affix { color: var(--text-secondary); flex: none; }
.tt-input__inlinelabel { color: var(--text-secondary); font-size: 12px; flex: none; min-width: 40px; }
.tt-input__unit { color: var(--text-secondary); font-size: 12px; flex: none; }
.tt-input__unitsel { appearance: none; border: 0; background: var(--state-hover); color: var(--text-primary); font-size: 12px; font-weight: 500; padding: 2px 6px; border-radius: var(--radius-xs); cursor: pointer; flex: none; }
.tt-stepper { display: flex; flex-direction: column; flex: none; margin-right: -4px; }
.tt-stepper button { border: 0; background: transparent; color: var(--text-secondary); height: 12px; width: 16px; display: grid; place-items: center; cursor: pointer; padding: 0; border-radius: 2px; }
.tt-stepper button:hover { color: var(--text-primary); background: var(--state-hover); }
.tt-input--sm .tt-stepper button, .tt-input--xs .tt-stepper button { height: 10px; }

.tt-select { position: relative; display: flex; align-items: center; }
.tt-select select { appearance: none; width: 100%; height: var(--control-md); padding: 0 28px 0 10px; background: var(--bg-secondary); border: 1px solid var(--border-control); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-primary); cursor: pointer; }
.tt-select--sm select { height: var(--control-sm); font-size: 12px; }
.tt-select--xs select { height: var(--control-xs); font-size: 12px; padding-right: 22px; }
.tt-select--ghost select { background: transparent; border-color: transparent; color: var(--text-secondary); }
.tt-select--ghost select:hover { background: var(--state-hover); color: var(--text-primary); }
.tt-select:hover select { border-color: var(--text-secondary); }
.tt-select--ghost:hover select { border-color: transparent; }
.tt-select.is-error select { border-color: var(--negative); }
.tt-select.is-disabled select { background: var(--state-disabled-bg); color: var(--text-disabled); border-color: var(--border-default); cursor: not-allowed; }
.tt-select__chev { position: absolute; right: 8px; pointer-events: none; color: var(--text-secondary); }
.tt-select option { background: var(--surface-overlay); color: var(--text-primary); }

/* check, radio, switch */
.tt-check, .tt-radio, .tt-switch { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; font-size: 12px; line-height: 16px; color: var(--text-primary); position: relative; }
.tt-check input, .tt-radio input, .tt-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tt-check__box { width: 14px; height: 14px; border: 1px solid var(--border-control); border-radius: var(--radius-xs); display: grid; place-items: center; color: transparent; background: var(--bg-secondary); flex: none; }
.tt-check input:checked + .tt-check__box, .tt-check__box.is-indeterminate { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tt-check input:focus-visible + .tt-check__box, .tt-radio input:focus-visible + .tt-radio__dot, .tt-switch input:focus-visible + .tt-switch__track { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.tt-check:hover .tt-check__box, .tt-radio:hover .tt-radio__dot { border-color: var(--text-secondary); }
.tt-check.is-disabled, .tt-radio.is-disabled, .tt-switch.is-disabled { cursor: not-allowed; color: var(--text-disabled); }
.tt-check.is-disabled .tt-check__box, .tt-radio.is-disabled .tt-radio__dot { border-color: var(--border-default); background: var(--state-disabled-bg); }
.tt-radio__dot { width: 14px; height: 14px; border: 1px solid var(--border-control); border-radius: var(--radius-full); background: var(--bg-secondary); flex: none; display: grid; place-items: center; }
.tt-radio input:checked + .tt-radio__dot { border-color: var(--accent); border-width: 4px; }
.tt-check__label { user-select: none; }
.tt-switch__track { width: 28px; height: 16px; border-radius: var(--radius-full); background: var(--surface-elevated); border: 1px solid var(--border-control); position: relative; transition: background-color 120ms var(--tt-ease); flex: none; }
.tt-switch__thumb { position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--text-secondary); transition: transform 120ms var(--tt-ease); }
.tt-switch input:checked + .tt-switch__track { background: var(--accent); border-color: var(--accent); }
.tt-switch input:checked + .tt-switch__track .tt-switch__thumb { transform: translateX(12px); background: var(--on-accent); }
.tt-switch.is-disabled .tt-switch__track { background: var(--state-disabled-bg); border-color: var(--border-default); }

/* segmented */
.tt-seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-sm); }
.tt-seg--full { display: flex; width: 100%; }
.tt-seg--full .tt-seg__item { flex: 1; }
.tt-seg__item { border: 0; background: transparent; color: var(--text-secondary); font-size: 12px; font-weight: 500; height: calc(var(--control-md) - 6px); padding: 0 var(--space-3); border-radius: 3px; cursor: pointer; white-space: nowrap; }
.tt-seg--sm .tt-seg__item { height: calc(var(--control-sm) - 6px); padding: 0 10px; }
.tt-seg--xs .tt-seg__item { height: calc(var(--control-xs) - 6px); padding: 0 var(--space-2); font-size: 11px; }
.tt-seg__item:hover { color: var(--text-primary); background: var(--state-hover); }
.tt-seg__item.is-on { background: var(--surface-elevated); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-default); }
.tt-seg__item:disabled { color: var(--text-disabled); cursor: not-allowed; background: transparent; }
.tt-seg--side { padding: 0; border: 0; background: var(--bg-secondary); gap: 0; }
.tt-seg--side .tt-seg__item { height: var(--tt-ctl-h); font-size: 13px; font-weight: 600; border-radius: var(--radius-sm); }
.tt-seg__item--buy.is-on { background: var(--buy); color: var(--on-positive); box-shadow: none; }
.tt-seg__item--sell.is-on { background: var(--sell); color: var(--on-negative); box-shadow: none; }

/* tabs */
.tt-tabs { display: flex; align-items: stretch; gap: var(--space-4); border-bottom: 1px solid var(--border-default); min-height: var(--control-md); }
.tt-tabs--sm { gap: var(--space-3); min-height: var(--control-sm); }
.tt-tabs__item { position: relative; border: 0; background: transparent; padding: 0; font-size: 12px; font-weight: 500; color: var(--text-secondary); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tt-tabs--md .tt-tabs__item { font-size: 13px; }
.tt-tabs__item:hover { color: var(--text-primary); }
.tt-tabs__item.is-on { color: var(--text-primary); }
.tt-tabs__item.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 1px 1px 0 0; }
.tt-tabs__item:disabled { color: var(--text-disabled); cursor: not-allowed; }
.tt-tabs__count { font-size: 11px; line-height: 14px; padding: 0 5px; border-radius: var(--radius-xs); background: var(--surface-elevated); color: var(--text-secondary); }
.tt-tabs__right { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.tt-tabs--pill { border-bottom: 0; gap: var(--space-1); }
.tt-tabs--pill .tt-tabs__item { padding: 0 10px; border-radius: var(--radius-sm); height: var(--control-sm); }
.tt-tabs--pill .tt-tabs__item.is-on { background: var(--surface-elevated); }
.tt-tabs--pill .tt-tabs__item.is-on::after { display: none; }

/* tooltip & popover */
.tt-tip { position: relative; display: inline-flex; }
.tt-tip__bubble { position: absolute; z-index: var(--z-popover); bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--surface-overlay); color: var(--text-primary); border: 1px solid var(--border-default); box-shadow: var(--shadow-popover); padding: 6px var(--space-2); border-radius: var(--radius-sm); font-size: 12px; line-height: 16px; font-weight: 400; font-family: var(--font-sans); white-space: normal; width: max-content; max-width: 240px; opacity: 0; pointer-events: none; transition: opacity 80ms var(--tt-ease); text-align: left; }
.tt-tip--bottom .tt-tip__bubble { bottom: auto; top: calc(100% + 6px); }
.tt-tip:hover .tt-tip__bubble, .tt-tip:focus-within .tt-tip__bubble, .tt-tip.is-open .tt-tip__bubble { opacity: 1; }
.tt-pop { position: relative; display: inline-block; }
.tt-pop__panel { position: absolute; top: calc(100% + 4px); left: 0; z-index: var(--z-dropdown); background: var(--surface-overlay); border: 1px solid var(--border-default); border-radius: var(--radius-md); box-shadow: var(--shadow-popover); padding: var(--space-2); }
.tt-pop__panel--end { left: auto; right: 0; }
.tt-menu { list-style: none; margin: 0; padding: 0; }
.tt-menu__item { display: flex; align-items: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-2); border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; }
.tt-menu__item:hover { background: var(--state-hover); }
.tt-menu__item.is-on { background: var(--state-selected); }
.tt-menu__label { flex: 1; }

/* modal & sheet */
.tt-modal, .tt-sheet { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; }
.tt-modal--inline, .tt-sheet--inline { position: absolute; }
.tt-modal__scrim { position: absolute; inset: 0; background: var(--scrim); }
.tt-modal__dialog { position: relative; max-width: calc(100% - 32px); background: var(--surface-overlay); border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-modal); display: flex; flex-direction: column; }
.tt-modal__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-4) var(--space-3) var(--space-5); }
.tt-modal__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; display: flex; gap: var(--space-2); align-items: center; }
.tt-modal__body { padding: 0 var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); font-size: 14px; line-height: 20px; }
.tt-modal__foot { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-5) var(--space-5); }
.tt-modal__foot > * { flex: 1; }
.tt-sheet { place-items: end stretch; }
.tt-sheet__panel { position: relative; background: var(--surface-overlay); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-modal); max-height: 92%; display: flex; flex-direction: column; border-top: 1px solid var(--border-default); }
.tt-sheet__grab { width: 36px; height: 4px; border-radius: var(--radius-full); background: var(--border-strong); margin: var(--space-2) auto 0; }
.tt-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) var(--space-4); }
.tt-sheet__body { padding: 0 var(--space-4) var(--space-3); overflow: auto; }
.tt-sheet__foot { padding: var(--space-3) var(--space-4) var(--space-6); border-top: 1px solid var(--border-subtle); }

/* toast & banner */
.tt-toast { display: flex; gap: var(--space-3); align-items: flex-start; width: 340px; max-width: 100%; padding: var(--space-3); background: var(--surface-overlay); border: 1px solid var(--border-default); border-radius: var(--radius-md); box-shadow: var(--shadow-popover); }
.tt-toast__icon { margin-top: 1px; }
.tt-toast--positive .tt-toast__icon { color: var(--positive); }
.tt-toast--negative .tt-toast__icon { color: var(--negative); }
.tt-toast--warning .tt-toast__icon { color: var(--warning); }
.tt-toast--info .tt-toast__icon, .tt-toast--neutral .tt-toast__icon { color: var(--accent); }
.tt-toast--liquidation .tt-toast__icon { color: var(--liquidation); }
.tt-toast__main { flex: 1; min-width: 0; }
.tt-toast__title { font-size: 13px; font-weight: 600; line-height: 18px; }
.tt-toast__body { font-size: 12px; line-height: 16px; color: var(--text-secondary); margin-top: 2px; }
.tt-toast__action { margin-top: var(--space-2); display: flex; gap: var(--space-2); }
.tt-banner { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); font-size: 12px; line-height: 16px; border: 1px solid transparent; }
.tt-banner__icon { margin-top: 1px; }
.tt-banner__main { flex: 1; }
.tt-banner__title { font-weight: 600; margin-right: var(--space-1); }
.tt-banner__body { color: var(--text-primary); }
.tt-banner__action { flex: none; }
.tt-banner--info { background: var(--accent-subtle); border-color: var(--accent-subtle); } .tt-banner--info .tt-banner__icon, .tt-banner--info .tt-banner__title { color: var(--accent); }
.tt-banner--positive { background: var(--positive-subtle); } .tt-banner--positive .tt-banner__icon, .tt-banner--positive .tt-banner__title { color: var(--positive); }
.tt-banner--negative { background: var(--negative-subtle); } .tt-banner--negative .tt-banner__icon, .tt-banner--negative .tt-banner__title { color: var(--negative); }
.tt-banner--warning { background: var(--warning-subtle); } .tt-banner--warning .tt-banner__icon, .tt-banner--warning .tt-banner__title { color: var(--warning); }
.tt-banner--liquidation { background: var(--liquidation-subtle); } .tt-banner--liquidation .tt-banner__icon, .tt-banner--liquidation .tt-banner__title { color: var(--liquidation); }

/* badge & status */
.tt-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 20px; padding: 0 6px; border-radius: var(--radius-xs); font-size: 11px; line-height: 14px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.tt-badge--sm { height: 16px; padding: 0 4px; font-size: 10px; }
.tt-badge--subtle.tt-badge--neutral { background: var(--surface-elevated); color: var(--text-secondary); }
.tt-badge--subtle.tt-badge--accent, .tt-badge--subtle.tt-badge--info { background: var(--accent-subtle); color: var(--accent); }
.tt-badge--subtle.tt-badge--positive, .tt-badge--subtle.tt-badge--risk-low { background: var(--positive-subtle); color: var(--positive); }
.tt-badge--subtle.tt-badge--negative, .tt-badge--subtle.tt-badge--risk-critical { background: var(--negative-subtle); color: var(--negative); }
.tt-badge--subtle.tt-badge--warning, .tt-badge--subtle.tt-badge--risk-medium { background: var(--warning-subtle); color: var(--warning); }
.tt-badge--subtle.tt-badge--liquidation, .tt-badge--subtle.tt-badge--risk-high { background: var(--liquidation-subtle); color: var(--liquidation); }
.tt-badge--solid.tt-badge--neutral { background: var(--text-secondary); color: var(--text-inverse); }
.tt-badge--solid.tt-badge--accent { background: var(--accent); color: var(--on-accent); }
.tt-badge--solid.tt-badge--positive { background: var(--positive); color: var(--on-positive); }
.tt-badge--solid.tt-badge--negative { background: var(--negative); color: var(--on-negative); }
.tt-badge--solid.tt-badge--warning { background: var(--warning); color: var(--on-warning); }
.tt-badge--outline { background: transparent; border-color: var(--border-default); color: var(--text-secondary); }
.tt-dot { width: 6px; height: 6px; border-radius: var(--radius-full); background: currentColor; }
.tt-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 14px; color: var(--text-secondary); white-space: nowrap; }
.tt-status__dot { width: 6px; height: 6px; border-radius: var(--radius-full); flex: none; }
.tt-status--connected .tt-status__dot { background: var(--status-connected); box-shadow: 0 0 0 2px var(--positive-subtle); }
.tt-status--reconnecting .tt-status__dot { background: var(--status-reconnecting); }
.tt-status--reconnecting { color: var(--warning); }
.tt-status--disconnected .tt-status__dot { background: var(--status-disconnected); }
.tt-status--disconnected { color: var(--negative); }
.tt-status--stale .tt-status__dot { background: transparent; border: 1.5px solid var(--status-stale); }
.tt-status__detail { color: var(--text-secondary); }

/* slider */
.tt-slider { padding: 6px 7px 0; }
.tt-slider__rail { position: relative; height: 14px; }
.tt-slider__track, .tt-slider__fill { position: absolute; top: 6px; height: 2px; border-radius: 1px; left: 0; }
.tt-slider__track { right: 0; background: var(--border-default); }
.tt-slider__fill { background: var(--tt-sl, var(--accent)); }
.tt-slider__tick { position: absolute; top: 3px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 1px; }
.tt-slider__tick.is-on { border-color: var(--tt-sl, var(--accent)); background: var(--tt-sl, var(--accent)); }
.tt-slider__thumb { position: absolute; top: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: var(--radius-full); background: var(--surface); border: 2px solid var(--tt-sl, var(--accent)); pointer-events: none; }
.tt-slider input { position: absolute; inset: -4px -7px; width: calc(100% + 14px); height: 22px; opacity: 0; margin: 0; cursor: pointer; }
.tt-slider input:focus-visible ~ .tt-slider__thumb, .tt-slider__rail:focus-within .tt-slider__thumb { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.tt-slider__labels { position: relative; height: 16px; margin-top: 4px; }
.tt-slider__label { position: absolute; transform: translateX(-50%); border: 0; background: none; padding: 0; font-size: 11px; color: var(--text-secondary); cursor: pointer; }
.tt-slider__label:first-child { transform: none; margin-left: -7px; }
.tt-slider__label:last-child { transform: translateX(-100%); margin-left: 7px; }
.tt-slider__label:hover { color: var(--text-primary); }
.tt-slider--buy { --tt-sl: var(--buy); } .tt-slider--sell { --tt-sl: var(--sell); } .tt-slider--accent { --tt-sl: var(--accent); }
.tt-slider--risk-low { --tt-sl: var(--risk-low); } .tt-slider--risk-medium { --tt-sl: var(--risk-medium); } .tt-slider--risk-high { --tt-sl: var(--risk-high); } .tt-slider--risk-critical { --tt-sl: var(--risk-critical); }
.tt-slider.is-disabled { opacity: var(--opacity-disabled); }

/* progress, skeleton, empty */
.tt-progress { height: 6px; background: var(--surface-elevated); border-radius: var(--radius-full); overflow: hidden; position: relative; }
.tt-progress--sm { height: 4px; }
.tt-progress__fill { height: 100%; background: var(--tt-pr, var(--accent)); border-radius: inherit; transition: width 200ms var(--tt-ease); }
.tt-progress--positive { --tt-pr: var(--positive); }
.tt-progress--risk-low { --tt-pr: var(--risk-low); } .tt-progress--risk-medium { --tt-pr: var(--risk-medium); } .tt-progress--risk-high { --tt-pr: var(--risk-high); } .tt-progress--risk-critical { --tt-pr: var(--risk-critical); }
.tt-progress.is-indeterminate .tt-progress__fill { animation: tt-indet 1.2s var(--tt-ease) infinite; }
@keyframes tt-indet { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.tt-skel { display: block; border-radius: var(--radius-xs); background: linear-gradient(90deg, var(--skeleton) 0%, var(--skeleton-shine) 50%, var(--skeleton) 100%); background-size: 200% 100%; animation: tt-shimmer 1.4s linear infinite; }
.tt-skel--circle { border-radius: var(--radius-full); }
@keyframes tt-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.tt-skel-table { display: flex; flex-direction: column; }
.tt-skel-row { display: grid; gap: var(--space-4); align-items: center; padding: 0 var(--space-3); border-bottom: 1px solid var(--border-subtle); }
.tt-skel-row .tt-skel:not(:first-child) { justify-self: end; }
.tt-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-1); padding: var(--space-10) var(--space-4); }
.tt-empty--compact { padding: var(--space-6) var(--space-4); }
.tt-empty__icon { width: 36px; height: 36px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--surface-elevated); color: var(--text-secondary); margin-bottom: var(--space-2); }
.tt-empty__title { font-size: 13px; font-weight: 600; }
.tt-empty__desc { font-size: 12px; color: var(--text-secondary); }
.tt-empty__action { margin-top: var(--space-3); }

/* key value */
.tt-kv { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); font-size: 13px; line-height: 18px; }
.tt-kv--sm { font-size: 12px; line-height: 16px; }
.tt-kv__k { color: var(--text-secondary); }
.tt-kv__k--tip span[tabindex] { text-decoration: underline dotted var(--text-tertiary); text-underline-offset: 3px; cursor: help; }
.tt-kv__v { text-align: right; display: inline-flex; gap: var(--space-2); align-items: baseline; }

/* ---------- Table ---------- */
.tt-table-wrap { overflow: auto; position: relative; }
.tt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; line-height: 16px; }
.tt-table th, .tt-table td { padding: 0 var(--space-3); white-space: nowrap; height: var(--row-default); border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: middle; }
.tt-table--compact th, .tt-table--compact td { height: 26px; padding: 0 var(--space-2); }
.tt-table--compact th:first-child, .tt-table--compact td:first-child { padding-left: var(--space-3); }
.tt-table--comfortable th, .tt-table--comfortable td { height: var(--row-comfortable); padding: 0 var(--space-4); font-size: 13px; }
.tt-table th { height: 28px; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--text-secondary); background: var(--surface); border-bottom-color: var(--border-default); }
.tt-table.is-sticky th { position: sticky; top: 0; z-index: var(--z-sticky); }
.tt-table .is-right { text-align: right; }
.tt-table .is-center { text-align: center; }
.tt-table th button { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.tt-table th button:hover, .tt-table th.is-sorted { color: var(--text-primary); }
.tt-table__sorticon { opacity: 0; }
.tt-table th.is-sortable:hover .tt-table__sorticon, .tt-table th.is-sorted .tt-table__sorticon { opacity: 1; }
.tt-table tbody tr:hover td { background-image: linear-gradient(var(--state-hover), var(--state-hover)); }
.tt-table tbody tr.is-selected td { background-color: var(--state-selected); }
.tt-table tbody tr.is-atrisk td { background-color: var(--liquidation-subtle); }
.tt-table.is-striped tbody tr:nth-child(even) td { background-color: var(--state-hover); }
.tt-table__sel { width: 32px; }
.tt-table__emptycell { height: auto !important; border-bottom: 0 !important; }
.tt-table tbody tr:hover .tt-table__emptycell { background-image: none; }
.tt-cell-sym { display: inline-flex; align-items: center; gap: var(--space-2); }
.tt-cell-sym__name { font-weight: 500; color: var(--text-primary); }
.tt-cell-pnl { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 14px; }
.tt-cell-pnl .tt-numv { line-height: 14px; }
.tt-cell-pnl__pct { font-size: 11px; }
.tt-cell-liq { display: inline-flex; align-items: center; gap: var(--space-1); }
.tt-cell-actions { display: inline-flex; gap: var(--space-1); }
.tt-cell-filled { display: inline-flex; align-items: center; gap: var(--space-2); }
.tt-cell-filled .tt-progress { width: 40px; }
.tt-cell-tpsl { color: var(--text-secondary); }

/* ---------- Panel & nav ---------- */
.tt-panel { background: var(--surface); border-radius: var(--radius-md); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
[data-theme="light"] .tt-panel { box-shadow: inset 0 0 0 1px var(--border-subtle); }
.tt-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--control-md); padding: 0 var(--space-3); border-bottom: 1px solid var(--border-default); flex: none; }
.tt-panel__head .tt-tabs { border-bottom: 0; align-self: stretch; }
.tt-panel__title { margin: 0; font-size: 12px; font-weight: 600; line-height: 16px; }
.tt-panel__actions { display: flex; align-items: center; gap: var(--space-2); }
.tt-panel__body { flex: 1; min-height: 0; overflow: auto; }
.tt-panel--flush .tt-panel__body { padding: 0; }
.tt-nav { display: flex; align-items: center; gap: var(--space-6); height: var(--nav-height); padding: 0 var(--space-4); background: var(--bg-secondary); border-bottom: 1px solid var(--border-default); }
.tt-nav__brand { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.tt-nav__mark { width: 16px; height: 16px; border-radius: var(--radius-xs); background: linear-gradient(90deg, var(--positive) 0 50%, var(--negative) 50% 100%); clip-path: polygon(0 100%, 0 30%, 50% 30%, 50% 0, 100% 0, 100% 100%); }
.tt-nav__items { display: flex; gap: var(--space-1); height: 100%; }
.tt-nav__item { display: flex; align-items: center; padding: 0 var(--space-3); color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 500; position: relative; }
.tt-nav__item:hover { color: var(--text-primary); }
.tt-nav__item.is-on { color: var(--text-primary); }
.tt-nav__item.is-on::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 0; height: 2px; background: var(--accent); }
.tt-nav__right { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }

/* ---------- Market data ---------- */
.tt-pair { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-md); padding: 0 var(--space-2); border: 0; border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.tt-pair:hover, .tt-pair.is-open { background: var(--state-hover); }
.tt-pair__logo, .tt-net__logo { width: 20px; height: 20px; border-radius: var(--radius-full); background: var(--surface-elevated); color: var(--text-primary); display: grid; place-items: center; font-size: 10px; font-weight: 600; flex: none; border: 1px solid var(--border-default); }
.tt-net__logo { width: 16px; height: 16px; font-size: 9px; }
.tt-pair__name { font-size: 16px; font-weight: 600; line-height: 24px; }
.tt-pairlist { display: flex; flex-direction: column; gap: var(--space-2); }
.tt-pairlist .tt-table th { background: var(--surface-overlay); }
.tt-pairlist__sym { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.tt-pairlist__star { color: var(--text-tertiary); }
.is-fav { color: var(--warning); fill: var(--warning); }
.tt-ticker { display: inline-flex; flex-direction: column; gap: 0; }
.tt-ticker > .tt-numv:first-child { letter-spacing: -0.01em; }
.tt-ticker--sm { flex-direction: row; align-items: baseline; gap: var(--space-2); }
.tt-ticker__sub { font-size: 11px; color: var(--text-secondary); }
.tt-stats { display: flex; gap: var(--space-6); margin: 0; align-items: center; }
.tt-stats--scroll { overflow-x: auto; gap: var(--space-4); scrollbar-width: none; }
.tt-stats__item { display: flex; flex-direction: column; gap: 2px; flex: none; }
.tt-stats__k { font-size: 11px; line-height: 14px; color: var(--text-secondary); }
.tt-stats__v { margin: 0; display: flex; gap: var(--space-1); align-items: baseline; }
.tt-stats__extra { font-size: 11px; color: var(--text-secondary); }
.tt-book, .tt-trades { display: flex; flex-direction: column; font-size: 12px; min-height: 0; }
.tt-book__toolbar { display: flex; align-items: center; justify-content: space-between; padding: var(--space-1) var(--space-2); }
.tt-book__head, .tt-book__row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 0 var(--space-3); align-items: center; position: relative; }
.tt-book__head { height: 24px; font-size: 11px; color: var(--text-secondary); }
.tt-book__head > *:not(:first-child), .tt-book__row > *:not(:first-child):not(.tt-book__depth) { text-align: right; }
.tt-book__row { height: var(--row-compact); cursor: pointer; }
.tt-book__row:hover { background: var(--state-hover); }
.tt-book__row > span { position: relative; z-index: 1; }
.tt-book__depth { position: absolute !important; right: 0; top: 1px; bottom: 1px; z-index: 0 !important; border-radius: var(--radius-xs) 0 0 var(--radius-xs); }
.tt-book__row--ask .tt-book__depth { background: var(--depth-ask); }
.tt-book__row--bid .tt-book__depth { background: var(--depth-bid); }
.tt-book__mid { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-3); height: 32px; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.tt-book__mark { text-decoration: underline dotted var(--text-tertiary); text-underline-offset: 3px; }
.tt-book__spread { margin-left: auto; font-size: 11px; color: var(--text-secondary); display: inline-flex; gap: 2px; align-items: baseline; }
.tt-book__spread .tt-numv { font-size: 11px; }
.tt-trades__time { text-align: right; color: var(--text-secondary); font-size: 12px; }
.tt-tf { display: flex; align-items: center; gap: 2px; padding: var(--space-1) var(--space-2); border-bottom: 1px solid var(--border-default); }
.tt-tf__item { border: 0; background: transparent; color: var(--text-secondary); font-size: 12px; font-weight: 500; height: var(--control-xs); padding: 0 var(--space-2); border-radius: var(--radius-sm); cursor: pointer; font-family: var(--font-sans); }
.tt-tf__item:hover { color: var(--text-primary); background: var(--state-hover); }
.tt-tf__item.is-on { color: var(--accent); background: var(--accent-subtle); }
.tt-tf__sep { width: 1px; height: 16px; background: var(--border-default); margin: 0 var(--space-2); }

/* chart */
.tt-chart, .tt-pnlchart { position: relative; width: 100%; background: var(--chart-bg); overflow: hidden; }
.tt-chart svg, .tt-pnlchart svg { display: block; }
.tt-chart__grid { stroke: var(--chart-grid); stroke-width: 1; shape-rendering: crispEdges; }
.tt-chart__axis { fill: var(--chart-axis); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.tt-chart__up { fill: var(--candle-up); } .tt-chart__down { fill: var(--candle-down); }
.tt-chart__up-s { stroke: var(--candle-up); stroke-width: 1; } .tt-chart__down-s { stroke: var(--candle-down); stroke-width: 1; }
.tt-chart__vol-up { fill: var(--volume-up); } .tt-chart__vol-down { fill: var(--volume-down); }
.tt-chart__last { stroke-dasharray: 2 3; }
.tt-chart__lasttext { fill: var(--on-positive); font-family: var(--font-mono); font-size: 11px; font-weight: 600; }
.tt-chart__cross { stroke: var(--chart-crosshair); stroke-dasharray: 3 3; }
.tt-chart__tipbg { fill: var(--chart-tooltip-bg); }
.tt-chart__tiptext { fill: var(--chart-tooltip-text); font-family: var(--font-mono); font-size: 11px; }
.tt-chart__ma { fill: none; stroke-width: 1.25; }
.tt-chart__ma--1 { stroke: var(--chart-series-1); } .tt-chart__ma--2 { stroke: var(--chart-series-2); } .tt-chart__ma--3 { stroke: var(--chart-series-3); }
.tt-chart__legend { position: absolute; left: var(--space-3); top: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: 11px; line-height: 14px; z-index: 1; pointer-events: none; }
.tt-chart__sym { color: var(--text-primary); font-family: var(--font-sans); font-weight: 600; }
.tt-chart__lk { color: var(--text-secondary); margin-right: 3px; }
.tt-chart__ma-l--1 { color: var(--chart-series-1); } .tt-chart__ma-l--2 { color: var(--chart-series-2); } .tt-chart__ma-l--3 { color: var(--chart-series-3); }
.tt-chart__sample { color: var(--text-secondary); font-family: var(--font-sans); border: 1px solid var(--border-default); border-radius: var(--radius-xs); padding: 0 4px; }
.tt-chart__zero { stroke: var(--border-strong); stroke-dasharray: 2 3; }
.tt-chart__area { fill: var(--chart-area); }
.tt-chart__area.is-up { fill: var(--positive-subtle); } .tt-chart__area.is-down { fill: var(--negative-subtle); }
.tt-chart__line { fill: none; stroke: var(--chart-series-1); stroke-width: 1.5; }
.tt-chart__line.is-up { stroke: var(--positive); } .tt-chart__line.is-down { stroke: var(--negative); }

/* ---------- Order entry ---------- */
.tt-order { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--tt-pad); }
.tt-order .tt-tabs { min-height: var(--control-sm); }
.tt-order__levchip { border: 1px solid var(--border-default); background: var(--surface-elevated); color: var(--text-primary); font-size: 11px; height: 20px; padding: 0 6px; border-radius: var(--radius-xs); cursor: pointer; }
.tt-order__levchip:hover { border-color: var(--border-strong); }
.tt-order__avail { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-bottom: calc(var(--space-1) * -1); }
.tt-order__market { display: flex; justify-content: space-between; align-items: center; height: var(--control-md); padding: 0 10px; border-radius: var(--radius-sm); background: var(--state-disabled-bg); color: var(--text-secondary); font-size: 12px; }
.tt-order__opts { display: flex; flex-direction: column; gap: var(--space-2); }
.tt-order__optsrow { display: flex; gap: var(--space-4); align-items: center; }
.tt-order__optsrow .tt-select { margin-left: auto; }
.tt-order__tpsl { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
.tt-order__foot { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border-subtle); }
.tt-summary { display: flex; flex-direction: column; gap: var(--space-1); }
.tt-summary__sub { font-size: 11px; color: var(--text-secondary); }
.tt-lev { display: flex; flex-direction: column; gap: var(--space-1); }
.tt-lev__head { display: flex; justify-content: space-between; align-items: center; }
.tt-lev__val { display: inline-flex; gap: var(--space-2); align-items: center; }
.tt-lev__num { font-size: 13px; font-weight: 600; }
.tt-mr { display: flex; flex-direction: column; gap: var(--space-2); }
.tt-mr__head { display: flex; justify-content: space-between; align-items: center; }
.tt-mr__val { display: inline-flex; align-items: center; gap: var(--space-2); }
.tt-mr__rows { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-1); }

/* allocation */
.tt-alloc { display: flex; flex-direction: column; gap: var(--space-3); }
.tt-alloc__bar { display: flex; height: 8px; border-radius: var(--radius-xs); overflow: hidden; gap: 2px; }
.tt-alloc__seg { height: 100%; }
.tt-alloc--1 { background: var(--alloc-1); } .tt-alloc--2 { background: var(--alloc-2); } .tt-alloc--3 { background: var(--alloc-3); } .tt-alloc--4 { background: var(--alloc-4); } .tt-alloc--5 { background: var(--alloc-5); }
.tt-alloc__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.tt-alloc__legend li { display: grid; grid-template-columns: 10px 1fr auto 56px; gap: var(--space-2); align-items: center; font-size: 12px; }
.tt-alloc__legend li > .tt-numv:last-child { text-align: right; }
.tt-alloc__sw { width: 10px; height: 10px; border-radius: var(--radius-xs); }

/* wallet & network */
.tt-wallet, .tt-net { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-sm); padding: 0 var(--space-2); border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--surface-elevated); cursor: pointer; font-size: 12px; color: var(--text-primary); }
.tt-wallet:hover, .tt-net:hover, .tt-net.is-open { border-color: var(--border-strong); }
.tt-wallet__avatar { width: 16px; height: 16px; border-radius: var(--radius-full); background: var(--accent-subtle); border: 1.5px solid var(--accent); }
.tt-wallet__addr { color: var(--text-secondary); }
.tt-net .tt-status { gap: 0; }

/* tx status */
.tt-tx { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.tt-tx__step { display: grid; grid-template-columns: 20px 1fr auto; column-gap: var(--space-3); align-items: center; min-height: 32px; position: relative; font-size: 13px; }
.tt-tx__step:not(:last-child)::after { content: ""; position: absolute; left: 9.5px; top: 26px; bottom: -6px; width: 1px; background: var(--border-default); }
.tt-tx__mark { width: 20px; height: 20px; border-radius: var(--radius-full); display: grid; place-items: center; font-size: 11px; font-family: var(--font-mono); border: 1px solid var(--border-control); color: var(--text-secondary); background: var(--surface-overlay); }
.tt-tx__step.is-done .tt-tx__mark { background: var(--positive); border-color: var(--positive); color: var(--on-positive); }
.tt-tx__step.is-active .tt-tx__mark { border-color: var(--accent); color: var(--accent); }
.tt-tx__step.is-failed .tt-tx__mark { background: var(--negative); border-color: var(--negative); color: var(--on-negative); }
.tt-tx__step.is-todo .tt-tx__label { color: var(--text-secondary); }
.tt-tx__detail { grid-column: 2; font-size: 11px; color: var(--text-secondary); margin-top: -6px; padding-bottom: 4px; }
.tt-tx__step .tt-link { grid-column: 3; grid-row: 1; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .tt-flash--up, .tt-flash--down { animation: none; }
  .tt-skel, .tt-progress.is-indeterminate .tt-progress__fill { animation: none; }
  .tt-spinner { animation-duration: 2s; }
}
