/* Design tokens — the only render-blocking-adjacent CSS (injected by the Loader).
 *
 * Two sections:
 *   1. Hand-written platform variables (`--rf-*`, renamed to the profile namespace
 *      at build time): layout heights, z-index scale, radius and spacing.
 *   2. Color tokens generated by `pnpm tokens` (platform-tokens) from the design
 *      team's Figma variable export in design-tokens/. Names keep the Figma
 *      variable names (`/` → `-`, no prefix) so they cross-reference with the
 *      design source and with hosts that define the same variables. Never edit the
 *      FIGMA-AUTOGEN region by hand.
 *
 * Theme: light values on `:root, .theme-light`, dark values under `.theme-dark`
 * (set on <html> by the host; on a subtree, `.theme-light` / `.theme-dark` forces
 * that theme there).
 */
:root {
  /* --- layout (consumed by shells / runtime) --- */
  --rf-h5-header-height: 48px;
  --rf-h5-footer-height: calc(70px + env(safe-area-inset-bottom));
  --rf-web-footer-min-height: 744px;
  --rf-web-footer-small-height: 40px;
  --rf-topbar-height: 0px;
  /* z-index scale: fixed chrome (header/footer bars) sits below modal-class
   * overlays (panels/toasts) so a full-screen panel always covers the tab bar,
   * even though footer/panel are mounted into separate host-DOM subtrees. */
  --rf-z-fixed: 100;
  --rf-z-modal: 1200;
  /* Figma cmpt/toast. Same gray in both themes. */
  --rf-toast-bg: #4e5053;

  /* --- radius / spacing scale --- */
  --rf-radius-full: 99px;
  --rf-spacing-4: 4px;
  --rf-spacing-8: 8px;
  --rf-spacing-12: 12px;
  --rf-spacing-16: 16px;
  --rf-spacing-20: 20px;
  --rf-spacing-24: 24px;
  --rf-spacing-32: 32px;
}

