/* 浅色模式品牌墨绿统一层。深色主题不匹配本文件中的任何规则。 */
html[data-theme="light"] {
  --light-brand-green: #173c35;
  --light-brand-raised: #214c43;
  --light-brand-muted: #c3d8cf;
  --light-brand-paper: #fffdf8;
  --light-brand-ink: #203c31;
}

/* 登录：墨绿欢迎区 + 暖白表单，消除浏览器自动填充蓝底。 */
html[data-theme="light"] body.auth-mode .auth-card {
  overflow: hidden !important;
  padding: 0 32px 30px !important;
  background: var(--light-brand-paper) !important;
  border-color: #c9d4cb !important;
  box-shadow: 0 26px 70px rgba(23,60,53,.16),0 3px 14px rgba(23,60,53,.07) !important;
}
html[data-theme="light"] body.auth-mode .auth-card-intro {
  margin: 0 -32px 25px !important;
  padding: 27px 32px 23px !important;
  background: var(--light-brand-green) !important;
}
html[data-theme="light"] body.auth-mode .auth-card-intro h1 { color:#fff !important; text-shadow:none !important; }
html[data-theme="light"] body.auth-mode .auth-card-intro p { color:var(--light-brand-muted) !important; }
html[data-theme="light"] body.auth-mode .auth-card .tabs { background:#edf1e8 !important; border-color:#d2d9c9 !important; }
html[data-theme="light"] body.auth-mode .auth-card .tab-btn { color:#66786d !important; }
html[data-theme="light"] body.auth-mode .auth-card .tab-btn.active { color:#76520f !important; background:var(--light-brand-paper) !important; border-color:#d5c7a7 !important; }
html[data-theme="light"] body.auth-mode .auth-card .form-group label { color:#355547 !important; }
html[data-theme="light"] body.auth-mode .auth-card .form-group :is(input,select),
html[data-theme="light"] body.auth-mode .auth-card .captcha-img {
  color:var(--light-brand-ink) !important;
  background:var(--light-brand-paper) !important;
  border-color:#b9c9c0 !important;
  box-shadow:inset 0 1px 2px rgba(23,60,53,.035) !important;
}
html[data-theme="light"] body.auth-mode .auth-card .form-group :is(input,select):focus {
  color:var(--light-brand-ink) !important;
  background:#fffefb !important;
  border-color:#377566 !important;
  box-shadow:0 0 0 3px rgba(33,108,89,.13) !important;
}
html[data-theme="light"] body.auth-mode .auth-card input:-webkit-autofill,
html[data-theme="light"] body.auth-mode .auth-card input:-webkit-autofill:hover,
html[data-theme="light"] body.auth-mode .auth-card input:-webkit-autofill:focus,
html[data-theme="light"] body.auth-mode .auth-card input:autofill {
  -webkit-text-fill-color:var(--light-brand-ink) !important;
  caret-color:var(--light-brand-ink) !important;
  -webkit-box-shadow:0 0 0 1000px var(--light-brand-paper) inset !important;
  box-shadow:0 0 0 1000px var(--light-brand-paper) inset !important;
  border-color:#b9c9c0 !important;
}
html[data-theme="light"] body.auth-mode .auth-card .auth-password-toggle {
  color:#76520f !important;
  background:#f3ead3 !important;
  border-left:1px solid #d9cba9 !important;
}
html[data-theme="light"] body.auth-mode .auth-card .auth-password-toggle:hover { color:#5f410c !important; background:#eadbb7 !important; }

/* 大厅品牌导航。 */
html[data-theme="light"] body.view-lobby-view .lobby-nav-rail {
  color:#fff !important;
  background:var(--light-brand-green) !important;
  border-color:rgba(255,255,255,.12) !important;
  box-shadow:0 12px 30px rgba(23,60,53,.12) !important;
}
html[data-theme="light"] body.view-lobby-view .lobby-nav-item { color:var(--light-brand-muted) !important; }
html[data-theme="light"] body.view-lobby-view .lobby-nav-item :is(svg,.lobby-nav-icon) { color:var(--light-brand-muted) !important; }
html[data-theme="light"] body.view-lobby-view .lobby-nav-item:is(:hover,.active) {
  color:#fff !important;
  background:rgba(255,255,255,.09) !important;
  border-color:rgba(232,179,65,.68) !important;
}
html[data-theme="light"] body.view-lobby-view .lobby-nav-item:is(:hover,.active) :is(svg,.lobby-nav-icon) { color:#f2d17b !important; }

/* 浅色大厅棋谱缩略图恢复木纹、网格和黑白棋子。 */
html[data-theme="light"] body.view-lobby-view :is(.kifu-board-thumb,.side-game-thumb) {
  background-color:#dfbd77 !important;
  background-image:
    radial-gradient(circle at 24% 24%,#203028 0 4px,transparent 4.7px),
    radial-gradient(circle at 62% 30%,#fffdf8 0 4px,#7d6d51 4.4px,transparent 4.9px),
    radial-gradient(circle at 42% 64%,#203028 0 4px,transparent 4.7px),
    linear-gradient(90deg,rgba(93,66,28,.48) 1px,transparent 1px),
    linear-gradient(0deg,rgba(93,66,28,.48) 1px,transparent 1px) !important;
  background-size:auto,auto,auto,20% 20%,20% 20% !important;
  border-color:#b58e4e !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.32) !important;
}
html[data-theme="light"] body.view-lobby-view .kifu-board-thumb.alt {
  background-image:
    radial-gradient(circle at 42% 24%,#203028 0 4px,transparent 4.7px),
    radial-gradient(circle at 68% 52%,#fffdf8 0 4px,#7d6d51 4.4px,transparent 4.9px),
    radial-gradient(circle at 28% 70%,#203028 0 4px,transparent 4.7px),
    linear-gradient(90deg,rgba(93,66,28,.48) 1px,transparent 1px),
    linear-gradient(0deg,rgba(93,66,28,.48) 1px,transparent 1px) !important;
}

/* 专业复盘、棋力画像：墨绿外壳，暖白操作卡。 */
html[data-theme="light"] :is(#kifu-modal,#go-profile-modal,#batch-analysis-modal) .review-workbench-modal {
  color:#fff !important;
  background:var(--light-brand-green) !important;
  border-color:rgba(255,255,255,.12) !important;
  box-shadow:0 28px 80px rgba(7,29,24,.30) !important;
}
html[data-theme="light"] :is(#kifu-modal,#go-profile-modal,#batch-analysis-modal) .review-workbench-modal > .modal-title,
html[data-theme="light"] :is(#kifu-modal,#go-profile-modal,#batch-analysis-modal) .review-workbench-modal > .modal-title :is(span,strong) {
  color:#fff !important;
  background:var(--light-brand-green) !important;
}
html[data-theme="light"] :is(#kifu-modal,#go-profile-modal,#batch-analysis-modal) .modal-x { color:var(--light-brand-muted) !important; }

html[data-theme="light"] #kifu-modal :is(.review-workbench-intro,.review-source-grid>article,.review-source-grid>button,.review-advanced-filter) {
  color:var(--light-brand-ink) !important;
  background:var(--light-brand-paper) !important;
  border-color:#d4dccf !important;
}
html[data-theme="light"] #kifu-modal :is(.review-workbench-intro,.review-source-grid>article,.review-source-grid>button,.review-advanced-filter) :is(strong,b) { color:#785611 !important; }
html[data-theme="light"] #kifu-modal :is(.review-workbench-intro,.review-source-grid>article,.review-source-grid>button,.review-advanced-filter) :is(span,small,label) { color:#64786d !important; }
html[data-theme="light"] #kifu-modal #kifu-filters :is(input,select,button),
html[data-theme="light"] #kifu-modal .review-advanced-filter :is(input,select,button) {
  color:var(--light-brand-ink) !important;
  background:var(--light-brand-paper) !important;
  border-color:#c4d0c8 !important;
}
html[data-theme="light"] #kifu-modal :is(.saved-game-card,.kifu-item) {
  color:#fff !important;
  background:var(--light-brand-raised) !important;
  border-color:rgba(255,255,255,.12) !important;
}
html[data-theme="light"] #kifu-modal :is(.saved-game-card,.kifu-item) :is(.kifu-title,.stone-label,strong,b) { color:#fff !important; }
html[data-theme="light"] #kifu-modal :is(.saved-game-card,.kifu-item) :is(.kifu-meta,.kifu-rank,.kifu-vs,small,p) { color:var(--light-brand-muted) !important; }
html[data-theme="light"] #kifu-modal :is(.saved-game-card,.kifu-item) :is(button,.kifu-dl-btn) {
  color:#f5d77f !important;
  background:rgba(10,37,31,.36) !important;
  border-color:rgba(232,179,65,.55) !important;
}
html[data-theme="light"] #kifu-modal :is(.saved-game-card,.kifu-item) :is(button,.kifu-dl-btn):hover { color:#fff !important; background:rgba(232,179,65,.22) !important; }
html[data-theme="light"] #kifu-modal .kifu-board-badge { color:#f6cf71 !important; background:#17352f !important; border-color:rgba(232,179,65,.58) !important; }

html[data-theme="light"] #go-profile-modal :is(.profile-import-toolbar,.go-profile-content) {
  color:var(--light-brand-ink) !important;
  background:#f2f4ed !important;
  border-color:#d3dccf !important;
}
html[data-theme="light"] #go-profile-modal .go-profile-content { padding:14px !important; border:1px solid #d3dccf !important; border-radius:10px !important; }
html[data-theme="light"] #go-profile-modal :is(.profile-import-toolbar,.go-profile-content) :is(h1,h2,h3,p,span,small,label) { color:#526b5e !important; }
html[data-theme="light"] #go-profile-modal :is(.profile-import-toolbar,.go-profile-content) :is(strong,b) { color:#785611 !important; }
html[data-theme="light"] #go-profile-modal :is(.go-profile-head,.go-profile-record-grid article,.go-profile-score-hero,.go-profile-split,.go-profile-growth,.go-profile-trend,.go-profile-issue-grid article,.go-profile-task-grid article,.go-profile-monthly,.go-profile-learner-card,.go-profile-weekly,.go-profile-seven-day article) {
  background:var(--light-brand-paper) !important;
  border-color:#d2dcd4 !important;
}
html[data-theme="light"] #go-profile-modal :is(.profile-import-toolbar,.go-profile-content) :is(input,select,button) { color:var(--light-brand-ink) !important; background:var(--light-brand-paper) !important; border-color:#bdcbc2 !important; }

/* 其余仍需保留深色品牌块的浅色模式组件统一到同一色号。棋钟按既定要求保留原样。 */
html[data-theme="light"] body:not(.auth-mode) :is(.training-library-modal,.my-games-workspace-modal) {
  background:var(--light-brand-green) !important;
  border-color:rgba(255,255,255,.12) !important;
}
html[data-theme="light"] body:not(.auth-mode) :is(.training-library-modal,.my-games-workspace-modal) > .modal-title { color:#fff !important; }

@media (max-width:620px) {
  html[data-theme="light"] body.auth-mode .auth-card { padding:0 22px 24px !important; }
  html[data-theme="light"] body.auth-mode .auth-card-intro { margin:0 -22px 22px !important; padding:23px 22px 20px !important; }
  html[data-theme="light"] body.view-lobby-view .lobby-nav-rail { background:var(--light-brand-green) !important; }
  html[data-theme="light"] :is(#kifu-modal,#go-profile-modal,#batch-analysis-modal) .review-workbench-modal > .modal-title { background:var(--light-brand-green) !important; }
}

/* 动态生成的棋谱规则确认框及零内边距弹窗。 */
html[data-theme="light"] body:not(.auth-mode) .kr-modal {
  color:var(--light-brand-ink) !important;
  background:var(--light-brand-paper) !important;
  border-color:#aec3b8 !important;
}
html[data-theme="light"] body:not(.auth-mode) .kr-modal h3 {
  margin:-24px -24px 18px !important;
  padding:19px 24px 16px !important;
  color:#fff !important;
  background:var(--light-brand-green) !important;
}
html[data-theme="light"] body:not(.auth-mode) .kr-modal :is(p,label) { color:#587064 !important; }
html[data-theme="light"] body:not(.auth-mode) .kr-modal :is(select,input) { color:var(--light-brand-ink) !important; background:var(--light-brand-paper) !important; border-color:#b8c9bf !important; }
html[data-theme="light"] body:not(.auth-mode) .kr-modal .kr-result { color:#315b4d !important; background:#e7efe8 !important; }
html[data-theme="light"] body:not(.auth-mode) .kr-modal .kr-warning { color:#7a5b1b !important; }

html[data-theme="light"] body:not(.auth-mode) :is(.aiqi-center-modal,.my-profile-modal,.site-service-modal) > .modal-head {
  margin:0 !important;
  color:#fff !important;
  background:var(--light-brand-green) !important;
}
html[data-theme="light"] body:not(.auth-mode) .software-center-header {
  color:#fff !important;
  background:var(--light-brand-green) !important;
  border-color:rgba(255,255,255,.12) !important;
}
html[data-theme="light"] body:not(.auth-mode) .software-center-header .modal-title { color:#fff !important; }
html[data-theme="light"] body:not(.auth-mode) .software-center-header p { color:var(--light-brand-muted) !important; }
html[data-theme="light"] body:not(.auth-mode) .software-center-header .software-close-btn { color:var(--light-brand-muted) !important; background:rgba(255,255,255,.06) !important; border-color:rgba(255,255,255,.16) !important; }

/* 必须位于通用弹窗文字规则之后，保证墨绿标题条上的副标题保持浅色。 */
html[data-theme="light"] body:not(.auth-mode) .modal .handicap-rules-modal-head p { color:var(--light-brand-muted) !important; }

html[data-theme="light"] body:not(.auth-mode) #my-games-modal .my-games-workspace-modal > .modal-title {
  margin:-32px -32px 20px !important;
  padding:18px 24px !important;
  color:#fff !important;
  background:var(--light-brand-green) !important;
  border-bottom:1px solid rgba(255,255,255,.12) !important;
}
html[data-theme="light"] body:not(.auth-mode) #my-games-modal .my-games-workspace-modal > .modal-title :is(span,button) { color:#fff !important; }
html[data-theme="light"] body:not(.auth-mode) :is(#kifu-modal,#go-profile-modal,#batch-analysis-modal,#training-library-modal) .modal-toolbar-title > div > button:last-child,
html[data-theme="light"] body:not(.auth-mode) #kifu-modal .modal-title > button:last-child,
html[data-theme="light"] body:not(.auth-mode) #kifu-modal .modal-title > div > button:last-child { color:var(--light-brand-muted) !important; }
html[data-theme="light"] body:not(.auth-mode) :is(#kifu-modal,#training-library-modal) :is(.loading,.empty-state) { color:var(--light-brand-muted) !important; }

@media (max-width:620px) {
  html[data-theme="light"] body:not(.auth-mode) #my-games-modal .my-games-workspace-modal > .modal-title {
    margin:-14px -14px 16px !important;
    padding:14px !important;
  }
}

/* 特殊弹窗的内部结构没有使用通用 modal-head，单独纳入浅色体系。 */
html[data-theme="light"] body:not(.auth-mode) .handicap-rules-modal-head {
  margin:-22px -22px 16px !important;
  padding:18px 22px 16px !important;
  background:var(--light-brand-green) !important;
  border-bottom:1px solid rgba(255,255,255,.12) !important;
}
html[data-theme="light"] body:not(.auth-mode) .handicap-rules-modal-head .modal-title { color:#fff !important; }
html[data-theme="light"] body:not(.auth-mode) .handicap-rules-modal-head p { color:var(--light-brand-muted) !important; }
html[data-theme="light"] body:not(.auth-mode) .handicap-rules-modal-head > button {
  color:var(--light-brand-muted) !important;
  background:rgba(255,255,255,.06) !important;
  border-color:rgba(255,255,255,.16) !important;
}
html[data-theme="light"] body:not(.auth-mode) .handicap-rules-list section {
  color:var(--light-brand-ink) !important;
  background:#f1f4ed !important;
  background-image:none !important;
  border-color:#c6d3ca !important;
}
html[data-theme="light"] body:not(.auth-mode) .handicap-rules-list strong { color:var(--light-brand-ink) !important; }
html[data-theme="light"] body:not(.auth-mode) .handicap-rules-list p { color:#587064 !important; }
html[data-theme="light"] body:not(.auth-mode) .handicap-rule-index {
  color:#fff !important;
  background:var(--light-brand-green) !important;
  background-image:none !important;
  border-color:#376e61 !important;
}
html[data-theme="light"] body:not(.auth-mode) .handicap-rules-note {
  color:#536b5f !important;
  background:#f7f2e4 !important;
  border-left-color:#6d9186 !important;
}

html[data-theme="light"] body:not(.auth-mode) .cloud-modal-grid > div {
  color:var(--light-brand-ink) !important;
  background:#f1f4ed !important;
  border-color:#c6d3ca !important;
}
html[data-theme="light"] body:not(.auth-mode) .cloud-modal-grid > div :is(strong,b) { color:var(--light-brand-ink) !important; }
html[data-theme="light"] body:not(.auth-mode) .cloud-modal-grid > div :is(p,span,small) { color:#587064 !important; }

html[data-theme="light"] body:not(.auth-mode) #score-modal .score-modal-header {
  color:#fff !important;
  background:var(--light-brand-green) !important;
  border-color:rgba(255,255,255,.12) !important;
}
html[data-theme="light"] body:not(.auth-mode) #score-modal :is(.score-detail-row,.score-waiting,.score-summary) {
  color:var(--light-brand-ink) !important;
  background:#f1f4ed !important;
  border-color:#c6d3ca !important;
}
html[data-theme="light"] body:not(.auth-mode) #score-modal .score-agree-row :is(button,.score-agree-btn),
html[data-theme="light"] body:not(.auth-mode) #score-modal #score-cancel-row button {
  color:#fff !important;
  background:var(--light-brand-green) !important;
  background-image:none !important;
  border-color:var(--light-brand-green) !important;
  box-shadow:none !important;
}

html[data-theme="light"] body:not(.auth-mode) :is(.software-center-modal-panel,.aiqi-center-modal,.my-profile-modal,.site-service-modal) :is(
  .software-center-body,.software-center-list,.aiqi-center-body,.aiqi-center-content,.modal-body,.site-service-content
) {
  color:var(--light-brand-ink) !important;
  background:var(--light-brand-paper) !important;
}
html[data-theme="light"] body:not(.auth-mode) .recharge-form-modal :is(
  .recharge-target,.recharge-pkg-btn,.recharge-input-row input,.recharge-note-wrap input,.recharge-note-wrap select
) {
  color:var(--light-brand-ink) !important;
  background:#f1f4ed !important;
  border-color:#c6d3ca !important;
}

@media (max-width:620px) {
  html[data-theme="light"] body:not(.auth-mode) .handicap-rules-modal-head {
    margin:-14px -14px 14px !important;
    padding:15px 14px 13px !important;
  }
}

/* 浅色专用让子卡片：原深色主题图片不变。十张入口统一为同一比例。 */
html[data-theme="light"] body.view-lobby-view .handicap-grade-card {
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:473 / 254 !important;
  background:var(--light-brand-green) !important;
}
html[data-theme="light"] body.view-lobby-view .handicap-card-art { width:100% !important; height:100% !important; object-fit:cover !important; }
html[data-theme="light"] body.view-lobby-view .handicap-card-art[src$="rushen-fenxian.png"] { content:url('/assets/handicap-cards-light/rushen-fenxian.png'); }
html[data-theme="light"] body.view-lobby-view .handicap-card-art[src$="zuozhao-2.png"] { content:url('/assets/handicap-cards-light/zuozhao-2.png'); }
html[data-theme="light"] body.view-lobby-view .handicap-card-art[src$="juti-3.png"] { content:url('/assets/handicap-cards-light/juti-3.png'); }
html[data-theme="light"] body.view-lobby-view .handicap-card-art[src$="tongyou-4.png"] { content:url('/assets/handicap-cards-light/tongyou-4.png'); }
html[data-theme="light"] body.view-lobby-view .handicap-card-art[src$="yongzhi-5.png"] { content:url('/assets/handicap-cards-light/yongzhi-5.png'); }
html[data-theme="light"] body.view-lobby-view .handicap-card-art[src$="xiaoqiao-6.png"] { content:url('/assets/handicap-cards-light/xiaoqiao-6.png'); }
html[data-theme="light"] body.view-lobby-view .handicap-card-art[src$="douli-7.png"] { content:url('/assets/handicap-cards-light/douli-7.png'); }
html[data-theme="light"] body.view-lobby-view .handicap-card-art[src$="ruoyu-8.png"] { content:url('/assets/handicap-cards-light/ruoyu-8.png'); }
html[data-theme="light"] body.view-lobby-view .handicap-card-art[src$="shouzhuo-9.png"] { content:url('/assets/handicap-cards-light/shouzhuo-9.png'); }
html[data-theme="light"] body.view-lobby-view .handicap-rules-card-art {
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}
html[data-theme="light"] body.view-lobby-view #rules-card-bg stop:first-child { stop-color:#173c35 !important; }
html[data-theme="light"] body.view-lobby-view #rules-card-bg stop:last-child { stop-color:#102f29 !important; }
html[data-theme="light"] body.view-lobby-view .handicap-rules-card-art [fill="#081a16"] { fill:#12372f !important; }

/* 浅色 Logo 条统一为 #173C35；深色主题继续使用原规则。 */
html[data-theme="light"] body .auth-brand-logo,
html[data-theme="light"] body:not(.auth-mode) #navbar .logo {
  background:var(--light-brand-green) !important;
  border-color:rgba(255,255,255,.14) !important;
  box-shadow:0 6px 22px rgba(23,60,53,.16) !important;
}
html[data-theme="light"] body .auth-brand-logo,
html[data-theme="light"] body:not(.auth-mode) .site-logo-image { content:url('/assets/aiqigo-logo-horizontal.svg') !important; }

/* 浅色通用弹窗：暖白内容面 + 研究台墨绿标题条。 */
html[data-theme="light"] body:not(.auth-mode) .modal:not(.review-workbench-modal) {
  color:var(--light-brand-ink) !important;
  background:var(--light-brand-paper) !important;
  border-color:#aec3b8 !important;
  box-shadow:0 26px 72px rgba(23,60,53,.22) !important;
}
html[data-theme="light"] body:not(.auth-mode) .modal:not(.review-workbench-modal) > .modal-title:not(.modal-toolbar-title),
html[data-theme="light"] body:not(.auth-mode) .modal:not(.review-workbench-modal) > .modal-head {
  color:#fff !important;
  background:var(--light-brand-green) !important;
  border-color:rgba(255,255,255,.12) !important;
}
html[data-theme="light"] body:not(.auth-mode) .modal:not(.review-workbench-modal) > .modal-title:not(.modal-toolbar-title) {
  margin:-32px -32px 20px !important;
  padding:22px 32px 18px !important;
}
html[data-theme="light"] body:not(.auth-mode) .modal:not(.review-workbench-modal) > .modal-head {
  margin:-32px -32px 20px !important;
  padding:18px 24px !important;
}
html[data-theme="light"] body:not(.auth-mode) .modal:not(.review-workbench-modal) > .modal-head .modal-title { color:#fff !important; }
html[data-theme="light"] body:not(.auth-mode) .modal :is(.modal-close,.modal-x,.modal-toolbar-title>div>button:last-child) {
  color:var(--light-brand-muted) !important;
  background:transparent !important;
  border-color:transparent !important;
}
html[data-theme="light"] body:not(.auth-mode) .modal :is(p,small,label,.free-match-sub,.result-detail,.empty-desc) { color:#587064 !important; }
html[data-theme="light"] body:not(.auth-mode) .modal :is(input,textarea,select) {
  color:var(--light-brand-ink) !important;
  background:var(--light-brand-paper) !important;
  border-color:#b8c9bf !important;
}
html[data-theme="light"] body:not(.auth-mode) .modal :is(input,textarea,select):focus {
  border-color:#377566 !important;
  box-shadow:0 0 0 3px rgba(33,108,89,.13) !important;
}
html[data-theme="light"] body:not(.auth-mode) .modal .modal-actions {
  background:#f1f4ed !important;
  border-color:#d3ddd4 !important;
}

/* 同一弹窗操作区按钮保持一致，不再突出金色主按钮。 */
html[data-theme="light"] body:not(.auth-mode) .modal .modal-actions :is(.modal-btn,.score-btn,button.primary),
html[data-theme="light"] body:not(.auth-mode) .modal :is(.aiqi-ok-btn,.mp-btn.primary,.recharge-confirm-btn) {
  color:#fff !important;
  background:var(--light-brand-green) !important;
  background-image:none !important;
  border-color:var(--light-brand-green) !important;
  box-shadow:none !important;
}
html[data-theme="light"] body:not(.auth-mode) .modal .modal-actions :is(.modal-btn,.score-btn,button.primary):hover,
html[data-theme="light"] body:not(.auth-mode) .modal :is(.aiqi-ok-btn,.mp-btn.primary,.recharge-confirm-btn):hover {
  color:#fff !important;
  background:#216c59 !important;
  background-image:none !important;
  border-color:#216c59 !important;
}
html[data-theme="light"] body:not(.auth-mode) .review-workbench-modal .modal-btn.primary {
  color:var(--light-brand-ink) !important;
  background:var(--light-brand-paper) !important;
  background-image:none !important;
  border-color:#bdcbc2 !important;
  box-shadow:none !important;
}

/* 操作区层级：取消/关闭等次要按钮用幽灵样式，仅 .primary 主按钮实心。 */
html[data-theme="light"] body:not(.auth-mode) .modal .modal-actions .modal-btn:not(.primary) {
  color:var(--light-brand-green) !important;
  background:transparent !important;
  border-color:rgba(23,60,53,.40) !important;
}
html[data-theme="light"] body:not(.auth-mode) .modal .modal-actions .modal-btn:not(.primary):hover {
  color:var(--light-brand-ink) !important;
  background:rgba(23,60,53,.08) !important;
  border-color:var(--light-brand-green) !important;
}

/* 旧弹窗内部的深色/紫色块改成浅色主题内容层。 */
html[data-theme="light"] body:not(.auth-mode) .modal :is(
  .free-match-list,.free-match-empty,.cloud-modal-card,.handicap-rules-list,
  .recharge-target,.recharge-pkg-btn,.site-service-content,.voice-review-help-content section,
  .software-card,.profile-card,.my-profile-section,.aiqi-center-balance
) {
  color:var(--light-brand-ink) !important;
  background:#f1f4ed !important;
  border-color:#c6d3ca !important;
}

@media (max-width:620px) {
  html[data-theme="light"] body:not(.auth-mode) .modal:not(.review-workbench-modal) > .modal-title:not(.modal-toolbar-title) {
    margin:-14px -14px 16px !important;
    padding:17px 14px 14px !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .modal:not(.review-workbench-modal) > .modal-head {
    margin:-14px -14px 16px !important;
    padding:14px !important;
  }
}

/* 终级文字覆盖：所有墨绿标题区主文字为白，说明文字为研究台浅绿。 */
html[data-theme="light"] body:not(.auth-mode) :is(.handicap-rules-modal-head,.software-center-header) .modal-title,
html[data-theme="light"] body:not(.auth-mode) :is(.aiqi-center-modal,.my-profile-modal,.site-service-modal) > .modal-head .modal-title { color:#fff !important; }
html[data-theme="light"] body:not(.auth-mode) :is(.handicap-rules-modal-head,.software-center-header) p { color:var(--light-brand-muted) !important; }
html[data-theme="light"] body:not(.auth-mode) #software-center-modal .software-center-header p {
  color:#c3d8cf !important;
}

/* 浅色大厅：左侧功能栏与右侧信息栏使用同一组浅色表面。 */
html[data-theme="light"] body.view-lobby-view .lobby-nav-rail {
  color:var(--light-brand-ink) !important;
  background:#eef0e8 !important;
  border-color:#d3dccf !important;
  box-shadow:none !important;
}
html[data-theme="light"] body.view-lobby-view .lobby-nav-item,
html[data-theme="light"] body.view-lobby-view .lobby-nav-item :is(svg,.lobby-nav-icon) {
  color:#35594a !important;
}
html[data-theme="light"] body.view-lobby-view .lobby-nav-item:is(:hover,.active) {
  color:#173c35 !important;
  background:#dfe8dc !important;
  border-color:#c5d4c8 !important;
}
html[data-theme="light"] body.view-lobby-view .lobby-nav-item:is(:hover,.active) :is(svg,.lobby-nav-icon) {
  color:#216c59 !important;
}
html[data-theme="light"] body.view-lobby-view .lobby-ai-online,
html[data-theme="light"] body.view-lobby-view .lobby-nav-rail .ai-online-dot { color:#3d6757 !important; }
html[data-theme="light"] body.view-lobby-view :is(.leaderboard-tabs .invite-btn-sm.active,.empty-state .empty-icon) {
  color:#fff !important;
  background:#2f6b59 !important;
  border-color:#2f6b59 !important;
  box-shadow:none !important;
}
html[data-theme="light"] body.view-lobby-view #lobby-view .chat-send {
  color:#fff !important;
  background:#2f6b59 !important;
  background-image:none !important;
  border-color:#2f6b59 !important;
  box-shadow:none !important;
}

/* 登录页不变；登录后的导航 Logo 改用浅色品牌条。 */
html[data-theme="light"] body:not(.auth-mode) #navbar .logo {
  background:#e7ece2 !important;
  border-color:#ccd7c8 !important;
  box-shadow:none !important;
}
html[data-theme="light"] body:not(.auth-mode) #navbar .site-logo-image {
  content:url('/assets/aiqigo-logo-horizontal-light.svg') !important;
}

/* 个人资料截图中的深绿标题条改为浅色；登录欢迎区不匹配此规则。 */
html[data-theme="light"] body:not(.auth-mode) #my-profile-modal .my-profile-modal > .modal-head {
  margin:0 !important;
  padding:16px 22px !important;
  min-height:62px !important;
  color:#173c35 !important;
  background:#eef0e8 !important;
  border-color:#ccd7cc !important;
}
html[data-theme="light"] body:not(.auth-mode) #my-profile-modal .my-profile-modal > .modal-head .modal-title,
html[data-theme="light"] body:not(.auth-mode) #my-profile-modal .my-profile-modal > .modal-head .modal-close {
  color:#173c35 !important;
}
html[data-theme="light"] body:not(.auth-mode) #my-profile-modal .my-profile-modal > .modal-head .modal-title {
  line-height:1.45 !important;
}

/* 机构复盘中的旧金色操作状态归入浅色绿系。 */
html[data-theme="light"] body.view-institution-view :is(
  .institution-header-actions button,.institution-wide-btn,
  .institution-editor-actions button,.institution-source-actions button,
  .institution-share-box button,.institution-start-analysis
) {
  color:#245444 !important;
  background:#e4ebdf !important;
  background-image:none !important;
  border-color:#c4d2c6 !important;
  box-shadow:none !important;
}
html[data-theme="light"] body.view-institution-view :is(
  .institution-header-actions button:last-child,.institution-wide-btn.primary,
  .institution-editor-actions .primary,.institution-start-analysis
) {
  color:#fff !important;
  background:#2f6b59 !important;
  background-image:none !important;
  border-color:#2f6b59 !important;
}
html[data-theme="light"] body.view-institution-view :is(
  .institution-workspace-header h1,.institution-panel-title strong,
  .institution-preview-head strong,.institution-preview-empty h2,
  .institution-preview-empty > span,.institution-section-head b,
  .institution-section-head em
) { color:#285c4b !important; }
html[data-theme="light"] body.view-institution-view .institution-analysis-products button.selected {
  color:#245444 !important;
  background:#dfe8dc !important;
  border-color:#adc5b5 !important;
  box-shadow:none !important;
}
html[data-theme="light"] body.view-institution-view .institution-analysis-products button.selected :is(span,strong,small),
html[data-theme="light"] body.view-institution-view .institution-sample :is(select,button) {
  color:#285c4b !important;
}

/* 浅色对局室：操作按钮去除金色强调，棋钟保持既有设计。 */
html[data-theme="light"] body.view-game-view #game-view :is(.game-btn,.room-action-btn.score-btn,.room-tool-btn.analyze-btn) {
  color:#294f40 !important;
  background:#fffdf8 !important;
  background-image:none !important;
  border-color:#cbd6c9 !important;
  box-shadow:none !important;
}
html[data-theme="light"] body.view-game-view #game-view :is(.game-btn,.room-action-btn,.room-tool-btn) :is(.room-action-icon,.room-tool-icon) {
  color:#2f6b59 !important;
}
html[data-theme="light"] body.view-game-view #game-view :is(.game-btn,.room-action-btn,.room-tool-btn):not(:disabled):hover {
  color:#173c35 !important;
  background:#e5ece1 !important;
  border-color:#b8cbbb !important;
}
html[data-theme="light"] body.view-game-view .board-toolbar .board-toggle.on {
  color:#fff !important;
  background:#245947 !important;
  border-color:#245947 !important;
}
html[data-theme="light"] body.view-game-view #game-view .board-toolbar .board-toggle:not(.on) {
  color:#35594a !important;
  background:#edf1e8 !important;
  border-color:#d1dbcf !important;
}
html[data-theme="light"] body.view-game-view #game-view .chat-send {
  color:#fff !important;
  background:#2f6b59 !important;
  background-image:none !important;
  border-color:#2f6b59 !important;
  box-shadow:none !important;
}
html[data-theme="light"] body.view-game-view #game-view .game-panel-tab.active {
  color:#fff !important;
  background:#2f6b59 !important;
  border-color:#2f6b59 !important;
  box-shadow:none !important;
}

/* 棋盘外层：去除方格底板和厚阴影，以现有 SVG 构成 AI 电路框架。 */
html[data-theme="light"] body.view-game-view .game-table-shell {
  background-color:#f1f4ed !important;
  background-image:
    radial-gradient(circle at 50% 48%,rgba(255,253,248,.96) 0 31%,rgba(231,239,232,.78) 58%,rgba(223,233,225,.92) 100%),
    radial-gradient(circle at 13% 19%,rgba(47,107,89,.11) 0 2px,transparent 3px),
    radial-gradient(circle at 87% 78%,rgba(47,107,89,.10) 0 2px,transparent 3px) !important;
  background-size:auto,84px 84px,112px 112px !important;
  box-shadow:none !important;
}
html[data-theme="light"] body.view-game-view #game-view .room-board-area {
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
}
html[data-theme="light"] body.view-game-view .room-circuit-frame { opacity:.78 !important; }
html[data-theme="light"] body.view-game-view .room-circuit-frame .circuit-lines path {
  stroke:rgba(38,112,91,.48) !important;
  filter:drop-shadow(0 0 3px rgba(38,112,91,.14)) !important;
}
html[data-theme="light"] body.view-game-view .room-circuit-frame .circuit-branches path {
  stroke:rgba(38,112,91,.30) !important;
  filter:none !important;
}
html[data-theme="light"] body.view-game-view .room-circuit-frame circle {
  fill:rgba(38,112,91,.30) !important;
  stroke:rgba(31,102,82,.72) !important;
  filter:none !important;
}
html[data-theme="light"] body.view-game-view #go-board {
  border:1px solid rgba(62,91,73,.28) !important;
  box-shadow:none !important;
}

@media (max-width:620px) {
  html[data-theme="light"] body.view-lobby-view .lobby-nav-rail { background:#eef0e8 !important; }
}

/* 其余工作台的旧金色交互控件统一为浅色绿系。 */
html[data-theme="light"] body:not(.auth-mode) #kifu-modal .review-source-grid > :is(button,article).active {
  color:#245444 !important;
  background:#dfe8dc !important;
  border-color:#adc5b5 !important;
  box-shadow:none !important;
}
html[data-theme="light"] body:not(.auth-mode) #kifu-modal .review-workbench-tools button.active {
  color:#245444 !important;
  background:#dfe8dc !important;
  border-color:#adc5b5 !important;
  box-shadow:none !important;
}
html[data-theme="light"] body:not(.auth-mode) #kifu-modal :is(.saved-game-card,.kifu-item) :is(button,.kifu-dl-btn) {
  color:#173c35 !important;
  background:#eef0e8 !important;
  background-image:none !important;
  border-color:#b9cabd !important;
  box-shadow:none !important;
}
html[data-theme="light"] body:not(.auth-mode) #kifu-modal :is(.saved-game-card,.kifu-item) :is(button,.kifu-dl-btn):hover {
  color:#fff !important;
  background:#2f6b59 !important;
  border-color:#2f6b59 !important;
}
html[data-theme="light"] body.view-voice-review-view .voice-review-header-actions button,
html[data-theme="light"] body.view-voice-review-view .voice-review-panel header button,
html[data-theme="light"] body.view-voice-review-view .voice-review-source-btn {
  color:#285c4b !important;
  background:#e4ebdf !important;
  background-image:none !important;
  border-color:#c4d2c6 !important;
  box-shadow:none !important;
}
html[data-theme="light"] body.view-voice-review-view .voice-review-source-btn :is(span,strong) { color:inherit !important; }
html[data-theme="light"] body.view-voice-review-view .voice-review-source-btn.primary {
  color:#fff !important;
  background:#2f6b59 !important;
  border-color:#2f6b59 !important;
}
html[data-theme="light"] body.view-fairplay-view :is(.fairplay-workspace-header button,.fairplay-source-panel > button) {
  color:#285c4b !important;
  background:#e4ebdf !important;
  background-image:none !important;
  border-color:#c4d2c6 !important;
  box-shadow:none !important;
}
html[data-theme="light"] body.view-dynamic-kifu-view :is(.dynamic-kifu-header button,.dynamic-btn,.dynamic-preview-controls button,.dynamic-cancel-btn) {
  color:#285c4b !important;
  background:#e4ebdf !important;
  background-image:none !important;
  border-color:#c4d2c6 !important;
  box-shadow:none !important;
}
html[data-theme="light"] body.view-dynamic-kifu-view :is(.dynamic-kifu-header button,.dynamic-btn,.dynamic-preview-controls button):not(:disabled):hover {
  color:#173c35 !important;
  background:#d9e5da !important;
  border-color:#adc5b5 !important;
}

/* 登录主操作改为品牌墨绿，注册表单沿用同一按钮。 */
html[data-theme="light"] body.auth-mode .auth-card .form-btn {
  color:#fff !important;
  background:#173c35 !important;
  background-image:none !important;
  border-color:#173c35 !important;
  box-shadow:0 8px 18px rgba(23,60,53,.16) !important;
}
html[data-theme="light"] body.auth-mode .auth-card .form-btn:hover {
  color:#fff !important;
  background:#216c59 !important;
  border-color:#216c59 !important;
  box-shadow:0 9px 20px rgba(23,60,53,.20) !important;
}

/* 人机对弈邀请：双列字段使完整内容在一屏内展示，无需内部滚动。 */
html[data-theme="light"] body:not(.auth-mode) #invite-modal .invite-modal-panel {
  width:min(680px,94vw) !important;
  max-height:calc(100dvh - 24px) !important;
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 14px !important;
  overflow:visible !important;
  padding:20px 22px !important;
}
html[data-theme="light"] body:not(.auth-mode) #invite-modal .invite-modal-panel > .modal-title,
html[data-theme="light"] body:not(.auth-mode) #invite-modal .invite-modal-panel > .modal-actions,
html[data-theme="light"] body:not(.auth-mode) #invite-modal .invite-modal-panel > #inv-color-group { grid-column:1 / -1; }
html[data-theme="light"] body:not(.auth-mode) #invite-modal .invite-modal-panel > .modal-title {
  position:static !important; margin:0 !important; padding:0 0 8px !important;
  color:#173c35 !important; background:transparent !important; border-bottom:1px solid #d5dfd4 !important;
}
/* 该弹窗标题条是浅色底，关闭按钮需覆盖通用墨绿标题条上的浅色 X 规则。 */
html[data-theme="light"] body:not(.auth-mode) #invite-modal .invite-modal-panel > .modal-title .modal-x { color:#587064 !important; }
html[data-theme="light"] body:not(.auth-mode) #invite-modal .invite-modal-panel > .modal-title .modal-x:hover { color:#173c35 !important; background:rgba(23,60,53,.08) !important; }
html[data-theme="light"] body:not(.auth-mode) #invite-modal .invite-modal-panel > .form-group { min-width:0; margin:0 !important; }
html[data-theme="light"] body:not(.auth-mode) #invite-modal .invite-modal-panel > .form-group :is(select,input) { min-height:38px !important; }
html[data-theme="light"] body:not(.auth-mode) #invite-modal .invite-modal-panel > .modal-actions {
  position:static !important; margin:0 !important; padding:10px 0 0 !important;
  background:transparent !important; border-top:1px solid #d5dfd4 !important;
}

/* 语音复盘入口保留同一浅绿层级，避免大面积纯白。 */
html[data-theme="light"] body.view-voice-review-view .voice-review-intro-card {
  background:#173c35 !important;
  background-image:none !important;
  border-color:#173c35 !important;
  box-shadow:0 12px 30px rgba(23,60,53,.16) !important;
}
html[data-theme="light"] body.view-voice-review-view .voice-review-intro-card::after { background:radial-gradient(circle at 84% 20%,rgba(116,240,210,.16),transparent 34%) !important; }
html[data-theme="light"] body.view-voice-review-view .voice-review-intro-card h2 { color:#fff !important; }
html[data-theme="light"] body.view-voice-review-view .voice-review-intro-card :is(p,li) { color:#e8f3ed !important; }
html[data-theme="light"] body.view-voice-review-view .voice-review-intro-card li { border-color:rgba(232,243,237,.24) !important; }
html[data-theme="light"] body.view-voice-review-view .voice-review-intro-card li b,
html[data-theme="light"] body.view-voice-review-view .voice-review-intro-card > div > small { color:#bde8d5 !important; }
html[data-theme="light"] body.view-voice-review-view .voice-review-orbit { border-color:#9fd3bc !important; box-shadow:inset 0 0 28px rgba(116,240,210,.12),0 0 30px rgba(116,240,210,.08) !important; }
html[data-theme="light"] body.view-voice-review-view .voice-review-orbit i { border-color:#bde8d5 !important; background:radial-gradient(circle,#548b75,#173c35) !important; }
html[data-theme="light"] body.view-voice-review-view .voice-review-orbit b { color:#fff !important; }

/* 使用说明压缩成多列信息卡，在桌面和手机上都不越出视口。 */
html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-modal {
  width:min(780px,94vw) !important; max-height:calc(100dvh - 24px) !important; min-height:0 !important;
  display:grid !important; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden !important; padding:0 !important;
}
html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-modal > .modal-head { margin:0 !important; padding:15px 20px !important; min-height:58px; }
html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-content {
  display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px !important;
  margin:0 !important; padding:12px 18px !important; overflow:visible !important;
}
html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-content section {
  grid-template-columns:22px minmax(0,1fr) !important; gap:7px !important; padding:9px !important;
  background:#edf3eb !important; border-color:#c9d9cc !important;
}
html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-content section > b { width:22px !important; height:22px !important; color:#fff !important; background:#2f6b59 !important; }
html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-content :is(strong,p) { color:#315b4b !important; }
html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-content p { margin:3px 0 0 !important; font-size:10px !important; line-height:1.52 !important; }
html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-content aside {
  grid-column:1 / -1 !important; padding:9px 12px !important; color:#315b4b !important;
  background:#dfece3 !important; border-left-color:#2f6b59 !important;
}
html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .modal-actions { margin:0 !important; padding:10px 18px 14px !important; background:transparent !important; border-top:1px solid #d5dfd4 !important; }
@media (max-width:620px) {
  html[data-theme="light"] body:not(.auth-mode) #invite-modal .invite-modal-panel { gap:8px 10px !important; padding:16px !important; }
  html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-modal { width:min(96vw,480px) !important; }
  html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-content { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px !important; padding:9px 10px !important; }
  html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-content section:nth-of-type(5),
  html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-content aside { grid-column:1 / -1 !important; }
  html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-content section { padding:7px !important; }
  html[data-theme="light"] body:not(.auth-mode) #voice-review-help-modal .voice-review-help-content p { font-size:9px !important; line-height:1.42 !important; }
}

/* 复盘工作台浅色模式最终覆盖：所有工作区控件共用纸张、墨绿文字和浅绿选中态。 */
@media screen {
  html[data-theme="light"] body:not(.auth-mode) .professional-review {
    color:#294b3a !important;
    background:#f4f3ec !important;
    background-image:none !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-header {
    background:#fffdf8 !important;
    border-bottom:1px solid #d5dfd2 !important;
    box-shadow:0 2px 10px rgba(41,68,47,.05) !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-back,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .board-toggle {
    color:#315b4b !important;
    background:#f4f7ef !important;
    background-image:none !important;
    border:1px solid #cbd8c9 !important;
    box-shadow:none !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-back:hover,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .board-toggle:hover,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .board-toggle.on {
    color:#173c35 !important;
    background:#dfeadf !important;
    border-color:#aac4b0 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-sep {
    background:#cbd8c9 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-title-wrap small,.rv-analysis-head small) {
    color:#2f6b59 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review #review-title,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-analysis-head strong,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-section-title,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-sub-title {
    color:#244b39 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-left,.rv-right) {
    background:#eef2ea !important;
    background-image:none !important;
    border-color:#d1dccf !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-board-stage {
    background:#f4f3ec !important;
    background-image:none !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-board-stage #review-board {
    box-shadow:0 12px 30px rgba(38,65,48,.18) !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-analysis-head {
    background:#f6f8f1 !important;
    background-image:none !important;
    border-color:#d5dfd2 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-analysis-head > span,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-level-label,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-chartbar-title,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-chartbar-legend2 {
    color:#627565 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-analysis-controls {
    background:#eef2ea !important;
    border-color:#d5dfd2 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-level-select,.rv-report-branding-settings input,
    #rv-jump-input) {
    color:#294b3a !important;
    background:#fffef9 !important;
    background-image:none !important;
    border-color:#cbd8c9 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-tool-btn,.rv-btn) {
    color:#315b4b !important;
    background:#f7f9f3 !important;
    background-image:none !important;
    border:1px solid #cbd8c9 !important;
    box-shadow:none !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-tool-btn,.rv-btn):not(:disabled):hover {
    color:#173c35 !important;
    background:#e1ebe1 !important;
    border-color:#aac4b0 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-tool-btn.primary:not(:disabled) {
    color:#fff !important;
    background:#173c35 !important;
    background-image:none !important;
    border-color:#173c35 !important;
    box-shadow:0 5px 14px rgba(23,60,53,.16) !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-tool-btn.primary:not(:disabled):hover {
    color:#fff !important;
    background:#216c59 !important;
    border-color:#216c59 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-tool-btn.primary:disabled,#rv-analyze-btn:disabled) {
    color:#788879 !important;
    background:#e8eee5 !important;
    background-image:none !important;
    border:1px solid #d1dccf !important;
    box-shadow:none !important;
    opacity:1 !important;
    cursor:not-allowed !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-analysis-pdf:disabled {
    color:#788879 !important;
    background:#e8eee5 !important;
    border-color:#d1dccf !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-analysis-status {
    color:#526a58 !important;
    background:#e5eee3 !important;
    border:1px solid #d3dfd1 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-analysis-status.status-running,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-analysis-status.status-queued,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-analysis-status.status-completed {
    color:#286c4b !important;
    background:#e1eee4 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-tabs {
    background:#fbfcf7 !important;
    border-color:#d2ddd0 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-tab {
    color:#617565 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-tab:hover,
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-tab.on {
    color:#173c35 !important;
    background:#e1ebe0 !important;
    border-bottom-color:#2f6b59 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-product {
    color:#456450 !important;
    background:#f7f9f3 !important;
    background-image:none !important;
    border-color:#cbd8c9 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-product.on {
    color:#173c35 !important;
    background:#dfeadf !important;
    border-color:#aac4b0 !important;
    box-shadow:inset 0 0 0 1px rgba(47,107,89,.12) !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-product strong,
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-chartbar-eval,.rv-move-num) {
    color:#866021 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-progress-track {
    background:#dbe4d8 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-progress-fill {
    background:linear-gradient(90deg,#3f8a68,#75b77f) !important;
    box-shadow:none !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-panel-empty,.rv-power-tip,
    .rv-tier-guide,.rv-coverage-card,.rv-dual-mini > span,.rv-keymove,.rv-explain,.rv-sum-overall,
    .rv-player-report,.rv-phase-table,.rv-report-jump,.rv-training-task-card,.rv-quality-chip,
    .rv-recovery-card,.rv-story-summary,.rv-story-grid article,.rv-causal-chain,
    .rv-opportunity-grid article,.rv-profile-grid article) {
    color:#456450 !important;
    background:#f7f9f3 !important;
    background-image:none !important;
    border-color:#d1dccf !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-power-tip,.rv-recovery-card) {
    background:#e5efe6 !important;
    border-left-color:#4b9270 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-move-item,.rv-turning) {
    color:#456450 !important;
    border-color:#dbe4d8 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-move-item:hover,.rv-move-item.current,.rv-turning:hover) {
    color:#173c35 !important;
    background:#e5eee2 !important;
    border-color:#b8cfbb !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-left [style*="border-bottom:1px solid rgba(200,146,42"],
    .rv-panel-scroll [style*="border-bottom:1px solid rgba(200,146,42"]) {
    border-bottom-color:#d5dfd2 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-left [style*="background:rgba(255,255,255,0.04)"],
    .rv-left [style*="background:rgba(255,255,255,0.06)"]) {
    background:#f7f9f3 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review :is(.rv-left [style*="color:rgba(200,180,140"],
    .rv-right [style*="color:rgba(200,180,140"],
    .rv-panel-scroll [style*="color:rgba(200,180,140"]) {
    color:#627565 !important;
  }
  html[data-theme="light"] body:not(.auth-mode) .professional-review .rv-chartbar {
    color:#456450 !important;
    background:#eef2ea !important;
    border-color:#d1dccf !important;
  }
}
/* Launch review: nested title/tab rules must retain white on green in light mode. */
html[data-theme="light"] body:not(.auth-mode) #analysis-tier-modal .analysis-tier-title-row strong { color:#fff !important; }
/* This panel has no outer padding: do not inherit the generic negative title margins. */
html[data-theme] body:not(.auth-mode) #analysis-tier-modal > .analysis-tier-modal-panel {
  padding:0 !important;
  overflow:hidden;
}
html[data-theme] body:not(.auth-mode) #analysis-tier-modal .analysis-tier-title-row {
  margin:0 0 18px !important;
  padding:20px !important;
  min-height:64px;
  box-sizing:border-box;
}
html[data-theme] body:not(.auth-mode) #analysis-tier-modal .analysis-tier-title-row > div {
  min-width:0;
}
html[data-theme] body:not(.auth-mode) #analysis-tier-modal .analysis-tier-title-row strong {
  line-height:1.4;
  overflow-wrap:anywhere;
}
html[data-theme] body:not(.auth-mode) #analysis-tier-modal .analysis-tier-title-row .modal-x {
  position:static;
  flex:0 0 32px;
  width:32px;
  height:32px;
}
html[data-theme="light"] body:not(.auth-mode) #aiqi-center-modal .aiqi-tab.active { color:#fff !important; }

/* AI鉴定“导出AI吻合度报告”按钮：不用金色，与专业复盘主按钮一致的深绿色（深浅主题通用）。 */
html body:not(.auth-mode) .rv-tool-btn.primary.rv-fp-export:not(:disabled) {
  color:#fff !important;
  background:#173c35 !important;
  background-image:none !important;
  border:1px solid #173c35 !important;
  box-shadow:0 5px 14px rgba(23,60,53,.16) !important;
  filter:none !important;
}
html body:not(.auth-mode) .rv-tool-btn.primary.rv-fp-export:not(:disabled):hover {
  color:#fff !important;
  background:#216c59 !important;
  border-color:#216c59 !important;
}
