:root {
  --brand-primary: #5367ff;
  --brand-hover: #4052da;
  --brand-focus: #6176ff;
  --brand-soft: #e9ecff;
  --brand-page: #f3f7fe;
  --ui-surface: #ffffff;
  --ui-field: #f0f3f9;
  --ui-subtle: #f8faff;
  --ui-link: #384bc3;
  --ui-panel-radius: 12px;
  --ui-row-pad: 9px 12px;
  --brand-navy: #0c1120;
  --text-primary: #151c30;
  --text-secondary: #45506b;
  --text-muted: #57627b;
  --color-buy: #087e63;
  --color-sell: #b43b50;
  --color-warn: #895000;
  --color-error: #a4243a;
  --rule-light: #d4dbea;
  --brand-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "PingFang TC", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans CJK TC", sans-serif;
  --brand-number: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-caption: .75rem;
  --font-control: .8125rem;
  --control-compact: 30px;
  --control-normal: 38px;
  --control-touch: 44px;
  --control-padding: 12px;
  --font-body: 1rem;
  --weight-body: 400;
  --weight-label: 550;
  --weight-heading: 650;
  --radius-field: 5px;
  --radius-action: 7px;
  --radius-dialog: 14px;
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --icon-size: 18px;
  --layer-menu: 30;
  --layer-dialog: 100;
  --motion-feedback: 140ms;
  --motion-ease: cubic-bezier(.22,.72,.28,1);
  --dialog-backdrop: rgb(8 15 31 / 48%);
  --dialog-shadow: 0 20px 68px rgb(12 23 45 / 20%), 0 2px 8px rgb(12 23 45 / 8%);
  --control-focus: #4056df;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand-page: #10151f;
  --ui-surface: #171e2a;
  --ui-field: #1e2838;
  --ui-subtle: #131b27;
  --ui-link: #adb8ff;
  --text-primary: #edf1fa;
  --text-secondary: #c2cadd;
  --text-muted: #a1aec3;
  --rule-light: #323d50;
  --color-buy: #73d7ad;
  --color-sell: #ff93aa;
  --color-warn: #f1be75;
  --color-error: #ff9fac;
  --dialog-backdrop: rgb(4 9 20 / 60%);
  --dialog-shadow: 0 20px 76px rgb(0 0 0 / 42%), 0 2px 8px rgb(0 0 0 / 20%);
  --control-focus: #a5afff;
}
yooxi-brand {
  display: inline-block; flex: none; width: var(--yooxi-lockup-width, 102px);
  max-width: 100%; aspect-ratio: 1060 / 286; vertical-align: middle; line-height: 0;
}
html yooxi-brand > img {
  display: block; width: 100%; height: 100%; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; object-fit: contain;
}
html yooxi-brand > .yooxi-lockup-dark,
[data-brand-surface="dark"] yooxi-brand > .yooxi-lockup-light,
html[data-theme="dark"] yooxi-brand > .yooxi-lockup-light { display: none; }
[data-brand-surface="dark"] yooxi-brand > .yooxi-lockup-dark,
html[data-theme="dark"] yooxi-brand > .yooxi-lockup-dark { display: block; }
:where(button,input,textarea,select,a,summary,[tabindex]):focus-visible {
  outline: 2px solid var(--control-focus);
  outline-offset: 3px;
}


/* The focused native element keeps its platform keyboard behavior in each UI. */
select:not([multiple]) { appearance: none; -webkit-appearance: none; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
