/* ============================================================
   00001.hk 统一设计令牌 —— 覆盖 keepone-dark.css 的取值
   生效范围：非 light 主题（保留原有浅色开关）
   目的：让 wallet / ops / mail / userpanel / mt5 / admin 的配色
         与 keepone.win /zh/ONE/ 完全一致
   ============================================================ */

html:not([data-theme="light"]) {
  /* 背景层次 */
  --bg:        #070C16;
  --topbar:    #070C16;
  --panel:     #0F1B2D;
  --panel-2:   #12253A;
  --panel-3:   #16283A;

  /* 线 */
  --line:      rgba(255, 255, 255, .08);
  --line-soft: rgba(255, 255, 255, .05);
  --input-line: rgba(255, 255, 255, .14);
  --toast-line: rgba(255, 255, 255, .18);
  --ring-track: rgba(255, 255, 255, .08);

  /* 文字 */
  --text:      #E8EDF2;
  --muted:     #8A9AA8;
  --faint:     #5E6C79;

  /* 语义色 —— 品牌绿换成荧光绿 */
  --green:     #D8F937;
  --btn-ink:   #070C16;
  --red:       #E5484D;
  --amber:     #FFB340;
  --blue:      #6EA8FE;
  --teal:      #35C46A;

  /* 圆角与间距（更接近 keepone 应用区） */
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 14px;
  --gap:  12px;
  --pad:  18px;
  --maxw: 1033px;
}

/* 按钮类共用：把旧的高饱和绿改成荧光绿 + 深色字 */
html:not([data-theme="light"]) .btn,
html:not([data-theme="light"]) button.primary,
html:not([data-theme="light"]) .btn-primary {
  border-radius: 9px;
  font-weight: 600;
}

/* 卡片圆角统一 */
html:not([data-theme="light"]) .card,
html:not([data-theme="light"]) .panel,
html:not([data-theme="light"]) .box {
  border-radius: 14px;
  box-shadow: none;
}

/* 输入框 */
html:not([data-theme="light"]) input,
html:not([data-theme="light"]) select,
html:not([data-theme="light"]) textarea {
  background: #0B1420;
  border-color: rgba(255, 255, 255, .14);
  color: #E8EDF2;
  border-radius: 9px;
}
html:not([data-theme="light"]) input:focus,
html:not([data-theme="light"]) select:focus,
html:not([data-theme="light"]) textarea:focus {
  border-color: rgba(216, 249, 55, .5);
  box-shadow: 0 0 0 3px rgba(216, 249, 55, .1);
}

/* 顶栏 */
html:not([data-theme="light"]) .topbar {
  background: #070C16;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* 表格 */
html:not([data-theme="light"]) table th {
  color: #8A9AA8;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
html:not([data-theme="light"]) table td {
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
html:not([data-theme="light"]) table tr:hover td {
  background: rgba(255, 255, 255, .02);
}
