/* 99app 管理端品牌覆盖：底色 / 主色 / 标识（必须放在所有原版 CSS 之后） */
:root:not([data-theme=dark]){
  --bg:#f7f8f9;
  --panel:#ffffff;
  --header:#ffffff;
  --text:#1c1f22;
  --muted:#606771;
  --line:#e5e7eb;
  --soft:#f4f6f7;
  --hover:#eef1f3;
  --accent:#17604f;
  --accent-hover:#12503f;
  --button-blue:#17604f;
  --blue-soft:#eaf1ed;
  --green:#1c7a58;
  --red:#b8452f;
  --radius:14px;
  --brand-accent:#17604f;
}
html:root,body{background:var(--bg)!important;background-image:none!important;color:var(--text)}

/* 旧品牌资源一律隐藏 */
.mailworld-lockup{display:none!important}
.mailworld-logo-light,.mailworld-logo-dark{display:none!important}

/* 新标识 */
.brand-lockup{display:inline-flex;align-items:center;gap:9px;text-decoration:none;white-space:nowrap}
.brand-mark-svg{width:30px;height:30px;border-radius:9px;background:var(--brand-accent);color:#f7f8f6;display:grid;place-items:center;flex:0 0 auto}
.brand-mark-svg svg{width:17px;height:17px;display:block}
.brand-text{font-size:20px;font-weight:750;letter-spacing:-.6px;color:var(--text);line-height:1}
.login-brand-row .brand-text{font-size:22px}

/* 主按钮跟随主色（压制 ui-refresh 的 --button-blue 规则） */
:root .primary,
:root button.primary,
:root .actions .primary,
:root .login-card > .primary{
  background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important;
  border-radius:10px;
}
:root .primary:hover,
:root button.primary:hover,
:root .actions .primary:hover{
  background:var(--accent-hover)!important;border-color:var(--accent-hover)!important;color:#fff!important;
}
:root :focus-visible{outline-color:rgba(23,96,79,.42)}

/* 卡片与头部 */
.panel{border-radius:var(--radius)}
header{background:var(--header)!important;backdrop-filter:saturate(140%) blur(6px)}