/* === FIGMA-AUTOGEN:START === */
/* 102 color tokens from semantic-mode.json — generated by platform-tokens, do not edit */
:root, .theme-light {
  --border-brand: #0bd4c6;  /* 描边-品牌色 */
  --border-invert: #0c0e10;
  --border-primary: #f0f1f2;  /* 描边-浅 */
  --border-secondary: #e0e0e0;  /* 描边-中 */
  --border-third: #bcbdbf;  /* 描边-重 */
  --cmpt-button-hover: #0c6656;  /* 品牌按钮-hover态 */
  --cmpt-button-press: #0a4439;  /* 品牌按钮-点击态 */
  --cmpt-button-primary: #0d8979;  /* 品牌按钮-背景色 */
  --cmpt-button-soft: rgba(0, 0, 0, 0.06);  /* 次级按钮-背景色 */
  --cmpt-button-soft-disable: rgba(0, 0, 0, 0.06);  /* 二级按钮-禁用态 */
  --cmpt-button-soft-hover: rgba(0, 0, 0, 0.1);  /* 次级按钮-hover态 */
  --cmpt-button-soft-press: rgba(0, 0, 0, 0.3);  /* 次级按钮-点击态 */
  --cmpt-button-third-hover: #a6a8aa;  /* 三级按钮-hover态 */
  --cmpt-button-third-press: #909295;  /* 三级按钮-点击态 */
  --cmpt-checkbox-brand: #0d8979;  /* 复选框品牌色 */
  --cmpt-gradient-bg-0: rgba(255, 255, 255, 0);  /* 蒙层-0透明度 */
  --cmpt-gradient-bg-100: #ffffff;  /* 蒙层-100透明度 */
  --cmpt-input: #bcbdbf;  /* 输入框描边色 */
  --cmpt-input-disable: #e0e0e0;  /* 输入框-禁用态 */
  --cmpt-input-hover: #0d8979;  /* 输入框-hover态 */
  --cmpt-notification: #ffffff;
  --cmpt-select: #f0f1f2;  /* 菜单面板选中 */
  --cmpt-slider-active: #0c0e10;  /* 滑动条选中态 */
  --cmpt-slider-inactive-line: #e0e0e0;  /* 滑动条未选中态 */
  --cmpt-slider-tooltip: #0c0e10;
  --cmpt-switch-inactive-bg: #e0e0e0;  /* 开关-关闭态底色 */
  --cmpt-switch-primary: #0d8979;  /* 品牌开关-背景色 */
  --cmpt-tabs-bg: #11f5e6;  /* tabs-背景色 */
  --cmpt-tabs-green: #089973;  /* tabs card-绿色 */
  --cmpt-tabs-primary: #ffffff;
  --cmpt-tabs-red: #e5335a;  /* tabs card-红色 */
  --cmpt-tag-green: rgba(8, 153, 115, 0.1);  /* 标签-涨跌色-绿 */
  --cmpt-tag-normal: rgba(0, 0, 0, 0.06);  /* 标签-默认色 */
  --cmpt-tag-red: rgba(229, 51, 90, 0.1);  /* 标签-涨跌色-红 */
  --cmpt-toast: #4e5053;
  --cmpt-tooltip: #f0f1f2;  /* 文字气泡底色 */
  --divider-default: #bcbdbf;  /* 分割线-默认 */
  --divider-light: #e0e0e0;  /* 分割线-浅 */
  --function-coin-dis: #383a3d;  /* 占位币种背景 */
  --function-orderbook-buy: rgba(8, 153, 115, 0.1);  /* 订单薄-绿色背景 */
  --function-orderbook-sell: rgba(229, 51, 90, 0.1);  /* 订单薄-红色背景 */
  --function-share-bg: #0c0e10;  /* 分享组件上方背景色 */
  --function-share-footer: #ffffff;  /* 分享组件底部背景色 */
  --function-trade-buy: #089973;  /* 交易买卖绿色按钮 */
  --function-trade-buy-active: #0d8979;  /* 交易买卖绿色按钮-活跃态 */
  --function-trade-buy-disable: #bbffed;  /* 交易买卖绿色按钮-禁用态 */
  --function-trade-buy-press: #0c6656;  /* 交易买卖绿色按钮-点击态 */
  --function-trade-sell: #e5335a;  /* 交易买卖红色按钮 */
  --function-trade-sell-active: #d41e37;  /* 交易买卖红色按钮-活跃态 */
  --function-trade-sell-disable: #fecedc;  /* 交易买卖红色按钮-禁用态 */
  --function-trade-sell-press: #b01b39;  /* 交易买卖红色按钮-点击态 */
  --icon-black: #000000;  /* always 黑 */
  --icon-brand: #0d8979;  /* icon品牌色 */
  --icon-disable: #bcbdbf;  /* icon禁用色 */
  --icon-green: #08ba8d;  /* 图标涨跌色-绿色 */
  --icon-invert: #f7f8fa;  /* icon反转色 */
  --icon-primary: #0c0e10;  /* icon一级色 */
  --icon-red: #e5335a;  /* 图标涨跌色-红色 */
  --icon-secondary: #7a7c7f;  /* icon二级色 */
  --icon-tabbar: #383a3d;
  --icon-tertiary: #a6a8aa;  /* icon三级色 */
  --icon-tips: #bcbdbf;  /* 四级色 */
  --icon-white: #ffffff;  /* always 白 */
  --layer-1: #ffffff;  /* 用于弹窗、筛选面板 */
  --layer-2: rgba(0, 0, 0, 0.06);  /* 灰底用于弹出层、卡片 */
  --surface-default-Alpha: rgba(0, 0, 0, 0.5);  /* 遮罩-蒙层 */
  --surface-default-apex: #bcbdbf;  /* 背景色-四级 */
  --surface-default-base: #ffffff;  /* 背景色-一级 */
  --surface-default-black: #000000;  /* 背景色-alway 黑 */
  --surface-default-brand: #0bd4c6;
  --surface-default-cardbase: #f0f1f2;  /* 卡片-一级色 */
  --surface-default-cardbrand: rgba(17, 245, 230, 0.2);
  --surface-default-cardoverlay: #ffffff;  /* 卡片-二级色 */
  --surface-default-cardraised: #f7f8fa;  /* 卡片-二级色 */
  --surface-default-invert: #0c0e10;  /* 背景色-反色 */
  --surface-default-overlay: #e0e0e0;  /* 背景色-三级 */
  --surface-default-raised: #f0f1f2;  /* 背景色-二级 */
  --surface-default-white: #ffffff;  /* 背景色-alway 白 */
  --surface-negative-alpha: rgba(229, 51, 90, 0.2);  /* 辅助色-红色-透明度 */
  --surface-negative-base: #e5335a;  /* 辅助色-红色 */
  --surface-negative-hover: #b01b39;  /* 辅助色-红色-hover态 */
  --surface-negative-pressed: #8e1830;  /* 辅助色-红色-点击态 */
  --surface-positive-alpha: rgba(8, 153, 115, 0.2);  /* 辅助色-绿色-透明度 */
  --surface-positive-base: #089973;  /* 辅助色-绿色 */
  --surface-positive-hover: #097e61;  /* 辅助色-绿色-hover态 */
  --surface-positive-pressed: #0a644d;  /* 辅助色-绿色-点击态 */
  --surface-warning-alpha: rgba(252, 194, 69, 0.2);  /* 辅助色-黄色-透明度 */
  --surface-warning-base: #fcc245;  /* 辅助色-黄色 */
  --surface-warning-hover: #f9b622;  /* 辅助色-黄色-hover */
  --surface-warning-pressed: #eca609;  /* 辅助色-黄色-点击态 */
  --text-black: #000000;  /* always 黑 */
  --text-brand: #0d8979;  /* 文字品牌色 */
  --text-disable: #bcbdbf;  /* 禁用色 */
  --text-green: #08ba8d;  /* 文字涨跌色-绿色 */
  --text-invert: #f7f8fa;  /* 文字反转色 */
  --text-primary: #0c0e10;  /* 文字一级色 */
  --text-red: #e5335a;  /* 文字涨跌色-红色 */
  --text-secondary: #7a7c7f;  /* 文字二级色 */
  --text-tabbar: #383a3d;
  --text-tertiary: #a6a8aa;  /* 文字三级色 */
  --text-tips: #bcbdbf;  /* 四级色 */
  --text-white: #ffffff;  /* always 白 */
}

.theme-dark {
  --border-brand: #0bd4c6;  /* 描边-品牌色 */
  --border-invert: #f7f8fa;
  --border-primary: #383a3d;  /* 描边-浅 */
  --border-secondary: #222427;  /* 描边-中 */
  --border-third: #0c0e10;  /* 描边-重 */
  --cmpt-button-hover: #0bd4c6;  /* 品牌按钮-hover态 */
  --cmpt-button-press: #23b4a5;  /* 品牌按钮-点击态 */
  --cmpt-button-primary: #11f5e6;  /* 品牌按钮-背景色 */
  --cmpt-button-soft: rgba(255, 255, 255, 0.1);  /* 次级按钮-背景色 */
  --cmpt-button-soft-disable: rgba(255, 255, 255, 0.3);  /* 二级按钮-禁用态 */
  --cmpt-button-soft-hover: rgba(255, 255, 255, 0.3);  /* 次级按钮-hover态 */
  --cmpt-button-soft-press: rgba(255, 255, 255, 0.4);  /* 次级按钮-点击态 */
  --cmpt-button-third-hover: #646669;  /* 三级按钮-hover态 */
  --cmpt-button-third-press: #7a7c7f;  /* 三级按钮-点击态 */
  --cmpt-checkbox-brand: #11f5e6;  /* 复选框品牌色 */
  --cmpt-gradient-bg-0: rgba(0, 0, 0, 0);  /* 蒙层-0透明度 */
  --cmpt-gradient-bg-100: #0c0e10;  /* 蒙层-100透明度 */
  --cmpt-input: #4e5053;  /* 输入框描边色 */
  --cmpt-input-disable: #222427;  /* 输入框-禁用态 */
  --cmpt-input-hover: #11f5e6;  /* 输入框-hover态 */
  --cmpt-notification: #222427;
  --cmpt-select: #4e5053;  /* 菜单面板选中 */
  --cmpt-slider-active: #e0e0e0;  /* 滑动条选中态 */
  --cmpt-slider-inactive-line: #4e5053;  /* 滑动条未选中态 */
  --cmpt-slider-tooltip: #f7f8fa;
  --cmpt-switch-inactive-bg: #4e5053;  /* 开关-关闭态底色 */
  --cmpt-switch-primary: #11f5e6;  /* 品牌开关-背景色 */
  --cmpt-tabs-bg: #11f5e6;  /* tabs-背景色 */
  --cmpt-tabs-green: #089973;  /* tabs card-绿色 */
  --cmpt-tabs-primary: #4e5053;
  --cmpt-tabs-red: #e5335a;  /* tabs card-红色 */
  --cmpt-tag-green: rgba(8, 153, 115, 0.2);  /* 标签-涨跌色-绿 */
  --cmpt-tag-normal: rgba(255, 255, 255, 0.06);  /* 标签-默认色 */
  --cmpt-tag-red: rgba(229, 51, 90, 0.2);  /* 标签-涨跌色-红 */
  --cmpt-toast: #383a3d;
  --cmpt-tooltip: #383a3d;  /* 文字气泡底色 */
  --divider-default: #4e5053;  /* 分割线-默认 */
  --divider-light: #383a3d;  /* 分割线-浅 */
  --function-coin-dis: #222427;  /* 占位币种背景 */
  --function-orderbook-buy: rgba(8, 153, 115, 0.2);  /* 订单薄-绿色背景 */
  --function-orderbook-sell: rgba(229, 51, 90, 0.2);  /* 订单薄-红色背景 */
  --function-share-bg: #0c0e10;  /* 分享组件上方背景色 */
  --function-share-footer: #222427;  /* 分享组件底部背景色 */
  --function-trade-buy: #089973;  /* 交易买卖绿色按钮 */
  --function-trade-buy-active: #0d8979;  /* 交易买卖绿色按钮-活跃态 */
  --function-trade-buy-disable: #bbffed;  /* 交易买卖绿色按钮-禁用态 */
  --function-trade-buy-press: #0c6656;  /* 交易买卖绿色按钮-点击态 */
  --function-trade-sell: #e5335a;  /* 交易买卖红色按钮 */
  --function-trade-sell-active: #d41e37;  /* 交易买卖红色按钮-活跃态 */
  --function-trade-sell-disable: #fecedc;  /* 交易买卖红色按钮-禁用态 */
  --function-trade-sell-press: #b01b39;  /* 交易买卖红色按钮-点击态 */
  --icon-black: #000000;  /* always 黑 */
  --icon-brand: #11f5e6;  /* icon品牌色 */
  --icon-disable: #4e5053;  /* icon禁用色 */
  --icon-green: #08dba6;  /* 图标涨跌色-绿色 */
  --icon-invert: #222427;  /* icon反转色 */
  --icon-primary: #f7f8fa;  /* icon一级色 */
  --icon-red: #e5335a;  /* 图标涨跌色-红色 */
  --icon-secondary: #a6a8aa;  /* icon二级色 */
  --icon-tabbar: #ffffff;
  --icon-tertiary: #646669;  /* icon三级色 */
  --icon-tips: #4e5053;  /* 四级色 */
  --icon-white: #ffffff;  /* always 白 */
  --layer-1: #222427;  /* 用于弹窗、筛选面板 */
  --layer-2: rgba(255, 255, 255, 0.1);  /* 灰底用于弹出层、卡片 */
  --surface-default-Alpha: rgba(0, 0, 0, 0.5);  /* 遮罩-蒙层 */
  --surface-default-apex: #7a7c7f;  /* 背景色-四级 */
  --surface-default-base: #0c0e10;  /* 背景色-一级 */
  --surface-default-black: #000000;  /* 背景色-alway 黑 */
  --surface-default-brand: #11f5e6;
  --surface-default-cardbase: #0c0e10;  /* 卡片-一级色 */
  --surface-default-cardbrand: rgba(17, 245, 230, 0.2);
  --surface-default-cardoverlay: #222427;  /* 卡片-二级色 */
  --surface-default-cardraised: #222427;  /* 卡片-二级色 */
  --surface-default-invert: #ffffff;  /* 背景色-反色 */
  --surface-default-overlay: #4e5053;  /* 背景色-三级 */
  --surface-default-raised: #222427;  /* 背景色-二级 */
  --surface-default-white: #ffffff;  /* 背景色-alway 白 */
  --surface-negative-alpha: rgba(229, 51, 90, 0.2);  /* 辅助色-红色-透明度 */
  --surface-negative-base: #e5335a;  /* 辅助色-红色 */
  --surface-negative-hover: #b01b39;  /* 辅助色-红色-hover态 */
  --surface-negative-pressed: #8e1830;  /* 辅助色-红色-点击态 */
  --surface-positive-alpha: rgba(8, 153, 115, 0.2);  /* 辅助色-绿色-透明度 */
  --surface-positive-base: #089973;  /* 辅助色-绿色 */
  --surface-positive-hover: #097e61;  /* 辅助色-绿色-hover态 */
  --surface-positive-pressed: #0a644d;  /* 辅助色-绿色-点击态 */
  --surface-warning-alpha: rgba(252, 194, 69, 0.2);  /* 辅助色-黄色-透明度 */
  --surface-warning-base: #fcc245;  /* 辅助色-黄色 */
  --surface-warning-hover: #f9b622;  /* 辅助色-黄色-hover */
  --surface-warning-pressed: #eca609;  /* 辅助色-黄色-点击态 */
  --text-black: #000000;  /* always 黑 */
  --text-brand: #11f5e6;  /* 文字品牌色 */
  --text-disable: #4e5053;  /* 禁用色 */
  --text-green: #08dba6;  /* 文字涨跌色-绿色 */
  --text-invert: #222427;  /* 文字反转色 */
  --text-primary: #f7f8fa;  /* 文字一级色 */
  --text-red: #e5335a;  /* 文字涨跌色-红色 */
  --text-secondary: #a6a8aa;  /* 文字二级色 */
  --text-tabbar: #ffffff;
  --text-tertiary: #646669;  /* 文字三级色 */
  --text-tips: #4e5053;  /* 四级色 */
  --text-white: #ffffff;  /* always 白 */
}
/* === FIGMA-AUTOGEN:END === */
